Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Library.h

Go to the documentation of this file.
00001 #ifndef _WINNT_LIBRARY_H_
00002 #define _WINNT_LIBRARY_H_
00003 
00004 #include "OSDependent/OSDependent.h"
00005 
00006 /*
00007  * Class to dynamically load a library for WinNT.
00008  */
00009 class ClassExport Library {
00010 private:
00011   HINSTANCE _handle;
00012 
00013 public:
00014   Library();
00015   ~Library();
00016  
00017   /*
00018    * Mode to open library.
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_

Generated on Mon Oct 7 09:33:29 2002 for Gaia by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001