This function retrieves the MAC address information from the PC's network card.
Parameters
Name | Explanation |
lpVendorID | The retrieved vendor number |
lpszVendorName | The retrieved vendor name In C++Builder, Visual C++, and Delphi. this is a string terminating with Null. In Visual Basic, this is a string of specified size. |
lpVendorNameLen | The length (in digits) of the retrieved vendor name. |
lpDeviceID | The retrieved product number. |
lpszMacAddress | The retrieved Mac address |
lpMacAddressLen | The length (in digits) of the retrieved Mac address. |
Return Value
Returns the True (nonzero) if successful, otherwise returns False (0).
Explanation
The PK3QueryNicAdrID function retrieves the MAC address information from the PC's network card.
The PK3QueryNicAdrID function is disabled if the PK3Initialize function has not been executed.
IMPORTANT: If the PK3QueryNicAdrID function is used on a PC with 4 or more network cards, the Mac address retrieved may not be constant. Because of this, after a password has been issued to unlock an application and that application has been uninstalled and reinstalled, there are cases where the previously generated password will no longer unlock the application. (When the network card is included as one condition for identifying a PC).