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.

60 lines
1.5 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. qospol.h - QOS policy elements
  5. Abstract:
  6. This module defines QOS policy elements.
  7. Revision History:
  8. --*/
  9. #ifndef __QOSPOL_H_
  10. #define __QOSPOL_H_
  11. #define PE_TYPE_APPID 3 // policy element contains Application Identity
  12. // Policy Location attribute carries sub application attributes
  13. #define PE_ATTRIB_TYPE_POLICY_LOCATOR 1
  14. #define POLICY_LOCATOR_SUB_TYPE_ASCII_DN 1
  15. #define POLICY_LOCATOR_SUB_TYPE_UNICODE_DN 2
  16. #define POLICY_LOCATOR_SUB_TYPE_ASCII_DN_ENC 3
  17. #define POLICY_LOCATOR_SUB_TYPE_UNICODE_DN_ENC 4
  18. // Credentials attribute carries the application identity
  19. #define PE_ATTRIB_TYPE_CREDENTIAL 2
  20. #define CREDENTIAL_SUB_TYPE_ASCII_ID 1
  21. #define CREDENTIAL_SUB_TYPE_UNICODE_ID 2
  22. #define CREDENTIAL_SUB_TYPE_KERBEROS_TKT 3
  23. #define CREDENTIAL_SUB_TYPE_X509_V3_CERT 4
  24. #define CREDENTIAL_SUB_TYPE_PGP_CERT 5
  25. // Identity Policy Element attribute structure
  26. typedef struct _IDPE_ATTR {
  27. USHORT PeAttribLength;
  28. UCHAR PeAttribType; // Use the #defines from above
  29. UCHAR PeAttribSubType; // Use the #defines from above
  30. UCHAR PeAttribValue[4];
  31. } IDPE_ATTR, *LPIDPE_ATTR;
  32. #define IDPE_ATTR_HDR_LEN (sizeof(USHORT)+sizeof(UCHAR)+sizeof(UCHAR))
  33. #define RSVP_BYTE_MULTIPLE(x) (((x+3) / 4) * 4)
  34. #endif // __QOSPOL_H_