The CloseProcess Method of the Generic ActiveX Object closes the handle opened by LaunchProcessNonBlocking.
CloseProcess (Method of the Generic ActiveX Object) Syntax objGeneric.CloseProcess(hProcessHandle);
Items listed in this section indicate parameters, or attributes which can be set.
Name Possible Values Description
Default Value hProcessHandle Handle Handle returned by LaunchProcessNonBlocking N/A
<script> var objGeneric = new ActiveXObject("PocketBrowser.Generic"); var hProcess = objGeneric.LaunchProcessNonBlocking('\\application\\ctlpanel.exe', ''); objGeneric.CloseProcess(hProcess); </script>
Copy example to clipboard
This method must be called some time after LaunchProcessNonBlocking to avoid a resource leak in Windows. Note that this method does not wait for the process to finish, it simply closes the handle when it's no longer needed. To wait for the process to finish use WaitProcess.
Supported Platforms Windows CE, Windows Mobile Persistence Runs immediately. Min. Requirements None.