Professional Documents
Culture Documents
Inpout 32
Inpout 32
HINSTANCE hLib;
inpfuncPtr inp32;
oupfuncPtr oup32;
int initLibrary()
{
/* Load the library */
hLib = LoadLibrary("inpout32.dll");
if (hLib == NULL) {
//printf("LoadLibrary Failed.\n");
return -1;
}
if (inp32 == NULL) {
//printf("GetProcAddress for Inp32 Failed.\n");
return -1;
}
if (oup32 == NULL) {
//printf("GetProcAddress for Oup32 Failed.\n");
return -1;
}
return 0;
}
void closeLibrary()
{
FreeLibrary(hLib);
}