home *** CD-ROM | disk | FTP | other *** search
/ ftp.rarlab.com / 2014.05.ftp.rarlab.com.tar / ftp.rarlab.com / rar / UnrarGUI.zip / DLLMan.h < prev    next >
C/C++ Source or Header  |  2003-12-21  |  710b  |  28 lines

  1. //---------------------------------------------------------------------------
  2.  
  3. #ifndef DLLManH
  4. #define DLLManH
  5. //---------------------------------------------------------------------------
  6. #include <Windows.h>
  7. #include <Winbase.h>
  8. #include <Sysutils.hpp>
  9. //---------------------------------------------------------------------------
  10. class DLLAbort : public Exception {
  11. public:
  12.     inline __fastcall DLLAbort(const AnsiString Msg) : Exception(Msg) { }
  13. };
  14.  
  15. class DLLMan {
  16. public:
  17.     HINSTANCE Hand;
  18.     DLLMan(char *DllName);
  19.  
  20.     void GetProcAddr(FARPROC &Proc, char *ProcName);
  21.     ~DLLMan();
  22.     #define GetProcess(Proc, ProcName) GetProcAddr((FARPROC)Proc, ProcName)
  23. };
  24.  
  25. #endif
  26.  
  27.  
  28.