Locking Application to HDD Sr.No.

  • Thread starter Thread starter surendra.rajput
  • Start date Start date
S

surendra.rajput

Hi,
can anyone help me with the code or instructions to write a code to
read the HDD sr no and lock my application to this no. for security and
piracy protection of my application.

Thanks a million in advance.

Surendra
 
Hi,

Add a reference to system.management

Dim moReturn As Management.ManagementObjectCollection
Dim moSearch As Management.ManagementObjectSearcher
Dim mo As Management.ManagementObject

moSearch = New Management.ManagementObjectSearcher("Select * from
Win32_LogicalDisk where MediaType = 12")

moReturn = moSearch.Get

For Each mo In moReturn
Debug.WriteLine(mo("Name") & " " & mo("VolumeSerialNumber"))
Next


Ken
 
surendra.rajput said:
can anyone help me with the code or instructions to write a code to
read the HDD sr no and lock my application to this no. for security and
piracy protection of my application.

I think this is a bad idea. Harddisks often crash and are replaced by new
disks. Can you afford a 24/7 support hotline?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top