The CreateFile function that is called needs to have administrative permissions (see (VS.85).aspx). I played around for a while, and the "blank fields" are due to User Account Control in Vista. This is the best piece of code I've found for this, and YES!!! IT WORKS WITH VISTA!!! I had the same "error" as mentioned above, with the fields just being blank. Now that you already have code for extracting HDD serial using WMI please update my code and repost it. The WMI part is easy but a user can easily disable or uninstall WMI from his or her system and this will break any software which is built around WMI. But the main problem is that the code that I have developed is for running on all Windows 32Bit versions and not only in Windows 2000 onwards. WbemFlagReturnImmediately wbemFlagForwardOnly)ĭebug.Print "SerialNumber: "
0 Comments
Leave a Reply. |