pilg_registerapp

This function registers the application with the PILOG32.DLL and should be called before calling any of the other PILOG32.DLL functions.

C format

HINSTANCE pilg_registerapp (

LPCSTR lpszDLLName)

Returns

>31

The instance handle of the loaded PI-API DLL

0

Not enough memory to load the library

23

The PI-API DLL is invalid.

Arguments

lpszDLLName(passed)

name of the PI-API DLL - pointer to a null terminated string.

Usage Notes

This function should be the first one called before using PI login functions. The argument is typically "piapi32.dll". Upon successful completion it gives access to the services provided by PILOG32.DLL.

Enabling Operational Intelligence