HighTechTalks DotNet Forums  

Software Protection

Dotnet Distributed Applications microsoft.public.dotnet.distributed_apps


Discuss Software Protection in the Dotnet Distributed Applications forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Tony Chang
 
Posts: n/a

Default Software Protection - 06-16-2006 , 02:38 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,



Reply With Quote
  #2  
Old   
CT
 
Posts: n/a

Default Re: Software Protection - 06-16-2006 , 03:31 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/247referenc...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)
---------
"Tony Chang" <tonychang (AT) newsgroups (DOT) nospam> wrote

Quote:
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,




Reply With Quote
  #3  
Old   
Sharrukin Amiri
 
Posts: n/a

Default Re: Software Protection - 06-16-2006 , 07:32 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

"CT" <carstent (AT) spammersgoawayintegrasol (DOT) dk> wrote

Quote:
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/247referenc...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)
---------
"Tony Chang" <tonychang (AT) newsgroups (DOT) nospam> wrote in message
news:OHE8G%23QkGHA.984 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
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,






Reply With Quote
  #4  
Old   
Peter Ritchie
 
Posts: n/a

Default Re: Software Protection - 06-16-2006 , 11:47 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/


"CT" wrote:

Quote:
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/247referenc...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)
---------
"Tony Chang" <tonychang (AT) newsgroups (DOT) nospam> wrote in message
news:OHE8G%23QkGHA.984 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
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,





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.