This function retrieves the next PcID for passwords that have an expiration date.

[C++Builder/Visual C++] BOOL PK3NextQueryPcID(LPSTR lpszPcID, LPLONG lpPcIDLen);
[Delphi] function PK3NextQueryPcID(lpszPcID: PAnsiChar; var lpPcIDLen: Longint): LongBool;
[Visual Basic] Function PK3NextQueryPcID(ByVal lpszPcID As String, lpPcIDLen As Long) As Long

Parameters

Name Explanation
lpszPcID The retreived PcID (maximum length is 64 digits)
In C++Builder, Visual C++, and Delphi. this is a string terminating with Null. In Visual Basic, this is a string of specified size.
lpPcIDLen The number of digits in the retrieved PcID (lpszPcID)

Return Value

Returns the True (nonzero) if successful, otherwise returns False (0).

Explanation

For passwords that have an expiration date, the PK3NextQueryPcID function retrieves the next PcID according to the conditions specified in the Pr3SetProtect.exe. Note that this function is disabled if the PK3Initialize function has not been executed.

Example:

Run the Pr3SetProtect.exe. Under "PC Identifiers", select the checkbox "CPU, Motherboard Northbridge, VideoCard, and NetworkCard must all be different". Check the checkbox "Add Random Identifier to these PC identifiers". In this case the PcID will be in the following order: "CPU identifier" + "Motherboard Northbridge identifier" + "VideoCard identifier" + "NetworkCard MAC address" + "a Random Identifier"

For more information, please refer to PK3QueryCpuID, PK3QueryHostBridgeID, PK3QueryVideoID, and PK3QueryNicAdrID.

Note: The PK3QueryPcID function is able to retrieve the PcID after the password has expired, whereas thePK3NextQueryPcID function is able to retreive the PcID before the password has expired. For this reason, thePK3NextQueryPcID function and can be used to get the PcID in order to generate passwords prior to the expiration.

The PK3NextQueryPcID function is disabled when there is no expiration for the password.