Source code of Windows XP (NT5)
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.

78 lines
1.3 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1994 - 1999
  3. Module Name:
  4. lpctest.h
  5. Abstract:
  6. Shared include file for LPC performance test.
  7. Author:
  8. Mario Goertzel (mariogo) 30-Mar-1994
  9. Revision History:
  10. --*/
  11. #ifndef _LPC_HEADER
  12. #define _LPC_HEADER
  13. #define DEFAULT_PORT_DIR "\\RPC Control\\"
  14. #define DEFAULT_PORT_NAME "Default Port"
  15. #define MAX_CLIENTS 16
  16. #define PERF_BIND 1
  17. #define PERF_REQUEST 2
  18. #define PERF_REPLY 3
  19. #define PERF_SHARED_REQUEST 4
  20. #define PERF_SHARED_REPLY 5
  21. #define PERF_READ_CLIENT_BUFFER 6
  22. #define PERF_READ_SERVER_BUFFER 7
  23. typedef struct
  24. {
  25. PORT_MESSAGE Lpc;
  26. unsigned long MsgType;
  27. } LPC_PERF_COMMON;
  28. typedef struct
  29. {
  30. LPC_PERF_COMMON;
  31. char Buffer[PORT_MAXIMUM_MESSAGE_LENGTH - sizeof(LPC_PERF_COMMON)];
  32. } LPC_PERF_PACKET;
  33. typedef struct
  34. {
  35. LPC_PERF_COMMON;
  36. PORT_DATA_INFORMATION;
  37. } LPC_PERF_BUFFER;
  38. typedef struct
  39. {
  40. LPC_PERF_COMMON;
  41. } LPC_PERF_SHARED;
  42. typedef struct
  43. {
  44. LPC_PERF_COMMON;
  45. unsigned long BufferLengthIn;
  46. unsigned long BufferLengthOut;
  47. } LPC_PERF_BIND;
  48. typedef union
  49. {
  50. PORT_MESSAGE Lpc;
  51. LPC_PERF_COMMON Common;
  52. LPC_PERF_PACKET Packet;
  53. LPC_PERF_BUFFER Buffer;
  54. LPC_PERF_SHARED Shared;
  55. LPC_PERF_BIND Bind;
  56. } LPC_PERF_MESSAGE;
  57. #endif /* _LPC_HEADER */