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.

69 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. main.h
  5. Abstract:
  6. The header file for the sample AuthZ mail resource manager test
  7. Author:
  8. t-eugenz - August 2000
  9. Environment:
  10. User mode only.
  11. Revision History:
  12. Created - August 2000
  13. --*/
  14. //
  15. // This structure defines an access attempt by psUser to access the mailbox of
  16. // the user psMailbox with amAccess access mask. psUser is coming in from dwIP
  17. // IP address
  18. //
  19. typedef struct
  20. {
  21. PSID psUser;
  22. PSID psMailbox;
  23. ACCESS_MASK amAccess;
  24. DWORD dwIP;
  25. } testStruct;
  26. //
  27. // This structure defines a mailbox to create, owned by psUser (with name szName
  28. // which is used for auditing). If bIsSensitive is true, the mailbox initially
  29. // is marked as containing sensitive data
  30. //
  31. typedef struct
  32. {
  33. PSID psUser;
  34. BOOL bIsSensitive;
  35. WCHAR * szName;
  36. } mailStruct;
  37. //
  38. // Forward declarations for functions in main.cpp
  39. //
  40. void PrintUser(const PSID psUser);
  41. void PrintPerm(ACCESS_MASK am);
  42. void PrintTest(testStruct tst);
  43. void GetAuditPrivilege();
  44. void PrintMultiTest(PMAILRM_MULTI_REQUEST pRequest,
  45. PMAILRM_MULTI_REPLY pReply,
  46. DWORD dwIdx);