![SG Intec Ltd & Co KG SG-Lock Developer'S Manual Download Page 39](http://html1.mh-extra.com/html/sg-intec-ltd-and-co-kg/sg-lock/sg-lock_developers-manual_1250994039.webp)
Chapter 4: SG-Lock API
33
4.5.3 Function: SglWriteKey
Description
Writes a 128-bit key to the SG-Lock key memory.
Types
U2:
-
U3:
U4:
Declaration
ULONG S g l W r i t e K e y (
ULONG P r o d u c t I d ,
ULONG KeyNum ,
ULONG *Key ) ;
Parameters
ProductId
Indicates the ProductId of the SG-Lock
KeyNum
Number of the key to be written
0 to 1 - SG-Lock U3
0 to 15 - SG-Lock U4
Key
128-bit Key to be written. Pointer to data array
of 4 integer values of 32-bit, that form the 128-bit
key
Return values
SGL_SUCCESS
Key successfully written to SG-
Lock
SGL_DGL_NOT_FOUND
SG-Lock not found
The full list of return codes is listed in chapter 4.6.
Comments
The 128-bit key of the U2 is read only and not changeable.
Summary of Contents for SG-Lock
Page 2: ......
Page 22: ......
Page 60: ......
Page 62: ...56 Chapter 7 Technical Data Notes ...
Page 63: ...Chapter 7 Technical Data 57 ...