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.

36 lines
820 B

  1. #ifndef __ROLES_H_INCLUDED__
  2. #define __ROLES_H_INCLUDED__
  3. using namespace CertSrv;
  4. typedef struct tagRoleAccessToControls
  5. {
  6. int nIDDlgItem; // control ID
  7. DWORD dwRoles; // roles allowed to use this control
  8. } RoleAccessToControl;
  9. class CRolesSupportInPropPage
  10. {
  11. public:
  12. CRolesSupportInPropPage(
  13. CertSvrCA *pCA,
  14. RoleAccessToControl *pRoleMap,
  15. int nRoleMap) :
  16. m_pCA(pCA),
  17. m_pRoleMap(pRoleMap),
  18. m_nRoleMapEntries(nRoleMap) {}
  19. ~CRolesSupportInPropPage() {}
  20. bool RoleCanUseThisControl(int nID);
  21. BOOL EnableControl(HWND hwnd, int nID, BOOL bEnable);
  22. CertSvrCA* m_pCA;
  23. private:
  24. RoleAccessToControl *m_pRoleMap;
  25. int m_nRoleMapEntries;
  26. }; // CRolesSupportInPropPage
  27. #endif // __ROLES_H_INCLUDED__