<< Click to Display Table of Contents >> 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.
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.