<< Click to Display Table of Contents >>

Navigation:  WinLicense > WinLicense SDK > Miscellaneous Functions >


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.

Click to expand/collapseShow C/C++ function definition
Click to expand/collapseShow Delphi function definition
Click to expand/collapseShow Visual Basic Native function definition
Click to expand/collapseShow .NET function definition





[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.





This function has not effect in unprotected state for .NET applications.