dilettante,
This is a WORKING peice of code! It works for anything UPTO WinXP. For Vista it just returns blank. That's what I have been told coz I hdo not have Vista installed.
Besides, the code is in VB6. You seem to have modified it a bit for other versions. If you do have VB6 and Vista, do let me know if the original VB6 code works for Vista or not. Thanks.