home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 May / PCFMay2001.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / convdlle.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  1.5 KB  |  49 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. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  11. #define _CONVDLLE_H
  12.  
  13. //$$--CDllEntryPoint-----------------------------------------------------------
  14. //
  15. //  DESCRIIPTION: class that represetns entry point info.  Manages reference couting.
  16. //
  17. // ---------------------------------------------------------------------------
  18. class CDllEntryPoint
  19. {
  20. protected:
  21.     LPWSTR m_pszDllName ;
  22.     LPSTR  m_pszEntryPoint ;
  23.     LPWSTR m_pszGwPoint ;
  24.     LPWSTR m_pszOptions ;
  25.  
  26.     WORD m_nRefs ;                // reference count.
  27.  
  28. public:
  29.     CDllEntryPoint() ;
  30.     ~CDllEntryPoint() ;
  31.  
  32.     void AddRef() { DEBUGPRIVATE("CDLLEntryPoint::AddRef()\n"); m_nRefs++; }
  33.     void Release() ;
  34.     void EDKFree() ;
  35.  
  36.     void EDKDump() ;
  37.  
  38.     HRESULT HrEDKSet(LPCWSTR pszDllName, LPCWSTR pszEntryPoint, LPCWSTR pszGwPoint, LPCWSTR pszOptions) ;
  39.  
  40.     // standard get member functions
  41.     LPWSTR const pszDllName()    { return (m_pszDllName) ; }
  42.     LPSTR  const pszEntryPoint() { return (m_pszEntryPoint) ; }
  43.     LPWSTR const pszGwPoint()    { return (m_pszGwPoint); }
  44.     LPWSTR const pszOptions()    { return (m_pszOptions); }
  45. } ;
  46.  
  47. #pragma option pop /*P_O_Pop*/
  48. #endif
  49.