FaceSDK is a copy protected library and must be activated with a registration key before its use. The license allows you to use one copy of FaceSDK on one computer, so the library must be registered to a certain computer. To activate the library, you need to obtain your Hardware ID using the FSDK_GetHardware_ID function first. Then you should send this ID to Luxand Development (www.luxand.com) and pass the received license key to the FSDK_ActivateLibrary function.
Almost all FaceSDK functions will return the FSDKE_NOT_ACTIVATED error code in case the library is not activated. To retrieve your license information, call the FSDK_GetLicenseInfo function. This function returns the name the library is licensed to.
FSDK_GetHardware_ID Function
Generates the Hardware ID code.
C++ Syntax:
int _FSDKIMPORT_ FSDK_GetHardware_ID(char* HardwareID);
Delphi Syntax:
function FSDK_GetHardware_ID(HardwareID: PChar): integer; cdecl; external 'FaceSDK.dll';
Parameters:
HardwareID – the address of the null-terminated string for receiving the Hardware ID code.
Return Value:
The function returns FSDK_OK if successful.
FSDK_ActivateLibrary Function
Activates the FaceSDK library.
C++ Syntax:
int _FSDKIMPORT_ FSDK_ActivateLibrary(char* LicenseKey);
Delphi Syntax:
function FSDK_ActivateLibrary(LicenseKey: PChar): integer; cdecl; external 'FaceSDK.dll';
Parameters:
LicenseKey– the license key you received from Luxand Development.
Return Value:
Returns FSDKE_OK if the registration key has been successfully saved. The application must be restarted for the activation to take effect.
FSDK_GetLicenseInfo Function
Retrieves the license information.
C++ Syntax:
int _FSDKIMPORT_ FSDK_GetLicenseInfo(char* LicenseInfo);
Delphi Syntax:
function FSDK_GetLicenseInfo(LicenseInfo: PChar): integer; cdecl; external 'FaceSDK.dll';
Parameters:
LicenseInfo – the address of the null-terminated string for receiving the license information.
Return Value:
The function returns FSDK_OK if successful.



