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.

95 lines
1.9 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. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. #define MAX_ENDPOINT_LEN 11 // Max length of DWORD as a string "4294967296"
  28. #define NT_PIPE_PREFIX _T("\\PIPE\\")
  29. #define WCSSIZE(s) ((wcslen(s)+1) * sizeof(WCHAR))
  30. #define TCSSIZE(s) ((_tcslen(s)+1) * sizeof(TCHAR))
  31. //
  32. // Function Prototypes - routines called by MIDL-generated code:
  33. //
  34. void * __stdcall
  35. MIDL_user_allocate(
  36. IN size_t NumBytes
  37. );
  38. void __stdcall
  39. MIDL_user_free(
  40. IN void *MemPointer
  41. );
  42. //
  43. // Function Prototypes - routines to go along with the above, but aren't
  44. // needed by MIDL or any other non-network software.
  45. //
  46. void *
  47. MIDL_user_reallocate(
  48. IN void * OldPointer OPTIONAL,
  49. IN unsigned long NewByteCount
  50. );
  51. unsigned long
  52. MIDL_user_size(
  53. IN void * Pointer
  54. );
  55. #ifdef __cplusplus
  56. } //extern "C"
  57. #endif
  58. #ifdef UNICODE
  59. #define RPC_TCHAR TCHAR
  60. #else
  61. #define RPC_TCHAR unsigned char
  62. #endif
  63. #define RPC_SERVER_PRINCIPAL_NAME (RPC_TCHAR *)(TEXT("f7a9e6cc-90d5-49c6-accd-6ece99e2779c-SharedFaxServer"))
  64. #define RPC_PROT_SEQ_TCP_IP (LPCTSTR)_T("ncacn_ip_tcp")
  65. #define RPC_PROT_SEQ_NP (LPCTSTR)_T("ncacn_np")
  66. #endif // _NTRPCP_