windows-nt/Source/XPSP1/NT/inetsrv/iis/admin/certmap/wrapmaps.h

60 lines
1.4 KiB
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
// wrapmaps.h --
#ifndef _wrapmaps_h__31598_
#define _wrapmaps_h__31598_
// see iismap.hxx for the parental classes
//--------------------------------------------------------
class C11Mapping
{
public:
#define NEW_OBJECT 0xFFFFFFFF
C11Mapping() :
m_fEnabled(TRUE),
m_pCert(NULL),
m_cbCert(0),
iMD(NEW_OBJECT)
{;}
~C11Mapping()
{
if ( m_pCert )
GlobalFree( m_pCert );
}
BOOL GetCertificate( PUCHAR* ppCert, DWORD* pcbCert );
BOOL SetCertificate( PUCHAR pCert, DWORD cbCert );
BOOL GetNTAccount( CString &szAccount );
BOOL SetNTAccount( CString szAccount );
BOOL GetNTPassword( CString &szAccount );
BOOL SetNTPassword( CString szAccount );
BOOL GetMapName( CString &szName );
BOOL SetMapName( CString szName );
BOOL GetMapEnabled( BOOL* pfEnabled );
BOOL SetMapEnabled( BOOL fEnabled );
// BOOL GetMapIndex( DWORD* pIndex );
// BOOL SetMapIndex( DWORD index );
// name of this mapping's name in the metabase. If it is not in the metabase
// (its new), then value is NEW_OBJECT
DWORD iMD;
protected:
#define BUFF_SIZE MAX_PATH
CString m_szAccount;
CString m_szPassword;
CString m_szName;
BOOL m_fEnabled;
PVOID m_pCert;
DWORD m_cbCert;
};
#endif /* _wrapmaps_h__31598_ */