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.

118 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1990,91 Microsoft Corporation
  3. Module Name:
  4. ntrpcp.h
  5. Abstract:
  6. This file contains prototypes for commonly used RPC functionality.
  7. This includes: bind/unbind functions, MIDL user alloc/free functions,
  8. and server start/stop functions.
  9. Author:
  10. Dan Lafferty danl 06-Feb-1991
  11. Environment:
  12. User Mode - Win32
  13. Revision History:
  14. 06-Feb-1991 danl
  15. Created
  16. 26-Apr-1991 JohnRo
  17. Added IN and OUT keywords to MIDL functions. Commented-out
  18. (nonstandard) identifier on endif. Deleted tabs.
  19. 03-July-1991 JimK
  20. Commonly used aspects copied from LM specific file.
  21. --*/
  22. #ifndef _NTRPCP_
  23. #define _NTRPCP_
  24. //
  25. // Function Prototypes - routines called by MIDL-generated code:
  26. //
  27. void * __stdcall
  28. MIDL_user_allocate(
  29. IN size_t NumBytes
  30. );
  31. void __stdcall
  32. MIDL_user_free(
  33. IN void *MemPointer
  34. );
  35. //
  36. // Function Prototypes - routines to go along with the above, but aren't
  37. // needed by MIDL or any other non-network software.
  38. //
  39. void *
  40. MIDL_user_reallocate(
  41. IN void * OldPointer OPTIONAL,
  42. IN size_t NewByteCount
  43. );
  44. unsigned long
  45. MIDL_user_size(
  46. IN void * Pointer
  47. );
  48. //
  49. // client side functions
  50. //
  51. DWORD
  52. RpcpBindRpc(
  53. IN LPCWSTR servername,
  54. IN LPCWSTR servicename,
  55. IN LPCWSTR networkoptions,
  56. OUT RPC_BINDING_HANDLE * pBindingHandle
  57. );
  58. DWORD
  59. RpcpUnbindRpc(
  60. IN RPC_BINDING_HANDLE BindingHandle
  61. );
  62. //
  63. // server side functions
  64. //
  65. DWORD
  66. RpcpInitRpcServer(
  67. VOID
  68. );
  69. DWORD
  70. RpcpAddInterface(
  71. IN LPWSTR InterfaceName,
  72. IN RPC_IF_HANDLE InterfaceSpecification
  73. );
  74. DWORD
  75. RpcpStartRpcServer(
  76. IN LPWSTR InterfaceName,
  77. IN RPC_IF_HANDLE InterfaceSpecification
  78. );
  79. DWORD
  80. RpcpDeleteInterface(
  81. IN RPC_IF_HANDLE InterfaceSpecification
  82. );
  83. DWORD
  84. RpcpStopRpcServer(
  85. IN RPC_IF_HANDLE InterfaceSpecification
  86. );
  87. #endif // _NTRPCP_