This function will validate Site code and MachineID (MID) codes, decode MachineID and set locking parameters from remote computer.

NOTE: For applications protected with old PC Guard for Win32/.NET V5 please use V5_CheckMachineID function.

Definition and parameters

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

Parameter Description
site_code Pointer to Site code string value.
mid Pointer to Machine ID (MID) string value.
app_sign Pointer to application signature string value.
locks pointer to buffer with MACHINE_LOCKS_DATA  structure


site_code, mid and app_sign parameters are mandatory.

Return values

If the function succeeds, MACHINE_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.