Windows Calls
Â
Â
The prototype for the HLLAPI calls is defined as follows:
VOID FAR PASCAL
WinHLLAPI (LPWORD lpwFunction, LPBYTE lpbyString, LPWORD lpwLength, LPWORD lpwReturnCode);
Â
The first argument of this function is a pointer to the number of the HLLAPI function you want to call. Â This parameter must be specified for every HLLAPI call. Â The other three arguments vary depending on which function you are calling. Â They will always be present but they have different meanings for different functions. Â Please check the HLLAPI documentation (Winhlapi.hlp) in the samples directory for important details.
Â
The prototypes for the Windows Extension calls are:
HANDLE WinHLLAPIAsync(hWnd, lpwFunction, lpbyString, lpwLength, lpwReturnCode);
BOOL WinHLLAPIIsBlocking(void);
int WinHLLAPICancelAsyncRequest(HANDLE hAsyncTaskID, WORD wFunction);
int WinHLLAPICancelBlockingCall(void);
FARPROC WinHLLAPISetBlockingHook(FARPROC lpBlockFunc);
BOOL WinHLLAPIUnhookBlockingHook(void);
BOOL WinHLLAPICleanup(void);
int WinHLLAPIStartup(WORD wVersionRequired, LPWHLLAPIDATA lpData);
Details of the actual Windows HLLAPI implementation are described in the WHLLAPIDATA structure defined as follows:
typedef struct tagWHLLAPIDATA
{
        WORD wVersion;
        char szDescription[WHLLDESCRIPTION_LEN + 1];
} WHLLAPIDATA, * PWHLLAPIDATA, FAR * LPWHLLAPIDATA;
Â
Â
Â