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.

32 lines
870 B

  1. #ifndef CHECKLIST_H
  2. #define CHECKLIST_H
  3. #include "ComUtil.h"
  4. typedef enum {
  5. BLANK = 0,
  6. CHECKED,
  7. GRAYCHECKED
  8. } CHKMARK;
  9. struct pSid9X // We need it because Win9X doesn't support SID API
  10. {
  11. LONG length;
  12. PSID psid;
  13. };
  14. class CCheckList
  15. {
  16. public:
  17. BOOL WINAPI Init(HWND);
  18. void WINAPI Term(void);
  19. int WINAPI AddString(HWND hwnd, LPTSTR ptszText, PSID pSID, LONG lSidLength, CHKMARK Check);
  20. BOOL WINAPI Mark(HWND , int , CHKMARK);
  21. void WINAPI InitFinish(HWND hwnd);
  22. CHKMARK WINAPI GetState(HWND hwnd, int iItem);
  23. void WINAPI GetName(HWND hwnd, int iItem, LPTSTR lpsName, int cchTextMax);
  24. void WINAPI GetSID(HWND hwnd, int iItem, PSID* ppSID, LONG *plengthSID);
  25. BOOL WINAPI SetState(HWND hwnd, int iItem, CHKMARK chkmrk);
  26. void WINAPI OnDestroy(HWND hwnd);
  27. };
  28. #endif CHECKLIST_H