Groups | Blog | Home
all groups > dotnet distributed apps > june 2006 >

dotnet distributed apps : Software Protection


Tony Chang
6/16/2006 12:00:00 AM
Is there any way to get the CPU serial, MAC address, and Volumn ID from
VB.Net? I am thinking to make use of the information to generate serial
number request code. The serial number request code then can be used to
generate final serial number to provide the the use for activate the
software we distribute.

Thanks,

CT
6/16/2006 12:00:00 AM
Tony,

Here are some ideas:

MAC Address: System.Net.NetworkInformation.GetPhysicalAddress
Volume ID: Call the Win 32 API GetVolumeInformationA function in
the kernel32 dll
CPU serial: See this thread for ideas
http://www.dotnet247.com/247reference/msgs/57/288174.aspx

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk
---------
Voodoo Programming: Things programmers do that they know shouldn't work but
they try anyway, and which sometimes actually work, such as recompiling
everything. (Karl Lehenbauer)
---------
[quoted text, click to view]

Sharrukin Amiri
6/16/2006 7:32:27 AM
Hi Carsten,

Can you show me this buy writing a sample code to show how to get the MAC
address? I am new to OOP and Dot.NET.

Thanks!

Sharrukin

[quoted text, click to view]

Peter Ritchie
6/16/2006 8:47:01 AM
GetVolumeInformation does not get the drive serial #, it gets the volume
serial #; which is not fixed and there can be more than one volume per drive.

Getting the physical disk's serial number is somewhat complicated and can be
done through WMI. See http://www.codeproject.com/csharp/logicaldiskinfo.asp
for an example in C#.

--
http://www.peterRitchie.com/


[quoted text, click to view]
AddThis Social Bookmark Button