Object Model Reference : Classes : C : CorelScriptTools : Methods : CorelScriptTools.GetProcessInfo |
Function GetProcessInfo(ProcessHandle As Long) As Long
Member of CorelScriptTools
The GetProcessInfo method returns the status of an executable.
Parameter
|
Description
|
ProcessHandle
|
Specifies the Windows Process Handle of an executable. Use the StartProcess function to determine the Windows Process Handle for an executable.
|
The GetProcessInfo method returns a numeric variable that is passed a value that indicates whether an executable is running. If the executable is running, this variable is passed the value 259.
The following VBA example launches the Windows Calculator and passes the Windows Process Handle to the launch variable. The launch variable is used with the GetProcessInfo function to determine whether the Calculator is running.
launch = STARTPROCESS ("C:\WINDOWS\CALC.EXE") |
... 'other script statements |
... 'other script statements |
... 'other script statements |
Calc_Status = GETPROCESSINFO (launch) |
Copyright 2013 Corel Corporation. All rights reserved.