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.

119 lines
3.4 KiB

  1. /******************************************************************************
  2. *
  3. * File: sr_api.h
  4. *
  5. * INTEL Corporation Proprietary Information
  6. * Copyright (c) 1994, 1995, 1996 Intel Corporation.
  7. *
  8. * This listing is supplied under the terms of a license agreement
  9. * with INTEL Corporation and may not be used, copied, nor disclosed
  10. * except in accordance with the terms of that agreement.
  11. *
  12. *****************************************************************************/
  13. /******************************************************************************
  14. *
  15. * $Workfile: sr_api.h $
  16. * $Revision: 1.5 $
  17. * $Modtime: Mar 04 1997 17:32:54 $
  18. * $History$
  19. * $Log: S:/STURGEON/SRC/H245/INCLUDE/VCS/sr_api.h_v $
  20. *
  21. * Rev 1.5 Mar 04 1997 17:52:48 tomitowx
  22. * process detach fix
  23. *
  24. * Rev 1.4 19 Jul 1996 12:04:34 EHOWARDX
  25. *
  26. * Eliminated H245DLL #define (God only knows why Dan put it in this
  27. * file in the first place!)
  28. *
  29. * Rev 1.3 05 Jun 1996 17:20:20 EHOWARDX
  30. * Changed initializeASN1 and terminateASN1 prototypes back to int.
  31. *
  32. * Rev 1.2 05 Jun 1996 16:37:18 EHOWARDX
  33. * Further work in converting to HRESULT.
  34. *
  35. * Rev 1.1 30 May 1996 23:38:34 EHOWARDX
  36. * Cleanup.
  37. *
  38. * Rev 1.0 09 May 1996 21:05:00 EHOWARDX
  39. * Initial revision.
  40. *
  41. * Rev 1.8 09 May 1996 19:38:18 EHOWARDX
  42. * Redesigned locking logic and added new functionality.
  43. *
  44. * Rev 1.7 15 Apr 1996 13:00:14 DABROWN1
  45. *
  46. * Added SR initialize trace logging call
  47. *
  48. * Rev 1.6 12 Apr 1996 10:27:40 dabrown1
  49. *
  50. * removed WINAPI/windows references
  51. * $Ident$
  52. *
  53. *****************************************************************************/
  54. #ifndef STRICT
  55. #define STRICT
  56. #endif
  57. #ifndef _SR_API_H
  58. #define _SR_API_H
  59. #include "h245com.h"
  60. #include "h245asn1.h"
  61. #ifdef __cplusplus
  62. extern "C"
  63. {
  64. #endif // __cplusplus
  65. ///////////////////////////////////////////////////////////////
  66. ///
  67. /// TRACE Logging Defines
  68. ///
  69. ///////////////////////////////////////////////////////////////
  70. #define H245_TRACE_ENABLED TRUE
  71. ////////////////////////////////////////////////////////////////////
  72. //
  73. // Callback routines for Link Layer
  74. //
  75. ////////////////////////////////////////////////////////////////////
  76. void h245ReceiveComplete(DWORD_PTR h245Instance,
  77. HRESULT dwMessage,
  78. PBYTE pbDataBuf,
  79. DWORD dwLength);
  80. void h245SendComplete (DWORD_PTR h245Instance,
  81. HRESULT dwMessage,
  82. PBYTE pbDataBuf,
  83. DWORD dwLength);
  84. HRESULT
  85. sendRcvFlushPDUs
  86. (
  87. struct InstanceStruct * pInstance,
  88. DWORD dwDirection,
  89. BOOL bShutdown
  90. );
  91. void
  92. srInitializeLogging
  93. (
  94. struct InstanceStruct * pInstance,
  95. BOOL bTracingEnabled
  96. );
  97. int initializeASN1 (ASN1_CODER_INFO *);
  98. int terminateASN1 (ASN1_CODER_INFO *);
  99. HRESULT sendRcvInit (struct InstanceStruct * pInstance);
  100. HRESULT sendRcvShutdown(struct InstanceStruct * pInstance);
  101. HRESULT sendPDU (struct InstanceStruct * pInstance, MltmdSystmCntrlMssg *pPdu);
  102. HRESULT sendRcvShutdown_ProcessDetach( struct InstanceStruct *pInstance, BOOL fProcessDetach);
  103. #ifdef __cplusplus
  104. }
  105. #endif // __cplusplus
  106. #endif // _SRP_API_H
  107.