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.

149 lines
2.8 KiB

  1. //
  2. // Copyright (C) Microsoft Corporation, 1999 - 2000
  3. //
  4. // MsTpUtil.h
  5. //
  6. VOID
  7. DVDelayExecutionThread(
  8. ULONG ulDelayMSec
  9. );
  10. NTSTATUS
  11. DVSubmitIrpSynch(
  12. IN PDVCR_EXTENSION pDevExt,
  13. IN PIRP pIrp,
  14. IN PAV_61883_REQUEST pAVReq
  15. );
  16. //
  17. // Related to DeviceControl
  18. //
  19. #ifdef SUPPORT_LOCAL_PLUGS
  20. BOOL
  21. AVCTapeCreateLocalPlug(
  22. IN PDVCR_EXTENSION pDevExt,
  23. IN AV_61883_REQUEST * pAVReq,
  24. IN CMP_PLUG_TYPE PlugType,
  25. IN AV_PCR *pPCR,
  26. OUT ULONG *pPlugNumber,
  27. OUT HANDLE *pPlugHandle
  28. );
  29. BOOL
  30. AVCTapeDeleteLocalPlug(
  31. IN PDVCR_EXTENSION pDevExt,
  32. IN AV_61883_REQUEST * pAVReq,
  33. OUT ULONG *pPlugNumber,
  34. OUT HANDLE *pPlugHandle
  35. );
  36. BOOL
  37. AVCTapeSetLocalPlug(
  38. IN PDVCR_EXTENSION pDevExt,
  39. IN AV_61883_REQUEST * pAVReq,
  40. IN HANDLE *pPlugHandle,
  41. IN AV_PCR *pPCR
  42. );
  43. #endif
  44. NTSTATUS
  45. AVCDevGetDevPlug(
  46. IN PDVCR_EXTENSION pDevExt,
  47. IN CMP_PLUG_TYPE PlugType,
  48. IN ULONG PlugNum,
  49. OUT HANDLE *pPlugHandle
  50. );
  51. NTSTATUS
  52. AVCDevGetPlugState(
  53. IN PDVCR_EXTENSION pDevExt,
  54. IN HANDLE hPlug,
  55. OUT CMP_GET_PLUG_STATE *pPlugState
  56. );
  57. NTSTATUS
  58. DVGetUnitCapabilities(
  59. IN PDVCR_EXTENSION pDevExt,
  60. IN PIRP pIrp,
  61. IN PAV_61883_REQUEST pAVReq
  62. );
  63. BOOL
  64. DVGetDevModeOfOperation(
  65. PDVCR_EXTENSION pDevExt
  66. );
  67. BOOL
  68. DVGetDevIsItDVCPro(
  69. IN PDVCR_EXTENSION pDevExt
  70. );
  71. BOOL
  72. DVGetDevSignalFormat(
  73. IN PDVCR_EXTENSION pDevExt,
  74. IN KSPIN_DATAFLOW DataFlow,
  75. IN PSTREAMEX pStrmExt
  76. );
  77. BOOL
  78. DVCmpGUIDsAndFormatSize(
  79. IN PKSDATARANGE pDataRange1,
  80. IN PKSDATARANGE pDataRange2,
  81. IN BOOL fCompareFormatSize
  82. );
  83. ULONGLONG
  84. GetSystemTime(
  85. );
  86. VOID
  87. DvFreeTextualString(
  88. PDVCR_EXTENSION pDevExt,
  89. GET_UNIT_IDS * pUnitIds
  90. );
  91. #ifdef MSDV_SUPPORT_EXTRACT_SUBCODE_DATA
  92. VOID
  93. DVCRExtractTimecodeFromFrame(
  94. IN PDVCR_EXTENSION pDevExt,
  95. IN PSTREAMEX pStrmExt,
  96. IN PUCHAR pFrameBuffer
  97. );
  98. #endif
  99. #ifdef MSDV_SUPPORT_EXTRACT_DV_DATE_TIME
  100. VOID
  101. DVCRExtractRecDateAndTimeFromFrame(
  102. IN PDVCR_EXTENSION pDevExt,
  103. IN PSTREAMEX pStrmExt,
  104. IN PUCHAR pFrameBuffer
  105. );
  106. #endif
  107. #ifdef MSDV_SUPPORT_MUTE_AUDIO
  108. BOOL
  109. DVMuteDVFrame(
  110. IN PDVCR_EXTENSION pDevExt,
  111. IN OUT PUCHAR pFrameBuffer,
  112. IN BOOL bMute // TRUE to mute; FALSE to un-Mute
  113. );
  114. #endif
  115. BOOL
  116. DVGetPropertyValuesFromRegistry(
  117. IN PDVCR_EXTENSION pDevExt
  118. );
  119. BOOL
  120. DVSetPropertyValuesToRegistry(
  121. PDVCR_EXTENSION pDevExt
  122. );
  123. BOOL
  124. DVAccessDeviceInterface(
  125. IN PDVCR_EXTENSION pDevExt,
  126. IN const ULONG ulNumCategories,
  127. IN GUID DVCategories[]
  128. );