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.

107 lines
3.1 KiB

  1. /****************************************************************************
  2. *
  3. * $Archive: S:/STURGEON/SRC/CALLCONT/VCS/gkiman.h_v $
  4. *
  5. * INTEL Corporation Prorietary Information
  6. *
  7. * This listing is supplied under the terms of a license agreement
  8. * with INTEL Corporation and may not be copied nor disclosed except
  9. * in accordance with the terms of that agreement.
  10. *
  11. * Copyright (c) 1996 Intel Corporation.
  12. *
  13. * $Revision: 1.19 $
  14. * $Date: 27 Jan 1997 16:29:40 $
  15. * $Author: EHOWARDX $
  16. *
  17. * Deliverable:
  18. *
  19. * Abstract:
  20. *
  21. * Notes:
  22. *
  23. ***************************************************************************/
  24. #ifdef GATEKEEPER
  25. #ifndef GKIMAN_H
  26. #define GKIMAN_H
  27. //extern HINSTANCE hGkiDll;
  28. extern BOOL fGKConfigured;
  29. extern BOOL fGKEnabled;
  30. #define GKIExists() (fGKConfigured && fGKEnabled)
  31. typedef enum _CHANNELTYPE
  32. {
  33. TX,
  34. RX
  35. } CHANNELTYPE;
  36. typedef struct _BWREQ
  37. {
  38. struct _BWREQ * pNext;
  39. unsigned int uChannelBandwidth;
  40. CC_HCHANNEL hChannel;
  41. CHANNELTYPE Type;
  42. } BWREQ, *PBWREQ;
  43. typedef enum _CALLTYPE
  44. {
  45. POINT_TO_POINT = 1,
  46. ONE_TO_MANY,
  47. MANY_TO_ONE,
  48. MANY_TO_MANY
  49. } CALLTYPE;
  50. typedef struct _GKICALL
  51. {
  52. struct _GKICALL * pNext;
  53. struct _BWREQ * pBwReqHead;
  54. struct _BWREQ * pBwReqTail;
  55. unsigned int uGkiCallState;
  56. #define GCS_START 0
  57. #define GCS_WAITING 1
  58. #define GCS_ADMITTING 2
  59. #define GCS_ADMITTING_CLOSE_PENDING 3
  60. #define GCS_ADMITTED 4
  61. #define GCS_CHANGING 5
  62. #define GCS_CHANGING_CLOSE_PENDING 6
  63. #define GCS_DISENGAGING 7
  64. void * pCall;
  65. CALLTYPE CallType;
  66. unsigned int uBandwidthRequested;
  67. unsigned int uBandwidthAllocated;
  68. unsigned int uBandwidthUsed;
  69. unsigned char *pConferenceId;
  70. BOOL bConferenceIdPresent;
  71. BOOL bActiveMC;
  72. BOOL bAnswerCall;
  73. BOOL bGatekeeperRouted;
  74. HANDLE hGkiCall;
  75. CC_HCALL hCall;
  76. DWORD dwIpAddress;
  77. unsigned short wPort;
  78. unsigned short usCallModelChoice;
  79. unsigned short usCallTypeChoice;
  80. unsigned short usCRV;
  81. PCC_ALIASNAMES pCalleeAliasNames;
  82. PCC_ALIASNAMES pCalleeExtraAliasNames;
  83. GUID CallIdentifier;
  84. } GKICALL, *PGKICALL, **PPGKICALL;
  85. HRESULT GkiSetRegistrationAliases(PCC_ALIASNAMES pLocalAliasNames);
  86. HRESULT GkiSetVendorConfig( PCC_VENDORINFO pVendorInfo,
  87. DWORD dwMultipointConfiguration);
  88. HRESULT GkiOpenListen (CC_HLISTEN hListen, PCC_ALIASNAMES pAliasNames, DWORD dwAddr, WORD wPort);
  89. HRESULT GkiListenAddr (SOCKADDR_IN* psin);
  90. HRESULT GkiCloseListen (CC_HLISTEN hListen);
  91. HRESULT GkiOpenCall (PGKICALL pGkiCall, void *pConference);
  92. HRESULT GkiCloseCall (PGKICALL pGkiCall);
  93. HRESULT GkiFreeCall (PGKICALL pGkiCall);
  94. HRESULT GkiOpenChannel (PGKICALL pGkiCall, unsigned uChannelBandwidth, CC_HCHANNEL hChannel, CHANNELTYPE Type);
  95. HRESULT GkiCloseChannel(PGKICALL pGkiCall, unsigned uChannelBandwidth, CC_HCHANNEL hChannel);
  96. #endif // GKIMAN_H
  97. #endif // GATEKEEPER
  98.