<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Registration Functions > WLRegLicenseCreationDate |
The WLRegLicenseCreationDate function retrieves the date when the license was created.
bool WLRegLicenseCreationDate( SYSTEMTIME* pCreationDate ); |
function WLRegLicenseCreationDate( var pCreationDate:SYSTEMTIME ):Integer; stdcall; |
Public Declare Function WLRegLicenseCreationDate Lib "WinLicenseSDK.dll" ( pCreationDate As Any ) As Integer |
[C#] [DllImport(WINLICENSE_SDK_DLL, CallingConvention = CallingConvention.StdCall)] public static extern bool WLRegLicenseCreationDate(SystemTime ExpDate);
[Visual Basic] <DllImport("WinlicenseSDK.dll", CallingConvention:=CallingConvention.StdCall)> Public Shared Function WLRegLicenseCreationDate(ExpDate As SystemTime) As Boolean End Function |
Parameters
pCreationDate
[out] Pointer to a SYSTEMTIME structure that receives the license creation date.
Return Values
If the function succeeds the return value is True (1).
If the license key is a permanent key the return value is wlPermKey (-1).
If a license key has not been installed, the return value is wlNoKey (-2).