Source code of Windows XP (NT5)
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.

74 lines
1022 B

  1. /*++
  2. Copyright (c) 1995 - 1997 Microsoft Corporation
  3. All rights reserved.
  4. Module Name:
  5. loadlib.hxx
  6. Abstract:
  7. Dynamic Library Loader
  8. Author:
  9. Steve Kiraly (SteveKi) 10/17/95
  10. Revision History:
  11. --*/
  12. #ifndef _LOADLIB_HXX
  13. #define _LOADLIB_HXX
  14. /********************************************************************
  15. Helper class to load and release a DLL. Use the bValid for
  16. library load validation.
  17. ********************************************************************/
  18. class TLibrary {
  19. public:
  20. TLibrary::
  21. TLibrary(
  22. IN LPCTSTR pszLibName
  23. );
  24. TLibrary::
  25. ~TLibrary(
  26. );
  27. BOOL
  28. TLibrary::
  29. bValid(
  30. VOID
  31. ) const;
  32. FARPROC
  33. TLibrary::
  34. pfnGetProc(
  35. IN LPCSTR pszProc
  36. ) const;
  37. FARPROC
  38. TLibrary::
  39. pfnGetProc(
  40. IN UINT uOrdinal
  41. ) const;
  42. HINSTANCE
  43. TLibrary::
  44. hInst(
  45. VOID
  46. ) const;
  47. private:
  48. HINSTANCE _hInst;
  49. };
  50. #endif // ndef _LOADLIB_HXX