Would this work?
Edit: I just realized that I don't have the register routines in here yet.Code:int regDll(char *dllPath) { if (strlen(dllPath) == 0) return 1; /* get handle to dll */ HINSTANCE hGetProcIDDLL = LoadLibrary(dllPath); /* get pointer to the function in the dll */ FARPROC lpfnGetProcessID = GetProcAddress(HMODULE(hGetProcIDDLL), "DummyFunction"); /* release DLL */ FreeLibrary(hGetProcIDDLL); return 0; } void DummyFunction (void) {};