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.

207 lines
6.3 KiB

  1. /****************************************************************************
  2. *
  3. * $Archive: S:/STURGEON/SRC/CALLCONT/VCS/ccutils.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) 1993-1994 Intel Corporation.
  12. *
  13. * $Revision: 1.40 $
  14. * $Date: 31 Jan 1997 20:36:02 $
  15. * $Author: MANDREWS $
  16. *
  17. * Deliverable:
  18. *
  19. * Abstract:
  20. *
  21. *
  22. * Notes:
  23. *
  24. ***************************************************************************/
  25. #define Malloc(size) malloc(size)
  26. #define Free(p) free(p)
  27. void * MallocDbg( DWORD dwSize,
  28. PSTR pszFile,
  29. int nLine);
  30. void FreeDbg( void * pMem,
  31. PSTR pszFile,
  32. int nLine);
  33. HRESULT InitializeLock( PLOCK pLock);
  34. HRESULT DeleteLock( PLOCK pLock);
  35. HRESULT AcquireLock( PLOCK pLock);
  36. HRESULT AcquireTimedLock( PLOCK pLock,
  37. DWORD dwTimeout,
  38. BOOL *pbTimedOut);
  39. HRESULT RelinquishLock( PLOCK pLock);
  40. BOOL EqualConferenceIDs( PCC_CONFERENCEID pConferenceID1,
  41. PCC_CONFERENCEID pConferenceID2);
  42. BOOL EqualAddrs( PCC_ADDR pAddr1,
  43. PCC_ADDR pAddr2);
  44. HRESULT ValidateOctetString( PCC_OCTETSTRING pOctetString);
  45. HRESULT CopyOctetString( PCC_OCTETSTRING *ppDest,
  46. PCC_OCTETSTRING pSource);
  47. HRESULT FreeOctetString( PCC_OCTETSTRING pOctetString);
  48. HRESULT CopySeparateStack( H245_ACCESS_T **ppDest,
  49. H245_ACCESS_T *pSource);
  50. HRESULT FreeSeparateStack( H245_ACCESS_T *pSeparateStack);
  51. HRESULT ValidateNonStandardData( PCC_NONSTANDARDDATA pNonStandardData);
  52. HRESULT CopyNonStandardData( PCC_NONSTANDARDDATA *ppDest,
  53. PCC_NONSTANDARDDATA pSource);
  54. HRESULT FreeNonStandardData( PCC_NONSTANDARDDATA pNonStandardData);
  55. HRESULT ValidateVendorInfo( PCC_VENDORINFO pVendorInfo);
  56. HRESULT CopyVendorInfo( PCC_VENDORINFO *ppDest,
  57. PCC_VENDORINFO pSource);
  58. HRESULT FreeVendorInfo( PCC_VENDORINFO pVendorInfo);
  59. HRESULT ValidateTermCapList( PCC_TERMCAPLIST pTermCapList);
  60. HRESULT ValidateTermCapDescriptors( PCC_TERMCAPDESCRIPTORS pTermCapDescriptors,
  61. PCC_TERMCAPLIST pTermCapList);
  62. HRESULT ValidateAddr( PCC_ADDR pAddr);
  63. HRESULT CopyAddr( PCC_ADDR *ppDest,
  64. PCC_ADDR pSource);
  65. HRESULT FreeAddr( PCC_ADDR pAddr);
  66. HRESULT SetQ931Port( PCC_ADDR pAddr);
  67. HRESULT ValidateDisplay( PWSTR pszDisplay);
  68. HRESULT CopyDisplay( PWSTR *ppDest,
  69. PWSTR pSource);
  70. HRESULT FreeDisplay( PWSTR pszDisplay);
  71. HRESULT ValidateTerminalID( PCC_OCTETSTRING pTerminalID);
  72. HRESULT CopyTerminalID( PCC_OCTETSTRING *ppDest,
  73. PCC_OCTETSTRING pSource);
  74. HRESULT FreeTerminalID( PCC_OCTETSTRING pTerminalID);
  75. HRESULT SetTerminalType( TRISTATE tsMultipointController,
  76. BYTE *pbTerminalType);
  77. HRESULT CopyH245TermCapList( PCC_TERMCAPLIST *ppDest,
  78. PCC_TERMCAPLIST pSource);
  79. HRESULT CopyH245TermCapDescriptors( PCC_TERMCAPDESCRIPTORS *ppDest,
  80. PCC_TERMCAPDESCRIPTORS pSource);
  81. HRESULT CreateH245DefaultTermCapDescriptors(
  82. PCC_TERMCAPDESCRIPTORS *ppDest,
  83. PCC_TERMCAPLIST pTermCapList);
  84. HRESULT DestroyH245TermCap( PPCC_TERMCAP ppTermCap);
  85. HRESULT UnregisterTermCapListFromH245(
  86. PCONFERENCE pConference,
  87. PCC_TERMCAPLIST pTermCapList);
  88. HRESULT DestroyH245TermCapList( PCC_TERMCAPLIST *ppTermCapList);
  89. HRESULT UnregisterTermCapDescriptorsFromH245(
  90. PCONFERENCE pConference,
  91. PCC_TERMCAPDESCRIPTORS pTermCapDescriptors);
  92. HRESULT DestroyH245TermCapDescriptors(
  93. PCC_TERMCAPDESCRIPTORS *ppTermCapDescriptors);
  94. HRESULT HostToH245IPNetwork( BYTE *NetworkArray,
  95. DWORD dwAddr);
  96. HRESULT H245IPNetworkToHost( DWORD *pdwAddr,
  97. BYTE *NetworkArray);
  98. HRESULT ProcessRemoteHangup( CC_HCALL hCall,
  99. HQ931CALL hQ931Initiator,
  100. BYTE bHangupReason);
  101. HRESULT DefaultSessionTableConstructor(
  102. CC_HCONFERENCE hConference,
  103. DWORD dwConferenceToken,
  104. BOOL bCreate,
  105. BOOL *pbSessionTableChanged,
  106. WORD wListCount,
  107. PCC_TERMCAPLIST pTermCapList[],
  108. PCC_TERMCAPDESCRIPTORS pTermCapDescriptors[],
  109. PCC_SESSIONTABLE *ppSessionTable);
  110. HRESULT DefaultTermCapConstructor( CC_HCONFERENCE hConference,
  111. DWORD dwConferenceToken,
  112. BOOL bCreate,
  113. BOOL *pbTermCapsChanged,
  114. WORD wListCount,
  115. PCC_TERMCAPLIST pInTermCapList[],
  116. PCC_TERMCAPDESCRIPTORS pInTermCapDescriptors[],
  117. PCC_TERMCAPLIST *ppOutTermCapList,
  118. PCC_TERMCAPDESCRIPTORS *ppOutTermCapDescriptors);
  119. HRESULT AcceptCall( PCALL pCall,
  120. PCONFERENCE pConference);
  121. HRESULT PlaceCall( PCALL pCall,
  122. PCONFERENCE pConference);
  123. HRESULT SendTermCaps( PCALL pCall,
  124. PCONFERENCE pConference);
  125. HRESULT SessionTableToH245CommunicationTable(
  126. PCC_SESSIONTABLE pSessionTable,
  127. H245_COMM_MODE_ENTRY_T *pH245CommunicationTable[],
  128. BYTE *pbCommunicationTableCount);
  129. HRESULT H245CommunicationTableToSessionTable(
  130. H245_COMM_MODE_ENTRY_T H245CommunicationTable[],
  131. BYTE bCommunicationTableCount,
  132. PCC_SESSIONTABLE *ppSessionTable);
  133. HRESULT FreeH245CommunicationTable( H245_COMM_MODE_ENTRY_T H245CommunicationTable[],
  134. BYTE bCommunicationTableCount);
  135. HRESULT CreateConferenceSessionTable(
  136. PCONFERENCE pConference,
  137. BOOL *pbSessionTableChanged);
  138. HRESULT FreeConferenceSessionTable( PCONFERENCE pConference);
  139. HRESULT CreateConferenceTermCaps( PCONFERENCE pConference,
  140. BOOL *pbTermCapsChanged);
  141. HRESULT FreeConferenceTermCaps( PCONFERENCE pConference);
  142. HRESULT EnqueueRequest( PCALL_QUEUE *ppQueueHead,
  143. CC_HCALL hEnqueuedCall);
  144. HRESULT DequeueRequest( PCALL_QUEUE *ppQueueHead,
  145. PCC_HCALL phEnqueuedCall);
  146. HRESULT DequeueSpecificRequest( PCALL_QUEUE *ppQueueHead,
  147. CC_HCALL hEnqueuedCall);