Salem - It will also need to work on a computer without internet connection. About the need for protection, well nobody is willing to pay for a free program are they? My program is quite extensive and I would not put as much effort into it if it was sharewere. I just need something simple though.
mike_g - Ok so it might not be such a good idea then.
I found this in another thread here. Do you think it is a good idea to use something like this? Supposedly the volume serialnumber is possible to change but I don't think that is a thing you generally do. The code:
Code:
#include <windows.h>
int GetVolumeSerial()
{
DWORD dwVolSerial;
BOOL bIsRetrieved;
bIsRetrieved = GetVolumeInformation("C:\\",NULL,NULL,&dwVolSerial,NULL,NULL,NULL,NULL);
if (bIsRetrieved)
{
int serial = (int)dwVolSerial;
return serial;
}
return 0;
}
This is modified form a sample found here:
http://cboard.cprogramming.com/showthread.php?p=427642