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.

92 lines
2.5 KiB

  1. //--------------------------------------------------------------------
  2. // Copyright (C)1998 Microsoft Corporation, All Rights Reserved
  3. //
  4. // registry.h
  5. //
  6. // Constants for registration of the ncacn_http RpcProxy with
  7. // the registry and IIS MetaBase.
  8. //
  9. //
  10. //--------------------------------------------------------------------
  11. #ifndef _MBASE_H_
  12. #define _MBASE_H_
  13. //--------------------------------------------------------------------
  14. // Registry constants:
  15. //--------------------------------------------------------------------
  16. #ifdef DBG
  17. #define DBG_REG
  18. #endif
  19. #define MAX_TCPIP_HOST_NAME 512
  20. #define REG_RPC_PATH TEXT("Software\\Microsoft\\Rpc")
  21. #define REG_RPCPROXY TEXT("RpcProxy")
  22. #define REG_ENABLED TEXT("Enabled")
  23. #define REG_VALID_PORTS TEXT("ValidPorts")
  24. #define REG_PORT_RANGE TEXT(":100-5000")
  25. //--------------------------------------------------------------------
  26. // MetaBase constants:
  27. //--------------------------------------------------------------------
  28. #define ORIGINAL_BUFFER_SIZE 512
  29. #define MAX_USED_BUFFER_SIZE 400
  30. #define SYSTEM_ROOT TEXT("SystemRoot")
  31. #define RPCPROXY_PATH TEXT("\\System32\\RpcProxy")
  32. #define RPCPROXY TEXT("RpcProxy")
  33. #define RPCPROXY_DLL TEXT("RpcProxy.dll")
  34. #define LOCAL_MACHINE_W3SVC TEXT("/LM/W3SVC")
  35. #define APP_ROOT_PATH TEXT("/LM/W3SVC/1/Root/rpc")
  36. #define APP_FRIENDLY_NAME TEXT("rpc")
  37. #define APP_WAM_CLSID TEXT("{BF285648-0C5C-11D2-A476-0000F8080B50}")
  38. #define IISFILTER TEXT("IIsFilter")
  39. #define IIS_WEB_VIRTUAL_DIR TEXT("IIsWebVirtualDir")
  40. #define MD_KEY_FILTERS TEXT("Filters")
  41. #define MD_KEY_FILTERS_RPCPROXY TEXT("Filters/RpcProxy")
  42. #define MD_KEY_ROOT_RPC TEXT("1/ROOT/Rpc")
  43. #define ACCESS_PERM_FLAGS MD_ACCESS_EXECUTE
  44. #define DIRECTORY_BROWSING_FLAGS 0x4000001E
  45. #ifdef __cplusplus
  46. extern "C" {
  47. #endif // __cplusplus
  48. BOOL
  49. UpdateIsIISInCompatibilityMode (
  50. void
  51. );
  52. RPC_STATUS
  53. GetIISConnectionTimeout(
  54. OUT ULONG *ConnectionTimeout
  55. );
  56. const BYTE *GetEchoRTS (
  57. OUT ULONG *EchoRTSSize
  58. );
  59. void
  60. LogEventStartupSuccess (
  61. IN char *IISMode
  62. );
  63. extern const WCHAR * const EVENT_LOG_SOURCE_NAME;
  64. extern const WCHAR * const EVENT_LOG_KEY_NAME;
  65. extern const ULONG EVENT_LOG_CATEGORY_COUNT;
  66. #ifdef __cplusplus
  67. };
  68. #endif // __cplusplus
  69. #endif //_MBASE_H_