<< Click to Display Table of Contents >> Navigation: WinLicense > Protecting an application > Plugins > SecureEngineFirstRunRegistered |
This function is called by WinLicense when a license is installed in the system. If you run the application again (with the same license) this function won't be called. If you install a new license (replacing the previous one), this function will be called again with the information of the new license.
STDCALL bool SecureEngineFirstRunRegisteredA( char* pHardwareId, char* pRegName, char* pCompany, char* pCustomData, TRegExpInfo RegExpInfo );
STDCALL bool SecureEngineFirstRunRegisteredW( wchar* pHardwareId, wchar* pRegName, wchar* pCompany, wchar* pCustomData, TRegExpInfo RegExpInfo ); |
function SecureEngineFirstRunRegisteredA( pHardwareID:PAnsiChar; pRegName:PAnsiChar; pCompany:PAnsiChar; pCustomData:PAnsiChar; RegExpInfo:TRegExpInfo ):Boolean; stdcall;
function SecureEngineFirstRunRegisteredW( pHardwareID:PWideChar; pRegName:PWideChar; pCompany:PWideChar; pCustomData:PWideChar; RegExpInfo:TRegExpInfo ):Boolean; stdcall; |
Parameters
pHardwareId
[in] This parameter specifies the hardware ID of the current machine.
pRegName
[in] This parameter specifies the registration name for the current license key.
pCompany
[in] This parameter specifies the registration company for the current license key.
pCustomData
[in] This parameter specifies the custom data for the current license key.
RegExpInfo
[in] This parameter specifies a pointer to a TRegExpInfo structure with information about the current license key expiration (days, executions, date and global time left)
Return Values
If the function returns True, WinLicense will continue running the protected application.
If the function returns False, WinLicense will terminate the protected application immediately. If the application is launched again, the SecureEngineFirstRunRegistered function will be called again until it returns True.