这是代码:
// 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;
}
...
我无法理解typedef
这里是如何使用的。请解释。