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.

59 lines
1.8 KiB

  1. //[ IRawRpc_itf
  2. //+-------------------------------------------------------------------
  3. //
  4. // Interface: IRawRpc
  5. //
  6. // Purpose: Interface for testing Rpc calls via Raw Rpc interfaces
  7. //
  8. // History: 23-Nov-92 Rickhi Created
  9. //
  10. // Notes:
  11. //
  12. //--------------------------------------------------------------------
  13. [ uuid(00000145-0001-0008-C000-000000000046),
  14. pointer_default(unique) ]
  15. interface IRawRpc
  16. {
  17. import "wtypes.idl";
  18. // tells server process to exit.
  19. SCODE Quit([in] handle_t hRpc);
  20. // test passing void parameters
  21. SCODE Void([in] handle_t hRpc);
  22. SCODE VoidRC([in] handle_t hRpc);
  23. // test passing void ptr parameters ie byte arrays
  24. SCODE VoidPtrIn([in] handle_t hRpc,
  25. [in] ULONG cb,
  26. [in, size_is(cb)] BYTE *pv);
  27. SCODE VoidPtrOut([in] handle_t hRpc,
  28. [in] ULONG cb,
  29. [out] ULONG *pcb,
  30. [out, size_is(cb), length_is(*pcb)] BYTE *pv);
  31. // test passing dword parameters
  32. SCODE DwordIn([in] handle_t hRpc, [in] DWORD dw);
  33. SCODE DwordOut([in] handle_t hRpc, [out] DWORD *pdw);
  34. SCODE DwordInOut([in] handle_t hRpc, [in,out] DWORD *pdw);
  35. // test passing LARGE_INTEGER parameters
  36. SCODE LiIn([in] handle_t hRpc, [in] LARGE_INTEGER li);
  37. SCODE LiOut([in] handle_t hRpc, [out] LARGE_INTEGER *pli);
  38. SCODE ULiIn([in] handle_t hRpc, [in] ULARGE_INTEGER uli);
  39. SCODE ULiOut([in] handle_t hRpc, [out] ULARGE_INTEGER *puli);
  40. // test passing string parameters
  41. SCODE StringIn([in] handle_t hRpc, [in,string] LPWSTR pwsz);
  42. SCODE StringOut([in] handle_t hRpc, [out,string] LPWSTR *ppwsz);
  43. SCODE StringInOut([in] handle_t hRpc, [in,out,string] LPWSTR pwsz);
  44. // test passing GUID parameters
  45. SCODE GuidIn([in] handle_t hRpc, [in] GUID guid);
  46. SCODE GuidOut([in] handle_t hRpc, [out] GUID *pguid);
  47. }
  48. //]