Leaked source code of windows server 2003
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.
|
|
#ifndef __ROLES_H_INCLUDED__
#define __ROLES_H_INCLUDED__
using namespace CertSrv;
typedef struct tagRoleAccessToControls { int nIDDlgItem; // control ID
DWORD dwRoles; // roles allowed to use this control
} RoleAccessToControl;
class CRolesSupportInPropPage { public: CRolesSupportInPropPage( CertSvrCA *pCA, RoleAccessToControl *pRoleMap, int nRoleMap) : m_pCA(pCA), m_pRoleMap(pRoleMap), m_nRoleMapEntries(nRoleMap) {} ~CRolesSupportInPropPage() {} bool RoleCanUseThisControl(int nID); BOOL EnableControl(HWND hwnd, int nID, BOOL bEnable);
CertSvrCA* m_pCA;
private:
RoleAccessToControl *m_pRoleMap; int m_nRoleMapEntries;
}; // CRolesSupportInPropPage
#endif // __ROLES_H_INCLUDED__
|