Description

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
(IN)  
site_code Pointer to Site code string value.
mid Pointer to Machine ID (MID) string value.
app_sign Pointer to application signature string value.
(OUT)  
locks pointer to buffer with MACHINE_LOCKS_DATA  structure

Usage

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:

STATUS_BAD_SITE_CODE
STATUS_BAD_MID_CODE
STATUS_BAD_SITEMID
STATUS_BAD_APPSIGN

Full list of return codes is available here.