Here is the code:
// Global Definitions/Declarations:
typedef void * LOGHANDLE;
typedef LOGHANDLE (STD_CALL *LogOpen_T)
(unsigned char *,
unsigned char *,
unsigned long,
unsigned long *);
LogOpen_T LogOpen;
// Inside some function:
...
LogOpen = (LogOpen_T)ImportSymbol(moduleHandle, "LogOpen" );
if (LogOpen == NULL)
{
err = -2;
}
...
I am not able to understand how the typedef
is been used here. Please explain.