Description

This function will validate Site code and MachineID (MID) codes, decode MachineID and set locking parameters from remote computer for applications protected with old PC Guard for Win32/.NET V5 products.

Definition and parameters

extern "C" __declspec(dllexport) int __stdcall \
V5_CheckMachineID(char* site_code, char* mid, PMACHINE_LOCKS_DATA locks);

Parameter Description
(IN)  
site_code Pointer to Site code string value.
mid Pointer to Machine ID (MID) string value.
(OUT)  
locks pointer to buffer for activation code (should be at least 200 character long)

Usage

site_code, mid and pid parameters are mandatory.

Return values

If the function succeeds, PMACHINE_LOCKS_DATA locks structure is filled with locking parameters from remote computer and return value is STATUS_OK.

If the function fails, return value is on of the following error codes:

STATUS_BAD_SITE_CODE
STATUS_BAD_MID_CODE
STATUS_BAD_SITEMID
STATUS_BAD_APPSIGN

Full list of return codes is available here.