How to Obtain the Current Instance Handle of an .FLL File
Article ID: 115991
Article Last Modified on 10/15/2003
APPLIES TO
- Microsoft FoxPro Library Construction Kit 2.5b for MS-DOS
- Microsoft FoxPro Library Construction Kit 2.6 for MS-DOS
- Microsoft Visual FoxPro 3.0 Professional Edition
- Microsoft Visual FoxPro 3.0b Professional Edition
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
Additional query words: FoxDos FoxWin VFoxWin 2.50 2.50a 2.50b 2.60 2.60a 3.00 3.00b lck api
Keywords: kbcode KB115991