机器码大多数是用API函数得到的
机器码,可能是多种,比如硬盘序列号,网卡物理地址等,读出来后进行组合,或是自己在往里面添加一些字符,然后做加密运算得到注册号
比如这个API函数就能得到一些每台机子唯一的信息
BOOL GetVolumeInformation(
LPCTSTR lpRootPathName, // address of root directory of the file system
LPTSTR lpVolumeNameBuffer, // address of name of the volume
DWORD nVolumeNameSize, // length of lpVolumeNameBuffer
LPDWORD lpVolumeSerialNumber, // address of volume serial number
LPDWORD lpMaximumComponentLength, // address of system's maximum filename length
LPDWORD lpFileSystemFlags, // address of file system flags
LPTSTR lpFileSystemNameBuffer, // address of name of file system
DWORD nFileSystemNameSize // length of lpFileSystemNameBuffer
);