_GetAPIHandle( ) API Library Routine Example

The following example returns the handle of the current FLL.

Visual FoxPro Code

SET LIBR TO GETAPIHA.FLL
? GETAPIHAND( )

C Code

#include <pro_ext.h>

void getAPIHandle()
{
_RetInt((int) _GetAPIHandle(),15);

}

FoxInfo myFoxInfo[] =
{
   {"GETAPIHAND",  (FPFI) getAPIHandle, 0, ""},
};

FoxTable _FoxTable =
{
   (FoxTable  *) 0, sizeof(myFoxInfo)/sizeof(FoxInfo), myFoxInfo
};