Previous Document Next Document
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 an executable’s Windows Process Handle.

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

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.