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.

87 lines
1.8 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1996 - 1999
  6. //
  7. // File: rpcrt.idl
  8. //
  9. //--------------------------------------------------------------------------
  10. [
  11. uuid(19bb5061-2e68-101b-b4d9-00000b65c782),
  12. version(1.0)
  13. ]
  14. interface RpcRuntimeScalePerf
  15. {
  16. //
  17. // Test cases.
  18. //
  19. [v1_enum]
  20. typedef enum {
  21. NULL_CALL,
  22. NI_CALL,
  23. BUFFER_CALL,
  24. MAYBE_CALL,
  25. BIND_CALL
  26. } TEST_TYPE;
  27. const unsigned long TEST_MAX = 5;
  28. //
  29. // Client test case control functions follow
  30. //
  31. const unsigned long PERF_TOO_MANY_CLIENTS = 20001;
  32. const unsigned long PERF_TESTS_DONE = 20002;
  33. // blocking
  34. error_status_t
  35. BeginTest([in] handle_t Binding,
  36. [out] unsigned long *ClientId,
  37. [out] unsigned long *TestCase,
  38. [out] unsigned long *InSize,
  39. [out] unsigned long *OutSize
  40. );
  41. //
  42. // Test APis
  43. //
  44. [idempotent] unsigned long
  45. NullCall(
  46. [in] handle_t Binding,
  47. [in] unsigned long ClientId
  48. );
  49. [idempotent, maybe] void
  50. MaybeCall(
  51. [in] handle_t Binding,
  52. [in] unsigned long ClientId
  53. );
  54. unsigned long
  55. NICall(
  56. [in] handle_t Binding,
  57. [in] unsigned long ClientId
  58. );
  59. [idempotent] unsigned long
  60. BufferCall(
  61. [in] handle_t Binding,
  62. [in] unsigned long ClientId,
  63. [in] long cRequest,
  64. [in, size_is(cRequest)] byte bRequest[],
  65. [in] long cReply,
  66. [out, size_is(cReply)] byte bReply[]
  67. );
  68. // Input: RPC header + 12 bytes + in bytes of data
  69. // Output: RPC header + 4 bytes + out bytes of data
  70. const unsigned long IN_ADJUSTMENT = 20;
  71. const unsigned long OUT_ADJUSTMENT = 12;
  72. }