![SG Intec Ltd & Co KG SG-Lock Developer'S Manual Download Page 37](http://html1.mh-extra.com/html/sg-intec-ltd-and-co-kg/sg-lock/sg-lock_developers-manual_1250994037.webp)
Chapter 4: SG-Lock API
31
4.5 Administrative Functions
4.5.1 Function: SglReadProductId
Description
Reads the 16-bit ProductId from the SG-Lock.
Types
U2:
U3:
U4:
Declaration
ULONG S g l R e a d P r o d u c t I d (
ULONG* P r o d u c t I d ) ;
Parameters
ProductId
Pointer to variable, that the ProductId assigned to
Return values
SGL_SUCCESS
ProductId successfully read
SGL_DGL_NOT_FOUND
SG-Lock not found
The full list of return codes is listed in chapter 4.6.
Comments
The ProductId is an identifier that eases to distinguish between different pro-
tected applications of SG-Lock users. For example company X protects its appli-
cation A and B with SG-Lock and gives all keys for application A the ProductId
1 and the keys for application B the ProductId 2, then all keys of application B
are ”hidden“ for application A and vice versa. This simple mechanism offers an
effective way to prevent confusion between keys of different applications (see
also chapter 3.3.). Setting of the ProductId should be integrated into the initial-
ization process of the SG-Locks before distributing with the protected software.
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 ...