00001 #ifndef _WINNT_LIBRARY_H_
00002 #define _WINNT_LIBRARY_H_
00003
00004 #include "OSDependent/OSDependent.h"
00005
00006
00007
00008
00009 class ClassExport Library {
00010 private:
00011 HINSTANCE _handle;
00012
00013 public:
00014 Library();
00015 ~Library();
00016
00017
00018
00019
00020 enum Mode { LAZY = 0, NOW = 1 };
00021
00022 int load(const char *libName, int mode = LAZY);
00023 int unload();
00024 void *getFuncPtr(const char *funcName) const;
00025
00026 static void getNativeLibName(const char *genericName, char *nativeName);
00027 };
00028
00029 #endif // _WINNT_LIBRARY_H_