MultiCam Boards Documentation > MultiCam Documentation > MultiCam User Guide > The Board Object > Board Information > Board Security Feature > Code Examples to Manage Security Features > Writing a Security Key Into a Board

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();