Previous Document Next Document

Object Model Reference : Classes : C : CorelScriptTools : Methods : CorelScriptTools.GetProcessInfo


CorelScriptTools.GetProcessInfo

Function GetProcessInfo(ProcessHandle As Long) As Long

Description

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.

Example

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)

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.