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.

134 lines
4.5 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. globals.h
  5. Abstract:
  6. Global definitions for H.323 TAPI Service Provider.
  7. Environment:
  8. User Mode - Win32
  9. Revision History:
  10. 28-Mar-1997 DonRyan
  11. Created.
  12. --*/
  13. #ifndef _INC_GLOBALS
  14. #define _INC_GLOBALS
  15. ///////////////////////////////////////////////////////////////////////////////
  16. // //
  17. // Include files //
  18. // //
  19. ///////////////////////////////////////////////////////////////////////////////
  20. #include <nt.h>
  21. #include <ntrtl.h>
  22. #include <nturtl.h>
  23. #include <windef.h>
  24. #include <winsock2.h>
  25. #include <ws2tcpip.h>
  26. #include <incommon.h>
  27. #include <callcont.h>
  28. #include <tapi.h>
  29. #include <tspi.h>
  30. #include <h323pdu.h>
  31. #include "debug.h"
  32. #include "mem.h"
  33. ///////////////////////////////////////////////////////////////////////////////
  34. // //
  35. // Global variables //
  36. // //
  37. ///////////////////////////////////////////////////////////////////////////////
  38. extern WCHAR * g_pwszProviderInfo;
  39. extern WCHAR * g_pwszLineName;
  40. extern ASYNC_COMPLETION g_pfnCompletionProc;
  41. extern LINEEVENT g_pfnLineEventProc;
  42. extern HPROVIDER g_hProvider;
  43. extern HINSTANCE g_hInstance;
  44. extern WCHAR g_strAlias[MAX_ALIAS_LENGTH+1];
  45. extern DWORD g_dwAliasLength;
  46. ///////////////////////////////////////////////////////////////////////////////
  47. // //
  48. // String definitions //
  49. // //
  50. ///////////////////////////////////////////////////////////////////////////////
  51. #define H323_MAXADDRSPERLINE 1
  52. #define H323_MAXCALLSPERADDR 256 // limited by static H.245 instance table
  53. #define H323_MAXCALLSPERLINE (H323_MAXADDRSPERLINE * H323_MAXCALLSPERADDR)
  54. #define H323_DEFLINESPERINST 2
  55. #define H323_DEFCALLSPERLINE 8
  56. #define H323_DEFMEDIAPERCALL 4
  57. #define H323_DEFDESTNUMBER 4
  58. #define H323_MAXLINENAMELEN 16
  59. #define H323_MAXPORTNAMELEN 16
  60. #define H323_MAXADDRNAMELEN (H323_MAXLINENAMELEN + H323_MAXPORTNAMELEN)
  61. #define H323_MAXPATHNAMELEN 256
  62. #define H323_MAXDESTNAMELEN 256
  63. #define H323_MAXUSERNAMELEN 256
  64. #define H323_MAXDESTNUMBER 16
  65. #define H323_ADDRNAMEFORMAT L"%S"
  66. #define H323_DEVICECLASS T3_MSPDEVICECLASS
  67. #define H323_UIDLL L"H323.TSP"
  68. #define H323_TSPDLL "H323.TSP"
  69. #define H323_WINSOCKVERSION MAKEWORD(1,1)
  70. #define H221_COUNTRY_CODE_USA 0xB5
  71. #define H221_COUNTRY_EXT_USA 0x00
  72. #define H221_MFG_CODE_MICROSOFT 0x534C
  73. #define H323_PRODUCT_ID "Microsoft TAPI\0"
  74. #define H323_PRODUCT_VERSION "Version 3.0\0"
  75. #define MSP_HANDLE_UNKNOWN 0
  76. ///////////////////////////////////////////////////////////////////////////////
  77. // //
  78. // Macros //
  79. // //
  80. ///////////////////////////////////////////////////////////////////////////////
  81. #define H323AddrToAddrIn(_dwAddr_) \
  82. (*((struct in_addr *)&(_dwAddr_)))
  83. #define H323AddrToString(_dwAddr_) \
  84. (inet_ntoa(H323AddrToAddrIn(_dwAddr_)))
  85. #define H323SizeOfWSZ(wsz) \
  86. (((wsz) == NULL) ? 0 : ((wcslen(wsz) + 1) * sizeof(WCHAR)))
  87. #define H323GetNextIndex(_i_,_dwNumSlots_) \
  88. (((_i_) + 1) & ((_dwNumSlots_) - 1))
  89. #define H323GetNumStrings(_apsz_) \
  90. (sizeof(_apsz_)/sizeof(PSTR))
  91. #define H323GetPointer(_pBase_,_offset_) \
  92. ((LPBYTE)(_pBase_) + (DWORD)(_pBase_->_offset_))
  93. ///////////////////////////////////////////////////////////////////////////////
  94. // //
  95. // Miscellaneous definitions //
  96. // //
  97. ///////////////////////////////////////////////////////////////////////////////
  98. #define UNINITIALIZED ((DWORD)(-1))
  99. #define ANYSIZE (1)
  100. #endif // _INC_GLOBALS