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.

157 lines
4.5 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. registry.h
  5. Abstract:
  6. Definitions for H.323 TAPI Service Provider registry routines.
  7. Environment:
  8. User Mode - Win32
  9. Revision History:
  10. --*/
  11. #ifndef _INC_REGISTRY
  12. #define _INC_REGISTRY
  13. ///////////////////////////////////////////////////////////////////////////////
  14. // //
  15. // Type definitions //
  16. // //
  17. ///////////////////////////////////////////////////////////////////////////////
  18. typedef struct _H323_REGISTRY_SETTINGS {
  19. DWORD dwQ931AlertingTimeout; // q931 alerting timeout
  20. DWORD dwQ931CallSignallingPort; // port to listen for incoming calls
  21. DWORD dwG711MillisecondsPerPacket; // milliseconds in each audio packet
  22. DWORD dwG723MillisecondsPerPacket; // milliseconds in each audio packet
  23. BOOL fIsGatewayEnabled; // if true, gateway enabled
  24. BOOL fIsProxyEnabled; // if true, proxy enabled
  25. CC_ADDR ccGatewayAddr; // H.323 gateway address
  26. CC_ADDR ccProxyAddr; // H.323 proxy address
  27. #if DBG
  28. DWORD dwLogType; // debug log type
  29. DWORD dwLogLevel; // debug log level
  30. DWORD dwH245LogLevel; // debug log level for H.245
  31. DWORD dwH225LogLevel; // debug log level for H.225
  32. DWORD dwQ931LogLevel; // debug log level for Q.931
  33. DWORD dwLinkLogLevel; // debug log level for link layer
  34. CHAR szLogFile[H323_DEBUG_MAXPATH+1];
  35. #endif // DBG
  36. } H323_REGISTRY_SETTINGS, *PH323_REGISTRY_SETTINGS;
  37. ///////////////////////////////////////////////////////////////////////////////
  38. // //
  39. // Registry key definitions //
  40. // //
  41. ///////////////////////////////////////////////////////////////////////////////
  42. #define TAPI_REGKEY_ROOT \
  43. TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Telephony")
  44. #define TAPI_REGKEY_PROVIDERS \
  45. TAPI_REGKEY_ROOT TEXT("\\Providers")
  46. #define TAPI_REGVAL_NUMPROVIDERS \
  47. TEXT("NumProviders")
  48. #define WINDOWS_REGKEY_ROOT \
  49. TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion")
  50. #define H323_SUBKEY \
  51. TEXT("H323TSP")
  52. #define H323_REGKEY_ROOT \
  53. WINDOWS_REGKEY_ROOT TEXT("\\") H323_SUBKEY
  54. #define H323_REGVAL_CALLSIGNALLINGPORT \
  55. TEXT("Q931CallSignallingPort")
  56. #define H323_REGVAL_Q931ALERTINGTIMEOUT \
  57. TEXT("Q931AlertingTimeout")
  58. #define H323_REGVAL_G711MILLISECONDSPERPACKET \
  59. TEXT("G711MillisecondsPerPacket")
  60. #define H323_REGVAL_G723MILLISECONDSPERPACKET \
  61. TEXT("G723MillisecondsPerPacket")
  62. #define H323_REGVAL_GATEWAYENABLED \
  63. TEXT("H323GatewayEnabled")
  64. #define H323_REGVAL_PROXYENABLED \
  65. TEXT("H323ProxyEnabled")
  66. #define H323_REGVAL_GATEWAYADDR \
  67. TEXT("H323GatewayAddress")
  68. #define H323_REGVAL_PROXYADDR \
  69. TEXT("H323ProxyAddress")
  70. #define H323_REGVAL_DEBUGLEVEL \
  71. TEXT("DebugLevel")
  72. #define H245_REGVAL_DEBUGLEVEL \
  73. TEXT("H245DebugLevel")
  74. #define H225_REGVAL_DEBUGLEVEL \
  75. TEXT("H225DebugLevel")
  76. #define Q931_REGVAL_DEBUGLEVEL \
  77. TEXT("Q931DebugLevel")
  78. #define LINK_REGVAL_DEBUGLEVEL \
  79. TEXT("LinkDebugLevel")
  80. #define H323_REGVAL_DEBUGLOG \
  81. TEXT("LogFile")
  82. #define H323_RTPBASEPORT 50000
  83. ///////////////////////////////////////////////////////////////////////////////
  84. // //
  85. // Global variables //
  86. // //
  87. ///////////////////////////////////////////////////////////////////////////////
  88. extern H323_REGISTRY_SETTINGS g_RegistrySettings;
  89. ///////////////////////////////////////////////////////////////////////////////
  90. // //
  91. // Public prototypes //
  92. // //
  93. ///////////////////////////////////////////////////////////////////////////////
  94. BOOL
  95. H323SetDefaultConfig(
  96. );
  97. BOOL
  98. H323GetConfigFromRegistry(
  99. );
  100. BOOL
  101. H323ListenForRegistryChanges(
  102. HANDLE hEvent
  103. );
  104. BOOL
  105. H323StopListeningForRegistryChanges(
  106. );
  107. #endif // _INC_REGISTRY