how to get hard disk serial number in vc++ program
-
i made one program in MFC(VC++). i want to give security to my program . i want that if i install my program on one pc. it cannot run on another pc. so i want to use hard disk serial number in my program. but i dont know how to get hard disk number in vc++ plz tell me if any other method to secure my program
-
i made one program in MFC(VC++). i want to give security to my program . i want that if i install my program on one pc. it cannot run on another pc. so i want to use hard disk serial number in my program. but i dont know how to get hard disk number in vc++ plz tell me if any other method to secure my program
Look for
[GetVolumeInformation]
which return Drives Serial Numbers. if you really need HarDisk Serial Number I believe you have to Program UsingWMI(Window Management Instrumentation.)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
i made one program in MFC(VC++). i want to give security to my program . i want that if i install my program on one pc. it cannot run on another pc. so i want to use hard disk serial number in my program. but i dont know how to get hard disk number in vc++ plz tell me if any other method to secure my program
Here is WMI example infomation http://www.codeguru.com/forum/showthread.php?t=195709[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
i made one program in MFC(VC++). i want to give security to my program . i want that if i install my program on one pc. it cannot run on another pc. so i want to use hard disk serial number in my program. but i dont know how to get hard disk number in vc++ plz tell me if any other method to secure my program