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

  1. // --convdlle.h-----------------------------------------------------------------
  2. // 
  3. // Defines an entry point to a conversion DLL.
  4. //
  5. // Copyright 1986 - 1998 Microsoft Corporation.  All Rights Reserved.
  6. //
  7. // -----------------------------------------------------------------------------
  8.  
  9. #if !defined(_CONVDLLE_H)
  10. #define _CONVDLLE_H
  11.  
  12. //$$--CDllEntryPoint-----------------------------------------------------------
  13. //
  14. //  DESCRIIPTION: class that represetns entry point info.  Manages reference couting.
  15. //
  16. // ---------------------------------------------------------------------------
  17. class CDllEntryPoint
  18. {
  19. protected:
  20.     LPWSTR m_pszDllName ;
  21.     LPSTR  m_pszEntryPoint ;
  22.     LPWSTR m_pszGwPoint ;
  23.     LPWSTR m_pszOptions ;
  24.  
  25.     WORD m_nRefs ;                // reference count.
  26.  
  27. public:
  28.     CDllEntryPoint() ;
  29.     ~CDllEntryPoint() ;
  30.  
  31.     void AddRef() { DEBUGPRIVATE("CDLLEntryPoint::AddRef()\n"); m_nRefs++; }
  32.     void Release() ;
  33.     void EDKFree() ;
  34.  
  35.     void EDKDump() ;
  36.  
  37.     HRESULT HrEDKSet(LPCWSTR pszDllName, LPCWSTR pszEntryPoint, LPCWSTR pszGwPoint, LPCWSTR pszOptions) ;
  38.  
  39.     // standard get member functions
  40.     LPWSTR const pszDllName()    { return (m_pszDllName) ; }
  41.     LPSTR  const pszEntryPoint() { return (m_pszEntryPoint) ; }
  42.     LPWSTR const pszGwPoint()    { return (m_pszGwPoint); }
  43.     LPWSTR const pszOptions()    { return (m_pszOptions); }
  44. } ;
  45.  
  46. #endif
  47.