home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / convdll.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  1KB  |  51 lines

  1. // --convdll.h------------------------------------------------------------------
  2. // 
  3. // Defines the DLL access class
  4. //
  5. // Copyright 1986 - 1998 Microsoft Corporation.  All Rights Reserved.
  6. //
  7. // -----------------------------------------------------------------------------
  8.  
  9. #if !defined(_CONVDLL_H)
  10. #define _CONVDLL_H
  11.  
  12. //$$--CEDKConvDll---------------------------------------------------------------
  13. //
  14. //  DESCRIPTION: class that manages loading DLLs.
  15. //
  16. // ---------------------------------------------------------------------------
  17. class CEDKConvDll
  18. {
  19. public:
  20.     CEDKConvDll(
  21.         IN CDllEntryPoint * pep, 
  22.         IN HANDLE hEventSource) ;
  23.     ~CEDKConvDll() ;
  24.  
  25.     HRESULT HrEDKLoad() ;
  26.     HRESULT HrEDKUnLoad() ;
  27.  
  28.     HRESULT HrEDKQueryCapability(
  29.         IN PEDKCNVENV pEnv,
  30.         IN LPCWSTR pszContentClass,
  31.         IN PVOID pContent,
  32.         OUT BOOL &bAmCandidate) ;
  33.  
  34.     HRESULT HrEDKConvert(
  35.         IN PEDKCNVENV pEnv,
  36.         IN LPCWSTR pszContentClass,
  37.         IN PVOID pContentIn,
  38.         OUT PVOID pContentOut,
  39.         OUT EDKCNVRES & crResult) ;
  40.  
  41. protected:
  42.     CDllEntryPoint * m_pepEntry ;       // DLL and entry pont.
  43.     
  44.     HINSTANCE m_hDll ;                     // DLL handle.
  45.  
  46.     PCONVDLLVECT m_pDllVector ;         // Vector.
  47.     HANDLE m_hEventSource ;
  48. } ; 
  49.  
  50. #endif
  51.