i want to add a serial number to my c# application.users should not be able to have full functionality without registering the serial number.
please can some one help me with a sample code..
thank you
i want to add a serial number to my c# application.users should not be able to have full functionality without registering the serial number.
please can some one help me with a sample code..
thank you
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Dec 12, 2010, 1:14 AM
Subhendu DePosted Dec 11, 2010, 2:32 PM
Suthish NairPosted Dec 11, 2010, 2:28 PM
Can you explain your query in details.
CrishPosted Dec 10, 2010, 6:30 AM
You can check this code.I think it will help you.
example ::
using System.Management
public string Find HardDiskSerialNumber(string driveName)
{
if (drive == "" || drive == null)
{
drive = "C";
}
ManagementObject disk = new ManagementObject("win32_logicaldisk.deviceid=\"" + driveName +":\"");
disk.Get();
}