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.

110 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. stiapi.h
  5. Abstract:
  6. Various definitions and constants, needed for internal client/server API interface
  7. Author:
  8. Vlad Sadovsky (vlads) 26-Jan-1997
  9. Revision History:
  10. 26-Jan-1997 VladS created
  11. --*/
  12. #ifndef _APIUTIL_H_
  13. #define _APIUTIL_h_
  14. # ifdef __cplusplus
  15. extern "C" {
  16. # endif // __cplusplus
  17. #ifdef MIDL_PASS
  18. #define RPC_STATUS long
  19. #define STI_API_STATUS long
  20. #define STI_API_FUNCTION stdcall
  21. #else
  22. # include <rpc.h>
  23. #endif // MIDL_PASS
  24. //
  25. // RPC utilities
  26. //
  27. //
  28. // COnnection options for named-pipe transport
  29. //
  30. # define PROT_SEQ_NP_OPTIONS_W L"Security=Impersonation Dynamic False"
  31. //
  32. // Transport sequences
  33. //
  34. //#define IRPC_LRPC_SEQ "mswmsg"
  35. #define STI_LRPC_SEQ TEXT("ncalrpc")
  36. //
  37. // Interface name for named-pipe transport
  38. //
  39. #define STI_INTERFACE "\\pipe\\stiapis"
  40. #define STI_INTERFACE_W L"\\pipe\\stiapis"
  41. //
  42. // Local RPC end-point
  43. //
  44. #define STI_LRPC_ENDPOINT TEXT("STI_LRPC")
  45. #define STI_LRPC_ENDPOINT_W L"STI_LRPC"
  46. //
  47. // Local RPC max concurrent calls
  48. //
  49. #define STI_LRPC_MAX_REQS RPC_C_LISTEN_MAX_CALLS_DEFAULT
  50. //
  51. // Number of concurrent RPC threads
  52. //
  53. #define STI_LRPC_THREADS 1
  54. //
  55. // Useful types
  56. //
  57. #ifdef UNICODE
  58. typedef unsigned short *RPC_STRING ;
  59. #else
  60. typedef unsigned char *RPC_STRING ;
  61. #endif
  62. extern PVOID
  63. MIDL_user_allocate( IN size_t Size);
  64. extern VOID
  65. MIDL_user_free( IN PVOID pvBlob);
  66. extern RPC_STATUS
  67. RpcBindHandleForServer( OUT handle_t * pBindingHandle,
  68. IN LPWSTR pwszServerName,
  69. IN LPWSTR pwszInterfaceName,
  70. IN LPWSTR pwszOptions
  71. );
  72. extern RPC_STATUS
  73. RpcBindHandleFree( IN OUT handle_t * pBindingHandle);
  74. # ifdef __cplusplus
  75. };
  76. # endif // __cplusplus
  77. #endif // _APIUTIL_H_