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.

57 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. EVENT.H
  5. Abstract:
  6. Contains the common data structures that should be put in one
  7. place in the tree.
  8. Author:
  9. Rajen Shah (rajens) 21-Aug-1991
  10. Revision History:
  11. --*/
  12. //
  13. // Switch to using the commonly defined (in ntdef.h) UNICODE_STRING
  14. // Do a munge to fix this if it works ok
  15. //
  16. typedef UNICODE_STRING RPC_UNICODE_STRING, *PRPC_UNICODE_STRING;
  17. //
  18. // RPC definition of the SID structure. Note the use of the [size_is()]
  19. // qualifier to specify the number of elements in the variable size
  20. // imbedded SubAuthorityCount array at runtime.
  21. //
  22. //
  23. typedef struct _RPC_SID {
  24. UCHAR Revision;
  25. UCHAR SubAuthorityCount;
  26. SID_IDENTIFIER_AUTHORITY IdentifierAuthority;
  27. [size_is(SubAuthorityCount)] ULONG SubAuthority[*];
  28. } RPC_SID, *PRPC_SID, **PPRPC_SID;
  29. //
  30. // ANSI counted string
  31. //
  32. typedef struct _RPC_STRING {
  33. USHORT Length;
  34. USHORT MaximumLength;
  35. // [size_is(MaximumLength+0), length_is(Length+1)] PCHAR Buffer;
  36. [size_is(MaximumLength)] PCHAR Buffer;
  37. } RPC_STRING, *PRPC_STRING, RPC_ANSI_STRING, *PRPC_ANSI_STRING;
  38. typedef struct _RPC_CLIENT_ID {
  39. ULONG UniqueProcess;
  40. ULONG UniqueThread;
  41. } RPC_CLIENT_ID, *PRPC_CLIENT_ID;