MultiCam Boards Documentation > MultiCam Documentation > MultiCam User Guide > Configuration Object > How to manage Security Features? > 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.

Example

This example engraves MY_NUM18 in the board with DriverIndex=1.

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

The Status variable can be used for error checking.