GetProcessExitCode Method

PocketBrowser 3.x API

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);

ParametersW Toggle 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

axReturns Toggle Return Values

Name Description
iRetVal Return value of the process specified by hProcessHandle

Examples Toggle 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 Copy example to clipboard

Info Toggle Additional Information

Supported Platforms Windows CE, Windows Mobile
Persistence Runs immediately.
Min. Requirements None.