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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
CrishRank #1,487 · 1.1K reputationPosted Dec 10, 2010, 1:30 AM EST
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();
}
Suthish NairRank #92 · 22.8K reputationPosted Dec 11, 2010, 9:28 AM EST
Can you explain your query in details.
Subhendu DeRank #1,108 · 1.7K reputationPosted Dec 11, 2010, 9:32 AM EST
Sam HobbsRank #107 · 20.5K reputationPosted Dec 11, 2010, 8:14 PM EST