Hardware Key or Machine Key is generally used for provide
Software License. Here we check the Processor
ID of CPU, because every system have difference Processor ID.
Here we use an instance and method provider (Win32 Provider)
and Computer
System Hardware Classes (Win32_Processor)
VB.Net Code:-
Imports System.Management
Private Sub Button1_Click()
Dim
Processor As Object
= GetObject("WinMgmts:").InstancesOf("Win32_Processor")
For Each
cpu In Processor
MsgBox(cpu.ProcessorId)
Next
End Sub
Get help from Win32 Provider
(Windows) - MSDN - Microsoft
No comments:
Post a Comment