This function retrieves the MAC address information from the PC's network card.

[C++Builder/Visual C++] BOOL PK3QueryNicAdrID(LPLONG lpVendorID, LPSTR lpszVendorName, LPLONG lpVendorNameLen, LPLONG lpDeviceID, LPSTR lpszMacAddress, LPLONG lpMacAddressLen);
[Delphi] function PK3QueryNicAdrID(var lpVendorID: Longint; lpszVendorName: PAnsiChar; var lpVendorNameLen: Longint; var lpDeviceID: Longint; lpszMacAddress: PAnsiChar; var lpMacAddressLen: Longint): LongBool;
[Visual Basic] Function PK3QueryNicAdrID(lpVendorID As Long, ByVal lpszVendorName As String, lpVendorNameLen As Long, lpDeviceID As Long, ByVal lpszMacAddress As String, lpMacAddressLen: Long) As Long

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).