How to Obtain the Current Instance Handle of an .FLL File (115991)
The information in this article applies to:
- Microsoft FoxPro Library Construction Kit for MS-DOS 2.5x
- Microsoft FoxPro Library Construction Kit for MS-DOS 2.6x
- Microsoft Visual FoxPro for Windows, Professional Edition 3.0
- Microsoft Visual FoxPro for Windows, Professional Edition 3.0b
This article was previously published under Q115991 SUMMARY
Within a standard Windows dynamic-link library (DLL), the instance handle
of the current .DLL is passed to the function through the LibMain() API
function. In a FoxPro-link library (FLL), you do not have access to the
LibMain() function.
In FoxPro versions 2.x, you have access to a global variable called Inst.
Within this global variable is the current instance handle. However, if you
are using Visual FoxPro version 3.0, you can use the FoxPro API call
_GetAPIHandle() to obtain the the current instance handle.
REFERENCES
Library Construction Kit "Developer's Guide," version 2.5, page 31
Modification Type: | Major | Last Reviewed: | 10/15/2003 |
---|
Keywords: | kbcode KB115991 |
---|
|