API Documentation > CorelDRAW > 2025-v26 > CorelScriptTools > ICorelScriptTools
CorelScriptTools.GetProcessInfo method
Gets Process Info
Syntax:
Function GetProcessInfo(ByVal ProcessHandle As Long) As Long
Parameters:
Name Type Description
ProcessHandle
Long
Remarks:
The GetProcessInfo method returns the status of an executable.
Examples:
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)