Código:
typedef short (*OUT32_PTR) (short Addr);
typedef void (*INP32_PTR) (short Addr, short Port);
// . . .
HINSTANCE hModule = LoadLibrary("inpout32.dll");
if (hModule)
{
INP32_PTR Inp32 = (INP32_PTR)GetProcAddress(hModule, "Inp32");
OUT32_PTR Out32 = (OUT32_PTR)GetProcAddress(hModule, "Out32");
Inp32(Outp32(0x378), 1); // example
FreeLibrary(hModule);
}