mirror of https://github.com/tongzx/nt5src
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
59 lines
1.4 KiB
// 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_ */
|