This function retrieves the random identifier set in the PcID.
[C++Builder/Visual C++] BOOL
PK3QueryRandom(LPSTR lpszRandom, LPLONG lpRandomLen);
[Delphi] function
PK3QueryRandom(lpszRandom: PAnsiChar; var lpRandomLen: Longint):
LongBool;
[Visual Basic] Function
PK3QueryRandom(ByVal lpszRandom As String, lpRandomLen As Long) As
Long
Parameters
Name | Explanation |
lpszRandom | The retrieved Random Identifier (10 digits) In C++Builder, Visual C++, and Delphi. this is a string of 10 digits followed by a terminating Null. In Visual Basic, this is a string of 10 digits. |
lpRandomLen | The number of digits in the retrieved Random Identifier |
Return Value
Returns the True (nonzero) if successful, otherwise returns False (0).
Explanation
The PK3QueryRandom function retrieves the random identifier set in the PcID. This function can be used with the "Add Random Identifier to PC identifiers" checkbox has been checked in the Pr3SetProtect.exe.
The PK3QueryRandom function is disabled if the PK3Initialize function has not been executed.