The GetProcessExitCode Method of the Generic ActiveX Object retrieves the exit code of a previously run LaunchProcessNonBlocking call.
GetProcessExitCode (Method of the Generic ActiveX Object) Syntax var iRetVal = objGeneric.GetProcessExitCode(hProcessHandle);
Parameters
Items listed in this section indicate parameters, or attributes which can be set.
Name Possible Values Description
Default Value hProcessHandle Integer Process handle returned by previously called LaunchProcessNonBlocking N/A
Return Values
Name Description iRetVal Return value of the process specified by hProcessHandle
Examples
The following javascript example finds the return code for the process handle specified:
<script> var objGeneric = new ActiveXObject("PocketBrowser.Generic"); alert('Return code was: ' + objGeneric.GetProcessExitCode(hProcessHandle)); </script>
Copy example to clipboard
Additional Information
Supported Platforms Windows CE, Windows Mobile Persistence Runs immediately. Min. Requirements None.