Previous Document Next Document
CorelScriptTools.GetAppHandle

Function GetAppHandle() As Long

Member of CorelScriptTools

The GetAppHandle method returns the Application Instance Handle for the Corel application that is running a script. For example, if you are running the script from the Corel Script Editor, GetAppHandle returns the Application Instance Handle for the Editor; if you run a script from Corel VENTURA, GetApphandle the Application Instance Handle for VENTURA. This function is used in conjunction with DLL calls that require the application’s handle.

The return value specifies a numeric variable that is passed the Application Instance Handle.

Here is a code example:

hand = GETAPPHANDLE() 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.