00001
00010 #ifndef DKUTIL_C_DLL_H
00011 #define DKUTIL_C_DLL_H
00012
00013 #include "dkcOSIndependent.h"
00014
00015 typedef struct dkc_DLL{
00016 #ifdef _WIN32
00017 HMODULE mHandle;
00018 #else
00019 void *mHandle;
00020 #endif
00021 }DKC_DLL;
00022
00024 DKC_EXTERN DKC_DLL* WINAPI dkcLoadLibrary(const char *filename);
00026 DKC_EXTERN void* WINAPI dkcGetProcAddress(DKC_DLL *dll,const char *id);
00028 DKC_EXTERN int WINAPI dkcUnloadLibrary(DKC_DLL **pp);
00029
00030 #ifdef WIN32
00031
00032 #define dkcGetProcWin32(dll,id) ((DKC_WINAPI_PROC_F_TYPE *)dkcGetProcAddress(dll,id));
00033
00034
00035
00036 #endif
00037
00038 #endif //end of include once