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.

59 lines
1.4 KiB

  1. // wrapmaps.h --
  2. #ifndef _wrapmaps_h__31598_
  3. #define _wrapmaps_h__31598_
  4. // see iismap.hxx for the parental classes
  5. //--------------------------------------------------------
  6. class C11Mapping
  7. {
  8. public:
  9. #define NEW_OBJECT 0xFFFFFFFF
  10. C11Mapping() :
  11. m_fEnabled(TRUE),
  12. m_pCert(NULL),
  13. m_cbCert(0),
  14. iMD(NEW_OBJECT)
  15. {;}
  16. ~C11Mapping()
  17. {
  18. if ( m_pCert )
  19. GlobalFree( m_pCert );
  20. }
  21. BOOL GetCertificate( PUCHAR* ppCert, DWORD* pcbCert );
  22. BOOL SetCertificate( PUCHAR pCert, DWORD cbCert );
  23. BOOL GetNTAccount( CString &szAccount );
  24. BOOL SetNTAccount( CString szAccount );
  25. BOOL GetNTPassword( CString &szAccount );
  26. BOOL SetNTPassword( CString szAccount );
  27. BOOL GetMapName( CString &szName );
  28. BOOL SetMapName( CString szName );
  29. BOOL GetMapEnabled( BOOL* pfEnabled );
  30. BOOL SetMapEnabled( BOOL fEnabled );
  31. // BOOL GetMapIndex( DWORD* pIndex );
  32. // BOOL SetMapIndex( DWORD index );
  33. // name of this mapping's name in the metabase. If it is not in the metabase
  34. // (its new), then value is NEW_OBJECT
  35. DWORD iMD;
  36. protected:
  37. #define BUFF_SIZE MAX_PATH
  38. CString m_szAccount;
  39. CString m_szPassword;
  40. CString m_szName;
  41. BOOL m_fEnabled;
  42. PVOID m_pCert;
  43. DWORD m_cbCert;
  44. };
  45. #endif /* _wrapmaps_h__31598_ */