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.

29 lines
944 B

  1. #ifndef _YNLIST_H
  2. #define _YNLIST_H
  3. typedef struct {
  4. LPTSTR pszzList; // Double NULL terminated list of directories
  5. UINT cbAlloc; // Space allocated to list, in BYTEs
  6. UINT cchUsed; // Space used in list, in CHARacters
  7. BOOL fEverythingInList; // TRUE if everything is considered on the list
  8. } DIRLIST, *PDIRLIST;
  9. typedef struct {
  10. DIRLIST dlYes; // List of YES directories
  11. DIRLIST dlNo; // List of NO directories
  12. } YNLIST, *PYNLIST;
  13. STDAPI_(void) CreateYesNoList(PYNLIST pynl);
  14. STDAPI_(void) DestroyYesNoList(PYNLIST pynl);
  15. STDAPI_(BOOL) IsInYesList(PYNLIST pynl, LPCTSTR szItem);
  16. STDAPI_(BOOL) IsInNoList(PYNLIST pynl, LPCTSTR szItem);
  17. STDAPI_(void) AddToYesList(PYNLIST pynl, LPCTSTR szItem);
  18. STDAPI_(void) AddToNoList(PYNLIST pynl, LPCTSTR szItem);
  19. STDAPI_(void) SetYesToAll(PYNLIST pynl);
  20. #endif // _YNLIST_H