Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
957 B

  1. /*++
  2. Copyright (C) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. LOADLIB.H
  5. History:
  6. --*/
  7. #ifndef ESPUTIL_LOADLIB_H
  8. #define ESPUTIL_LOADLIB_H
  9. #pragma warning(disable : 4251)
  10. class LTAPIENTRY CLoadLibrary
  11. {
  12. public:
  13. NOTHROW CLoadLibrary(void);
  14. NOTHROW CLoadLibrary(const CLoadLibrary &);
  15. NOTHROW BOOL LoadLibrary(const TCHAR *szFileName);
  16. NOTHROW BOOL FreeLibrary(void);
  17. NOTHROW void WrapLibrary(HINSTANCE);
  18. NOTHROW void operator=(const CLoadLibrary &);
  19. NOTHROW HINSTANCE GetHandle(void) const;
  20. NOTHROW HINSTANCE ExtractHandle(void);
  21. NOTHROW operator HINSTANCE(void) const;
  22. NOTHROW FARPROC GetProcAddress(const TCHAR *) const;
  23. NOTHROW const CString & GetFileName(void) const;
  24. NOTHROW ~CLoadLibrary();
  25. private:
  26. CString m_strFileName;
  27. HINSTANCE m_hDll;
  28. };
  29. #pragma warning(default : 4251)
  30. #if !defined(_DEBUG) || defined(IMPLEMENT)
  31. #include "loadlib.inl"
  32. #endif
  33. #endif