Home All Groups Group Topic Archive Search About

Locking Application to HDD Sr.No.

Author
12 Jan 2006 6:29 AM
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

Author
12 Jan 2006 12:01 PM
Carlos J. Quintero [VB MVP]
To read the HDD serial number see:

http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/VB_DOT_NET/Q_21346708.html

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio 2005, Visual Studio .NET,
VB6, VB5 and VBA
You can code, design and document much faster in VB.NET, C#, C++ or VJ#
Free resources for add-in developers:
http://www.mztools.com


Show quoteHide quote
"surendra.rajput" <surendra.raj***@gmail.com> escribió en el mensaje
news:1137047368.124892.137740@g49g2000cwa.googlegroups.com...
> 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
>
Author
13 Jan 2006 12:35 PM
C-Services Holland b.v.
Carlos J. Quintero [VB MVP] wrote:
Doesn't that just get the serialnr for the partition. Reformat and it's
changed.


--
Rinze van Huizen
C-Services Holland b.v
Author
12 Jan 2006 12:07 PM
Ken Tucker [MVP]
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
----------------------
Show quoteHide quote
"surendra.rajput" <surendra.raj***@gmail.com> wrote in message
news:1137047368.124892.137740@g49g2000cwa.googlegroups.com...
> 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
>
Author
12 Jan 2006 12:57 PM
Herfried K. Wagner [MVP]
"surendra.rajput" <surendra.raj***@gmail.com> schrieb:
> 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?

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>