VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Grab's the ProductID (serial Number) from Windows. This is useful if binding program licence to the

Evan Miller  (2 Submissions)   Windows System Services   VB 6.0   Unknown Difficulty   Sat 4th May 2002   Mon 8th February 2021

Grab's the ProductID (serial Number) from Windows. This is useful if binding program licence to the Users's O/S. Tip: to make

API Declarations


"RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, _
ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long

Public Declare Function RegQueryValueEx Lib "advapi32.dll" Alias _
"RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, _
ByVal lpReserved As Long, lpType As Long, lpData As Any, _
lpcbData As Long) As Long

Public Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long

Public Const REG_SZ = 1
Public Const HKEY_LOCAL_MACHINE = &H80000002
Public Const KEY_READ = &H20019

Rate Grab's the ProductID (serial Number) from Windows. This is useful if binding program licence to the (2(2 Vote))
Grab's the ProductID (serial Number) from Windows. This is useful if binding program licence to the.bas

Grab's the ProductID (serial Number) from Windows. This is useful if binding program licence to the Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters