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
site_code Pointer to Site code string value.
mid Pointer to Machine ID (MID) string value.
locks pointer to buffer for activation code (should be at least 200 character long)


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:


Full list of return codes is available here.