代码如下:
Public Declare Function WLHardwareGetID Lib "WinLicenseSDK.dll" ( ByVal pHardwareId As String) As Boolean
Dim MachineID As String = "XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX"
WLHardwareGetID(MachineID)
TextBox2.Text = MachineID
这样显示出来的是abcd-abcd-abcd-abcd-abcd,用WinLicense保护生成出来的EXE文件运行也是显示abcd-abcd-abcd-abcd-abcd,请教哦~~