Writing a Security Key Into a Board
Setting the OemSafetyLock parameter to an 8-bytes string activates the recording of the security key.
The following code engraves MY_NUM18 in the board with DriverIndex=1. The Status variable can be used for error checking.
[C]
//Connecting to driver
MCSTATUS Status = McOpenDriver(NULL);
//Entering the key number
Status = McSetParamStr(MC_BOARD +1, MC_OemSafetyLock, "MY_NUM18");
//Disconnecting from driver
Status = McCloseDriver();