<< Click to Display Table of Contents >> Navigation: WinLicense > WinLicense SDK > Miscellaneous Functions > WLRestartApplicationArgs |
The WLRestartApplicationArgs function closes the current application and restarts it again with arguments. This function should be called when a text key or SmartActivate® key has been installed (using WLRegInstallSmartKeyToFile, WLRegInstallSmartKeyToRegistry, WLRegInstallTextKeyToFile, WLRegInstallTextKeyToRegistry) and the application needs to be restarted to finish the WinLicense registration process.
bool WLRestartApplicationArgs ( char* pArgs); |
function WLRestartApplicationArgs ( pArgs: PAnsiChar ):Boolean; stdcall; |
Public Declare Function WLRestartApplicationArgs Lib "WinLicenseSDK.dll" ( ByVal pArgs As String ) As Boolean |
[C#] [DllImport(WINLICENSE_SDK_DLL, CallingConvention = CallingConvention.StdCall)] public static extern bool WLRestartApplicationArgs(string Arguments);
[Visual Basic] <DllImport("WinlicenseSDK.dll", CallingConvention:=CallingConvention.StdCall)> Public Shared Function WLRestartApplicationArgs(Arguments As String) As Boolean End Function |
Parameters
pArgs
[in] Pointer to a null-terminated string that specifies the parameters that are going to be passed to the application when it is restarted.
Return Values
If the function succeeds, the application is restarted.
If the function fails, the return value is zero.
Remarks
This function has not effect in unprotected state for .NET applications.