diff --git a/.gitattributes b/.gitattributes index c00b7c2f7030782598fd432ef6d092f109aaa09b..8cc820f525e57de7cda23d47fb1d6f6b850f2628 100644 --- a/.gitattributes +++ b/.gitattributes @@ -126,3 +126,4 @@ miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/c2.dll filter=lfs diff=lfs me miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/dpcmi.dll filter=lfs diff=lfs merge=lfs -text miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/c1xx.dll filter=lfs diff=lfs merge=lfs -text miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/link.exe filter=lfs diff=lfs merge=lfs -text +miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/Microsoft.VisualStudio.Telemetry.dll filter=lfs diff=lfs merge=lfs -text diff --git a/miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/Microsoft.VisualStudio.Telemetry.dll b/miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/Microsoft.VisualStudio.Telemetry.dll new file mode 100644 index 0000000000000000000000000000000000000000..7d7c239a7e0aa9d0c3386d9bc0f3ffb5b76f4d9b --- /dev/null +++ b/miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/Microsoft.VisualStudio.Telemetry.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:181c4de1cf0721243d58ebbce905ab3c2c255ec70455a9b59420d6bcbe5e5aa9 +size 1013264 diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DXGIMessages.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DXGIMessages.h new file mode 100644 index 0000000000000000000000000000000000000000..f53b12607b1667e0c8354ece0f1026c183c40850 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DXGIMessages.h @@ -0,0 +1,351 @@ +/* + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: DXGIMessages.h + * Content: DXGI Debug Message Enumeration + */ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#if NTDDI_VERSION >= NTDDI_WIN7 + +typedef enum +{ + DXGI_MSG_IDXGISwapChain_CreationOrResizeBuffers_InvalidOutputWindow = 0, + DXGI_MSG_IDXGISwapChain_CreationOrResizeBuffers_BufferWidthInferred, + DXGI_MSG_IDXGISwapChain_CreationOrResizeBuffers_BufferHeightInferred, + DXGI_MSG_IDXGISwapChain_CreationOrResizeBuffers_NoScanoutFlagChanged, + DXGI_MSG_IDXGISwapChain_Creation_MaxBufferCountExceeded, + DXGI_MSG_IDXGISwapChain_Creation_TooFewBuffers, + DXGI_MSG_IDXGISwapChain_Creation_NoOutputWindow, + DXGI_MSG_IDXGISwapChain_Destruction_OtherMethodsCalled, + DXGI_MSG_IDXGISwapChain_GetDesc_pDescIsNULL, + DXGI_MSG_IDXGISwapChain_GetBuffer_ppSurfaceIsNULL, + DXGI_MSG_IDXGISwapChain_GetBuffer_NoAllocatedBuffers, + DXGI_MSG_IDXGISwapChain_GetBuffer_iBufferMustBeZero, + DXGI_MSG_IDXGISwapChain_GetBuffer_iBufferOOB, + DXGI_MSG_IDXGISwapChain_GetContainingOutput_ppOutputIsNULL, + DXGI_MSG_IDXGISwapChain_Present_SyncIntervalOOB, + DXGI_MSG_IDXGISwapChain_Present_InvalidNonPreRotatedFlag, + DXGI_MSG_IDXGISwapChain_Present_NoAllocatedBuffers, + DXGI_MSG_IDXGISwapChain_Present_GetDXGIAdapterFailed, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_BufferCountOOB, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_UnreleasedReferences, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_InvalidSwapChainFlag, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_InvalidNonPreRotatedFlag, + DXGI_MSG_IDXGISwapChain_ResizeTarget_RefreshRateDivideByZero, + DXGI_MSG_IDXGISwapChain_SetFullscreenState_InvalidTarget, + DXGI_MSG_IDXGISwapChain_GetFrameStatistics_pStatsIsNULL, + DXGI_MSG_IDXGISwapChain_GetLastPresentCount_pLastPresentCountIsNULL, + DXGI_MSG_IDXGISwapChain_SetFullscreenState_RemoteNotSupported, + DXGI_MSG_IDXGIOutput_TakeOwnership_FailedToAcquireFullscreenMutex, + DXGI_MSG_IDXGIFactory_CreateSoftwareAdapter_ppAdapterInterfaceIsNULL, + DXGI_MSG_IDXGIFactory_EnumAdapters_ppAdapterInterfaceIsNULL, + DXGI_MSG_IDXGIFactory_CreateSwapChain_ppSwapChainIsNULL, + DXGI_MSG_IDXGIFactory_CreateSwapChain_pDescIsNULL, + DXGI_MSG_IDXGIFactory_CreateSwapChain_UnknownSwapEffect, + DXGI_MSG_IDXGIFactory_CreateSwapChain_InvalidFlags, + DXGI_MSG_IDXGIFactory_CreateSwapChain_NonPreRotatedFlagAndWindowed, + DXGI_MSG_IDXGIFactory_CreateSwapChain_NullDeviceInterface, + DXGI_MSG_IDXGIFactory_GetWindowAssociation_phWndIsNULL, + DXGI_MSG_IDXGIFactory_MakeWindowAssociation_InvalidFlags, + DXGI_MSG_IDXGISurface_Map_InvalidSurface, + DXGI_MSG_IDXGISurface_Map_FlagsSetToZero, + DXGI_MSG_IDXGISurface_Map_DiscardAndReadFlagSet, + DXGI_MSG_IDXGISurface_Map_DiscardButNotWriteFlagSet, + DXGI_MSG_IDXGISurface_Map_NoCPUAccess, + DXGI_MSG_IDXGISurface_Map_ReadFlagSetButCPUAccessIsDynamic, + DXGI_MSG_IDXGISurface_Map_DiscardFlagSetButCPUAccessIsNotDynamic, + DXGI_MSG_IDXGIOutput_GetDisplayModeList_pNumModesIsNULL, + DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_ModeHasInvalidWidthOrHeight, + DXGI_MSG_IDXGIOutput_GetCammaControlCapabilities_NoOwnerDevice, + DXGI_MSG_IDXGIOutput_TakeOwnership_pDeviceIsNULL, + DXGI_MSG_IDXGIOutput_GetDisplaySurfaceData_NoOwnerDevice, + DXGI_MSG_IDXGIOutput_GetDisplaySurfaceData_pDestinationIsNULL, + DXGI_MSG_IDXGIOutput_GetDisplaySurfaceData_MapOfDestinationFailed, + DXGI_MSG_IDXGIOutput_GetFrameStatistics_NoOwnerDevice, + DXGI_MSG_IDXGIOutput_GetFrameStatistics_pStatsIsNULL, + DXGI_MSG_IDXGIOutput_SetGammaControl_NoOwnerDevice, + DXGI_MSG_IDXGIOutput_GetGammaControl_NoOwnerDevice, + DXGI_MSG_IDXGIOutput_GetGammaControl_NoGammaControls, + DXGI_MSG_IDXGIOutput_SetDisplaySurface_IDXGIResourceNotSupportedBypPrimary, + DXGI_MSG_IDXGIOutput_SetDisplaySurface_pPrimaryIsInvalid, + DXGI_MSG_IDXGIOutput_SetDisplaySurface_NoOwnerDevice, + DXGI_MSG_IDXGIOutput_TakeOwnership_RemoteDeviceNotSupported, + DXGI_MSG_IDXGIOutput_GetDisplayModeList_RemoteDeviceNotSupported, + DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_RemoteDeviceNotSupported, + DXGI_MSG_IDXGIDevice_CreateSurface_InvalidParametersWithpSharedResource, + DXGI_MSG_IDXGIObject_GetPrivateData_puiDataSizeIsNULL, + DXGI_MSG_IDXGISwapChain_Creation_InvalidOutputWindow, + DXGI_MSG_IDXGISwapChain_Release_SwapChainIsFullscreen, + DXGI_MSG_IDXGIOutput_GetDisplaySurfaceData_InvalidTargetSurfaceFormat, + DXGI_MSG_IDXGIFactory_CreateSoftwareAdapter_ModuleIsNULL, + DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_IDXGIDeviceNotSupportedBypConcernedDevice, + DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_pModeToMatchOrpClosestMatchIsNULL, + DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_ModeHasRefreshRateDenominatorZero, + DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_UnknownFormatIsInvalidForConfiguration, + DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_InvalidDisplayModeScanlineOrdering, + DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_InvalidDisplayModeScaling, + DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_InvalidDisplayModeFormatAndDeviceCombination, + DXGI_MSG_IDXGIFactory_Creation_CalledFromDllMain, + DXGI_MSG_IDXGISwapChain_SetFullscreenState_OutputNotOwnedBySwapChainDevice, + DXGI_MSG_IDXGISwapChain_Creation_InvalidWindowStyle, + DXGI_MSG_IDXGISwapChain_GetFrameStatistics_UnsupportedStatistics, + DXGI_MSG_IDXGISwapChain_GetContainingOutput_SwapchainAdapterDoesNotControlOutput, + DXGI_MSG_IDXGIOutput_SetOrGetGammaControl_pArrayIsNULL, + DXGI_MSG_IDXGISwapChain_SetFullscreenState_FullscreenInvalidForChildWindows, + DXGI_MSG_IDXGIFactory_Release_CalledFromDllMain, + DXGI_MSG_IDXGISwapChain_Present_UnreleasedHDC, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_NonPreRotatedAndGDICompatibleFlags, + DXGI_MSG_IDXGIFactory_CreateSwapChain_NonPreRotatedAndGDICompatibleFlags, + DXGI_MSG_IDXGISurface1_GetDC_pHdcIsNULL, + DXGI_MSG_IDXGISurface1_GetDC_SurfaceNotTexture2D, + DXGI_MSG_IDXGISurface1_GetDC_GDICompatibleFlagNotSet, + DXGI_MSG_IDXGISurface1_GetDC_UnreleasedHDC, + DXGI_MSG_IDXGISurface_Map_NoCPUAccess2, + DXGI_MSG_IDXGISurface1_ReleaseDC_GetDCNotCalled, + DXGI_MSG_IDXGISurface1_ReleaseDC_InvalidRectangleDimensions, + DXGI_MSG_IDXGIOutput_TakeOwnership_RemoteOutputNotSupported, + DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_RemoteOutputNotSupported, + DXGI_MSG_IDXGIOutput_GetDisplayModeList_RemoteOutputNotSupported, + DXGI_MSG_IDXGIFactory_CreateSwapChain_pDeviceHasMismatchedDXGIFactory, + DXGI_MSG_IDXGISwapChain_Present_NonOptimalFSConfiguration, + DXGI_MSG_IDXGIFactory_CreateSwapChain_FlipSequentialNotSupportedOnD3D10, + DXGI_MSG_IDXGIFactory_CreateSwapChain_BufferCountOOBForFlipSequential, + DXGI_MSG_IDXGIFactory_CreateSwapChain_InvalidFormatForFlipSequential, + DXGI_MSG_IDXGIFactory_CreateSwapChain_MultiSamplingNotSupportedForFlipSequential, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_BufferCountOOBForFlipSequential, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_InvalidFormatForFlipSequential, + DXGI_MSG_IDXGISwapChain_Present_PartialPresentationBeforeStandardPresentation, + DXGI_MSG_IDXGISwapChain_Present_FullscreenPartialPresentIsInvalid, + DXGI_MSG_IDXGISwapChain_Present_InvalidPresentTestOrDoNotSequenceFlag, + DXGI_MSG_IDXGISwapChain_Present_ScrollInfoWithNoDirtyRectsSpecified, + DXGI_MSG_IDXGISwapChain_Present_EmptyScrollRect, + DXGI_MSG_IDXGISwapChain_Present_ScrollRectOutOfBackbufferBounds, + DXGI_MSG_IDXGISwapChain_Present_ScrollRectOutOfBackbufferBoundsWithOffset, + DXGI_MSG_IDXGISwapChain_Present_EmptyDirtyRect, + DXGI_MSG_IDXGISwapChain_Present_DirtyRectOutOfBackbufferBounds, + DXGI_MSG_IDXGIFactory_CreateSwapChain_UnsupportedBufferUsageFlags, + DXGI_MSG_IDXGISwapChain_Present_DoNotSequenceFlagSetButPreviousBufferIsUndefined, + DXGI_MSG_IDXGISwapChain_Present_UnsupportedFlags, + DXGI_MSG_IDXGISwapChain_Present_FlipModelChainMustResizeOrCreateOnFSTransition, + DXGI_MSG_IDXGIFactory_CreateSwapChain_pRestrictToOutputFromOtherIDXGIFactory, + DXGI_MSG_IDXGIFactory_CreateSwapChain_RestrictOutputNotSupportedOnAdapter, + DXGI_MSG_IDXGISwapChain_Present_RestrictToOutputFlagSetButInvalidpRestrictToOutput, + DXGI_MSG_IDXGISwapChain_Present_RestrictToOutputFlagdWithFullscreen, + DXGI_MSG_IDXGISwapChain_Present_RestrictOutputFlagWithStaleSwapChain, + DXGI_MSG_IDXGISwapChain_Present_OtherFlagsCausingInvalidPresentTestFlag, + DXGI_MSG_IDXGIFactory_CreateSwapChain_UnavailableInSession0, + DXGI_MSG_IDXGIFactory_MakeWindowAssociation_UnavailableInSession0, + DXGI_MSG_IDXGIFactory_GetWindowAssociation_UnavailableInSession0, + DXGI_MSG_IDXGIAdapter_EnumOutputs_UnavailableInSession0, + DXGI_MSG_IDXGISwapChain_CreationOrSetFullscreenState_StereoDisabled, + DXGI_MSG_IDXGIFactory2_UnregisterStatus_CookieNotFound, + DXGI_MSG_IDXGISwapChain_Present_ProtectedContentInWindowedModeWithoutFSOrOverlay, + DXGI_MSG_IDXGISwapChain_Present_ProtectedContentInWindowedModeWithoutFlipSequential, + DXGI_MSG_IDXGISwapChain_Present_ProtectedContentWithRDPDriver, + DXGI_MSG_IDXGISwapChain_Present_ProtectedContentInWindowedModeWithDWMOffOrInvalidDisplayAffinity, + DXGI_MSG_IDXGIFactory_CreateSwapChainForComposition_WidthOrHeightIsZero, + DXGI_MSG_IDXGIFactory_CreateSwapChainForComposition_OnlyFlipSequentialSupported, + DXGI_MSG_IDXGIFactory_CreateSwapChainForComposition_UnsupportedOnAdapter, + DXGI_MSG_IDXGIFactory_CreateSwapChainForComposition_UnsupportedOnWindows7, + DXGI_MSG_IDXGISwapChain_SetFullscreenState_FSTransitionWithCompositionSwapChain, + DXGI_MSG_IDXGISwapChain_ResizeTarget_InvalidWithCompositionSwapChain, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_WidthOrHeightIsZero, + DXGI_MSG_IDXGIFactory_CreateSwapChain_ScalingNoneIsFlipModelOnly, + DXGI_MSG_IDXGIFactory_CreateSwapChain_ScalingUnrecognized, + DXGI_MSG_IDXGIFactory_CreateSwapChain_DisplayOnlyFullscreenUnsupported, + DXGI_MSG_IDXGIFactory_CreateSwapChain_DisplayOnlyUnsupported, + DXGI_MSG_IDXGISwapChain_Present_RestartIsFullscreenOnly, + DXGI_MSG_IDXGISwapChain_Present_ProtectedWindowlessPresentationRequiresDisplayOnly, + DXGI_MSG_IDXGISwapChain_SetFullscreenState_DisplayOnlyUnsupported, + DXGI_MSG_IDXGISwapChain1_SetBackgroundColor_OutOfRange, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_DisplayOnlyFullscreenUnsupported, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_DisplayOnlyUnsupported, + DXGI_MSG_IDXGISwapchain_Present_ScrollUnsupported, + DXGI_MSG_IDXGISwapChain1_SetRotation_UnsupportedOS, + DXGI_MSG_IDXGISwapChain1_GetRotation_UnsupportedOS, + DXGI_MSG_IDXGISwapchain_Present_FullscreenRotation, + DXGI_MSG_IDXGISwapChain_Present_PartialPresentationWithMSAABuffers, + DXGI_MSG_IDXGISwapChain1_SetRotation_FlipSequentialRequired, + DXGI_MSG_IDXGISwapChain1_SetRotation_InvalidRotation, + DXGI_MSG_IDXGISwapChain1_GetRotation_FlipSequentialRequired, + DXGI_MSG_IDXGISwapChain_GetHwnd_WrongType, + DXGI_MSG_IDXGISwapChain_GetCompositionSurface_WrongType, + DXGI_MSG_IDXGISwapChain_GetCoreWindow_WrongType, + DXGI_MSG_IDXGISwapChain_GetFullscreenDesc_NonHwnd, + DXGI_MSG_IDXGISwapChain_SetFullscreenState_CoreWindow, + DXGI_MSG_IDXGIFactory2_CreateSwapChainForCoreWindow_UnsupportedOnWindows7, + DXGI_MSG_IDXGIFactory2_CreateSwapChainForCoreWindow_pWindowIsNULL, + DXGI_MSG_IDXGIFactory_CreateSwapChain_FSUnsupportedForModernApps, + DXGI_MSG_IDXGIFactory_MakeWindowAssociation_ModernApp, + DXGI_MSG_IDXGISwapChain_ResizeTarget_ModernApp, + DXGI_MSG_IDXGISwapChain_ResizeTarget_pNewTargetParametersIsNULL, + DXGI_MSG_IDXGIOutput_SetDisplaySurface_ModernApp, + DXGI_MSG_IDXGIOutput_TakeOwnership_ModernApp, + DXGI_MSG_IDXGIFactory2_CreateSwapChainForCoreWindow_pWindowIsInvalid, + DXGI_MSG_IDXGIFactory2_CreateSwapChainForCompositionSurface_InvalidHandle, + DXGI_MSG_IDXGISurface1_GetDC_ModernApp, + DXGI_MSG_IDXGIFactory_CreateSwapChain_ScalingNoneRequiresWindows8OrNewer, + DXGI_MSG_IDXGISwapChain_Present_TemporaryMonoAndPreferRight, + DXGI_MSG_IDXGISwapChain_Present_TemporaryMonoOrPreferRightWithDoNotSequence, + DXGI_MSG_IDXGISwapChain_Present_TemporaryMonoOrPreferRightWithoutStereo, + DXGI_MSG_IDXGISwapChain_Present_TemporaryMonoUnsupported, + DXGI_MSG_IDXGIOutput_GetDisplaySurfaceData_ArraySizeMismatch, + DXGI_MSG_IDXGISwapChain_Present_PartialPresentationWithSwapEffectDiscard, + DXGI_MSG_IDXGIFactory_CreateSwapChain_AlphaUnrecognized, + DXGI_MSG_IDXGIFactory_CreateSwapChain_AlphaIsWindowlessOnly, + DXGI_MSG_IDXGIFactory_CreateSwapChain_AlphaIsFlipModelOnly, + DXGI_MSG_IDXGIFactory_CreateSwapChain_RestrictToOutputAdapterMismatch, + DXGI_MSG_IDXGIFactory_CreateSwapChain_DisplayOnlyOnLegacy, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_DisplayOnlyOnLegacy, + DXGI_MSG_IDXGIResource1_CreateSubresourceSurface_InvalidIndex, + DXGI_MSG_IDXGIFactory_CreateSwapChainForComposition_InvalidScaling, + DXGI_MSG_IDXGIFactory_CreateSwapChainForCoreWindow_InvalidSwapEffect, + DXGI_MSG_IDXGIResource1_CreateSharedHandle_UnsupportedOS, + DXGI_MSG_IDXGIFactory2_RegisterOcclusionStatusWindow_UnsupportedOS, + DXGI_MSG_IDXGIFactory2_RegisterOcclusionStatusEvent_UnsupportedOS, + DXGI_MSG_IDXGIOutput1_DuplicateOutput_UnsupportedOS, + DXGI_MSG_IDXGIDisplayControl_IsStereoEnabled_UnsupportedOS, + DXGI_MSG_IDXGIFactory_CreateSwapChainForComposition_InvalidAlphaMode, + DXGI_MSG_IDXGIFactory_GetSharedResourceAdapterLuid_InvalidResource, + DXGI_MSG_IDXGIFactory_GetSharedResourceAdapterLuid_InvalidLUID, + DXGI_MSG_IDXGIFactory_GetSharedResourceAdapterLuid_UnsupportedOS, + DXGI_MSG_IDXGIOutput1_GetDisplaySurfaceData1_2DOnly, + DXGI_MSG_IDXGIOutput1_GetDisplaySurfaceData1_StagingOnly, + DXGI_MSG_IDXGIOutput1_GetDisplaySurfaceData1_NeedCPUAccessWrite, + DXGI_MSG_IDXGIOutput1_GetDisplaySurfaceData1_NoShared, + DXGI_MSG_IDXGIOutput1_GetDisplaySurfaceData1_OnlyMipLevels1, + DXGI_MSG_IDXGIOutput1_GetDisplaySurfaceData1_MappedOrOfferedResource, + DXGI_MSG_IDXGISwapChain_SetFullscreenState_FSUnsupportedForModernApps, + DXGI_MSG_IDXGIFactory_CreateSwapChain_FailedToGoFSButNonPreRotated, + DXGI_MSG_IDXGIFactory_CreateSwapChainOrRegisterOcclusionStatus_BlitModelUsedWhileRegisteredForOcclusionStatusEvents, + DXGI_MSG_IDXGISwapChain_Present_BlitModelUsedWhileRegisteredForOcclusionStatusEvents, + DXGI_MSG_IDXGIFactory_CreateSwapChain_WaitableSwapChainsAreFlipModelOnly, + DXGI_MSG_IDXGIFactory_CreateSwapChain_WaitableSwapChainsAreNotFullscreen, + DXGI_MSG_IDXGISwapChain_SetFullscreenState_Waitable, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_CannotAddOrRemoveWaitableFlag, + DXGI_MSG_IDXGISwapChain_GetFrameLatencyWaitableObject_OnlyWaitable, + DXGI_MSG_IDXGISwapChain_GetMaximumFrameLatency_OnlyWaitable, + DXGI_MSG_IDXGISwapChain_GetMaximumFrameLatency_pMaxLatencyIsNULL, + DXGI_MSG_IDXGISwapChain_SetMaximumFrameLatency_OnlyWaitable, + DXGI_MSG_IDXGISwapChain_SetMaximumFrameLatency_MaxLatencyIsOutOfBounds, + DXGI_MSG_IDXGIFactory_CreateSwapChain_ForegroundIsCoreWindowOnly, + DXGI_MSG_IDXGIFactory2_CreateSwapChainForCoreWindow_ForegroundUnsupportedOnAdapter, + DXGI_MSG_IDXGIFactory2_CreateSwapChainForCoreWindow_InvalidScaling, + DXGI_MSG_IDXGIFactory2_CreateSwapChainForCoreWindow_InvalidAlphaMode, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_CannotAddOrRemoveForegroundFlag, + DXGI_MSG_IDXGISwapChain_SetMatrixTransform_MatrixPointerCannotBeNull, + DXGI_MSG_IDXGISwapChain_SetMatrixTransform_RequiresCompositionSwapChain, + DXGI_MSG_IDXGISwapChain_SetMatrixTransform_MatrixMustBeFinite, + DXGI_MSG_IDXGISwapChain_SetMatrixTransform_MatrixMustBeTranslateAndOrScale, + DXGI_MSG_IDXGISwapChain_GetMatrixTransform_MatrixPointerCannotBeNull, + DXGI_MSG_IDXGISwapChain_GetMatrixTransform_RequiresCompositionSwapChain, + DXGI_MSG_DXGIGetDebugInterface1_NULL_ppDebug, + DXGI_MSG_DXGIGetDebugInterface1_InvalidFlags, + DXGI_MSG_IDXGISwapChain_Present_Decode, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_Decode, + DXGI_MSG_IDXGISwapChain_SetSourceSize_FlipModel, + DXGI_MSG_IDXGISwapChain_SetSourceSize_Decode, + DXGI_MSG_IDXGISwapChain_SetSourceSize_WidthHeight, + DXGI_MSG_IDXGISwapChain_GetSourceSize_NullPointers, + DXGI_MSG_IDXGISwapChain_GetSourceSize_Decode, + DXGI_MSG_IDXGIDecodeSwapChain_SetColorSpace_InvalidFlags, + DXGI_MSG_IDXGIDecodeSwapChain_SetSourceRect_InvalidRect, + DXGI_MSG_IDXGIDecodeSwapChain_SetTargetRect_InvalidRect, + DXGI_MSG_IDXGIDecodeSwapChain_SetDestSize_InvalidSize, + DXGI_MSG_IDXGIDecodeSwapChain_GetSourceRect_InvalidPointer, + DXGI_MSG_IDXGIDecodeSwapChain_GetTargetRect_InvalidPointer, + DXGI_MSG_IDXGIDecodeSwapChain_GetDestSize_InvalidPointer, + DXGI_MSG_IDXGISwapChain_PresentBuffer_YUV, + DXGI_MSG_IDXGISwapChain_SetSourceSize_YUV, + DXGI_MSG_IDXGISwapChain_GetSourceSize_YUV, + DXGI_MSG_IDXGISwapChain_SetMatrixTransform_YUV, + DXGI_MSG_IDXGISwapChain_GetMatrixTransform_YUV, + DXGI_MSG_IDXGISwapChain_Present_PartialPresentation_YUV, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_CannotAddOrRemoveFlag_YUV, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_Alignment_YUV, + DXGI_MSG_IDXGIFactory_CreateSwapChain_ShaderInputUnsupported_YUV, + DXGI_MSG_IDXGIOutput3_CheckOverlaySupport_NullPointers, + DXGI_MSG_IDXGIOutput3_CheckOverlaySupport_IDXGIDeviceNotSupportedBypConcernedDevice, + DXGI_MSG_IDXGIAdapter_EnumOutputs2_InvalidEnumOutputs2Flag, + DXGI_MSG_IDXGISwapChain_CreationOrSetFullscreenState_FSUnsupportedForFlipDiscard, + DXGI_MSG_IDXGIOutput4_CheckOverlayColorSpaceSupport_NullPointers, + DXGI_MSG_IDXGIOutput4_CheckOverlayColorSpaceSupport_IDXGIDeviceNotSupportedBypConcernedDevice, + DXGI_MSG_IDXGISwapChain3_CheckColorSpaceSupport_NullPointers, + DXGI_MSG_IDXGISwapChain3_SetColorSpace1_InvalidColorSpace, + DXGI_MSG_IDXGIFactory_CreateSwapChain_InvalidHwProtect, + DXGI_MSG_IDXGIFactory_CreateSwapChain_HwProtectUnsupported, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_InvalidHwProtect, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_HwProtectUnsupported, + DXGI_MSG_IDXGISwapChain_ResizeBuffers1_D3D12Only, + DXGI_MSG_IDXGISwapChain_ResizeBuffers1_FlipModel, + DXGI_MSG_IDXGISwapChain_ResizeBuffers1_NodeMaskAndQueueRequired, + DXGI_MSG_IDXGISwapChain_CreateSwapChain_InvalidHwProtectGdiFlag, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_InvalidHwProtectGdiFlag, + DXGI_MSG_IDXGIFactory_CreateSwapChain_10BitFormatNotSupported, + DXGI_MSG_IDXGIFactory_CreateSwapChain_FlipSwapEffectRequired, + DXGI_MSG_IDXGIFactory_CreateSwapChain_InvalidDevice, + DXGI_MSG_IDXGIOutput_TakeOwnership_Unsupported, + DXGI_MSG_IDXGIFactory_CreateSwapChain_InvalidQueue, + DXGI_MSG_IDXGISwapChain3_ResizeBuffers1_InvalidQueue, + DXGI_MSG_IDXGIFactory_CreateSwapChainForHwnd_InvalidScaling, + DXGI_MSG_IDXGISwapChain3_SetHDRMetaData_InvalidSize, + DXGI_MSG_IDXGISwapChain3_SetHDRMetaData_InvalidPointer, + DXGI_MSG_IDXGISwapChain3_SetHDRMetaData_InvalidType, + DXGI_MSG_IDXGISwapChain_Present_FullscreenAllowTearingIsInvalid, + DXGI_MSG_IDXGISwapChain_Present_AllowTearingRequiresPresentIntervalZero, + DXGI_MSG_IDXGISwapChain_Present_AllowTearingRequiresCreationFlag, + DXGI_MSG_IDXGISwapChain_ResizeBuffers_CannotAddOrRemoveAllowTearingFlag, + DXGI_MSG_IDXGIFactory_CreateSwapChain_AllowTearingFlagIsFlipModelOnly, + DXGI_MSG_IDXGIFactory_CheckFeatureSupport_InvalidFeature, + DXGI_MSG_IDXGIFactory_CheckFeatureSupport_InvalidSize, + DXGI_MSG_IDXGIOutput6_CheckHardwareCompositionSupport_NullPointer, + DXGI_MSG_IDXGISwapChain_SetFullscreenState_PerMonitorDpiShimApplied, + DXGI_MSG_IDXGIOutput_DuplicateOutput_PerMonitorDpiShimApplied, + DXGI_MSG_IDXGIOutput_DuplicateOutput1_PerMonitorDpiRequired, + DXGI_MSG_IDXGIFactory7_UnregisterAdaptersChangedEvent_CookieNotFound, + DXGI_MSG_IDXGIFactory_CreateSwapChain_LegacyBltModelSwapEffect, + DXGI_MSG_IDXGISwapChain4_SetHDRMetaData_MetadataUnchanged, + DXGI_MSG_IDXGISwapChain_Present_11On12_Released_Resource, + DXGI_MSG_IDXGIFactory_CreateSwapChain_MultipleSwapchainRefToSurface_DeferredDtr, + DXGI_MSG_IDXGIFactory_MakeWindowAssociation_NoOpBehavior, + + DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_NotForegroundWindow = 1000, + DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_DISCARD_BufferCount, + DXGI_MSG_Phone_IDXGISwapChain_SetFullscreenState_NotAvailable, + DXGI_MSG_Phone_IDXGISwapChain_ResizeBuffers_NotAvailable, + DXGI_MSG_Phone_IDXGISwapChain_ResizeTarget_NotAvailable, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidLayerIndex, + DXGI_MSG_Phone_IDXGISwapChain_Present_MultipleLayerIndex, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidLayerFlag, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidRotation, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidBlend, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidResource, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidMultiPlaneOverlayResource, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidIndexForPrimary, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidIndexForOverlay, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidSubResourceIndex, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidSourceRect, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidDestinationRect, + DXGI_MSG_Phone_IDXGISwapChain_Present_MultipleResource, + DXGI_MSG_Phone_IDXGISwapChain_Present_NotSharedResource, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidFlag, + DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidInterval, + DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_MSAA_NotSupported, + DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_ScalingAspectRatioStretch_Supported_ModernApp, + DXGI_MSG_Phone_IDXGISwapChain_GetFrameStatistics_NotAvailable_ModernApp, + DXGI_MSG_Phone_IDXGISwapChain_Present_ReplaceInterval0With1, + DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_FailedRegisterWithCompositor, + DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_NotForegroundWindow_AtRendering, + DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_FLIP_SEQUENTIAL_BufferCount, + DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_FLIP_Modern_CoreWindow_Only, + DXGI_MSG_Phone_IDXGISwapChain_Present1_RequiresOverlays, + DXGI_MSG_Phone_IDXGISwapChain_SetBackgroundColor_FlipSequentialRequired, + DXGI_MSG_Phone_IDXGISwapChain_GetBackgroundColor_FlipSequentialRequired, + +} DXGI_Message_Id; + +#endif // NTDDI_VERSION >= NTDDI_WIN7 diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DXProgrammableCapture.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DXProgrammableCapture.h new file mode 100644 index 0000000000000000000000000000000000000000..6e2b266057c27ccd570e72d111e4a6f72f86ac66 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DXProgrammableCapture.h @@ -0,0 +1,44 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) + +#pragma once + +#endif // _MSC_VER + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +#if (NTDDI_VERSION >= NTDDI_WINBLUE) + +// Applications use this interface to denote the beginning and ending of a +// "frame" of captured DXGI/D3D10+ commands for examination within a debugging +// tool such as Visual Studio 2013. Absent such calls, a frame is defined by +// Visual Studio as beginning and ending with the IDXGISwapChain*::Present* calls. +// +// To retrieve a pointer to this interface, call +// +// ComPtr graphicsAnalysis; +// DXGIGetDebugInterface1(0, IID_PPV_ARGS(&graphicsAnalysis)); +// +// The function will only succeed when the application is being run under +// "graphics analysis" in Visual Studio (or other similar tools), so applications +// must be sure to handle failure from DXGIGetDebugInterface1 gracefully. +// +// Further note that DXGIGetDebugInterface1 is tagged as a development-only capability, +// which implies that linking to this function will cause the application to fail +// Windows store certification. Consequently, it is recommended that usage of that +// function be compiled only for pre-release code. + +interface DECLSPEC_UUID("9f251514-9d4d-4902-9d60-18988ab7d4b5") DECLSPEC_NOVTABLE IDXGraphicsAnalysis : public IUnknown +{ + STDMETHOD_(void, BeginCapture)() PURE; + STDMETHOD_(void, EndCapture)() PURE; +}; + +#endif // NTDDI_VERSION + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion \ No newline at end of file diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DtcHelp.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DtcHelp.h new file mode 100644 index 0000000000000000000000000000000000000000..224e95ea27fe34949d570b5a2327c41170ac2e4c --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DtcHelp.h @@ -0,0 +1,236 @@ +/* ---------------------------------------------------------------------------- +Microsoft D.T.C (Distributed Transaction Coordinator) + +Copyright (C) 1995-1999 Microsoft Corporation. All rights reserved. + +@doc + +@module DTCHelp.h | + + contains helper API for loading the DTCHelper DLL + +------------------------------------------------------------------------------- +@rev 0 | 8th -Sep-1995 | GaganC | Created +----------------------------------------------------------------------------- */ +#ifndef __DTCHELP_H__ +#define __DTCHELP_H__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + +//--------------------------------------------------------- +// ALL INCLUDE FILES GO HERE +//--------------------------------------------------------- +#include + + +//--------------------------------------------------------- +// constants / enums / typedefs / defines +//--------------------------------------------------------- +#ifndef DEFINED_DTC_STATUS +typedef enum DTC_STATUS_ +{ + DTC_STATUS_UNKNOWN = 0, // Status not known + DTC_STATUS_STARTING = 1, // DTC is starting + DTC_STATUS_STARTED = 2, // DTC has started + DTC_STATUS_PAUSING = 3, // DTC is being paused + DTC_STATUS_PAUSED = 4, // DTC has been paused + DTC_STATUS_CONTINUING = 5, // DTC is being continued + DTC_STATUS_STOPPING = 6, // DTC is stopping + DTC_STATUS_STOPPED = 7, // DTC has stopped + DTC_STATUS_E_CANTCONTROL = 8, // DTC cannot be controlled in its present state + DTC_STATUS_FAILED = 9 // DTC has failed. +} DTC_STATUS; +#define DEFINED_DTC_STATUS +#endif + +typedef HRESULT (__cdecl * DTC_GET_TRANSACTION_MANAGER)( + /* in */ char * pszHost, + /* in */ char * pszTmName, + /* in */ REFIID rid, + /* in */ DWORD dwReserved1, + /* in */ WORD wcbReserved2, + /* in */ void FAR * pvReserved2, + /*out */ void** ppvObject ) ; + +typedef HRESULT (__cdecl * DTC_GET_TRANSACTION_MANAGER_EX_A)( + /* in */ char * i_pszHost, + /* in */ char * i_pszTmName, + /* in */ REFIID i_riid, + /* in */ DWORD i_grfOptions, + /* in */ void * i_pvConfigParams, + /* out */ void ** o_ppvObject + ); + +typedef HRESULT (__cdecl * DTC_GET_TRANSACTION_MANAGER_EX_W)( + /* in */ WCHAR * i_pwszHost, + /* in */ WCHAR * i_pwszTmName, + /* in */ REFIID i_riid, + /* in */ DWORD i_grfOptions, + /* in */ void * i_pvConfigParams, + /* out */ void ** o_ppvObject + ); + +typedef HRESULT ( * DTC_INSTALL_CLIENT ) ( + LPTSTR i_pszRemoteTmHostName, + DWORD i_dwProtocol, + DWORD i_dwOverwrite ); + +#ifndef UNICODE + +#define DTC_GET_TRANSACTION_MANAGER_EX DTC_GET_TRANSACTION_MANAGER_EX_A +#define LoadDtcHelperEx LoadDtcHelperExA +#define GetDTCStatus GetDTCStatusA +#define StartDTC StartDTCA +#define StopDTC StopDTCA + +#else + +#define DTC_GET_TRANSACTION_MANAGER_EX DTC_GET_TRANSACTION_MANAGER_EX_W +#define LoadDtcHelperEx LoadDtcHelperExW +#define GetDTCStatus GetDTCStatusW +#define StartDTC StartDTCW +#define StopDTC StopDTCW + +#endif + + + +#define DTCINSTALL_E_CLIENT_ALREADY_INSTALLED 0x0000180L + +#define DTCINSTALL_E_SERVER_ALREADY_INSTALLED 0x0000181L + +//***** Install overwrite options +const DWORD DTC_INSTALL_OVERWRITE_CLIENT = 0x00000001; + // first bit from right, controls client overwrite + // 1=Overwrite existing client install + // 0=dont overwrite existing client install +const DWORD DTC_INSTALL_OVERWRITE_SERVER = 0x00000002; + // second bit from right, controls server overwrite + // 1=Overwrite existing server install + // 0=dont overwrite existing server install + +//--------------------------------------------------------- +// Function Prototypes +//--------------------------------------------------------- +#ifdef __cplusplus +extern "C" { +#endif + DTC_GET_TRANSACTION_MANAGER __cdecl LoadDtcHelper (void); + DTC_GET_TRANSACTION_MANAGER_EX_A __cdecl LoadDtcHelperExA (void); + DTC_GET_TRANSACTION_MANAGER_EX_W __cdecl LoadDtcHelperExW (void); + void __cdecl FreeDtcHelper (void); + + HMODULE __cdecl GetDtcLocaleResourceHandle(void); + + // Function: Initialize + // This function initialized all the function pointers needed to + // carry out other operations supported by this static library. + // It is optional to make this call. + // Returns - S_OK if all is fine, E_FAIL other wise. + // Note: this function is not thread safe + HRESULT __cdecl Initialize (void); + + // Function: Uninitialize + // This function unloads the dynamically loaded dlls. + // Returns - S_OK if all is fine, E_FAIL other wise. + // Note: this function is not thread safe + HRESULT __cdecl Uninitialize (void); + + // Function: GetDTCStatusW + // Unicode version of GetDTCStatus - used to get the status of the DTC service. + // The wszHostName parameter specifies the node on which to perform the + // operation. On Windows 9x this parameter must be either NULL or the local + // machine name. + // Returns - the appropriate status from the enum DTC_STATUS + DTC_STATUS __cdecl GetDTCStatusW (_In_ LPWSTR wszHostName); + + // Function: GetDTCStatusA + // Ansi version of GetDTCStatus - used to get the status of the DTC service + // The szHostName parameter specifies the node on which to perform the + // operation. On Windows 9x this parameter must be either NULL or the local + // machine name. + // Returns - the appropriate status from the enum DTC_STATUS + DTC_STATUS __cdecl GetDTCStatusA (_In_ LPSTR szHostName); + + // Function: StartDTCW + // Unicode version of StartDTC - used to start the DTC service. + // If the service is already started then the following is a no-op + // The wszHostName parameter specifies the node on which to perform the + // operation. On Windows 9x this parameter must be either NULL or the local + // machine name. + // Returns - S_OK if all is ok + // E_FAIL if the operation failed for some reason. + // E_UNEXPECTED if an unexpected error occured. + HRESULT __cdecl StartDTCW (_In_ LPWSTR wszHostName); + + // Function: StartDTCA + // Ansi version of StartDTC - used to start the DTC service. + // If the service is already started then the following is a no-op + // The szHostName parameter specifies the node on which to perform the + // operation. On Windows 9x this parameter must be either NULL or the local + // machine name. + // Returns - S_OK if all is ok + // E_FAIL if the operation failed for some reason. + // E_UNEXPECTED if an unexpected error occured. + HRESULT __cdecl StartDTCA (_In_ LPSTR szHostName); + + // Function: StopDTCW + // Unicode version of StopDTC - used to stop the DTC service. + // If the service is already stopped then the following is a no-op + // The wszHostName parameter specifies the node on which to perform the + // operation. On Windows 9x this parameter must be either NULL or the local + // machine name. + // Returns - S_OK if all is ok + // E_FAIL if the operation failed for some reason. + // E_UNEXPECTED if an unexpected error occured. + HRESULT __cdecl StopDTCW (_In_ LPWSTR wszHostName); + + // Function: StopDTCA + // Ansi version of StopDTC - used to stop the DTC service. + // If the service is already stopped then the following is a no-op + // The szHostName parameter specifies the node on which to perform the + // operation. On Windows 9x this parameter must be either NULL or the local + // machine name. + // Returns - S_OK if all is ok + // E_FAIL if the operation failed for some reason. + // E_UNEXPECTED if an unexpected error occured. + HRESULT __cdecl StopDTCA (_In_ LPSTR szHostName); + + + // Function: DtcInstallClient + // Installs the client version of DTC. + // Parameters: i_pszRemoteTmHostName - the name of the host tm, + // i_szProt - the protocol to use in string format + // 0x00000001 TCP/IP (1) + // 0x00000004 NetBEUI (4) + // + // i_dwOverwrite - overwrite previous install or not? + // DTC_INSTALL_OVERWRITE_CLIENT = 0x00000001; + // 0=Overwrite existing client install + // 1=dont overwrite existing client install + // DTC_INSTALL_OVERWRITE_SERVER = 0x00000002; + // 0=Overwrite existing server install + // 1=dont overwrite existing server install + // Returns - S_OK if all is ok + // E_FAIL if the operation failed for some reason + // E_UNEXPECTED if an unexpected error occured + HRESULT __cdecl DtcInstallClient(_In_ LPTSTR i_pszRemoteTmHostName, DWORD i_dwProtocol, DWORD i_dwOverwrite); +#ifdef __cplusplus +} +#endif + + +//--------------------------------------------------------- +// ALL ERRORS GO HERE +//--------------------------------------------------------- + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __DTCHELP_H__ diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DvbSiParser.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DvbSiParser.h new file mode 100644 index 0000000000000000000000000000000000000000..c89e6691edc430ed24e0ea587ae8955ce4197b95 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DvbSiParser.h @@ -0,0 +1,13230 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __dvbsiparser_h__ +#define __dvbsiparser_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDvbSiParser_FWD_DEFINED__ +#define __IDvbSiParser_FWD_DEFINED__ +typedef interface IDvbSiParser IDvbSiParser; + +#endif /* __IDvbSiParser_FWD_DEFINED__ */ + + +#ifndef __IDvbSiParser2_FWD_DEFINED__ +#define __IDvbSiParser2_FWD_DEFINED__ +typedef interface IDvbSiParser2 IDvbSiParser2; + +#endif /* __IDvbSiParser2_FWD_DEFINED__ */ + + +#ifndef __IIsdbSiParser2_FWD_DEFINED__ +#define __IIsdbSiParser2_FWD_DEFINED__ +typedef interface IIsdbSiParser2 IIsdbSiParser2; + +#endif /* __IIsdbSiParser2_FWD_DEFINED__ */ + + +#ifndef __IDVB_NIT_FWD_DEFINED__ +#define __IDVB_NIT_FWD_DEFINED__ +typedef interface IDVB_NIT IDVB_NIT; + +#endif /* __IDVB_NIT_FWD_DEFINED__ */ + + +#ifndef __IDVB_SDT_FWD_DEFINED__ +#define __IDVB_SDT_FWD_DEFINED__ +typedef interface IDVB_SDT IDVB_SDT; + +#endif /* __IDVB_SDT_FWD_DEFINED__ */ + + +#ifndef __IISDB_SDT_FWD_DEFINED__ +#define __IISDB_SDT_FWD_DEFINED__ +typedef interface IISDB_SDT IISDB_SDT; + +#endif /* __IISDB_SDT_FWD_DEFINED__ */ + + +#ifndef __IDVB_EIT_FWD_DEFINED__ +#define __IDVB_EIT_FWD_DEFINED__ +typedef interface IDVB_EIT IDVB_EIT; + +#endif /* __IDVB_EIT_FWD_DEFINED__ */ + + +#ifndef __IDVB_EIT2_FWD_DEFINED__ +#define __IDVB_EIT2_FWD_DEFINED__ +typedef interface IDVB_EIT2 IDVB_EIT2; + +#endif /* __IDVB_EIT2_FWD_DEFINED__ */ + + +#ifndef __IDVB_BAT_FWD_DEFINED__ +#define __IDVB_BAT_FWD_DEFINED__ +typedef interface IDVB_BAT IDVB_BAT; + +#endif /* __IDVB_BAT_FWD_DEFINED__ */ + + +#ifndef __IDVB_RST_FWD_DEFINED__ +#define __IDVB_RST_FWD_DEFINED__ +typedef interface IDVB_RST IDVB_RST; + +#endif /* __IDVB_RST_FWD_DEFINED__ */ + + +#ifndef __IDVB_ST_FWD_DEFINED__ +#define __IDVB_ST_FWD_DEFINED__ +typedef interface IDVB_ST IDVB_ST; + +#endif /* __IDVB_ST_FWD_DEFINED__ */ + + +#ifndef __IDVB_TDT_FWD_DEFINED__ +#define __IDVB_TDT_FWD_DEFINED__ +typedef interface IDVB_TDT IDVB_TDT; + +#endif /* __IDVB_TDT_FWD_DEFINED__ */ + + +#ifndef __IDVB_TOT_FWD_DEFINED__ +#define __IDVB_TOT_FWD_DEFINED__ +typedef interface IDVB_TOT IDVB_TOT; + +#endif /* __IDVB_TOT_FWD_DEFINED__ */ + + +#ifndef __IDVB_DIT_FWD_DEFINED__ +#define __IDVB_DIT_FWD_DEFINED__ +typedef interface IDVB_DIT IDVB_DIT; + +#endif /* __IDVB_DIT_FWD_DEFINED__ */ + + +#ifndef __IDVB_SIT_FWD_DEFINED__ +#define __IDVB_SIT_FWD_DEFINED__ +typedef interface IDVB_SIT IDVB_SIT; + +#endif /* __IDVB_SIT_FWD_DEFINED__ */ + + +#ifndef __IISDB_BIT_FWD_DEFINED__ +#define __IISDB_BIT_FWD_DEFINED__ +typedef interface IISDB_BIT IISDB_BIT; + +#endif /* __IISDB_BIT_FWD_DEFINED__ */ + + +#ifndef __IISDB_NBIT_FWD_DEFINED__ +#define __IISDB_NBIT_FWD_DEFINED__ +typedef interface IISDB_NBIT IISDB_NBIT; + +#endif /* __IISDB_NBIT_FWD_DEFINED__ */ + + +#ifndef __IISDB_LDT_FWD_DEFINED__ +#define __IISDB_LDT_FWD_DEFINED__ +typedef interface IISDB_LDT IISDB_LDT; + +#endif /* __IISDB_LDT_FWD_DEFINED__ */ + + +#ifndef __IISDB_SDTT_FWD_DEFINED__ +#define __IISDB_SDTT_FWD_DEFINED__ +typedef interface IISDB_SDTT IISDB_SDTT; + +#endif /* __IISDB_SDTT_FWD_DEFINED__ */ + + +#ifndef __IISDB_CDT_FWD_DEFINED__ +#define __IISDB_CDT_FWD_DEFINED__ +typedef interface IISDB_CDT IISDB_CDT; + +#endif /* __IISDB_CDT_FWD_DEFINED__ */ + + +#ifndef __IISDB_EMM_FWD_DEFINED__ +#define __IISDB_EMM_FWD_DEFINED__ +typedef interface IISDB_EMM IISDB_EMM; + +#endif /* __IISDB_EMM_FWD_DEFINED__ */ + + +#ifndef __IDvbServiceAttributeDescriptor_FWD_DEFINED__ +#define __IDvbServiceAttributeDescriptor_FWD_DEFINED__ +typedef interface IDvbServiceAttributeDescriptor IDvbServiceAttributeDescriptor; + +#endif /* __IDvbServiceAttributeDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbContentIdentifierDescriptor_FWD_DEFINED__ +#define __IDvbContentIdentifierDescriptor_FWD_DEFINED__ +typedef interface IDvbContentIdentifierDescriptor IDvbContentIdentifierDescriptor; + +#endif /* __IDvbContentIdentifierDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbDefaultAuthorityDescriptor_FWD_DEFINED__ +#define __IDvbDefaultAuthorityDescriptor_FWD_DEFINED__ +typedef interface IDvbDefaultAuthorityDescriptor IDvbDefaultAuthorityDescriptor; + +#endif /* __IDvbDefaultAuthorityDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbSatelliteDeliverySystemDescriptor_FWD_DEFINED__ +#define __IDvbSatelliteDeliverySystemDescriptor_FWD_DEFINED__ +typedef interface IDvbSatelliteDeliverySystemDescriptor IDvbSatelliteDeliverySystemDescriptor; + +#endif /* __IDvbSatelliteDeliverySystemDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbCableDeliverySystemDescriptor_FWD_DEFINED__ +#define __IDvbCableDeliverySystemDescriptor_FWD_DEFINED__ +typedef interface IDvbCableDeliverySystemDescriptor IDvbCableDeliverySystemDescriptor; + +#endif /* __IDvbCableDeliverySystemDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbTerrestrialDeliverySystemDescriptor_FWD_DEFINED__ +#define __IDvbTerrestrialDeliverySystemDescriptor_FWD_DEFINED__ +typedef interface IDvbTerrestrialDeliverySystemDescriptor IDvbTerrestrialDeliverySystemDescriptor; + +#endif /* __IDvbTerrestrialDeliverySystemDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbTerrestrial2DeliverySystemDescriptor_FWD_DEFINED__ +#define __IDvbTerrestrial2DeliverySystemDescriptor_FWD_DEFINED__ +typedef interface IDvbTerrestrial2DeliverySystemDescriptor IDvbTerrestrial2DeliverySystemDescriptor; + +#endif /* __IDvbTerrestrial2DeliverySystemDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbFrequencyListDescriptor_FWD_DEFINED__ +#define __IDvbFrequencyListDescriptor_FWD_DEFINED__ +typedef interface IDvbFrequencyListDescriptor IDvbFrequencyListDescriptor; + +#endif /* __IDvbFrequencyListDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbPrivateDataSpecifierDescriptor_FWD_DEFINED__ +#define __IDvbPrivateDataSpecifierDescriptor_FWD_DEFINED__ +typedef interface IDvbPrivateDataSpecifierDescriptor IDvbPrivateDataSpecifierDescriptor; + +#endif /* __IDvbPrivateDataSpecifierDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbLogicalChannelDescriptor_FWD_DEFINED__ +#define __IDvbLogicalChannelDescriptor_FWD_DEFINED__ +typedef interface IDvbLogicalChannelDescriptor IDvbLogicalChannelDescriptor; + +#endif /* __IDvbLogicalChannelDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbLogicalChannelDescriptor2_FWD_DEFINED__ +#define __IDvbLogicalChannelDescriptor2_FWD_DEFINED__ +typedef interface IDvbLogicalChannelDescriptor2 IDvbLogicalChannelDescriptor2; + +#endif /* __IDvbLogicalChannelDescriptor2_FWD_DEFINED__ */ + + +#ifndef __IDvbLogicalChannel2Descriptor_FWD_DEFINED__ +#define __IDvbLogicalChannel2Descriptor_FWD_DEFINED__ +typedef interface IDvbLogicalChannel2Descriptor IDvbLogicalChannel2Descriptor; + +#endif /* __IDvbLogicalChannel2Descriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbHDSimulcastLogicalChannelDescriptor_FWD_DEFINED__ +#define __IDvbHDSimulcastLogicalChannelDescriptor_FWD_DEFINED__ +typedef interface IDvbHDSimulcastLogicalChannelDescriptor IDvbHDSimulcastLogicalChannelDescriptor; + +#endif /* __IDvbHDSimulcastLogicalChannelDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbDataBroadcastIDDescriptor_FWD_DEFINED__ +#define __IDvbDataBroadcastIDDescriptor_FWD_DEFINED__ +typedef interface IDvbDataBroadcastIDDescriptor IDvbDataBroadcastIDDescriptor; + +#endif /* __IDvbDataBroadcastIDDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbDataBroadcastDescriptor_FWD_DEFINED__ +#define __IDvbDataBroadcastDescriptor_FWD_DEFINED__ +typedef interface IDvbDataBroadcastDescriptor IDvbDataBroadcastDescriptor; + +#endif /* __IDvbDataBroadcastDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbLinkageDescriptor_FWD_DEFINED__ +#define __IDvbLinkageDescriptor_FWD_DEFINED__ +typedef interface IDvbLinkageDescriptor IDvbLinkageDescriptor; + +#endif /* __IDvbLinkageDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbTeletextDescriptor_FWD_DEFINED__ +#define __IDvbTeletextDescriptor_FWD_DEFINED__ +typedef interface IDvbTeletextDescriptor IDvbTeletextDescriptor; + +#endif /* __IDvbTeletextDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbSubtitlingDescriptor_FWD_DEFINED__ +#define __IDvbSubtitlingDescriptor_FWD_DEFINED__ +typedef interface IDvbSubtitlingDescriptor IDvbSubtitlingDescriptor; + +#endif /* __IDvbSubtitlingDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbServiceDescriptor_FWD_DEFINED__ +#define __IDvbServiceDescriptor_FWD_DEFINED__ +typedef interface IDvbServiceDescriptor IDvbServiceDescriptor; + +#endif /* __IDvbServiceDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbServiceDescriptor2_FWD_DEFINED__ +#define __IDvbServiceDescriptor2_FWD_DEFINED__ +typedef interface IDvbServiceDescriptor2 IDvbServiceDescriptor2; + +#endif /* __IDvbServiceDescriptor2_FWD_DEFINED__ */ + + +#ifndef __IDvbServiceListDescriptor_FWD_DEFINED__ +#define __IDvbServiceListDescriptor_FWD_DEFINED__ +typedef interface IDvbServiceListDescriptor IDvbServiceListDescriptor; + +#endif /* __IDvbServiceListDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbMultilingualServiceNameDescriptor_FWD_DEFINED__ +#define __IDvbMultilingualServiceNameDescriptor_FWD_DEFINED__ +typedef interface IDvbMultilingualServiceNameDescriptor IDvbMultilingualServiceNameDescriptor; + +#endif /* __IDvbMultilingualServiceNameDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbNetworkNameDescriptor_FWD_DEFINED__ +#define __IDvbNetworkNameDescriptor_FWD_DEFINED__ +typedef interface IDvbNetworkNameDescriptor IDvbNetworkNameDescriptor; + +#endif /* __IDvbNetworkNameDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbShortEventDescriptor_FWD_DEFINED__ +#define __IDvbShortEventDescriptor_FWD_DEFINED__ +typedef interface IDvbShortEventDescriptor IDvbShortEventDescriptor; + +#endif /* __IDvbShortEventDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbExtendedEventDescriptor_FWD_DEFINED__ +#define __IDvbExtendedEventDescriptor_FWD_DEFINED__ +typedef interface IDvbExtendedEventDescriptor IDvbExtendedEventDescriptor; + +#endif /* __IDvbExtendedEventDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbComponentDescriptor_FWD_DEFINED__ +#define __IDvbComponentDescriptor_FWD_DEFINED__ +typedef interface IDvbComponentDescriptor IDvbComponentDescriptor; + +#endif /* __IDvbComponentDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbContentDescriptor_FWD_DEFINED__ +#define __IDvbContentDescriptor_FWD_DEFINED__ +typedef interface IDvbContentDescriptor IDvbContentDescriptor; + +#endif /* __IDvbContentDescriptor_FWD_DEFINED__ */ + + +#ifndef __IDvbParentalRatingDescriptor_FWD_DEFINED__ +#define __IDvbParentalRatingDescriptor_FWD_DEFINED__ +typedef interface IDvbParentalRatingDescriptor IDvbParentalRatingDescriptor; + +#endif /* __IDvbParentalRatingDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbTerrestrialDeliverySystemDescriptor_FWD_DEFINED__ +#define __IIsdbTerrestrialDeliverySystemDescriptor_FWD_DEFINED__ +typedef interface IIsdbTerrestrialDeliverySystemDescriptor IIsdbTerrestrialDeliverySystemDescriptor; + +#endif /* __IIsdbTerrestrialDeliverySystemDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbTSInformationDescriptor_FWD_DEFINED__ +#define __IIsdbTSInformationDescriptor_FWD_DEFINED__ +typedef interface IIsdbTSInformationDescriptor IIsdbTSInformationDescriptor; + +#endif /* __IIsdbTSInformationDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbDigitalCopyControlDescriptor_FWD_DEFINED__ +#define __IIsdbDigitalCopyControlDescriptor_FWD_DEFINED__ +typedef interface IIsdbDigitalCopyControlDescriptor IIsdbDigitalCopyControlDescriptor; + +#endif /* __IIsdbDigitalCopyControlDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbAudioComponentDescriptor_FWD_DEFINED__ +#define __IIsdbAudioComponentDescriptor_FWD_DEFINED__ +typedef interface IIsdbAudioComponentDescriptor IIsdbAudioComponentDescriptor; + +#endif /* __IIsdbAudioComponentDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbDataContentDescriptor_FWD_DEFINED__ +#define __IIsdbDataContentDescriptor_FWD_DEFINED__ +typedef interface IIsdbDataContentDescriptor IIsdbDataContentDescriptor; + +#endif /* __IIsdbDataContentDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbCAContractInformationDescriptor_FWD_DEFINED__ +#define __IIsdbCAContractInformationDescriptor_FWD_DEFINED__ +typedef interface IIsdbCAContractInformationDescriptor IIsdbCAContractInformationDescriptor; + +#endif /* __IIsdbCAContractInformationDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbEventGroupDescriptor_FWD_DEFINED__ +#define __IIsdbEventGroupDescriptor_FWD_DEFINED__ +typedef interface IIsdbEventGroupDescriptor IIsdbEventGroupDescriptor; + +#endif /* __IIsdbEventGroupDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbComponentGroupDescriptor_FWD_DEFINED__ +#define __IIsdbComponentGroupDescriptor_FWD_DEFINED__ +typedef interface IIsdbComponentGroupDescriptor IIsdbComponentGroupDescriptor; + +#endif /* __IIsdbComponentGroupDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbSeriesDescriptor_FWD_DEFINED__ +#define __IIsdbSeriesDescriptor_FWD_DEFINED__ +typedef interface IIsdbSeriesDescriptor IIsdbSeriesDescriptor; + +#endif /* __IIsdbSeriesDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbDownloadContentDescriptor_FWD_DEFINED__ +#define __IIsdbDownloadContentDescriptor_FWD_DEFINED__ +typedef interface IIsdbDownloadContentDescriptor IIsdbDownloadContentDescriptor; + +#endif /* __IIsdbDownloadContentDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbLogoTransmissionDescriptor_FWD_DEFINED__ +#define __IIsdbLogoTransmissionDescriptor_FWD_DEFINED__ +typedef interface IIsdbLogoTransmissionDescriptor IIsdbLogoTransmissionDescriptor; + +#endif /* __IIsdbLogoTransmissionDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbSIParameterDescriptor_FWD_DEFINED__ +#define __IIsdbSIParameterDescriptor_FWD_DEFINED__ +typedef interface IIsdbSIParameterDescriptor IIsdbSIParameterDescriptor; + +#endif /* __IIsdbSIParameterDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbEmergencyInformationDescriptor_FWD_DEFINED__ +#define __IIsdbEmergencyInformationDescriptor_FWD_DEFINED__ +typedef interface IIsdbEmergencyInformationDescriptor IIsdbEmergencyInformationDescriptor; + +#endif /* __IIsdbEmergencyInformationDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbCADescriptor_FWD_DEFINED__ +#define __IIsdbCADescriptor_FWD_DEFINED__ +typedef interface IIsdbCADescriptor IIsdbCADescriptor; + +#endif /* __IIsdbCADescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbCAServiceDescriptor_FWD_DEFINED__ +#define __IIsdbCAServiceDescriptor_FWD_DEFINED__ +typedef interface IIsdbCAServiceDescriptor IIsdbCAServiceDescriptor; + +#endif /* __IIsdbCAServiceDescriptor_FWD_DEFINED__ */ + + +#ifndef __IIsdbHierarchicalTransmissionDescriptor_FWD_DEFINED__ +#define __IIsdbHierarchicalTransmissionDescriptor_FWD_DEFINED__ +typedef interface IIsdbHierarchicalTransmissionDescriptor IIsdbHierarchicalTransmissionDescriptor; + +#endif /* __IIsdbHierarchicalTransmissionDescriptor_FWD_DEFINED__ */ + + +#ifndef __IPBDASiParser_FWD_DEFINED__ +#define __IPBDASiParser_FWD_DEFINED__ +typedef interface IPBDASiParser IPBDASiParser; + +#endif /* __IPBDASiParser_FWD_DEFINED__ */ + + +#ifndef __IPBDA_EIT_FWD_DEFINED__ +#define __IPBDA_EIT_FWD_DEFINED__ +typedef interface IPBDA_EIT IPBDA_EIT; + +#endif /* __IPBDA_EIT_FWD_DEFINED__ */ + + +#ifndef __IPBDA_Services_FWD_DEFINED__ +#define __IPBDA_Services_FWD_DEFINED__ +typedef interface IPBDA_Services IPBDA_Services; + +#endif /* __IPBDA_Services_FWD_DEFINED__ */ + + +#ifndef __IPBDAEntitlementDescriptor_FWD_DEFINED__ +#define __IPBDAEntitlementDescriptor_FWD_DEFINED__ +typedef interface IPBDAEntitlementDescriptor IPBDAEntitlementDescriptor; + +#endif /* __IPBDAEntitlementDescriptor_FWD_DEFINED__ */ + + +#ifndef __IPBDAAttributesDescriptor_FWD_DEFINED__ +#define __IPBDAAttributesDescriptor_FWD_DEFINED__ +typedef interface IPBDAAttributesDescriptor IPBDAAttributesDescriptor; + +#endif /* __IPBDAAttributesDescriptor_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "mpeg2structs.h" +#include "mpeg2data.h" +#include "mpeg2psiparser.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_dvbsiparser_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef /* [public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public][public] */ +enum __MIDL___MIDL_itf_dvbsiparser_0000_0000_0001 + { + STRCONV_MODE_DVB = 0, + STRCONV_MODE_DVB_EMPHASIS = ( STRCONV_MODE_DVB + 1 ) , + STRCONV_MODE_DVB_WITHOUT_EMPHASIS = ( STRCONV_MODE_DVB_EMPHASIS + 1 ) , + STRCONV_MODE_ISDB = ( STRCONV_MODE_DVB_WITHOUT_EMPHASIS + 1 ) + } DVB_STRCONV_MODE; + + + + + + + + + + + + + + + + + + + + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_dvbsiparser_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dvbsiparser_0000_0000_v0_0_s_ifspec; + +#ifndef __IDvbSiParser_INTERFACE_DEFINED__ +#define __IDvbSiParser_INTERFACE_DEFINED__ + +/* interface IDvbSiParser */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbSiParser; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B758A7BD-14DC-449d-B828-35909ACB3B1E") + IDvbSiParser : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ IUnknown *punkMpeg2Data) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPAT( + /* [out] */ IPAT **ppPAT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCAT( + /* [in] */ DWORD dwTimeout, + /* [out] */ ICAT **ppCAT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPMT( + /* [in] */ PID pid, + /* [annotation][in] */ + _In_opt_ WORD *pwProgramNumber, + /* [out] */ IPMT **ppPMT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTSDT( + /* [out] */ ITSDT **ppTSDT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNIT( + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwNetworkId, + /* [out] */ IDVB_NIT **ppNIT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSDT( + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwTransportStreamId, + /* [out] */ IDVB_SDT **ppSDT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEIT( + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwServiceId, + /* [out] */ IDVB_EIT **ppEIT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBAT( + /* [annotation][in] */ + _In_opt_ WORD *pwBouquetId, + /* [out] */ IDVB_BAT **ppBAT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRST( + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_RST **ppRST) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetST( + /* [in] */ PID pid, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_ST **ppST) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTDT( + /* [out] */ IDVB_TDT **ppTDT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTOT( + /* [out] */ IDVB_TOT **ppTOT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDIT( + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_DIT **ppDIT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSIT( + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_SIT **ppSIT) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbSiParserVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbSiParser * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbSiParser * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbSiParser * This); + + DECLSPEC_XFGVIRT(IDvbSiParser, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDvbSiParser * This, + /* [in] */ IUnknown *punkMpeg2Data); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetPAT) + HRESULT ( STDMETHODCALLTYPE *GetPAT )( + IDvbSiParser * This, + /* [out] */ IPAT **ppPAT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetCAT) + HRESULT ( STDMETHODCALLTYPE *GetCAT )( + IDvbSiParser * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ ICAT **ppCAT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetPMT) + HRESULT ( STDMETHODCALLTYPE *GetPMT )( + IDvbSiParser * This, + /* [in] */ PID pid, + /* [annotation][in] */ + _In_opt_ WORD *pwProgramNumber, + /* [out] */ IPMT **ppPMT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetTSDT) + HRESULT ( STDMETHODCALLTYPE *GetTSDT )( + IDvbSiParser * This, + /* [out] */ ITSDT **ppTSDT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetNIT) + HRESULT ( STDMETHODCALLTYPE *GetNIT )( + IDvbSiParser * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwNetworkId, + /* [out] */ IDVB_NIT **ppNIT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetSDT) + HRESULT ( STDMETHODCALLTYPE *GetSDT )( + IDvbSiParser * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwTransportStreamId, + /* [out] */ IDVB_SDT **ppSDT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetEIT) + HRESULT ( STDMETHODCALLTYPE *GetEIT )( + IDvbSiParser * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwServiceId, + /* [out] */ IDVB_EIT **ppEIT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetBAT) + HRESULT ( STDMETHODCALLTYPE *GetBAT )( + IDvbSiParser * This, + /* [annotation][in] */ + _In_opt_ WORD *pwBouquetId, + /* [out] */ IDVB_BAT **ppBAT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetRST) + HRESULT ( STDMETHODCALLTYPE *GetRST )( + IDvbSiParser * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_RST **ppRST); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetST) + HRESULT ( STDMETHODCALLTYPE *GetST )( + IDvbSiParser * This, + /* [in] */ PID pid, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_ST **ppST); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetTDT) + HRESULT ( STDMETHODCALLTYPE *GetTDT )( + IDvbSiParser * This, + /* [out] */ IDVB_TDT **ppTDT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetTOT) + HRESULT ( STDMETHODCALLTYPE *GetTOT )( + IDvbSiParser * This, + /* [out] */ IDVB_TOT **ppTOT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetDIT) + HRESULT ( STDMETHODCALLTYPE *GetDIT )( + IDvbSiParser * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_DIT **ppDIT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetSIT) + HRESULT ( STDMETHODCALLTYPE *GetSIT )( + IDvbSiParser * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_SIT **ppSIT); + + END_INTERFACE + } IDvbSiParserVtbl; + + interface IDvbSiParser + { + CONST_VTBL struct IDvbSiParserVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbSiParser_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbSiParser_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbSiParser_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbSiParser_Initialize(This,punkMpeg2Data) \ + ( (This)->lpVtbl -> Initialize(This,punkMpeg2Data) ) + +#define IDvbSiParser_GetPAT(This,ppPAT) \ + ( (This)->lpVtbl -> GetPAT(This,ppPAT) ) + +#define IDvbSiParser_GetCAT(This,dwTimeout,ppCAT) \ + ( (This)->lpVtbl -> GetCAT(This,dwTimeout,ppCAT) ) + +#define IDvbSiParser_GetPMT(This,pid,pwProgramNumber,ppPMT) \ + ( (This)->lpVtbl -> GetPMT(This,pid,pwProgramNumber,ppPMT) ) + +#define IDvbSiParser_GetTSDT(This,ppTSDT) \ + ( (This)->lpVtbl -> GetTSDT(This,ppTSDT) ) + +#define IDvbSiParser_GetNIT(This,tableId,pwNetworkId,ppNIT) \ + ( (This)->lpVtbl -> GetNIT(This,tableId,pwNetworkId,ppNIT) ) + +#define IDvbSiParser_GetSDT(This,tableId,pwTransportStreamId,ppSDT) \ + ( (This)->lpVtbl -> GetSDT(This,tableId,pwTransportStreamId,ppSDT) ) + +#define IDvbSiParser_GetEIT(This,tableId,pwServiceId,ppEIT) \ + ( (This)->lpVtbl -> GetEIT(This,tableId,pwServiceId,ppEIT) ) + +#define IDvbSiParser_GetBAT(This,pwBouquetId,ppBAT) \ + ( (This)->lpVtbl -> GetBAT(This,pwBouquetId,ppBAT) ) + +#define IDvbSiParser_GetRST(This,dwTimeout,ppRST) \ + ( (This)->lpVtbl -> GetRST(This,dwTimeout,ppRST) ) + +#define IDvbSiParser_GetST(This,pid,dwTimeout,ppST) \ + ( (This)->lpVtbl -> GetST(This,pid,dwTimeout,ppST) ) + +#define IDvbSiParser_GetTDT(This,ppTDT) \ + ( (This)->lpVtbl -> GetTDT(This,ppTDT) ) + +#define IDvbSiParser_GetTOT(This,ppTOT) \ + ( (This)->lpVtbl -> GetTOT(This,ppTOT) ) + +#define IDvbSiParser_GetDIT(This,dwTimeout,ppDIT) \ + ( (This)->lpVtbl -> GetDIT(This,dwTimeout,ppDIT) ) + +#define IDvbSiParser_GetSIT(This,dwTimeout,ppSIT) \ + ( (This)->lpVtbl -> GetSIT(This,dwTimeout,ppSIT) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbSiParser_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbSiParser2_INTERFACE_DEFINED__ +#define __IDvbSiParser2_INTERFACE_DEFINED__ + +/* interface IDvbSiParser2 */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbSiParser2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0AC5525F-F816-42F4-93BA-4C0F32F46E54") + IDvbSiParser2 : public IDvbSiParser + { + public: + virtual HRESULT STDMETHODCALLTYPE GetEIT2( + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwServiceId, + /* [annotation][in] */ + _In_opt_ BYTE *pbSegment, + /* [out] */ IDVB_EIT2 **ppEIT) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbSiParser2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbSiParser2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbSiParser2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbSiParser2 * This); + + DECLSPEC_XFGVIRT(IDvbSiParser, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDvbSiParser2 * This, + /* [in] */ IUnknown *punkMpeg2Data); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetPAT) + HRESULT ( STDMETHODCALLTYPE *GetPAT )( + IDvbSiParser2 * This, + /* [out] */ IPAT **ppPAT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetCAT) + HRESULT ( STDMETHODCALLTYPE *GetCAT )( + IDvbSiParser2 * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ ICAT **ppCAT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetPMT) + HRESULT ( STDMETHODCALLTYPE *GetPMT )( + IDvbSiParser2 * This, + /* [in] */ PID pid, + /* [annotation][in] */ + _In_opt_ WORD *pwProgramNumber, + /* [out] */ IPMT **ppPMT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetTSDT) + HRESULT ( STDMETHODCALLTYPE *GetTSDT )( + IDvbSiParser2 * This, + /* [out] */ ITSDT **ppTSDT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetNIT) + HRESULT ( STDMETHODCALLTYPE *GetNIT )( + IDvbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwNetworkId, + /* [out] */ IDVB_NIT **ppNIT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetSDT) + HRESULT ( STDMETHODCALLTYPE *GetSDT )( + IDvbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwTransportStreamId, + /* [out] */ IDVB_SDT **ppSDT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetEIT) + HRESULT ( STDMETHODCALLTYPE *GetEIT )( + IDvbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwServiceId, + /* [out] */ IDVB_EIT **ppEIT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetBAT) + HRESULT ( STDMETHODCALLTYPE *GetBAT )( + IDvbSiParser2 * This, + /* [annotation][in] */ + _In_opt_ WORD *pwBouquetId, + /* [out] */ IDVB_BAT **ppBAT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetRST) + HRESULT ( STDMETHODCALLTYPE *GetRST )( + IDvbSiParser2 * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_RST **ppRST); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetST) + HRESULT ( STDMETHODCALLTYPE *GetST )( + IDvbSiParser2 * This, + /* [in] */ PID pid, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_ST **ppST); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetTDT) + HRESULT ( STDMETHODCALLTYPE *GetTDT )( + IDvbSiParser2 * This, + /* [out] */ IDVB_TDT **ppTDT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetTOT) + HRESULT ( STDMETHODCALLTYPE *GetTOT )( + IDvbSiParser2 * This, + /* [out] */ IDVB_TOT **ppTOT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetDIT) + HRESULT ( STDMETHODCALLTYPE *GetDIT )( + IDvbSiParser2 * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_DIT **ppDIT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetSIT) + HRESULT ( STDMETHODCALLTYPE *GetSIT )( + IDvbSiParser2 * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_SIT **ppSIT); + + DECLSPEC_XFGVIRT(IDvbSiParser2, GetEIT2) + HRESULT ( STDMETHODCALLTYPE *GetEIT2 )( + IDvbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwServiceId, + /* [annotation][in] */ + _In_opt_ BYTE *pbSegment, + /* [out] */ IDVB_EIT2 **ppEIT); + + END_INTERFACE + } IDvbSiParser2Vtbl; + + interface IDvbSiParser2 + { + CONST_VTBL struct IDvbSiParser2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbSiParser2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbSiParser2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbSiParser2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbSiParser2_Initialize(This,punkMpeg2Data) \ + ( (This)->lpVtbl -> Initialize(This,punkMpeg2Data) ) + +#define IDvbSiParser2_GetPAT(This,ppPAT) \ + ( (This)->lpVtbl -> GetPAT(This,ppPAT) ) + +#define IDvbSiParser2_GetCAT(This,dwTimeout,ppCAT) \ + ( (This)->lpVtbl -> GetCAT(This,dwTimeout,ppCAT) ) + +#define IDvbSiParser2_GetPMT(This,pid,pwProgramNumber,ppPMT) \ + ( (This)->lpVtbl -> GetPMT(This,pid,pwProgramNumber,ppPMT) ) + +#define IDvbSiParser2_GetTSDT(This,ppTSDT) \ + ( (This)->lpVtbl -> GetTSDT(This,ppTSDT) ) + +#define IDvbSiParser2_GetNIT(This,tableId,pwNetworkId,ppNIT) \ + ( (This)->lpVtbl -> GetNIT(This,tableId,pwNetworkId,ppNIT) ) + +#define IDvbSiParser2_GetSDT(This,tableId,pwTransportStreamId,ppSDT) \ + ( (This)->lpVtbl -> GetSDT(This,tableId,pwTransportStreamId,ppSDT) ) + +#define IDvbSiParser2_GetEIT(This,tableId,pwServiceId,ppEIT) \ + ( (This)->lpVtbl -> GetEIT(This,tableId,pwServiceId,ppEIT) ) + +#define IDvbSiParser2_GetBAT(This,pwBouquetId,ppBAT) \ + ( (This)->lpVtbl -> GetBAT(This,pwBouquetId,ppBAT) ) + +#define IDvbSiParser2_GetRST(This,dwTimeout,ppRST) \ + ( (This)->lpVtbl -> GetRST(This,dwTimeout,ppRST) ) + +#define IDvbSiParser2_GetST(This,pid,dwTimeout,ppST) \ + ( (This)->lpVtbl -> GetST(This,pid,dwTimeout,ppST) ) + +#define IDvbSiParser2_GetTDT(This,ppTDT) \ + ( (This)->lpVtbl -> GetTDT(This,ppTDT) ) + +#define IDvbSiParser2_GetTOT(This,ppTOT) \ + ( (This)->lpVtbl -> GetTOT(This,ppTOT) ) + +#define IDvbSiParser2_GetDIT(This,dwTimeout,ppDIT) \ + ( (This)->lpVtbl -> GetDIT(This,dwTimeout,ppDIT) ) + +#define IDvbSiParser2_GetSIT(This,dwTimeout,ppSIT) \ + ( (This)->lpVtbl -> GetSIT(This,dwTimeout,ppSIT) ) + + +#define IDvbSiParser2_GetEIT2(This,tableId,pwServiceId,pbSegment,ppEIT) \ + ( (This)->lpVtbl -> GetEIT2(This,tableId,pwServiceId,pbSegment,ppEIT) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbSiParser2_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbSiParser2_INTERFACE_DEFINED__ +#define __IIsdbSiParser2_INTERFACE_DEFINED__ + +/* interface IIsdbSiParser2 */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbSiParser2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("900E4BB7-18CD-453F-98BE-3BE6AA211772") + IIsdbSiParser2 : public IDvbSiParser2 + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSDT( + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwTransportStreamId, + /* [out] */ IISDB_SDT **ppSDT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBIT( + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwOriginalNetworkId, + /* [out] */ IISDB_BIT **ppBIT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNBIT( + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwOriginalNetworkId, + /* [out] */ IISDB_NBIT **ppNBIT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLDT( + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwOriginalServiceId, + /* [out] */ IISDB_LDT **ppLDT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSDTT( + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwTableIdExt, + /* [out] */ IISDB_SDTT **ppSDTT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCDT( + /* [in] */ TID tableId, + /* [in] */ BYTE bSectionNumber, + /* [annotation][in] */ + _In_opt_ WORD *pwDownloadDataId, + /* [out] */ IISDB_CDT **ppCDT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEMM( + /* [in] */ PID pid, + /* [in] */ WORD wTableIdExt, + /* [out] */ IISDB_EMM **ppEMM) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbSiParser2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbSiParser2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbSiParser2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbSiParser2 * This); + + DECLSPEC_XFGVIRT(IDvbSiParser, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IIsdbSiParser2 * This, + /* [in] */ IUnknown *punkMpeg2Data); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetPAT) + HRESULT ( STDMETHODCALLTYPE *GetPAT )( + IIsdbSiParser2 * This, + /* [out] */ IPAT **ppPAT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetCAT) + HRESULT ( STDMETHODCALLTYPE *GetCAT )( + IIsdbSiParser2 * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ ICAT **ppCAT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetPMT) + HRESULT ( STDMETHODCALLTYPE *GetPMT )( + IIsdbSiParser2 * This, + /* [in] */ PID pid, + /* [annotation][in] */ + _In_opt_ WORD *pwProgramNumber, + /* [out] */ IPMT **ppPMT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetTSDT) + HRESULT ( STDMETHODCALLTYPE *GetTSDT )( + IIsdbSiParser2 * This, + /* [out] */ ITSDT **ppTSDT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetNIT) + HRESULT ( STDMETHODCALLTYPE *GetNIT )( + IIsdbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwNetworkId, + /* [out] */ IDVB_NIT **ppNIT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetSDT) + HRESULT ( STDMETHODCALLTYPE *GetSDT )( + IIsdbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwTransportStreamId, + /* [out] */ IDVB_SDT **ppSDT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetEIT) + HRESULT ( STDMETHODCALLTYPE *GetEIT )( + IIsdbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwServiceId, + /* [out] */ IDVB_EIT **ppEIT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetBAT) + HRESULT ( STDMETHODCALLTYPE *GetBAT )( + IIsdbSiParser2 * This, + /* [annotation][in] */ + _In_opt_ WORD *pwBouquetId, + /* [out] */ IDVB_BAT **ppBAT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetRST) + HRESULT ( STDMETHODCALLTYPE *GetRST )( + IIsdbSiParser2 * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_RST **ppRST); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetST) + HRESULT ( STDMETHODCALLTYPE *GetST )( + IIsdbSiParser2 * This, + /* [in] */ PID pid, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_ST **ppST); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetTDT) + HRESULT ( STDMETHODCALLTYPE *GetTDT )( + IIsdbSiParser2 * This, + /* [out] */ IDVB_TDT **ppTDT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetTOT) + HRESULT ( STDMETHODCALLTYPE *GetTOT )( + IIsdbSiParser2 * This, + /* [out] */ IDVB_TOT **ppTOT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetDIT) + HRESULT ( STDMETHODCALLTYPE *GetDIT )( + IIsdbSiParser2 * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_DIT **ppDIT); + + DECLSPEC_XFGVIRT(IDvbSiParser, GetSIT) + HRESULT ( STDMETHODCALLTYPE *GetSIT )( + IIsdbSiParser2 * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_SIT **ppSIT); + + DECLSPEC_XFGVIRT(IDvbSiParser2, GetEIT2) + HRESULT ( STDMETHODCALLTYPE *GetEIT2 )( + IIsdbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwServiceId, + /* [annotation][in] */ + _In_opt_ BYTE *pbSegment, + /* [out] */ IDVB_EIT2 **ppEIT); + + DECLSPEC_XFGVIRT(IIsdbSiParser2, GetSDT) + HRESULT ( STDMETHODCALLTYPE *GetSDT )( + IIsdbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwTransportStreamId, + /* [out] */ IISDB_SDT **ppSDT); + + DECLSPEC_XFGVIRT(IIsdbSiParser2, GetBIT) + HRESULT ( STDMETHODCALLTYPE *GetBIT )( + IIsdbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwOriginalNetworkId, + /* [out] */ IISDB_BIT **ppBIT); + + DECLSPEC_XFGVIRT(IIsdbSiParser2, GetNBIT) + HRESULT ( STDMETHODCALLTYPE *GetNBIT )( + IIsdbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwOriginalNetworkId, + /* [out] */ IISDB_NBIT **ppNBIT); + + DECLSPEC_XFGVIRT(IIsdbSiParser2, GetLDT) + HRESULT ( STDMETHODCALLTYPE *GetLDT )( + IIsdbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwOriginalServiceId, + /* [out] */ IISDB_LDT **ppLDT); + + DECLSPEC_XFGVIRT(IIsdbSiParser2, GetSDTT) + HRESULT ( STDMETHODCALLTYPE *GetSDTT )( + IIsdbSiParser2 * This, + /* [in] */ TID tableId, + /* [annotation][in] */ + _In_opt_ WORD *pwTableIdExt, + /* [out] */ IISDB_SDTT **ppSDTT); + + DECLSPEC_XFGVIRT(IIsdbSiParser2, GetCDT) + HRESULT ( STDMETHODCALLTYPE *GetCDT )( + IIsdbSiParser2 * This, + /* [in] */ TID tableId, + /* [in] */ BYTE bSectionNumber, + /* [annotation][in] */ + _In_opt_ WORD *pwDownloadDataId, + /* [out] */ IISDB_CDT **ppCDT); + + DECLSPEC_XFGVIRT(IIsdbSiParser2, GetEMM) + HRESULT ( STDMETHODCALLTYPE *GetEMM )( + IIsdbSiParser2 * This, + /* [in] */ PID pid, + /* [in] */ WORD wTableIdExt, + /* [out] */ IISDB_EMM **ppEMM); + + END_INTERFACE + } IIsdbSiParser2Vtbl; + + interface IIsdbSiParser2 + { + CONST_VTBL struct IIsdbSiParser2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbSiParser2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbSiParser2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbSiParser2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbSiParser2_Initialize(This,punkMpeg2Data) \ + ( (This)->lpVtbl -> Initialize(This,punkMpeg2Data) ) + +#define IIsdbSiParser2_GetPAT(This,ppPAT) \ + ( (This)->lpVtbl -> GetPAT(This,ppPAT) ) + +#define IIsdbSiParser2_GetCAT(This,dwTimeout,ppCAT) \ + ( (This)->lpVtbl -> GetCAT(This,dwTimeout,ppCAT) ) + +#define IIsdbSiParser2_GetPMT(This,pid,pwProgramNumber,ppPMT) \ + ( (This)->lpVtbl -> GetPMT(This,pid,pwProgramNumber,ppPMT) ) + +#define IIsdbSiParser2_GetTSDT(This,ppTSDT) \ + ( (This)->lpVtbl -> GetTSDT(This,ppTSDT) ) + +#define IIsdbSiParser2_GetNIT(This,tableId,pwNetworkId,ppNIT) \ + ( (This)->lpVtbl -> GetNIT(This,tableId,pwNetworkId,ppNIT) ) + +#define IIsdbSiParser2_GetSDT(This,tableId,pwTransportStreamId,ppSDT) \ + ( (This)->lpVtbl -> GetSDT(This,tableId,pwTransportStreamId,ppSDT) ) + +#define IIsdbSiParser2_GetEIT(This,tableId,pwServiceId,ppEIT) \ + ( (This)->lpVtbl -> GetEIT(This,tableId,pwServiceId,ppEIT) ) + +#define IIsdbSiParser2_GetBAT(This,pwBouquetId,ppBAT) \ + ( (This)->lpVtbl -> GetBAT(This,pwBouquetId,ppBAT) ) + +#define IIsdbSiParser2_GetRST(This,dwTimeout,ppRST) \ + ( (This)->lpVtbl -> GetRST(This,dwTimeout,ppRST) ) + +#define IIsdbSiParser2_GetST(This,pid,dwTimeout,ppST) \ + ( (This)->lpVtbl -> GetST(This,pid,dwTimeout,ppST) ) + +#define IIsdbSiParser2_GetTDT(This,ppTDT) \ + ( (This)->lpVtbl -> GetTDT(This,ppTDT) ) + +#define IIsdbSiParser2_GetTOT(This,ppTOT) \ + ( (This)->lpVtbl -> GetTOT(This,ppTOT) ) + +#define IIsdbSiParser2_GetDIT(This,dwTimeout,ppDIT) \ + ( (This)->lpVtbl -> GetDIT(This,dwTimeout,ppDIT) ) + +#define IIsdbSiParser2_GetSIT(This,dwTimeout,ppSIT) \ + ( (This)->lpVtbl -> GetSIT(This,dwTimeout,ppSIT) ) + + +#define IIsdbSiParser2_GetEIT2(This,tableId,pwServiceId,pbSegment,ppEIT) \ + ( (This)->lpVtbl -> GetEIT2(This,tableId,pwServiceId,pbSegment,ppEIT) ) + + +#define IIsdbSiParser2_GetSDT(This,tableId,pwTransportStreamId,ppSDT) \ + ( (This)->lpVtbl -> GetSDT(This,tableId,pwTransportStreamId,ppSDT) ) + +#define IIsdbSiParser2_GetBIT(This,tableId,pwOriginalNetworkId,ppBIT) \ + ( (This)->lpVtbl -> GetBIT(This,tableId,pwOriginalNetworkId,ppBIT) ) + +#define IIsdbSiParser2_GetNBIT(This,tableId,pwOriginalNetworkId,ppNBIT) \ + ( (This)->lpVtbl -> GetNBIT(This,tableId,pwOriginalNetworkId,ppNBIT) ) + +#define IIsdbSiParser2_GetLDT(This,tableId,pwOriginalServiceId,ppLDT) \ + ( (This)->lpVtbl -> GetLDT(This,tableId,pwOriginalServiceId,ppLDT) ) + +#define IIsdbSiParser2_GetSDTT(This,tableId,pwTableIdExt,ppSDTT) \ + ( (This)->lpVtbl -> GetSDTT(This,tableId,pwTableIdExt,ppSDTT) ) + +#define IIsdbSiParser2_GetCDT(This,tableId,bSectionNumber,pwDownloadDataId,ppCDT) \ + ( (This)->lpVtbl -> GetCDT(This,tableId,bSectionNumber,pwDownloadDataId,ppCDT) ) + +#define IIsdbSiParser2_GetEMM(This,pid,wTableIdExt,ppEMM) \ + ( (This)->lpVtbl -> GetEMM(This,pid,wTableIdExt,ppEMM) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbSiParser2_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_NIT_INTERFACE_DEFINED__ +#define __IDVB_NIT_INTERFACE_DEFINED__ + +/* interface IDVB_NIT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_NIT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C64935F4-29E4-4e22-911A-63F7F55CB097") + IDVB_NIT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNetworkId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfTableDescriptors( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByIndex( + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByTag( + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordTransportStreamId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordOriginalNetworkId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterForNextTable( + /* [in] */ HANDLE hNextTableAvailable) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNextTable( + /* [out] */ IDVB_NIT **ppNIT) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterForWhenCurrent( + /* [in] */ HANDLE hNextTableIsCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConvertNextToCurrent( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionHash( + /* [out] */ DWORD *pdwVersionHash) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_NITVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_NIT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_NIT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_NIT * This); + + DECLSPEC_XFGVIRT(IDVB_NIT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_NIT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IDVB_NIT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetNetworkId )( + IDVB_NIT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetCountOfTableDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetCountOfTableDescriptors )( + IDVB_NIT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetTableDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByIndex )( + IDVB_NIT * This, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetTableDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByTag )( + IDVB_NIT * This, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDVB_NIT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetRecordTransportStreamId) + HRESULT ( STDMETHODCALLTYPE *GetRecordTransportStreamId )( + IDVB_NIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetRecordOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetRecordOriginalNetworkId )( + IDVB_NIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IDVB_NIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IDVB_NIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IDVB_NIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_NIT, RegisterForNextTable) + HRESULT ( STDMETHODCALLTYPE *RegisterForNextTable )( + IDVB_NIT * This, + /* [in] */ HANDLE hNextTableAvailable); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetNextTable) + HRESULT ( STDMETHODCALLTYPE *GetNextTable )( + IDVB_NIT * This, + /* [out] */ IDVB_NIT **ppNIT); + + DECLSPEC_XFGVIRT(IDVB_NIT, RegisterForWhenCurrent) + HRESULT ( STDMETHODCALLTYPE *RegisterForWhenCurrent )( + IDVB_NIT * This, + /* [in] */ HANDLE hNextTableIsCurrent); + + DECLSPEC_XFGVIRT(IDVB_NIT, ConvertNextToCurrent) + HRESULT ( STDMETHODCALLTYPE *ConvertNextToCurrent )( + IDVB_NIT * This); + + DECLSPEC_XFGVIRT(IDVB_NIT, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IDVB_NIT * This, + /* [out] */ DWORD *pdwVersionHash); + + END_INTERFACE + } IDVB_NITVtbl; + + interface IDVB_NIT + { + CONST_VTBL struct IDVB_NITVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_NIT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_NIT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_NIT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_NIT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IDVB_NIT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IDVB_NIT_GetNetworkId(This,pwVal) \ + ( (This)->lpVtbl -> GetNetworkId(This,pwVal) ) + +#define IDVB_NIT_GetCountOfTableDescriptors(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfTableDescriptors(This,pdwVal) ) + +#define IDVB_NIT_GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) ) + +#define IDVB_NIT_GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) ) + +#define IDVB_NIT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IDVB_NIT_GetRecordTransportStreamId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordTransportStreamId(This,dwRecordIndex,pwVal) ) + +#define IDVB_NIT_GetRecordOriginalNetworkId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordOriginalNetworkId(This,dwRecordIndex,pwVal) ) + +#define IDVB_NIT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IDVB_NIT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IDVB_NIT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IDVB_NIT_RegisterForNextTable(This,hNextTableAvailable) \ + ( (This)->lpVtbl -> RegisterForNextTable(This,hNextTableAvailable) ) + +#define IDVB_NIT_GetNextTable(This,ppNIT) \ + ( (This)->lpVtbl -> GetNextTable(This,ppNIT) ) + +#define IDVB_NIT_RegisterForWhenCurrent(This,hNextTableIsCurrent) \ + ( (This)->lpVtbl -> RegisterForWhenCurrent(This,hNextTableIsCurrent) ) + +#define IDVB_NIT_ConvertNextToCurrent(This) \ + ( (This)->lpVtbl -> ConvertNextToCurrent(This) ) + +#define IDVB_NIT_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_NIT_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_SDT_INTERFACE_DEFINED__ +#define __IDVB_SDT_INTERFACE_DEFINED__ + +/* interface IDVB_SDT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_SDT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("02CAD8D3-FE43-48e2-90BD-450ED9A8A5FD") + IDVB_SDT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTransportStreamId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalNetworkId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordServiceId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordEITScheduleFlag( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordEITPresentFollowingFlag( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordRunningStatus( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordFreeCAMode( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterForNextTable( + /* [in] */ HANDLE hNextTableAvailable) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNextTable( + /* [out] */ IDVB_SDT **ppSDT) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterForWhenCurrent( + /* [in] */ HANDLE hNextTableIsCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConvertNextToCurrent( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionHash( + /* [out] */ DWORD *pdwVersionHash) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_SDTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_SDT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_SDT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_SDT * This); + + DECLSPEC_XFGVIRT(IDVB_SDT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_SDT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IDVB_SDT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetTransportStreamId) + HRESULT ( STDMETHODCALLTYPE *GetTransportStreamId )( + IDVB_SDT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetOriginalNetworkId )( + IDVB_SDT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDVB_SDT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceId )( + IDVB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordEITScheduleFlag) + HRESULT ( STDMETHODCALLTYPE *GetRecordEITScheduleFlag )( + IDVB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordEITPresentFollowingFlag) + HRESULT ( STDMETHODCALLTYPE *GetRecordEITPresentFollowingFlag )( + IDVB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordRunningStatus) + HRESULT ( STDMETHODCALLTYPE *GetRecordRunningStatus )( + IDVB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordFreeCAMode) + HRESULT ( STDMETHODCALLTYPE *GetRecordFreeCAMode )( + IDVB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IDVB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IDVB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IDVB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_SDT, RegisterForNextTable) + HRESULT ( STDMETHODCALLTYPE *RegisterForNextTable )( + IDVB_SDT * This, + /* [in] */ HANDLE hNextTableAvailable); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetNextTable) + HRESULT ( STDMETHODCALLTYPE *GetNextTable )( + IDVB_SDT * This, + /* [out] */ IDVB_SDT **ppSDT); + + DECLSPEC_XFGVIRT(IDVB_SDT, RegisterForWhenCurrent) + HRESULT ( STDMETHODCALLTYPE *RegisterForWhenCurrent )( + IDVB_SDT * This, + /* [in] */ HANDLE hNextTableIsCurrent); + + DECLSPEC_XFGVIRT(IDVB_SDT, ConvertNextToCurrent) + HRESULT ( STDMETHODCALLTYPE *ConvertNextToCurrent )( + IDVB_SDT * This); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IDVB_SDT * This, + /* [out] */ DWORD *pdwVersionHash); + + END_INTERFACE + } IDVB_SDTVtbl; + + interface IDVB_SDT + { + CONST_VTBL struct IDVB_SDTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_SDT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_SDT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_SDT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_SDT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IDVB_SDT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IDVB_SDT_GetTransportStreamId(This,pwVal) \ + ( (This)->lpVtbl -> GetTransportStreamId(This,pwVal) ) + +#define IDVB_SDT_GetOriginalNetworkId(This,pwVal) \ + ( (This)->lpVtbl -> GetOriginalNetworkId(This,pwVal) ) + +#define IDVB_SDT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IDVB_SDT_GetRecordServiceId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordServiceId(This,dwRecordIndex,pwVal) ) + +#define IDVB_SDT_GetRecordEITScheduleFlag(This,dwRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordEITScheduleFlag(This,dwRecordIndex,pfVal) ) + +#define IDVB_SDT_GetRecordEITPresentFollowingFlag(This,dwRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordEITPresentFollowingFlag(This,dwRecordIndex,pfVal) ) + +#define IDVB_SDT_GetRecordRunningStatus(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordRunningStatus(This,dwRecordIndex,pbVal) ) + +#define IDVB_SDT_GetRecordFreeCAMode(This,dwRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordFreeCAMode(This,dwRecordIndex,pfVal) ) + +#define IDVB_SDT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IDVB_SDT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IDVB_SDT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IDVB_SDT_RegisterForNextTable(This,hNextTableAvailable) \ + ( (This)->lpVtbl -> RegisterForNextTable(This,hNextTableAvailable) ) + +#define IDVB_SDT_GetNextTable(This,ppSDT) \ + ( (This)->lpVtbl -> GetNextTable(This,ppSDT) ) + +#define IDVB_SDT_RegisterForWhenCurrent(This,hNextTableIsCurrent) \ + ( (This)->lpVtbl -> RegisterForWhenCurrent(This,hNextTableIsCurrent) ) + +#define IDVB_SDT_ConvertNextToCurrent(This) \ + ( (This)->lpVtbl -> ConvertNextToCurrent(This) ) + +#define IDVB_SDT_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_SDT_INTERFACE_DEFINED__ */ + + +#ifndef __IISDB_SDT_INTERFACE_DEFINED__ +#define __IISDB_SDT_INTERFACE_DEFINED__ + +/* interface IISDB_SDT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IISDB_SDT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3F3DC9A2-BB32-4FB9-AE9E-D856848927A3") + IISDB_SDT : public IDVB_SDT + { + public: + virtual HRESULT STDMETHODCALLTYPE GetRecordEITUserDefinedFlags( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IISDB_SDTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISDB_SDT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IISDB_SDT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IISDB_SDT * This); + + DECLSPEC_XFGVIRT(IDVB_SDT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IISDB_SDT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IISDB_SDT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetTransportStreamId) + HRESULT ( STDMETHODCALLTYPE *GetTransportStreamId )( + IISDB_SDT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetOriginalNetworkId )( + IISDB_SDT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IISDB_SDT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceId )( + IISDB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordEITScheduleFlag) + HRESULT ( STDMETHODCALLTYPE *GetRecordEITScheduleFlag )( + IISDB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordEITPresentFollowingFlag) + HRESULT ( STDMETHODCALLTYPE *GetRecordEITPresentFollowingFlag )( + IISDB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordRunningStatus) + HRESULT ( STDMETHODCALLTYPE *GetRecordRunningStatus )( + IISDB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordFreeCAMode) + HRESULT ( STDMETHODCALLTYPE *GetRecordFreeCAMode )( + IISDB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IISDB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IISDB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IISDB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_SDT, RegisterForNextTable) + HRESULT ( STDMETHODCALLTYPE *RegisterForNextTable )( + IISDB_SDT * This, + /* [in] */ HANDLE hNextTableAvailable); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetNextTable) + HRESULT ( STDMETHODCALLTYPE *GetNextTable )( + IISDB_SDT * This, + /* [out] */ IDVB_SDT **ppSDT); + + DECLSPEC_XFGVIRT(IDVB_SDT, RegisterForWhenCurrent) + HRESULT ( STDMETHODCALLTYPE *RegisterForWhenCurrent )( + IISDB_SDT * This, + /* [in] */ HANDLE hNextTableIsCurrent); + + DECLSPEC_XFGVIRT(IDVB_SDT, ConvertNextToCurrent) + HRESULT ( STDMETHODCALLTYPE *ConvertNextToCurrent )( + IISDB_SDT * This); + + DECLSPEC_XFGVIRT(IDVB_SDT, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IISDB_SDT * This, + /* [out] */ DWORD *pdwVersionHash); + + DECLSPEC_XFGVIRT(IISDB_SDT, GetRecordEITUserDefinedFlags) + HRESULT ( STDMETHODCALLTYPE *GetRecordEITUserDefinedFlags )( + IISDB_SDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IISDB_SDTVtbl; + + interface IISDB_SDT + { + CONST_VTBL struct IISDB_SDTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISDB_SDT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IISDB_SDT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IISDB_SDT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IISDB_SDT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IISDB_SDT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IISDB_SDT_GetTransportStreamId(This,pwVal) \ + ( (This)->lpVtbl -> GetTransportStreamId(This,pwVal) ) + +#define IISDB_SDT_GetOriginalNetworkId(This,pwVal) \ + ( (This)->lpVtbl -> GetOriginalNetworkId(This,pwVal) ) + +#define IISDB_SDT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IISDB_SDT_GetRecordServiceId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordServiceId(This,dwRecordIndex,pwVal) ) + +#define IISDB_SDT_GetRecordEITScheduleFlag(This,dwRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordEITScheduleFlag(This,dwRecordIndex,pfVal) ) + +#define IISDB_SDT_GetRecordEITPresentFollowingFlag(This,dwRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordEITPresentFollowingFlag(This,dwRecordIndex,pfVal) ) + +#define IISDB_SDT_GetRecordRunningStatus(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordRunningStatus(This,dwRecordIndex,pbVal) ) + +#define IISDB_SDT_GetRecordFreeCAMode(This,dwRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordFreeCAMode(This,dwRecordIndex,pfVal) ) + +#define IISDB_SDT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IISDB_SDT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IISDB_SDT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IISDB_SDT_RegisterForNextTable(This,hNextTableAvailable) \ + ( (This)->lpVtbl -> RegisterForNextTable(This,hNextTableAvailable) ) + +#define IISDB_SDT_GetNextTable(This,ppSDT) \ + ( (This)->lpVtbl -> GetNextTable(This,ppSDT) ) + +#define IISDB_SDT_RegisterForWhenCurrent(This,hNextTableIsCurrent) \ + ( (This)->lpVtbl -> RegisterForWhenCurrent(This,hNextTableIsCurrent) ) + +#define IISDB_SDT_ConvertNextToCurrent(This) \ + ( (This)->lpVtbl -> ConvertNextToCurrent(This) ) + +#define IISDB_SDT_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + + +#define IISDB_SDT_GetRecordEITUserDefinedFlags(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordEITUserDefinedFlags(This,dwRecordIndex,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IISDB_SDT_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_EIT_INTERFACE_DEFINED__ +#define __IDVB_EIT_INTERFACE_DEFINED__ + +/* interface IDVB_EIT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_EIT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("442DB029-02CB-4495-8B92-1C13375BCE99") + IDVB_EIT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTransportStreamId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalNetworkId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSegmentLastSectionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLastTableId( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordEventId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordStartTime( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDuration( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ MPEG_DURATION *pmdVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordRunningStatus( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordFreeCAMode( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterForNextTable( + /* [in] */ HANDLE hNextTableAvailable) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNextTable( + /* [out] */ IDVB_EIT **ppEIT) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterForWhenCurrent( + /* [in] */ HANDLE hNextTableIsCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConvertNextToCurrent( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionHash( + /* [out] */ DWORD *pdwVersionHash) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_EITVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_EIT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_EIT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_EIT * This); + + DECLSPEC_XFGVIRT(IDVB_EIT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_EIT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IDVB_EIT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetServiceId) + HRESULT ( STDMETHODCALLTYPE *GetServiceId )( + IDVB_EIT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetTransportStreamId) + HRESULT ( STDMETHODCALLTYPE *GetTransportStreamId )( + IDVB_EIT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetOriginalNetworkId )( + IDVB_EIT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetSegmentLastSectionNumber) + HRESULT ( STDMETHODCALLTYPE *GetSegmentLastSectionNumber )( + IDVB_EIT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetLastTableId) + HRESULT ( STDMETHODCALLTYPE *GetLastTableId )( + IDVB_EIT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDVB_EIT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordEventId) + HRESULT ( STDMETHODCALLTYPE *GetRecordEventId )( + IDVB_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordStartTime) + HRESULT ( STDMETHODCALLTYPE *GetRecordStartTime )( + IDVB_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordDuration) + HRESULT ( STDMETHODCALLTYPE *GetRecordDuration )( + IDVB_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ MPEG_DURATION *pmdVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordRunningStatus) + HRESULT ( STDMETHODCALLTYPE *GetRecordRunningStatus )( + IDVB_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordFreeCAMode) + HRESULT ( STDMETHODCALLTYPE *GetRecordFreeCAMode )( + IDVB_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IDVB_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IDVB_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IDVB_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_EIT, RegisterForNextTable) + HRESULT ( STDMETHODCALLTYPE *RegisterForNextTable )( + IDVB_EIT * This, + /* [in] */ HANDLE hNextTableAvailable); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetNextTable) + HRESULT ( STDMETHODCALLTYPE *GetNextTable )( + IDVB_EIT * This, + /* [out] */ IDVB_EIT **ppEIT); + + DECLSPEC_XFGVIRT(IDVB_EIT, RegisterForWhenCurrent) + HRESULT ( STDMETHODCALLTYPE *RegisterForWhenCurrent )( + IDVB_EIT * This, + /* [in] */ HANDLE hNextTableIsCurrent); + + DECLSPEC_XFGVIRT(IDVB_EIT, ConvertNextToCurrent) + HRESULT ( STDMETHODCALLTYPE *ConvertNextToCurrent )( + IDVB_EIT * This); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IDVB_EIT * This, + /* [out] */ DWORD *pdwVersionHash); + + END_INTERFACE + } IDVB_EITVtbl; + + interface IDVB_EIT + { + CONST_VTBL struct IDVB_EITVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_EIT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_EIT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_EIT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_EIT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IDVB_EIT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IDVB_EIT_GetServiceId(This,pwVal) \ + ( (This)->lpVtbl -> GetServiceId(This,pwVal) ) + +#define IDVB_EIT_GetTransportStreamId(This,pwVal) \ + ( (This)->lpVtbl -> GetTransportStreamId(This,pwVal) ) + +#define IDVB_EIT_GetOriginalNetworkId(This,pwVal) \ + ( (This)->lpVtbl -> GetOriginalNetworkId(This,pwVal) ) + +#define IDVB_EIT_GetSegmentLastSectionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetSegmentLastSectionNumber(This,pbVal) ) + +#define IDVB_EIT_GetLastTableId(This,pbVal) \ + ( (This)->lpVtbl -> GetLastTableId(This,pbVal) ) + +#define IDVB_EIT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IDVB_EIT_GetRecordEventId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordEventId(This,dwRecordIndex,pwVal) ) + +#define IDVB_EIT_GetRecordStartTime(This,dwRecordIndex,pmdtVal) \ + ( (This)->lpVtbl -> GetRecordStartTime(This,dwRecordIndex,pmdtVal) ) + +#define IDVB_EIT_GetRecordDuration(This,dwRecordIndex,pmdVal) \ + ( (This)->lpVtbl -> GetRecordDuration(This,dwRecordIndex,pmdVal) ) + +#define IDVB_EIT_GetRecordRunningStatus(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordRunningStatus(This,dwRecordIndex,pbVal) ) + +#define IDVB_EIT_GetRecordFreeCAMode(This,dwRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordFreeCAMode(This,dwRecordIndex,pfVal) ) + +#define IDVB_EIT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IDVB_EIT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IDVB_EIT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IDVB_EIT_RegisterForNextTable(This,hNextTableAvailable) \ + ( (This)->lpVtbl -> RegisterForNextTable(This,hNextTableAvailable) ) + +#define IDVB_EIT_GetNextTable(This,ppEIT) \ + ( (This)->lpVtbl -> GetNextTable(This,ppEIT) ) + +#define IDVB_EIT_RegisterForWhenCurrent(This,hNextTableIsCurrent) \ + ( (This)->lpVtbl -> RegisterForWhenCurrent(This,hNextTableIsCurrent) ) + +#define IDVB_EIT_ConvertNextToCurrent(This) \ + ( (This)->lpVtbl -> ConvertNextToCurrent(This) ) + +#define IDVB_EIT_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_EIT_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_EIT2_INTERFACE_DEFINED__ +#define __IDVB_EIT2_INTERFACE_DEFINED__ + +/* interface IDVB_EIT2 */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_EIT2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("61A389E0-9B9E-4ba0-AEEA-5DDD159820EA") + IDVB_EIT2 : public IDVB_EIT + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSegmentInfo( + /* [out] */ BYTE *pbTid, + /* [out] */ BYTE *pbSegment) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordSection( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_EIT2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_EIT2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_EIT2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_EIT2 * This); + + DECLSPEC_XFGVIRT(IDVB_EIT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_EIT2 * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IDVB_EIT2 * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetServiceId) + HRESULT ( STDMETHODCALLTYPE *GetServiceId )( + IDVB_EIT2 * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetTransportStreamId) + HRESULT ( STDMETHODCALLTYPE *GetTransportStreamId )( + IDVB_EIT2 * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetOriginalNetworkId )( + IDVB_EIT2 * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetSegmentLastSectionNumber) + HRESULT ( STDMETHODCALLTYPE *GetSegmentLastSectionNumber )( + IDVB_EIT2 * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetLastTableId) + HRESULT ( STDMETHODCALLTYPE *GetLastTableId )( + IDVB_EIT2 * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDVB_EIT2 * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordEventId) + HRESULT ( STDMETHODCALLTYPE *GetRecordEventId )( + IDVB_EIT2 * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordStartTime) + HRESULT ( STDMETHODCALLTYPE *GetRecordStartTime )( + IDVB_EIT2 * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordDuration) + HRESULT ( STDMETHODCALLTYPE *GetRecordDuration )( + IDVB_EIT2 * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ MPEG_DURATION *pmdVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordRunningStatus) + HRESULT ( STDMETHODCALLTYPE *GetRecordRunningStatus )( + IDVB_EIT2 * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordFreeCAMode) + HRESULT ( STDMETHODCALLTYPE *GetRecordFreeCAMode )( + IDVB_EIT2 * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IDVB_EIT2 * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IDVB_EIT2 * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IDVB_EIT2 * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_EIT, RegisterForNextTable) + HRESULT ( STDMETHODCALLTYPE *RegisterForNextTable )( + IDVB_EIT2 * This, + /* [in] */ HANDLE hNextTableAvailable); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetNextTable) + HRESULT ( STDMETHODCALLTYPE *GetNextTable )( + IDVB_EIT2 * This, + /* [out] */ IDVB_EIT **ppEIT); + + DECLSPEC_XFGVIRT(IDVB_EIT, RegisterForWhenCurrent) + HRESULT ( STDMETHODCALLTYPE *RegisterForWhenCurrent )( + IDVB_EIT2 * This, + /* [in] */ HANDLE hNextTableIsCurrent); + + DECLSPEC_XFGVIRT(IDVB_EIT, ConvertNextToCurrent) + HRESULT ( STDMETHODCALLTYPE *ConvertNextToCurrent )( + IDVB_EIT2 * This); + + DECLSPEC_XFGVIRT(IDVB_EIT, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IDVB_EIT2 * This, + /* [out] */ DWORD *pdwVersionHash); + + DECLSPEC_XFGVIRT(IDVB_EIT2, GetSegmentInfo) + HRESULT ( STDMETHODCALLTYPE *GetSegmentInfo )( + IDVB_EIT2 * This, + /* [out] */ BYTE *pbTid, + /* [out] */ BYTE *pbSegment); + + DECLSPEC_XFGVIRT(IDVB_EIT2, GetRecordSection) + HRESULT ( STDMETHODCALLTYPE *GetRecordSection )( + IDVB_EIT2 * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDVB_EIT2Vtbl; + + interface IDVB_EIT2 + { + CONST_VTBL struct IDVB_EIT2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_EIT2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_EIT2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_EIT2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_EIT2_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IDVB_EIT2_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IDVB_EIT2_GetServiceId(This,pwVal) \ + ( (This)->lpVtbl -> GetServiceId(This,pwVal) ) + +#define IDVB_EIT2_GetTransportStreamId(This,pwVal) \ + ( (This)->lpVtbl -> GetTransportStreamId(This,pwVal) ) + +#define IDVB_EIT2_GetOriginalNetworkId(This,pwVal) \ + ( (This)->lpVtbl -> GetOriginalNetworkId(This,pwVal) ) + +#define IDVB_EIT2_GetSegmentLastSectionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetSegmentLastSectionNumber(This,pbVal) ) + +#define IDVB_EIT2_GetLastTableId(This,pbVal) \ + ( (This)->lpVtbl -> GetLastTableId(This,pbVal) ) + +#define IDVB_EIT2_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IDVB_EIT2_GetRecordEventId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordEventId(This,dwRecordIndex,pwVal) ) + +#define IDVB_EIT2_GetRecordStartTime(This,dwRecordIndex,pmdtVal) \ + ( (This)->lpVtbl -> GetRecordStartTime(This,dwRecordIndex,pmdtVal) ) + +#define IDVB_EIT2_GetRecordDuration(This,dwRecordIndex,pmdVal) \ + ( (This)->lpVtbl -> GetRecordDuration(This,dwRecordIndex,pmdVal) ) + +#define IDVB_EIT2_GetRecordRunningStatus(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordRunningStatus(This,dwRecordIndex,pbVal) ) + +#define IDVB_EIT2_GetRecordFreeCAMode(This,dwRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordFreeCAMode(This,dwRecordIndex,pfVal) ) + +#define IDVB_EIT2_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IDVB_EIT2_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IDVB_EIT2_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IDVB_EIT2_RegisterForNextTable(This,hNextTableAvailable) \ + ( (This)->lpVtbl -> RegisterForNextTable(This,hNextTableAvailable) ) + +#define IDVB_EIT2_GetNextTable(This,ppEIT) \ + ( (This)->lpVtbl -> GetNextTable(This,ppEIT) ) + +#define IDVB_EIT2_RegisterForWhenCurrent(This,hNextTableIsCurrent) \ + ( (This)->lpVtbl -> RegisterForWhenCurrent(This,hNextTableIsCurrent) ) + +#define IDVB_EIT2_ConvertNextToCurrent(This) \ + ( (This)->lpVtbl -> ConvertNextToCurrent(This) ) + +#define IDVB_EIT2_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + + +#define IDVB_EIT2_GetSegmentInfo(This,pbTid,pbSegment) \ + ( (This)->lpVtbl -> GetSegmentInfo(This,pbTid,pbSegment) ) + +#define IDVB_EIT2_GetRecordSection(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordSection(This,dwRecordIndex,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_EIT2_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_BAT_INTERFACE_DEFINED__ +#define __IDVB_BAT_INTERFACE_DEFINED__ + +/* interface IDVB_BAT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_BAT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ECE9BB0C-43B6-4558-A0EC-1812C34CD6CA") + IDVB_BAT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBouquetId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfTableDescriptors( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByIndex( + /* [in] */ DWORD dwIndex, + /* [in] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByTag( + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordTransportStreamId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordOriginalNetworkId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterForNextTable( + /* [in] */ HANDLE hNextTableAvailable) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNextTable( + /* [out] */ IDVB_BAT **ppBAT) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterForWhenCurrent( + /* [in] */ HANDLE hNextTableIsCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConvertNextToCurrent( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_BATVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_BAT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_BAT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_BAT * This); + + DECLSPEC_XFGVIRT(IDVB_BAT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_BAT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IDVB_BAT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetBouquetId) + HRESULT ( STDMETHODCALLTYPE *GetBouquetId )( + IDVB_BAT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetCountOfTableDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetCountOfTableDescriptors )( + IDVB_BAT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetTableDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByIndex )( + IDVB_BAT * This, + /* [in] */ DWORD dwIndex, + /* [in] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetTableDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByTag )( + IDVB_BAT * This, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDVB_BAT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetRecordTransportStreamId) + HRESULT ( STDMETHODCALLTYPE *GetRecordTransportStreamId )( + IDVB_BAT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetRecordOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetRecordOriginalNetworkId )( + IDVB_BAT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IDVB_BAT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IDVB_BAT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IDVB_BAT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_BAT, RegisterForNextTable) + HRESULT ( STDMETHODCALLTYPE *RegisterForNextTable )( + IDVB_BAT * This, + /* [in] */ HANDLE hNextTableAvailable); + + DECLSPEC_XFGVIRT(IDVB_BAT, GetNextTable) + HRESULT ( STDMETHODCALLTYPE *GetNextTable )( + IDVB_BAT * This, + /* [out] */ IDVB_BAT **ppBAT); + + DECLSPEC_XFGVIRT(IDVB_BAT, RegisterForWhenCurrent) + HRESULT ( STDMETHODCALLTYPE *RegisterForWhenCurrent )( + IDVB_BAT * This, + /* [in] */ HANDLE hNextTableIsCurrent); + + DECLSPEC_XFGVIRT(IDVB_BAT, ConvertNextToCurrent) + HRESULT ( STDMETHODCALLTYPE *ConvertNextToCurrent )( + IDVB_BAT * This); + + END_INTERFACE + } IDVB_BATVtbl; + + interface IDVB_BAT + { + CONST_VTBL struct IDVB_BATVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_BAT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_BAT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_BAT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_BAT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IDVB_BAT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IDVB_BAT_GetBouquetId(This,pwVal) \ + ( (This)->lpVtbl -> GetBouquetId(This,pwVal) ) + +#define IDVB_BAT_GetCountOfTableDescriptors(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfTableDescriptors(This,pdwVal) ) + +#define IDVB_BAT_GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) ) + +#define IDVB_BAT_GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) ) + +#define IDVB_BAT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IDVB_BAT_GetRecordTransportStreamId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordTransportStreamId(This,dwRecordIndex,pwVal) ) + +#define IDVB_BAT_GetRecordOriginalNetworkId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordOriginalNetworkId(This,dwRecordIndex,pwVal) ) + +#define IDVB_BAT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IDVB_BAT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IDVB_BAT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IDVB_BAT_RegisterForNextTable(This,hNextTableAvailable) \ + ( (This)->lpVtbl -> RegisterForNextTable(This,hNextTableAvailable) ) + +#define IDVB_BAT_GetNextTable(This,ppBAT) \ + ( (This)->lpVtbl -> GetNextTable(This,ppBAT) ) + +#define IDVB_BAT_RegisterForWhenCurrent(This,hNextTableIsCurrent) \ + ( (This)->lpVtbl -> RegisterForWhenCurrent(This,hNextTableIsCurrent) ) + +#define IDVB_BAT_ConvertNextToCurrent(This) \ + ( (This)->lpVtbl -> ConvertNextToCurrent(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_BAT_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_RST_INTERFACE_DEFINED__ +#define __IDVB_RST_INTERFACE_DEFINED__ + +/* interface IDVB_RST */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_RST; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F47DCD04-1E23-4fb7-9F96-B40EEAD10B2B") + IDVB_RST : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordTransportStreamId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordOriginalNetworkId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordServiceId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordEventId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordRunningStatus( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_RSTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_RST * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_RST * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_RST * This); + + DECLSPEC_XFGVIRT(IDVB_RST, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_RST * This, + /* [in] */ ISectionList *pSectionList); + + DECLSPEC_XFGVIRT(IDVB_RST, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDVB_RST * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_RST, GetRecordTransportStreamId) + HRESULT ( STDMETHODCALLTYPE *GetRecordTransportStreamId )( + IDVB_RST * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_RST, GetRecordOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetRecordOriginalNetworkId )( + IDVB_RST * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_RST, GetRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceId )( + IDVB_RST * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_RST, GetRecordEventId) + HRESULT ( STDMETHODCALLTYPE *GetRecordEventId )( + IDVB_RST * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_RST, GetRecordRunningStatus) + HRESULT ( STDMETHODCALLTYPE *GetRecordRunningStatus )( + IDVB_RST * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDVB_RSTVtbl; + + interface IDVB_RST + { + CONST_VTBL struct IDVB_RSTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_RST_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_RST_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_RST_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_RST_Initialize(This,pSectionList) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList) ) + +#define IDVB_RST_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IDVB_RST_GetRecordTransportStreamId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordTransportStreamId(This,dwRecordIndex,pwVal) ) + +#define IDVB_RST_GetRecordOriginalNetworkId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordOriginalNetworkId(This,dwRecordIndex,pwVal) ) + +#define IDVB_RST_GetRecordServiceId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordServiceId(This,dwRecordIndex,pwVal) ) + +#define IDVB_RST_GetRecordEventId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordEventId(This,dwRecordIndex,pwVal) ) + +#define IDVB_RST_GetRecordRunningStatus(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordRunningStatus(This,dwRecordIndex,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_RST_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_ST_INTERFACE_DEFINED__ +#define __IDVB_ST_INTERFACE_DEFINED__ + +/* interface IDVB_ST */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_ST; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4D5B9F23-2A02-45de-BCDA-5D5DBFBFBE62") + IDVB_ST : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDataLength( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetData( + /* [out] */ BYTE **ppData) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_STVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_ST * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_ST * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_ST * This); + + DECLSPEC_XFGVIRT(IDVB_ST, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_ST * This, + /* [in] */ ISectionList *pSectionList); + + DECLSPEC_XFGVIRT(IDVB_ST, GetDataLength) + HRESULT ( STDMETHODCALLTYPE *GetDataLength )( + IDVB_ST * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_ST, GetData) + HRESULT ( STDMETHODCALLTYPE *GetData )( + IDVB_ST * This, + /* [out] */ BYTE **ppData); + + END_INTERFACE + } IDVB_STVtbl; + + interface IDVB_ST + { + CONST_VTBL struct IDVB_STVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_ST_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_ST_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_ST_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_ST_Initialize(This,pSectionList) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList) ) + +#define IDVB_ST_GetDataLength(This,pwVal) \ + ( (This)->lpVtbl -> GetDataLength(This,pwVal) ) + +#define IDVB_ST_GetData(This,ppData) \ + ( (This)->lpVtbl -> GetData(This,ppData) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_ST_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_TDT_INTERFACE_DEFINED__ +#define __IDVB_TDT_INTERFACE_DEFINED__ + +/* interface IDVB_TDT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_TDT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0780DC7D-D55C-4aef-97E6-6B75906E2796") + IDVB_TDT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUTCTime( + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_TDTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_TDT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_TDT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_TDT * This); + + DECLSPEC_XFGVIRT(IDVB_TDT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_TDT * This, + /* [in] */ ISectionList *pSectionList); + + DECLSPEC_XFGVIRT(IDVB_TDT, GetUTCTime) + HRESULT ( STDMETHODCALLTYPE *GetUTCTime )( + IDVB_TDT * This, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal); + + END_INTERFACE + } IDVB_TDTVtbl; + + interface IDVB_TDT + { + CONST_VTBL struct IDVB_TDTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_TDT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_TDT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_TDT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_TDT_Initialize(This,pSectionList) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList) ) + +#define IDVB_TDT_GetUTCTime(This,pmdtVal) \ + ( (This)->lpVtbl -> GetUTCTime(This,pmdtVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_TDT_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_TOT_INTERFACE_DEFINED__ +#define __IDVB_TOT_INTERFACE_DEFINED__ + +/* interface IDVB_TOT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_TOT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("83295D6A-FABA-4ee1-9B15-8067696910AE") + IDVB_TOT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUTCTime( + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfTableDescriptors( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByIndex( + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByTag( + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_TOTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_TOT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_TOT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_TOT * This); + + DECLSPEC_XFGVIRT(IDVB_TOT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_TOT * This, + /* [in] */ ISectionList *pSectionList); + + DECLSPEC_XFGVIRT(IDVB_TOT, GetUTCTime) + HRESULT ( STDMETHODCALLTYPE *GetUTCTime )( + IDVB_TOT * This, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal); + + DECLSPEC_XFGVIRT(IDVB_TOT, GetCountOfTableDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetCountOfTableDescriptors )( + IDVB_TOT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_TOT, GetTableDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByIndex )( + IDVB_TOT * This, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_TOT, GetTableDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByTag )( + IDVB_TOT * This, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + END_INTERFACE + } IDVB_TOTVtbl; + + interface IDVB_TOT + { + CONST_VTBL struct IDVB_TOTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_TOT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_TOT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_TOT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_TOT_Initialize(This,pSectionList) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList) ) + +#define IDVB_TOT_GetUTCTime(This,pmdtVal) \ + ( (This)->lpVtbl -> GetUTCTime(This,pmdtVal) ) + +#define IDVB_TOT_GetCountOfTableDescriptors(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfTableDescriptors(This,pdwVal) ) + +#define IDVB_TOT_GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) ) + +#define IDVB_TOT_GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_TOT_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_DIT_INTERFACE_DEFINED__ +#define __IDVB_DIT_INTERFACE_DEFINED__ + +/* interface IDVB_DIT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_DIT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("91BFFDF9-9432-410f-86EF-1C228ED0AD70") + IDVB_DIT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTransitionFlag( + /* [out] */ BOOL *pfVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_DITVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_DIT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_DIT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_DIT * This); + + DECLSPEC_XFGVIRT(IDVB_DIT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_DIT * This, + /* [in] */ ISectionList *pSectionList); + + DECLSPEC_XFGVIRT(IDVB_DIT, GetTransitionFlag) + HRESULT ( STDMETHODCALLTYPE *GetTransitionFlag )( + IDVB_DIT * This, + /* [out] */ BOOL *pfVal); + + END_INTERFACE + } IDVB_DITVtbl; + + interface IDVB_DIT + { + CONST_VTBL struct IDVB_DITVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_DIT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_DIT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_DIT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_DIT_Initialize(This,pSectionList) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList) ) + +#define IDVB_DIT_GetTransitionFlag(This,pfVal) \ + ( (This)->lpVtbl -> GetTransitionFlag(This,pfVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_DIT_INTERFACE_DEFINED__ */ + + +#ifndef __IDVB_SIT_INTERFACE_DEFINED__ +#define __IDVB_SIT_INTERFACE_DEFINED__ + +/* interface IDVB_SIT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDVB_SIT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("68CDCE53-8BEA-45c2-9D9D-ACF575A089B5") + IDVB_SIT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfTableDescriptors( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByIndex( + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByTag( + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordServiceId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordRunningStatus( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterForNextTable( + /* [in] */ HANDLE hNextTableAvailable) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNextTable( + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_SIT **ppSIT) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterForWhenCurrent( + /* [in] */ HANDLE hNextTableIsCurrent) = 0; + + virtual HRESULT STDMETHODCALLTYPE ConvertNextToCurrent( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDVB_SITVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDVB_SIT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDVB_SIT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDVB_SIT * This); + + DECLSPEC_XFGVIRT(IDVB_SIT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IDVB_SIT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IDVB_SIT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetCountOfTableDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetCountOfTableDescriptors )( + IDVB_SIT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetTableDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByIndex )( + IDVB_SIT * This, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetTableDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByTag )( + IDVB_SIT * This, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDVB_SIT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceId )( + IDVB_SIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetRecordRunningStatus) + HRESULT ( STDMETHODCALLTYPE *GetRecordRunningStatus )( + IDVB_SIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IDVB_SIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IDVB_SIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IDVB_SIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IDVB_SIT, RegisterForNextTable) + HRESULT ( STDMETHODCALLTYPE *RegisterForNextTable )( + IDVB_SIT * This, + /* [in] */ HANDLE hNextTableAvailable); + + DECLSPEC_XFGVIRT(IDVB_SIT, GetNextTable) + HRESULT ( STDMETHODCALLTYPE *GetNextTable )( + IDVB_SIT * This, + /* [in] */ DWORD dwTimeout, + /* [out] */ IDVB_SIT **ppSIT); + + DECLSPEC_XFGVIRT(IDVB_SIT, RegisterForWhenCurrent) + HRESULT ( STDMETHODCALLTYPE *RegisterForWhenCurrent )( + IDVB_SIT * This, + /* [in] */ HANDLE hNextTableIsCurrent); + + DECLSPEC_XFGVIRT(IDVB_SIT, ConvertNextToCurrent) + HRESULT ( STDMETHODCALLTYPE *ConvertNextToCurrent )( + IDVB_SIT * This); + + END_INTERFACE + } IDVB_SITVtbl; + + interface IDVB_SIT + { + CONST_VTBL struct IDVB_SITVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDVB_SIT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDVB_SIT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDVB_SIT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDVB_SIT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IDVB_SIT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IDVB_SIT_GetCountOfTableDescriptors(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfTableDescriptors(This,pdwVal) ) + +#define IDVB_SIT_GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) ) + +#define IDVB_SIT_GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) ) + +#define IDVB_SIT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IDVB_SIT_GetRecordServiceId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordServiceId(This,dwRecordIndex,pwVal) ) + +#define IDVB_SIT_GetRecordRunningStatus(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordRunningStatus(This,dwRecordIndex,pbVal) ) + +#define IDVB_SIT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IDVB_SIT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IDVB_SIT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IDVB_SIT_RegisterForNextTable(This,hNextTableAvailable) \ + ( (This)->lpVtbl -> RegisterForNextTable(This,hNextTableAvailable) ) + +#define IDVB_SIT_GetNextTable(This,dwTimeout,ppSIT) \ + ( (This)->lpVtbl -> GetNextTable(This,dwTimeout,ppSIT) ) + +#define IDVB_SIT_RegisterForWhenCurrent(This,hNextTableIsCurrent) \ + ( (This)->lpVtbl -> RegisterForWhenCurrent(This,hNextTableIsCurrent) ) + +#define IDVB_SIT_ConvertNextToCurrent(This) \ + ( (This)->lpVtbl -> ConvertNextToCurrent(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDVB_SIT_INTERFACE_DEFINED__ */ + + +#ifndef __IISDB_BIT_INTERFACE_DEFINED__ +#define __IISDB_BIT_INTERFACE_DEFINED__ + +/* interface IISDB_BIT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IISDB_BIT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("537CD71E-0E46-4173-9001-BA043F3E49E2") + IISDB_BIT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalNetworkId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBroadcastViewPropriety( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfTableDescriptors( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByIndex( + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByTag( + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordBroadcasterId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionHash( + /* [out] */ DWORD *pdwVersionHash) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IISDB_BITVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISDB_BIT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IISDB_BIT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IISDB_BIT * This); + + DECLSPEC_XFGVIRT(IISDB_BIT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IISDB_BIT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IISDB_BIT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetOriginalNetworkId )( + IISDB_BIT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetBroadcastViewPropriety) + HRESULT ( STDMETHODCALLTYPE *GetBroadcastViewPropriety )( + IISDB_BIT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetCountOfTableDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetCountOfTableDescriptors )( + IISDB_BIT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetTableDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByIndex )( + IISDB_BIT * This, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetTableDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByTag )( + IISDB_BIT * This, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IISDB_BIT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetRecordBroadcasterId) + HRESULT ( STDMETHODCALLTYPE *GetRecordBroadcasterId )( + IISDB_BIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IISDB_BIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IISDB_BIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IISDB_BIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_BIT, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IISDB_BIT * This, + /* [out] */ DWORD *pdwVersionHash); + + END_INTERFACE + } IISDB_BITVtbl; + + interface IISDB_BIT + { + CONST_VTBL struct IISDB_BITVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISDB_BIT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IISDB_BIT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IISDB_BIT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IISDB_BIT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IISDB_BIT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IISDB_BIT_GetOriginalNetworkId(This,pwVal) \ + ( (This)->lpVtbl -> GetOriginalNetworkId(This,pwVal) ) + +#define IISDB_BIT_GetBroadcastViewPropriety(This,pbVal) \ + ( (This)->lpVtbl -> GetBroadcastViewPropriety(This,pbVal) ) + +#define IISDB_BIT_GetCountOfTableDescriptors(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfTableDescriptors(This,pdwVal) ) + +#define IISDB_BIT_GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) ) + +#define IISDB_BIT_GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) ) + +#define IISDB_BIT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IISDB_BIT_GetRecordBroadcasterId(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordBroadcasterId(This,dwRecordIndex,pbVal) ) + +#define IISDB_BIT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IISDB_BIT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IISDB_BIT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IISDB_BIT_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IISDB_BIT_INTERFACE_DEFINED__ */ + + +#ifndef __IISDB_NBIT_INTERFACE_DEFINED__ +#define __IISDB_NBIT_INTERFACE_DEFINED__ + +/* interface IISDB_NBIT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IISDB_NBIT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1B1863EF-08F1-40B7-A559-3B1EFF8CAFA6") + IISDB_NBIT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalNetworkId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordInformationId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordInformationType( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptionBodyLocation( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordMessageSectionNumber( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordUserDefined( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordNumberOfKeys( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordKeys( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE **pbKeys) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionHash( + /* [out] */ DWORD *pdwVersionHash) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IISDB_NBITVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISDB_NBIT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IISDB_NBIT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IISDB_NBIT * This); + + DECLSPEC_XFGVIRT(IISDB_NBIT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IISDB_NBIT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IISDB_NBIT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetOriginalNetworkId )( + IISDB_NBIT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IISDB_NBIT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetRecordInformationId) + HRESULT ( STDMETHODCALLTYPE *GetRecordInformationId )( + IISDB_NBIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetRecordInformationType) + HRESULT ( STDMETHODCALLTYPE *GetRecordInformationType )( + IISDB_NBIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetRecordDescriptionBodyLocation) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptionBodyLocation )( + IISDB_NBIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetRecordMessageSectionNumber) + HRESULT ( STDMETHODCALLTYPE *GetRecordMessageSectionNumber )( + IISDB_NBIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetRecordUserDefined) + HRESULT ( STDMETHODCALLTYPE *GetRecordUserDefined )( + IISDB_NBIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetRecordNumberOfKeys) + HRESULT ( STDMETHODCALLTYPE *GetRecordNumberOfKeys )( + IISDB_NBIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetRecordKeys) + HRESULT ( STDMETHODCALLTYPE *GetRecordKeys )( + IISDB_NBIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE **pbKeys); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IISDB_NBIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IISDB_NBIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IISDB_NBIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_NBIT, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IISDB_NBIT * This, + /* [out] */ DWORD *pdwVersionHash); + + END_INTERFACE + } IISDB_NBITVtbl; + + interface IISDB_NBIT + { + CONST_VTBL struct IISDB_NBITVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISDB_NBIT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IISDB_NBIT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IISDB_NBIT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IISDB_NBIT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IISDB_NBIT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IISDB_NBIT_GetOriginalNetworkId(This,pwVal) \ + ( (This)->lpVtbl -> GetOriginalNetworkId(This,pwVal) ) + +#define IISDB_NBIT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IISDB_NBIT_GetRecordInformationId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordInformationId(This,dwRecordIndex,pwVal) ) + +#define IISDB_NBIT_GetRecordInformationType(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordInformationType(This,dwRecordIndex,pbVal) ) + +#define IISDB_NBIT_GetRecordDescriptionBodyLocation(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordDescriptionBodyLocation(This,dwRecordIndex,pbVal) ) + +#define IISDB_NBIT_GetRecordMessageSectionNumber(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordMessageSectionNumber(This,dwRecordIndex,pbVal) ) + +#define IISDB_NBIT_GetRecordUserDefined(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordUserDefined(This,dwRecordIndex,pbVal) ) + +#define IISDB_NBIT_GetRecordNumberOfKeys(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordNumberOfKeys(This,dwRecordIndex,pbVal) ) + +#define IISDB_NBIT_GetRecordKeys(This,dwRecordIndex,pbKeys) \ + ( (This)->lpVtbl -> GetRecordKeys(This,dwRecordIndex,pbKeys) ) + +#define IISDB_NBIT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IISDB_NBIT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IISDB_NBIT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IISDB_NBIT_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IISDB_NBIT_INTERFACE_DEFINED__ */ + + +#ifndef __IISDB_LDT_INTERFACE_DEFINED__ +#define __IISDB_LDT_INTERFACE_DEFINED__ + +/* interface IISDB_LDT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IISDB_LDT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("141A546B-02FF-4FB9-A3A3-2F074B74A9A9") + IISDB_LDT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalServiceId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTransportStreamId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalNetworkId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptionId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionHash( + /* [out] */ DWORD *pdwVersionHash) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IISDB_LDTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISDB_LDT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IISDB_LDT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IISDB_LDT * This); + + DECLSPEC_XFGVIRT(IISDB_LDT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IISDB_LDT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IISDB_LDT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IISDB_LDT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_LDT, GetOriginalServiceId) + HRESULT ( STDMETHODCALLTYPE *GetOriginalServiceId )( + IISDB_LDT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_LDT, GetTransportStreamId) + HRESULT ( STDMETHODCALLTYPE *GetTransportStreamId )( + IISDB_LDT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_LDT, GetOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetOriginalNetworkId )( + IISDB_LDT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_LDT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IISDB_LDT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_LDT, GetRecordDescriptionId) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptionId )( + IISDB_LDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_LDT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IISDB_LDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_LDT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IISDB_LDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_LDT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IISDB_LDT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_LDT, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IISDB_LDT * This, + /* [out] */ DWORD *pdwVersionHash); + + END_INTERFACE + } IISDB_LDTVtbl; + + interface IISDB_LDT + { + CONST_VTBL struct IISDB_LDTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISDB_LDT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IISDB_LDT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IISDB_LDT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IISDB_LDT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IISDB_LDT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IISDB_LDT_GetOriginalServiceId(This,pwVal) \ + ( (This)->lpVtbl -> GetOriginalServiceId(This,pwVal) ) + +#define IISDB_LDT_GetTransportStreamId(This,pwVal) \ + ( (This)->lpVtbl -> GetTransportStreamId(This,pwVal) ) + +#define IISDB_LDT_GetOriginalNetworkId(This,pwVal) \ + ( (This)->lpVtbl -> GetOriginalNetworkId(This,pwVal) ) + +#define IISDB_LDT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IISDB_LDT_GetRecordDescriptionId(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordDescriptionId(This,dwRecordIndex,pwVal) ) + +#define IISDB_LDT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IISDB_LDT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IISDB_LDT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IISDB_LDT_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IISDB_LDT_INTERFACE_DEFINED__ */ + + +#ifndef __IISDB_SDTT_INTERFACE_DEFINED__ +#define __IISDB_SDTT_INTERFACE_DEFINED__ + +/* interface IISDB_SDTT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IISDB_SDTT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("EE60EF2D-813A-4DC7-BF92-EA13DAC85313") + IISDB_SDTT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableIdExt( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTransportStreamId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalNetworkId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordGroup( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordTargetVersion( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordNewVersion( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDownloadLevel( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordVersionIndicator( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordScheduleTimeShiftInformation( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfSchedules( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordStartTimeByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDurationByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ MPEG_DURATION *pmdVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionHash( + /* [out] */ DWORD *pdwVersionHash) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IISDB_SDTTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISDB_SDTT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IISDB_SDTT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IISDB_SDTT * This); + + DECLSPEC_XFGVIRT(IISDB_SDTT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IISDB_SDTT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IISDB_SDTT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetTableIdExt) + HRESULT ( STDMETHODCALLTYPE *GetTableIdExt )( + IISDB_SDTT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetTransportStreamId) + HRESULT ( STDMETHODCALLTYPE *GetTransportStreamId )( + IISDB_SDTT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetOriginalNetworkId )( + IISDB_SDTT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetServiceId) + HRESULT ( STDMETHODCALLTYPE *GetServiceId )( + IISDB_SDTT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IISDB_SDTT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordGroup) + HRESULT ( STDMETHODCALLTYPE *GetRecordGroup )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordTargetVersion) + HRESULT ( STDMETHODCALLTYPE *GetRecordTargetVersion )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordNewVersion) + HRESULT ( STDMETHODCALLTYPE *GetRecordNewVersion )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordDownloadLevel) + HRESULT ( STDMETHODCALLTYPE *GetRecordDownloadLevel )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordVersionIndicator) + HRESULT ( STDMETHODCALLTYPE *GetRecordVersionIndicator )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordScheduleTimeShiftInformation) + HRESULT ( STDMETHODCALLTYPE *GetRecordScheduleTimeShiftInformation )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordCountOfSchedules) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfSchedules )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordStartTimeByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordStartTimeByIndex )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordDurationByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDurationByIndex )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ MPEG_DURATION *pmdVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IISDB_SDTT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_SDTT, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IISDB_SDTT * This, + /* [out] */ DWORD *pdwVersionHash); + + END_INTERFACE + } IISDB_SDTTVtbl; + + interface IISDB_SDTT + { + CONST_VTBL struct IISDB_SDTTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISDB_SDTT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IISDB_SDTT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IISDB_SDTT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IISDB_SDTT_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IISDB_SDTT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IISDB_SDTT_GetTableIdExt(This,pwVal) \ + ( (This)->lpVtbl -> GetTableIdExt(This,pwVal) ) + +#define IISDB_SDTT_GetTransportStreamId(This,pwVal) \ + ( (This)->lpVtbl -> GetTransportStreamId(This,pwVal) ) + +#define IISDB_SDTT_GetOriginalNetworkId(This,pwVal) \ + ( (This)->lpVtbl -> GetOriginalNetworkId(This,pwVal) ) + +#define IISDB_SDTT_GetServiceId(This,pwVal) \ + ( (This)->lpVtbl -> GetServiceId(This,pwVal) ) + +#define IISDB_SDTT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IISDB_SDTT_GetRecordGroup(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordGroup(This,dwRecordIndex,pbVal) ) + +#define IISDB_SDTT_GetRecordTargetVersion(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordTargetVersion(This,dwRecordIndex,pwVal) ) + +#define IISDB_SDTT_GetRecordNewVersion(This,dwRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordNewVersion(This,dwRecordIndex,pwVal) ) + +#define IISDB_SDTT_GetRecordDownloadLevel(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordDownloadLevel(This,dwRecordIndex,pbVal) ) + +#define IISDB_SDTT_GetRecordVersionIndicator(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordVersionIndicator(This,dwRecordIndex,pbVal) ) + +#define IISDB_SDTT_GetRecordScheduleTimeShiftInformation(This,dwRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordScheduleTimeShiftInformation(This,dwRecordIndex,pbVal) ) + +#define IISDB_SDTT_GetRecordCountOfSchedules(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfSchedules(This,dwRecordIndex,pdwVal) ) + +#define IISDB_SDTT_GetRecordStartTimeByIndex(This,dwRecordIndex,dwIndex,pmdtVal) \ + ( (This)->lpVtbl -> GetRecordStartTimeByIndex(This,dwRecordIndex,dwIndex,pmdtVal) ) + +#define IISDB_SDTT_GetRecordDurationByIndex(This,dwRecordIndex,dwIndex,pmdVal) \ + ( (This)->lpVtbl -> GetRecordDurationByIndex(This,dwRecordIndex,dwIndex,pmdVal) ) + +#define IISDB_SDTT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IISDB_SDTT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IISDB_SDTT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#define IISDB_SDTT_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IISDB_SDTT_INTERFACE_DEFINED__ */ + + +#ifndef __IISDB_CDT_INTERFACE_DEFINED__ +#define __IISDB_CDT_INTERFACE_DEFINED__ + +/* interface IISDB_CDT */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IISDB_CDT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("25FA92C2-8B80-4787-A841-3A0E8F17984B") + IISDB_CDT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData, + /* [in] */ BYTE bSectionNumber) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDownloadDataId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSectionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOriginalNetworkId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDataType( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfTableDescriptors( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByIndex( + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptorByTag( + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSizeOfDataModule( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDataModule( + /* [out] */ BYTE **pbData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionHash( + /* [out] */ DWORD *pdwVersionHash) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IISDB_CDTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISDB_CDT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IISDB_CDT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IISDB_CDT * This); + + DECLSPEC_XFGVIRT(IISDB_CDT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IISDB_CDT * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData, + /* [in] */ BYTE bSectionNumber); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IISDB_CDT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetDownloadDataId) + HRESULT ( STDMETHODCALLTYPE *GetDownloadDataId )( + IISDB_CDT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetSectionNumber) + HRESULT ( STDMETHODCALLTYPE *GetSectionNumber )( + IISDB_CDT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetOriginalNetworkId) + HRESULT ( STDMETHODCALLTYPE *GetOriginalNetworkId )( + IISDB_CDT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetDataType) + HRESULT ( STDMETHODCALLTYPE *GetDataType )( + IISDB_CDT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetCountOfTableDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetCountOfTableDescriptors )( + IISDB_CDT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetTableDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByIndex )( + IISDB_CDT * This, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetTableDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptorByTag )( + IISDB_CDT * This, + /* [in] */ BYTE bTag, + /* [annotation][out][in] */ + _Inout_opt_ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetSizeOfDataModule) + HRESULT ( STDMETHODCALLTYPE *GetSizeOfDataModule )( + IISDB_CDT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetDataModule) + HRESULT ( STDMETHODCALLTYPE *GetDataModule )( + IISDB_CDT * This, + /* [out] */ BYTE **pbData); + + DECLSPEC_XFGVIRT(IISDB_CDT, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IISDB_CDT * This, + /* [out] */ DWORD *pdwVersionHash); + + END_INTERFACE + } IISDB_CDTVtbl; + + interface IISDB_CDT + { + CONST_VTBL struct IISDB_CDTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISDB_CDT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IISDB_CDT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IISDB_CDT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IISDB_CDT_Initialize(This,pSectionList,pMPEGData,bSectionNumber) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData,bSectionNumber) ) + +#define IISDB_CDT_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IISDB_CDT_GetDownloadDataId(This,pwVal) \ + ( (This)->lpVtbl -> GetDownloadDataId(This,pwVal) ) + +#define IISDB_CDT_GetSectionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetSectionNumber(This,pbVal) ) + +#define IISDB_CDT_GetOriginalNetworkId(This,pwVal) \ + ( (This)->lpVtbl -> GetOriginalNetworkId(This,pwVal) ) + +#define IISDB_CDT_GetDataType(This,pbVal) \ + ( (This)->lpVtbl -> GetDataType(This,pbVal) ) + +#define IISDB_CDT_GetCountOfTableDescriptors(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfTableDescriptors(This,pdwVal) ) + +#define IISDB_CDT_GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByIndex(This,dwIndex,ppDescriptor) ) + +#define IISDB_CDT_GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetTableDescriptorByTag(This,bTag,pdwCookie,ppDescriptor) ) + +#define IISDB_CDT_GetSizeOfDataModule(This,pdwVal) \ + ( (This)->lpVtbl -> GetSizeOfDataModule(This,pdwVal) ) + +#define IISDB_CDT_GetDataModule(This,pbData) \ + ( (This)->lpVtbl -> GetDataModule(This,pbData) ) + +#define IISDB_CDT_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IISDB_CDT_INTERFACE_DEFINED__ */ + + +#ifndef __IISDB_EMM_INTERFACE_DEFINED__ +#define __IISDB_EMM_INTERFACE_DEFINED__ + +/* interface IISDB_EMM */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IISDB_EMM; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0EDB556D-43AD-4938-9668-321B2FFECFD3") + IISDB_EMM : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableIdExtension( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDataBytes( + /* [out][in] */ WORD *pwBufferLength, + /* [out] */ BYTE *pbBuffer) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSharedEmmMessage( + WORD *pwLength, + BYTE **ppbMessage) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIndividualEmmMessage( + IUnknown *pUnknown, + WORD *pwLength, + BYTE **ppbMessage) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionHash( + /* [out] */ DWORD *pdwVersionHash) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IISDB_EMMVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IISDB_EMM * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IISDB_EMM * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IISDB_EMM * This); + + DECLSPEC_XFGVIRT(IISDB_EMM, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IISDB_EMM * This, + /* [in] */ ISectionList *pSectionList, + /* [in] */ IMpeg2Data *pMPEGData); + + DECLSPEC_XFGVIRT(IISDB_EMM, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IISDB_EMM * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IISDB_EMM, GetTableIdExtension) + HRESULT ( STDMETHODCALLTYPE *GetTableIdExtension )( + IISDB_EMM * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IISDB_EMM, GetDataBytes) + HRESULT ( STDMETHODCALLTYPE *GetDataBytes )( + IISDB_EMM * This, + /* [out][in] */ WORD *pwBufferLength, + /* [out] */ BYTE *pbBuffer); + + DECLSPEC_XFGVIRT(IISDB_EMM, GetSharedEmmMessage) + HRESULT ( STDMETHODCALLTYPE *GetSharedEmmMessage )( + IISDB_EMM * This, + WORD *pwLength, + BYTE **ppbMessage); + + DECLSPEC_XFGVIRT(IISDB_EMM, GetIndividualEmmMessage) + HRESULT ( STDMETHODCALLTYPE *GetIndividualEmmMessage )( + IISDB_EMM * This, + IUnknown *pUnknown, + WORD *pwLength, + BYTE **ppbMessage); + + DECLSPEC_XFGVIRT(IISDB_EMM, GetVersionHash) + HRESULT ( STDMETHODCALLTYPE *GetVersionHash )( + IISDB_EMM * This, + /* [out] */ DWORD *pdwVersionHash); + + END_INTERFACE + } IISDB_EMMVtbl; + + interface IISDB_EMM + { + CONST_VTBL struct IISDB_EMMVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IISDB_EMM_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IISDB_EMM_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IISDB_EMM_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IISDB_EMM_Initialize(This,pSectionList,pMPEGData) \ + ( (This)->lpVtbl -> Initialize(This,pSectionList,pMPEGData) ) + +#define IISDB_EMM_GetVersionNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pbVal) ) + +#define IISDB_EMM_GetTableIdExtension(This,pwVal) \ + ( (This)->lpVtbl -> GetTableIdExtension(This,pwVal) ) + +#define IISDB_EMM_GetDataBytes(This,pwBufferLength,pbBuffer) \ + ( (This)->lpVtbl -> GetDataBytes(This,pwBufferLength,pbBuffer) ) + +#define IISDB_EMM_GetSharedEmmMessage(This,pwLength,ppbMessage) \ + ( (This)->lpVtbl -> GetSharedEmmMessage(This,pwLength,ppbMessage) ) + +#define IISDB_EMM_GetIndividualEmmMessage(This,pUnknown,pwLength,ppbMessage) \ + ( (This)->lpVtbl -> GetIndividualEmmMessage(This,pUnknown,pwLength,ppbMessage) ) + +#define IISDB_EMM_GetVersionHash(This,pdwVersionHash) \ + ( (This)->lpVtbl -> GetVersionHash(This,pdwVersionHash) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IISDB_EMM_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbServiceAttributeDescriptor_INTERFACE_DEFINED__ +#define __IDvbServiceAttributeDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbServiceAttributeDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbServiceAttributeDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0F37BD92-D6A1-4854-B950-3A969D27F30E") + IDvbServiceAttributeDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordServiceId( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordNumericSelectionFlag( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BOOL *pfVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordVisibleServiceFlag( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BOOL *pfVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbServiceAttributeDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbServiceAttributeDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbServiceAttributeDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbServiceAttributeDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbServiceAttributeDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbServiceAttributeDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceAttributeDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbServiceAttributeDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceAttributeDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbServiceAttributeDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceAttributeDescriptor, GetRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceId )( + IDvbServiceAttributeDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbServiceAttributeDescriptor, GetRecordNumericSelectionFlag) + HRESULT ( STDMETHODCALLTYPE *GetRecordNumericSelectionFlag )( + IDvbServiceAttributeDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IDvbServiceAttributeDescriptor, GetRecordVisibleServiceFlag) + HRESULT ( STDMETHODCALLTYPE *GetRecordVisibleServiceFlag )( + IDvbServiceAttributeDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BOOL *pfVal); + + END_INTERFACE + } IDvbServiceAttributeDescriptorVtbl; + + interface IDvbServiceAttributeDescriptor + { + CONST_VTBL struct IDvbServiceAttributeDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbServiceAttributeDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbServiceAttributeDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbServiceAttributeDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbServiceAttributeDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbServiceAttributeDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbServiceAttributeDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbServiceAttributeDescriptor_GetRecordServiceId(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordServiceId(This,bRecordIndex,pwVal) ) + +#define IDvbServiceAttributeDescriptor_GetRecordNumericSelectionFlag(This,bRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordNumericSelectionFlag(This,bRecordIndex,pfVal) ) + +#define IDvbServiceAttributeDescriptor_GetRecordVisibleServiceFlag(This,bRecordIndex,pfVal) \ + ( (This)->lpVtbl -> GetRecordVisibleServiceFlag(This,bRecordIndex,pfVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbServiceAttributeDescriptor_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dvbsiparser_0000_0022 */ +/* [local] */ + +typedef /* [public] */ +enum __MIDL___MIDL_itf_dvbsiparser_0000_0022_0001 + { + CRID_LOCATION_IN_DESCRIPTOR = 0, + CRID_LOCATION_IN_CIT = 0x1, + CRID_LOCATION_DVB_RESERVED1 = 0x2, + CRID_LOCATION_DVB_RESERVED2 = 0x3 + } CRID_LOCATION; + + + +extern RPC_IF_HANDLE __MIDL_itf_dvbsiparser_0000_0022_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dvbsiparser_0000_0022_v0_0_s_ifspec; + +#ifndef __IDvbContentIdentifierDescriptor_INTERFACE_DEFINED__ +#define __IDvbContentIdentifierDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbContentIdentifierDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbContentIdentifierDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("05E0C1EA-F661-4053-9FBF-D93B28359838") + IDvbContentIdentifierDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCrid( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbType, + /* [out] */ BYTE *pbLocation, + /* [out] */ BYTE *pbLength, + /* [size_is][size_is][out] */ BYTE **ppbBytes) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbContentIdentifierDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbContentIdentifierDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbContentIdentifierDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbContentIdentifierDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbContentIdentifierDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbContentIdentifierDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbContentIdentifierDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbContentIdentifierDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbContentIdentifierDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbContentIdentifierDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbContentIdentifierDescriptor, GetRecordCrid) + HRESULT ( STDMETHODCALLTYPE *GetRecordCrid )( + IDvbContentIdentifierDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbType, + /* [out] */ BYTE *pbLocation, + /* [out] */ BYTE *pbLength, + /* [size_is][size_is][out] */ BYTE **ppbBytes); + + END_INTERFACE + } IDvbContentIdentifierDescriptorVtbl; + + interface IDvbContentIdentifierDescriptor + { + CONST_VTBL struct IDvbContentIdentifierDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbContentIdentifierDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbContentIdentifierDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbContentIdentifierDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbContentIdentifierDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbContentIdentifierDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbContentIdentifierDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbContentIdentifierDescriptor_GetRecordCrid(This,bRecordIndex,pbType,pbLocation,pbLength,ppbBytes) \ + ( (This)->lpVtbl -> GetRecordCrid(This,bRecordIndex,pbType,pbLocation,pbLength,ppbBytes) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbContentIdentifierDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbDefaultAuthorityDescriptor_INTERFACE_DEFINED__ +#define __IDvbDefaultAuthorityDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbDefaultAuthorityDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbDefaultAuthorityDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("05EC24D1-3A31-44e7-B408-67C60A352276") + IDvbDefaultAuthorityDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDefaultAuthority( + /* [out] */ BYTE *pbLength, + /* [size_is][size_is][out] */ BYTE **ppbBytes) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbDefaultAuthorityDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbDefaultAuthorityDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbDefaultAuthorityDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbDefaultAuthorityDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbDefaultAuthorityDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbDefaultAuthorityDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbDefaultAuthorityDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbDefaultAuthorityDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbDefaultAuthorityDescriptor, GetDefaultAuthority) + HRESULT ( STDMETHODCALLTYPE *GetDefaultAuthority )( + IDvbDefaultAuthorityDescriptor * This, + /* [out] */ BYTE *pbLength, + /* [size_is][size_is][out] */ BYTE **ppbBytes); + + END_INTERFACE + } IDvbDefaultAuthorityDescriptorVtbl; + + interface IDvbDefaultAuthorityDescriptor + { + CONST_VTBL struct IDvbDefaultAuthorityDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbDefaultAuthorityDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbDefaultAuthorityDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbDefaultAuthorityDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbDefaultAuthorityDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbDefaultAuthorityDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbDefaultAuthorityDescriptor_GetDefaultAuthority(This,pbLength,ppbBytes) \ + ( (This)->lpVtbl -> GetDefaultAuthority(This,pbLength,ppbBytes) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbDefaultAuthorityDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbSatelliteDeliverySystemDescriptor_INTERFACE_DEFINED__ +#define __IDvbSatelliteDeliverySystemDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbSatelliteDeliverySystemDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbSatelliteDeliverySystemDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("02F2225A-805B-4ec5-A9A6-F9B5913CD470") + IDvbSatelliteDeliverySystemDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFrequency( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOrbitalPosition( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetWestEastFlag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPolarization( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetModulation( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSymbolRate( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFECInner( + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbSatelliteDeliverySystemDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbSatelliteDeliverySystemDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbSatelliteDeliverySystemDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbSatelliteDeliverySystemDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbSatelliteDeliverySystemDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbSatelliteDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbSatelliteDeliverySystemDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbSatelliteDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbSatelliteDeliverySystemDescriptor, GetFrequency) + HRESULT ( STDMETHODCALLTYPE *GetFrequency )( + IDvbSatelliteDeliverySystemDescriptor * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDvbSatelliteDeliverySystemDescriptor, GetOrbitalPosition) + HRESULT ( STDMETHODCALLTYPE *GetOrbitalPosition )( + IDvbSatelliteDeliverySystemDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbSatelliteDeliverySystemDescriptor, GetWestEastFlag) + HRESULT ( STDMETHODCALLTYPE *GetWestEastFlag )( + IDvbSatelliteDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbSatelliteDeliverySystemDescriptor, GetPolarization) + HRESULT ( STDMETHODCALLTYPE *GetPolarization )( + IDvbSatelliteDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbSatelliteDeliverySystemDescriptor, GetModulation) + HRESULT ( STDMETHODCALLTYPE *GetModulation )( + IDvbSatelliteDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbSatelliteDeliverySystemDescriptor, GetSymbolRate) + HRESULT ( STDMETHODCALLTYPE *GetSymbolRate )( + IDvbSatelliteDeliverySystemDescriptor * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDvbSatelliteDeliverySystemDescriptor, GetFECInner) + HRESULT ( STDMETHODCALLTYPE *GetFECInner )( + IDvbSatelliteDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDvbSatelliteDeliverySystemDescriptorVtbl; + + interface IDvbSatelliteDeliverySystemDescriptor + { + CONST_VTBL struct IDvbSatelliteDeliverySystemDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbSatelliteDeliverySystemDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbSatelliteDeliverySystemDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbSatelliteDeliverySystemDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbSatelliteDeliverySystemDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbSatelliteDeliverySystemDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbSatelliteDeliverySystemDescriptor_GetFrequency(This,pdwVal) \ + ( (This)->lpVtbl -> GetFrequency(This,pdwVal) ) + +#define IDvbSatelliteDeliverySystemDescriptor_GetOrbitalPosition(This,pwVal) \ + ( (This)->lpVtbl -> GetOrbitalPosition(This,pwVal) ) + +#define IDvbSatelliteDeliverySystemDescriptor_GetWestEastFlag(This,pbVal) \ + ( (This)->lpVtbl -> GetWestEastFlag(This,pbVal) ) + +#define IDvbSatelliteDeliverySystemDescriptor_GetPolarization(This,pbVal) \ + ( (This)->lpVtbl -> GetPolarization(This,pbVal) ) + +#define IDvbSatelliteDeliverySystemDescriptor_GetModulation(This,pbVal) \ + ( (This)->lpVtbl -> GetModulation(This,pbVal) ) + +#define IDvbSatelliteDeliverySystemDescriptor_GetSymbolRate(This,pdwVal) \ + ( (This)->lpVtbl -> GetSymbolRate(This,pdwVal) ) + +#define IDvbSatelliteDeliverySystemDescriptor_GetFECInner(This,pbVal) \ + ( (This)->lpVtbl -> GetFECInner(This,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbSatelliteDeliverySystemDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbCableDeliverySystemDescriptor_INTERFACE_DEFINED__ +#define __IDvbCableDeliverySystemDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbCableDeliverySystemDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbCableDeliverySystemDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("DFB98E36-9E1A-4862-9946-993A4E59017B") + IDvbCableDeliverySystemDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFrequency( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFECOuter( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetModulation( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSymbolRate( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFECInner( + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbCableDeliverySystemDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbCableDeliverySystemDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbCableDeliverySystemDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbCableDeliverySystemDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbCableDeliverySystemDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbCableDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbCableDeliverySystemDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbCableDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbCableDeliverySystemDescriptor, GetFrequency) + HRESULT ( STDMETHODCALLTYPE *GetFrequency )( + IDvbCableDeliverySystemDescriptor * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDvbCableDeliverySystemDescriptor, GetFECOuter) + HRESULT ( STDMETHODCALLTYPE *GetFECOuter )( + IDvbCableDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbCableDeliverySystemDescriptor, GetModulation) + HRESULT ( STDMETHODCALLTYPE *GetModulation )( + IDvbCableDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbCableDeliverySystemDescriptor, GetSymbolRate) + HRESULT ( STDMETHODCALLTYPE *GetSymbolRate )( + IDvbCableDeliverySystemDescriptor * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDvbCableDeliverySystemDescriptor, GetFECInner) + HRESULT ( STDMETHODCALLTYPE *GetFECInner )( + IDvbCableDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDvbCableDeliverySystemDescriptorVtbl; + + interface IDvbCableDeliverySystemDescriptor + { + CONST_VTBL struct IDvbCableDeliverySystemDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbCableDeliverySystemDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbCableDeliverySystemDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbCableDeliverySystemDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbCableDeliverySystemDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbCableDeliverySystemDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbCableDeliverySystemDescriptor_GetFrequency(This,pdwVal) \ + ( (This)->lpVtbl -> GetFrequency(This,pdwVal) ) + +#define IDvbCableDeliverySystemDescriptor_GetFECOuter(This,pbVal) \ + ( (This)->lpVtbl -> GetFECOuter(This,pbVal) ) + +#define IDvbCableDeliverySystemDescriptor_GetModulation(This,pbVal) \ + ( (This)->lpVtbl -> GetModulation(This,pbVal) ) + +#define IDvbCableDeliverySystemDescriptor_GetSymbolRate(This,pdwVal) \ + ( (This)->lpVtbl -> GetSymbolRate(This,pdwVal) ) + +#define IDvbCableDeliverySystemDescriptor_GetFECInner(This,pbVal) \ + ( (This)->lpVtbl -> GetFECInner(This,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbCableDeliverySystemDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbTerrestrialDeliverySystemDescriptor_INTERFACE_DEFINED__ +#define __IDvbTerrestrialDeliverySystemDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbTerrestrialDeliverySystemDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbTerrestrialDeliverySystemDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("ED7E1B91-D12E-420c-B41D-A49D84FE1823") + IDvbTerrestrialDeliverySystemDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCentreFrequency( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBandwidth( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetConstellation( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHierarchyInformation( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCodeRateHPStream( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCodeRateLPStream( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetGuardInterval( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTransmissionMode( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOtherFrequencyFlag( + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbTerrestrialDeliverySystemDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbTerrestrialDeliverySystemDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbTerrestrialDeliverySystemDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetCentreFrequency) + HRESULT ( STDMETHODCALLTYPE *GetCentreFrequency )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetBandwidth) + HRESULT ( STDMETHODCALLTYPE *GetBandwidth )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetConstellation) + HRESULT ( STDMETHODCALLTYPE *GetConstellation )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetHierarchyInformation) + HRESULT ( STDMETHODCALLTYPE *GetHierarchyInformation )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetCodeRateHPStream) + HRESULT ( STDMETHODCALLTYPE *GetCodeRateHPStream )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetCodeRateLPStream) + HRESULT ( STDMETHODCALLTYPE *GetCodeRateLPStream )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetGuardInterval) + HRESULT ( STDMETHODCALLTYPE *GetGuardInterval )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetTransmissionMode) + HRESULT ( STDMETHODCALLTYPE *GetTransmissionMode )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrialDeliverySystemDescriptor, GetOtherFrequencyFlag) + HRESULT ( STDMETHODCALLTYPE *GetOtherFrequencyFlag )( + IDvbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDvbTerrestrialDeliverySystemDescriptorVtbl; + + interface IDvbTerrestrialDeliverySystemDescriptor + { + CONST_VTBL struct IDvbTerrestrialDeliverySystemDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbTerrestrialDeliverySystemDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbTerrestrialDeliverySystemDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_GetCentreFrequency(This,pdwVal) \ + ( (This)->lpVtbl -> GetCentreFrequency(This,pdwVal) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_GetBandwidth(This,pbVal) \ + ( (This)->lpVtbl -> GetBandwidth(This,pbVal) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_GetConstellation(This,pbVal) \ + ( (This)->lpVtbl -> GetConstellation(This,pbVal) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_GetHierarchyInformation(This,pbVal) \ + ( (This)->lpVtbl -> GetHierarchyInformation(This,pbVal) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_GetCodeRateHPStream(This,pbVal) \ + ( (This)->lpVtbl -> GetCodeRateHPStream(This,pbVal) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_GetCodeRateLPStream(This,pbVal) \ + ( (This)->lpVtbl -> GetCodeRateLPStream(This,pbVal) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_GetGuardInterval(This,pbVal) \ + ( (This)->lpVtbl -> GetGuardInterval(This,pbVal) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_GetTransmissionMode(This,pbVal) \ + ( (This)->lpVtbl -> GetTransmissionMode(This,pbVal) ) + +#define IDvbTerrestrialDeliverySystemDescriptor_GetOtherFrequencyFlag(This,pbVal) \ + ( (This)->lpVtbl -> GetOtherFrequencyFlag(This,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbTerrestrialDeliverySystemDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbTerrestrial2DeliverySystemDescriptor_INTERFACE_DEFINED__ +#define __IDvbTerrestrial2DeliverySystemDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbTerrestrial2DeliverySystemDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbTerrestrial2DeliverySystemDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("20EE9BE9-CD57-49ab-8F6E-1D07AEB8E482") + IDvbTerrestrial2DeliverySystemDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTagExtension( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCentreFrequency( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPLPId( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetT2SystemId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMultipleInputMode( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBandwidth( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetGuardInterval( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTransmissionMode( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCellId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOtherFrequencyFlag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTFSFlag( + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbTerrestrial2DeliverySystemDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbTerrestrial2DeliverySystemDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbTerrestrial2DeliverySystemDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetTagExtension) + HRESULT ( STDMETHODCALLTYPE *GetTagExtension )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetCentreFrequency) + HRESULT ( STDMETHODCALLTYPE *GetCentreFrequency )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetPLPId) + HRESULT ( STDMETHODCALLTYPE *GetPLPId )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetT2SystemId) + HRESULT ( STDMETHODCALLTYPE *GetT2SystemId )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetMultipleInputMode) + HRESULT ( STDMETHODCALLTYPE *GetMultipleInputMode )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetBandwidth) + HRESULT ( STDMETHODCALLTYPE *GetBandwidth )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetGuardInterval) + HRESULT ( STDMETHODCALLTYPE *GetGuardInterval )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetTransmissionMode) + HRESULT ( STDMETHODCALLTYPE *GetTransmissionMode )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetCellId) + HRESULT ( STDMETHODCALLTYPE *GetCellId )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetOtherFrequencyFlag) + HRESULT ( STDMETHODCALLTYPE *GetOtherFrequencyFlag )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTerrestrial2DeliverySystemDescriptor, GetTFSFlag) + HRESULT ( STDMETHODCALLTYPE *GetTFSFlag )( + IDvbTerrestrial2DeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDvbTerrestrial2DeliverySystemDescriptorVtbl; + + interface IDvbTerrestrial2DeliverySystemDescriptor + { + CONST_VTBL struct IDvbTerrestrial2DeliverySystemDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbTerrestrial2DeliverySystemDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetTagExtension(This,pbVal) \ + ( (This)->lpVtbl -> GetTagExtension(This,pbVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetCentreFrequency(This,pdwVal) \ + ( (This)->lpVtbl -> GetCentreFrequency(This,pdwVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetPLPId(This,pbVal) \ + ( (This)->lpVtbl -> GetPLPId(This,pbVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetT2SystemId(This,pwVal) \ + ( (This)->lpVtbl -> GetT2SystemId(This,pwVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetMultipleInputMode(This,pbVal) \ + ( (This)->lpVtbl -> GetMultipleInputMode(This,pbVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetBandwidth(This,pbVal) \ + ( (This)->lpVtbl -> GetBandwidth(This,pbVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetGuardInterval(This,pbVal) \ + ( (This)->lpVtbl -> GetGuardInterval(This,pbVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetTransmissionMode(This,pbVal) \ + ( (This)->lpVtbl -> GetTransmissionMode(This,pbVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetCellId(This,pwVal) \ + ( (This)->lpVtbl -> GetCellId(This,pwVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetOtherFrequencyFlag(This,pbVal) \ + ( (This)->lpVtbl -> GetOtherFrequencyFlag(This,pbVal) ) + +#define IDvbTerrestrial2DeliverySystemDescriptor_GetTFSFlag(This,pbVal) \ + ( (This)->lpVtbl -> GetTFSFlag(This,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbTerrestrial2DeliverySystemDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbFrequencyListDescriptor_INTERFACE_DEFINED__ +#define __IDvbFrequencyListDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbFrequencyListDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbFrequencyListDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1CADB613-E1DD-4512-AFA8-BB7A007EF8B1") + IDvbFrequencyListDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCodingType( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCentreFrequency( + /* [in] */ BYTE bRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbFrequencyListDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbFrequencyListDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbFrequencyListDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbFrequencyListDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbFrequencyListDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbFrequencyListDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbFrequencyListDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbFrequencyListDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbFrequencyListDescriptor, GetCodingType) + HRESULT ( STDMETHODCALLTYPE *GetCodingType )( + IDvbFrequencyListDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbFrequencyListDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbFrequencyListDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbFrequencyListDescriptor, GetRecordCentreFrequency) + HRESULT ( STDMETHODCALLTYPE *GetRecordCentreFrequency )( + IDvbFrequencyListDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ DWORD *pdwVal); + + END_INTERFACE + } IDvbFrequencyListDescriptorVtbl; + + interface IDvbFrequencyListDescriptor + { + CONST_VTBL struct IDvbFrequencyListDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbFrequencyListDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbFrequencyListDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbFrequencyListDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbFrequencyListDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbFrequencyListDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbFrequencyListDescriptor_GetCodingType(This,pbVal) \ + ( (This)->lpVtbl -> GetCodingType(This,pbVal) ) + +#define IDvbFrequencyListDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbFrequencyListDescriptor_GetRecordCentreFrequency(This,bRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCentreFrequency(This,bRecordIndex,pdwVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbFrequencyListDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbPrivateDataSpecifierDescriptor_INTERFACE_DEFINED__ +#define __IDvbPrivateDataSpecifierDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbPrivateDataSpecifierDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbPrivateDataSpecifierDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5660A019-E75A-4b82-9B4C-ED2256D165A2") + IDvbPrivateDataSpecifierDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrivateDataSpecifier( + /* [out] */ DWORD *pdwVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbPrivateDataSpecifierDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbPrivateDataSpecifierDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbPrivateDataSpecifierDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbPrivateDataSpecifierDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbPrivateDataSpecifierDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbPrivateDataSpecifierDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbPrivateDataSpecifierDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbPrivateDataSpecifierDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbPrivateDataSpecifierDescriptor, GetPrivateDataSpecifier) + HRESULT ( STDMETHODCALLTYPE *GetPrivateDataSpecifier )( + IDvbPrivateDataSpecifierDescriptor * This, + /* [out] */ DWORD *pdwVal); + + END_INTERFACE + } IDvbPrivateDataSpecifierDescriptorVtbl; + + interface IDvbPrivateDataSpecifierDescriptor + { + CONST_VTBL struct IDvbPrivateDataSpecifierDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbPrivateDataSpecifierDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbPrivateDataSpecifierDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbPrivateDataSpecifierDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbPrivateDataSpecifierDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbPrivateDataSpecifierDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbPrivateDataSpecifierDescriptor_GetPrivateDataSpecifier(This,pdwVal) \ + ( (This)->lpVtbl -> GetPrivateDataSpecifier(This,pdwVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbPrivateDataSpecifierDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbLogicalChannelDescriptor_INTERFACE_DEFINED__ +#define __IDvbLogicalChannelDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbLogicalChannelDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbLogicalChannelDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("CF1EDAFF-3FFD-4cf7-8201-35756ACBF85F") + IDvbLogicalChannelDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordServiceId( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordLogicalChannelNumber( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbLogicalChannelDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbLogicalChannelDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbLogicalChannelDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbLogicalChannelDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbLogicalChannelDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbLogicalChannelDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbLogicalChannelDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceId )( + IDvbLogicalChannelDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetRecordLogicalChannelNumber) + HRESULT ( STDMETHODCALLTYPE *GetRecordLogicalChannelNumber )( + IDvbLogicalChannelDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + END_INTERFACE + } IDvbLogicalChannelDescriptorVtbl; + + interface IDvbLogicalChannelDescriptor + { + CONST_VTBL struct IDvbLogicalChannelDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbLogicalChannelDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbLogicalChannelDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbLogicalChannelDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbLogicalChannelDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbLogicalChannelDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbLogicalChannelDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbLogicalChannelDescriptor_GetRecordServiceId(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordServiceId(This,bRecordIndex,pwVal) ) + +#define IDvbLogicalChannelDescriptor_GetRecordLogicalChannelNumber(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordLogicalChannelNumber(This,bRecordIndex,pwVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbLogicalChannelDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbLogicalChannelDescriptor2_INTERFACE_DEFINED__ +#define __IDvbLogicalChannelDescriptor2_INTERFACE_DEFINED__ + +/* interface IDvbLogicalChannelDescriptor2 */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbLogicalChannelDescriptor2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("43ACA974-4BE8-4b98-BC17-9EAFD788B1D7") + IDvbLogicalChannelDescriptor2 : public IDvbLogicalChannelDescriptor + { + public: + virtual HRESULT STDMETHODCALLTYPE GetRecordLogicalChannelAndVisibility( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbLogicalChannelDescriptor2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbLogicalChannelDescriptor2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbLogicalChannelDescriptor2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbLogicalChannelDescriptor2 * This); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbLogicalChannelDescriptor2 * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbLogicalChannelDescriptor2 * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbLogicalChannelDescriptor2 * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceId )( + IDvbLogicalChannelDescriptor2 * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetRecordLogicalChannelNumber) + HRESULT ( STDMETHODCALLTYPE *GetRecordLogicalChannelNumber )( + IDvbLogicalChannelDescriptor2 * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor2, GetRecordLogicalChannelAndVisibility) + HRESULT ( STDMETHODCALLTYPE *GetRecordLogicalChannelAndVisibility )( + IDvbLogicalChannelDescriptor2 * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + END_INTERFACE + } IDvbLogicalChannelDescriptor2Vtbl; + + interface IDvbLogicalChannelDescriptor2 + { + CONST_VTBL struct IDvbLogicalChannelDescriptor2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbLogicalChannelDescriptor2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbLogicalChannelDescriptor2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbLogicalChannelDescriptor2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbLogicalChannelDescriptor2_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbLogicalChannelDescriptor2_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbLogicalChannelDescriptor2_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbLogicalChannelDescriptor2_GetRecordServiceId(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordServiceId(This,bRecordIndex,pwVal) ) + +#define IDvbLogicalChannelDescriptor2_GetRecordLogicalChannelNumber(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordLogicalChannelNumber(This,bRecordIndex,pwVal) ) + + +#define IDvbLogicalChannelDescriptor2_GetRecordLogicalChannelAndVisibility(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordLogicalChannelAndVisibility(This,bRecordIndex,pwVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbLogicalChannelDescriptor2_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbLogicalChannel2Descriptor_INTERFACE_DEFINED__ +#define __IDvbLogicalChannel2Descriptor_INTERFACE_DEFINED__ + +/* interface IDvbLogicalChannel2Descriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbLogicalChannel2Descriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F69C3747-8A30-4980-998C-01FE7F0BA35A") + IDvbLogicalChannel2Descriptor : public IDvbLogicalChannelDescriptor2 + { + public: + virtual HRESULT STDMETHODCALLTYPE GetCountOfLists( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetListId( + /* [in] */ BYTE bListIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetListNameW( + /* [in] */ BYTE bListIndex, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetListCountryCode( + /* [in] */ BYTE bListIndex, + /* [annotation][out] */ + _Out_writes_(4) char *pszCode) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetListCountOfRecords( + /* [in] */ BYTE bChannelListIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetListRecordServiceId( + /* [in] */ BYTE bListIndex, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetListRecordLogicalChannelNumber( + /* [in] */ BYTE bListIndex, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetListRecordLogicalChannelAndVisibility( + /* [in] */ BYTE bListIndex, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbLogicalChannel2DescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbLogicalChannel2Descriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbLogicalChannel2Descriptor * This); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbLogicalChannel2Descriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbLogicalChannel2Descriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbLogicalChannel2Descriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceId )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetRecordLogicalChannelNumber) + HRESULT ( STDMETHODCALLTYPE *GetRecordLogicalChannelNumber )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor2, GetRecordLogicalChannelAndVisibility) + HRESULT ( STDMETHODCALLTYPE *GetRecordLogicalChannelAndVisibility )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannel2Descriptor, GetCountOfLists) + HRESULT ( STDMETHODCALLTYPE *GetCountOfLists )( + IDvbLogicalChannel2Descriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannel2Descriptor, GetListId) + HRESULT ( STDMETHODCALLTYPE *GetListId )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ BYTE bListIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannel2Descriptor, GetListNameW) + HRESULT ( STDMETHODCALLTYPE *GetListNameW )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ BYTE bListIndex, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDvbLogicalChannel2Descriptor, GetListCountryCode) + HRESULT ( STDMETHODCALLTYPE *GetListCountryCode )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ BYTE bListIndex, + /* [annotation][out] */ + _Out_writes_(4) char *pszCode); + + DECLSPEC_XFGVIRT(IDvbLogicalChannel2Descriptor, GetListCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetListCountOfRecords )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ BYTE bChannelListIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannel2Descriptor, GetListRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetListRecordServiceId )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ BYTE bListIndex, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannel2Descriptor, GetListRecordLogicalChannelNumber) + HRESULT ( STDMETHODCALLTYPE *GetListRecordLogicalChannelNumber )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ BYTE bListIndex, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannel2Descriptor, GetListRecordLogicalChannelAndVisibility) + HRESULT ( STDMETHODCALLTYPE *GetListRecordLogicalChannelAndVisibility )( + IDvbLogicalChannel2Descriptor * This, + /* [in] */ BYTE bListIndex, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + END_INTERFACE + } IDvbLogicalChannel2DescriptorVtbl; + + interface IDvbLogicalChannel2Descriptor + { + CONST_VTBL struct IDvbLogicalChannel2DescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbLogicalChannel2Descriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbLogicalChannel2Descriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbLogicalChannel2Descriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbLogicalChannel2Descriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbLogicalChannel2Descriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbLogicalChannel2Descriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbLogicalChannel2Descriptor_GetRecordServiceId(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordServiceId(This,bRecordIndex,pwVal) ) + +#define IDvbLogicalChannel2Descriptor_GetRecordLogicalChannelNumber(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordLogicalChannelNumber(This,bRecordIndex,pwVal) ) + + +#define IDvbLogicalChannel2Descriptor_GetRecordLogicalChannelAndVisibility(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordLogicalChannelAndVisibility(This,bRecordIndex,pwVal) ) + + +#define IDvbLogicalChannel2Descriptor_GetCountOfLists(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfLists(This,pbVal) ) + +#define IDvbLogicalChannel2Descriptor_GetListId(This,bListIndex,pbVal) \ + ( (This)->lpVtbl -> GetListId(This,bListIndex,pbVal) ) + +#define IDvbLogicalChannel2Descriptor_GetListNameW(This,bListIndex,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetListNameW(This,bListIndex,convMode,pbstrName) ) + +#define IDvbLogicalChannel2Descriptor_GetListCountryCode(This,bListIndex,pszCode) \ + ( (This)->lpVtbl -> GetListCountryCode(This,bListIndex,pszCode) ) + +#define IDvbLogicalChannel2Descriptor_GetListCountOfRecords(This,bChannelListIndex,pbVal) \ + ( (This)->lpVtbl -> GetListCountOfRecords(This,bChannelListIndex,pbVal) ) + +#define IDvbLogicalChannel2Descriptor_GetListRecordServiceId(This,bListIndex,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetListRecordServiceId(This,bListIndex,bRecordIndex,pwVal) ) + +#define IDvbLogicalChannel2Descriptor_GetListRecordLogicalChannelNumber(This,bListIndex,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetListRecordLogicalChannelNumber(This,bListIndex,bRecordIndex,pwVal) ) + +#define IDvbLogicalChannel2Descriptor_GetListRecordLogicalChannelAndVisibility(This,bListIndex,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetListRecordLogicalChannelAndVisibility(This,bListIndex,bRecordIndex,pwVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbLogicalChannel2Descriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbHDSimulcastLogicalChannelDescriptor_INTERFACE_DEFINED__ +#define __IDvbHDSimulcastLogicalChannelDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbHDSimulcastLogicalChannelDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbHDSimulcastLogicalChannelDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1EA8B738-A307-4680-9E26-D0A908C824F4") + IDvbHDSimulcastLogicalChannelDescriptor : public IDvbLogicalChannelDescriptor2 + { + public: + }; + + +#else /* C style interface */ + + typedef struct IDvbHDSimulcastLogicalChannelDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbHDSimulcastLogicalChannelDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbHDSimulcastLogicalChannelDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbHDSimulcastLogicalChannelDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbHDSimulcastLogicalChannelDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbHDSimulcastLogicalChannelDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbHDSimulcastLogicalChannelDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceId )( + IDvbHDSimulcastLogicalChannelDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor, GetRecordLogicalChannelNumber) + HRESULT ( STDMETHODCALLTYPE *GetRecordLogicalChannelNumber )( + IDvbHDSimulcastLogicalChannelDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLogicalChannelDescriptor2, GetRecordLogicalChannelAndVisibility) + HRESULT ( STDMETHODCALLTYPE *GetRecordLogicalChannelAndVisibility )( + IDvbHDSimulcastLogicalChannelDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + END_INTERFACE + } IDvbHDSimulcastLogicalChannelDescriptorVtbl; + + interface IDvbHDSimulcastLogicalChannelDescriptor + { + CONST_VTBL struct IDvbHDSimulcastLogicalChannelDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbHDSimulcastLogicalChannelDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbHDSimulcastLogicalChannelDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbHDSimulcastLogicalChannelDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbHDSimulcastLogicalChannelDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbHDSimulcastLogicalChannelDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbHDSimulcastLogicalChannelDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbHDSimulcastLogicalChannelDescriptor_GetRecordServiceId(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordServiceId(This,bRecordIndex,pwVal) ) + +#define IDvbHDSimulcastLogicalChannelDescriptor_GetRecordLogicalChannelNumber(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordLogicalChannelNumber(This,bRecordIndex,pwVal) ) + + +#define IDvbHDSimulcastLogicalChannelDescriptor_GetRecordLogicalChannelAndVisibility(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordLogicalChannelAndVisibility(This,bRecordIndex,pwVal) ) + + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbHDSimulcastLogicalChannelDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbDataBroadcastIDDescriptor_INTERFACE_DEFINED__ +#define __IDvbDataBroadcastIDDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbDataBroadcastIDDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbDataBroadcastIDDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5F26F518-65C8-4048-91F2-9290F59F7B90") + IDvbDataBroadcastIDDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDataBroadcastID( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetIDSelectorBytes( + /* [out][in] */ BYTE *pbLen, + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbDataBroadcastIDDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbDataBroadcastIDDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbDataBroadcastIDDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbDataBroadcastIDDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastIDDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbDataBroadcastIDDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastIDDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbDataBroadcastIDDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastIDDescriptor, GetDataBroadcastID) + HRESULT ( STDMETHODCALLTYPE *GetDataBroadcastID )( + IDvbDataBroadcastIDDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastIDDescriptor, GetIDSelectorBytes) + HRESULT ( STDMETHODCALLTYPE *GetIDSelectorBytes )( + IDvbDataBroadcastIDDescriptor * This, + /* [out][in] */ BYTE *pbLen, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDvbDataBroadcastIDDescriptorVtbl; + + interface IDvbDataBroadcastIDDescriptor + { + CONST_VTBL struct IDvbDataBroadcastIDDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbDataBroadcastIDDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbDataBroadcastIDDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbDataBroadcastIDDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbDataBroadcastIDDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbDataBroadcastIDDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbDataBroadcastIDDescriptor_GetDataBroadcastID(This,pwVal) \ + ( (This)->lpVtbl -> GetDataBroadcastID(This,pwVal) ) + +#define IDvbDataBroadcastIDDescriptor_GetIDSelectorBytes(This,pbLen,pbVal) \ + ( (This)->lpVtbl -> GetIDSelectorBytes(This,pbLen,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbDataBroadcastIDDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbDataBroadcastDescriptor_INTERFACE_DEFINED__ +#define __IDvbDataBroadcastDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbDataBroadcastDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbDataBroadcastDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D1EBC1D6-8B60-4c20-9CAF-E59382E7C400") + IDvbDataBroadcastDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDataBroadcastID( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetComponentTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSelectorLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSelectorBytes( + /* [out][in] */ BYTE *pbLen, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLangID( + /* [out] */ ULONG *pulVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTextLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetText( + /* [out][in] */ BYTE *pbLen, + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbDataBroadcastDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbDataBroadcastDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbDataBroadcastDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbDataBroadcastDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbDataBroadcastDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbDataBroadcastDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastDescriptor, GetDataBroadcastID) + HRESULT ( STDMETHODCALLTYPE *GetDataBroadcastID )( + IDvbDataBroadcastDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastDescriptor, GetComponentTag) + HRESULT ( STDMETHODCALLTYPE *GetComponentTag )( + IDvbDataBroadcastDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastDescriptor, GetSelectorLength) + HRESULT ( STDMETHODCALLTYPE *GetSelectorLength )( + IDvbDataBroadcastDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastDescriptor, GetSelectorBytes) + HRESULT ( STDMETHODCALLTYPE *GetSelectorBytes )( + IDvbDataBroadcastDescriptor * This, + /* [out][in] */ BYTE *pbLen, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastDescriptor, GetLangID) + HRESULT ( STDMETHODCALLTYPE *GetLangID )( + IDvbDataBroadcastDescriptor * This, + /* [out] */ ULONG *pulVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastDescriptor, GetTextLength) + HRESULT ( STDMETHODCALLTYPE *GetTextLength )( + IDvbDataBroadcastDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbDataBroadcastDescriptor, GetText) + HRESULT ( STDMETHODCALLTYPE *GetText )( + IDvbDataBroadcastDescriptor * This, + /* [out][in] */ BYTE *pbLen, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDvbDataBroadcastDescriptorVtbl; + + interface IDvbDataBroadcastDescriptor + { + CONST_VTBL struct IDvbDataBroadcastDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbDataBroadcastDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbDataBroadcastDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbDataBroadcastDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbDataBroadcastDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbDataBroadcastDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbDataBroadcastDescriptor_GetDataBroadcastID(This,pwVal) \ + ( (This)->lpVtbl -> GetDataBroadcastID(This,pwVal) ) + +#define IDvbDataBroadcastDescriptor_GetComponentTag(This,pbVal) \ + ( (This)->lpVtbl -> GetComponentTag(This,pbVal) ) + +#define IDvbDataBroadcastDescriptor_GetSelectorLength(This,pbVal) \ + ( (This)->lpVtbl -> GetSelectorLength(This,pbVal) ) + +#define IDvbDataBroadcastDescriptor_GetSelectorBytes(This,pbLen,pbVal) \ + ( (This)->lpVtbl -> GetSelectorBytes(This,pbLen,pbVal) ) + +#define IDvbDataBroadcastDescriptor_GetLangID(This,pulVal) \ + ( (This)->lpVtbl -> GetLangID(This,pulVal) ) + +#define IDvbDataBroadcastDescriptor_GetTextLength(This,pbVal) \ + ( (This)->lpVtbl -> GetTextLength(This,pbVal) ) + +#define IDvbDataBroadcastDescriptor_GetText(This,pbLen,pbVal) \ + ( (This)->lpVtbl -> GetText(This,pbLen,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbDataBroadcastDescriptor_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dvbsiparser_0000_0036 */ +/* [local] */ + +typedef /* [public] */ +enum __MIDL___MIDL_itf_dvbsiparser_0000_0036_0001 + { + DESC_LINKAGE_RESERVED0 = 0, + DESC_LINKAGE_INFORMATION = ( DESC_LINKAGE_RESERVED0 + 1 ) , + DESC_LINKAGE_EPG = ( DESC_LINKAGE_INFORMATION + 1 ) , + DESC_LINKAGE_CA_REPLACEMENT = ( DESC_LINKAGE_EPG + 1 ) , + DESC_LINKAGE_COMPLETE_NET_BOUQUET_SI = ( DESC_LINKAGE_CA_REPLACEMENT + 1 ) , + DESC_LINKAGE_REPLACEMENT = ( DESC_LINKAGE_COMPLETE_NET_BOUQUET_SI + 1 ) , + DESC_LINKAGE_DATA = ( DESC_LINKAGE_REPLACEMENT + 1 ) , + DESC_LINKAGE_RESERVED1 = 0x7, + DESC_LINKAGE_USER = 0x8, + DESC_LINKAGE_RESERVED2 = 0xff + } DESC_LINKAGE_TYPE; + + + +extern RPC_IF_HANDLE __MIDL_itf_dvbsiparser_0000_0036_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dvbsiparser_0000_0036_v0_0_s_ifspec; + +#ifndef __IDvbLinkageDescriptor_INTERFACE_DEFINED__ +#define __IDvbLinkageDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbLinkageDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbLinkageDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1CDF8B31-994A-46fc-ACFD-6A6BE8934DD5") + IDvbLinkageDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTSId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetONId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLinkageType( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrivateDataLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrivateData( + /* [out][in] */ BYTE *pbLen, + /* [out] */ BYTE *pbData) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbLinkageDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbLinkageDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbLinkageDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbLinkageDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbLinkageDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbLinkageDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLinkageDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbLinkageDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLinkageDescriptor, GetTSId) + HRESULT ( STDMETHODCALLTYPE *GetTSId )( + IDvbLinkageDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLinkageDescriptor, GetONId) + HRESULT ( STDMETHODCALLTYPE *GetONId )( + IDvbLinkageDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLinkageDescriptor, GetServiceId) + HRESULT ( STDMETHODCALLTYPE *GetServiceId )( + IDvbLinkageDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbLinkageDescriptor, GetLinkageType) + HRESULT ( STDMETHODCALLTYPE *GetLinkageType )( + IDvbLinkageDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLinkageDescriptor, GetPrivateDataLength) + HRESULT ( STDMETHODCALLTYPE *GetPrivateDataLength )( + IDvbLinkageDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbLinkageDescriptor, GetPrivateData) + HRESULT ( STDMETHODCALLTYPE *GetPrivateData )( + IDvbLinkageDescriptor * This, + /* [out][in] */ BYTE *pbLen, + /* [out] */ BYTE *pbData); + + END_INTERFACE + } IDvbLinkageDescriptorVtbl; + + interface IDvbLinkageDescriptor + { + CONST_VTBL struct IDvbLinkageDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbLinkageDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbLinkageDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbLinkageDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbLinkageDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbLinkageDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbLinkageDescriptor_GetTSId(This,pwVal) \ + ( (This)->lpVtbl -> GetTSId(This,pwVal) ) + +#define IDvbLinkageDescriptor_GetONId(This,pwVal) \ + ( (This)->lpVtbl -> GetONId(This,pwVal) ) + +#define IDvbLinkageDescriptor_GetServiceId(This,pwVal) \ + ( (This)->lpVtbl -> GetServiceId(This,pwVal) ) + +#define IDvbLinkageDescriptor_GetLinkageType(This,pbVal) \ + ( (This)->lpVtbl -> GetLinkageType(This,pbVal) ) + +#define IDvbLinkageDescriptor_GetPrivateDataLength(This,pbVal) \ + ( (This)->lpVtbl -> GetPrivateDataLength(This,pbVal) ) + +#define IDvbLinkageDescriptor_GetPrivateData(This,pbLen,pbData) \ + ( (This)->lpVtbl -> GetPrivateData(This,pbLen,pbData) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbLinkageDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbTeletextDescriptor_INTERFACE_DEFINED__ +#define __IDvbTeletextDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbTeletextDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbTeletextDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9CD29D47-69C6-4f92-98A9-210AF1B7303A") + IDvbTeletextDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordLangId( + /* [in] */ BYTE bRecordIndex, + /* [out] */ ULONG *pulVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordTeletextType( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordMagazineNumber( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordPageNumber( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbTeletextDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbTeletextDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbTeletextDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbTeletextDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbTeletextDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbTeletextDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTeletextDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbTeletextDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTeletextDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbTeletextDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTeletextDescriptor, GetRecordLangId) + HRESULT ( STDMETHODCALLTYPE *GetRecordLangId )( + IDvbTeletextDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ ULONG *pulVal); + + DECLSPEC_XFGVIRT(IDvbTeletextDescriptor, GetRecordTeletextType) + HRESULT ( STDMETHODCALLTYPE *GetRecordTeletextType )( + IDvbTeletextDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTeletextDescriptor, GetRecordMagazineNumber) + HRESULT ( STDMETHODCALLTYPE *GetRecordMagazineNumber )( + IDvbTeletextDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbTeletextDescriptor, GetRecordPageNumber) + HRESULT ( STDMETHODCALLTYPE *GetRecordPageNumber )( + IDvbTeletextDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDvbTeletextDescriptorVtbl; + + interface IDvbTeletextDescriptor + { + CONST_VTBL struct IDvbTeletextDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbTeletextDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbTeletextDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbTeletextDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbTeletextDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbTeletextDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbTeletextDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbTeletextDescriptor_GetRecordLangId(This,bRecordIndex,pulVal) \ + ( (This)->lpVtbl -> GetRecordLangId(This,bRecordIndex,pulVal) ) + +#define IDvbTeletextDescriptor_GetRecordTeletextType(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordTeletextType(This,bRecordIndex,pbVal) ) + +#define IDvbTeletextDescriptor_GetRecordMagazineNumber(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordMagazineNumber(This,bRecordIndex,pbVal) ) + +#define IDvbTeletextDescriptor_GetRecordPageNumber(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordPageNumber(This,bRecordIndex,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbTeletextDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbSubtitlingDescriptor_INTERFACE_DEFINED__ +#define __IDvbSubtitlingDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbSubtitlingDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbSubtitlingDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9B25FE1D-FA23-4e50-9784-6DF8B26F8A49") + IDvbSubtitlingDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordLangId( + /* [in] */ BYTE bRecordIndex, + /* [out] */ ULONG *pulVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordSubtitlingType( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCompositionPageID( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordAncillaryPageID( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbSubtitlingDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbSubtitlingDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbSubtitlingDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbSubtitlingDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbSubtitlingDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbSubtitlingDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbSubtitlingDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbSubtitlingDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbSubtitlingDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbSubtitlingDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbSubtitlingDescriptor, GetRecordLangId) + HRESULT ( STDMETHODCALLTYPE *GetRecordLangId )( + IDvbSubtitlingDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ ULONG *pulVal); + + DECLSPEC_XFGVIRT(IDvbSubtitlingDescriptor, GetRecordSubtitlingType) + HRESULT ( STDMETHODCALLTYPE *GetRecordSubtitlingType )( + IDvbSubtitlingDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbSubtitlingDescriptor, GetRecordCompositionPageID) + HRESULT ( STDMETHODCALLTYPE *GetRecordCompositionPageID )( + IDvbSubtitlingDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbSubtitlingDescriptor, GetRecordAncillaryPageID) + HRESULT ( STDMETHODCALLTYPE *GetRecordAncillaryPageID )( + IDvbSubtitlingDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + END_INTERFACE + } IDvbSubtitlingDescriptorVtbl; + + interface IDvbSubtitlingDescriptor + { + CONST_VTBL struct IDvbSubtitlingDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbSubtitlingDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbSubtitlingDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbSubtitlingDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbSubtitlingDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbSubtitlingDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbSubtitlingDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbSubtitlingDescriptor_GetRecordLangId(This,bRecordIndex,pulVal) \ + ( (This)->lpVtbl -> GetRecordLangId(This,bRecordIndex,pulVal) ) + +#define IDvbSubtitlingDescriptor_GetRecordSubtitlingType(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordSubtitlingType(This,bRecordIndex,pbVal) ) + +#define IDvbSubtitlingDescriptor_GetRecordCompositionPageID(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordCompositionPageID(This,bRecordIndex,pwVal) ) + +#define IDvbSubtitlingDescriptor_GetRecordAncillaryPageID(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordAncillaryPageID(This,bRecordIndex,pwVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbSubtitlingDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbServiceDescriptor_INTERFACE_DEFINED__ +#define __IDvbServiceDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbServiceDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbServiceDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F9C7FBCF-E2D6-464d-B32D-2EF526E49290") + IDvbServiceDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceType( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceProviderName( + /* [annotation][out] */ + _Outptr_ char **pszName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceProviderNameW( + /* [annotation][out] */ + _Outptr_ BSTR *pbstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceName( + /* [annotation][out] */ + _Outptr_ char **pszName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProcessedServiceName( + /* [out] */ BSTR *pbstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceNameEmphasized( + /* [out] */ BSTR *pbstrName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbServiceDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbServiceDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbServiceDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbServiceDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbServiceDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbServiceDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetServiceType) + HRESULT ( STDMETHODCALLTYPE *GetServiceType )( + IDvbServiceDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetServiceProviderName) + HRESULT ( STDMETHODCALLTYPE *GetServiceProviderName )( + IDvbServiceDescriptor * This, + /* [annotation][out] */ + _Outptr_ char **pszName); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetServiceProviderNameW) + HRESULT ( STDMETHODCALLTYPE *GetServiceProviderNameW )( + IDvbServiceDescriptor * This, + /* [annotation][out] */ + _Outptr_ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetServiceName) + HRESULT ( STDMETHODCALLTYPE *GetServiceName )( + IDvbServiceDescriptor * This, + /* [annotation][out] */ + _Outptr_ char **pszName); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetProcessedServiceName) + HRESULT ( STDMETHODCALLTYPE *GetProcessedServiceName )( + IDvbServiceDescriptor * This, + /* [out] */ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetServiceNameEmphasized) + HRESULT ( STDMETHODCALLTYPE *GetServiceNameEmphasized )( + IDvbServiceDescriptor * This, + /* [out] */ BSTR *pbstrName); + + END_INTERFACE + } IDvbServiceDescriptorVtbl; + + interface IDvbServiceDescriptor + { + CONST_VTBL struct IDvbServiceDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbServiceDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbServiceDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbServiceDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbServiceDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbServiceDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbServiceDescriptor_GetServiceType(This,pbVal) \ + ( (This)->lpVtbl -> GetServiceType(This,pbVal) ) + +#define IDvbServiceDescriptor_GetServiceProviderName(This,pszName) \ + ( (This)->lpVtbl -> GetServiceProviderName(This,pszName) ) + +#define IDvbServiceDescriptor_GetServiceProviderNameW(This,pbstrName) \ + ( (This)->lpVtbl -> GetServiceProviderNameW(This,pbstrName) ) + +#define IDvbServiceDescriptor_GetServiceName(This,pszName) \ + ( (This)->lpVtbl -> GetServiceName(This,pszName) ) + +#define IDvbServiceDescriptor_GetProcessedServiceName(This,pbstrName) \ + ( (This)->lpVtbl -> GetProcessedServiceName(This,pbstrName) ) + +#define IDvbServiceDescriptor_GetServiceNameEmphasized(This,pbstrName) \ + ( (This)->lpVtbl -> GetServiceNameEmphasized(This,pbstrName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbServiceDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbServiceDescriptor2_INTERFACE_DEFINED__ +#define __IDvbServiceDescriptor2_INTERFACE_DEFINED__ + +/* interface IDvbServiceDescriptor2 */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbServiceDescriptor2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D6C76506-85AB-487C-9B2B-36416511E4A2") + IDvbServiceDescriptor2 : public IDvbServiceDescriptor + { + public: + virtual HRESULT STDMETHODCALLTYPE GetServiceProviderNameW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceNameW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbServiceDescriptor2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbServiceDescriptor2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbServiceDescriptor2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbServiceDescriptor2 * This); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbServiceDescriptor2 * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbServiceDescriptor2 * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetServiceType) + HRESULT ( STDMETHODCALLTYPE *GetServiceType )( + IDvbServiceDescriptor2 * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetServiceProviderName) + HRESULT ( STDMETHODCALLTYPE *GetServiceProviderName )( + IDvbServiceDescriptor2 * This, + /* [annotation][out] */ + _Outptr_ char **pszName); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetServiceProviderNameW) + HRESULT ( STDMETHODCALLTYPE *GetServiceProviderNameW )( + IDvbServiceDescriptor2 * This, + /* [annotation][out] */ + _Outptr_ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetServiceName) + HRESULT ( STDMETHODCALLTYPE *GetServiceName )( + IDvbServiceDescriptor2 * This, + /* [annotation][out] */ + _Outptr_ char **pszName); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetProcessedServiceName) + HRESULT ( STDMETHODCALLTYPE *GetProcessedServiceName )( + IDvbServiceDescriptor2 * This, + /* [out] */ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor, GetServiceNameEmphasized) + HRESULT ( STDMETHODCALLTYPE *GetServiceNameEmphasized )( + IDvbServiceDescriptor2 * This, + /* [out] */ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor2, GetServiceProviderNameW) + HRESULT ( STDMETHODCALLTYPE *GetServiceProviderNameW )( + IDvbServiceDescriptor2 * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDvbServiceDescriptor2, GetServiceNameW) + HRESULT ( STDMETHODCALLTYPE *GetServiceNameW )( + IDvbServiceDescriptor2 * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + END_INTERFACE + } IDvbServiceDescriptor2Vtbl; + + interface IDvbServiceDescriptor2 + { + CONST_VTBL struct IDvbServiceDescriptor2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbServiceDescriptor2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbServiceDescriptor2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbServiceDescriptor2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbServiceDescriptor2_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbServiceDescriptor2_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbServiceDescriptor2_GetServiceType(This,pbVal) \ + ( (This)->lpVtbl -> GetServiceType(This,pbVal) ) + +#define IDvbServiceDescriptor2_GetServiceProviderName(This,pszName) \ + ( (This)->lpVtbl -> GetServiceProviderName(This,pszName) ) + +#define IDvbServiceDescriptor2_GetServiceProviderNameW(This,pbstrName) \ + ( (This)->lpVtbl -> GetServiceProviderNameW(This,pbstrName) ) + +#define IDvbServiceDescriptor2_GetServiceName(This,pszName) \ + ( (This)->lpVtbl -> GetServiceName(This,pszName) ) + +#define IDvbServiceDescriptor2_GetProcessedServiceName(This,pbstrName) \ + ( (This)->lpVtbl -> GetProcessedServiceName(This,pbstrName) ) + +#define IDvbServiceDescriptor2_GetServiceNameEmphasized(This,pbstrName) \ + ( (This)->lpVtbl -> GetServiceNameEmphasized(This,pbstrName) ) + + +#define IDvbServiceDescriptor2_GetServiceProviderNameW(This,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetServiceProviderNameW(This,convMode,pbstrName) ) + +#define IDvbServiceDescriptor2_GetServiceNameW(This,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetServiceNameW(This,convMode,pbstrName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbServiceDescriptor2_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbServiceListDescriptor_INTERFACE_DEFINED__ +#define __IDvbServiceListDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbServiceListDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbServiceListDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("05DB0D8F-6008-491a-ACD3-7090952707D0") + IDvbServiceListDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordServiceId( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordServiceType( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbServiceListDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbServiceListDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbServiceListDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbServiceListDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbServiceListDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbServiceListDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceListDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbServiceListDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceListDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbServiceListDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbServiceListDescriptor, GetRecordServiceId) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceId )( + IDvbServiceListDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IDvbServiceListDescriptor, GetRecordServiceType) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceType )( + IDvbServiceListDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDvbServiceListDescriptorVtbl; + + interface IDvbServiceListDescriptor + { + CONST_VTBL struct IDvbServiceListDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbServiceListDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbServiceListDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbServiceListDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbServiceListDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbServiceListDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbServiceListDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbServiceListDescriptor_GetRecordServiceId(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordServiceId(This,bRecordIndex,pwVal) ) + +#define IDvbServiceListDescriptor_GetRecordServiceType(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordServiceType(This,bRecordIndex,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbServiceListDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbMultilingualServiceNameDescriptor_INTERFACE_DEFINED__ +#define __IDvbMultilingualServiceNameDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbMultilingualServiceNameDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbMultilingualServiceNameDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2D80433B-B32C-47ef-987F-E78EBB773E34") + IDvbMultilingualServiceNameDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordLangId( + /* [in] */ BYTE bRecordIndex, + /* [out] */ ULONG *ulVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordServiceProviderNameW( + /* [in] */ BYTE bRecordIndex, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordServiceNameW( + /* [in] */ BYTE bRecordIndex, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbMultilingualServiceNameDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbMultilingualServiceNameDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbMultilingualServiceNameDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbMultilingualServiceNameDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbMultilingualServiceNameDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbMultilingualServiceNameDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbMultilingualServiceNameDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbMultilingualServiceNameDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbMultilingualServiceNameDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbMultilingualServiceNameDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbMultilingualServiceNameDescriptor, GetRecordLangId) + HRESULT ( STDMETHODCALLTYPE *GetRecordLangId )( + IDvbMultilingualServiceNameDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ ULONG *ulVal); + + DECLSPEC_XFGVIRT(IDvbMultilingualServiceNameDescriptor, GetRecordServiceProviderNameW) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceProviderNameW )( + IDvbMultilingualServiceNameDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDvbMultilingualServiceNameDescriptor, GetRecordServiceNameW) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceNameW )( + IDvbMultilingualServiceNameDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + END_INTERFACE + } IDvbMultilingualServiceNameDescriptorVtbl; + + interface IDvbMultilingualServiceNameDescriptor + { + CONST_VTBL struct IDvbMultilingualServiceNameDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbMultilingualServiceNameDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbMultilingualServiceNameDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbMultilingualServiceNameDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbMultilingualServiceNameDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbMultilingualServiceNameDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbMultilingualServiceNameDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbMultilingualServiceNameDescriptor_GetRecordLangId(This,bRecordIndex,ulVal) \ + ( (This)->lpVtbl -> GetRecordLangId(This,bRecordIndex,ulVal) ) + +#define IDvbMultilingualServiceNameDescriptor_GetRecordServiceProviderNameW(This,bRecordIndex,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetRecordServiceProviderNameW(This,bRecordIndex,convMode,pbstrName) ) + +#define IDvbMultilingualServiceNameDescriptor_GetRecordServiceNameW(This,bRecordIndex,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetRecordServiceNameW(This,bRecordIndex,convMode,pbstrName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbMultilingualServiceNameDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbNetworkNameDescriptor_INTERFACE_DEFINED__ +#define __IDvbNetworkNameDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbNetworkNameDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbNetworkNameDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5B2A80CF-35B9-446C-B3E4-048B761DBC51") + IDvbNetworkNameDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNetworkName( + /* [annotation][out] */ + _Outptr_ char **pszName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetNetworkNameW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbNetworkNameDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbNetworkNameDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbNetworkNameDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbNetworkNameDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbNetworkNameDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbNetworkNameDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbNetworkNameDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbNetworkNameDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbNetworkNameDescriptor, GetNetworkName) + HRESULT ( STDMETHODCALLTYPE *GetNetworkName )( + IDvbNetworkNameDescriptor * This, + /* [annotation][out] */ + _Outptr_ char **pszName); + + DECLSPEC_XFGVIRT(IDvbNetworkNameDescriptor, GetNetworkNameW) + HRESULT ( STDMETHODCALLTYPE *GetNetworkNameW )( + IDvbNetworkNameDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + END_INTERFACE + } IDvbNetworkNameDescriptorVtbl; + + interface IDvbNetworkNameDescriptor + { + CONST_VTBL struct IDvbNetworkNameDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbNetworkNameDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbNetworkNameDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbNetworkNameDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbNetworkNameDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbNetworkNameDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbNetworkNameDescriptor_GetNetworkName(This,pszName) \ + ( (This)->lpVtbl -> GetNetworkName(This,pszName) ) + +#define IDvbNetworkNameDescriptor_GetNetworkNameW(This,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetNetworkNameW(This,convMode,pbstrName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbNetworkNameDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbShortEventDescriptor_INTERFACE_DEFINED__ +#define __IDvbShortEventDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbShortEventDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbShortEventDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B170BE92-5B75-458E-9C6E-B0008231491A") + IDvbShortEventDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLanguageCode( + /* [annotation][out] */ + _Out_writes_(4) char *pszCode) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEventNameW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTextW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbShortEventDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbShortEventDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbShortEventDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbShortEventDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbShortEventDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbShortEventDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbShortEventDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbShortEventDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbShortEventDescriptor, GetLanguageCode) + HRESULT ( STDMETHODCALLTYPE *GetLanguageCode )( + IDvbShortEventDescriptor * This, + /* [annotation][out] */ + _Out_writes_(4) char *pszCode); + + DECLSPEC_XFGVIRT(IDvbShortEventDescriptor, GetEventNameW) + HRESULT ( STDMETHODCALLTYPE *GetEventNameW )( + IDvbShortEventDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IDvbShortEventDescriptor, GetTextW) + HRESULT ( STDMETHODCALLTYPE *GetTextW )( + IDvbShortEventDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText); + + END_INTERFACE + } IDvbShortEventDescriptorVtbl; + + interface IDvbShortEventDescriptor + { + CONST_VTBL struct IDvbShortEventDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbShortEventDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbShortEventDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbShortEventDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbShortEventDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbShortEventDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbShortEventDescriptor_GetLanguageCode(This,pszCode) \ + ( (This)->lpVtbl -> GetLanguageCode(This,pszCode) ) + +#define IDvbShortEventDescriptor_GetEventNameW(This,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetEventNameW(This,convMode,pbstrName) ) + +#define IDvbShortEventDescriptor_GetTextW(This,convMode,pbstrText) \ + ( (This)->lpVtbl -> GetTextW(This,convMode,pbstrText) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbShortEventDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbExtendedEventDescriptor_INTERFACE_DEFINED__ +#define __IDvbExtendedEventDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbExtendedEventDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbExtendedEventDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C9B22ECA-85F4-499F-B1DB-EFA93A91EE57") + IDvbExtendedEventDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDescriptorNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLastDescriptorNumber( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLanguageCode( + /* [annotation][out] */ + _Out_writes_(4) char *pszCode) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordItemW( + /* [in] */ BYTE bRecordIndex, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrDesc, + /* [out] */ BSTR *pbstrItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetConcatenatedItemW( + /* [in] */ IDvbExtendedEventDescriptor *pFollowingDescriptor, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrDesc, + /* [out] */ BSTR *pbstrItem) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTextW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetConcatenatedTextW( + /* [in] */ IDvbExtendedEventDescriptor *FollowingDescriptor, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordItemRawBytes( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE **ppbRawItem, + /* [out] */ BYTE *pbItemLength) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbExtendedEventDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbExtendedEventDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbExtendedEventDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbExtendedEventDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbExtendedEventDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbExtendedEventDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetDescriptorNumber) + HRESULT ( STDMETHODCALLTYPE *GetDescriptorNumber )( + IDvbExtendedEventDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetLastDescriptorNumber) + HRESULT ( STDMETHODCALLTYPE *GetLastDescriptorNumber )( + IDvbExtendedEventDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetLanguageCode) + HRESULT ( STDMETHODCALLTYPE *GetLanguageCode )( + IDvbExtendedEventDescriptor * This, + /* [annotation][out] */ + _Out_writes_(4) char *pszCode); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbExtendedEventDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetRecordItemW) + HRESULT ( STDMETHODCALLTYPE *GetRecordItemW )( + IDvbExtendedEventDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrDesc, + /* [out] */ BSTR *pbstrItem); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetConcatenatedItemW) + HRESULT ( STDMETHODCALLTYPE *GetConcatenatedItemW )( + IDvbExtendedEventDescriptor * This, + /* [in] */ IDvbExtendedEventDescriptor *pFollowingDescriptor, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrDesc, + /* [out] */ BSTR *pbstrItem); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetTextW) + HRESULT ( STDMETHODCALLTYPE *GetTextW )( + IDvbExtendedEventDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetConcatenatedTextW) + HRESULT ( STDMETHODCALLTYPE *GetConcatenatedTextW )( + IDvbExtendedEventDescriptor * This, + /* [in] */ IDvbExtendedEventDescriptor *FollowingDescriptor, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText); + + DECLSPEC_XFGVIRT(IDvbExtendedEventDescriptor, GetRecordItemRawBytes) + HRESULT ( STDMETHODCALLTYPE *GetRecordItemRawBytes )( + IDvbExtendedEventDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE **ppbRawItem, + /* [out] */ BYTE *pbItemLength); + + END_INTERFACE + } IDvbExtendedEventDescriptorVtbl; + + interface IDvbExtendedEventDescriptor + { + CONST_VTBL struct IDvbExtendedEventDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbExtendedEventDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbExtendedEventDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbExtendedEventDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbExtendedEventDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbExtendedEventDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbExtendedEventDescriptor_GetDescriptorNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetDescriptorNumber(This,pbVal) ) + +#define IDvbExtendedEventDescriptor_GetLastDescriptorNumber(This,pbVal) \ + ( (This)->lpVtbl -> GetLastDescriptorNumber(This,pbVal) ) + +#define IDvbExtendedEventDescriptor_GetLanguageCode(This,pszCode) \ + ( (This)->lpVtbl -> GetLanguageCode(This,pszCode) ) + +#define IDvbExtendedEventDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbExtendedEventDescriptor_GetRecordItemW(This,bRecordIndex,convMode,pbstrDesc,pbstrItem) \ + ( (This)->lpVtbl -> GetRecordItemW(This,bRecordIndex,convMode,pbstrDesc,pbstrItem) ) + +#define IDvbExtendedEventDescriptor_GetConcatenatedItemW(This,pFollowingDescriptor,convMode,pbstrDesc,pbstrItem) \ + ( (This)->lpVtbl -> GetConcatenatedItemW(This,pFollowingDescriptor,convMode,pbstrDesc,pbstrItem) ) + +#define IDvbExtendedEventDescriptor_GetTextW(This,convMode,pbstrText) \ + ( (This)->lpVtbl -> GetTextW(This,convMode,pbstrText) ) + +#define IDvbExtendedEventDescriptor_GetConcatenatedTextW(This,FollowingDescriptor,convMode,pbstrText) \ + ( (This)->lpVtbl -> GetConcatenatedTextW(This,FollowingDescriptor,convMode,pbstrText) ) + +#define IDvbExtendedEventDescriptor_GetRecordItemRawBytes(This,bRecordIndex,ppbRawItem,pbItemLength) \ + ( (This)->lpVtbl -> GetRecordItemRawBytes(This,bRecordIndex,ppbRawItem,pbItemLength) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbExtendedEventDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbComponentDescriptor_INTERFACE_DEFINED__ +#define __IDvbComponentDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbComponentDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbComponentDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("91E405CF-80E7-457F-9096-1B9D1CE32141") + IDvbComponentDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStreamContent( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetComponentType( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetComponentTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLanguageCode( + /* [annotation][out] */ + _Out_writes_(4) char *pszCode) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTextW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbComponentDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbComponentDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbComponentDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbComponentDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbComponentDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbComponentDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbComponentDescriptor, GetStreamContent) + HRESULT ( STDMETHODCALLTYPE *GetStreamContent )( + IDvbComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbComponentDescriptor, GetComponentType) + HRESULT ( STDMETHODCALLTYPE *GetComponentType )( + IDvbComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbComponentDescriptor, GetComponentTag) + HRESULT ( STDMETHODCALLTYPE *GetComponentTag )( + IDvbComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbComponentDescriptor, GetLanguageCode) + HRESULT ( STDMETHODCALLTYPE *GetLanguageCode )( + IDvbComponentDescriptor * This, + /* [annotation][out] */ + _Out_writes_(4) char *pszCode); + + DECLSPEC_XFGVIRT(IDvbComponentDescriptor, GetTextW) + HRESULT ( STDMETHODCALLTYPE *GetTextW )( + IDvbComponentDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText); + + END_INTERFACE + } IDvbComponentDescriptorVtbl; + + interface IDvbComponentDescriptor + { + CONST_VTBL struct IDvbComponentDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbComponentDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbComponentDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbComponentDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbComponentDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbComponentDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbComponentDescriptor_GetStreamContent(This,pbVal) \ + ( (This)->lpVtbl -> GetStreamContent(This,pbVal) ) + +#define IDvbComponentDescriptor_GetComponentType(This,pbVal) \ + ( (This)->lpVtbl -> GetComponentType(This,pbVal) ) + +#define IDvbComponentDescriptor_GetComponentTag(This,pbVal) \ + ( (This)->lpVtbl -> GetComponentTag(This,pbVal) ) + +#define IDvbComponentDescriptor_GetLanguageCode(This,pszCode) \ + ( (This)->lpVtbl -> GetLanguageCode(This,pszCode) ) + +#define IDvbComponentDescriptor_GetTextW(This,convMode,pbstrText) \ + ( (This)->lpVtbl -> GetTextW(This,convMode,pbstrText) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbComponentDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbContentDescriptor_INTERFACE_DEFINED__ +#define __IDvbContentDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbContentDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbContentDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("2E883881-A467-412A-9D63-6F2B6DA05BF0") + IDvbContentDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordContentNibbles( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbValLevel1, + /* [out] */ BYTE *pbValLevel2) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordUserNibbles( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal1, + /* [out] */ BYTE *pbVal2) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbContentDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbContentDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbContentDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbContentDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbContentDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbContentDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbContentDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbContentDescriptor, GetRecordContentNibbles) + HRESULT ( STDMETHODCALLTYPE *GetRecordContentNibbles )( + IDvbContentDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbValLevel1, + /* [out] */ BYTE *pbValLevel2); + + DECLSPEC_XFGVIRT(IDvbContentDescriptor, GetRecordUserNibbles) + HRESULT ( STDMETHODCALLTYPE *GetRecordUserNibbles )( + IDvbContentDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal1, + /* [out] */ BYTE *pbVal2); + + END_INTERFACE + } IDvbContentDescriptorVtbl; + + interface IDvbContentDescriptor + { + CONST_VTBL struct IDvbContentDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbContentDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbContentDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbContentDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbContentDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbContentDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbContentDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbContentDescriptor_GetRecordContentNibbles(This,bRecordIndex,pbValLevel1,pbValLevel2) \ + ( (This)->lpVtbl -> GetRecordContentNibbles(This,bRecordIndex,pbValLevel1,pbValLevel2) ) + +#define IDvbContentDescriptor_GetRecordUserNibbles(This,bRecordIndex,pbVal1,pbVal2) \ + ( (This)->lpVtbl -> GetRecordUserNibbles(This,bRecordIndex,pbVal1,pbVal2) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbContentDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IDvbParentalRatingDescriptor_INTERFACE_DEFINED__ +#define __IDvbParentalRatingDescriptor_INTERFACE_DEFINED__ + +/* interface IDvbParentalRatingDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IDvbParentalRatingDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3AD9DDE1-FB1B-4186-937F-22E6B5A72A10") + IDvbParentalRatingDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordRating( + /* [in] */ BYTE bRecordIndex, + /* [annotation][out] */ + _Out_writes_(4) char *pszCountryCode, + /* [out] */ BYTE *pbVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDvbParentalRatingDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDvbParentalRatingDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDvbParentalRatingDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDvbParentalRatingDescriptor * This); + + DECLSPEC_XFGVIRT(IDvbParentalRatingDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IDvbParentalRatingDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbParentalRatingDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IDvbParentalRatingDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbParentalRatingDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IDvbParentalRatingDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IDvbParentalRatingDescriptor, GetRecordRating) + HRESULT ( STDMETHODCALLTYPE *GetRecordRating )( + IDvbParentalRatingDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [annotation][out] */ + _Out_writes_(4) char *pszCountryCode, + /* [out] */ BYTE *pbVal); + + END_INTERFACE + } IDvbParentalRatingDescriptorVtbl; + + interface IDvbParentalRatingDescriptor + { + CONST_VTBL struct IDvbParentalRatingDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDvbParentalRatingDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDvbParentalRatingDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDvbParentalRatingDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDvbParentalRatingDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IDvbParentalRatingDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IDvbParentalRatingDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IDvbParentalRatingDescriptor_GetRecordRating(This,bRecordIndex,pszCountryCode,pbVal) \ + ( (This)->lpVtbl -> GetRecordRating(This,bRecordIndex,pszCountryCode,pbVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDvbParentalRatingDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbTerrestrialDeliverySystemDescriptor_INTERFACE_DEFINED__ +#define __IIsdbTerrestrialDeliverySystemDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbTerrestrialDeliverySystemDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbTerrestrialDeliverySystemDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("39FAE0A6-D151-44DD-A28A-765DE5991670") + IIsdbTerrestrialDeliverySystemDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAreaCode( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetGuardInterval( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTransmissionMode( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordFrequency( + /* [in] */ BYTE bRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbTerrestrialDeliverySystemDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbTerrestrialDeliverySystemDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbTerrestrialDeliverySystemDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbTerrestrialDeliverySystemDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbTerrestrialDeliverySystemDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTerrestrialDeliverySystemDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTerrestrialDeliverySystemDescriptor, GetAreaCode) + HRESULT ( STDMETHODCALLTYPE *GetAreaCode )( + IIsdbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbTerrestrialDeliverySystemDescriptor, GetGuardInterval) + HRESULT ( STDMETHODCALLTYPE *GetGuardInterval )( + IIsdbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTerrestrialDeliverySystemDescriptor, GetTransmissionMode) + HRESULT ( STDMETHODCALLTYPE *GetTransmissionMode )( + IIsdbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTerrestrialDeliverySystemDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IIsdbTerrestrialDeliverySystemDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTerrestrialDeliverySystemDescriptor, GetRecordFrequency) + HRESULT ( STDMETHODCALLTYPE *GetRecordFrequency )( + IIsdbTerrestrialDeliverySystemDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ DWORD *pdwVal); + + END_INTERFACE + } IIsdbTerrestrialDeliverySystemDescriptorVtbl; + + interface IIsdbTerrestrialDeliverySystemDescriptor + { + CONST_VTBL struct IIsdbTerrestrialDeliverySystemDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbTerrestrialDeliverySystemDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbTerrestrialDeliverySystemDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbTerrestrialDeliverySystemDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbTerrestrialDeliverySystemDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbTerrestrialDeliverySystemDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbTerrestrialDeliverySystemDescriptor_GetAreaCode(This,pwVal) \ + ( (This)->lpVtbl -> GetAreaCode(This,pwVal) ) + +#define IIsdbTerrestrialDeliverySystemDescriptor_GetGuardInterval(This,pbVal) \ + ( (This)->lpVtbl -> GetGuardInterval(This,pbVal) ) + +#define IIsdbTerrestrialDeliverySystemDescriptor_GetTransmissionMode(This,pbVal) \ + ( (This)->lpVtbl -> GetTransmissionMode(This,pbVal) ) + +#define IIsdbTerrestrialDeliverySystemDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IIsdbTerrestrialDeliverySystemDescriptor_GetRecordFrequency(This,bRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordFrequency(This,bRecordIndex,pdwVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbTerrestrialDeliverySystemDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbTSInformationDescriptor_INTERFACE_DEFINED__ +#define __IIsdbTSInformationDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbTSInformationDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbTSInformationDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D7AD183E-38F5-4210-B55F-EC8D601BBD47") + IIsdbTSInformationDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRemoteControlKeyId( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTSNameW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordTransmissionTypeInfo( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordNumberOfServices( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordServiceIdByIndex( + /* [in] */ BYTE bRecordIndex, + /* [in] */ BYTE bServiceIndex, + /* [out] */ WORD *pdwVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbTSInformationDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbTSInformationDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbTSInformationDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbTSInformationDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbTSInformationDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbTSInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTSInformationDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbTSInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTSInformationDescriptor, GetRemoteControlKeyId) + HRESULT ( STDMETHODCALLTYPE *GetRemoteControlKeyId )( + IIsdbTSInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTSInformationDescriptor, GetTSNameW) + HRESULT ( STDMETHODCALLTYPE *GetTSNameW )( + IIsdbTSInformationDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + DECLSPEC_XFGVIRT(IIsdbTSInformationDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IIsdbTSInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTSInformationDescriptor, GetRecordTransmissionTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetRecordTransmissionTypeInfo )( + IIsdbTSInformationDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTSInformationDescriptor, GetRecordNumberOfServices) + HRESULT ( STDMETHODCALLTYPE *GetRecordNumberOfServices )( + IIsdbTSInformationDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbTSInformationDescriptor, GetRecordServiceIdByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordServiceIdByIndex )( + IIsdbTSInformationDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [in] */ BYTE bServiceIndex, + /* [out] */ WORD *pdwVal); + + END_INTERFACE + } IIsdbTSInformationDescriptorVtbl; + + interface IIsdbTSInformationDescriptor + { + CONST_VTBL struct IIsdbTSInformationDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbTSInformationDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbTSInformationDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbTSInformationDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbTSInformationDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbTSInformationDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbTSInformationDescriptor_GetRemoteControlKeyId(This,pbVal) \ + ( (This)->lpVtbl -> GetRemoteControlKeyId(This,pbVal) ) + +#define IIsdbTSInformationDescriptor_GetTSNameW(This,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetTSNameW(This,convMode,pbstrName) ) + +#define IIsdbTSInformationDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IIsdbTSInformationDescriptor_GetRecordTransmissionTypeInfo(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordTransmissionTypeInfo(This,bRecordIndex,pbVal) ) + +#define IIsdbTSInformationDescriptor_GetRecordNumberOfServices(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordNumberOfServices(This,bRecordIndex,pbVal) ) + +#define IIsdbTSInformationDescriptor_GetRecordServiceIdByIndex(This,bRecordIndex,bServiceIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordServiceIdByIndex(This,bRecordIndex,bServiceIndex,pdwVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbTSInformationDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbDigitalCopyControlDescriptor_INTERFACE_DEFINED__ +#define __IIsdbDigitalCopyControlDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbDigitalCopyControlDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbDigitalCopyControlDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("1A28417E-266A-4BB8-A4BD-D782BCFB8161") + IIsdbDigitalCopyControlDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCopyControl( + /* [out] */ BYTE *pbDigitalRecordingControlData, + /* [out] */ BYTE *pbCopyControlType, + /* [out] */ BYTE *pbAPSControlData, + /* [out] */ BYTE *pbMaximumBitrate) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCopyControl( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbComponentTag, + /* [out] */ BYTE *pbDigitalRecordingControlData, + /* [out] */ BYTE *pbCopyControlType, + /* [out] */ BYTE *pbAPSControlData, + /* [out] */ BYTE *pbMaximumBitrate) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbDigitalCopyControlDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbDigitalCopyControlDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbDigitalCopyControlDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbDigitalCopyControlDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbDigitalCopyControlDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbDigitalCopyControlDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDigitalCopyControlDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbDigitalCopyControlDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDigitalCopyControlDescriptor, GetCopyControl) + HRESULT ( STDMETHODCALLTYPE *GetCopyControl )( + IIsdbDigitalCopyControlDescriptor * This, + /* [out] */ BYTE *pbDigitalRecordingControlData, + /* [out] */ BYTE *pbCopyControlType, + /* [out] */ BYTE *pbAPSControlData, + /* [out] */ BYTE *pbMaximumBitrate); + + DECLSPEC_XFGVIRT(IIsdbDigitalCopyControlDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IIsdbDigitalCopyControlDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDigitalCopyControlDescriptor, GetRecordCopyControl) + HRESULT ( STDMETHODCALLTYPE *GetRecordCopyControl )( + IIsdbDigitalCopyControlDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbComponentTag, + /* [out] */ BYTE *pbDigitalRecordingControlData, + /* [out] */ BYTE *pbCopyControlType, + /* [out] */ BYTE *pbAPSControlData, + /* [out] */ BYTE *pbMaximumBitrate); + + END_INTERFACE + } IIsdbDigitalCopyControlDescriptorVtbl; + + interface IIsdbDigitalCopyControlDescriptor + { + CONST_VTBL struct IIsdbDigitalCopyControlDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbDigitalCopyControlDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbDigitalCopyControlDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbDigitalCopyControlDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbDigitalCopyControlDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbDigitalCopyControlDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbDigitalCopyControlDescriptor_GetCopyControl(This,pbDigitalRecordingControlData,pbCopyControlType,pbAPSControlData,pbMaximumBitrate) \ + ( (This)->lpVtbl -> GetCopyControl(This,pbDigitalRecordingControlData,pbCopyControlType,pbAPSControlData,pbMaximumBitrate) ) + +#define IIsdbDigitalCopyControlDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IIsdbDigitalCopyControlDescriptor_GetRecordCopyControl(This,bRecordIndex,pbComponentTag,pbDigitalRecordingControlData,pbCopyControlType,pbAPSControlData,pbMaximumBitrate) \ + ( (This)->lpVtbl -> GetRecordCopyControl(This,bRecordIndex,pbComponentTag,pbDigitalRecordingControlData,pbCopyControlType,pbAPSControlData,pbMaximumBitrate) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbDigitalCopyControlDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbAudioComponentDescriptor_INTERFACE_DEFINED__ +#define __IIsdbAudioComponentDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbAudioComponentDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbAudioComponentDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("679D2002-2425-4BE4-A4C7-D6632A574F4D") + IIsdbAudioComponentDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStreamContent( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetComponentType( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetComponentTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStreamType( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSimulcastGroupTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetESMultiLingualFlag( + /* [out] */ BOOL *pfVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMainComponentFlag( + /* [out] */ BOOL *pfVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetQualityIndicator( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSamplingRate( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLanguageCode( + /* [annotation][out] */ + _Out_writes_(4) char *pszCode) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLanguageCode2( + /* [annotation][out] */ + _Out_writes_(4) char *pszCode) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTextW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbAudioComponentDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbAudioComponentDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbAudioComponentDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbAudioComponentDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetStreamContent) + HRESULT ( STDMETHODCALLTYPE *GetStreamContent )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetComponentType) + HRESULT ( STDMETHODCALLTYPE *GetComponentType )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetComponentTag) + HRESULT ( STDMETHODCALLTYPE *GetComponentTag )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetStreamType) + HRESULT ( STDMETHODCALLTYPE *GetStreamType )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetSimulcastGroupTag) + HRESULT ( STDMETHODCALLTYPE *GetSimulcastGroupTag )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetESMultiLingualFlag) + HRESULT ( STDMETHODCALLTYPE *GetESMultiLingualFlag )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetMainComponentFlag) + HRESULT ( STDMETHODCALLTYPE *GetMainComponentFlag )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BOOL *pfVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetQualityIndicator) + HRESULT ( STDMETHODCALLTYPE *GetQualityIndicator )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetSamplingRate) + HRESULT ( STDMETHODCALLTYPE *GetSamplingRate )( + IIsdbAudioComponentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetLanguageCode) + HRESULT ( STDMETHODCALLTYPE *GetLanguageCode )( + IIsdbAudioComponentDescriptor * This, + /* [annotation][out] */ + _Out_writes_(4) char *pszCode); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetLanguageCode2) + HRESULT ( STDMETHODCALLTYPE *GetLanguageCode2 )( + IIsdbAudioComponentDescriptor * This, + /* [annotation][out] */ + _Out_writes_(4) char *pszCode); + + DECLSPEC_XFGVIRT(IIsdbAudioComponentDescriptor, GetTextW) + HRESULT ( STDMETHODCALLTYPE *GetTextW )( + IIsdbAudioComponentDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText); + + END_INTERFACE + } IIsdbAudioComponentDescriptorVtbl; + + interface IIsdbAudioComponentDescriptor + { + CONST_VTBL struct IIsdbAudioComponentDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbAudioComponentDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbAudioComponentDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbAudioComponentDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbAudioComponentDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbAudioComponentDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbAudioComponentDescriptor_GetStreamContent(This,pbVal) \ + ( (This)->lpVtbl -> GetStreamContent(This,pbVal) ) + +#define IIsdbAudioComponentDescriptor_GetComponentType(This,pbVal) \ + ( (This)->lpVtbl -> GetComponentType(This,pbVal) ) + +#define IIsdbAudioComponentDescriptor_GetComponentTag(This,pbVal) \ + ( (This)->lpVtbl -> GetComponentTag(This,pbVal) ) + +#define IIsdbAudioComponentDescriptor_GetStreamType(This,pbVal) \ + ( (This)->lpVtbl -> GetStreamType(This,pbVal) ) + +#define IIsdbAudioComponentDescriptor_GetSimulcastGroupTag(This,pbVal) \ + ( (This)->lpVtbl -> GetSimulcastGroupTag(This,pbVal) ) + +#define IIsdbAudioComponentDescriptor_GetESMultiLingualFlag(This,pfVal) \ + ( (This)->lpVtbl -> GetESMultiLingualFlag(This,pfVal) ) + +#define IIsdbAudioComponentDescriptor_GetMainComponentFlag(This,pfVal) \ + ( (This)->lpVtbl -> GetMainComponentFlag(This,pfVal) ) + +#define IIsdbAudioComponentDescriptor_GetQualityIndicator(This,pbVal) \ + ( (This)->lpVtbl -> GetQualityIndicator(This,pbVal) ) + +#define IIsdbAudioComponentDescriptor_GetSamplingRate(This,pbVal) \ + ( (This)->lpVtbl -> GetSamplingRate(This,pbVal) ) + +#define IIsdbAudioComponentDescriptor_GetLanguageCode(This,pszCode) \ + ( (This)->lpVtbl -> GetLanguageCode(This,pszCode) ) + +#define IIsdbAudioComponentDescriptor_GetLanguageCode2(This,pszCode) \ + ( (This)->lpVtbl -> GetLanguageCode2(This,pszCode) ) + +#define IIsdbAudioComponentDescriptor_GetTextW(This,convMode,pbstrText) \ + ( (This)->lpVtbl -> GetTextW(This,convMode,pbstrText) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbAudioComponentDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbDataContentDescriptor_INTERFACE_DEFINED__ +#define __IIsdbDataContentDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbDataContentDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbDataContentDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A428100A-E646-4BD6-AA14-6087BDC08CD5") + IIsdbDataContentDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDataComponentId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEntryComponent( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSelectorLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSelectorBytes( + /* [in] */ BYTE bBufLength, + /* [out] */ BYTE *pbBuf) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordComponentRef( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLanguageCode( + /* [annotation][out] */ + _Out_writes_(4) char *pszCode) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTextW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbDataContentDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbDataContentDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbDataContentDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbDataContentDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbDataContentDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbDataContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDataContentDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbDataContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDataContentDescriptor, GetDataComponentId) + HRESULT ( STDMETHODCALLTYPE *GetDataComponentId )( + IIsdbDataContentDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbDataContentDescriptor, GetEntryComponent) + HRESULT ( STDMETHODCALLTYPE *GetEntryComponent )( + IIsdbDataContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDataContentDescriptor, GetSelectorLength) + HRESULT ( STDMETHODCALLTYPE *GetSelectorLength )( + IIsdbDataContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDataContentDescriptor, GetSelectorBytes) + HRESULT ( STDMETHODCALLTYPE *GetSelectorBytes )( + IIsdbDataContentDescriptor * This, + /* [in] */ BYTE bBufLength, + /* [out] */ BYTE *pbBuf); + + DECLSPEC_XFGVIRT(IIsdbDataContentDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IIsdbDataContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDataContentDescriptor, GetRecordComponentRef) + HRESULT ( STDMETHODCALLTYPE *GetRecordComponentRef )( + IIsdbDataContentDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDataContentDescriptor, GetLanguageCode) + HRESULT ( STDMETHODCALLTYPE *GetLanguageCode )( + IIsdbDataContentDescriptor * This, + /* [annotation][out] */ + _Out_writes_(4) char *pszCode); + + DECLSPEC_XFGVIRT(IIsdbDataContentDescriptor, GetTextW) + HRESULT ( STDMETHODCALLTYPE *GetTextW )( + IIsdbDataContentDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText); + + END_INTERFACE + } IIsdbDataContentDescriptorVtbl; + + interface IIsdbDataContentDescriptor + { + CONST_VTBL struct IIsdbDataContentDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbDataContentDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbDataContentDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbDataContentDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbDataContentDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbDataContentDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbDataContentDescriptor_GetDataComponentId(This,pwVal) \ + ( (This)->lpVtbl -> GetDataComponentId(This,pwVal) ) + +#define IIsdbDataContentDescriptor_GetEntryComponent(This,pbVal) \ + ( (This)->lpVtbl -> GetEntryComponent(This,pbVal) ) + +#define IIsdbDataContentDescriptor_GetSelectorLength(This,pbVal) \ + ( (This)->lpVtbl -> GetSelectorLength(This,pbVal) ) + +#define IIsdbDataContentDescriptor_GetSelectorBytes(This,bBufLength,pbBuf) \ + ( (This)->lpVtbl -> GetSelectorBytes(This,bBufLength,pbBuf) ) + +#define IIsdbDataContentDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IIsdbDataContentDescriptor_GetRecordComponentRef(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordComponentRef(This,bRecordIndex,pbVal) ) + +#define IIsdbDataContentDescriptor_GetLanguageCode(This,pszCode) \ + ( (This)->lpVtbl -> GetLanguageCode(This,pszCode) ) + +#define IIsdbDataContentDescriptor_GetTextW(This,convMode,pbstrText) \ + ( (This)->lpVtbl -> GetTextW(This,convMode,pbstrText) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbDataContentDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbCAContractInformationDescriptor_INTERFACE_DEFINED__ +#define __IIsdbCAContractInformationDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbCAContractInformationDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbCAContractInformationDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("08E18B25-A28F-4E92-821E-4FCED5CC2291") + IIsdbCAContractInformationDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCASystemId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCAUnitId( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordComponentTag( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContractVerificationInfoLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetContractVerificationInfo( + /* [in] */ BYTE bBufLength, + /* [out] */ BYTE *pbBuf) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFeeNameW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbCAContractInformationDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbCAContractInformationDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbCAContractInformationDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbCAContractInformationDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbCAContractInformationDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbCAContractInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCAContractInformationDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbCAContractInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCAContractInformationDescriptor, GetCASystemId) + HRESULT ( STDMETHODCALLTYPE *GetCASystemId )( + IIsdbCAContractInformationDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbCAContractInformationDescriptor, GetCAUnitId) + HRESULT ( STDMETHODCALLTYPE *GetCAUnitId )( + IIsdbCAContractInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCAContractInformationDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IIsdbCAContractInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCAContractInformationDescriptor, GetRecordComponentTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordComponentTag )( + IIsdbCAContractInformationDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCAContractInformationDescriptor, GetContractVerificationInfoLength) + HRESULT ( STDMETHODCALLTYPE *GetContractVerificationInfoLength )( + IIsdbCAContractInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCAContractInformationDescriptor, GetContractVerificationInfo) + HRESULT ( STDMETHODCALLTYPE *GetContractVerificationInfo )( + IIsdbCAContractInformationDescriptor * This, + /* [in] */ BYTE bBufLength, + /* [out] */ BYTE *pbBuf); + + DECLSPEC_XFGVIRT(IIsdbCAContractInformationDescriptor, GetFeeNameW) + HRESULT ( STDMETHODCALLTYPE *GetFeeNameW )( + IIsdbCAContractInformationDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + END_INTERFACE + } IIsdbCAContractInformationDescriptorVtbl; + + interface IIsdbCAContractInformationDescriptor + { + CONST_VTBL struct IIsdbCAContractInformationDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbCAContractInformationDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbCAContractInformationDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbCAContractInformationDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbCAContractInformationDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbCAContractInformationDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbCAContractInformationDescriptor_GetCASystemId(This,pwVal) \ + ( (This)->lpVtbl -> GetCASystemId(This,pwVal) ) + +#define IIsdbCAContractInformationDescriptor_GetCAUnitId(This,pbVal) \ + ( (This)->lpVtbl -> GetCAUnitId(This,pbVal) ) + +#define IIsdbCAContractInformationDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IIsdbCAContractInformationDescriptor_GetRecordComponentTag(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordComponentTag(This,bRecordIndex,pbVal) ) + +#define IIsdbCAContractInformationDescriptor_GetContractVerificationInfoLength(This,pbVal) \ + ( (This)->lpVtbl -> GetContractVerificationInfoLength(This,pbVal) ) + +#define IIsdbCAContractInformationDescriptor_GetContractVerificationInfo(This,bBufLength,pbBuf) \ + ( (This)->lpVtbl -> GetContractVerificationInfo(This,bBufLength,pbBuf) ) + +#define IIsdbCAContractInformationDescriptor_GetFeeNameW(This,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetFeeNameW(This,convMode,pbstrName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbCAContractInformationDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbEventGroupDescriptor_INTERFACE_DEFINED__ +#define __IIsdbEventGroupDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbEventGroupDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbEventGroupDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("94B06780-2E2A-44DC-A966-CC56FDABC6C2") + IIsdbEventGroupDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetGroupType( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordEvent( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwServiceId, + /* [out] */ WORD *pwEventId) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRefRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRefRecordEvent( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwOriginalNetworkId, + /* [out] */ WORD *pwTransportStreamId, + /* [out] */ WORD *pwServiceId, + /* [out] */ WORD *pwEventId) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbEventGroupDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbEventGroupDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbEventGroupDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbEventGroupDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbEventGroupDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbEventGroupDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbEventGroupDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbEventGroupDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbEventGroupDescriptor, GetGroupType) + HRESULT ( STDMETHODCALLTYPE *GetGroupType )( + IIsdbEventGroupDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbEventGroupDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IIsdbEventGroupDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbEventGroupDescriptor, GetRecordEvent) + HRESULT ( STDMETHODCALLTYPE *GetRecordEvent )( + IIsdbEventGroupDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwServiceId, + /* [out] */ WORD *pwEventId); + + DECLSPEC_XFGVIRT(IIsdbEventGroupDescriptor, GetCountOfRefRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRefRecords )( + IIsdbEventGroupDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbEventGroupDescriptor, GetRefRecordEvent) + HRESULT ( STDMETHODCALLTYPE *GetRefRecordEvent )( + IIsdbEventGroupDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwOriginalNetworkId, + /* [out] */ WORD *pwTransportStreamId, + /* [out] */ WORD *pwServiceId, + /* [out] */ WORD *pwEventId); + + END_INTERFACE + } IIsdbEventGroupDescriptorVtbl; + + interface IIsdbEventGroupDescriptor + { + CONST_VTBL struct IIsdbEventGroupDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbEventGroupDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbEventGroupDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbEventGroupDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbEventGroupDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbEventGroupDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbEventGroupDescriptor_GetGroupType(This,pbVal) \ + ( (This)->lpVtbl -> GetGroupType(This,pbVal) ) + +#define IIsdbEventGroupDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IIsdbEventGroupDescriptor_GetRecordEvent(This,bRecordIndex,pwServiceId,pwEventId) \ + ( (This)->lpVtbl -> GetRecordEvent(This,bRecordIndex,pwServiceId,pwEventId) ) + +#define IIsdbEventGroupDescriptor_GetCountOfRefRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRefRecords(This,pbVal) ) + +#define IIsdbEventGroupDescriptor_GetRefRecordEvent(This,bRecordIndex,pwOriginalNetworkId,pwTransportStreamId,pwServiceId,pwEventId) \ + ( (This)->lpVtbl -> GetRefRecordEvent(This,bRecordIndex,pwOriginalNetworkId,pwTransportStreamId,pwServiceId,pwEventId) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbEventGroupDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbComponentGroupDescriptor_INTERFACE_DEFINED__ +#define __IIsdbComponentGroupDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbComponentGroupDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbComponentGroupDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A494F17F-C592-47D8-8943-64C9A34BE7B9") + IIsdbComponentGroupDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetComponentGroupType( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordGroupId( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordNumberOfCAUnit( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCAUnitCAUnitId( + /* [in] */ BYTE bRecordIndex, + /* [in] */ BYTE bCAUnitIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCAUnitNumberOfComponents( + /* [in] */ BYTE bRecordIndex, + /* [in] */ BYTE bCAUnitIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCAUnitComponentTag( + /* [in] */ BYTE bRecordIndex, + /* [in] */ BYTE bCAUnitIndex, + /* [in] */ BYTE bComponentIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordTotalBitRate( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordTextW( + /* [in] */ BYTE bRecordIndex, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbComponentGroupDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbComponentGroupDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbComponentGroupDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbComponentGroupDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbComponentGroupDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbComponentGroupDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetComponentGroupType) + HRESULT ( STDMETHODCALLTYPE *GetComponentGroupType )( + IIsdbComponentGroupDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IIsdbComponentGroupDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetRecordGroupId) + HRESULT ( STDMETHODCALLTYPE *GetRecordGroupId )( + IIsdbComponentGroupDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetRecordNumberOfCAUnit) + HRESULT ( STDMETHODCALLTYPE *GetRecordNumberOfCAUnit )( + IIsdbComponentGroupDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetRecordCAUnitCAUnitId) + HRESULT ( STDMETHODCALLTYPE *GetRecordCAUnitCAUnitId )( + IIsdbComponentGroupDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [in] */ BYTE bCAUnitIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetRecordCAUnitNumberOfComponents) + HRESULT ( STDMETHODCALLTYPE *GetRecordCAUnitNumberOfComponents )( + IIsdbComponentGroupDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [in] */ BYTE bCAUnitIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetRecordCAUnitComponentTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordCAUnitComponentTag )( + IIsdbComponentGroupDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [in] */ BYTE bCAUnitIndex, + /* [in] */ BYTE bComponentIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetRecordTotalBitRate) + HRESULT ( STDMETHODCALLTYPE *GetRecordTotalBitRate )( + IIsdbComponentGroupDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbComponentGroupDescriptor, GetRecordTextW) + HRESULT ( STDMETHODCALLTYPE *GetRecordTextW )( + IIsdbComponentGroupDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrText); + + END_INTERFACE + } IIsdbComponentGroupDescriptorVtbl; + + interface IIsdbComponentGroupDescriptor + { + CONST_VTBL struct IIsdbComponentGroupDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbComponentGroupDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbComponentGroupDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbComponentGroupDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbComponentGroupDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbComponentGroupDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbComponentGroupDescriptor_GetComponentGroupType(This,pbVal) \ + ( (This)->lpVtbl -> GetComponentGroupType(This,pbVal) ) + +#define IIsdbComponentGroupDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IIsdbComponentGroupDescriptor_GetRecordGroupId(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordGroupId(This,bRecordIndex,pbVal) ) + +#define IIsdbComponentGroupDescriptor_GetRecordNumberOfCAUnit(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordNumberOfCAUnit(This,bRecordIndex,pbVal) ) + +#define IIsdbComponentGroupDescriptor_GetRecordCAUnitCAUnitId(This,bRecordIndex,bCAUnitIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordCAUnitCAUnitId(This,bRecordIndex,bCAUnitIndex,pbVal) ) + +#define IIsdbComponentGroupDescriptor_GetRecordCAUnitNumberOfComponents(This,bRecordIndex,bCAUnitIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordCAUnitNumberOfComponents(This,bRecordIndex,bCAUnitIndex,pbVal) ) + +#define IIsdbComponentGroupDescriptor_GetRecordCAUnitComponentTag(This,bRecordIndex,bCAUnitIndex,bComponentIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordCAUnitComponentTag(This,bRecordIndex,bCAUnitIndex,bComponentIndex,pbVal) ) + +#define IIsdbComponentGroupDescriptor_GetRecordTotalBitRate(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordTotalBitRate(This,bRecordIndex,pbVal) ) + +#define IIsdbComponentGroupDescriptor_GetRecordTextW(This,bRecordIndex,convMode,pbstrText) \ + ( (This)->lpVtbl -> GetRecordTextW(This,bRecordIndex,convMode,pbstrText) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbComponentGroupDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbSeriesDescriptor_INTERFACE_DEFINED__ +#define __IIsdbSeriesDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbSeriesDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbSeriesDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("07EF6370-1660-4F26-87FC-614ADAB24B11") + IIsdbSeriesDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSeriesId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRepeatLabel( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProgramPattern( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetExpireDate( + /* [out] */ BOOL *pfValid, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEpisodeNumber( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLastEpisodeNumber( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSeriesNameW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbSeriesDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbSeriesDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbSeriesDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbSeriesDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbSeriesDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbSeriesDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbSeriesDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbSeriesDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbSeriesDescriptor, GetSeriesId) + HRESULT ( STDMETHODCALLTYPE *GetSeriesId )( + IIsdbSeriesDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbSeriesDescriptor, GetRepeatLabel) + HRESULT ( STDMETHODCALLTYPE *GetRepeatLabel )( + IIsdbSeriesDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbSeriesDescriptor, GetProgramPattern) + HRESULT ( STDMETHODCALLTYPE *GetProgramPattern )( + IIsdbSeriesDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbSeriesDescriptor, GetExpireDate) + HRESULT ( STDMETHODCALLTYPE *GetExpireDate )( + IIsdbSeriesDescriptor * This, + /* [out] */ BOOL *pfValid, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal); + + DECLSPEC_XFGVIRT(IIsdbSeriesDescriptor, GetEpisodeNumber) + HRESULT ( STDMETHODCALLTYPE *GetEpisodeNumber )( + IIsdbSeriesDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbSeriesDescriptor, GetLastEpisodeNumber) + HRESULT ( STDMETHODCALLTYPE *GetLastEpisodeNumber )( + IIsdbSeriesDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbSeriesDescriptor, GetSeriesNameW) + HRESULT ( STDMETHODCALLTYPE *GetSeriesNameW )( + IIsdbSeriesDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + END_INTERFACE + } IIsdbSeriesDescriptorVtbl; + + interface IIsdbSeriesDescriptor + { + CONST_VTBL struct IIsdbSeriesDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbSeriesDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbSeriesDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbSeriesDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbSeriesDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbSeriesDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbSeriesDescriptor_GetSeriesId(This,pwVal) \ + ( (This)->lpVtbl -> GetSeriesId(This,pwVal) ) + +#define IIsdbSeriesDescriptor_GetRepeatLabel(This,pbVal) \ + ( (This)->lpVtbl -> GetRepeatLabel(This,pbVal) ) + +#define IIsdbSeriesDescriptor_GetProgramPattern(This,pbVal) \ + ( (This)->lpVtbl -> GetProgramPattern(This,pbVal) ) + +#define IIsdbSeriesDescriptor_GetExpireDate(This,pfValid,pmdtVal) \ + ( (This)->lpVtbl -> GetExpireDate(This,pfValid,pmdtVal) ) + +#define IIsdbSeriesDescriptor_GetEpisodeNumber(This,pwVal) \ + ( (This)->lpVtbl -> GetEpisodeNumber(This,pwVal) ) + +#define IIsdbSeriesDescriptor_GetLastEpisodeNumber(This,pwVal) \ + ( (This)->lpVtbl -> GetLastEpisodeNumber(This,pwVal) ) + +#define IIsdbSeriesDescriptor_GetSeriesNameW(This,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetSeriesNameW(This,convMode,pbstrName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbSeriesDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbDownloadContentDescriptor_INTERFACE_DEFINED__ +#define __IIsdbDownloadContentDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbDownloadContentDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbDownloadContentDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5298661E-CB88-4F5F-A1DE-5F440C185B92") + IIsdbDownloadContentDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFlags( + /* [out] */ BOOL *pfReboot, + /* [out] */ BOOL *pfAddOn, + /* [out] */ BOOL *pfCompatibility, + /* [out] */ BOOL *pfModuleInfo, + /* [out] */ BOOL *pfTextInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetComponentSize( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDownloadId( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTimeOutValueDII( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLeakRate( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetComponentTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCompatiblityDescriptorLength( + /* [out] */ WORD *pwLength) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCompatiblityDescriptor( + /* [out] */ BYTE **ppbData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordModuleId( + /* [in] */ WORD wRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordModuleSize( + /* [in] */ WORD wRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordModuleInfoLength( + /* [in] */ WORD wRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordModuleInfo( + /* [in] */ WORD wRecordIndex, + /* [out] */ BYTE **ppbData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTextLanguageCode( + /* [annotation][out] */ + _Out_writes_(4) char *szCode) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTextW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbDownloadContentDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbDownloadContentDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbDownloadContentDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbDownloadContentDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetFlags) + HRESULT ( STDMETHODCALLTYPE *GetFlags )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ BOOL *pfReboot, + /* [out] */ BOOL *pfAddOn, + /* [out] */ BOOL *pfCompatibility, + /* [out] */ BOOL *pfModuleInfo, + /* [out] */ BOOL *pfTextInfo); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetComponentSize) + HRESULT ( STDMETHODCALLTYPE *GetComponentSize )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetDownloadId) + HRESULT ( STDMETHODCALLTYPE *GetDownloadId )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetTimeOutValueDII) + HRESULT ( STDMETHODCALLTYPE *GetTimeOutValueDII )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetLeakRate) + HRESULT ( STDMETHODCALLTYPE *GetLeakRate )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetComponentTag) + HRESULT ( STDMETHODCALLTYPE *GetComponentTag )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetCompatiblityDescriptorLength) + HRESULT ( STDMETHODCALLTYPE *GetCompatiblityDescriptorLength )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ WORD *pwLength); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetCompatiblityDescriptor) + HRESULT ( STDMETHODCALLTYPE *GetCompatiblityDescriptor )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ BYTE **ppbData); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IIsdbDownloadContentDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetRecordModuleId) + HRESULT ( STDMETHODCALLTYPE *GetRecordModuleId )( + IIsdbDownloadContentDescriptor * This, + /* [in] */ WORD wRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetRecordModuleSize) + HRESULT ( STDMETHODCALLTYPE *GetRecordModuleSize )( + IIsdbDownloadContentDescriptor * This, + /* [in] */ WORD wRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetRecordModuleInfoLength) + HRESULT ( STDMETHODCALLTYPE *GetRecordModuleInfoLength )( + IIsdbDownloadContentDescriptor * This, + /* [in] */ WORD wRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetRecordModuleInfo) + HRESULT ( STDMETHODCALLTYPE *GetRecordModuleInfo )( + IIsdbDownloadContentDescriptor * This, + /* [in] */ WORD wRecordIndex, + /* [out] */ BYTE **ppbData); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetTextLanguageCode) + HRESULT ( STDMETHODCALLTYPE *GetTextLanguageCode )( + IIsdbDownloadContentDescriptor * This, + /* [annotation][out] */ + _Out_writes_(4) char *szCode); + + DECLSPEC_XFGVIRT(IIsdbDownloadContentDescriptor, GetTextW) + HRESULT ( STDMETHODCALLTYPE *GetTextW )( + IIsdbDownloadContentDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrName); + + END_INTERFACE + } IIsdbDownloadContentDescriptorVtbl; + + interface IIsdbDownloadContentDescriptor + { + CONST_VTBL struct IIsdbDownloadContentDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbDownloadContentDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbDownloadContentDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbDownloadContentDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbDownloadContentDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbDownloadContentDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbDownloadContentDescriptor_GetFlags(This,pfReboot,pfAddOn,pfCompatibility,pfModuleInfo,pfTextInfo) \ + ( (This)->lpVtbl -> GetFlags(This,pfReboot,pfAddOn,pfCompatibility,pfModuleInfo,pfTextInfo) ) + +#define IIsdbDownloadContentDescriptor_GetComponentSize(This,pdwVal) \ + ( (This)->lpVtbl -> GetComponentSize(This,pdwVal) ) + +#define IIsdbDownloadContentDescriptor_GetDownloadId(This,pdwVal) \ + ( (This)->lpVtbl -> GetDownloadId(This,pdwVal) ) + +#define IIsdbDownloadContentDescriptor_GetTimeOutValueDII(This,pdwVal) \ + ( (This)->lpVtbl -> GetTimeOutValueDII(This,pdwVal) ) + +#define IIsdbDownloadContentDescriptor_GetLeakRate(This,pdwVal) \ + ( (This)->lpVtbl -> GetLeakRate(This,pdwVal) ) + +#define IIsdbDownloadContentDescriptor_GetComponentTag(This,pbVal) \ + ( (This)->lpVtbl -> GetComponentTag(This,pbVal) ) + +#define IIsdbDownloadContentDescriptor_GetCompatiblityDescriptorLength(This,pwLength) \ + ( (This)->lpVtbl -> GetCompatiblityDescriptorLength(This,pwLength) ) + +#define IIsdbDownloadContentDescriptor_GetCompatiblityDescriptor(This,ppbData) \ + ( (This)->lpVtbl -> GetCompatiblityDescriptor(This,ppbData) ) + +#define IIsdbDownloadContentDescriptor_GetCountOfRecords(This,pwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pwVal) ) + +#define IIsdbDownloadContentDescriptor_GetRecordModuleId(This,wRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetRecordModuleId(This,wRecordIndex,pwVal) ) + +#define IIsdbDownloadContentDescriptor_GetRecordModuleSize(This,wRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordModuleSize(This,wRecordIndex,pdwVal) ) + +#define IIsdbDownloadContentDescriptor_GetRecordModuleInfoLength(This,wRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetRecordModuleInfoLength(This,wRecordIndex,pbVal) ) + +#define IIsdbDownloadContentDescriptor_GetRecordModuleInfo(This,wRecordIndex,ppbData) \ + ( (This)->lpVtbl -> GetRecordModuleInfo(This,wRecordIndex,ppbData) ) + +#define IIsdbDownloadContentDescriptor_GetTextLanguageCode(This,szCode) \ + ( (This)->lpVtbl -> GetTextLanguageCode(This,szCode) ) + +#define IIsdbDownloadContentDescriptor_GetTextW(This,convMode,pbstrName) \ + ( (This)->lpVtbl -> GetTextW(This,convMode,pbstrName) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbDownloadContentDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbLogoTransmissionDescriptor_INTERFACE_DEFINED__ +#define __IIsdbLogoTransmissionDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbLogoTransmissionDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbLogoTransmissionDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("E0103F49-4AE1-4F07-9098-756DB1FA88CD") + IIsdbLogoTransmissionDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLogoTransmissionType( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLogoId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLogoVersion( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDownloadDataId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLogoCharW( + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrChar) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbLogoTransmissionDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbLogoTransmissionDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbLogoTransmissionDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbLogoTransmissionDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbLogoTransmissionDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbLogoTransmissionDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbLogoTransmissionDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbLogoTransmissionDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbLogoTransmissionDescriptor, GetLogoTransmissionType) + HRESULT ( STDMETHODCALLTYPE *GetLogoTransmissionType )( + IIsdbLogoTransmissionDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbLogoTransmissionDescriptor, GetLogoId) + HRESULT ( STDMETHODCALLTYPE *GetLogoId )( + IIsdbLogoTransmissionDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbLogoTransmissionDescriptor, GetLogoVersion) + HRESULT ( STDMETHODCALLTYPE *GetLogoVersion )( + IIsdbLogoTransmissionDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbLogoTransmissionDescriptor, GetDownloadDataId) + HRESULT ( STDMETHODCALLTYPE *GetDownloadDataId )( + IIsdbLogoTransmissionDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbLogoTransmissionDescriptor, GetLogoCharW) + HRESULT ( STDMETHODCALLTYPE *GetLogoCharW )( + IIsdbLogoTransmissionDescriptor * This, + /* [in] */ DVB_STRCONV_MODE convMode, + /* [out] */ BSTR *pbstrChar); + + END_INTERFACE + } IIsdbLogoTransmissionDescriptorVtbl; + + interface IIsdbLogoTransmissionDescriptor + { + CONST_VTBL struct IIsdbLogoTransmissionDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbLogoTransmissionDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbLogoTransmissionDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbLogoTransmissionDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbLogoTransmissionDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbLogoTransmissionDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbLogoTransmissionDescriptor_GetLogoTransmissionType(This,pbVal) \ + ( (This)->lpVtbl -> GetLogoTransmissionType(This,pbVal) ) + +#define IIsdbLogoTransmissionDescriptor_GetLogoId(This,pwVal) \ + ( (This)->lpVtbl -> GetLogoId(This,pwVal) ) + +#define IIsdbLogoTransmissionDescriptor_GetLogoVersion(This,pwVal) \ + ( (This)->lpVtbl -> GetLogoVersion(This,pwVal) ) + +#define IIsdbLogoTransmissionDescriptor_GetDownloadDataId(This,pwVal) \ + ( (This)->lpVtbl -> GetDownloadDataId(This,pwVal) ) + +#define IIsdbLogoTransmissionDescriptor_GetLogoCharW(This,convMode,pbstrChar) \ + ( (This)->lpVtbl -> GetLogoCharW(This,convMode,pbstrChar) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbLogoTransmissionDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbSIParameterDescriptor_INTERFACE_DEFINED__ +#define __IIsdbSIParameterDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbSIParameterDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbSIParameterDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F837DC36-867C-426a-9111-F62093951A45") + IIsdbSIParameterDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetParameterVersion( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUpdateTime( + /* [out] */ MPEG_DATE *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordNumberOfTable( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableId( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptionLength( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableDescriptionBytes( + /* [in] */ BYTE bRecordIndex, + /* [out][in] */ BYTE *pbBufferLength, + /* [out] */ BYTE *pbBuffer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbSIParameterDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbSIParameterDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbSIParameterDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbSIParameterDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbSIParameterDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbSIParameterDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbSIParameterDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbSIParameterDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbSIParameterDescriptor, GetParameterVersion) + HRESULT ( STDMETHODCALLTYPE *GetParameterVersion )( + IIsdbSIParameterDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbSIParameterDescriptor, GetUpdateTime) + HRESULT ( STDMETHODCALLTYPE *GetUpdateTime )( + IIsdbSIParameterDescriptor * This, + /* [out] */ MPEG_DATE *pVal); + + DECLSPEC_XFGVIRT(IIsdbSIParameterDescriptor, GetRecordNumberOfTable) + HRESULT ( STDMETHODCALLTYPE *GetRecordNumberOfTable )( + IIsdbSIParameterDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbSIParameterDescriptor, GetTableId) + HRESULT ( STDMETHODCALLTYPE *GetTableId )( + IIsdbSIParameterDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbSIParameterDescriptor, GetTableDescriptionLength) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptionLength )( + IIsdbSIParameterDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbSIParameterDescriptor, GetTableDescriptionBytes) + HRESULT ( STDMETHODCALLTYPE *GetTableDescriptionBytes )( + IIsdbSIParameterDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out][in] */ BYTE *pbBufferLength, + /* [out] */ BYTE *pbBuffer); + + END_INTERFACE + } IIsdbSIParameterDescriptorVtbl; + + interface IIsdbSIParameterDescriptor + { + CONST_VTBL struct IIsdbSIParameterDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbSIParameterDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbSIParameterDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbSIParameterDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbSIParameterDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbSIParameterDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbSIParameterDescriptor_GetParameterVersion(This,pbVal) \ + ( (This)->lpVtbl -> GetParameterVersion(This,pbVal) ) + +#define IIsdbSIParameterDescriptor_GetUpdateTime(This,pVal) \ + ( (This)->lpVtbl -> GetUpdateTime(This,pVal) ) + +#define IIsdbSIParameterDescriptor_GetRecordNumberOfTable(This,pbVal) \ + ( (This)->lpVtbl -> GetRecordNumberOfTable(This,pbVal) ) + +#define IIsdbSIParameterDescriptor_GetTableId(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetTableId(This,bRecordIndex,pbVal) ) + +#define IIsdbSIParameterDescriptor_GetTableDescriptionLength(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetTableDescriptionLength(This,bRecordIndex,pbVal) ) + +#define IIsdbSIParameterDescriptor_GetTableDescriptionBytes(This,bRecordIndex,pbBufferLength,pbBuffer) \ + ( (This)->lpVtbl -> GetTableDescriptionBytes(This,bRecordIndex,pbBufferLength,pbBuffer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbSIParameterDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbEmergencyInformationDescriptor_INTERFACE_DEFINED__ +#define __IIsdbEmergencyInformationDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbEmergencyInformationDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbEmergencyInformationDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("BA6FA681-B973-4da1-9207-AC3E7F0341EB") + IIsdbEmergencyInformationDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceId( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStartEndFlag( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSignalLevel( + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAreaCode( + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD **ppwVal, + /* [out] */ BYTE *pbNumAreaCodes) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbEmergencyInformationDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbEmergencyInformationDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbEmergencyInformationDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbEmergencyInformationDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbEmergencyInformationDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbEmergencyInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbEmergencyInformationDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbEmergencyInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbEmergencyInformationDescriptor, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IIsdbEmergencyInformationDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbEmergencyInformationDescriptor, GetServiceId) + HRESULT ( STDMETHODCALLTYPE *GetServiceId )( + IIsdbEmergencyInformationDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbEmergencyInformationDescriptor, GetStartEndFlag) + HRESULT ( STDMETHODCALLTYPE *GetStartEndFlag )( + IIsdbEmergencyInformationDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pVal); + + DECLSPEC_XFGVIRT(IIsdbEmergencyInformationDescriptor, GetSignalLevel) + HRESULT ( STDMETHODCALLTYPE *GetSignalLevel )( + IIsdbEmergencyInformationDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbEmergencyInformationDescriptor, GetAreaCode) + HRESULT ( STDMETHODCALLTYPE *GetAreaCode )( + IIsdbEmergencyInformationDescriptor * This, + /* [in] */ BYTE bRecordIndex, + /* [out] */ WORD **ppwVal, + /* [out] */ BYTE *pbNumAreaCodes); + + END_INTERFACE + } IIsdbEmergencyInformationDescriptorVtbl; + + interface IIsdbEmergencyInformationDescriptor + { + CONST_VTBL struct IIsdbEmergencyInformationDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbEmergencyInformationDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbEmergencyInformationDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbEmergencyInformationDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbEmergencyInformationDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbEmergencyInformationDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbEmergencyInformationDescriptor_GetCountOfRecords(This,pbVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pbVal) ) + +#define IIsdbEmergencyInformationDescriptor_GetServiceId(This,bRecordIndex,pwVal) \ + ( (This)->lpVtbl -> GetServiceId(This,bRecordIndex,pwVal) ) + +#define IIsdbEmergencyInformationDescriptor_GetStartEndFlag(This,bRecordIndex,pVal) \ + ( (This)->lpVtbl -> GetStartEndFlag(This,bRecordIndex,pVal) ) + +#define IIsdbEmergencyInformationDescriptor_GetSignalLevel(This,bRecordIndex,pbVal) \ + ( (This)->lpVtbl -> GetSignalLevel(This,bRecordIndex,pbVal) ) + +#define IIsdbEmergencyInformationDescriptor_GetAreaCode(This,bRecordIndex,ppwVal,pbNumAreaCodes) \ + ( (This)->lpVtbl -> GetAreaCode(This,bRecordIndex,ppwVal,pbNumAreaCodes) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbEmergencyInformationDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbCADescriptor_INTERFACE_DEFINED__ +#define __IIsdbCADescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbCADescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbCADescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("0570AA47-52BC-42ae-8CA5-969F41E81AEA") + IIsdbCADescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCASystemId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetReservedBits( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCAPID( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPrivateDataBytes( + /* [out][in] */ BYTE *pbBufferLength, + /* [out] */ BYTE *pbBuffer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbCADescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbCADescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbCADescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbCADescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbCADescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbCADescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCADescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbCADescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCADescriptor, GetCASystemId) + HRESULT ( STDMETHODCALLTYPE *GetCASystemId )( + IIsdbCADescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbCADescriptor, GetReservedBits) + HRESULT ( STDMETHODCALLTYPE *GetReservedBits )( + IIsdbCADescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCADescriptor, GetCAPID) + HRESULT ( STDMETHODCALLTYPE *GetCAPID )( + IIsdbCADescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbCADescriptor, GetPrivateDataBytes) + HRESULT ( STDMETHODCALLTYPE *GetPrivateDataBytes )( + IIsdbCADescriptor * This, + /* [out][in] */ BYTE *pbBufferLength, + /* [out] */ BYTE *pbBuffer); + + END_INTERFACE + } IIsdbCADescriptorVtbl; + + interface IIsdbCADescriptor + { + CONST_VTBL struct IIsdbCADescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbCADescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbCADescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbCADescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbCADescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbCADescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbCADescriptor_GetCASystemId(This,pwVal) \ + ( (This)->lpVtbl -> GetCASystemId(This,pwVal) ) + +#define IIsdbCADescriptor_GetReservedBits(This,pbVal) \ + ( (This)->lpVtbl -> GetReservedBits(This,pbVal) ) + +#define IIsdbCADescriptor_GetCAPID(This,pwVal) \ + ( (This)->lpVtbl -> GetCAPID(This,pwVal) ) + +#define IIsdbCADescriptor_GetPrivateDataBytes(This,pbBufferLength,pbBuffer) \ + ( (This)->lpVtbl -> GetPrivateDataBytes(This,pbBufferLength,pbBuffer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbCADescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbCAServiceDescriptor_INTERFACE_DEFINED__ +#define __IIsdbCAServiceDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbCAServiceDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbCAServiceDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("39CBEB97-FF0B-42a7-9AB9-7B9CFE70A77A") + IIsdbCAServiceDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCASystemId( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCABroadcasterGroupId( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMessageControl( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceIds( + /* [out][in] */ BYTE *pbNumServiceIds, + /* [out] */ WORD *pwServiceIds) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbCAServiceDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbCAServiceDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbCAServiceDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbCAServiceDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbCAServiceDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbCAServiceDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCAServiceDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbCAServiceDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCAServiceDescriptor, GetCASystemId) + HRESULT ( STDMETHODCALLTYPE *GetCASystemId )( + IIsdbCAServiceDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IIsdbCAServiceDescriptor, GetCABroadcasterGroupId) + HRESULT ( STDMETHODCALLTYPE *GetCABroadcasterGroupId )( + IIsdbCAServiceDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCAServiceDescriptor, GetMessageControl) + HRESULT ( STDMETHODCALLTYPE *GetMessageControl )( + IIsdbCAServiceDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbCAServiceDescriptor, GetServiceIds) + HRESULT ( STDMETHODCALLTYPE *GetServiceIds )( + IIsdbCAServiceDescriptor * This, + /* [out][in] */ BYTE *pbNumServiceIds, + /* [out] */ WORD *pwServiceIds); + + END_INTERFACE + } IIsdbCAServiceDescriptorVtbl; + + interface IIsdbCAServiceDescriptor + { + CONST_VTBL struct IIsdbCAServiceDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbCAServiceDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbCAServiceDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbCAServiceDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbCAServiceDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbCAServiceDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbCAServiceDescriptor_GetCASystemId(This,pwVal) \ + ( (This)->lpVtbl -> GetCASystemId(This,pwVal) ) + +#define IIsdbCAServiceDescriptor_GetCABroadcasterGroupId(This,pbVal) \ + ( (This)->lpVtbl -> GetCABroadcasterGroupId(This,pbVal) ) + +#define IIsdbCAServiceDescriptor_GetMessageControl(This,pbVal) \ + ( (This)->lpVtbl -> GetMessageControl(This,pbVal) ) + +#define IIsdbCAServiceDescriptor_GetServiceIds(This,pbNumServiceIds,pwServiceIds) \ + ( (This)->lpVtbl -> GetServiceIds(This,pbNumServiceIds,pwServiceIds) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbCAServiceDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IIsdbHierarchicalTransmissionDescriptor_INTERFACE_DEFINED__ +#define __IIsdbHierarchicalTransmissionDescriptor_INTERFACE_DEFINED__ + +/* interface IIsdbHierarchicalTransmissionDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IIsdbHierarchicalTransmissionDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B7B3AE90-EE0B-446d-8769-F7E2AA266AA6") + IIsdbHierarchicalTransmissionDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFutureUse1( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetQualityLevel( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFutureUse2( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetReferencePid( + /* [out] */ WORD *pwVal) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IIsdbHierarchicalTransmissionDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IIsdbHierarchicalTransmissionDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IIsdbHierarchicalTransmissionDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IIsdbHierarchicalTransmissionDescriptor * This); + + DECLSPEC_XFGVIRT(IIsdbHierarchicalTransmissionDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IIsdbHierarchicalTransmissionDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbHierarchicalTransmissionDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IIsdbHierarchicalTransmissionDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbHierarchicalTransmissionDescriptor, GetFutureUse1) + HRESULT ( STDMETHODCALLTYPE *GetFutureUse1 )( + IIsdbHierarchicalTransmissionDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbHierarchicalTransmissionDescriptor, GetQualityLevel) + HRESULT ( STDMETHODCALLTYPE *GetQualityLevel )( + IIsdbHierarchicalTransmissionDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbHierarchicalTransmissionDescriptor, GetFutureUse2) + HRESULT ( STDMETHODCALLTYPE *GetFutureUse2 )( + IIsdbHierarchicalTransmissionDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IIsdbHierarchicalTransmissionDescriptor, GetReferencePid) + HRESULT ( STDMETHODCALLTYPE *GetReferencePid )( + IIsdbHierarchicalTransmissionDescriptor * This, + /* [out] */ WORD *pwVal); + + END_INTERFACE + } IIsdbHierarchicalTransmissionDescriptorVtbl; + + interface IIsdbHierarchicalTransmissionDescriptor + { + CONST_VTBL struct IIsdbHierarchicalTransmissionDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IIsdbHierarchicalTransmissionDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IIsdbHierarchicalTransmissionDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IIsdbHierarchicalTransmissionDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IIsdbHierarchicalTransmissionDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IIsdbHierarchicalTransmissionDescriptor_GetLength(This,pbVal) \ + ( (This)->lpVtbl -> GetLength(This,pbVal) ) + +#define IIsdbHierarchicalTransmissionDescriptor_GetFutureUse1(This,pbVal) \ + ( (This)->lpVtbl -> GetFutureUse1(This,pbVal) ) + +#define IIsdbHierarchicalTransmissionDescriptor_GetQualityLevel(This,pbVal) \ + ( (This)->lpVtbl -> GetQualityLevel(This,pbVal) ) + +#define IIsdbHierarchicalTransmissionDescriptor_GetFutureUse2(This,pbVal) \ + ( (This)->lpVtbl -> GetFutureUse2(This,pbVal) ) + +#define IIsdbHierarchicalTransmissionDescriptor_GetReferencePid(This,pwVal) \ + ( (This)->lpVtbl -> GetReferencePid(This,pwVal) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IIsdbHierarchicalTransmissionDescriptor_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dvbsiparser_0000_0065 */ +/* [local] */ + +#define COMPONENT_TAG_CAPTION_MIN 0x30 +#define COMPONENT_TAG_CAPTION_MAX 0x37 +#define COMPONENT_TAG_SUPERIMPOSE_MIN 0x38 +#define COMPONENT_TAG_SUPERIMPOSE_MAX 0x3F + + + + +extern RPC_IF_HANDLE __MIDL_itf_dvbsiparser_0000_0065_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dvbsiparser_0000_0065_v0_0_s_ifspec; + +#ifndef __IPBDASiParser_INTERFACE_DEFINED__ +#define __IPBDASiParser_INTERFACE_DEFINED__ + +/* interface IPBDASiParser */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IPBDASiParser; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("9DE49A74-ABA2-4a18-93E1-21F17F95C3C3") + IPBDASiParser : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ IUnknown *punk) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetEIT( + /* [in] */ DWORD dwSize, + /* [in] */ BYTE *pBuffer, + /* [out] */ IPBDA_EIT **ppEIT) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServices( + /* [in] */ DWORD dwSize, + /* [in] */ const BYTE *pBuffer, + /* [out] */ IPBDA_Services **ppServices) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPBDASiParserVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPBDASiParser * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPBDASiParser * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPBDASiParser * This); + + DECLSPEC_XFGVIRT(IPBDASiParser, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IPBDASiParser * This, + /* [in] */ IUnknown *punk); + + DECLSPEC_XFGVIRT(IPBDASiParser, GetEIT) + HRESULT ( STDMETHODCALLTYPE *GetEIT )( + IPBDASiParser * This, + /* [in] */ DWORD dwSize, + /* [in] */ BYTE *pBuffer, + /* [out] */ IPBDA_EIT **ppEIT); + + DECLSPEC_XFGVIRT(IPBDASiParser, GetServices) + HRESULT ( STDMETHODCALLTYPE *GetServices )( + IPBDASiParser * This, + /* [in] */ DWORD dwSize, + /* [in] */ const BYTE *pBuffer, + /* [out] */ IPBDA_Services **ppServices); + + END_INTERFACE + } IPBDASiParserVtbl; + + interface IPBDASiParser + { + CONST_VTBL struct IPBDASiParserVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPBDASiParser_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPBDASiParser_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPBDASiParser_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPBDASiParser_Initialize(This,punk) \ + ( (This)->lpVtbl -> Initialize(This,punk) ) + +#define IPBDASiParser_GetEIT(This,dwSize,pBuffer,ppEIT) \ + ( (This)->lpVtbl -> GetEIT(This,dwSize,pBuffer,ppEIT) ) + +#define IPBDASiParser_GetServices(This,dwSize,pBuffer,ppServices) \ + ( (This)->lpVtbl -> GetServices(This,dwSize,pBuffer,ppServices) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPBDASiParser_INTERFACE_DEFINED__ */ + + +#ifndef __IPBDA_EIT_INTERFACE_DEFINED__ +#define __IPBDA_EIT_INTERFACE_DEFINED__ + +/* interface IPBDA_EIT */ +/* [unique][helpstring][uuid][local][object] */ + + +EXTERN_C const IID IID_IPBDA_EIT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("A35F2DEA-098F-4ebd-984C-2BD4C3C8CE0A") + IPBDA_EIT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ DWORD size, + /* [size_is][in] */ const BYTE *pBuffer) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTableId( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionNumber( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetServiceIdx( + /* [out] */ ULONG64 *plwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordEventId( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ ULONG64 *plwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordStartTime( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDuration( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ MPEG_DURATION *pmdVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordCountOfDescriptors( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordDescriptorByTag( + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [out][in] */ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPBDA_EITVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPBDA_EIT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPBDA_EIT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPBDA_EIT * This); + + DECLSPEC_XFGVIRT(IPBDA_EIT, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IPBDA_EIT * This, + /* [in] */ DWORD size, + /* [size_is][in] */ const BYTE *pBuffer); + + DECLSPEC_XFGVIRT(IPBDA_EIT, GetTableId) + HRESULT ( STDMETHODCALLTYPE *GetTableId )( + IPBDA_EIT * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IPBDA_EIT, GetVersionNumber) + HRESULT ( STDMETHODCALLTYPE *GetVersionNumber )( + IPBDA_EIT * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IPBDA_EIT, GetServiceIdx) + HRESULT ( STDMETHODCALLTYPE *GetServiceIdx )( + IPBDA_EIT * This, + /* [out] */ ULONG64 *plwVal); + + DECLSPEC_XFGVIRT(IPBDA_EIT, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IPBDA_EIT * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IPBDA_EIT, GetRecordEventId) + HRESULT ( STDMETHODCALLTYPE *GetRecordEventId )( + IPBDA_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ ULONG64 *plwVal); + + DECLSPEC_XFGVIRT(IPBDA_EIT, GetRecordStartTime) + HRESULT ( STDMETHODCALLTYPE *GetRecordStartTime )( + IPBDA_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ MPEG_DATE_AND_TIME *pmdtVal); + + DECLSPEC_XFGVIRT(IPBDA_EIT, GetRecordDuration) + HRESULT ( STDMETHODCALLTYPE *GetRecordDuration )( + IPBDA_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ MPEG_DURATION *pmdVal); + + DECLSPEC_XFGVIRT(IPBDA_EIT, GetRecordCountOfDescriptors) + HRESULT ( STDMETHODCALLTYPE *GetRecordCountOfDescriptors )( + IPBDA_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IPBDA_EIT, GetRecordDescriptorByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByIndex )( + IPBDA_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ DWORD dwIndex, + /* [out] */ IGenericDescriptor **ppDescriptor); + + DECLSPEC_XFGVIRT(IPBDA_EIT, GetRecordDescriptorByTag) + HRESULT ( STDMETHODCALLTYPE *GetRecordDescriptorByTag )( + IPBDA_EIT * This, + /* [in] */ DWORD dwRecordIndex, + /* [in] */ BYTE bTag, + /* [out][in] */ DWORD *pdwCookie, + /* [out] */ IGenericDescriptor **ppDescriptor); + + END_INTERFACE + } IPBDA_EITVtbl; + + interface IPBDA_EIT + { + CONST_VTBL struct IPBDA_EITVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPBDA_EIT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPBDA_EIT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPBDA_EIT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPBDA_EIT_Initialize(This,size,pBuffer) \ + ( (This)->lpVtbl -> Initialize(This,size,pBuffer) ) + +#define IPBDA_EIT_GetTableId(This,pbVal) \ + ( (This)->lpVtbl -> GetTableId(This,pbVal) ) + +#define IPBDA_EIT_GetVersionNumber(This,pwVal) \ + ( (This)->lpVtbl -> GetVersionNumber(This,pwVal) ) + +#define IPBDA_EIT_GetServiceIdx(This,plwVal) \ + ( (This)->lpVtbl -> GetServiceIdx(This,plwVal) ) + +#define IPBDA_EIT_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IPBDA_EIT_GetRecordEventId(This,dwRecordIndex,plwVal) \ + ( (This)->lpVtbl -> GetRecordEventId(This,dwRecordIndex,plwVal) ) + +#define IPBDA_EIT_GetRecordStartTime(This,dwRecordIndex,pmdtVal) \ + ( (This)->lpVtbl -> GetRecordStartTime(This,dwRecordIndex,pmdtVal) ) + +#define IPBDA_EIT_GetRecordDuration(This,dwRecordIndex,pmdVal) \ + ( (This)->lpVtbl -> GetRecordDuration(This,dwRecordIndex,pmdVal) ) + +#define IPBDA_EIT_GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) \ + ( (This)->lpVtbl -> GetRecordCountOfDescriptors(This,dwRecordIndex,pdwVal) ) + +#define IPBDA_EIT_GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByIndex(This,dwRecordIndex,dwIndex,ppDescriptor) ) + +#define IPBDA_EIT_GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) \ + ( (This)->lpVtbl -> GetRecordDescriptorByTag(This,dwRecordIndex,bTag,pdwCookie,ppDescriptor) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPBDA_EIT_INTERFACE_DEFINED__ */ + + +#ifndef __IPBDA_Services_INTERFACE_DEFINED__ +#define __IPBDA_Services_INTERFACE_DEFINED__ + +/* interface IPBDA_Services */ +/* [unique][helpstring][uuid][local][object] */ + + +EXTERN_C const IID IID_IPBDA_Services; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("944EAB37-EED4-4850-AFD2-77E7EFEB4427") + IPBDA_Services : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ DWORD size, + /* [size_is][in] */ BYTE *pBuffer) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCountOfRecords( + /* [out] */ DWORD *pdwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRecordByIndex( + /* [in] */ DWORD dwRecordIndex, + /* [out] */ ULONG64 *pul64ServiceIdx) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPBDA_ServicesVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPBDA_Services * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPBDA_Services * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPBDA_Services * This); + + DECLSPEC_XFGVIRT(IPBDA_Services, Initialize) + HRESULT ( STDMETHODCALLTYPE *Initialize )( + IPBDA_Services * This, + /* [in] */ DWORD size, + /* [size_is][in] */ BYTE *pBuffer); + + DECLSPEC_XFGVIRT(IPBDA_Services, GetCountOfRecords) + HRESULT ( STDMETHODCALLTYPE *GetCountOfRecords )( + IPBDA_Services * This, + /* [out] */ DWORD *pdwVal); + + DECLSPEC_XFGVIRT(IPBDA_Services, GetRecordByIndex) + HRESULT ( STDMETHODCALLTYPE *GetRecordByIndex )( + IPBDA_Services * This, + /* [in] */ DWORD dwRecordIndex, + /* [out] */ ULONG64 *pul64ServiceIdx); + + END_INTERFACE + } IPBDA_ServicesVtbl; + + interface IPBDA_Services + { + CONST_VTBL struct IPBDA_ServicesVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPBDA_Services_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPBDA_Services_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPBDA_Services_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPBDA_Services_Initialize(This,size,pBuffer) \ + ( (This)->lpVtbl -> Initialize(This,size,pBuffer) ) + +#define IPBDA_Services_GetCountOfRecords(This,pdwVal) \ + ( (This)->lpVtbl -> GetCountOfRecords(This,pdwVal) ) + +#define IPBDA_Services_GetRecordByIndex(This,dwRecordIndex,pul64ServiceIdx) \ + ( (This)->lpVtbl -> GetRecordByIndex(This,dwRecordIndex,pul64ServiceIdx) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPBDA_Services_INTERFACE_DEFINED__ */ + + +#ifndef __IPBDAEntitlementDescriptor_INTERFACE_DEFINED__ +#define __IPBDAEntitlementDescriptor_INTERFACE_DEFINED__ + +/* interface IPBDAEntitlementDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IPBDAEntitlementDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("22632497-0DE3-4587-AADC-D8D99017E760") + IPBDAEntitlementDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetToken( + /* [out] */ BYTE **ppbTokenBuffer, + /* [out] */ DWORD *pdwTokenLength) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPBDAEntitlementDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPBDAEntitlementDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPBDAEntitlementDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPBDAEntitlementDescriptor * This); + + DECLSPEC_XFGVIRT(IPBDAEntitlementDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IPBDAEntitlementDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IPBDAEntitlementDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IPBDAEntitlementDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IPBDAEntitlementDescriptor, GetToken) + HRESULT ( STDMETHODCALLTYPE *GetToken )( + IPBDAEntitlementDescriptor * This, + /* [out] */ BYTE **ppbTokenBuffer, + /* [out] */ DWORD *pdwTokenLength); + + END_INTERFACE + } IPBDAEntitlementDescriptorVtbl; + + interface IPBDAEntitlementDescriptor + { + CONST_VTBL struct IPBDAEntitlementDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPBDAEntitlementDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPBDAEntitlementDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPBDAEntitlementDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPBDAEntitlementDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IPBDAEntitlementDescriptor_GetLength(This,pwVal) \ + ( (This)->lpVtbl -> GetLength(This,pwVal) ) + +#define IPBDAEntitlementDescriptor_GetToken(This,ppbTokenBuffer,pdwTokenLength) \ + ( (This)->lpVtbl -> GetToken(This,ppbTokenBuffer,pdwTokenLength) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPBDAEntitlementDescriptor_INTERFACE_DEFINED__ */ + + +#ifndef __IPBDAAttributesDescriptor_INTERFACE_DEFINED__ +#define __IPBDAAttributesDescriptor_INTERFACE_DEFINED__ + +/* interface IPBDAAttributesDescriptor */ +/* [unique][uuid][object][local] */ + + +EXTERN_C const IID IID_IPBDAAttributesDescriptor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("313B3620-3263-45a6-9533-968BEFBEAC03") + IPBDAAttributesDescriptor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetTag( + /* [out] */ BYTE *pbVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLength( + /* [out] */ WORD *pwVal) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAttributePayload( + /* [out] */ BYTE **ppbAttributeBuffer, + /* [out] */ DWORD *pdwAttributeLength) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPBDAAttributesDescriptorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IPBDAAttributesDescriptor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IPBDAAttributesDescriptor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IPBDAAttributesDescriptor * This); + + DECLSPEC_XFGVIRT(IPBDAAttributesDescriptor, GetTag) + HRESULT ( STDMETHODCALLTYPE *GetTag )( + IPBDAAttributesDescriptor * This, + /* [out] */ BYTE *pbVal); + + DECLSPEC_XFGVIRT(IPBDAAttributesDescriptor, GetLength) + HRESULT ( STDMETHODCALLTYPE *GetLength )( + IPBDAAttributesDescriptor * This, + /* [out] */ WORD *pwVal); + + DECLSPEC_XFGVIRT(IPBDAAttributesDescriptor, GetAttributePayload) + HRESULT ( STDMETHODCALLTYPE *GetAttributePayload )( + IPBDAAttributesDescriptor * This, + /* [out] */ BYTE **ppbAttributeBuffer, + /* [out] */ DWORD *pdwAttributeLength); + + END_INTERFACE + } IPBDAAttributesDescriptorVtbl; + + interface IPBDAAttributesDescriptor + { + CONST_VTBL struct IPBDAAttributesDescriptorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPBDAAttributesDescriptor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPBDAAttributesDescriptor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPBDAAttributesDescriptor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPBDAAttributesDescriptor_GetTag(This,pbVal) \ + ( (This)->lpVtbl -> GetTag(This,pbVal) ) + +#define IPBDAAttributesDescriptor_GetLength(This,pwVal) \ + ( (This)->lpVtbl -> GetLength(This,pwVal) ) + +#define IPBDAAttributesDescriptor_GetAttributePayload(This,ppbAttributeBuffer,pdwAttributeLength) \ + ( (This)->lpVtbl -> GetAttributePayload(This,ppbAttributeBuffer,pdwAttributeLength) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPBDAAttributesDescriptor_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dvbsiparser_0000_0070 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_dvbsiparser_0000_0070_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dvbsiparser_0000_0070_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DvbSiParser.idl b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DvbSiParser.idl new file mode 100644 index 0000000000000000000000000000000000000000..bec5e557d1afcfd434c88b2b3287877b6d22e465 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DvbSiParser.idl @@ -0,0 +1,2882 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Module Name: +// +// DvbSiParser.idl +// +// Abstract: +// +// Interface definitions for the DVB/ISDB SI parsing functionality +// +// Notes: +// +// This IDL file is not meant to be built independently, but to be +// included in a master IDL file with a unique coclass defined for +// IDvbSiParser. No coclasses need to be defined for the other +// interfaces. See DTVParse.idl for an example. +// +///////////////////////////////////////////////////////////////////////////// + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#ifndef AM_LOCAL +#define AM_LOCAL local, +#define AM_ANNOTATION(_x_) ,annotation(_x_) +#endif + +import "oaidl.idl"; +import "ocidl.idl"; +import "wtypes.idl"; +import "mpeg2structs.idl"; +import "mpeg2data.idl"; +import "mpeg2psiparser.idl"; + + + // String conversion mode parameter +typedef enum +{ + STRCONV_MODE_DVB = 0, + STRCONV_MODE_DVB_EMPHASIS, + STRCONV_MODE_DVB_WITHOUT_EMPHASIS, + STRCONV_MODE_ISDB, +} DVB_STRCONV_MODE; + + + // Forward interface declarations +interface IPAT; +interface ICAT; +interface IPMT; +interface ITSDT; +interface IDVB_NIT; +interface IDVB_SDT; +interface IISDB_SDT; +interface IDVB_EIT; +interface IDVB_EIT2; +interface IDVB_BAT; +interface IDVB_RST; +interface IDVB_ST; +interface IDVB_TDT; +interface IDVB_TOT; +interface IDVB_DIT; +interface IDVB_SIT; +interface IISDB_BIT; +interface IISDB_NBIT; +interface IISDB_LDT; +interface IISDB_SDTT; +interface IISDB_CDT; +interface IISDB_EMM; + + + //////////////////////////////////// + // + // IDvbSiParser Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(B758A7BD-14DC-449d-B828-35909ACB3B1E), + pointer_default(unique) + ] + interface IDvbSiParser : IUnknown + { + HRESULT Initialize([in] IUnknown * punkMpeg2Data); + + HRESULT GetPAT([out] IPAT ** ppPAT); + + HRESULT GetCAT([in] DWORD dwTimeout, + [out] ICAT ** ppCAT); + + HRESULT GetPMT([in] PID pid, + [in AM_ANNOTATION("_In_opt_")] WORD * pwProgramNumber, + [out] IPMT ** ppPMT); + + HRESULT GetTSDT([out] ITSDT ** ppTSDT); + + HRESULT GetNIT([in] TID tableId, + [in AM_ANNOTATION("_In_opt_")] WORD * pwNetworkId, + [out] IDVB_NIT ** ppNIT); + + HRESULT GetSDT([in] TID tableId, + [in AM_ANNOTATION("_In_opt_")] WORD * pwTransportStreamId, + [out] IDVB_SDT ** ppSDT); + + HRESULT GetEIT([in] TID tableId, + [in AM_ANNOTATION("_In_opt_")] WORD * pwServiceId, + [out] IDVB_EIT ** ppEIT); + + HRESULT GetBAT([in AM_ANNOTATION("_In_opt_")] WORD * pwBouquetId, + [out] IDVB_BAT ** ppBAT); + + HRESULT GetRST([in] DWORD dwTimeout, + [out] IDVB_RST ** ppRST); + + HRESULT GetST([in] PID pid, + [in] DWORD dwTimeout, + [out] IDVB_ST ** ppST); + + HRESULT GetTDT([out] IDVB_TDT ** ppTDT); + + HRESULT GetTOT([out] IDVB_TOT ** ppTOT); + + HRESULT GetDIT([in] DWORD dwTimeout, + [out] IDVB_DIT ** ppDIT); + + HRESULT GetSIT([in] DWORD dwTimeout, + [out] IDVB_SIT ** ppSIT); + + }; + + + + //////////////////////////////////// + // + // IDvbSiParser2 Interface + // + // Note: + // When this interface is updated, + // update also the corresponding + // inherited IIsdbSiParserX. + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(0AC5525F-F816-42F4-93BA-4C0F32F46E54), + pointer_default(unique) + ] + interface IDvbSiParser2 : IDvbSiParser + { + HRESULT GetEIT2([in] TID tableId, + [in AM_ANNOTATION("_In_opt_")] WORD * pwServiceId, + [in AM_ANNOTATION("_In_opt_")] BYTE * pbSegment, + [out] IDVB_EIT2 ** ppEIT); + }; + + + + //////////////////////////////////// + // + // IIsdbSiParser2 Interface + // + //////////////////////////////////// + [ + AM_LOCAL + object, + uuid(900E4BB7-18CD-453F-98BE-3BE6AA211772), + pointer_default(unique) + ] + interface IIsdbSiParser2 : IDvbSiParser2 + { + HRESULT GetSDT([in] TID tableId, + [in AM_ANNOTATION("_In_opt_")] WORD * pwTransportStreamId, + [out] IISDB_SDT ** ppSDT); + + HRESULT GetBIT([in] TID tableId, + [in AM_ANNOTATION("_In_opt_")] WORD * pwOriginalNetworkId, + [out] IISDB_BIT ** ppBIT); + + HRESULT GetNBIT([in] TID tableId, + [in AM_ANNOTATION("_In_opt_")] WORD * pwOriginalNetworkId, + [out] IISDB_NBIT ** ppNBIT); + + HRESULT GetLDT([in] TID tableId, + [in AM_ANNOTATION("_In_opt_")] WORD * pwOriginalServiceId, + [out] IISDB_LDT ** ppLDT); + + HRESULT GetSDTT([in] TID tableId, + [in AM_ANNOTATION("_In_opt_")] WORD * pwTableIdExt, + [out] IISDB_SDTT ** ppSDTT); + + HRESULT GetCDT([in] TID tableId, + [in] BYTE bSectionNumber, + [in AM_ANNOTATION("_In_opt_")] WORD * pwDownloadDataId, + [out] IISDB_CDT ** ppCDT); + + HRESULT GetEMM([in] PID pid, + [in] WORD wTableIdExt, + [out] IISDB_EMM ** ppEMM); + }; + + + + //////////////////////////////////// + // + // IDVB_NIT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(C64935F4-29E4-4e22-911A-63F7F55CB097), + pointer_default(unique) + ] + interface IDVB_NIT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetNetworkId([out] WORD * pwVal); + + HRESULT GetCountOfTableDescriptors([out] DWORD * pdwVal); + + HRESULT GetTableDescriptorByIndex([in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetTableDescriptorByTag([in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetCountOfRecords([out] DWORD * pdwVal); + + HRESULT GetRecordTransportStreamId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordOriginalNetworkId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex, + [out] DWORD * pdwVal); + + HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex, + [in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT RegisterForNextTable([in] HANDLE hNextTableAvailable); + + HRESULT GetNextTable([out] IDVB_NIT ** ppNIT); + + HRESULT RegisterForWhenCurrent([in] HANDLE hNextTableIsCurrent); + + HRESULT ConvertNextToCurrent(void); + + HRESULT GetVersionHash([out] DWORD * pdwVersionHash); + }; + + + + //////////////////////////////////// + // + // IDVB_SDT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(02CAD8D3-FE43-48e2-90BD-450ED9A8A5FD), + pointer_default(unique) + ] + interface IDVB_SDT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetTransportStreamId([out] WORD * pwVal); + + HRESULT GetOriginalNetworkId([out] WORD * pwVal); + + HRESULT GetCountOfRecords([out] DWORD * pdwVal); + + HRESULT GetRecordServiceId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordEITScheduleFlag([in] DWORD dwRecordIndex, + [out] BOOL * pfVal); + + HRESULT GetRecordEITPresentFollowingFlag([in] DWORD dwRecordIndex, + [out] BOOL * pfVal); + + HRESULT GetRecordRunningStatus([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordFreeCAMode([in] DWORD dwRecordIndex, + [out] BOOL * pfVal); + + HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex, + [out] DWORD * pdwVal); + + HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex, + [in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT RegisterForNextTable([in] HANDLE hNextTableAvailable); + + HRESULT GetNextTable([out] IDVB_SDT ** ppSDT); + + HRESULT RegisterForWhenCurrent([in] HANDLE hNextTableIsCurrent); + + HRESULT ConvertNextToCurrent(void); + + HRESULT GetVersionHash([out] DWORD * pdwVersionHash); + }; + + //////////////////////////////////// + // + // IISDB_SDT Interface + // Support user_defined_flags field + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(3F3DC9A2-BB32-4FB9-AE9E-D856848927A3), + pointer_default(unique) + ] + interface IISDB_SDT : IDVB_SDT + // Additional field for ISDB + { + HRESULT GetRecordEITUserDefinedFlags([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + } + + + //////////////////////////////////// + // + // IDVB_EIT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(442DB029-02CB-4495-8B92-1C13375BCE99), + pointer_default(unique) + ] + interface IDVB_EIT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetServiceId([out] WORD * pwVal); + + HRESULT GetTransportStreamId([out] WORD * pwVal); + + HRESULT GetOriginalNetworkId([out] WORD * pwVal); + + HRESULT GetSegmentLastSectionNumber([out] BYTE * pbVal); + + HRESULT GetLastTableId([out] BYTE * pbVal); + + HRESULT GetCountOfRecords([out] DWORD * pdwVal); + + HRESULT GetRecordEventId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordStartTime([in] DWORD dwRecordIndex, + [out] MPEG_DATE_AND_TIME * pmdtVal); + + HRESULT GetRecordDuration([in] DWORD dwRecordIndex, + [out] MPEG_DURATION * pmdVal); + + HRESULT GetRecordRunningStatus([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordFreeCAMode([in] DWORD dwRecordIndex, + [out] BOOL * pfVal); + + HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex, + [out] DWORD * pdwVal); + + HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex, + [in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT RegisterForNextTable([in] HANDLE hNextTableAvailable); + + HRESULT GetNextTable([out] IDVB_EIT ** ppEIT); + + HRESULT RegisterForWhenCurrent([in] HANDLE hNextTableIsCurrent); + + HRESULT ConvertNextToCurrent(void); + + HRESULT GetVersionHash([out] DWORD * pdwVersionHash); + }; + + + //////////////////////////////////// + // + // IDVB_EIT2 Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(61A389E0-9B9E-4ba0-AEEA-5DDD159820EA), + pointer_default(unique) + ] + interface IDVB_EIT2 : IDVB_EIT + { + HRESULT GetSegmentInfo([out] BYTE * pbTid, + [out] BYTE * pbSegment); + + HRESULT GetRecordSection([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + }; + + + + //////////////////////////////////// + // + // IDVB_BAT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(ECE9BB0C-43B6-4558-A0EC-1812C34CD6CA), + pointer_default(unique) + ] + interface IDVB_BAT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetBouquetId([out] WORD * pwVal); + + HRESULT GetCountOfTableDescriptors([out] DWORD * pdwVal); + + HRESULT GetTableDescriptorByIndex([in] DWORD dwIndex, + [in] IGenericDescriptor ** ppDescriptor); + + HRESULT GetTableDescriptorByTag([in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetCountOfRecords([out] DWORD * pdwVal); + + HRESULT GetRecordTransportStreamId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordOriginalNetworkId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex, + [out] DWORD * pdwVal); + + HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex, + [in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT RegisterForNextTable([in] HANDLE hNextTableAvailable); + + HRESULT GetNextTable([out] IDVB_BAT ** ppBAT); + + HRESULT RegisterForWhenCurrent([in] HANDLE hNextTableIsCurrent); + + HRESULT ConvertNextToCurrent(void); + }; + + + + //////////////////////////////////// + // + // IDVB_RST Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(F47DCD04-1E23-4fb7-9F96-B40EEAD10B2B), + pointer_default(unique) + ] + interface IDVB_RST : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList); + + HRESULT GetCountOfRecords([out] DWORD * pdwVal); + + HRESULT GetRecordTransportStreamId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordOriginalNetworkId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordServiceId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordEventId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordRunningStatus([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + }; + + + + //////////////////////////////////// + // + // IDVB_ST Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(4D5B9F23-2A02-45de-BCDA-5D5DBFBFBE62), + pointer_default(unique) + ] + interface IDVB_ST : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList); + + HRESULT GetDataLength([out] WORD * pwVal); + + HRESULT GetData([out] BYTE ** ppData); + }; + + + + //////////////////////////////////// + // + // IDVB_TDT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(0780DC7D-D55C-4aef-97E6-6B75906E2796), + pointer_default(unique) + ] + interface IDVB_TDT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList); + + HRESULT GetUTCTime([out] MPEG_DATE_AND_TIME * pmdtVal); + }; + + + + //////////////////////////////////// + // + // IDVB_TOT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(83295D6A-FABA-4ee1-9B15-8067696910AE), + pointer_default(unique) + ] + interface IDVB_TOT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList); + + HRESULT GetUTCTime([out] MPEG_DATE_AND_TIME * pmdtVal); + + HRESULT GetCountOfTableDescriptors([out] DWORD * pdwVal); + + HRESULT GetTableDescriptorByIndex([in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetTableDescriptorByTag([in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + }; + + + + //////////////////////////////////// + // + // IDVB_DIT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(91BFFDF9-9432-410f-86EF-1C228ED0AD70), + pointer_default(unique) + ] + interface IDVB_DIT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList); + + HRESULT GetTransitionFlag([out] BOOL * pfVal); + }; + + + + //////////////////////////////////// + // + // IDVB_SIT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(68CDCE53-8BEA-45c2-9D9D-ACF575A089B5), + pointer_default(unique) + ] + interface IDVB_SIT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetCountOfTableDescriptors([out] DWORD * pdwVal); + + HRESULT GetTableDescriptorByIndex([in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetTableDescriptorByTag([in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetCountOfRecords([out] DWORD * pdwVal); + + HRESULT GetRecordServiceId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordRunningStatus([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex, + [out] DWORD * pdwVal); + + HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex, + [in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT RegisterForNextTable([in] HANDLE hNextTableAvailable); + + HRESULT GetNextTable([in] DWORD dwTimeout, + [out] IDVB_SIT ** ppSIT); + + HRESULT RegisterForWhenCurrent([in] HANDLE hNextTableIsCurrent); + + HRESULT ConvertNextToCurrent(void); + }; + + + + //////////////////////////////////// + // + // IISDB_BIT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(537CD71E-0E46-4173-9001-BA043F3E49E2), + pointer_default(unique) + ] + interface IISDB_BIT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetOriginalNetworkId([out] WORD * pwVal); + + HRESULT GetBroadcastViewPropriety([out] BYTE * pbVal); + + HRESULT GetCountOfTableDescriptors([out] DWORD * pdwVal); + + HRESULT GetTableDescriptorByIndex([in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetTableDescriptorByTag([in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetCountOfRecords([out] DWORD * pdwVal); + + HRESULT GetRecordBroadcasterId([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex, + [out] DWORD * pdwVal); + + HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex, + [in] BYTE bTag, + [in,out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetVersionHash([out] DWORD * pdwVersionHash); + }; + + + + //////////////////////////////////// + // + // IISDB_NBIT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(1B1863EF-08F1-40B7-A559-3B1EFF8CAFA6), + pointer_default(unique) + ] + interface IISDB_NBIT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetOriginalNetworkId([out] WORD * pwVal); + + HRESULT GetCountOfRecords([out] DWORD * pdwVal); + + HRESULT GetRecordInformationId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordInformationType([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordDescriptionBodyLocation([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordMessageSectionNumber([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordUserDefined([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordNumberOfKeys([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordKeys([in] DWORD dwRecordIndex, + [out] BYTE ** pbKeys); + + HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex, + [out] DWORD * pdwVal); + + HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex, + [in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetVersionHash([out] DWORD * pdwVersionHash); + }; + + + + //////////////////////////////////// + // + // IISDB_LDT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(141A546B-02FF-4FB9-A3A3-2F074B74A9A9), + pointer_default(unique) + ] + interface IISDB_LDT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetOriginalServiceId([out] WORD * pwVal); + + HRESULT GetTransportStreamId([out] WORD * pwVal); + + HRESULT GetOriginalNetworkId([out] WORD * pwVal); + + HRESULT GetCountOfRecords([out] DWORD * pdwVal); + + HRESULT GetRecordDescriptionId([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex, + [out] DWORD * pdwVal); + + HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex, + [in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetVersionHash([out] DWORD * pdwVersionHash); + }; + + + + //////////////////////////////////// + // + // IISDB_SDTT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(EE60EF2D-813A-4DC7-BF92-EA13DAC85313), + pointer_default(unique) + ] + interface IISDB_SDTT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetTableIdExt([out] WORD * pwVal); + + HRESULT GetTransportStreamId([out] WORD * pwVal); + + HRESULT GetOriginalNetworkId([out] WORD * pwVal); + + HRESULT GetServiceId([out] WORD * pwVal); + + HRESULT GetCountOfRecords([out] DWORD * pdwVal); + + HRESULT GetRecordGroup([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordTargetVersion([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordNewVersion([in] DWORD dwRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordDownloadLevel([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordVersionIndicator([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordScheduleTimeShiftInformation([in] DWORD dwRecordIndex, + [out] BYTE * pbVal); + + HRESULT GetRecordCountOfSchedules([in] DWORD dwRecordIndex, + [out] DWORD * pdwVal); + + HRESULT GetRecordStartTimeByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] MPEG_DATE_AND_TIME * pmdtVal); + + HRESULT GetRecordDurationByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] MPEG_DURATION * pmdVal); + + HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex, + [out] DWORD * pdwVal); + + HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex, + [in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetVersionHash([out] DWORD * pdwVersionHash); + }; + + + + //////////////////////////////////// + // + // IISDB_CDT Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(25FA92C2-8B80-4787-A841-3A0E8F17984B), + pointer_default(unique) + ] + interface IISDB_CDT : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData, + [in] BYTE bSectionNumber); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetDownloadDataId([out] WORD * pwVal); + + HRESULT GetSectionNumber([out] BYTE * pbVal); + + HRESULT GetOriginalNetworkId([out] WORD * pwVal); + + HRESULT GetDataType([out] BYTE * pbVal); + + HRESULT GetCountOfTableDescriptors([out] DWORD * pdwVal); + + HRESULT GetTableDescriptorByIndex([in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetTableDescriptorByTag([in] BYTE bTag, + [in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie, + [out] IGenericDescriptor ** ppDescriptor); + + HRESULT GetSizeOfDataModule([out] DWORD * pdwVal); + + HRESULT GetDataModule([out] BYTE ** pbData); + + HRESULT GetVersionHash([out] DWORD * pdwVersionHash); + }; + + + + //////////////////////////////////// + // + // IISDB_EMM Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(0EDB556D-43AD-4938-9668-321B2FFECFD3), + pointer_default(unique) + ] + interface IISDB_EMM : IUnknown + { + HRESULT Initialize([in] ISectionList * pSectionList, + [in] IMpeg2Data * pMPEGData); + + HRESULT GetVersionNumber([out] BYTE * pbVal); + + HRESULT GetTableIdExtension([out] WORD * pwVal); + + HRESULT GetDataBytes( + [in, out] WORD * pwBufferLength, // retuen reqired buffer length if pbBuffer is null. + [out] BYTE * pbBuffer + ); + + HRESULT GetSharedEmmMessage( + /*[out]*/ WORD * pwLength, + /*[out]*/ BYTE ** ppbMessage); // If this method succeeds, the client must release by CoTaskMemFree + + HRESULT GetIndividualEmmMessage( + /*[in]*/ IUnknown * pUnknown, + /*[out]*/ WORD * pwLength, + /*[out]*/ BYTE ** ppbMessage); // If this method succeeds, the client must release by CoTaskMemFree + + HRESULT GetVersionHash([out] DWORD * pdwVersionHash); + }; + + + + //////////////////////////////////// + // + // IDvbServiceAttributeDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(0F37BD92-D6A1-4854-B950-3A969D27F30E), + pointer_default(unique) + ] + interface IDvbServiceAttributeDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetCountOfRecords([out] BYTE * pbVal); + + HRESULT GetRecordServiceId([in] BYTE bRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordNumericSelectionFlag([in] BYTE bRecordIndex, + [out] BOOL * pfVal); + + HRESULT GetRecordVisibleServiceFlag([in] BYTE bRecordIndex, + [out] BOOL * pfVal); + }; + + + + //////////////////////////////////// + // + // IDvbContentIdentifierDescriptor Interface + // + //////////////////////////////////// + + typedef enum + { + CRID_LOCATION_IN_DESCRIPTOR = 0x0, + CRID_LOCATION_IN_CIT = 0x1, + CRID_LOCATION_DVB_RESERVED1 = 0x2, + CRID_LOCATION_DVB_RESERVED2 = 0x3, + + } CRID_LOCATION; + + [ + AM_LOCAL + object, + uuid(05E0C1EA-F661-4053-9FBF-D93B28359838), + pointer_default(unique) + ] + interface IDvbContentIdentifierDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetCountOfRecords([out] BYTE * pbVal); + + HRESULT GetRecordCrid([in] BYTE bRecordIndex, + [out] BYTE * pbType, + [out] BYTE * pbLocation, + [out] BYTE * pbLength, + [out, size_is( , *pbLength)] BYTE ** ppbBytes); + }; + + + + //////////////////////////////////// + // + // IDvbDefaultAuthorityDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(05EC24D1-3A31-44e7-B408-67C60A352276), + pointer_default(unique) + ] + interface IDvbDefaultAuthorityDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetDefaultAuthority([out] BYTE * pbLength, + [out, size_is( , *pbLength)] BYTE ** ppbBytes); + }; + + + + //////////////////////////////////// + // + // IDvbSatelliteDeliverySystemDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(02F2225A-805B-4ec5-A9A6-F9B5913CD470), + pointer_default(unique) + ] + interface IDvbSatelliteDeliverySystemDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetFrequency([out] DWORD * pdwVal); + + HRESULT GetOrbitalPosition([out] WORD * pwVal); + + HRESULT GetWestEastFlag([out] BYTE * pbVal); + + HRESULT GetPolarization([out] BYTE * pbVal); + + HRESULT GetModulation([out] BYTE * pbVal); + + HRESULT GetSymbolRate([out] DWORD * pdwVal); + + HRESULT GetFECInner([out] BYTE * pbVal); + }; + + + + //////////////////////////////////// + // + // IDvbCableDeliverySystemDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(DFB98E36-9E1A-4862-9946-993A4E59017B), + pointer_default(unique) + ] + interface IDvbCableDeliverySystemDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetFrequency([out] DWORD * pdwVal); + + HRESULT GetFECOuter([out] BYTE * pbVal); + + HRESULT GetModulation([out] BYTE * pbVal); + + HRESULT GetSymbolRate([out] DWORD * pdwVal); + + HRESULT GetFECInner([out] BYTE * pbVal); + }; + + + + //////////////////////////////////// + // + // IDvbTerrestrialDeliverySystemDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(ED7E1B91-D12E-420c-B41D-A49D84FE1823), + pointer_default(unique) + ] + interface IDvbTerrestrialDeliverySystemDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetCentreFrequency([out] DWORD * pdwVal); + + HRESULT GetBandwidth([out] BYTE * pbVal); + + HRESULT GetConstellation([out] BYTE * pbVal); + + HRESULT GetHierarchyInformation([out] BYTE * pbVal); + + HRESULT GetCodeRateHPStream([out] BYTE * pbVal); + + HRESULT GetCodeRateLPStream([out] BYTE * pbVal); + + HRESULT GetGuardInterval([out] BYTE * pbVal); + + HRESULT GetTransmissionMode([out] BYTE * pbVal); + + HRESULT GetOtherFrequencyFlag([out] BYTE * pbVal); + }; + + //////////////////////////////////// + // + // IDvbTerrestrial2DeliverySystemDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(20EE9BE9-CD57-49ab-8F6E-1D07AEB8E482), + pointer_default(unique) + ] + interface IDvbTerrestrial2DeliverySystemDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetTagExtension([out] BYTE * pbVal); + + HRESULT GetCentreFrequency([out] DWORD * pdwVal); + + HRESULT GetPLPId([out] BYTE * pbVal); + + HRESULT GetT2SystemId([out] WORD * pwVal); + + HRESULT GetMultipleInputMode([out] BYTE * pbVal); + + HRESULT GetBandwidth([out] BYTE * pbVal); + + HRESULT GetGuardInterval([out] BYTE * pbVal); + + HRESULT GetTransmissionMode([out] BYTE * pbVal); + + HRESULT GetCellId([out] WORD * pwVal); + + HRESULT GetOtherFrequencyFlag([out] BYTE * pbVal); + + HRESULT GetTFSFlag([out] BYTE * pbVal); + + }; + + + //////////////////////////////////// + // + // IDvbFrequencyListDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(1CADB613-E1DD-4512-AFA8-BB7A007EF8B1), + pointer_default(unique) + ] + interface IDvbFrequencyListDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetCodingType([out] BYTE * pbVal); + + HRESULT GetCountOfRecords([out] BYTE * pbVal); + + HRESULT GetRecordCentreFrequency([in] BYTE bRecordIndex, + [out] DWORD * pdwVal); + }; + + + + //////////////////////////////////// + // + // IDvbPrivateDataSpecifierDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(5660A019-E75A-4b82-9B4C-ED2256D165A2), + pointer_default(unique) + ] + interface IDvbPrivateDataSpecifierDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetPrivateDataSpecifier([out] DWORD * pdwVal); + }; + + + + //////////////////////////////////// + // + // IDvbLogicalChannelDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(CF1EDAFF-3FFD-4cf7-8201-35756ACBF85F), + pointer_default(unique) + ] + interface IDvbLogicalChannelDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetCountOfRecords([out] BYTE * pbVal); + + HRESULT GetRecordServiceId([in] BYTE bRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordLogicalChannelNumber([in] BYTE bRecordIndex, + [out] WORD * pwVal); + }; + + + + //////////////////////////////////// + // + // IDvbLogicalChannelDescriptor2 Interface. + // + // Extension to the IDvbLogicalChannelDescriptor + // interface to also return channel visibility + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(43ACA974-4BE8-4b98-BC17-9EAFD788B1D7), + pointer_default(unique) + ] + interface IDvbLogicalChannelDescriptor2 : IDvbLogicalChannelDescriptor + { + HRESULT GetRecordLogicalChannelAndVisibility([in] BYTE bRecordIndex, + [out] WORD * pwVal); + }; + + + + //////////////////////////////////// + // + // IDvbLogicalChannel2Descriptor Interface + // + // Extension to the IDvbLogicalChannelDescriptor2 to implement fields + // available in version 2 of the DVB Logical Channel descriptor. + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(F69C3747-8A30-4980-998C-01FE7F0BA35A), + pointer_default(unique) + ] + interface IDvbLogicalChannel2Descriptor : IDvbLogicalChannelDescriptor2 + { + HRESULT GetCountOfLists([out] BYTE * pbVal); + + HRESULT GetListId([in] BYTE bListIndex, + [out] BYTE * pbVal); + + HRESULT GetListNameW([in] BYTE bListIndex, + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName); + + HRESULT GetListCountryCode([in] BYTE bListIndex, + [out AM_ANNOTATION("_Out_writes_(4)")] char * pszCode); + + HRESULT GetListCountOfRecords([in] BYTE bChannelListIndex, + [out] BYTE * pbVal); + + HRESULT GetListRecordServiceId([in] BYTE bListIndex, + [in] BYTE bRecordIndex, + [out] WORD * pwVal); + + HRESULT GetListRecordLogicalChannelNumber([in] BYTE bListIndex, + [in] BYTE bRecordIndex, + [out] WORD * pwVal); + + HRESULT GetListRecordLogicalChannelAndVisibility([in] BYTE bListIndex, + [in] BYTE bRecordIndex, + [out] WORD * pwVal); + }; + + + + //////////////////////////////////// + // + // IDvbHDSimulcastLogicalChannelDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(1EA8B738-A307-4680-9E26-D0A908C824F4), + pointer_default(unique) + ] + interface IDvbHDSimulcastLogicalChannelDescriptor : IDvbLogicalChannelDescriptor2 + { + // Identical to IDvbLogicalChannelDescriptor2 + }; + + + + //////////////////////////////////// + // + // IDvbDataBroadcastIDDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(5F26F518-65C8-4048-91F2-9290F59F7B90), + pointer_default(unique) + ] + interface IDvbDataBroadcastIDDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetDataBroadcastID([out] WORD * pwVal); + + HRESULT GetIDSelectorBytes([in, out] BYTE * pbLen, [out] BYTE * pbVal); + }; + + //////////////////////////////////// + // + // IDvbDataBroadcastDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(D1EBC1D6-8B60-4c20-9CAF-E59382E7C400), + pointer_default(unique) + ] + interface IDvbDataBroadcastDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetDataBroadcastID([out] WORD * pwVal); + + HRESULT GetComponentTag([out] BYTE * pbVal); + + HRESULT GetSelectorLength([out] BYTE * pbVal); + + HRESULT GetSelectorBytes([in, out] BYTE *pbLen, [out] BYTE * pbVal); + + HRESULT GetLangID([out] ULONG * pulVal); + + HRESULT GetTextLength([out] BYTE * pbVal); + + HRESULT GetText([in, out] BYTE *pbLen, [out] BYTE * pbVal); + }; + +typedef enum +{ + DESC_LINKAGE_RESERVED0 = 0x00, + DESC_LINKAGE_INFORMATION, + DESC_LINKAGE_EPG, + DESC_LINKAGE_CA_REPLACEMENT, + DESC_LINKAGE_COMPLETE_NET_BOUQUET_SI, + DESC_LINKAGE_REPLACEMENT, + DESC_LINKAGE_DATA, + DESC_LINKAGE_RESERVED1 = 0x07, + DESC_LINKAGE_USER = 0x08, + DESC_LINKAGE_RESERVED2 = 0xFF + +} DESC_LINKAGE_TYPE; + + //////////////////////////////////// + // + // IDvbLinkageDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(1CDF8B31-994A-46fc-ACFD-6A6BE8934DD5), + pointer_default(unique) + ] + interface IDvbLinkageDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetTSId([out] WORD * pwVal); + + HRESULT GetONId([out] WORD * pwVal); + + HRESULT GetServiceId([out] WORD * pwVal); + + HRESULT GetLinkageType([out] BYTE * pbVal); + + HRESULT GetPrivateDataLength([out] BYTE * pbVal); + + HRESULT GetPrivateData([in, out] BYTE *pbLen, [out] BYTE * pbData); + }; + + //////////////////////////////////// + // + // IDvbTeletextDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(9CD29D47-69C6-4f92-98A9-210AF1B7303A), + pointer_default(unique) + ] + interface IDvbTeletextDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetCountOfRecords([out] BYTE * pbVal); + + HRESULT GetRecordLangId([in] BYTE bRecordIndex, + [out] ULONG * pulVal); + + HRESULT GetRecordTeletextType([in] BYTE bRecordIndex, + [out] BYTE * pbVal); + HRESULT GetRecordMagazineNumber([in] BYTE bRecordIndex, + [out] BYTE * pbVal); + HRESULT GetRecordPageNumber([in] BYTE bRecordIndex, + [out] BYTE * pbVal); + }; + + //////////////////////////////////// + // + // IDvbSubtitlingDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(9B25FE1D-FA23-4e50-9784-6DF8B26F8A49), + pointer_default(unique) + ] + interface IDvbSubtitlingDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetCountOfRecords([out] BYTE * pbVal); + + HRESULT GetRecordLangId([in] BYTE bRecordIndex, + [out] ULONG * pulVal); + + HRESULT GetRecordSubtitlingType([in] BYTE bRecordIndex, + [out] BYTE * pbVal); + HRESULT GetRecordCompositionPageID([in] BYTE bRecordIndex, + [out] WORD * pwVal); + HRESULT GetRecordAncillaryPageID([in] BYTE bRecordIndex, + [out] WORD * pwVal); + }; + + //////////////////////////////////// + // + // IDvbServiceDescriptor Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(F9C7FBCF-E2D6-464d-B32D-2EF526E49290), + pointer_default(unique) + ] + interface IDvbServiceDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetServiceType([out] BYTE * pbVal); + + HRESULT GetServiceProviderName([out AM_ANNOTATION("_Outptr_")] char ** pszName); + + HRESULT GetServiceProviderNameW([out AM_ANNOTATION("_Outptr_")] BSTR* pbstrName); + + HRESULT GetServiceName([out AM_ANNOTATION("_Outptr_")] char ** pszName); + + HRESULT GetProcessedServiceName([out] BSTR *pbstrName); + + HRESULT GetServiceNameEmphasized([out] BSTR *pbstrName); + }; + + //////////////////////////////////// + // + // IDvbServiceDescriptor2 Interface + // Added generic string functions + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(D6C76506-85AB-487C-9B2B-36416511E4A2), + pointer_default(unique) + ] + interface IDvbServiceDescriptor2 : IDvbServiceDescriptor + { + HRESULT GetServiceProviderNameW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName); + + HRESULT GetServiceNameW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName); + }; + + + + //////////////////////////////////// + // + // IDvbServiceListDescriptor Interface + // for DVB/ISDB + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(05DB0D8F-6008-491a-ACD3-7090952707D0), + pointer_default(unique) + ] + interface IDvbServiceListDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetCountOfRecords([out] BYTE * pbVal); + + HRESULT GetRecordServiceId([in] BYTE bRecordIndex, + [out] WORD * pwVal); + + HRESULT GetRecordServiceType([in] BYTE bRecordIndex, + [out] BYTE * pbVal); + }; + + ///////////////////////////////////////////////// + // + // IDvbMultilingualServiceNameDescriptor Interface + // + ///////////////////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(2D80433B-B32C-47ef-987F-E78EBB773E34), + pointer_default(unique) + ] + interface IDvbMultilingualServiceNameDescriptor : IUnknown + { + HRESULT GetTag([out] BYTE * pbVal); + + HRESULT GetLength([out] BYTE * pbVal); + + HRESULT GetCountOfRecords([out] BYTE * pbVal); + + HRESULT GetRecordLangId ([in] BYTE bRecordIndex, + [out] ULONG * ulVal); + + HRESULT GetRecordServiceProviderNameW( + [in] BYTE bRecordIndex, + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName); + + HRESULT GetRecordServiceNameW( + [in] BYTE bRecordIndex, + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName); + }; + + /////////////////////////////////////////////////////////// + // + // IDvbNetworkNameDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(5B2A80CF-35B9-446C-B3E4-048B761DBC51), + pointer_default(unique) + ] + interface IDvbNetworkNameDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetNetworkName( + [out AM_ANNOTATION("_Outptr_")] char ** pszName + ); + HRESULT GetNetworkNameW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName); + }; + + + + /////////////////////////////////////////////////////////// + // + // IDvbShortEventDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(B170BE92-5B75-458E-9C6E-B0008231491A), + pointer_default(unique) + ] + interface IDvbShortEventDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetLanguageCode( + [out AM_ANNOTATION("_Out_writes_(4)")] char * pszCode + ); + HRESULT GetEventNameW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName + ); + HRESULT GetTextW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrText + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IDvbExntededEventDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(C9B22ECA-85F4-499F-B1DB-EFA93A91EE57), + pointer_default(unique) + ] + interface IDvbExtendedEventDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetDescriptorNumber( + [out] BYTE * pbVal + ); + HRESULT GetLastDescriptorNumber( + [out] BYTE * pbVal + ); + HRESULT GetLanguageCode( + [out AM_ANNOTATION("_Out_writes_(4)")] char * pszCode + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetRecordItemW( + [in] BYTE bRecordIndex, + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrDesc, + [out] BSTR * pbstrItem + ); + HRESULT GetConcatenatedItemW( + [in] IDvbExtendedEventDescriptor * pFollowingDescriptor, + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrDesc, + [out] BSTR * pbstrItem + ); + HRESULT GetTextW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrText + ); + HRESULT GetConcatenatedTextW( + [in] IDvbExtendedEventDescriptor * FollowingDescriptor, + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrText + ); + HRESULT GetRecordItemRawBytes( + [in] BYTE bRecordIndex, + [out] BYTE ** ppbRawItem, + [out] BYTE * pbItemLength + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IDvbComponentDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(91E405CF-80E7-457F-9096-1B9D1CE32141), + pointer_default(unique) + ] + interface IDvbComponentDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetStreamContent( + [out] BYTE * pbVal + ); + HRESULT GetComponentType( + [out] BYTE * pbVal + ); + HRESULT GetComponentTag( + [out] BYTE * pbVal + ); + HRESULT GetLanguageCode( + [out AM_ANNOTATION("_Out_writes_(4)")] char * pszCode + ); + HRESULT GetTextW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrText + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IDvbContentDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(2E883881-A467-412A-9D63-6F2B6DA05BF0), + pointer_default(unique) + ] + interface IDvbContentDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetRecordContentNibbles( + [in] BYTE bRecordIndex, + [out] BYTE * pbValLevel1, + [out] BYTE * pbValLevel2 + ); + HRESULT GetRecordUserNibbles( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal1, + [out] BYTE * pbVal2 + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IDvbParentalRatingDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(3AD9DDE1-FB1B-4186-937F-22E6B5A72A10), + pointer_default(unique) + ] + interface IDvbParentalRatingDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetRecordRating( + [in] BYTE bRecordIndex, + [out AM_ANNOTATION("_Out_writes_(4)")] char * pszCountryCode, + [out] BYTE * pbVal + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IIsdbTerrestrialDeliverySystemDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(39FAE0A6-D151-44DD-A28A-765DE5991670), + pointer_default(unique) + ] + interface IIsdbTerrestrialDeliverySystemDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetAreaCode( + [out] WORD * pwVal + ); + HRESULT GetGuardInterval( + [out] BYTE * pbVal + ); + HRESULT GetTransmissionMode( + [out] BYTE * pbVal + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetRecordFrequency( + [in] BYTE bRecordIndex, + [out] DWORD * pdwVal + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IIsdbTSInformationDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(D7AD183E-38F5-4210-B55F-EC8D601BBD47), + pointer_default(unique) + ] + interface IIsdbTSInformationDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetRemoteControlKeyId( + [out] BYTE * pbVal + ); + HRESULT GetTSNameW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetRecordTransmissionTypeInfo( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetRecordNumberOfServices( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetRecordServiceIdByIndex( + [in] BYTE bRecordIndex, + [in] BYTE bServiceIndex, + [out] WORD * pdwVal + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IIsdbDigitalCopyControlDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(1A28417E-266A-4BB8-A4BD-D782BCFB8161), + pointer_default(unique) + ] + interface IIsdbDigitalCopyControlDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetCopyControl( + [out] BYTE * pbDigitalRecordingControlData, + [out] BYTE * pbCopyControlType, + [out] BYTE * pbAPSControlData, + [out] BYTE * pbMaximumBitrate + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetRecordCopyControl( + [in] BYTE bRecordIndex, + [out] BYTE * pbComponentTag, + [out] BYTE * pbDigitalRecordingControlData, + [out] BYTE * pbCopyControlType, + [out] BYTE * pbAPSControlData, + [out] BYTE * pbMaximumBitrate + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IIsdbAudioComponentDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(679D2002-2425-4BE4-A4C7-D6632A574F4D), + pointer_default(unique) + ] + interface IIsdbAudioComponentDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetStreamContent( + [out] BYTE * pbVal + ); + HRESULT GetComponentType( + [out] BYTE * pbVal + ); + HRESULT GetComponentTag( + [out] BYTE * pbVal + ); + HRESULT GetStreamType( + [out] BYTE * pbVal + ); + HRESULT GetSimulcastGroupTag( + [out] BYTE * pbVal + ); + HRESULT GetESMultiLingualFlag( + [out] BOOL * pfVal + ); + HRESULT GetMainComponentFlag( + [out] BOOL * pfVal + ); + HRESULT GetQualityIndicator( + [out] BYTE * pbVal + ); + HRESULT GetSamplingRate( + [out] BYTE * pbVal + ); + HRESULT GetLanguageCode( + [out AM_ANNOTATION("_Out_writes_(4)")] char * pszCode + ); + HRESULT GetLanguageCode2( + [out AM_ANNOTATION("_Out_writes_(4)")] char * pszCode + ); + HRESULT GetTextW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrText + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IIsdbDataContentDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(A428100A-E646-4BD6-AA14-6087BDC08CD5), + pointer_default(unique) + ] + interface IIsdbDataContentDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetDataComponentId( + [out] WORD * pwVal + ); + HRESULT GetEntryComponent( + [out] BYTE * pbVal + ); + HRESULT GetSelectorLength( + [out] BYTE * pbVal + ); + HRESULT GetSelectorBytes( + [in] BYTE bBufLength, + [out] BYTE * pbBuf + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetRecordComponentRef( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetLanguageCode( + [out AM_ANNOTATION("_Out_writes_(4)")] char * pszCode + ); + HRESULT GetTextW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrText + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IIsdbCAContractInformationDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(08E18B25-A28F-4E92-821E-4FCED5CC2291), + pointer_default(unique) + ] + interface IIsdbCAContractInformationDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetCASystemId( + [out] WORD * pwVal + ); + HRESULT GetCAUnitId( + [out] BYTE * pbVal + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetRecordComponentTag( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetContractVerificationInfoLength( + [out] BYTE * pbVal + ); + HRESULT GetContractVerificationInfo( + [in] BYTE bBufLength, + [out] BYTE * pbBuf + ); + HRESULT GetFeeNameW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IIsdbEventGroupDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(94B06780-2E2A-44DC-A966-CC56FDABC6C2), + pointer_default(unique) + ] + interface IIsdbEventGroupDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetGroupType( + [out] BYTE * pbVal + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetRecordEvent( + [in] BYTE bRecordIndex, + [out] WORD * pwServiceId, + [out] WORD * pwEventId + ); + HRESULT GetCountOfRefRecords( + [out] BYTE * pbVal + ); + HRESULT GetRefRecordEvent( + [in] BYTE bRecordIndex, + [out] WORD * pwOriginalNetworkId, + [out] WORD * pwTransportStreamId, + [out] WORD * pwServiceId, + [out] WORD * pwEventId + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IIsdbComponentGroupDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(A494F17F-C592-47D8-8943-64C9A34BE7B9), + pointer_default(unique) + ] + interface IIsdbComponentGroupDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetComponentGroupType( + [out] BYTE * pbVal + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetRecordGroupId( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetRecordNumberOfCAUnit( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetRecordCAUnitCAUnitId( + [in] BYTE bRecordIndex, + [in] BYTE bCAUnitIndex, + [out] BYTE * pbVal + ); + HRESULT GetRecordCAUnitNumberOfComponents( + [in] BYTE bRecordIndex, + [in] BYTE bCAUnitIndex, + [out] BYTE * pbVal + ); + HRESULT GetRecordCAUnitComponentTag( + [in] BYTE bRecordIndex, + [in] BYTE bCAUnitIndex, + [in] BYTE bComponentIndex, + [out] BYTE * pbVal + ); + HRESULT GetRecordTotalBitRate( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetRecordTextW( + [in] BYTE bRecordIndex, + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrText + ); + }; + + + + /////////////////////////////////////////////////////////// + // + // IIsdbSeriesDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(07EF6370-1660-4F26-87FC-614ADAB24B11), + pointer_default(unique) + ] + interface IIsdbSeriesDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetSeriesId( + [out] WORD * pwVal + ); + HRESULT GetRepeatLabel( + [out] BYTE * pbVal + ); + HRESULT GetProgramPattern( + [out] BYTE * pbVal + ); + HRESULT GetExpireDate( + [out] BOOL * pfValid, + [out] MPEG_DATE_AND_TIME * pmdtVal + ); + HRESULT GetEpisodeNumber( + [out] WORD * pwVal + ); + HRESULT GetLastEpisodeNumber( + [out] WORD * pwVal + ); + HRESULT GetSeriesNameW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName + ); + }; + + /////////////////////////////////////////////////////////// + // + // IIsdbDownloadContentDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(5298661E-CB88-4F5F-A1DE-5F440C185B92), + pointer_default(unique) + ] + interface IIsdbDownloadContentDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetFlags( + [out] BOOL * pfReboot, + [out] BOOL * pfAddOn, + [out] BOOL * pfCompatibility, + [out] BOOL * pfModuleInfo, + [out] BOOL * pfTextInfo + ); + HRESULT GetComponentSize( + [out] DWORD * pdwVal + ); + HRESULT GetDownloadId( + [out] DWORD * pdwVal + ); + HRESULT GetTimeOutValueDII( + [out] DWORD * pdwVal + ); + HRESULT GetLeakRate( + [out] DWORD * pdwVal + ); + HRESULT GetComponentTag( + [out] BYTE * pbVal + ); + HRESULT GetCompatiblityDescriptorLength( + [out] WORD * pwLength + ); + HRESULT GetCompatiblityDescriptor( + [out] BYTE ** ppbData + ); + HRESULT GetCountOfRecords( + [out] WORD * pwVal + ); + HRESULT GetRecordModuleId( + [in] WORD wRecordIndex, + [out] WORD * pwVal + ); + HRESULT GetRecordModuleSize( + [in] WORD wRecordIndex, + [out] DWORD * pdwVal + ); + HRESULT GetRecordModuleInfoLength( + [in] WORD wRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetRecordModuleInfo( + [in] WORD wRecordIndex, + [out] BYTE ** ppbData + ); + HRESULT GetTextLanguageCode( + [out AM_ANNOTATION("_Out_writes_(4)")] char * szCode + ); + HRESULT GetTextW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrName + ); + }; + + /////////////////////////////////////////////////////////// + // + // IIsdbLogoTransmissionDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(E0103F49-4AE1-4F07-9098-756DB1FA88CD), + pointer_default(unique) + ] + interface IIsdbLogoTransmissionDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetLogoTransmissionType( + [out] BYTE * pbVal + ); + HRESULT GetLogoId( + [out] WORD * pwVal + ); + HRESULT GetLogoVersion( + [out] WORD * pwVal + ); + HRESULT GetDownloadDataId( + [out] WORD * pwVal + ); + HRESULT GetLogoCharW( + [in] DVB_STRCONV_MODE convMode, + [out] BSTR * pbstrChar + ); + }; + + /////////////////////////////////////////////////////////// + // + // IIsdbSIParameterDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(F837DC36-867C-426a-9111-F62093951A45), + pointer_default(unique) + ] + interface IIsdbSIParameterDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetParameterVersion( + [out] BYTE * pbVal + ); + HRESULT GetUpdateTime( + [out] MPEG_DATE * pVal + ); + HRESULT GetRecordNumberOfTable( + [out] BYTE * pbVal + ); + HRESULT GetTableId( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetTableDescriptionLength( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetTableDescriptionBytes( + [in] BYTE bRecordIndex, + [in, out] BYTE * pbBufferLength, + [out] BYTE * pbBuffer + ); + }; + + /////////////////////////////////////////////////////////// + // + // IIsdbEmergencyInformationDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(BA6FA681-B973-4da1-9207-AC3E7F0341EB), + pointer_default(unique) + ] + interface IIsdbEmergencyInformationDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetCountOfRecords( + [out] BYTE * pbVal + ); + HRESULT GetServiceId( + [in] BYTE bRecordIndex, + [out] WORD * pwVal + ); + HRESULT GetStartEndFlag( + [in] BYTE bRecordIndex, + [out] BYTE * pVal + ); + HRESULT GetSignalLevel( + [in] BYTE bRecordIndex, + [out] BYTE * pbVal + ); + HRESULT GetAreaCode( + [in] BYTE bRecordIndex, + [out] WORD ** ppwVal, // Upper 12-bits: area_code + [out] BYTE * pbNumAreaCodes + ); + }; + + /////////////////////////////////////////////////////////// + // + // IIsdbCADescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(0570AA47-52BC-42ae-8CA5-969F41E81AEA), + pointer_default(unique) + ] + interface IIsdbCADescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetCASystemId( + [out] WORD * pwVal + ); + HRESULT GetReservedBits( + [out] BYTE * pbVal + ); + HRESULT GetCAPID( + [out] WORD * pwVal + ); + HRESULT GetPrivateDataBytes( + [in, out] BYTE * pbBufferLength, // retuen reqired buffer length if pbBuffer is null. + [out] BYTE * pbBuffer + ); + }; + + /////////////////////////////////////////////////////////// + // + // IIsdbCAServiceDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(39CBEB97-FF0B-42a7-9AB9-7B9CFE70A77A), + pointer_default(unique) + ] + interface IIsdbCAServiceDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetCASystemId( + [out] WORD * pwVal + ); + HRESULT GetCABroadcasterGroupId( + [out] BYTE * pbVal + ); + HRESULT GetMessageControl( + [out] BYTE * pbVal + ); + HRESULT GetServiceIds( + [in, out] BYTE * pbNumServiceIds, // retuen reqired number of IDs if pwServiceIds is null. + [out] WORD * pwServiceIds + ); + }; + + /////////////////////////////////////////////////////////// + // + // IIsdbHierarchicalTransmissionDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(B7B3AE90-EE0B-446d-8769-F7E2AA266AA6), + pointer_default(unique) + ] + interface IIsdbHierarchicalTransmissionDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] BYTE * pbVal + ); + HRESULT GetFutureUse1( + [out] BYTE * pbVal // 7-bits + ); + HRESULT GetQualityLevel( + [out] BYTE * pbVal // 1-bits + ); + HRESULT GetFutureUse2( + [out] BYTE * pbVal // 3-bits + ); + HRESULT GetReferencePid( + [out] WORD * pwVal // 13-bits + ); + }; + + /////////////////////////////////////////////////////////// + // + // stream_identifier_descriptor + // It has only one byte body (component_tag). + // We will not define particular interface. + // + /////////////////////////////////////////////////////////// +cpp_quote("#define COMPONENT_TAG_CAPTION_MIN 0x30") +cpp_quote("#define COMPONENT_TAG_CAPTION_MAX 0x37") +cpp_quote("#define COMPONENT_TAG_SUPERIMPOSE_MIN 0x38") +cpp_quote("#define COMPONENT_TAG_SUPERIMPOSE_MAX 0x3F") + +interface IPBDA_EIT; +interface IPBDA_Services; + //////////////////////////////////// + // + // IPBDASiParser Interface + // + //////////////////////////////////// + + [ + AM_LOCAL + object, + uuid(9DE49A74-ABA2-4a18-93E1-21F17F95C3C3), + pointer_default(unique) + ] + interface IPBDASiParser : IUnknown + { + HRESULT Initialize([in] IUnknown * punk + ); + + + HRESULT GetEIT([in] DWORD dwSize , + [in] BYTE *pBuffer, + [out] IPBDA_EIT ** ppEIT + ); + + HRESULT GetServices ([in] DWORD dwSize , + [in] const BYTE *pBuffer, + [out] IPBDA_Services ** ppServices + ); + }; + + //////////////////////////////////// + // + // IPBDA_EIT Interface + // + //////////////////////////////////// + + [ + object, + local, + uuid(A35F2DEA-098F-4ebd-984C-2BD4C3C8CE0A), + helpstring("IPBDA_EIT Interface"), + pointer_default(unique) + ] + interface IPBDA_EIT : IUnknown + { + HRESULT Initialize( + [in] DWORD size, + [in] [size_is(size)] const BYTE *pBuffer + ); + + /* Table level data */ + HRESULT GetTableId( + [out] BYTE * pbVal + ); + + HRESULT GetVersionNumber( + [out] WORD * pwVal + ); + + HRESULT GetServiceIdx ( + [out] ULONG64 * plwVal + ); + + + /* Descriptors follow here */ + + HRESULT GetCountOfRecords( + [out] DWORD * pdwVal + ); + + HRESULT GetRecordEventId( + [in] DWORD dwRecordIndex, + [out] ULONG64 * plwVal + ); + + HRESULT GetRecordStartTime( + [in] DWORD dwRecordIndex, + [out] MPEG_DATE_AND_TIME * pmdtVal + ); + + HRESULT GetRecordDuration( + [in] DWORD dwRecordIndex, + [out] MPEG_DURATION * pmdVal + ); + + /* Descriptors follow here */ + + HRESULT GetRecordCountOfDescriptors( + [in] DWORD dwRecordIndex, + [out] DWORD * pdwVal + ); + + HRESULT GetRecordDescriptorByIndex( + [in] DWORD dwRecordIndex, + [in] DWORD dwIndex, + [out] IGenericDescriptor ** ppDescriptor + ); + + HRESULT GetRecordDescriptorByTag( + [in] DWORD dwRecordIndex, + [in] BYTE bTag, + [in, out] DWORD * pdwCookie, // OPTIONAL + [out] IGenericDescriptor ** ppDescriptor + ); + + }; + + //////////////////////////////////// + // + // IPBDA_Services Interface + // + //////////////////////////////////// + + [ + object, + local, + uuid(944EAB37-EED4-4850-AFD2-77E7EFEB4427), + helpstring("IPBDA_Services Interface"), + pointer_default(unique) + ] + interface IPBDA_Services : IUnknown + { + HRESULT Initialize( + [in] DWORD size, + [in] [size_is(size)] BYTE *pBuffer + ); + + HRESULT GetCountOfRecords( + [out] DWORD * pdwVal + ); + + HRESULT GetRecordByIndex ( + [in] DWORD dwRecordIndex, + [out] ULONG64 *pul64ServiceIdx + ); + }; + + /////////////////////////////////////////////////////////// + // + // IPBDAEntitlementDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(22632497-0DE3-4587-AADC-D8D99017E760), + pointer_default(unique) + ] + interface IPBDAEntitlementDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + + HRESULT GetLength( + [out] WORD * pwVal + ); + + HRESULT GetToken ( + [out] BYTE ** ppbTokenBuffer, + [out] DWORD * pdwTokenLength + ); + + }; + + /////////////////////////////////////////////////////////// + // + // IPBDAAttributesDescriptor Interface + // + /////////////////////////////////////////////////////////// + [ + AM_LOCAL + object, + uuid(313B3620-3263-45a6-9533-968BEFBEAC03), + pointer_default(unique) + ] + interface IPBDAAttributesDescriptor : IUnknown + { + HRESULT GetTag( + [out] BYTE * pbVal + ); + HRESULT GetLength( + [out] WORD * pwVal + ); + HRESULT GetAttributePayload ( + [out] BYTE ** ppbAttributeBuffer, + [out] DWORD * pdwAttributeLength + ); + + }; + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EapAuthenticatorActionDefine.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EapAuthenticatorActionDefine.h new file mode 100644 index 0000000000000000000000000000000000000000..fe364331912c46f17d3d4789a6c8b898606bda0d --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EapAuthenticatorActionDefine.h @@ -0,0 +1,104 @@ +//////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation. +// +// SYNOPSIS +// +// IDL source for interaction with EAPHost supplicants. +// +//////////////////////////////////////////////////////////// + +#ifndef EAPAUTHENTICATORACTIONDEFINE_H +#define EAPAUTHENTICATORACTIONDEFINE_H + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +typedef +#ifdef __midl + [v1_enum] +#endif +enum _EAP_METHOD_AUTHENTICATOR_RESPONSE_ACTION +{ + // Discard the request as EAP cannot use it. + EAP_METHOD_AUTHENTICATOR_RESPONSE_DISCARD = 0, + // Send the packet to the authenticator + EAP_METHOD_AUTHENTICATOR_RESPONSE_SEND, + // Respond to EAP by acting on the returned attributes + EAP_METHOD_AUTHENTICATOR_RESPONSE_RESULT, + // The supplicant needs to take an action based on the context. + EAP_METHOD_AUTHENTICATOR_RESPONSE_RESPOND, + EAP_METHOD_AUTHENTICATOR_RESPONSE_AUTHENTICATE, + EAP_METHOD_AUTHENTICATOR_RESPONSE_HANDLE_IDENTITY + // The supplicant needs to take no action at all. + //EAP_METHOD_AUTHENTICATOR_RESPONSE_NONE +} EAP_METHOD_AUTHENTICATOR_RESPONSE_ACTION; + +typedef struct _EAP_METHOD_AUTHENTICATOR_RESULT +{ + BOOL fIsSuccess; + DWORD dwFailureReason; + EAP_ATTRIBUTES* pAuthAttribs; +} EAP_METHOD_AUTHENTICATOR_RESULT; + +typedef +#ifdef __midl + [v1_enum] +#endif +enum tagEapPeerMethodResponseAction +{ + // Discard the request as EAP cannot use it. + EapPeerMethodResponseActionDiscard = 0, + // Send the packet to the authenticator + EapPeerMethodResponseActionSend, + // Respond to EAP by acting on the returned attributes + EapPeerMethodResponseActionResult, + // Invoke appropriate UI based on the context + EapPeerMethodResponseActionInvokeUI, + // The supplicant needs to take an action based on the context. + EapPeerMethodResponseActionRespond, + // The supplicant needs to take no action at all. + EapPeerMethodResponseActionNone +} EapPeerMethodResponseAction; + +// Structures used by EAP methods on the peer to communicate with the host. + +typedef struct tagEapPeerMethodOuput +{ + //EapPeerMethodDecision decision; + //EapPeerMethodState state; + EapPeerMethodResponseAction action; + BOOL fAllowNotifications; +} EapPeerMethodOutput; + +// ENUMERATIONS USED by EAP methods on the peer to communicate their status to +// EapHost. + +typedef +#ifdef __midl + [v1_enum] +#endif +enum tagEapPeerMethodResultReason +{ + EapPeerMethodResultUnknown = 1, + EapPeerMethodResultSuccess, + EapPeerMethodResultFailure +} EapPeerMethodResultReason, EapPeerMethodResultReasonOle; + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // EAPAUTHENTICATORACTIONDEFINE_H diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EapHostError.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EapHostError.h new file mode 100644 index 0000000000000000000000000000000000000000..abdbfa89fc9265f263bd5335ddd8c2831a4731dc --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EapHostError.h @@ -0,0 +1,355 @@ +////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation +// +// SYNOPSIS +// +// Scenario-specific error codes, reported by EapHost and Eap Method DLLs. +// +/////////////////////////////////////////////////////////////////////////////// + +#ifndef EAPHOSTERROR_H +#define EAPHOSTERROR_H +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +#define FACILITY_EAP_MESSAGE 0x0842 // 66L + MessageId bit + + +// Errors common across different groups. +#define _EAP_CERT_FIRST (+ 0x0) +#define _EAP_CERT_LAST (+ 0xF) + +#define _EAP_CERT_NOT_FOUND (+ 0x1) +#define _EAP_CERT_INVALID (+ 0x2) +#define _EAP_CERT_EXPIRED (+ 0x3) +#define _EAP_CERT_REVOKED (+ 0x4) +#define _EAP_CERT_OTHER_ERROR (+ 0x5) +#define _EAP_CERT_REJECTED (+ 0x6) +#define _EAP_CERT_NAME_REQUIRED (+ 0x7) + +#define _EAP_GENERAL_FIRST (+ 0x10) // (+16) +#define _EAP_GENERAL_LAST (+ 0x3F) // (+31) + +// +// Individual groups of Eap-related Errors. +// + +#define EAP_GROUP_MASK 0x0000FF00L + + +#define EAP_E_EAPHOST_FIRST 0x80420000L +#define EAP_E_EAPHOST_LAST 0x804200FFL +#define EAP_I_EAPHOST_FIRST 0x80420000L +#define EAP_I_EAPHOST_LAST 0x804200FFL + +// Cert-Store can't be accessed on either authenticator or peer +#define EAP_E_CERT_STORE_INACCESSIBLE 0x80420010 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 0) + +// Requested EAP-method is not installed +#define EAP_E_EAPHOST_METHOD_NOT_INSTALLED 0x80420011 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 1) + +// +#define EAP_E_EAPHOST_THIRDPARTY_METHOD_HOST_RESET 0x80420012 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 2) + +// EAPHost not able to communicate with EAPQEC on a NAP enabled client +#define EAP_E_EAPHOST_EAPQEC_INACCESSIBLE 0x80420013 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 3) + +// EAPHost returns this error, if the authenticator fails the authentication after peer sent its identity +#define EAP_E_EAPHOST_IDENTITY_UNKNOWN 0x80420014 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 4) + +// EAPHost returns this error on authentication failure. +#define EAP_E_AUTHENTICATION_FAILED 0x80420015 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 5) + +// EAPHost returns this error, when the client & the server aren't configured with compatible EAP-types. +#define EAP_I_EAPHOST_EAP_NEGOTIATION_FAILED 0x40420016 // (EAP_I_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 6) + +// EAPMethod received an EAP packet that can not be processed +#define EAP_E_EAPHOST_METHOD_INVALID_PACKET 0x80420017 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 7) + +// EAPHost received a packet that can not be processed. +#define EAP_E_EAPHOST_REMOTE_INVALID_PACKET 0x80420018 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 8) + +// EAPHost ConfigSchema validation failed +#define EAP_E_EAPHOST_XML_MALFORMED 0x80420019 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 9) + +//Method doesn't support SSO for the provided config +#define EAP_E_METHOD_CONFIG_DOES_NOT_SUPPORT_SSO 0x8042001A // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + A) + +// EAPHost returns this error, when a configured EAP-method does not support a requested operation (procedure call) +#define EAP_E_EAPHOST_METHOD_OPERATION_NOT_SUPPORTED 0x80420020 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 10) + + +#define EAP_E_USER_FIRST 0x80420100L +#define EAP_E_USER_LAST 0x804201FFL +#define EAP_I_USER_FIRST 0x40420100L +#define EAP_I_USER_LAST 0x404201FFL + +// EAPHost could not find user-certificate for authentication +#define EAP_E_USER_CERT_NOT_FOUND 0x80420100 // (EAP_E_USER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_NOT_FOUND) + +// user-cert being user for authentication does not have proper usage (EKU) set +#define EAP_E_USER_CERT_INVALID 0x80420101 // (EAP_E_USER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_INVALID) + +// EAPhost found user-cert which has expired already +#define EAP_E_USER_CERT_EXPIRED 0x80420102 // (EAP_E_USER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_EXPIRED) + +// user-cert being used for authentication has been revoked +#define EAP_E_USER_CERT_REVOKED 0x80420103 // (EAP_E_USER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_REVOKED) + +// unknown error occured with user-cert being used for authentication +#define EAP_E_USER_CERT_OTHER_ERROR 0x80420104 // (EAP_E_USER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_OTHER_ERROR) + +// Authenticator rejected user-cert for authentication +#define EAP_E_USER_CERT_REJECTED 0x80420105 // (EAP_E_USER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_REJECTED) + +// Received EAP-Failure after Identity exchange: There is likely a problem with the authenticating user's account. +#define EAP_I_USER_ACCOUNT_OTHER_ERROR 0x40420110 // (EAP_I_USER_FIRST + _EAP_GENERAL_FIRST + 0 + +// Authenticator rejected user credentials for authentication +#define EAP_E_USER_CREDENTIALS_REJECTED 0x80420111 // (EAP_E_USER_FIRST + _EAP_GENERAL_FIRST + 1) + +// Authenticator rejected user credentials for authentication +#define EAP_E_USER_NAME_PASSWORD_REJECTED 0x80420112 // (EAP_E_USER_FIRST + _EAP_GENERAL_FIRST + 2) + +//No Smart Card Reader Present +#define EAP_E_NO_SMART_CARD_READER 0x80420113 // (EAP_E_USER_FIRST + _EAP_GENERAL_FIRST + 3) + + +#define EAP_E_SERVER_FIRST 0x80420200L +#define EAP_E_SERVER_LAST 0x804202FFL + +// EAPHost could not find server-certificate for authentication +#define EAP_E_SERVER_CERT_NOT_FOUND 0x80420200 // (EAP_E_SERVER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_NOT_FOUND) + +// server-cert being user for authentication does not have proper usage (EKU) set +#define EAP_E_SERVER_CERT_INVALID 0x80420201 // (EAP_E_SERVER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_INVALID) + +// EAPhost found server-cert which has expired already +#define EAP_E_SERVER_CERT_EXPIRED 0x80420202 // (EAP_E_SERVER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_EXPIRED) + +// server-cert being used for authentication has been revoked +#define EAP_E_SERVER_CERT_REVOKED 0x80420203 // (EAP_E_SERVER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_REVOKED) + +// unknown error occured with server-cert being used for authentication +#define EAP_E_SERVER_CERT_OTHER_ERROR 0x80420204 // (EAP_E_SERVER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_OTHER_ERROR) + + +#define EAP_E_USER_ROOT_CERT_FIRST 0x80420300L +#define EAP_E_USER_ROOT_CERT_LAST 0x804203FFL + + +// EAPHost could not find a certificate in trusted-root cert-store for user cert velidation +#define EAP_E_USER_ROOT_CERT_NOT_FOUND 0x80420300 // (EAP_E_USER_ROOT_CERT_FIRST + _EAP_CERT_FIRST + _EAP_CERT_NOT_FOUND) + +// The authentication failed because the root certificate used for this network is invalid +#define EAP_E_USER_ROOT_CERT_INVALID 0x80420301 // (EAP_E_USER_ROOT_CERT_FIRST + _EAP_CERT_FIRST + _EAP_CERT_INVALID) + +// Trusted root certificate needed for user-cert validation has been expired. +#define EAP_E_USER_ROOT_CERT_EXPIRED 0x80420302 // (EAP_E_USER_ROOT_CERT_FIRST + _EAP_CERT_FIRST + _EAP_CERT_EXPIRED) + +#define EAP_E_SERVER_ROOT_CERT_FIRST 0x80420400L +#define EAP_E_SERVER_ROOT_CERT_LAST 0x804204FFL + +// EAPHost could not find a Root certificate in trusted-root cert-store for server cert velidation +#define EAP_E_SERVER_ROOT_CERT_NOT_FOUND 0x80420400 // (EAP_E_SERVER_ROOT_CERT_FIRST + _EAP_CERT_FIRST + _EAP_CERT_NOT_FOUND) + +// The authentication failed because the server certificate required for this network on the server computer is invalid +#define EAP_E_SERVER_ROOT_CERT_INVALID 0x80420401 // (EAP_E_SERVER_ROOT_CERT_FIRST + _EAP_CERT_FIRST + _EAP_CERT_INVALID) + +// The authentication failed because the certificate on the server computer does not have a server name specified +#define EAP_E_SERVER_ROOT_CERT_NAME_REQUIRED 0x80420406 // (EAP_E_SERVER_ROOT_CERT_FIRST + _EAP_CERT_FIRST + _EAP_CERT_NAME_REQUIRED) + +// The authentication failed because there is no valid SIM for authentication +#define EAP_E_SIM_NOT_VALID 0x80420500 + +// Alternate names for certain errors. +#define EAP_METHOD_INVALID_PACKET EAP_E_EAPHOST_METHOD_INVALID_PACKET +#define EAP_INVALID_PACKET EAP_E_EAPHOST_REMOTE_INVALID_PACKET + +// This is not a fixed GUID when it reaches supplicant, but 1st portion will be +// filled by Generic Win32/Ras error. This helps create unique GUID for every +// unique error that we don't understand. This helps collect SQM data. +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Default \ + = { 0x00000000, 0x0000, 0x0000, 0, 0, 0, 0, 0, 0, 0, 0 }; + + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_MethodDLLNotFound \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 1 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactSysadmin \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 2 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_CertStoreInaccessible \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 4 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Generic_AuthFailure \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 1, 4 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_IdentityUnknown \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 2, 4 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_SimNotValid \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 3, 4 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Server_CertExpired \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 5 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Server_CertInvalid \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 6 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Server_CertNotFound \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 7 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Server_CertRevoked \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 8 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Server_CertOtherError \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 1, 8 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_CertExpired \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 9 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_CertInvalid \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0xA } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_CertNotFound \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0xB } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_CertOtherError \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0xC } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_CertRejected \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0xD } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_CertRevoked \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0xE } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_Account_OtherProblem \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 1, 0xE } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_CredsRejected \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 2, 0xE } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_Root_CertExpired \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0xF } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_Root_CertInvalid \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x10 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_Root_CertNotFound \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x11 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Server_Root_CertNameRequired \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x12 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Server_Root_CertNotFound \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 1, 0x12 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_ThirdPartyMethod_Host_Reset \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 2, 0x12 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_EapQecInaccessible \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 3, 0x12 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_Server_ClientSelectServerCert \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x18 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_User_AuthFailure \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x19 } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_User_GetNewCert \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x1A } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_User_SelectValidCert \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x1B } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_Retry_Authentication \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 1, 0x1B } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_EapNegotiationFailed \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x1C } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_XmlMalformed \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x1D } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_MethodDoesNotSupportOperation \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x1E } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_AuthFailure \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x1F } }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_IdentityUnknown \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x20 }}; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_NegotiationFailed \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x21}}; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_MethodNotFound \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x22} }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_RestartNap \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x23} }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_CertStoreInaccessible \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x24} }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_InvalidUserAccount \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x25} }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_RootCertInvalid \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x26} }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_RootCertNotFound \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x27} }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_RootExpired \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x28} }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_CertNameAbsent \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x29} }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_NoSmartCardReader \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x2A} }; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_No_SmartCardReader_Found \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x2B }}; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_InvalidUserCert \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x2C }}; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_Method_Not_Support_Sso \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x2D }}; + +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_No_ValidSim_Found \ + = { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x2E }}; + + EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Help_ObtainingCerts \ + = { 0xf535eea3, 0x1bdd, 0x46ca, { 0xa2, 0xfc, 0xa6, 0x65, 0x59, 0x39, 0xb7, 0xe8 } }; + +// This currently is a generic networking troubleshooting help page, not EAP specific. +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Help_Troubleshooting \ + = { 0x33307acf, 0x0698, 0x41ba, { 0xb0, 0x14, 0xea, 0x0a, 0x2e, 0xb8, 0xd0, 0xa8 } }; + +// This is used when the method does not supportSSO for provided config. +EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Method_Config_Does_Not_Support_Sso \ + = { 0xda18bd32, 0x004F, 0x41fa, { 0xae, 0x08, 0x0b, 0xc8, 0x5e, 0x58, 0x45, 0xac } }; + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // EAPHOSTERROR_H + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EapHostPeerTypes.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EapHostPeerTypes.h new file mode 100644 index 0000000000000000000000000000000000000000..db59999f75fc0b354a811c789ab94a47aab59416 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EapHostPeerTypes.h @@ -0,0 +1,158 @@ +//////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation. +// +// SYNOPSIS +// +// IDL source for interaction with EAPHost supplicants. +// +//////////////////////////////////////////////////////////// + +#ifndef EAPHOSTPEERTYPES_H +#define EAPHOSTPEERTYPES_H +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// Request to provide guest access. +#define EAP_PEER_FLAG_GUEST_ACCESS 0x00000040 + +typedef +#ifdef __midl + [v1_enum] +#endif + + +// Possible reasons for which EAP-method can call getResult from EAPhost +enum tagEapHostPeerMethodResultReason +{ + // if method has obtained success from some + EapHostPeerMethodResultAltSuccessReceived = 1, + + // method timedout waiting for response + EapHostPeerMethodResultTimeout, + + // normal completion of authentication process + EapHostPeerMethodResultFromMethod +} EapHostPeerMethodResultReason; + + +typedef +#ifdef __midl + [v1_enum] +#endif +enum tagEapHostPeerResponseAction +{ + // Discard the request as EAP cannot use it. + EapHostPeerResponseDiscard = 0, + // Send the packet to the authenticator + EapHostPeerResponseSend, + // Respond to EAP by acting on the returned attributes + EapHostPeerResponseResult, + // Invoke appropriate UI based on the context + EapHostPeerResponseInvokeUi, + // Display a string to the user received as part of a notification + // request + // EapHostPeerResponseNotification, + // The supplicant needs to take an action based on the context. + EapHostPeerResponseRespond, + // The supplicant needs to restart authentication with the same session. + //EapHostPeerResponseResetAuthentication, + // The session could not be found. So the supplicant either needs to + // start session again with the same packet or discard the packet. + EapHostPeerResponseStartAuthentication, + // The supplicant needs to take no action at all. + EapHostPeerResponseNone +} EapHostPeerResponseAction; + + +typedef +#ifdef __midl + [v1_enum] +#endif +enum tagEapHostPeerAuthParams { + EapHostPeerAuthStatus = 1, // current auth status + EapHostPeerIdentity, // obtain the inner method id + EapHostPeerIdentityExtendedInfo, // obtained from Identity packet + // This includes NLA information for wireless + EapHostNapInfo //obtain the Nap details +} EapHostPeerAuthParams; + + +typedef +#ifdef __midl + [v1_enum] +#endif + +// possible values for EAP status during authentication process +enum _EAPHOST_AUTH_STATUS +{ + EapHostInvalidSession = 0, + EapHostAuthNotStarted, + EapHostAuthIdentityExchange, + EapHostAuthNegotiatingType, + EapHostAuthInProgress, + EapHostAuthSucceeded, + EapHostAuthFailed +} EAPHOST_AUTH_STATUS; + + +// describes the current authentication info through different stages +// of EAP authentication process. +typedef struct _EAPHOST_AUTH_INFO +{ + EAPHOST_AUTH_STATUS status; + DWORD dwErrorCode; + DWORD dwReasonCode; +} EAPHOST_AUTH_INFO; + + +// Describes the isolation state of a machine, i.e. +// whether connectivity is affected. +typedef +#ifdef __midl + [v1_enum] +#endif +enum _ISOLATION_STATE +{ + ISOLATION_STATE_UNKNOWN = 0, + ISOLATION_STATE_NOT_RESTRICTED = 1, + ISOLATION_STATE_IN_PROBATION = 2, + ISOLATION_STATE_RESTRICTED_ACCESS = 3 +} ISOLATION_STATE; + +// This carries the result information passed from EAPHost to EAP-method, +// when EAP-method calls GetResult +typedef struct tagEapHostPeerMethodResult +{ + BOOL fIsSuccess; + UINT32 dwFailureReasonCode; + BOOL fSaveConnectionData; + UINT32 dwSizeofConnectionData; +#ifdef __midl + [size_is(dwSizeofConnectionData)] BYTE* pConnectionData; +#else + BYTE* pConnectionData; +#endif + BOOL fSaveUserData; + UINT32 dwSizeofUserData; +#ifdef __midl + [size_is(dwSizeofUserData)] BYTE* pUserData; +#else + BYTE* pUserData; +#endif + EAP_ATTRIBUTES* pAttribArray; + ISOLATION_STATE isolationState; + EAP_METHOD_INFO* pEapMethodInfo; + EAP_ERROR* pEapError; +} EapHostPeerMethodResult; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif //EAPHOSTPEERTYPES_IDL + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EditionUpgradeHelper.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EditionUpgradeHelper.h new file mode 100644 index 0000000000000000000000000000000000000000..f9f654c0968ba16a2c8a5af3bac4053fcc2ee676 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EditionUpgradeHelper.h @@ -0,0 +1,776 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __editionupgradehelper_h__ +#define __editionupgradehelper_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IEditionUpgradeHelper_FWD_DEFINED__ +#define __IEditionUpgradeHelper_FWD_DEFINED__ +typedef interface IEditionUpgradeHelper IEditionUpgradeHelper; + +#endif /* __IEditionUpgradeHelper_FWD_DEFINED__ */ + + +#ifndef __IWindowsLockModeHelper_FWD_DEFINED__ +#define __IWindowsLockModeHelper_FWD_DEFINED__ +typedef interface IWindowsLockModeHelper IWindowsLockModeHelper; + +#endif /* __IWindowsLockModeHelper_FWD_DEFINED__ */ + + +#ifndef __IEditionUpgradeBroker_FWD_DEFINED__ +#define __IEditionUpgradeBroker_FWD_DEFINED__ +typedef interface IEditionUpgradeBroker IEditionUpgradeBroker; + +#endif /* __IEditionUpgradeBroker_FWD_DEFINED__ */ + + +#ifndef __IContainerActivationHelper_FWD_DEFINED__ +#define __IContainerActivationHelper_FWD_DEFINED__ +typedef interface IContainerActivationHelper IContainerActivationHelper; + +#endif /* __IContainerActivationHelper_FWD_DEFINED__ */ + + +#ifndef __IClipServiceNotificationHelper_FWD_DEFINED__ +#define __IClipServiceNotificationHelper_FWD_DEFINED__ +typedef interface IClipServiceNotificationHelper IClipServiceNotificationHelper; + +#endif /* __IClipServiceNotificationHelper_FWD_DEFINED__ */ + + +#ifndef __IFClipNotificationHelper_FWD_DEFINED__ +#define __IFClipNotificationHelper_FWD_DEFINED__ +typedef interface IFClipNotificationHelper IFClipNotificationHelper; + +#endif /* __IFClipNotificationHelper_FWD_DEFINED__ */ + + +#ifndef __EditionUpgradeHelper_FWD_DEFINED__ +#define __EditionUpgradeHelper_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class EditionUpgradeHelper EditionUpgradeHelper; +#else +typedef struct EditionUpgradeHelper EditionUpgradeHelper; +#endif /* __cplusplus */ + +#endif /* __EditionUpgradeHelper_FWD_DEFINED__ */ + + +#ifndef __EditionUpgradeBroker_FWD_DEFINED__ +#define __EditionUpgradeBroker_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class EditionUpgradeBroker EditionUpgradeBroker; +#else +typedef struct EditionUpgradeBroker EditionUpgradeBroker; +#endif /* __cplusplus */ + +#endif /* __EditionUpgradeBroker_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_editionupgradehelper_0000_0000 */ +/* [local] */ + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + + +extern RPC_IF_HANDLE __MIDL_itf_editionupgradehelper_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_editionupgradehelper_0000_0000_v0_0_s_ifspec; + +#ifndef __IEditionUpgradeHelper_INTERFACE_DEFINED__ +#define __IEditionUpgradeHelper_INTERFACE_DEFINED__ + +/* interface IEditionUpgradeHelper */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IEditionUpgradeHelper; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D3E9E342-5DEB-43B6-849E-6913B85D503A") + IEditionUpgradeHelper : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CanUpgrade( + /* [out] */ __RPC__out BOOL *isAllowed) = 0; + + virtual HRESULT STDMETHODCALLTYPE UpdateOperatingSystem( + /* [string][in] */ __RPC__in_string LPCWSTR contentId) = 0; + + virtual HRESULT STDMETHODCALLTYPE ShowProductKeyUI( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetOsProductContentId( + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *contentId) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetGenuineLocalStatus( + /* [out] */ __RPC__out BOOL *isGenuine) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEditionUpgradeHelperVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEditionUpgradeHelper * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEditionUpgradeHelper * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEditionUpgradeHelper * This); + + DECLSPEC_XFGVIRT(IEditionUpgradeHelper, CanUpgrade) + HRESULT ( STDMETHODCALLTYPE *CanUpgrade )( + __RPC__in IEditionUpgradeHelper * This, + /* [out] */ __RPC__out BOOL *isAllowed); + + DECLSPEC_XFGVIRT(IEditionUpgradeHelper, UpdateOperatingSystem) + HRESULT ( STDMETHODCALLTYPE *UpdateOperatingSystem )( + __RPC__in IEditionUpgradeHelper * This, + /* [string][in] */ __RPC__in_string LPCWSTR contentId); + + DECLSPEC_XFGVIRT(IEditionUpgradeHelper, ShowProductKeyUI) + HRESULT ( STDMETHODCALLTYPE *ShowProductKeyUI )( + __RPC__in IEditionUpgradeHelper * This); + + DECLSPEC_XFGVIRT(IEditionUpgradeHelper, GetOsProductContentId) + HRESULT ( STDMETHODCALLTYPE *GetOsProductContentId )( + __RPC__in IEditionUpgradeHelper * This, + /* [string][out] */ __RPC__deref_out_opt_string LPWSTR *contentId); + + DECLSPEC_XFGVIRT(IEditionUpgradeHelper, GetGenuineLocalStatus) + HRESULT ( STDMETHODCALLTYPE *GetGenuineLocalStatus )( + __RPC__in IEditionUpgradeHelper * This, + /* [out] */ __RPC__out BOOL *isGenuine); + + END_INTERFACE + } IEditionUpgradeHelperVtbl; + + interface IEditionUpgradeHelper + { + CONST_VTBL struct IEditionUpgradeHelperVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEditionUpgradeHelper_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEditionUpgradeHelper_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEditionUpgradeHelper_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEditionUpgradeHelper_CanUpgrade(This,isAllowed) \ + ( (This)->lpVtbl -> CanUpgrade(This,isAllowed) ) + +#define IEditionUpgradeHelper_UpdateOperatingSystem(This,contentId) \ + ( (This)->lpVtbl -> UpdateOperatingSystem(This,contentId) ) + +#define IEditionUpgradeHelper_ShowProductKeyUI(This) \ + ( (This)->lpVtbl -> ShowProductKeyUI(This) ) + +#define IEditionUpgradeHelper_GetOsProductContentId(This,contentId) \ + ( (This)->lpVtbl -> GetOsProductContentId(This,contentId) ) + +#define IEditionUpgradeHelper_GetGenuineLocalStatus(This,isGenuine) \ + ( (This)->lpVtbl -> GetGenuineLocalStatus(This,isGenuine) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEditionUpgradeHelper_INTERFACE_DEFINED__ */ + + +#ifndef __IWindowsLockModeHelper_INTERFACE_DEFINED__ +#define __IWindowsLockModeHelper_INTERFACE_DEFINED__ + +/* interface IWindowsLockModeHelper */ +/* [uuid][object] */ + + +EXTERN_C const IID IID_IWindowsLockModeHelper; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("F342D19E-CC22-4648-BB5D-03CCF75B47C5") + IWindowsLockModeHelper : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetSMode( + /* [out] */ __RPC__out BOOL *isSmode) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWindowsLockModeHelperVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IWindowsLockModeHelper * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IWindowsLockModeHelper * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IWindowsLockModeHelper * This); + + DECLSPEC_XFGVIRT(IWindowsLockModeHelper, GetSMode) + HRESULT ( STDMETHODCALLTYPE *GetSMode )( + __RPC__in IWindowsLockModeHelper * This, + /* [out] */ __RPC__out BOOL *isSmode); + + END_INTERFACE + } IWindowsLockModeHelperVtbl; + + interface IWindowsLockModeHelper + { + CONST_VTBL struct IWindowsLockModeHelperVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWindowsLockModeHelper_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWindowsLockModeHelper_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWindowsLockModeHelper_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWindowsLockModeHelper_GetSMode(This,isSmode) \ + ( (This)->lpVtbl -> GetSMode(This,isSmode) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWindowsLockModeHelper_INTERFACE_DEFINED__ */ + + +#ifndef __IEditionUpgradeBroker_INTERFACE_DEFINED__ +#define __IEditionUpgradeBroker_INTERFACE_DEFINED__ + +/* interface IEditionUpgradeBroker */ +/* [unique][helpstring][oleautomation][nonextensible][dual][uuid][object] */ + + +EXTERN_C const IID IID_IEditionUpgradeBroker; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("FF19CBCF-9455-4937-B872-6B7929A460AF") + IEditionUpgradeBroker : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE InitializeParentWindow( + /* [in] */ OLE_HANDLE parentHandle) = 0; + + virtual HRESULT STDMETHODCALLTYPE UpdateOperatingSystem( + /* [string][in] */ __RPC__in_string BSTR parameter) = 0; + + virtual HRESULT STDMETHODCALLTYPE ShowProductKeyUI( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE CanUpgrade( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEditionUpgradeBrokerVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEditionUpgradeBroker * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEditionUpgradeBroker * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEditionUpgradeBroker * This); + + DECLSPEC_XFGVIRT(IEditionUpgradeBroker, InitializeParentWindow) + HRESULT ( STDMETHODCALLTYPE *InitializeParentWindow )( + __RPC__in IEditionUpgradeBroker * This, + /* [in] */ OLE_HANDLE parentHandle); + + DECLSPEC_XFGVIRT(IEditionUpgradeBroker, UpdateOperatingSystem) + HRESULT ( STDMETHODCALLTYPE *UpdateOperatingSystem )( + __RPC__in IEditionUpgradeBroker * This, + /* [string][in] */ __RPC__in_string BSTR parameter); + + DECLSPEC_XFGVIRT(IEditionUpgradeBroker, ShowProductKeyUI) + HRESULT ( STDMETHODCALLTYPE *ShowProductKeyUI )( + __RPC__in IEditionUpgradeBroker * This); + + DECLSPEC_XFGVIRT(IEditionUpgradeBroker, CanUpgrade) + HRESULT ( STDMETHODCALLTYPE *CanUpgrade )( + __RPC__in IEditionUpgradeBroker * This); + + END_INTERFACE + } IEditionUpgradeBrokerVtbl; + + interface IEditionUpgradeBroker + { + CONST_VTBL struct IEditionUpgradeBrokerVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEditionUpgradeBroker_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEditionUpgradeBroker_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEditionUpgradeBroker_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEditionUpgradeBroker_InitializeParentWindow(This,parentHandle) \ + ( (This)->lpVtbl -> InitializeParentWindow(This,parentHandle) ) + +#define IEditionUpgradeBroker_UpdateOperatingSystem(This,parameter) \ + ( (This)->lpVtbl -> UpdateOperatingSystem(This,parameter) ) + +#define IEditionUpgradeBroker_ShowProductKeyUI(This) \ + ( (This)->lpVtbl -> ShowProductKeyUI(This) ) + +#define IEditionUpgradeBroker_CanUpgrade(This) \ + ( (This)->lpVtbl -> CanUpgrade(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEditionUpgradeBroker_INTERFACE_DEFINED__ */ + + +#ifndef __IContainerActivationHelper_INTERFACE_DEFINED__ +#define __IContainerActivationHelper_INTERFACE_DEFINED__ + +/* interface IContainerActivationHelper */ +/* [uuid][nonextensible][oleautomation][dual][object] */ + + +EXTERN_C const IID IID_IContainerActivationHelper; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("B524F93F-80D5-4EC7-AE9E-D66E93ADE1FA") + IContainerActivationHelper : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CanActivateClientVM( + /* [retval][out] */ __RPC__out VARIANT_BOOL *isAllowed) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IContainerActivationHelperVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IContainerActivationHelper * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IContainerActivationHelper * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IContainerActivationHelper * This); + + DECLSPEC_XFGVIRT(IContainerActivationHelper, CanActivateClientVM) + HRESULT ( STDMETHODCALLTYPE *CanActivateClientVM )( + __RPC__in IContainerActivationHelper * This, + /* [retval][out] */ __RPC__out VARIANT_BOOL *isAllowed); + + END_INTERFACE + } IContainerActivationHelperVtbl; + + interface IContainerActivationHelper + { + CONST_VTBL struct IContainerActivationHelperVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IContainerActivationHelper_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IContainerActivationHelper_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IContainerActivationHelper_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IContainerActivationHelper_CanActivateClientVM(This,isAllowed) \ + ( (This)->lpVtbl -> CanActivateClientVM(This,isAllowed) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IContainerActivationHelper_INTERFACE_DEFINED__ */ + + +#ifndef __IClipServiceNotificationHelper_INTERFACE_DEFINED__ +#define __IClipServiceNotificationHelper_INTERFACE_DEFINED__ + +/* interface IClipServiceNotificationHelper */ +/* [uuid][nonextensible][oleautomation][dual][object] */ + + +EXTERN_C const IID IID_IClipServiceNotificationHelper; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C39948F0-6142-44FD-98CA-E1681A8D68B5") + IClipServiceNotificationHelper : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ShowToast( + /* [string][in] */ __RPC__in_string BSTR titleText, + /* [string][in] */ __RPC__in_string BSTR bodyText, + /* [string][in] */ __RPC__in_string BSTR packageName, + /* [string][in] */ __RPC__in_string BSTR appId, + /* [string][in] */ __RPC__in_string BSTR launchCommand) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IClipServiceNotificationHelperVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IClipServiceNotificationHelper * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IClipServiceNotificationHelper * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IClipServiceNotificationHelper * This); + + DECLSPEC_XFGVIRT(IClipServiceNotificationHelper, ShowToast) + HRESULT ( STDMETHODCALLTYPE *ShowToast )( + __RPC__in IClipServiceNotificationHelper * This, + /* [string][in] */ __RPC__in_string BSTR titleText, + /* [string][in] */ __RPC__in_string BSTR bodyText, + /* [string][in] */ __RPC__in_string BSTR packageName, + /* [string][in] */ __RPC__in_string BSTR appId, + /* [string][in] */ __RPC__in_string BSTR launchCommand); + + END_INTERFACE + } IClipServiceNotificationHelperVtbl; + + interface IClipServiceNotificationHelper + { + CONST_VTBL struct IClipServiceNotificationHelperVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IClipServiceNotificationHelper_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IClipServiceNotificationHelper_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IClipServiceNotificationHelper_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IClipServiceNotificationHelper_ShowToast(This,titleText,bodyText,packageName,appId,launchCommand) \ + ( (This)->lpVtbl -> ShowToast(This,titleText,bodyText,packageName,appId,launchCommand) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IClipServiceNotificationHelper_INTERFACE_DEFINED__ */ + + +#ifndef __IFClipNotificationHelper_INTERFACE_DEFINED__ +#define __IFClipNotificationHelper_INTERFACE_DEFINED__ + +/* interface IFClipNotificationHelper */ +/* [uuid][nonextensible][oleautomation][dual][object] */ + + +EXTERN_C const IID IID_IFClipNotificationHelper; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("3D5E3D21-BD41-4C2A-A669-B17CE87FB50B") + IFClipNotificationHelper : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ShowSystemDialog( + /* [string][in] */ __RPC__in_string BSTR titleText, + /* [string][in] */ __RPC__in_string BSTR bodyText) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IFClipNotificationHelperVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IFClipNotificationHelper * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IFClipNotificationHelper * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IFClipNotificationHelper * This); + + DECLSPEC_XFGVIRT(IFClipNotificationHelper, ShowSystemDialog) + HRESULT ( STDMETHODCALLTYPE *ShowSystemDialog )( + __RPC__in IFClipNotificationHelper * This, + /* [string][in] */ __RPC__in_string BSTR titleText, + /* [string][in] */ __RPC__in_string BSTR bodyText); + + END_INTERFACE + } IFClipNotificationHelperVtbl; + + interface IFClipNotificationHelper + { + CONST_VTBL struct IFClipNotificationHelperVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IFClipNotificationHelper_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IFClipNotificationHelper_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IFClipNotificationHelper_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IFClipNotificationHelper_ShowSystemDialog(This,titleText,bodyText) \ + ( (This)->lpVtbl -> ShowSystemDialog(This,titleText,bodyText) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IFClipNotificationHelper_INTERFACE_DEFINED__ */ + + + +#ifndef __EditionUpgradeHelperLib_LIBRARY_DEFINED__ +#define __EditionUpgradeHelperLib_LIBRARY_DEFINED__ + +/* library EditionUpgradeHelperLib */ +/* [version][uuid] */ + + +EXTERN_C const IID LIBID_EditionUpgradeHelperLib; + +EXTERN_C const CLSID CLSID_EditionUpgradeHelper; + +#ifdef __cplusplus + +class DECLSPEC_UUID("01776DF3-B9AF-4E50-9B1C-56E93116D704") +EditionUpgradeHelper; +#endif + +EXTERN_C const CLSID CLSID_EditionUpgradeBroker; + +#ifdef __cplusplus + +class DECLSPEC_UUID("C4270827-4F39-45DF-9288-12FF6B85A921") +EditionUpgradeBroker; +#endif +#endif /* __EditionUpgradeHelperLib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_editionupgradehelper_0000_0007 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_editionupgradehelper_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_editionupgradehelper_0000_0007_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * ); + +unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * ); +void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EditionUpgradeHelper.idl b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EditionUpgradeHelper.idl new file mode 100644 index 0000000000000000000000000000000000000000..1eee2925e2b6210dac98eb7dc0557c3ed9e75c64 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EditionUpgradeHelper.idl @@ -0,0 +1,169 @@ +#pragma region Application Family + +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +import "ocidl.idl"; +import "objidl.idl"; +import "Oleidl.idl"; + +[ +object, +uuid(D3E9E342-5DEB-43B6-849E-6913B85D503A), +] +interface IEditionUpgradeHelper : IUnknown +{ + HRESULT + CanUpgrade( + [out] BOOL* isAllowed + ); + + HRESULT + UpdateOperatingSystem( + [in, string] LPCWSTR contentId + ); + + HRESULT + ShowProductKeyUI( + void + ); + + HRESULT + GetOsProductContentId( + [out, string] LPWSTR* contentId + ); + + HRESULT + GetGenuineLocalStatus( + [out] BOOL* isGenuine + ); +}; + +[ + object, + uuid(F342D19E-CC22-4648-BB5D-03CCF75B47C5) +] +interface IWindowsLockModeHelper: IUnknown +{ + + HRESULT + GetSMode( + [out] BOOL* isSmode + ); + +}; + + +[ + object, + uuid(FF19CBCF-9455-4937-B872-6B7929A460AF), + dual, + nonextensible, + oleautomation, + helpstring("IEditionUpgradeBroker Interface"), + pointer_default(unique) +] +interface IEditionUpgradeBroker: IUnknown +{ + HRESULT + InitializeParentWindow( + [in] OLE_HANDLE parentHandle + ); + + HRESULT + UpdateOperatingSystem( + [in, string] BSTR parameter + ); + + HRESULT + ShowProductKeyUI( + void + ); + + HRESULT + CanUpgrade( + void + ); + +}; + +[ +object, +dual, +oleautomation, +nonextensible, +uuid(B524F93F-80D5-4EC7-AE9E-D66E93ADE1FA) +] +interface IContainerActivationHelper: IUnknown +{ + HRESULT + CanActivateClientVM( + [out, retval] VARIANT_BOOL* isAllowed + ); +}; + +[ +object, +dual, +oleautomation, +nonextensible, +uuid(C39948F0-6142-44FD-98CA-E1681A8D68B5) +] +interface IClipServiceNotificationHelper: IUnknown +{ + HRESULT + ShowToast( + [in, string] BSTR titleText, + [in, string] BSTR bodyText, + [in, string] BSTR packageName, + [in, string] BSTR appId, + [in, string] BSTR launchCommand + ); +}; + +[ +object, +dual, +oleautomation, +nonextensible, +uuid(3D5E3D21-BD41-4C2A-A669-B17CE87FB50B) +] +interface IFClipNotificationHelper: IUnknown +{ + HRESULT + ShowSystemDialog( + [in, string] BSTR titleText, + [in, string] BSTR bodyText + ); +}; + +[ +uuid(09C6A793-92DC-4D27-A11D-3921C9314DED), +version(2.0), +] +library EditionUpgradeHelperLib +{ + [ + uuid(01776DF3-B9AF-4E50-9B1C-56E93116D704), + ] + coclass EditionUpgradeHelper + { + [default] interface IEditionUpgradeHelper; + interface IWindowsLockModeHelper; + } + + [ + uuid(C4270827-4F39-45DF-9288-12FF6B85A921), + version(2.0), + ] + coclass EditionUpgradeBroker + { + [default] interface IEditionUpgradeBroker; + interface IContainerActivationHelper; + interface IClipServiceNotificationHelper; + interface IFClipNotificationHelper; + } + +}; +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ElsCore.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ElsCore.h new file mode 100644 index 0000000000000000000000000000000000000000..3df390971e1b3b6f2713c9fd669c310e61cddfdc --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ElsCore.h @@ -0,0 +1,212 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + ElsCore.h + +Abstract: + + This file contains macros/typedef/function prototypes that are common for ELS. + +--*/ + +#ifndef __ELS_CORE__ +#define __ELS_CORE__ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +struct _MAPPING_PROPERTY_BAG; + +typedef void (CALLBACK* PFN_MAPPINGCALLBACKPROC)(struct _MAPPING_PROPERTY_BAG *pBag, LPVOID data, DWORD dwDataSize, HRESULT Result); + +// +// Service types constants used in MAPPING_ENUM_OPTIONS (ServiceType field) +// + +#define ALL_SERVICE_TYPES 0 +#define HIGHLEVEL_SERVICE_TYPES 1 +#define LOWLEVEL_SERVICE_TYPES 2 + +// +// Online service constants used in MAPPING_ENUM_OPTIONS (OnlineService field) +// +#define ALL_SERVICES 0 +#define ONLINE_SERVICES 1 +#define OFFLINE_SERVICES 2 + +// +// Public ELS structures +// + +typedef struct _MAPPING_SERVICE_INFO +{ + size_t Size; + LPWSTR pszCopyright; + WORD wMajorVersion; + WORD wMinorVersion; + WORD wBuildVersion; + WORD wStepVersion; + DWORD dwInputContentTypesCount; + LPWSTR *prgInputContentTypes; + DWORD dwOutputContentTypesCount; + LPWSTR *prgOutputContentTypes; + DWORD dwInputLanguagesCount; + LPWSTR *prgInputLanguages; + DWORD dwOutputLanguagesCount; + LPWSTR *prgOutputLanguages; + DWORD dwInputScriptsCount; + LPWSTR *prgInputScripts; + DWORD dwOutputScriptsCount; + LPWSTR *prgOutputScripts; + GUID guid; + LPWSTR pszCategory; + LPWSTR pszDescription; + DWORD dwPrivateDataSize; + LPVOID pPrivateData; + LPVOID pContext; + unsigned IsOneToOneLanguageMapping : 1; + unsigned HasSubservices : 1; + unsigned OnlineOnly : 1; + unsigned ServiceType : 2; +} MAPPING_SERVICE_INFO, *PMAPPING_SERVICE_INFO; + + +typedef struct _MAPPING_ENUM_OPTIONS +{ + size_t Size; + LPWSTR pszCategory; + LPWSTR pszInputLanguage; + LPWSTR pszOutputLanguage; + LPWSTR pszInputScript; + LPWSTR pszOutputScript; + LPWSTR pszInputContentType; + LPWSTR pszOutputContentType; + GUID *pGuid; + unsigned OnlineService : 2; + unsigned ServiceType : 2; +} MAPPING_ENUM_OPTIONS, *PMAPPING_ENUM_OPTIONS; + + +typedef struct _MAPPING_OPTIONS +{ + size_t Size; + LPWSTR pszInputLanguage; + LPWSTR pszOutputLanguage; + LPWSTR pszInputScript; + LPWSTR pszOutputScript; + LPWSTR pszInputContentType; + LPWSTR pszOutputContentType; + LPWSTR pszUILanguage; + PFN_MAPPINGCALLBACKPROC pfnRecognizeCallback; + LPVOID pRecognizeCallerData; + DWORD dwRecognizeCallerDataSize; + PFN_MAPPINGCALLBACKPROC pfnActionCallback; + LPVOID pActionCallerData; + DWORD dwActionCallerDataSize; + DWORD dwServiceFlag; + unsigned GetActionDisplayName : 1; +} MAPPING_OPTIONS, *PMAPPING_OPTIONS; + + +typedef struct _MAPPING_DATA_RANGE +{ + DWORD dwStartIndex; + DWORD dwEndIndex; + LPWSTR pszDescription; + DWORD dwDescriptionLength; + LPVOID pData; + DWORD dwDataSize; + LPWSTR pszContentType; + LPWSTR *prgActionIds; + DWORD dwActionsCount; + LPWSTR *prgActionDisplayNames; +} MAPPING_DATA_RANGE, *PMAPPING_DATA_RANGE; + + +typedef struct _MAPPING_PROPERTY_BAG +{ + size_t Size; + PMAPPING_DATA_RANGE prgResultRanges; + DWORD dwRangesCount; + LPVOID pServiceData; + DWORD dwServiceDataSize; + LPVOID pCallerData; + DWORD dwCallerDataSize; + LPVOID pContext; +} MAPPING_PROPERTY_BAG, *PMAPPING_PROPERTY_BAG; + + +// +// Public ELS APIs +// + +HRESULT +WINAPI +MappingGetServices( + _In_opt_ PMAPPING_ENUM_OPTIONS pOptions, + _Out_ PMAPPING_SERVICE_INFO *prgServices, + _Out_ DWORD *pdwServicesCount + ); + + +HRESULT +WINAPI +MappingFreeServices( + _In_ PMAPPING_SERVICE_INFO pServiceInfo + ); + + +HRESULT +WINAPI +MappingRecognizeText( + _In_ PMAPPING_SERVICE_INFO pServiceInfo, + _In_reads_(dwLength) LPCWSTR pszText, + _In_ DWORD dwLength, + _In_ DWORD dwIndex, + _In_opt_ PMAPPING_OPTIONS pOptions, + _Inout_ PMAPPING_PROPERTY_BAG pbag + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +HRESULT +WINAPI +MappingDoAction( + _Inout_ PMAPPING_PROPERTY_BAG pBag, + _In_ DWORD dwRangeIndex, + _In_ LPCWSTR pszActionId + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + +HRESULT +WINAPI +MappingFreePropertyBag( + _In_ PMAPPING_PROPERTY_BAG pBag + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#ifdef __cplusplus +}; +#endif + +#endif // __ELS_CORE__ diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ElsSrvc.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ElsSrvc.h new file mode 100644 index 0000000000000000000000000000000000000000..afaf784d88e0ad2114df81696e799a2a1f2a0272 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ElsSrvc.h @@ -0,0 +1,56 @@ +/*++ + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + ElsCore.h + +Abstract: + + This file contains the GUIDs of the current ELS services and definitions for binary content. + +--*/ + +#ifndef __ELS_SRVC__ +#define __ELS_SRVC__ + +#include + +// {CF7E00B1-909B-4d95-A8F4-611F7C377702} +static const GUID ELS_GUID_LANGUAGE_DETECTION = + { 0xCF7E00B1, 0x909B, 0x4D95, { 0xA8, 0xF4, 0x61, 0x1F, 0x7C, 0x37, 0x77, 0x02 } }; + +// {2D64B439-6CAF-4f6b-B688-E5D0F4FAA7D7} +static const GUID ELS_GUID_SCRIPT_DETECTION = + { 0x2D64B439, 0x6CAF, 0x4F6B, { 0xB6, 0x88, 0xE5, 0xD0, 0xF4, 0xFA, 0xA7, 0xD7 } }; + +// {A3A8333B-F4FC-42f6-A0C4-0462FE7317CB} +static const GUID ELS_GUID_TRANSLITERATION_HANT_TO_HANS = + { 0xA3A8333B, 0xF4FC, 0x42f6, { 0xA0, 0xC4, 0x04, 0x62, 0xFE, 0x73, 0x17, 0xCB } }; + +// {3CACCDC8-5590-42dc-9A7B-B5A6B5B3B63B} +static const GUID ELS_GUID_TRANSLITERATION_HANS_TO_HANT = + { 0x3CACCDC8, 0x5590, 0x42dc, { 0x9A, 0x7B, 0xB5, 0xA6, 0xB5, 0xB3, 0xB6, 0x3B } }; + +// {D8B983B1-F8BF-4a2b-BCD5-5B5EA20613E1} +static const GUID ELS_GUID_TRANSLITERATION_MALAYALAM_TO_LATIN = + { 0xD8B983B1, 0xF8BF, 0x4a2b, { 0xBC, 0xD5, 0x5B, 0x5E, 0xA2, 0x06, 0x13, 0xE1 } }; + +// {C4A4DCFE-2661-4d02-9835-F48187109803} +static const GUID ELS_GUID_TRANSLITERATION_DEVANAGARI_TO_LATIN = + { 0xC4A4DCFE, 0x2661, 0x4d02, { 0x98, 0x35, 0xF4, 0x81, 0x87, 0x10, 0x98, 0x03 } }; + +// {3DD12A98-5AFD-4903-A13F-E17E6C0BFE01} +static const GUID ELS_GUID_TRANSLITERATION_CYRILLIC_TO_LATIN = + { 0x3DD12A98, 0x5AFD, 0x4903, { 0xA1, 0x3F, 0xE1, 0x7E, 0x6C, 0x0B, 0xFE, 0x01 } }; + +// {F4DFD825-91A4-489f-855E-9AD9BEE55727} +static const GUID ELS_GUID_TRANSLITERATION_BENGALI_TO_LATIN = + { 0xF4DFD825, 0x91A4, 0x489f, { 0x85, 0x5E, 0x9A, 0xD9, 0xBE, 0xE5, 0x57, 0x27 } }; + +// {4BA2A721-E43D-41b7-B330-536AE1E48863} +static const GUID ELS_GUID_TRANSLITERATION_HANGUL_DECOMPOSITION = + { 0x4BA2A721, 0xE43D, 0x41b7, { 0xB3, 0x30, 0x53, 0x6A, 0xE1, 0xE4, 0x88, 0x63 } }; + +#endif diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EmptyVC.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EmptyVC.h new file mode 100644 index 0000000000000000000000000000000000000000..f3a0ebb16297deae0323a1bf3fec0ff42eff28a6 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EmptyVC.h @@ -0,0 +1,575 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __emptyvc_h__ +#define __emptyvc_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IEmptyVolumeCacheCallBack_FWD_DEFINED__ +#define __IEmptyVolumeCacheCallBack_FWD_DEFINED__ +typedef interface IEmptyVolumeCacheCallBack IEmptyVolumeCacheCallBack; + +#endif /* __IEmptyVolumeCacheCallBack_FWD_DEFINED__ */ + + +#ifndef __IEmptyVolumeCache_FWD_DEFINED__ +#define __IEmptyVolumeCache_FWD_DEFINED__ +typedef interface IEmptyVolumeCache IEmptyVolumeCache; + +#endif /* __IEmptyVolumeCache_FWD_DEFINED__ */ + + +#ifndef __IEmptyVolumeCache2_FWD_DEFINED__ +#define __IEmptyVolumeCache2_FWD_DEFINED__ +typedef interface IEmptyVolumeCache2 IEmptyVolumeCache2; + +#endif /* __IEmptyVolumeCache2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "objidl.h" +#include "oleidl.h" +#include "oaidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_emptyvc_0000_0000 */ +/* [local] */ + +//=--------------------------------------------------------------------------= +// emptyvc.h +//=--------------------------------------------------------------------------= +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF +// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A +// PARTICULAR PURPOSE. +//=--------------------------------------------------------------------------= + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma comment(lib,"uuid.lib") + +//---------------------------------------------------------------------------= +// Empty Volume Cache Interfaces. + + + +// IEmptyVolumeCache Flags +#define EVCF_HASSETTINGS 0x0001 +#define EVCF_ENABLEBYDEFAULT 0x0002 +#define EVCF_REMOVEFROMLIST 0x0004 +#define EVCF_ENABLEBYDEFAULT_AUTO 0x0008 +#define EVCF_DONTSHOWIFZERO 0x0010 +#define EVCF_SETTINGSMODE 0x0020 +#define EVCF_OUTOFDISKSPACE 0x0040 +#define EVCF_USERCONSENTOBTAINED 0x0080 +#define EVCF_SYSTEMAUTORUN 0x0100 + +// IEmptyVolumeCacheCallBack Flags +#define EVCCBF_LASTNOTIFICATION 0x0001 + +//////////////////////////////////////////////////////////////////////////// +// Interface Definitions +#ifndef _LPEMPTYVOLUMECACHECALLBACK_DEFINED +#define _LPEMPTYVOLUMECACHECALLBACK_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0000_v0_0_s_ifspec; + +#ifndef __IEmptyVolumeCacheCallBack_INTERFACE_DEFINED__ +#define __IEmptyVolumeCacheCallBack_INTERFACE_DEFINED__ + +/* interface IEmptyVolumeCacheCallBack */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer IEmptyVolumeCacheCallBack *LPEMPTYVOLUMECACHECALLBACK; + + +EXTERN_C const IID IID_IEmptyVolumeCacheCallBack; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6E793361-73C6-11D0-8469-00AA00442901") + IEmptyVolumeCacheCallBack : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ScanProgress( + /* [in] */ DWORDLONG dwlSpaceUsed, + /* [in] */ DWORD dwFlags, + /* [unique][in] */ __RPC__in_opt LPCWSTR pcwszStatus) = 0; + + virtual HRESULT STDMETHODCALLTYPE PurgeProgress( + /* [in] */ DWORDLONG dwlSpaceFreed, + /* [in] */ DWORDLONG dwlSpaceToFree, + /* [in] */ DWORD dwFlags, + /* [unique][in] */ __RPC__in_opt LPCWSTR pcwszStatus) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEmptyVolumeCacheCallBackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEmptyVolumeCacheCallBack * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEmptyVolumeCacheCallBack * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEmptyVolumeCacheCallBack * This); + + DECLSPEC_XFGVIRT(IEmptyVolumeCacheCallBack, ScanProgress) + HRESULT ( STDMETHODCALLTYPE *ScanProgress )( + __RPC__in IEmptyVolumeCacheCallBack * This, + /* [in] */ DWORDLONG dwlSpaceUsed, + /* [in] */ DWORD dwFlags, + /* [unique][in] */ __RPC__in_opt LPCWSTR pcwszStatus); + + DECLSPEC_XFGVIRT(IEmptyVolumeCacheCallBack, PurgeProgress) + HRESULT ( STDMETHODCALLTYPE *PurgeProgress )( + __RPC__in IEmptyVolumeCacheCallBack * This, + /* [in] */ DWORDLONG dwlSpaceFreed, + /* [in] */ DWORDLONG dwlSpaceToFree, + /* [in] */ DWORD dwFlags, + /* [unique][in] */ __RPC__in_opt LPCWSTR pcwszStatus); + + END_INTERFACE + } IEmptyVolumeCacheCallBackVtbl; + + interface IEmptyVolumeCacheCallBack + { + CONST_VTBL struct IEmptyVolumeCacheCallBackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEmptyVolumeCacheCallBack_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEmptyVolumeCacheCallBack_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEmptyVolumeCacheCallBack_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEmptyVolumeCacheCallBack_ScanProgress(This,dwlSpaceUsed,dwFlags,pcwszStatus) \ + ( (This)->lpVtbl -> ScanProgress(This,dwlSpaceUsed,dwFlags,pcwszStatus) ) + +#define IEmptyVolumeCacheCallBack_PurgeProgress(This,dwlSpaceFreed,dwlSpaceToFree,dwFlags,pcwszStatus) \ + ( (This)->lpVtbl -> PurgeProgress(This,dwlSpaceFreed,dwlSpaceToFree,dwFlags,pcwszStatus) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEmptyVolumeCacheCallBack_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_emptyvc_0000_0001 */ +/* [local] */ + +#endif +#ifndef _LPEMPTYVOLUMECACHE_DEFINED +#define _LPEMPTYVOLUMECACHE_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0001_v0_0_s_ifspec; + +#ifndef __IEmptyVolumeCache_INTERFACE_DEFINED__ +#define __IEmptyVolumeCache_INTERFACE_DEFINED__ + +/* interface IEmptyVolumeCache */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer IEmptyVolumeCache *LPEMPTYVOLUMECACHE; + + +EXTERN_C const IID IID_IEmptyVolumeCache; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8FCE5227-04DA-11d1-A004-00805F8ABE06") + IEmptyVolumeCache : public IUnknown + { + public: + virtual /* [local] */ HRESULT STDMETHODCALLTYPE Initialize( + /* [in] */ HKEY hkRegKey, + /* [in] */ LPCWSTR pcwszVolume, + /* [out] */ LPWSTR *ppwszDisplayName, + /* [out] */ LPWSTR *ppwszDescription, + /* [out] */ DWORD *pdwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSpaceUsed( + /* [out] */ __RPC__out DWORDLONG *pdwlSpaceUsed, + /* [in] */ __RPC__in_opt IEmptyVolumeCacheCallBack *picb) = 0; + + virtual HRESULT STDMETHODCALLTYPE Purge( + /* [in] */ DWORDLONG dwlSpaceToFree, + /* [in] */ __RPC__in_opt IEmptyVolumeCacheCallBack *picb) = 0; + + virtual HRESULT STDMETHODCALLTYPE ShowProperties( + /* [in] */ __RPC__in HWND hwnd) = 0; + + virtual HRESULT STDMETHODCALLTYPE Deactivate( + /* [out] */ __RPC__out DWORD *pdwFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEmptyVolumeCacheVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEmptyVolumeCache * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEmptyVolumeCache * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEmptyVolumeCache * This); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache, Initialize) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + IEmptyVolumeCache * This, + /* [in] */ HKEY hkRegKey, + /* [in] */ LPCWSTR pcwszVolume, + /* [out] */ LPWSTR *ppwszDisplayName, + /* [out] */ LPWSTR *ppwszDescription, + /* [out] */ DWORD *pdwFlags); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache, GetSpaceUsed) + HRESULT ( STDMETHODCALLTYPE *GetSpaceUsed )( + __RPC__in IEmptyVolumeCache * This, + /* [out] */ __RPC__out DWORDLONG *pdwlSpaceUsed, + /* [in] */ __RPC__in_opt IEmptyVolumeCacheCallBack *picb); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache, Purge) + HRESULT ( STDMETHODCALLTYPE *Purge )( + __RPC__in IEmptyVolumeCache * This, + /* [in] */ DWORDLONG dwlSpaceToFree, + /* [in] */ __RPC__in_opt IEmptyVolumeCacheCallBack *picb); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache, ShowProperties) + HRESULT ( STDMETHODCALLTYPE *ShowProperties )( + __RPC__in IEmptyVolumeCache * This, + /* [in] */ __RPC__in HWND hwnd); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache, Deactivate) + HRESULT ( STDMETHODCALLTYPE *Deactivate )( + __RPC__in IEmptyVolumeCache * This, + /* [out] */ __RPC__out DWORD *pdwFlags); + + END_INTERFACE + } IEmptyVolumeCacheVtbl; + + interface IEmptyVolumeCache + { + CONST_VTBL struct IEmptyVolumeCacheVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEmptyVolumeCache_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEmptyVolumeCache_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEmptyVolumeCache_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEmptyVolumeCache_Initialize(This,hkRegKey,pcwszVolume,ppwszDisplayName,ppwszDescription,pdwFlags) \ + ( (This)->lpVtbl -> Initialize(This,hkRegKey,pcwszVolume,ppwszDisplayName,ppwszDescription,pdwFlags) ) + +#define IEmptyVolumeCache_GetSpaceUsed(This,pdwlSpaceUsed,picb) \ + ( (This)->lpVtbl -> GetSpaceUsed(This,pdwlSpaceUsed,picb) ) + +#define IEmptyVolumeCache_Purge(This,dwlSpaceToFree,picb) \ + ( (This)->lpVtbl -> Purge(This,dwlSpaceToFree,picb) ) + +#define IEmptyVolumeCache_ShowProperties(This,hwnd) \ + ( (This)->lpVtbl -> ShowProperties(This,hwnd) ) + +#define IEmptyVolumeCache_Deactivate(This,pdwFlags) \ + ( (This)->lpVtbl -> Deactivate(This,pdwFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEmptyVolumeCache_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_emptyvc_0000_0002 */ +/* [local] */ + +#endif +#ifndef _LPEMPTYVOLUMECACHE2_DEFINED +#define _LPEMPTYVOLUMECACHE2_DEFINED + + +extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0002_v0_0_s_ifspec; + +#ifndef __IEmptyVolumeCache2_INTERFACE_DEFINED__ +#define __IEmptyVolumeCache2_INTERFACE_DEFINED__ + +/* interface IEmptyVolumeCache2 */ +/* [unique][uuid][object] */ + +typedef /* [unique] */ __RPC_unique_pointer IEmptyVolumeCache2 *LPEMPTYVOLUMECACHE2; + + +EXTERN_C const IID IID_IEmptyVolumeCache2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("02b7e3ba-4db3-11d2-b2d9-00c04f8eec8c") + IEmptyVolumeCache2 : public IEmptyVolumeCache + { + public: + virtual /* [local] */ HRESULT STDMETHODCALLTYPE InitializeEx( + /* [in] */ HKEY hkRegKey, + /* [in] */ LPCWSTR pcwszVolume, + /* [in] */ LPCWSTR pcwszKeyName, + /* [out] */ LPWSTR *ppwszDisplayName, + /* [out] */ LPWSTR *ppwszDescription, + /* [out] */ LPWSTR *ppwszBtnText, + /* [out] */ DWORD *pdwFlags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEmptyVolumeCache2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IEmptyVolumeCache2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IEmptyVolumeCache2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IEmptyVolumeCache2 * This); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache, Initialize) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Initialize )( + IEmptyVolumeCache2 * This, + /* [in] */ HKEY hkRegKey, + /* [in] */ LPCWSTR pcwszVolume, + /* [out] */ LPWSTR *ppwszDisplayName, + /* [out] */ LPWSTR *ppwszDescription, + /* [out] */ DWORD *pdwFlags); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache, GetSpaceUsed) + HRESULT ( STDMETHODCALLTYPE *GetSpaceUsed )( + __RPC__in IEmptyVolumeCache2 * This, + /* [out] */ __RPC__out DWORDLONG *pdwlSpaceUsed, + /* [in] */ __RPC__in_opt IEmptyVolumeCacheCallBack *picb); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache, Purge) + HRESULT ( STDMETHODCALLTYPE *Purge )( + __RPC__in IEmptyVolumeCache2 * This, + /* [in] */ DWORDLONG dwlSpaceToFree, + /* [in] */ __RPC__in_opt IEmptyVolumeCacheCallBack *picb); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache, ShowProperties) + HRESULT ( STDMETHODCALLTYPE *ShowProperties )( + __RPC__in IEmptyVolumeCache2 * This, + /* [in] */ __RPC__in HWND hwnd); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache, Deactivate) + HRESULT ( STDMETHODCALLTYPE *Deactivate )( + __RPC__in IEmptyVolumeCache2 * This, + /* [out] */ __RPC__out DWORD *pdwFlags); + + DECLSPEC_XFGVIRT(IEmptyVolumeCache2, InitializeEx) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *InitializeEx )( + IEmptyVolumeCache2 * This, + /* [in] */ HKEY hkRegKey, + /* [in] */ LPCWSTR pcwszVolume, + /* [in] */ LPCWSTR pcwszKeyName, + /* [out] */ LPWSTR *ppwszDisplayName, + /* [out] */ LPWSTR *ppwszDescription, + /* [out] */ LPWSTR *ppwszBtnText, + /* [out] */ DWORD *pdwFlags); + + END_INTERFACE + } IEmptyVolumeCache2Vtbl; + + interface IEmptyVolumeCache2 + { + CONST_VTBL struct IEmptyVolumeCache2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEmptyVolumeCache2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEmptyVolumeCache2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEmptyVolumeCache2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEmptyVolumeCache2_Initialize(This,hkRegKey,pcwszVolume,ppwszDisplayName,ppwszDescription,pdwFlags) \ + ( (This)->lpVtbl -> Initialize(This,hkRegKey,pcwszVolume,ppwszDisplayName,ppwszDescription,pdwFlags) ) + +#define IEmptyVolumeCache2_GetSpaceUsed(This,pdwlSpaceUsed,picb) \ + ( (This)->lpVtbl -> GetSpaceUsed(This,pdwlSpaceUsed,picb) ) + +#define IEmptyVolumeCache2_Purge(This,dwlSpaceToFree,picb) \ + ( (This)->lpVtbl -> Purge(This,dwlSpaceToFree,picb) ) + +#define IEmptyVolumeCache2_ShowProperties(This,hwnd) \ + ( (This)->lpVtbl -> ShowProperties(This,hwnd) ) + +#define IEmptyVolumeCache2_Deactivate(This,pdwFlags) \ + ( (This)->lpVtbl -> Deactivate(This,pdwFlags) ) + + +#define IEmptyVolumeCache2_InitializeEx(This,hkRegKey,pcwszVolume,pcwszKeyName,ppwszDisplayName,ppwszDescription,ppwszBtnText,pdwFlags) \ + ( (This)->lpVtbl -> InitializeEx(This,hkRegKey,pcwszVolume,pcwszKeyName,ppwszDisplayName,ppwszDescription,ppwszBtnText,pdwFlags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEmptyVolumeCache2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_emptyvc_0000_0003 */ +/* [local] */ + +#endif +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER HWND_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER HWND_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree64( __RPC__in unsigned long *, __RPC__in HWND * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ErrorRep.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ErrorRep.h new file mode 100644 index 0000000000000000000000000000000000000000..b3b706b1ccb20d7296aaeb39b3d57648a59b987d --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ErrorRep.h @@ -0,0 +1,78 @@ +/****************************************************************************** + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + errorrep.h + +Abstract: + contains functions used to report errors to Microsoft + +******************************************************************************/ + +#ifndef __ERRORREP_H__ +#define __ERRORREP_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +typedef enum tagEFaultRepRetVal +{ + frrvOk = 0, + frrvOkManifest, + frrvOkQueued, + frrvErr, + frrvErrNoDW, + frrvErrTimeout, + frrvLaunchDebugger, + frrvOkHeadless, + frrvErrAnotherInstance, + frrvErrNoMemory, + frrvErrDoubleFault, +} EFaultRepRetVal; + +EFaultRepRetVal APIENTRY ReportFault(_In_ LPEXCEPTION_POINTERS pep, _In_ DWORD dwOpt); + +BOOL APIENTRY AddERExcludedApplicationA(_In_ LPCSTR szApplication); +BOOL APIENTRY AddERExcludedApplicationW(_In_ LPCWSTR wszApplication); + + +typedef EFaultRepRetVal (APIENTRY *pfn_REPORTFAULT)(_In_ LPEXCEPTION_POINTERS, _In_ DWORD); +typedef EFaultRepRetVal (APIENTRY *pfn_ADDEREXCLUDEDAPPLICATIONA)(_In_ LPCSTR); +typedef EFaultRepRetVal (APIENTRY *pfn_ADDEREXCLUDEDAPPLICATIONW)(_In_ LPCWSTR); + +#ifdef UNICODE +#define AddERExcludedApplication AddERExcludedApplicationW +#define pfn_ADDEREXCLUDEDAPPLICATION pfn_ADDEREXCLUDEDAPPLICATIONW +#else +#define AddERExcludedApplication AddERExcludedApplicationA +#define pfn_ADDEREXCLUDEDAPPLICATION pfn_ADDEREXCLUDEDAPPLICATIONA +#endif + +// +//+++++++++++++++++++++ Hang reporting api ++++++++++++++++++++++++++++++++ +// +HRESULT +WINAPI +WerReportHang( + _In_ HWND hwndHungApp, + _In_opt_ PCWSTR pwzHungApplicationName + ); + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dv.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dv.h new file mode 100644 index 0000000000000000000000000000000000000000..8989f7d630ea60575214a3559a5338533f5e1278 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dv.h @@ -0,0 +1,67 @@ +//------------------------------------------------------------------------------ +// File: DV.h +// +// Desc: DV typedefs and defines. +// +// Copyright (c) 1997 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#ifndef _DV_H_ +#define _DV_H_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#define DV_DVSD_NTSC_FRAMESIZE 120000L +#define DV_DVSD_PAL_FRAMESIZE 144000L + +#define DV_SMCHN 0x0000e000 +#define DV_AUDIOMODE 0x00000f00 +#define DV_AUDIOSMP 0x38000000 + +#define DV_AUDIOQU 0x07000000 +#define DV_NTSCPAL 0x00200000 +#define DV_STYPE 0x001f0000 + + +//There are NTSC or PAL DV camcorders +#define DV_NTSC 0 +#define DV_PAL 1 +//DV camcorder can output sd/hd/sl +#define DV_SD 0x00 +#define DV_HD 0x01 +#define DV_SL 0x02 +//user can choice 12 bits or 16 bits audio from DV camcorder +#define DV_CAP_AUD16Bits 0x00 +#define DV_CAP_AUD12Bits 0x01 + +#define SIZE_DVINFO 0x20 + +typedef struct Tag_DVAudInfo +{ + BYTE bAudStyle[2]; + //LSB 6 bits for starting DIF sequence number + //MSB 2 bits: 0 for mon. 1: stereo in one 5/6 DIF sequences, 2: stereo audio in both 5/6 DIF sequences + //example: 0x00: mon, audio in first 5/6 DIF sequence + // 0x05: mon, audio in 2nd 5 DIF sequence + // 0x15: stereo, audio only in 2nd 5 DIF sequence + // 0x10: stereo, audio only in 1st 5/6 DIF sequence + // 0x20: stereo, left ch in 1st 5/6 DIF sequence, right ch in 2nd 5/6 DIF sequence + // 0x26: stereo, rightch in 1st 6 DIF sequence, left ch in 2nd 6 DIF sequence + BYTE bAudQu[2]; //qbits, only support 12, 16, + + BYTE bNumAudPin; //how many pin(language) + WORD wAvgSamplesPerPinPerFrm[2]; //samples size for one audio pin in one frame(which has 10 or 12 DIF sequence) + WORD wBlkMode; //45 for NTSC, 54 for PAL + WORD wDIFMode; //5 for NTSC, 6 for PAL + WORD wBlkDiv; //15 for NTSC, 18 for PAL +} DVAudInfo; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // _DV_H_ diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dvdevcod.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dvdevcod.h new file mode 100644 index 0000000000000000000000000000000000000000..0acf0f62404a3fb8d2e14989552d3012c0fe20ff --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dvdevcod.h @@ -0,0 +1,427 @@ +//------------------------------------------------------------------------------ +// File: DVDevCod.h +// +// Desc: List of standard DVD-Video event codes and the expected params. +// +// Copyright (c) 1992 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + +#ifndef __DVDEVCOD__ +#define __DVDEVCOD__ +#include + +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + + + +#define EC_DVDBASE 0x0100 + +#ifndef EXCLUDE_DVDEVCODE_ENUMS + +typedef enum _tagDVD_ERROR { + DVD_ERROR_Unexpected=1, // Something unexpected happened, perhaps content + // is incorrectly authored. Playback is stopped. + DVD_ERROR_CopyProtectFail=2, // Key exchange for DVD copy protection failed. + // Playback is stopped. + DVD_ERROR_InvalidDVD1_0Disc=3, // DVD-Video disc is incorrectly authored for v1.0 + // of spec. Playback is stopped. + DVD_ERROR_InvalidDiscRegion=4, // The Disc cannot be played because the disc is not + // authored to play in system region. + // The region mismatch may be fixable by + // changing the system region with dvdrgn.exe + DVD_ERROR_LowParentalLevel=5, // Player parental level is lower than the lowest parental + // level available in the DVD content. Playback is stopped. + DVD_ERROR_MacrovisionFail=6, // Macrovision Distribution Failed. + // Playback is stopped. + DVD_ERROR_IncompatibleSystemAndDecoderRegions=7, + // No discs can be played because the system region + // does not match the decoder region. + DVD_ERROR_IncompatibleDiscAndDecoderRegions=8, + // The disc cannot be played because the disc is + // not authored to be played in the decoder's region + DVD_ERROR_CopyProtectOutputFail=9, // DVD copy protection failed due to output display + DVD_ERROR_CopyProtectOutputNotSupported=10, // DVD copy protection failed due to lack of driver + // support for checking the output display +} DVD_ERROR; + +typedef enum _tagDVD_WARNING { + DVD_WARNING_InvalidDVD1_0Disc=1,// DVD-Video disc is incorrectly authored. Playback + // can continue, but unexpected behavior may occur. + DVD_WARNING_FormatNotSupported=2,// A decoder would not support the current format. Playback + // of a stream (audio, video of SP) may not function. + // lParam2 contains the stream type (see AM_DVD_STREAM_FLAGS) + DVD_WARNING_IllegalNavCommand=3,// The internal DVD navigation command processor attempted to + // process an illegal command. + DVD_WARNING_Open = 4, // File Open Failed + DVD_WARNING_Seek = 5, // File Seek Failed + DVD_WARNING_Read = 6 // File Read Failed +} DVD_WARNING; + +typedef enum _tagDVD_PB_STOPPED { + DVD_PB_STOPPED_Other=0, // The navigator stopped the playback (no reason available). + DVD_PB_STOPPED_NoBranch=1, // The nav completed the current pgc and there was no more video and + // did not find any other branching instruction for subsequent playback. + DVD_PB_STOPPED_NoFirstPlayDomain =2, // The disc does not contain an initial startup program. + DVD_PB_STOPPED_StopCommand = 3, // The app issued a stop() command or a stop command was authored on the disc. + DVD_PB_STOPPED_Reset=4, // The navigator was reset to the start of the disc (using ResetOnStop). + DVD_PB_STOPPED_DiscEjected=5, // The disc was ejected. + DVD_PB_STOPPED_IllegalNavCommand = 6, // An illegal nav command prevented playback from continuing. + DVD_PB_STOPPED_PlayPeriodAutoStop = 7, // PlayPeriod completed + DVD_PB_STOPPED_PlayChapterAutoStop = 8, // PlayChapter completed + DVD_PB_STOPPED_ParentalFailure = 9, // A parental level failure prevented playback + DVD_PB_STOPPED_RegionFailure = 10, // A region failure prevented playback + DVD_PB_STOPPED_MacrovisionFailure = 11, // A Macrovision failure prevented playback. + DVD_PB_STOPPED_DiscReadError = 12, // A read error prevented playback. + DVD_PB_STOPPED_CopyProtectFailure = 13, // Copy protection failure. + DVD_PB_STOPPED_CopyProtectOutputFailure = 14, // Copy protection failure due to non-compliant output device + DVD_PB_STOPPED_CopyProtectOutputNotSupported = 15 // Copy protection failure due to missing driver support to check + // output device +} DVD_PB_STOPPED; + + +#endif + +// DVD-Video event codes +// ====================== +// +// All DVD-Video event are always passed on to the application, and are +// never processed by the filter graph + + +#define EC_DVD_DOMAIN_CHANGE (EC_DVDBASE + 0x01) +// Parameters: ( DWORD, void ) +// lParam1 is enum DVD_DOMAIN, and indicates the player's new domain +// +// Raised from following domains: all +// +// Signaled when ever the DVD player changes domains. + + +#define EC_DVD_TITLE_CHANGE (EC_DVDBASE + 0x02) +// Parameters: ( DWORD, void ) +// lParam1 is the new title number. +// +// Raised from following domains: DVD_DOMAIN_Title +// +// Indicates when the current title number changes. Title numbers +// range 1 to 99. This indicates the TTN, which is the title number +// with respect to the whole disc, not the VTS_TTN which is the title +// number with respect to just a current VTS. + + +#define EC_DVD_CHAPTER_START (EC_DVDBASE + 0x03) +// Parameters: ( DWORD, void ) +// lParam1 is the new chapter number (which is the program number for +// One_Sequential_PGC_Titles). +// +// Raised from following domains: DVD_DOMAIN_Title +// +// Signales that DVD player started playback of a new program in the Title +// domain. This is only signaled for One_Sequential_PGC_Titles. + + +#define EC_DVD_AUDIO_STREAM_CHANGE (EC_DVDBASE + 0x04) +// Parameters: ( DWORD, void ) +// lParam1 is the new user audio stream number. +// +// Raised from following domains: all +// +// Signaled when ever the current user audio stream number changes for the main +// title. This can be changed automatically with a navigation command on disc +// as well as through IDVDAnnexJ. +// Audio stream numbers range from 0 to 7. Stream 0xffffffff +// indicates that no stream is selected. + +#define EC_DVD_SUBPICTURE_STREAM_CHANGE (EC_DVDBASE + 0x05) +// Parameters: ( DWORD, BOOL ) +// lParam1 is the new user subpicture stream number. +// lParam2 is the subpicture's on/off state (TRUE if on) +// +// Raised from following domains: all +// +// Signaled when ever the current user subpicture stream number changes for the main +// title. This can be changed automatically with a navigation command on disc +// as well as through IDVDAnnexJ. +// Subpicture stream numbers range from 0 to 31. Stream 0xffffffff +// indicates that no stream is selected. + +#define EC_DVD_ANGLE_CHANGE (EC_DVDBASE + 0x06) +// Parameters: ( DWORD, DWORD ) +// lParam1 is the number of available angles. +// lParam2 is the current user angle number. +// +// Raised from following domains: all +// +// Signaled when ever either +// a) the number of available angles changes, or +// b) the current user angle number changes. +// Current angle number can be changed automatically with navigation command +// on disc as well as through IDVDAnnexJ. +// When the number of available angles is 1, the current video is not multiangle. +// Angle numbers range from 1 to 9. + + +#define EC_DVD_BUTTON_CHANGE (EC_DVDBASE + 0x07) +// Parameters: ( DWORD, DWORD ) +// lParam1 is the number of available buttons. +// lParam2 is the current selected button number. +// +// Raised from following domains: all +// +// Signaled when ever either +// a) the number of available buttons changes, or +// b) the current selected button number changes. +// The current selected button can be changed automatically with navigation +// commands on disc as well as through IDVDAnnexJ. +// Button numbers range from 1 to 36. Selected button number 0 implies that +// no button is selected. Note that these button numbers enumerate all +// available button numbers, and do not always correspond to button numbers +// used for IDVDAnnexJ::ButtonSelectAndActivate since only a subset of buttons +// may be activated with ButtonSelectAndActivate. + + +#define EC_DVD_VALID_UOPS_CHANGE (EC_DVDBASE + 0x08) +// Parameters: ( DWORD, void ) +// lParam1 is a VALID_UOP_SOMTHING_OR_OTHER bit-field stuct which indicates +// which IDVDAnnexJ commands are explicitly disable by the DVD disc. +// +// Raised from following domains: all +// +// Signaled when ever the available set of IDVDAnnexJ methods changes. This +// only indicates which operations are explicited disabled by the content on +// the DVD disc, and does not guarentee that it is valid to call methods +// which are not disabled. For example, if no buttons are currently present, +// IDVDAnnexJ::ButtonActivate() won't work, even though the buttons are not +// explicitly disabled. + + +#define EC_DVD_STILL_ON (EC_DVDBASE + 0x09) +// Parameters: ( BOOL, DWORD ) +// lParam1 == 0 --> buttons are available, so StillOff won't work +// lParam1 == 1 --> no buttons available, so StillOff will work +// lParam2 indicates the number of seconds the still will last, with 0xffffffff +// indicating an infinite still (wait till button or StillOff selected). +// +// Raised from following domains: all +// +// Signaled at the beginning of any still: PGC still, Cell Still, or VOBU Still. +// Note that all combinations of buttons and still are possible (buttons on with +// still on, buttons on with still off, button off with still on, button off +// with still off). + +#define EC_DVD_STILL_OFF (EC_DVDBASE + 0x0a) +// Parameters: ( void, void ) +// +// Indicating that any still that is currently active +// has been released. +// +// Raised from following domains: all +// +// Signaled at the end of any still: PGC still, Cell Still, or VOBU Still. +// + +#define EC_DVD_CURRENT_TIME (EC_DVDBASE + 0x0b) +// Parameters: ( DWORD, BOOL ) +// lParam1 is a DVD_TIMECODE which indicates the current +// playback time code in a BCD HH:MM:SS:FF format. +// lParam2 == 0 --> time code is 25 frames/sec +// lParam2 == 1 --> time code is 30 frames/sec (non-drop). +// lParam2 == 2 --> time code is invalid (current playback time +// cannot be determined for current title) +// +// Raised from following domains: DVD_DOMAIN_Title +// +// Signaled at the beginning of every VOBU, which occurs every .4 to 1.0 sec. +// This is only signaled for One_Sequential_PGC_Titles. + + +#define EC_DVD_ERROR (EC_DVDBASE + 0x0c) +// Parameters: ( DWORD, void) +// lParam1 is an enum DVD_ERROR which notifies the app of some error condition. +// +// Raised from following domains: all +// + +#define EC_DVD_WARNING (EC_DVDBASE + 0x0d) +// Parameters: ( DWORD, DWORD) +// lParam1 is an enum DVD_WARNING which notifies the app of some warning condition. +// lParam2 contains more specific information about the warning (warning dependent) +// +// Raised from following domains: all +// + +#define EC_DVD_CHAPTER_AUTOSTOP (EC_DVDBASE + 0x0e) +// Parameters: (BOOL, void) +// lParam1 is a BOOL which indicates the reason for the cancellation of ChapterPlayAutoStop +// lParam1 == 0 indicates successful completion of ChapterPlayAutoStop +// lParam1 == 1 indicates that ChapterPlayAutoStop is being cancelled as a result of another +// IDVDControl call or the end of content has been reached & no more chapters +// can be played. +// Indicating that playback is stopped as a result of a call +// to IDVDControl::ChapterPlayAutoStop() +// +// Raised from following domains : DVD_DOMAIN_TITLE +// + +#define EC_DVD_NO_FP_PGC (EC_DVDBASE + 0x0f) +// Parameters : (void, void) +// +// Raised from the following domains : FP_DOM +// +// Indicates that the DVD disc does not have a FP_PGC (First Play Program Chain) +// and the DVD Navigator will not automatically load any PGC and start playback. +// + +#define EC_DVD_PLAYBACK_RATE_CHANGE (EC_DVDBASE + 0x10) +// Parameters : (LONG, void) +// lParam1 is a LONG indicating the new playback rate. +// lParam1 < 0 indicates reverse playback mode. +// lParam1 > 0 indicates forward playback mode +// Value of lParam1 is the actual playback rate multiplied by 10000. +// i.e. lParam1 = rate * 10000 +// +// Raised from the following domains : TT_DOM +// +// Indicates that a rate change in playback has been initiated and the parameter +// lParam1 indicates the new playback rate that is being used. +// + +#define EC_DVD_PARENTAL_LEVEL_CHANGE (EC_DVDBASE + 0x11) +// Parameters : (LONG, void) +// lParam1 is a LONG indicating the new parental level. +// +// Raised from the following domains : VMGM_DOM +// +// Indicates that an authored Nav command has changed the parental level +// setting in the player. +// + +#define EC_DVD_PLAYBACK_STOPPED (EC_DVDBASE + 0x12) +// Parameters : (DWORD, void) +// +// Raised from the following domains : All Domains +// +// Indicates that playback has been stopped as the Navigator has completed +// playback of the pgc and did not find any other branching instruction for +// subsequent playback. +// +// The DWORD returns the reason for the completion of the playback. See +// The DVD_PB_STOPPED enumeration for details. +// + +#define EC_DVD_ANGLES_AVAILABLE (EC_DVDBASE + 0x13) +// Parameters : (BOOL, void) +// lParam1 == 0 indicates that playback is not in an angle block and angles are +// not available +// lParam1 == 1 indicates that an angle block is being played back and angle changes +// can be performed. +// +// Indicates whether an angle block is being played and if angle changes can be +// performed. However, angle changes are not restricted to angle blocks and the +// manifestation of the angle change can be seen only in an angle block. + +#define EC_DVD_PLAYPERIOD_AUTOSTOP (EC_DVDBASE + 0x14) +// Parameters: (void, void) +// Sent when the PlayPeriodInTitle completes or is cancelled +// +// Raised from following domains : DVD_DOMAIN_TITLE +// + +#define EC_DVD_BUTTON_AUTO_ACTIVATED (EC_DVDBASE + 0x15) +// Parameters: (DWORD button, void) +// Sent when a button is automatically activated +// +// Raised from following domains : DVD_DOMAIN_MENU +// + +#define EC_DVD_CMD_START (EC_DVDBASE + 0x16) +// Parameters: (CmdID, HRESULT) +// Sent when a command begins +// + +#define EC_DVD_CMD_END (EC_DVDBASE + 0x17) +// Parameters: (CmdID, HRESULT) +// Sent when a command completes +// + +#define EC_DVD_DISC_EJECTED (EC_DVDBASE + 0x18) +// Parameters: none +// Sent when the nav detects that a disc was ejected and stops the playback +// The app does not need to take any action to stop the playback. +// + +#define EC_DVD_DISC_INSERTED (EC_DVDBASE + 0x19) +// Parameters: none +// Sent when the nav detects that a disc was inserted and the nav begins playback +// The app does not need to take any action to start the playback. +// + +#define EC_DVD_CURRENT_HMSF_TIME (EC_DVDBASE + 0x1a) +// Parameters: ( ULONG, ULONG ) +// lParam2 contains a union of the DVD_TIMECODE_FLAGS +// lParam1 contains a DVD_HMSF_TIMECODE. Assign lParam1 to a ULONG then cast the +// ULONG as a DVD_HMSF_TIMECODE to use its values. +// +// Raised from following domains: DVD_DOMAIN_Title +// +// Signaled at the beginning of every VOBU, which occurs every .4 to 1.0 sec. + +#define EC_DVD_KARAOKE_MODE (EC_DVDBASE + 0x1b) +// Parameters: ( BOOL, reserved ) +// lParam1 is either TRUE (a karaoke track is being played) or FALSE (no karaoke data is being played). +// + +#define EC_DVD_PROGRAM_CELL_CHANGE (EC_DVDBASE + 0x1c) +// Parameters: ( ULONG, ULONG ) +// Sent when current program ID and/or cell ID change +// lParam1 contains the new Program ID +// lParam2 contains the new Cell ID + +#define EC_DVD_TITLE_SET_CHANGE (EC_DVDBASE + 0x1d) +// Parameters: ( BYTE, void ) +// Sent when current VTS (Video Title Set) changes +// lParam1 contains the new VTSN (Video Title Set Number) + +#define EC_DVD_PROGRAM_CHAIN_CHANGE (EC_DVDBASE + 0x1e) +// Parameters: ( WORD, void ) +// Sent when current PGC (Program Chain) changes +// lParam1 contains the new PGCN (Program Chain Number) + +#define EC_DVD_VOBU_Offset (EC_DVDBASE + 0x1f) +// Parameters: ( BlockOffset, VTSN ) +// lParam1 is the block offset of the most recent VOBU. +// + +#define EC_DVD_VOBU_Timestamp (EC_DVDBASE + 0x20) +// Parameters: ( rtTimestamp.LowPart, rtTimeStamps.HighPart ) +// lParam1 is the dshow timestamp of the most recent VOBU. +// + +#define EC_DVD_GPRM_Change (EC_DVDBASE + 0x21) +// Parameters: ( GPRM index, GPRM value ) +// lParam1 is the GPRM index +// loword(lParam2) is the new GPRM value, hiword(lParam2) is type +// + +#define EC_DVD_SPRM_Change (EC_DVDBASE + 0x22) +// Parameters: ( SPRM index, SPRM value ) +// lParam1 is the SPRM index +// loword(lParam2) is the new SPRM value, hiword(lParam2) is type +// + +#define EC_DVD_BeginNavigationCommands (EC_DVDBASE + 0x23) +// Parameters: ( command type, reserved ) +// Sent when navigation commands are starting +// + +#define EC_DVD_NavigationCommand (EC_DVDBASE + 0x24) +// Parameters: ( cmd.LowPart, cmd.HighPart ) +// 64 bits of DVD navigation command. +// + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + +#endif // __DVDEVCOD__ diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dvdif.idl b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dvdif.idl new file mode 100644 index 0000000000000000000000000000000000000000..d2ba0f49d41e2fb0600fbcc1a5e2f415f5397449 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dvdif.idl @@ -0,0 +1,2423 @@ +//------------------------------------------------------------------------------ +// File: DVDIf.idl +// +// Desc: DirectShow interfaces to control playback of a DVD filter graph. +// +// Copyright (c) 1992-2002, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +cpp_quote("#include ") + +// forward declarations - these are the interfaces declared in this file + +import "unknwn.idl"; +import "objidl.idl"; + + +// Define for 'local' so that proxy-stubs can be generated for testing +#ifndef AM_LOCAL +#define AM_LOCAL local, +#define AM_ANNOTATION(_x_) ,annotation(_x_) +#endif + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#include ") + +interface IDvdControl; +interface IDvdInfo; +interface IDirectDraw; +interface IDirectDrawSurface; +interface IDvdGraphBuilder ; +interface IDDrawExclModeVideo; +interface IDDrawExclModeVideoCallback; +interface IDvdCmd; +interface IDvdState; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +//========================================================================== +//========================================================================== +// +// typedefs used by IDvdControl and IDvdInfo interfaces. +// +//========================================================================== +//========================================================================== + +typedef enum tagDVD_DOMAIN { + // The DVD_DOMAIN is used to indicate the stat of a DVD player. + DVD_DOMAIN_FirstPlay=1, // doing default initialization of a dvd disc + DVD_DOMAIN_VideoManagerMenu, // displaying menus for whole disc + DVD_DOMAIN_VideoTitleSetMenu, // displaying menus for current title set + DVD_DOMAIN_Title, // displaying current title + DVD_DOMAIN_Stop // player is in stopped state +} DVD_DOMAIN; + +typedef enum tagDVD_MENU_ID { + DVD_MENU_Title = 2, // to choose a title from any VTS in a DVD-Video volume + DVD_MENU_Root = 3, // main menu for a specific VTS + DVD_MENU_Subpicture =4, // to choose subpicture stream in a VTS + DVD_MENU_Audio = 5, // to choose audio stream in a VTS + DVD_MENU_Angle = 6, // to choose angle num in a VTS + DVD_MENU_Chapter = 7 // to choose a chapter in a VTS + // the Root menu always provides a means of getting to to Subpicture, Audio, + // Angle and Chapter menus if they exist. +} DVD_MENU_ID; + +typedef enum tagDVD_DISC_SIDE { + DVD_SIDE_A = 1, + DVD_SIDE_B = 2 +} DVD_DISC_SIDE; + + +typedef enum tagDVD_PREFERRED_DISPLAY_MODE +{ + // DVD_PREFERRED_DISPLAY_MODE is used to indicate the user's + // preferred window aspect ratio and preferred method of converion of + // 16*9 content to a 4*3 window aspect ratio. Pan-scan and letterboxing are + // the two conversion methods. This enum is used to indicate only a preference of + // conversion mechinism since some content can only be converted using one + // of these methods. 4*3 content is converted to a 16*9 window always by using + // "reverse" letterboxing where black bars are added to the right and left + // sides of the display instead of the top and bottom of the display as in the 16*9 + // to 4*3 conversion useing letterboxing. + DISPLAY_CONTENT_DEFAULT = 0, // default to content + DISPLAY_16x9 = 1, // 16x9 display + DISPLAY_4x3_PANSCAN_PREFERRED = 2, // 4x3 display with pan-scan preferrence + DISPLAY_4x3_LETTERBOX_PREFERRED = 3 // 4x3 display with letterbox preferrence + +} DVD_PREFERRED_DISPLAY_MODE; + +typedef WORD DVD_REGISTER; +typedef DVD_REGISTER GPRMARRAY[16]; // DVD-Video 1.0 has 16 16-bit General Parameter Registers +typedef DVD_REGISTER SPRMARRAY[24]; // DVD-Video 1.0 has 24 16-bit System Parameter Registers + + + +// these are only for IDVDInfo1 compatibility and require the DVD-Video 1.0 specification +// Please use the IDVDInfo2's DVD_Title/MenuAttributes, DVD_VideoAttributes, DVD_AudioAttributes, and DVD_SubpictureAttributes +typedef struct tagDVD_ATR +{ + // + // Refer to the DVD-Video 1.0 spec to parse these structures. + // + ULONG ulCAT; // VMG_CAT if this is for a volume; or VTS_CAT + // if this is for a Video Title Set (VTS) + BYTE pbATRI[768];// All stream attributes for menu and title from bytes + // 256 to 1023 of VMGI or VTSI. +} DVD_ATR; +typedef BYTE DVD_VideoATR[2]; // video stream attributes. +typedef BYTE DVD_AudioATR[8]; // audio stream attributes. +typedef BYTE DVD_SubpictureATR[6]; // subpicture stream attributes. + +// DVD1.0 Timecode is BCD encoded in this format: 0xHhMmSsFf, where +// H is tens of hours +// h is hours +// M is tens of minutes +// m is minutes +// S is tens of seconds +// s is seconds +// F is tens of frames +// f is frames +// Note that you must know the frame rate to interperate the frame count as time. +typedef enum tagDVD_FRAMERATE +{ + DVD_FPS_25 =1, // 25 frames per second + DVD_FPS_30NonDrop = 3 // exactly 30 frames per second +} DVD_FRAMERATE; + +cpp_quote("typedef struct tagDVD_TIMECODE") +cpp_quote("{") +cpp_quote(" ULONG Hours1 :4; // Hours") +cpp_quote(" ULONG Hours10 :4; // Tens of Hours ") +cpp_quote("") +cpp_quote(" ULONG Minutes1 :4; // Minutes ") +cpp_quote(" ULONG Minutes10:4; // Tens of Minutes ") +cpp_quote("") +cpp_quote(" ULONG Seconds1 :4; // Seconds ") +cpp_quote(" ULONG Seconds10:4; // Tens of Seconds ") +cpp_quote("") +cpp_quote(" ULONG Frames1 :4; // Frames ") +cpp_quote(" ULONG Frames10 :2; // Tens of Frames ") +cpp_quote("") +cpp_quote(" ULONG FrameRateCode: 2; // use DVD_FRAMERATE to indicate frames/sec and drop/non-drop") +cpp_quote("} DVD_TIMECODE;") + + +typedef enum tagDVD_NavCmdType { + DVD_NavCmdType_Pre=1, + DVD_NavCmdType_Post=2, + DVD_NavCmdType_Cell=3, + DVD_NavCmdType_Button=4 +} DVD_NavCmdType; + +// +// Newer IDVD2 methods can use the HMSF format instead +// Call SetOption( DVD_HMSF_TimeCodeEvents, TRUE) to return EC_DVD_CURRENT_HMSF_TIME +// instead of EC_DVD_CURRENT_TIME events +// +typedef enum tagDVD_TIMECODE_FLAGS +{ + DVD_TC_FLAG_25fps = 0x00000001, // 25 frames per second + DVD_TC_FLAG_30fps = 0x00000002, // 30 frames per second + DVD_TC_FLAG_DropFrame = 0x00000004, // 29.97 instead of 30 fps + DVD_TC_FLAG_Interpolated = 0x00000008, // timecode may be inaccurate + // remainder of bits are reserved and should not be read +} DVD_TIMECODE_FLAGS; + +// this can be cast to/from a ULONG +typedef struct tagDVD_HMSF_TIMECODE +{ + BYTE bHours; + BYTE bMinutes; + BYTE bSeconds; + BYTE bFrames; +} DVD_HMSF_TIMECODE; + +typedef struct tagDVD_PLAYBACK_LOCATION2 +{ + // + // TitleNum & ChapterNum or TitleNum & TimeCode are sufficient to save + // playback location for One_Sequential_PGC_Titles. + // + ULONG TitleNum; // title number for whole disc (TTN not VTS_TTN) + ULONG ChapterNum; // part-of-title number with title. 0xffffffff if not Once_Sequential_PGC_Title + DVD_HMSF_TIMECODE TimeCode; // use DVD_TIMECODE for current playback time. + ULONG TimeCodeFlags; // union of DVD_TIMECODE_EVENT_FLAGS + +} DVD_PLAYBACK_LOCATION2; + +typedef struct tagDVD_PLAYBACK_LOCATION +{ + // + // TitleNum & ChapterNum or TitleNum & TimeCode are sufficient to save + // playback location for One_Sequential_PGC_Titles. + // + ULONG TitleNum; // title number for whole disc (TTN not VTS_TTN) + ULONG ChapterNum; // part-of-title number with title. 0xffffffff if not Once_Sequential_PGC_Title + ULONG TimeCode; // use DVD_TIMECODE for current playback time. 0xffffffff if not Once_Sequential_PGC_Title + +} DVD_PLAYBACK_LOCATION; + +typedef DWORD VALID_UOP_SOMTHING_OR_OTHER; + +typedef enum { + // + // Annex J User Functions --- + // + UOP_FLAG_Play_Title_Or_AtTime = 0x00000001, // Title_Or_Time_Play + UOP_FLAG_Play_Chapter = 0x00000002, // Chapter_Search_Or_Play + UOP_FLAG_Play_Title = 0x00000004, // Title_Play + UOP_FLAG_Stop = 0x00000008, // Stop + UOP_FLAG_ReturnFromSubMenu = 0x00000010, // GoUp + UOP_FLAG_Play_Chapter_Or_AtTime = 0x00000020, // Time_Or_Chapter_Search + UOP_FLAG_PlayPrev_Or_Replay_Chapter = 0x00000040, // Prev_Or_Top_PG_Search + UOP_FLAG_PlayNext_Chapter = 0x00000080, // Next_PG_Search + UOP_FLAG_Play_Forwards = 0x00000100, // Forward_Scan + UOP_FLAG_Play_Backwards = 0x00000200, // Backward_Scan + UOP_FLAG_ShowMenu_Title = 0x00000400, // Title_Menu_Call + UOP_FLAG_ShowMenu_Root = 0x00000800, // Root_Menu_Call + UOP_FLAG_ShowMenu_SubPic = 0x00001000, // SubPic_Menu_Call + UOP_FLAG_ShowMenu_Audio = 0x00002000, // Audio_Menu_Call + UOP_FLAG_ShowMenu_Angle = 0x00004000, // Angle_Menu_Call + UOP_FLAG_ShowMenu_Chapter = 0x00008000, // Chapter_Menu_Call + UOP_FLAG_Resume = 0x00010000, // Resume + UOP_FLAG_Select_Or_Activate_Button = 0x00020000, // Button_Select_Or_Activate + UOP_FLAG_Still_Off = 0x00040000, // Still_Off + UOP_FLAG_Pause_On = 0x00080000, // Pause_On + UOP_FLAG_Select_Audio_Stream = 0x00100000, // Audio_Stream_Change + UOP_FLAG_Select_SubPic_Stream = 0x00200000, // SubPic_Stream_Change + UOP_FLAG_Select_Angle = 0x00400000, // Angle_Change + UOP_FLAG_Select_Karaoke_Audio_Presentation_Mode = 0x00800000, // Karaoke_Audio_Pres_Mode_Change + UOP_FLAG_Select_Video_Mode_Preference = 0x01000000 // Video_Pres_Mode_Change +} VALID_UOP_FLAG ; + +typedef enum { + DVD_CMD_FLAG_None = 0x00000000, + DVD_CMD_FLAG_Flush = 0x00000001, + DVD_CMD_FLAG_SendEvents = 0x00000002, + DVD_CMD_FLAG_Block = 0x00000004, // block end + DVD_CMD_FLAG_StartWhenRendered = 0x00000008, // command "start" when the first frame is rendered + DVD_CMD_FLAG_EndAfterRendered = 0x00000010, // command "ends" after the last frame is rendered +} DVD_CMD_FLAGS; + + +// For IDVDControl2::SetOption flags +typedef enum { + DVD_ResetOnStop = 1, // default TRUE + DVD_NotifyParentalLevelChange = 2, // default FALSE + DVD_HMSF_TimeCodeEvents = 3, // default FALSE (send DVD_CURRENT_TIME events) + DVD_AudioDuringFFwdRew = 4, // default FALSE (or by reg) + DVD_EnableNonblockingAPIs = 5, // default FALSE + DVD_CacheSizeInMB = 6, // default FALSE (or by reg) + DVD_EnablePortableBookmarks = 7, // default FALSE + DVD_EnableExtendedCopyProtectErrors = 8, // default FALSE + DVD_NotifyPositionChange = 9, // default FALSE + DVD_IncreaseOutputControl = 10, // default FALSE + DVD_EnableStreaming = 11, // default TRUE + DVD_EnableESOutput = 12, // default FALSE + DVD_EnableTitleLength = 13, // default FALSE, report title length in VideoAttributes + DVD_DisableStillThrottle = 14, // default FALSE, disable app throttling during still menus + DVD_EnableLoggingEvents = 15, // default FALSE + DVD_MaxReadBurstInKB = 16, + DVD_ReadBurstPeriodInMS = 17, + DVD_RestartDisc = 18, + DVD_EnableCC = 19, +} DVD_OPTION_FLAG; + +typedef enum { + DVD_Relative_Upper = 1, + DVD_Relative_Lower = 2, + DVD_Relative_Left = 3, + DVD_Relative_Right = 4 +} DVD_RELATIVE_BUTTON; + +// Parental Level Information +typedef enum tagDVD_PARENTAL_LEVEL +{ + DVD_PARENTAL_LEVEL_8 = 0x8000, + DVD_PARENTAL_LEVEL_7 = 0x4000, + DVD_PARENTAL_LEVEL_6 = 0x2000, + DVD_PARENTAL_LEVEL_5 = 0x1000, + DVD_PARENTAL_LEVEL_4 = 0x0800, + DVD_PARENTAL_LEVEL_3 = 0x0400, + DVD_PARENTAL_LEVEL_2 = 0x0200, + DVD_PARENTAL_LEVEL_1 = 0x0100 +} DVD_PARENTAL_LEVEL; + + +typedef enum tagDVD_AUDIO_LANG_EXT +{ + DVD_AUD_EXT_NotSpecified =0, + DVD_AUD_EXT_Captions =1, + DVD_AUD_EXT_VisuallyImpaired =2, + DVD_AUD_EXT_DirectorComments1 =3, + DVD_AUD_EXT_DirectorComments2 =4, +} DVD_AUDIO_LANG_EXT; + +typedef enum tagDVD_SUBPICTURE_LANG_EXT +{ + DVD_SP_EXT_NotSpecified =0, + DVD_SP_EXT_Caption_Normal =1, + DVD_SP_EXT_Caption_Big =2, + DVD_SP_EXT_Caption_Children =3, + DVD_SP_EXT_CC_Normal =5, + DVD_SP_EXT_CC_Big =6, + DVD_SP_EXT_CC_Children =7, + DVD_SP_EXT_Forced =9, + DVD_SP_EXT_DirectorComments_Normal =13, + DVD_SP_EXT_DirectorComments_Big =14, + DVD_SP_EXT_DirectorComments_Children =15, +} DVD_SUBPICTURE_LANG_EXT; + +typedef enum tagDVD_AUDIO_APPMODE +{ + DVD_AudioMode_None = 0, // no special mode + DVD_AudioMode_Karaoke = 1, + DVD_AudioMode_Surround = 2, + DVD_AudioMode_Other = 3, +} DVD_AUDIO_APPMODE; + +typedef enum tagDVD_AUDIO_FORMAT +{ + DVD_AudioFormat_AC3 = 0, + DVD_AudioFormat_MPEG1 = 1, + DVD_AudioFormat_MPEG1_DRC = 2, // MPEG1 with dynamic range control + DVD_AudioFormat_MPEG2 = 3, + DVD_AudioFormat_MPEG2_DRC = 4, // MPEG2 with dynamic range control + DVD_AudioFormat_LPCM = 5, + DVD_AudioFormat_DTS = 6, + DVD_AudioFormat_SDDS = 7, + DVD_AudioFormat_Other = 8 +} DVD_AUDIO_FORMAT; + +// flags for SelectKaraokeAudioPresentationMode +typedef enum tagDVD_KARAOKE_DOWNMIX +{ + DVD_Mix_0to0 = 0x0001, // unused - reserved for future use + DVD_Mix_1to0 = 0x0002, // unused - reserved for future use + DVD_Mix_2to0 = 0x0004, + DVD_Mix_3to0 = 0x0008, + DVD_Mix_4to0 = 0x0010, + DVD_Mix_Lto0 = 0x0020, // mix auxillary L to channel 0 (left speaker) + DVD_Mix_Rto0 = 0x0040, // mix auxillary R to channel 0 (left speaker) + + DVD_Mix_0to1 = 0x0100, // unused - reserved for future use + DVD_Mix_1to1 = 0x0200, // unused - reserved for future use + DVD_Mix_2to1 = 0x0400, + DVD_Mix_3to1 = 0x0800, + DVD_Mix_4to1 = 0x1000, + DVD_Mix_Lto1 = 0x2000, // mix auxillary L to channel 1 (right speaker) + DVD_Mix_Rto1 = 0x4000, // mix auxillary R to channel 1 (right speaker) +} DVD_KARAOKE_DOWNMIX; + + +cpp_quote("#if defined(_MSC_VER) && (_MSC_VER >= 1600)") +cpp_quote("#pragma warning(push)") +cpp_quote("#pragma warning(disable:4820) // Disable C4820: padding after data member") +cpp_quote("#endif") +typedef struct tagDVD_AudioAttributes +{ + DVD_AUDIO_APPMODE AppMode; + BYTE AppModeData; + DVD_AUDIO_FORMAT AudioFormat; // Use GetKaraokeAttributes() + LCID Language; // 0 if no language is present + DVD_AUDIO_LANG_EXT LanguageExtension; // (captions, if for children etc) + BOOL fHasMultichannelInfo; // multichannel attributes are present (Use GetMultiChannelAudioAttributes()) + DWORD dwFrequency; // in hertz (48k, 96k) + BYTE bQuantization; // resolution (16, 20, 24 bits etc), 0 is unknown + BYTE bNumberOfChannels; // 5.1 AC3 has 6 channels + DWORD dwReserved[2]; +} DVD_AudioAttributes; +cpp_quote("#if defined(_MSC_VER) && (_MSC_VER >= 1600)") +cpp_quote("#pragma warning(pop)") +cpp_quote("#endif") + +typedef struct tagDVD_MUA_MixingInfo +{ + // surround sound mixing information applied when: + // AppMode = DVD_AudioMode_Surround + // AudioFormat = DVD_AudioFormat_LPCM, + // fHasMultichannelInfo=1 modes are all on + // + BOOL fMixTo0; + BOOL fMixTo1; + + // + BOOL fMix0InPhase; + BOOL fMix1InPhase; + + DWORD dwSpeakerPosition; // see ksmedia.h: SPEAKER_FRONT_LEFT, SPEAKER_FRONT_RIGHT, etc +} DVD_MUA_MixingInfo; + +// The alpha coeff is used to mix to ACH0 and beta is used to mix to ACH1 +// +// In general: +// ACH0 = coeff[0].alpha * value[0] + coeff[1].alpha * value[1] + ... +// ACH1 = coeff[0].beta * value[0] + coeff[1].beta * value[1] + ... +typedef struct tagDVD_MUA_Coeff +{ + double log2_alpha; // actual coeff = 2^alpha + double log2_beta; // actual coeff = 2^beta +} DVD_MUA_Coeff; + +typedef struct tagDVD_MultichannelAudioAttributes +{ + // actual Data for each data stream + DVD_MUA_MixingInfo Info[8]; + DVD_MUA_Coeff Coeff[8]; +} DVD_MultichannelAudioAttributes; + +// bitwise OR of these flags descript the contents of each channel +typedef enum tagDVD_KARAOKE_CONTENTS +{ + DVD_Karaoke_GuideVocal1 = 0x0001, + DVD_Karaoke_GuideVocal2 = 0x0002, + DVD_Karaoke_GuideMelody1 = 0x0004, + DVD_Karaoke_GuideMelody2 = 0x0008, + DVD_Karaoke_GuideMelodyA = 0x0010, + DVD_Karaoke_GuideMelodyB = 0x0020, + DVD_Karaoke_SoundEffectA = 0x0040, + DVD_Karaoke_SoundEffectB = 0x0080 +} DVD_KARAOKE_CONTENTS; + +typedef enum tagDVD_KARAOKE_ASSIGNMENT +{ + DVD_Assignment_reserved0 = 0, + DVD_Assignment_reserved1 = 1, + DVD_Assignment_LR = 2, // left right + DVD_Assignment_LRM = 3, // left right middle + DVD_Assignment_LR1 = 4, // left right audio1 + DVD_Assignment_LRM1 = 5, // left right middle audio1 + DVD_Assignment_LR12 = 6, // left right audio1 audio2 + DVD_Assignment_LRM12 = 7 // left right middle audio1 audio2 +} DVD_KARAOKE_ASSIGNMENT; + +cpp_quote("#if defined(_MSC_VER) && (_MSC_VER >= 1600)") +cpp_quote("#pragma warning(push)") +cpp_quote("#pragma warning(disable:4820) // Disable C4820: padding after data member") +cpp_quote("#endif") +typedef struct tagDVD_KaraokeAttributes +{ + BYTE bVersion; + BOOL fMasterOfCeremoniesInGuideVocal1; + BOOL fDuet; // false = solo + DVD_KARAOKE_ASSIGNMENT ChannelAssignment; + WORD wChannelContents[8]; // logical OR of DVD_KARAOKE_CONTENTS +} DVD_KaraokeAttributes; +cpp_quote("#if defined(_MSC_VER) && (_MSC_VER >= 1600)") +cpp_quote("#pragma warning(pop)") +cpp_quote("#endif") + +typedef enum tagDVD_VIDEO_COMPRESSION +{ + DVD_VideoCompression_Other = 0, + DVD_VideoCompression_MPEG1 = 1, + DVD_VideoCompression_MPEG2 = 2, +} DVD_VIDEO_COMPRESSION; + +typedef struct tagDVD_VideoAttributes +{ + BOOL fPanscanPermitted; // if a 4x3 display, can be shown as PanScan + BOOL fLetterboxPermitted; // if a 4x3 display, can be shown as Letterbox + ULONG ulAspectX; // 4x3 or 16x9 + ULONG ulAspectY; + ULONG ulFrameRate; // 50hz or 60hz + ULONG ulFrameHeight; // 525 (60hz) or 625 (50hz) + DVD_VIDEO_COMPRESSION Compression;// MPEG1 or MPEG2 + + BOOL fLine21Field1InGOP; // true if there is user data in field 1 of GOP of video stream + BOOL fLine21Field2InGOP; // true if there is user data in field 1 of GOP of video stream + + ULONG ulSourceResolutionX; // X source resolution (352,704, or 720) + ULONG ulSourceResolutionY; // Y source resolution (240,480, 288 or 576) + + BOOL fIsSourceLetterboxed; // subpictures and highlights (e.g. subtitles or menu buttons) are only + // displayed in the active video area and cannot be displayed in the top/bottom 'black' bars + BOOL fIsFilmMode; // for 625/50hz systems, is film mode (true) or camera mode (false) +} DVD_VideoAttributes; + +typedef enum tagDVD_SUBPICTURE_TYPE +{ + DVD_SPType_NotSpecified = 0, + DVD_SPType_Language = 1, + DVD_SPType_Other = 2, +} DVD_SUBPICTURE_TYPE; + +typedef enum tagDVD_SUBPICTURE_CODING +{ + DVD_SPCoding_RunLength = 0, + DVD_SPCoding_Extended = 1, + DVD_SPCoding_Other = 2, +} DVD_SUBPICTURE_CODING; + +typedef struct tagDVD_SubpictureAttributes +{ + DVD_SUBPICTURE_TYPE Type; + DVD_SUBPICTURE_CODING CodingMode; + LCID Language; + DVD_SUBPICTURE_LANG_EXT LanguageExtension; +} DVD_SubpictureAttributes; + +typedef enum tagDVD_TITLE_APPMODE +{ + DVD_AppMode_Not_Specified = 0, // no special mode + DVD_AppMode_Karaoke = 1, + DVD_AppMode_Other = 3, +} DVD_TITLE_APPMODE; + +cpp_quote("#if defined(_MSC_VER) && (_MSC_VER >= 1600)") +cpp_quote("#pragma warning(push)") +cpp_quote("#pragma warning(disable:4820) // Disable C4820: padding after data member") +cpp_quote("#endif") +typedef struct tagDVD_TitleMainAttributes +{ + // for Titles + union { + DVD_TITLE_APPMODE AppMode; + DVD_HMSF_TIMECODE TitleLength; + }; + + // Attributes about the 'main' video of the menu or title + DVD_VideoAttributes VideoAttributes; + + ULONG ulNumberOfAudioStreams; + DVD_AudioAttributes AudioAttributes[8]; + // present if the multichannel bit is set in the corresponding stream's audio attributes + DVD_MultichannelAudioAttributes MultichannelAudioAttributes[8]; + + ULONG ulNumberOfSubpictureStreams; + DVD_SubpictureAttributes SubpictureAttributes[32]; +} DVD_TitleAttributes; +cpp_quote("#if defined(_MSC_VER) && (_MSC_VER >= 1600)") +cpp_quote("#pragma warning(pop)") +cpp_quote("#endif") + + +typedef struct tagDVD_MenuAttributes +{ + // for VMG only + BOOL fCompatibleRegion[8]; // indeces 0..7 correspond to regions 1..8 + + // Attributes about the main menu (VMGM or VTSM) + DVD_VideoAttributes VideoAttributes; + + BOOL fAudioPresent; + DVD_AudioAttributes AudioAttributes; + + BOOL fSubpicturePresent; + DVD_SubpictureAttributes SubpictureAttributes; +} DVD_MenuAttributes; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +//========================================================================== +//========================================================================== +// IDvdControl interface -- Basic DVD-Video playback control. +// This modeled after the app control of a player specified in Annex J +// of the DVD Video spec. IDvdInfo can be used to get information useful +// in using IDvdControl +//========================================================================== +//========================================================================== + +[ +AM_LOCAL +object, +uuid(A70EFE61-E2A3-11d0-A9BE-00AA0061BE93), +pointer_default(unique) +] + +interface IDvdControl : IUnknown { + import "unknwn.idl"; + + // TitlePlay + // Start playing the specified title number. + // Title numbers range between 1 and 99. + HRESULT TitlePlay + ( [in] ULONG ulTitle + ); + + // ChapterPlay + // Start playing at the specified chapter (or part-of-title) + // within the specified title. Chapters range from 1 to 999. + HRESULT ChapterPlay + ( [in] ULONG ulTitle, + [in] ULONG ulChapter + ); + + // TimePlay + // Start playing at the specified time within the specified title. + // NOTE: the actual start time will be the closest sync point before + // or equal to the specified frame number. + HRESULT TimePlay + ( [in] ULONG ulTitle, + [in] ULONG bcdTime // use DVD_TIMECODE. Framerate code is ignored. + ); + + // StopForResume + // Stop playback after saving resume information. DVD Navigator transfers to the DVD "Stop State" and + // (same as DVD_DOMAIN_Stop), but filter graph remains in DirectShow's Run state. + HRESULT StopForResume(); + + // GoUp + // Start playback of the program chain currently authored as the "GoUp_PGCN". + HRESULT GoUp(); + + // TimeSearch + // Start playing at the specified time within the current title. + // NOTE: the actual start time will be the closest sync point before + // or equal to the specified frame number. + HRESULT TimeSearch + ( [in] ULONG bcdTime // use DVD_TIMECODE. Framerate code is ignored. + ); + + // ChapterSearch + // Start playing at the specified chapter (or part-of-title) within + // the current title. + HRESULT ChapterSearch + ( [in] ULONG ulChapter + ); + + // PrevPGSearch + // Start playing at the beginning of the previous DVD "program". + // For One-Sequential_PGC_Titles (which includes most titles) a program + // is equivalent to a chapter, otherwise a program is part of a chapter. + HRESULT PrevPGSearch(); + + // TopPGSearch + // Start playing from the beginning of they current program. + HRESULT TopPGSearch(); + + // NextPGSearch + // Start playing from the beginning of the next program. + HRESULT NextPGSearch(); + + // ForwardScan + // Set forward play at the specified speed. + // dwSpeed == 1 is normal play + // dwSpeed < 1 is slow play + // dwSpeed > 1 is fast play + // For dwSpeed != 1, audio and subpicture is muted. + HRESULT ForwardScan + ( [in] double dwSpeed + ); + + // BackwardScan + // Set reverse play at the specified speed. + // dwSpeed == 1 is normal play speed in reverse + // dwSpeed < 1 is slow play in reverse + // dwSpeed > 1 is fast play in reverse + // For reverse play, audio and subpicture are always muted. + HRESULT BackwardScan + ( [in] double dwSpeed + ); + + // MenuCall + // Start playback of the Menu specified by an enum DVD_MENU_ID. + HRESULT MenuCall + ( [in] DVD_MENU_ID MenuID + ); + + // Resume + // Returns to title playback in DVD_DOMAIN_Title. This is typically + // done after MenuCall which puts the DVD Navigator in + // DVD_DOMAIN_VideoTitleSetMenu or DVD_DOMAIN_VideoManagerMenu. + HRESULT Resume(); + + // UpperButtonSelect + // Selects the button above the current button. + // "Selecting" a DVD button simply highlights the button but does + // not "Activate" the button. Selecting is the Windows equivalent + // to tabbing to a button but not pressing the space bar or enter key. + // Activating is the Windows equivalent of pressing the space bar or + // enter key after tabbing to a button. + HRESULT UpperButtonSelect(); + + // LowerButtonSelect + // Selects the button below the current button. + HRESULT LowerButtonSelect(); + + // LeftButtonSelect + // Selects the button to the left of the current button. + HRESULT LeftButtonSelect(); + + // RightButtonSelect + // Selects the button to the right of the current button. + HRESULT RightButtonSelect(); + + // ButtonActivate + // Activates current button. + HRESULT ButtonActivate(); + + // ButtonSelectAndActivate + // Selects and then activates the button specified by the user. + // ulButton is intended to be a number entered by a user corresponding + // to button numbers currently displayed on screen. + // Button numbers range from 1 to 36. + HRESULT ButtonSelectAndActivate + ( [in] ULONG ulButton + ); + + // StillOff + // Releases any current still if there are no available buttons. + // This includes VOBU stills, Cell stills, and PGC stills, whether the + // still is infinite. When buttons are available, stills are released by + // activating a button. Note this does not release a Pause. + HRESULT StillOff(); + + // PauseOn + // Freezes playback and any internal timers. This is similar to + // IMediaControl::Pause() + HRESULT PauseOn(); + + // PauseOff + // Releases a Pause. + HRESULT PauseOff(); + + // MenuLanguageSelect + // Selects the default language for menus. Languages are specified with + // Windows standard LCIDs. LCIDs can be created from ISO-639 codes with + // MAKELCID( MAKELANGID(wISO639LangID ,SUBLANG_DEFAULT ), SORT_DEFAULT ) + // MenuLanguageSelect may only called from the DVD Stop state (DVD_DOMAIN_Stop). + HRESULT MenuLanguageSelect + ( [in] LCID Language + ); + + // AudioStreamChange + // Changes the current audio stream. + HRESULT AudioStreamChange + ( [in] ULONG ulAudio + ); + + // SubpictureStreamChange + // Changes the current subpicture stream number to nSubpic, and toggles + // its display. + HRESULT SubpictureStreamChange + ( [in] ULONG ulSubPicture, + [in] BOOL bDisplay + ); + + // AngleChange + // Changes the current angle number. + HRESULT AngleChange + ( [in] ULONG ulAngle + ); + + // ParentalLevelSelect + // Selects the current player parental level between 1 and 8. The + // defined parental levels are listed below : + // + // Level Rating + // ----- ------ + // + // 1 G + // 3 PG + // 4 PG13 + // 6 R + // 7 NC17 + // Higher levels can play lower level content; lower levels cannot play + // higher level content. The DVD Navigator provides no restriction on + // setting the parental level. DVD player application may enforce + // restriction on parental level setting, such as password protection for + // raising the current parental level. Parental Management is disabled in + // the Navigator by default. + // + // Note : To disable parental management, pass 0xffffffff for ulParentalLevel + // If parental management is disabled, then the player will play the + // first PGC in a parental block regardless of parental IDs. + // + HRESULT ParentalLevelSelect + ( [in] ULONG ulParentalLevel + ); + + // ParentalCountrySelect + // Sets the country/region in which to interpret the the Parental Level. + // The country/region specified using the Alpha-2 code of the ISO-3166 standard, + // with the addition of 'ZZ' + HRESULT ParentalCountrySelect + ( [in] WORD wCountry + ); + + // KaraokeAudioPresentationModeChange + // Sets the Karaoke audio mode. + // NOTE: This and all other Karoke support is currently not implemented. + HRESULT KaraokeAudioPresentationModeChange + ( [in] ULONG ulMode + ); + + // VideoModePreferrence + // The user can specify the preferred display mode that should + // be used to display content. The parameter is a ULONG that has + // one of the values defined in DVD_PREFERRED_DISPLAY_MODE + HRESULT VideoModePreferrence + ( [in] ULONG ulPreferredDisplayMode + ); + + // SetRoot + // Sets the root directory containing the DVD-Video volume. + // Can only be called from the DVD Stop State (DVD_DOMAIN_Stop). + // If the root directory is not successfully set before + // IMediaControl::Play is called, the first drive starting from c: + // containing a VIDEO_TS directory in the top level directory + // will be used as the root. + HRESULT SetRoot + ( [in] LPCWSTR pszPath + ); + + // MouseActivate + // This is typically called in response to a mouse click. + // The specified point within the display window is to see if it is + // within a current DVD button's highlight rect. If it is, that + // button is first selected, then activated. + // NOTE: DVD Buttons do not all necessarily have highlight rects, + // button rects can overlap, and button rects do not always + // correspond to the visual representation of DVD buttons. + HRESULT MouseActivate // typically called after a mouse click + ( [in] POINT point + ); + + // MouseSelect + // This is typically called in response to a mouse move within the + // display window. + // The specified point within the display window is to see if it is + // within a current DVD button's highlight rect. If it is, that + // button is selected. + // NOTE: DVD Buttons do not all necessarily have highlight rects, + // button rects can overlap, and button rects do not always + // correspond to the visual representation of DVD buttons. + HRESULT MouseSelect // typically called after a mouse move + ( [in] POINT point + ); + + // ChapterPlayAutoStop + // Start playing at the specified chapter within the specified title + // and play the number of chapters specified by the third parameter. + // Chapters range from 1 to 999. + HRESULT ChapterPlayAutoStop + ( [in] ULONG ulTitle, // title number + [in] ULONG ulChapter, // chapter number to start playback + [in] ULONG ulChaptersToPlay // number of chapters to play from the start chapter + ); +} + + + +//========================================================================== +//========================================================================== +// IDvdInfo interface -- allow an app to query for attributes of available +// DVD titles and DVD player status. Also allow for control of a DVD +// player beyond Annex J in the DVD spec. +//========================================================================== +//========================================================================== + +[ +AM_LOCAL +object, +uuid(A70EFE60-E2A3-11d0-A9BE-00AA0061BE93), +pointer_default(unique) +] + +interface IDvdInfo : IUnknown { + import "unknwn.idl"; + + // GetCurrentDomain + // Returns the current DVD Domain of the DVD player. + HRESULT GetCurrentDomain + ( [out] DVD_DOMAIN *pDomain + ); + + // GetCurrentLocation + // Returns information sufficient to restart playback of a video + // from the current playback location in titles that don't explicitly + // disable seeking to the current location. + HRESULT GetCurrentLocation + ( [out AM_ANNOTATION("_Out_")] DVD_PLAYBACK_LOCATION *pLocation + ); + + // GetTotalTitleTime + // Return the total playback time for the current title. Only works + // for One_Sequential_PGC_Titles. + HRESULT GetTotalTitleTime + ( [out AM_ANNOTATION("_Out_")] ULONG * pulTotalTime // use DVD_TIMECODE. + ); + + // GetCurrentButton + // Indicates the number of currently available buttons and the current + // selected button number. If buttons are not present it returns 0 for + // both pulButtonsAvailable and pulCurrentButton + HRESULT GetCurrentButton + ( [out AM_ANNOTATION("_Out_")] ULONG * pulButtonsAvailable, + [out AM_ANNOTATION("_Out_")] ULONG * pulCurrentButton + ); + + // GetCurrentAngle + // Indicates the number of currently available angles and the current + // selected angle number. If *pnAnglesAvailable==1, then the current + // video is not multiangle. + HRESULT GetCurrentAngle + ( [out AM_ANNOTATION("_Out_")] ULONG * pulAnglesAvailable, + [out AM_ANNOTATION("_Out_")] ULONG * pulCurrentAngle + ); + + // GetCurrentAudio + // Indicates the number of currently available audio streams and + // the current selected audio stream number. + // This only work when in DVD_DOMAIN_Title. + HRESULT GetCurrentAudio + ( [out AM_ANNOTATION("_Out_")] ULONG * pulStreamsAvailable, + [out AM_ANNOTATION("_Out_")] ULONG * pulCurrentStream + ); + + // GetCurrentSubpicture + // Indicates the number of currently available subpicture streams, + // the current selected subpicture stream number, and if the + // subpicture display is currently disabled. Subpicture streams + // authored as Forcedly Activated stream will be displayed even if + // subpicture display has been disabled by the app with + // IDVDControl::SubpictureChangeStream. + // This only work when in DVD_DOMAIN_Title. + HRESULT GetCurrentSubpicture + ( [out AM_ANNOTATION("_Out_")] ULONG * pulStreamsAvailable, + [out AM_ANNOTATION("_Out_")] ULONG * pulCurrentStream, + [out AM_ANNOTATION("_Out_")] BOOL * pIsDisabled + ); + + // GetCurrentUOPS + // Indicates which IDVDControl methods are currently valid. DVD titles + // can enable or disable individual user operations at almost any point + // during playback. + HRESULT GetCurrentUOPS + ( [out AM_ANNOTATION("_Out_")] VALID_UOP_SOMTHING_OR_OTHER * pUOP + ); + + // GetAllSPRMs + // Returns the current contents of all System Parameter Registers. + // See DVD-Video spec for use of individual registers. + HRESULT GetAllSPRMs + ( [out AM_ANNOTATION("_Out_")] SPRMARRAY * pRegisterArray + ); + + // GetAllGPRMs + // Returns the current contents of all General Parameter Registers. + // Use of GPRMs is title specific. + HRESULT GetAllGPRMs + ( [out AM_ANNOTATION("_Out_")] GPRMARRAY * pRegisterArray + ); + + // GetAudioLanguage + // Returns the language of the specified stream within the current + // title. Does not return languages for menus. Sets *pLanguage=0 if + // if the stream does not include language. + // Use GetLocaleInfo(*pLanguage, LOCALE_SENGLANGUAGE, pszString, cbSize) + // to create a human readable string name from the result LCID. + HRESULT GetAudioLanguage + ( [in] ULONG ulStream, + [out AM_ANNOTATION("_Out_")] LCID * pLanguage + ); + + // GetSubpictureLanguage + // Returns the language of the specified stream within the current + // title. Does not return languages for menus. Sets *pLanguage=0 if + // if the stream does not include language. + // Use GetLocaleInfo(*pLanguage, LOCALE_SENGLANGUAGE, pszString, cbSize) + // to create a human readable string name from the result LCID. + HRESULT GetSubpictureLanguage + ( [in] ULONG ulStream, + [out AM_ANNOTATION("_Out_")] LCID * pLanguage + ); + + // GetTitleAttributes + // Returns attributes of all video, audio, and subpicture + // streams for the specified title including menus. + // If nTitle == 0xffffffff, attributes for the current title are returned. + HRESULT GetTitleAttributes + ( [in] ULONG ulTitle, // requested title number + [out AM_ANNOTATION("_Out_")] DVD_ATR * pATR + ); + + // GetVMGAttributes + // Returns attributes of all video, audio, and subpicture + // streams for Video Manager Menus. Some menus, such as the DVD_MENU_Title + // are in a separate group of streams called the VMG (Video Manager) and + // are not associated with any particular title number. + HRESULT GetVMGAttributes + ( [out AM_ANNOTATION("_Out_")] DVD_ATR * pATR + ); + + // GetCurrentVideoAttributes + // Returns the video attributes for the current title or menu. + HRESULT GetCurrentVideoAttributes + ( [out AM_ANNOTATION("_Out_")] DVD_VideoATR *pATR + ); + + // GetCurrentAudioAttributes + // Returns the video attributes for the stream in the current + // title or menu. + HRESULT GetCurrentAudioAttributes + ( [out AM_ANNOTATION("_Out_")] DVD_AudioATR *pATR + ); + + // GetCurrentSubpictureAttributes + // Returns the video attributes for the stream in the current + // title or menu. + HRESULT GetCurrentSubpictureAttributes + ( [out AM_ANNOTATION("_Out_")] DVD_SubpictureATR *pATR + ); + + + // GetCurrentVolumeInfo + // Returns current DVD volume info. + HRESULT GetCurrentVolumeInfo + ( [out AM_ANNOTATION("_Out_")] ULONG *pulNumOfVol, // number of volumes (disc sides?) in a volume set + [out AM_ANNOTATION("_Out_")] ULONG *pulThisVolNum, // volume number for this root directory + [out AM_ANNOTATION("_Out_")] DVD_DISC_SIDE *pSide, // current disc side + [out AM_ANNOTATION("_Out_")] ULONG *pulNumOfTitles // number of titles available in this volume + ); + + + // GetDVDTextInfo + // Returns the TXTDT_MG structure, which can contain text descriptions for title + // name, volume name, producer name, vocalist name, etc. in various languages. + // refer to Section 4.1.6 and Annex A of the DVD-Video spec. + // If the buffer size passed in is insufficient (for example if cbBufSize==0), + // then E_OUTOFMEMORY is returned, and *pcbActualSize is set to the required size. + HRESULT GetDVDTextInfo + ( [out, size_is(ulBufSize) AM_ANNOTATION("_Out_writes_bytes_to_(ulBufSize, *pulActualSize)")] BYTE *pTextManager, + [in] ULONG ulBufSize, // buffer size passed in + [out AM_ANNOTATION("_Out_")] ULONG *pulActualSize // amount of actual data return + ); + + // GetPlayerParentalLevel + // Returns the current parental level and the current country/region code + // that has been set in the system registers in player. + // See Table 3.3.4-1 of the DVD-Video spec for the defined parental levels. + // Valid Parental Levels = 1..8 if parental management is enabled + // 0xffffffff if parental management is disabled + // See ISO3166 : Alpha-2 Code for the country/region codes. + HRESULT GetPlayerParentalLevel + ( [out AM_ANNOTATION("_Out_")] ULONG *pulParentalLevel, // current parental level + [out AM_ANNOTATION("_Out_")] ULONG *pulCountryCode // current country/region code + ); + + // GetNumberOfChapters + // Returns the number of chapters that are defined for a + // given title. + HRESULT GetNumberOfChapters + ( [in] ULONG ulTitle, // Title for which number of chapters is requested + [out AM_ANNOTATION("_Out_")] ULONG *pulNumberOfChapters // Number of chapters for the specified title + ); + + // GetTitleParentalLevels + // Returns the parental levels that are defined for a + // particular title. pParentalLevels will be combination + // of DVD_PARENTAL_LEVEL_8, DVD_PARENTAL_LEVEL_6, or + // DVD_PARENTAL_LEVEL_1 "OR"ed together + HRESULT GetTitleParentalLevels + ( [in] ULONG ulTitle, // Title for which parental levels are requested + [out AM_ANNOTATION("_Out_")] ULONG *pulParentalLevels // Parental levels defined for the title "OR"ed together + ); + + // GetRoot + // Returns the root directory that is set in the player. If a valid root + // has been found, it returns the root string. Otherwise, it returns 0 for + // pcbActualSize indicating that a valid root directory has not been found + // or initialized. + // + // !!! used to return LPTSTR. interface was changed to return + // LPSTR (ansi) for compatibility. COM APIs should pass with + // UNICODE strings only. + // + HRESULT GetRoot + ( [out, size_is(ulBufSize) AM_ANNOTATION("_Out_writes_to_(ulBufSize, *pulActualSize)")] LPSTR pRoot, // pointer to buffer to get root string + [in] ULONG ulBufSize, // size of buffer passed in + [out AM_ANNOTATION("_Out_")] ULONG *pulActualSize // size of actual data returned + ); +} + + +//========================================================================== +//========================================================================== +// IDvdCmd interface -- the IDVDControl2 command sequencing object. +// +// For the IDVDControl2 interface, the application can track the status of +// commands that have been issued to the navigator. Each command is identified +// by an IDvdCmd object. The IDvdCmd object stores the results of the command +// at both the start (when the command has begun processing) and the end after +// it has completed. It also allows the app to synchronize with the processing +// of the command. +// +// The command object also allows the app to uniquely identify and correlate +// completion events (if it prefers to process events in a message loop instead +// of creating another process). +// +// Allows the app to track the status of an issued command to the nav. +//========================================================================== +//========================================================================== + +[ +AM_LOCAL +object, +uuid(5a4a97e4-94ee-4a55-9751-74b5643aa27d), +pointer_default(unique) +] + +interface IDvdCmd : IUnknown { + import "unknwn.idl"; + + // + // WaitForStart + // + // Blocks the application until the command has begun. + // + HRESULT WaitForStart(); + + // + // WaitForEnd + // + // Blocks until the command has completed or has been cancelled. + HRESULT WaitForEnd(); +} + +//========================================================================== +//========================================================================== +// IDvdState interface -- the State state object. +// +// Whenever the application wishes to save or restore a location on the disc, +// it needs to store the DVD state into an object. +// The State object supports the IPersistStream +// +//========================================================================== +//========================================================================== + +[ +AM_LOCAL +object, +uuid(86303d6d-1c4a-4087-ab42-f711167048ef), +pointer_default(unique) +] + +interface IDvdState : IUnknown +{ + // + // GetDiscID + // + // Returns the disc ID from which the bookmark was made. + // + HRESULT GetDiscID + ( [out AM_ANNOTATION("_Out_")] ULONGLONG* pullUniqueID ); // 64-bit unique id for the disc + + // + // GetParentalLevel + // + // Returns the state's parental level + // + HRESULT GetParentalLevel + ( [out AM_ANNOTATION("_Out_")] ULONG* pulParentalLevel ); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +//========================================================================== +//========================================================================== +// IDvdControl2 interface -- Basic DVD-Video playback control. +// This is modeled after the app control of a player specified in Annex J +// of the DVD Video spec. IDvdInfo2 can be used to get information useful +// in using IDvdControl2 +//========================================================================== +//========================================================================== + +[ +AM_LOCAL +object, +uuid(33BC7430-EEC0-11D2-8201-00A0C9D74842), +pointer_default(unique) +] + +interface IDvdControl2 : IUnknown { + import "unknwn.idl"; + + // PlayTitle + // + // Start playing from the beginning of the specified title number. + // Annex J: Title_Play + // Title numbers range between 1 and 99. + HRESULT PlayTitle + ( [in] ULONG ulTitle, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // PlayChapterInTitle + // + // Start playing from the beginning of the given chapter (or part-of-title) number + // within the specified title number. + // Annex J: PTT_Play + // Title numbers range between 1 and 99. + // Chapters range from 1 to 999. + HRESULT PlayChapterInTitle + ( [in] ULONG ulTitle, + [in] ULONG ulChapter, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // PlayAtTimeInTitle + // + // Start playing from the specified time within the specified title number. + // NOTE: the actual start time will be the closest sync point before + // or equal to the specified frame number. + // Annex J: Time_Play + // Title numbers range between 1 and 99. + HRESULT PlayAtTimeInTitle + ( [in] ULONG ulTitle, + [in] DVD_HMSF_TIMECODE* pStartTime, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // Stop + // Stop playback by transferring DVD Navigator to the DVD "Stop State" (same + // as DVD_DOMAIN_Stop), but filter graph remains in DirectShow's Run state. + // Annex J: Stop + HRESULT Stop(); + + // ReturnFromSubmenu + // + // Stop playback of current program chain (PGC) and start playing the PGC + // specified by "GoUp_PGCN".in the PGCI. + // If the GoUp_PGCN value is 0xFFFF the Resume() operation is carried out. + // Annex J: GoUp + HRESULT ReturnFromSubmenu( + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd ); + + // PlayAtTime + // Start playing at the specified time within the current title. + // NOTE: the actual start time will be the closest sync point before + // or equal to the specified frame number. + // Annex J: Time_Search + // The time is in BCD format, passed in as a ULONG. + HRESULT PlayAtTime + ( [in] DVD_HMSF_TIMECODE* pTime, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // PlayChapter + // Start playing at the specified chapter (or part-of-title) within + // the current title. + // Annex J: PTT_Search + // Chapters range from 1 to 999. + HRESULT PlayChapter + ( [in] ULONG ulChapter, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // PlayPrevChapter + // Start playing at the beginning of the previous DVD "program". + // For One-Sequential_PGC_Titles (which includes most titles) a program + // is equivalent to a chapter, otherwise a program is part of a chapter. + // Annex J: PrevPG_Search + HRESULT PlayPrevChapter( + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd ); + + // ReplayChapter + // Start playing from the beginning of they current program. + // Annex J: TopPG_Search + HRESULT ReplayChapter( + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd ); + + // PlayNextChapter + // Start playing from the beginning of the next program. + // Annex J: NextPG_Search + HRESULT PlayNextChapter( + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd ); + + // PlayForwards + // Set forward play at the specified speed. + // Annex J: Forward_Scan + // dSpeed == 1 is normal play + // dSpeed < 1 is slow play + // dSpeed > 1 is fast play + // For dSpeed != 1, audio and subpicture is muted. + HRESULT PlayForwards + ( [in] double dSpeed, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // PlayBackwards + // Set reverse play at the specified speed. + // Annex J: Backward_Scan + // dSpeed == 1 is normal play speed in reverse + // dSpeed < 1 is slow play in reverse + // dSpeed > 1 is fast play in reverse + // For reverse play, audio and subpicture are always muted. + HRESULT PlayBackwards + ( [in] double dSpeed, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // ShowMenu + // Start playback of the Menu specified by an enum DVD_MENU_ID. + // Annex J: Menu_Call + HRESULT ShowMenu + ( [in] DVD_MENU_ID MenuID, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // Resume + // Returns to title playback in DVD_DOMAIN_Title. This is typically + // done after MenuCall which puts the DVD Navigator in + // DVD_DOMAIN_VideoTitleSetMenu or DVD_DOMAIN_VideoManagerMenu. + // Annex J: Resume + HRESULT Resume( + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd ); + + // SelectRelativeButton + // Moves the selection highlight above, below, to the left of, or to the right of the + // currently selected. + // "Selecting" a DVD button simply highlights the button but does + // not "Activate" the button. Selecting is the Windows equivalent + // to tabbing to a button but not pressing the space bar or enter key. + // Activating is the Windows equivalent of pressing the space bar or + // enter key after tabbing to a button. + // Annex J: Upper_button_Select, Lower_button_Select, Left_button_Select, Right_button_Select + HRESULT SelectRelativeButton( DVD_RELATIVE_BUTTON buttonDir ); + + // ActivateButton + // Activates current button. + // Annex J: Button_Activate + HRESULT ActivateButton(); + + // SelectButton + // Selects a specific button (with the index from 1 to 36). + // ulButton is intended to be a number entered by a user corresponding + // to button numbers currently displayed on screen. + // Button numbers range from 1 to 36. + HRESULT SelectButton + ( [in] ULONG ulButton + ); + + // SelectAndActivateButton + // Selects and then activates the button specified by the user. + // ulButton is intended to be a number entered by a user corresponding + // to button numbers currently displayed on screen. + // Annex J: Button_Select_And_Activate + // Button numbers range from 1 to 36. + HRESULT SelectAndActivateButton + ( [in] ULONG ulButton + ); + + // StillOff + // Releases any current still if there are no available buttons. + // This includes VOBU stills, Cell stills, and PGC stills, whether the + // still is infinite. When buttons are available, stills are released by + // activating a button. Note this does not release a Pause. + // Annex J: Still_Off + HRESULT StillOff(); + + // Pause + // Freezes / unfreezes playback and any internal timers. This is similar to + // IMediaControl::Pause(), but not the same in effect as IMediaControl::Pause + // puts the filter (all filters, if done to the graph) in paused state. + // Annex J: Pause_On and Pause_Off + // bState is TRUE or FALSE to indicate whether to do Puase_on/Pause_Off according + // to Annex J terminology. + HRESULT Pause + ( [in] BOOL bState + ); + + // SelectAudioStream + // Changes the current audio stream to ulAudio. + // Annex J: Audio_Stream_Change + // Audio stream number ranges between 0 and 7 or DEFAULT_AUDIO_STREAM (15 - default based on default language & language extension) + HRESULT SelectAudioStream + ( [in] ULONG ulAudio, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + + ); + + // SelectSubpictureStream + // Changes the current subpicture stream number to ulSubPicture + // Annex J: Sub-picture_Stream_Change (first param) + // Subpicture stream number should be between 0 and 31 or 63. + HRESULT SelectSubpictureStream + ( [in] ULONG ulSubPicture, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + + ); + + // SetSubpictureState + // Turns on/off current subpicture stream display. + // Annex J: Sub-picture_Stream_Change (second param) + // Subpicture state is On or Off (TRUE or FALSE) + HRESULT SetSubpictureState + ( [in] BOOL bState, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // SelectAngle + // Changes the current angle number. + // Annex J: Angle_Change + // Angle number is between 1 and 9. + HRESULT SelectAngle + ( [in] ULONG ulAngle, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // SelectParentalLevel + // Selects the current player parental level. + // Annex J: Parental_Level_Select + // Parental level ranges between 1 and 8. + // The defined parental levels are listed below : + // + // Level Rating + // ----- ------ + // 1 G + // 3 PG + // 4 PG13 + // 6 R + // 7 NC17 + // Higher levels can play lower level content; lower levels cannot play + // higher level content. The DVD Navigator provides no restriction on + // setting the parental level. DVD player application may enforce + // restriction on parental level setting, such as password protection for + // raising the current parental level. Parental Management is disabled in + // the Navigator by default. + // + // Note : To disable parental management, pass 0xffffffff for ulParentalLevel + // If parental management is disabled, then the player will play the + // first PGC in a parental block regardless of parental IDs. + // + HRESULT SelectParentalLevel + ( [in] ULONG ulParentalLevel + ); + + // SelectParentalCountry + // Sets the country/region in which to interpret the Parental Level. + // Annex J: Parental_Country_Select + // The country/region specified using the Alpha-2 code of the ISO-3166 standard, + HRESULT SelectParentalCountry + ( [in] BYTE bCountry[2] + ); + + // SelectKaraokeAudioPresentationMode + // Sets the Karaoke audio mode. + // Annex J: Karaoke_Audio_Presentation_Mode_Change + // NOTE: This and all other Karoke support is currently not implemented. + // Mode represents the audio mixing mode for Karaoke (same info as SPRM11). + // Use a bitwise OR of the bits in DVD_KARAOKE_DOWNMIX + HRESULT SelectKaraokeAudioPresentationMode + ( [in] ULONG ulMode + ); + + // SelectVideoModePreference + // The user can specify the (initial) preferred display mode (aspect ratio) + // (wide / letterbox / pan-scan) that should be used to display content + // (16 : 9). + // Annex J: Video_Presentation_Mode_Change + // The parameter is a ULONG that has one of the values defined in + // DVD_PREFERRED_DISPLAY_MODE + HRESULT SelectVideoModePreference + ( [in] ULONG ulPreferredDisplayMode + ); + + // SetDVDDirectory + // Sets the root directory containing the DVD-Video volume. + // Can only be called from the DVD Stop State (DVD_DOMAIN_Stop). + // If the root directory is not successfully set before + // IMediaControl::Play is called, the first drive starting from c: + // containing a VIDEO_TS directory in the top level directory + // will be used as the root. + HRESULT SetDVDDirectory + ( [in] LPCWSTR pszwPath + ); + + // ActivateAtPosition + // This is typically called in response to a mouse click. + // The specified point within the display window is to see if it is + // within a current DVD button's highlight rect. If it is, that + // button is first selected, then activated. + // NOTE: DVD Buttons do not all necessarily have highlight rects, + // button rects can overlap, and button rects do not always + // correspond to the visual representation of DVD buttons. + HRESULT ActivateAtPosition // typically called after a mouse click + ( [in] POINT point + ); + + // SelectAtPosition + // This is typically called in response to a mouse move within the + // display window. + // The specified point within the display window is to see if it is + // within a current DVD button's highlight rect. If it is, that + // button is selected. + // NOTE: DVD Buttons do not all necessarily have highlight rects, + // button rects can overlap, and button rects do not always + // correspond to the visual representation of DVD buttons. + HRESULT SelectAtPosition // typically called after a mouse move + ( [in] POINT point + ); + + // PlayChaptersAutoStop + // Start playing at the specified chapter within the specified title + // and play the number of chapters specified by the third parameter. + // Then the playback stops by sending an event EC_DVD_CHAPTER_AUTOSTOP. + // Title ranges from 1 to 99. + // Chapter (and number of chapters to play) ranges from 1 to 999. + HRESULT PlayChaptersAutoStop + ( [in] ULONG ulTitle, // title number + [in] ULONG ulChapter, // chapter number to start playback + [in] ULONG ulChaptersToPlay, // number of chapters to play from the start chapter + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // AcceptParentalLevelChange + // + // Application's way of informing the Navigator that the required parental + // level change indicated through a previous event was accepted or rejected + // by the app (and unblock the Navigator). + // + // FALSE - reject the disc's request to change the current parental level. + // TRUE - change the parental level as required by the disc. + HRESULT AcceptParentalLevelChange + ( [in] BOOL bAccept + ); + + // SetOption(flag, true/false ) + // Flags: + // + // DVD_ResetOnStop + // Disable reset of the Navigator's internal state on the + // subsequent IMediaControl::Stop() call(s). + // + // FALSE - Navigator does not reset its state on the subsequent Stop calls + // (play from the current location on next Run call). + // TRUE - (default) Navigator resets its state on the subsequent Stop call + // (play from the first play PGC on the Run call after the Stop). + // + // DVD_NotifyParentalLevelChange + // + // Allows the application to indicate to the Navigator that it wants to control + // parent level change (e.g., through a dialog box) and indicate the acceptance + // or rejection of the new parental level to the Navigator through + // AcceptParentalLevelChange(). + // + // FALSE - disable (default). Always reject request by the disc to change parental level. + // TRUE - enable. Navigator will send the app a 'EC_DVD_PARENTAL_LEVEL_CHANGE' event + // and block until AcceptParentalLevelChange() is called by the app. + // + // DVD_HMSF_TimeCodeEvents + // + // Lets the application specify to the Navigator if it wants to get the new time + // event EC_DVD_CURRENT_HMSF_TIME with the HMSF format rather than the older + // EC_DVD_CURRENT_TIME events. + // + // FALSE - disable (default). Older EC_DVD_CURRENT_TIME events are returned. + // TRUE - enable. Navigator will send the app EC_DVD_CURRENT_HMSF_TIME events. + + HRESULT SetOption + ( [in] DVD_OPTION_FLAG flag, + [in] BOOL fState + ); + + // SetState + // + // The navigator will use the location information in the given state object to restore + // the navigator's position to a specific location on the disc. + // A valid state object is returned by either calling GetState(), or by using + // "CoCreateInstance( CLSID_DVDState, NULL, CLSCTX_INPROC_SERVER, IID_IDvdState, (void **) ppState )" + // to create a state object, followed by pState->IPersist::Load() to read it from memory or disk. + // + HRESULT SetState + ( [in] IDvdState* pState, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + + ); + + // PlayPeriodInTitleAutoStop + // + // Start playing from the specified time within the specified title number until the specified end time. + // NOTE: the actual start and end times will be the closest sync points before + // or equal to the specified frame number. + // Annex J: Time_Play for a limited range + // Title numbers range between 1 and 99. + HRESULT PlayPeriodInTitleAutoStop + ( [in] ULONG ulTitle, + [in] DVD_HMSF_TIMECODE* pStartTime, + [in] DVD_HMSF_TIMECODE* pEndTime, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // SetGPRM + // Sets the current contents of a DVD General Parameter Register. + // Use of GPRMs is title specific. + + HRESULT SetGPRM + ( [in] ULONG ulIndex, + [in] WORD wValue, + [in] DWORD dwFlags, + [out AM_ANNOTATION("_Out_")] IDvdCmd** ppCmd + ); + + // SelectDefaultMenuLanguage + // Selects the default language for menus. + // Languages are specified with Windows standard LCIDs. LCIDs can be created + // from ISO-639 codes with + // MAKELCID( MAKELANGID(wISO639LangID ,SUBLANG_DEFAULT ), SORT_DEFAULT ). + // SelectMenuLanguage may only called from the DVD Stop state (DVD_DOMAIN_Stop). + // Annex J: Menu_Language_Select + // + // NOT TRUE ANYMORE: + // NOTE: MAKELANGID seems to have a bug so 'jp' may have to be used + // instead of 'ja' for the ISO639 code for Japanese. + HRESULT SelectDefaultMenuLanguage + ( [in] LCID Language + ); + + // SelectDefaultAudioLanguage + // Selects the default audio language. + // Languages are specified with Windows standard LCIDs. + HRESULT SelectDefaultAudioLanguage + ( [in] LCID Language, + [in] DVD_AUDIO_LANG_EXT audioExtension + ); + + // SelectDefaultSubpictureLanguage + // Selects the default subpicture language. + // Languages are specified with Windows standard LCIDs. + HRESULT SelectDefaultSubpictureLanguage + ( [in] LCID Language, + [in] DVD_SUBPICTURE_LANG_EXT subpictureExtension + ); +} + + +//========================================================================== +//========================================================================== +// IDvdInfo2 interface -- allows an app to query for attributes of available +// DVD titles and DVD player status. Also allows for control of a DVD +// player beyond Annex J in the DVD spec. +//========================================================================== +//========================================================================== + +enum DVD_TextStringType { + // disc structure (0x00..0x0f) + DVD_Struct_Volume = 0x01, + DVD_Struct_Title = 0x02, + DVD_Struct_ParentalID = 0x03, + DVD_Struct_PartOfTitle = 0x04, + DVD_Struct_Cell = 0x05, + // stream (0x10..0x1f) + DVD_Stream_Audio = 0x10, + DVD_Stream_Subpicture = 0x11, + DVD_Stream_Angle = 0x12, + // channel in stream (0x20..0x2f) + DVD_Channel_Audio = 0x20, + + // Application information + // General (0x30..0x37) + DVD_General_Name = 0x30, + DVD_General_Comments = 0x31, + + // Title (0x38..0x3f) + DVD_Title_Series = 0x38, + DVD_Title_Movie = 0x39, + DVD_Title_Video = 0x3a, + DVD_Title_Album = 0x3b, + DVD_Title_Song = 0x3c, + DVD_Title_Other = 0x3f, + + // Title (sub) (0x40..0x47) + DVD_Title_Sub_Series = 0x40, + DVD_Title_Sub_Movie = 0x41, + DVD_Title_Sub_Video = 0x42, + DVD_Title_Sub_Album = 0x43, + DVD_Title_Sub_Song = 0x44, + DVD_Title_Sub_Other = 0x47, + + // Title (original) (0x48..0x4f) + DVD_Title_Orig_Series = 0x48, + DVD_Title_Orig_Movie = 0x49, + DVD_Title_Orig_Video = 0x4a, + DVD_Title_Orig_Album = 0x4b, + DVD_Title_Orig_Song = 0x4c, + DVD_Title_Orig_Other = 0x4f, + + // Other info (0x50..0x57) + DVD_Other_Scene = 0x50, + DVD_Other_Cut = 0x51, + DVD_Other_Take = 0x52, + + // Language 0x58..0x5b + // Work 0x5c..0x6b + // Character 0x6c..0x8f + // Data 0x90..0x93 + // Karaoke 0x94..0x9b + // Category 0x9c..0x9f + // Lyrics 0xa0..0xa3 + // Document 0xa4..0xa7 + // Others 0xa8..0xab + // Reserved 0xac..0xaf + // Admin 0xb0..0xb7 + // more admin 0xb8..0xc0 + // Reserved 0xd0..0xdf + // vendor 0xe0..0xef + // extension 0xf0..0xf7 + // reserved 0xf8..0xff +}; + +enum DVD_TextCharSet { + DVD_CharSet_Unicode = 0, + DVD_CharSet_ISO646 = 1, + DVD_CharSet_JIS_Roman_Kanji = 2, + DVD_CharSet_ISO8859_1 = 3, + DVD_CharSet_ShiftJIS_Kanji_Roman_Katakana = 4 +}; + +cpp_quote ("#define DVD_TITLE_MENU 0x000") +cpp_quote ("#define DVD_STREAM_DATA_CURRENT 0x800") +cpp_quote ("#define DVD_STREAM_DATA_VMGM 0x400") +cpp_quote ("#define DVD_STREAM_DATA_VTSM 0x401") +cpp_quote ("#define DVD_DEFAULT_AUDIO_STREAM 0x0f") + +// DVD Decoder Caps data +typedef struct tagDVD_DECODER_CAPS +{ + DWORD dwSize ; // size of this struct + DWORD dwAudioCaps ; // bits indicating audio support (AC3, DTS, SDDS, LPCM etc.) of decoder + double dFwdMaxRateVideo ; // max data rate for video going forward + double dFwdMaxRateAudio ; // ... .. .. ... audio ... ... + double dFwdMaxRateSP ; // ... .. .. ... SP ... ... + double dBwdMaxRateVideo ; // if smooth reverse is not available, this will be set to 0 + double dBwdMaxRateAudio ; // -- ditto -- + double dBwdMaxRateSP ; // -- ditto -- + DWORD dwRes1 ; // reserved for future expansion + DWORD dwRes2 ; // -- ditto -- + DWORD dwRes3 ; // -- ditto -- + DWORD dwRes4 ; // -- ditto -- +} DVD_DECODER_CAPS ; + +// Bits for decoder's audio format support +cpp_quote ("#define DVD_AUDIO_CAPS_AC3 0x00000001") +cpp_quote ("#define DVD_AUDIO_CAPS_MPEG2 0x00000002") +cpp_quote ("#define DVD_AUDIO_CAPS_LPCM 0x00000004") +cpp_quote ("#define DVD_AUDIO_CAPS_DTS 0x00000008") +cpp_quote ("#define DVD_AUDIO_CAPS_SDDS 0x00000010") + + +[ +local, +object, +uuid(34151510-EEC0-11D2-8201-00A0C9D74842), +pointer_default(unique) +] + +interface IDvdInfo2 : IUnknown { + import "unknwn.idl"; + + // GetCurrentDomain + // Returns the current DVD Domain of the DVD player. + HRESULT GetCurrentDomain + ( [out AM_ANNOTATION("_Out_")] DVD_DOMAIN *pDomain + ); + + // GetCurrentLocation + // Returns information sufficient to restart playback of a video + // from the current playback location in titles that don't explicitly + // disable seeking to the current location. + HRESULT GetCurrentLocation + ( [out AM_ANNOTATION("_Out_")] DVD_PLAYBACK_LOCATION2 *pLocation + ); + + // GetTotalTitleTime + // Returns the total playback time for the current title. Only works + // for One_Sequential_PGC_Titles. + // THIS SHOULD CHANGE, RIGHT? + HRESULT GetTotalTitleTime + ( [out AM_ANNOTATION("_Out_")] DVD_HMSF_TIMECODE* pTotalTime, + [out AM_ANNOTATION("_Out_")] ULONG* ulTimeCodeFlags // union of DVD_TIMECODE_FLAGS + ); + + // GetCurrentButton + // Indicates the number of currently available buttons and the current + // selected button number. If buttons are not present it returns 0 for + // both pulButtonsAvailable and pulCurrentButton + HRESULT GetCurrentButton + ( [out AM_ANNOTATION("_Out_")] ULONG * pulButtonsAvailable, + [out AM_ANNOTATION("_Out_")] ULONG * pulCurrentButton + ); + + // GetCurrentAngle + // Indicates the number of currently available angles and the current + // selected angle number. If *pulAnglesAvailable is returned as 1 then + // the current content is not multiangle. + HRESULT GetCurrentAngle + ( [out AM_ANNOTATION("_Out_")] ULONG * pulAnglesAvailable, + [out AM_ANNOTATION("_Out_")] ULONG * pulCurrentAngle + ); + + // GetCurrentAudio + // Indicates the number of currently available audio streams and + // the currently selected audio stream number. + // This only works inside the Title domain. + HRESULT GetCurrentAudio + ( [out AM_ANNOTATION("_Out_")] ULONG * pulStreamsAvailable, + [out AM_ANNOTATION("_Out_")] ULONG * pulCurrentStream + ); + + // GetCurrentSubpicture + // Indicates the number of currently available subpicture streams, + // the currently selected subpicture stream number, and if the + // subpicture display is currently disabled. Subpicture streams + // authored as "Forcedly Activated" stream will be displayed even if + // subpicture display has been disabled by the app with + // IDVDControl::SetSubpictureState. + // This only works inside the Title domain. + HRESULT GetCurrentSubpicture + ( [out AM_ANNOTATION("_Out_")] ULONG * pulStreamsAvailable, + [out AM_ANNOTATION("_Out_")] ULONG * pulCurrentStream, + [out AM_ANNOTATION("_Out_")] BOOL * pbIsDisabled + ); + + // GetCurrentUOPS + // Indicates which IDVDControl methods (Annex J user operations) are + // currently valid. DVD titles can enable or disable individual user + // operations at almost any point during playback. + HRESULT GetCurrentUOPS + ( [out AM_ANNOTATION("_Out_")] ULONG * pulUOPs + ); + + // GetAllSPRMs + // Returns the current contents of all DVD System Parameter Registers. + // See DVD-Video spec for use of individual registers. + // WE SHOULD DOC THE SPRMs RATHER THAN ASKING TO REFER TO DVD SPEC. + HRESULT GetAllSPRMs + ( [out AM_ANNOTATION("_Out_")] SPRMARRAY * pRegisterArray + ); + + // GetAllGPRMs + // Returns the current contents of all DVD General Parameter Registers. + // Use of GPRMs is title specific. + // WE SHOULD DOC THE GPRMs RATHER THAN ASKING TO REFER TO DVD SPEC. + HRESULT GetAllGPRMs + ( [out AM_ANNOTATION("_Out_")] GPRMARRAY * pRegisterArray + ); + + // GetAudioLanguage + // Returns the language of the specified stream within the current title. + // Does not return languages for menus. Returns *pLanguage as 0 if the + // stream does not include language. + // Use Win32 API GetLocaleInfo(*pLanguage, LOCALE_SENGLANGUAGE, pszString, cbSize) + // to create a human readable string name from the returned LCID. + HRESULT GetAudioLanguage + ( [in] ULONG ulStream, + [out AM_ANNOTATION("_Out_")] LCID * pLanguage + ); + + // GetSubpictureLanguage + // Returns the language of the specified stream within the current title. + // Does not return languages for menus. Returns *pLanguage=0 as 0 if the + // stream does not include language. + // Use Win32 API GetLocaleInfo(*pLanguage, LOCALE_SENGLANGUAGE, pszString, cbSize) + // to create a human readable string name from the returned LCID. + HRESULT GetSubpictureLanguage + ( [in] ULONG ulStream, + [out AM_ANNOTATION("_Out_")] LCID * pLanguage + ); + + // GetTitleAttributes + // Returns attributes of all video, audio, and subpicture streams for the + // specified title including menus. + // If 0xffffffff is specified as ulTitle, attributes for the current title + // are returned. + HRESULT GetTitleAttributes + ( [in] ULONG ulTitle, // requested title number + [out AM_ANNOTATION("_Out_")] DVD_MenuAttributes * pMenu, + [out AM_ANNOTATION("_Out_")] DVD_TitleAttributes * pTitle + ); + + // GetVMGAttributes + // Returns attributes of all video, audio, and subpicture + // streams for Video Manager Menus. This method suppliments GetTitleAttributes() + // for some menus, such as the Title menu, which are in a separate group of + // streams called the VMG (Video Manager) and are not associated with any + // particular title number. + HRESULT GetVMGAttributes + ( [out AM_ANNOTATION("_Out_")] DVD_MenuAttributes* pATR + ); + + // GetCurrentVideoAttributes + // Returns the video attributes for the current title or menu. + // + HRESULT GetCurrentVideoAttributes + ( [out AM_ANNOTATION("_Out_")] DVD_VideoAttributes * pATR + ); + + // GetAudioAttributes + // Returns the audio attributes for the specified stream in the current title + // or menu. + HRESULT GetAudioAttributes + ( [in] ULONG ulStream, + [out AM_ANNOTATION("_Out_")] DVD_AudioAttributes *pATR + ); + + // GetKaraokeChannelContents + // Returns the karaoke contents of each channel of the specified stream in the current title + // or menu. + HRESULT GetKaraokeAttributes + ( [in] ULONG ulStream, + [out AM_ANNOTATION("_Out_")] DVD_KaraokeAttributes* pAttributes + ); + + // GetSubpictureAttributes + // Returns the subpicture attributes for the specified stream in the current + // title or menu. + HRESULT GetSubpictureAttributes + ( [in] ULONG ulStream, + [out AM_ANNOTATION("_Out_")] DVD_SubpictureAttributes *pATR + ); + + // GetDVDVolumeInfo + // Returns current DVD volume information. + HRESULT GetDVDVolumeInfo + ( [out AM_ANNOTATION("_Out_")] ULONG *pulNumOfVolumes, // number of volumes (disc sides?) in a volume set + [out AM_ANNOTATION("_Out_")] ULONG *pulVolume, // volume number for current DVD directory + [out AM_ANNOTATION("_Out_")] DVD_DISC_SIDE *pSide, // current disc side + [out AM_ANNOTATION("_Out_")] ULONG *pulNumOfTitles // number of titles available in this volume + ); + + // GetDVDTextNumberOfLanguages + // Returns the number of text languages for the current DVD directory. + // Should return some error code if no root directory is found. + HRESULT GetDVDTextNumberOfLanguages + ( [out AM_ANNOTATION("_Out_")] ULONG * pulNumOfLangs + ); + + // GetDVDTextLanguageInfo + // Returns the text languages information (number of strings, language code, + // char set) for the specified language index. + // Should return some error code if an invalid text index is specified. + HRESULT GetDVDTextLanguageInfo + ( [in] ULONG ulLangIndex, + [out AM_ANNOTATION("_Out_")] ULONG* pulNumOfStrings, + [out AM_ANNOTATION("_Out_")] LCID* pLangCode, + [out AM_ANNOTATION("_Out_")] enum DVD_TextCharSet * pbCharacterSet + ); + + // GetDVDTextStringAsNative + // Returns the text string as an array of bytes for the specified language + // index.and string index. + // Should return some error code if an invalid text or string index is specified. + // It also just returns the length of the string if pchBuffer is specified as NULL. + HRESULT GetDVDTextStringAsNative + ( [in] ULONG ulLangIndex, + [in] ULONG ulStringIndex, + [out AM_ANNOTATION("_Out_")] BYTE* pbBuffer, + [in] ULONG ulMaxBufferSize, + [out AM_ANNOTATION("_Out_")] ULONG* pulActualSize, + [out AM_ANNOTATION("_Out_")] enum DVD_TextStringType* pType + ); + + // GetDVDTextStringAsUnicode + // Returns the text string in Unicode for the specified language index.and string index. + // Should return some error code if an invalid text or string index is specified. + // It also just returns the length of the string if pchBuffer is specified as NULL. + HRESULT GetDVDTextStringAsUnicode + ( [in] ULONG ulLangIndex, + [in] ULONG ulStringIndex, + [out AM_ANNOTATION("_Out_")] WCHAR* pchwBuffer, + [in] ULONG ulMaxBufferSize, + [out AM_ANNOTATION("_Out_")] ULONG* pulActualSize, + [out AM_ANNOTATION("_Out_")] enum DVD_TextStringType* pType + ); + + // GetPlayerParentalLevel + // Returns the current parental level and the current country/region code that has + // been set in the system registers in player. + // See Table 3.3.4-1 of the DVD-Video spec for the defined parental levels. + // Valid Parental Levels range from 1 to 8 if parental management is enabled. + // Returns 0xffffffff if parental management is disabled + // See ISO3166 : Alpha-2 Code for the country/region codes. + HRESULT GetPlayerParentalLevel + ( [out AM_ANNOTATION("_Out_")] ULONG *pulParentalLevel, // current parental level + [out AM_ANNOTATION("_Out_")] BYTE pbCountryCode[2] // current country/region code + ); + + // GetNumberOfChapters + // Returns the number of chapters that are defined for a + // given title. + HRESULT GetNumberOfChapters + ( [in] ULONG ulTitle, // Title for which number of chapters is requested + [out AM_ANNOTATION("_Out_")] ULONG *pulNumOfChapters // Number of chapters for the specified title + ); + + // GetTitleParentalLevels + // Returns the parental levels that are defined for a particular title. + // pulParentalLevels will be combination of DVD_PARENTAL_LEVEL_8, + // DVD_PARENTAL_LEVEL_6, or DVD_PARENTAL_LEVEL_1 OR-ed together + HRESULT GetTitleParentalLevels + ( [in] ULONG ulTitle, // Title for which parental levels are requested + [out AM_ANNOTATION("_Out_")] ULONG *pulParentalLevels // Parental levels defined for the title "OR"ed together + ); + + // GetDVDDirectory + // Returns the root directory that is set in the player. If a valid root + // has been found, it returns the root string. Otherwise, it returns 0 for + // pcbActualSize indicating that a valid root directory has not been found + // or initialized. + // + // !!! used to return LPTSTR. interface was changed to return + // LPSTR (ansi) for compatibility. COM APIs should pass with + // UNICODE strings only. + // + HRESULT GetDVDDirectory + ( [out, size_is(ulMaxSize) AM_ANNOTATION("_Out_writes_to_(ulMaxSize, *pulActualSize)")] LPWSTR pszwPath, // pointer to buffer to get root string + [in] ULONG ulMaxSize, // size of buffer in WCHARs passed in + [out AM_ANNOTATION("_Out_")] ULONG *pulActualSize // size of actual data returned (in WCHARs) + ); + + + // IsAudioStreamEnabled + // + // Determines if the specified audio stream is enabled/disabled in the current PGC. + // + // ulStreamNum - audio stream number to test + // pbEnabled - where to place the result + HRESULT IsAudioStreamEnabled + ( [in] ULONG ulStreamNum, // stream number to test + [out AM_ANNOTATION("_Out_")] BOOL *pbEnabled // returned state + ); + + // GetDiscID + // + // If pszwPath is specified as NULL, DVD Navigator will use the current path + // that would be returned by GetDVDDirectory() at this point. + // + // Returns a 64-bit identification number for the specified DVD disc. + HRESULT GetDiscID + ( [in] LPCWSTR pszwPath, // root path (should we rather use const WCHAR*?) + [out AM_ANNOTATION("_Out_")] ULONGLONG* pullDiscID // 64-bit unique id for the disc + ) ; + + // GetState + // + // The navigator will create a new state object and save the current location into it. + // The state object can be used to restore the navigator the saved location at a later time. + // A new IDvdState object is created (with a single AddRef) and returned in *pStateData. + // The object must be Released() when the application is finished with it. + // + HRESULT GetState + ( [out AM_ANNOTATION("_Out_")] IDvdState **pStateData // returned object + ); + + // + // GetMenuLanguages + // + // Navigator gets all of the menu languages for the VMGM and VTSM domains. + // + HRESULT GetMenuLanguages + ( [out AM_ANNOTATION("_Out_")] LCID *pLanguages, // data buffer (NULL returns #languages) + [in] ULONG ulMaxLanguages, // maxiumum number of languages to retrieve + [out AM_ANNOTATION("_Out_")] ULONG *pulActualLanguages // actual number of languages retrieved + ); + + // + // GetButtonAtPosition + // + // This is typically called in response to a mouse move within the + // display window. + // It returns the button located at the specified point within the display window. + // If no button is present at that position, then VFW_E_DVD_NO_BUTTON is returned. + // Button indices start at 1. + // + // NOTE: DVD Buttons do not all necessarily have highlight rects, + // button rects can overlap, and button rects do not always + // correspond to the visual representation of DVD buttons. + HRESULT GetButtonAtPosition // typically called after a mouse move + ( [in] POINT point, + [out AM_ANNOTATION("_Out_")] ULONG *pulButtonIndex + ); + + // + // GetCmdFromEvent + // + // This method maps an EC_DVD_CMD_BEGIN/COMPLETE/CANCEL event's lParam1 into an AddRef'd + // IDvdCmd pointer. You must Release the returned pointer. NULL is returned if the function + // fails. + // + HRESULT GetCmdFromEvent + ( [in] LONG_PTR lParam1, + [out AM_ANNOTATION("_Out_")] IDvdCmd **pCmdObj + ); + + // GetDefaultMenuLanguage + // Returns the default language for menus. + HRESULT GetDefaultMenuLanguage + ( [out AM_ANNOTATION("_Out_")] LCID * pLanguage + ); + + // GetDefaultAudioLanguage + // Gets the default audio language. + // Languages are specified with Windows standard LCIDs. + HRESULT GetDefaultAudioLanguage + ( [out AM_ANNOTATION("_Out_")] LCID* pLanguage, + [out AM_ANNOTATION("_Out_")] DVD_AUDIO_LANG_EXT* pAudioExtension + ); + + // GetDefaultSubpictureLanguage + // Gets the default subpicture language. + // Languages are specified with Windows standard LCIDs. + HRESULT GetDefaultSubpictureLanguage + ( [out AM_ANNOTATION("_Out_")] LCID* pLanguage, + [out AM_ANNOTATION("_Out_")] DVD_SUBPICTURE_LANG_EXT* pSubpictureExtension + ); + + // + // GetDecoderCaps: + // Retrieves the DVD decoder's details about max data rate for video, audio + // and subpicture (going backward and forward) as well as support for various + // types of audio (AC3, MPEG2, DTS, SDDS, LPCM). + // + HRESULT GetDecoderCaps + ( [out AM_ANNOTATION("_Out_")] DVD_DECODER_CAPS *pCaps + ) ; + + // + // GetButtonRect: + // Retrieves the coordinates for a given button number + // + HRESULT GetButtonRect + ( [in] ULONG ulButton, + [out AM_ANNOTATION("_Out_")] RECT *pRect + ) ; + + // IsSubpictureStreamEnabled + // + // Determines if the specified subpicture stream is enabled/disabled in the current PGC. + // + // ulStreamNum - Subpicture stream number to test + // pbEnabled - where to place the result + HRESULT IsSubpictureStreamEnabled + ( [in] ULONG ulStreamNum, // stream number to test + [out AM_ANNOTATION("_Out_")] BOOL *pbEnabled // returned state + ); +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +//========================================================================== +//========================================================================== +// +// typedefs used by IDvdGraphBuilder interface. +// +//========================================================================== +//========================================================================== + +typedef enum _AM_DVD_GRAPH_FLAGS { + AM_DVD_HWDEC_PREFER = 0x01, // default + AM_DVD_HWDEC_ONLY = 0x02, + AM_DVD_SWDEC_PREFER = 0x04, + AM_DVD_SWDEC_ONLY = 0x08, + AM_DVD_NOVPE = 0x100, + AM_DVD_DO_NOT_CLEAR = 0x200, // do not clear graph before building + AM_DVD_VMR9_ONLY =0x0800, // only use VMR9 (otherwise fail) for rendering + AM_DVD_EVR_ONLY =0x1000, // only use EVR (otherwise fail) for rendering + AM_DVD_EVR_QOS =0x2000, // Enabled EVR Dynamic QoS + AM_DVD_ADAPT_GRAPH =0x4000, // Adapt graph building to machine capbilities + + AM_DVD_MASK =0xffff, // only lower WORD is used/allowed +} AM_DVD_GRAPH_FLAGS ; + +typedef enum _AM_DVD_STREAM_FLAGS { + AM_DVD_STREAM_VIDEO = 0x01, + AM_DVD_STREAM_AUDIO = 0x02, + AM_DVD_STREAM_SUBPIC = 0x04 +} AM_DVD_STREAM_FLAGS ; + +typedef struct { + HRESULT hrVPEStatus ; // VPE mixing error code (0 => success) + BOOL bDvdVolInvalid ; // Is specified DVD volume invalid? + BOOL bDvdVolUnknown ; // Is DVD volume to be played not specified/not found? + BOOL bNoLine21In ; // video decoder doesn't produce line21 (CC) data + BOOL bNoLine21Out ; // can't show decoded line21 data as CC on video + int iNumStreams ; // number of DVD streams to render + int iNumStreamsFailed ; // number of streams failed to render + DWORD dwFailedStreamsFlag ; // combination of flags to indicate failed streams +} AM_DVD_RENDERSTATUS ; + + +// +// IDvdGraphBuilder interface to build a filter graph for DVD-Video playback. +// + +[ + object, + local, + uuid(FCC152B6-F372-11d0-8E00-00C04FD7C08B), + pointer_default(unique) +] +interface IDvdGraphBuilder : IUnknown { + + // Returns the IGraphBuilder interface for the filtergraph used by the + // CDvdGraphBuilder object. + // Remember to *ppGB->Release() when you're done with it + HRESULT GetFiltergraph + ( [out, annotation("_Out_")] IGraphBuilder **ppGB + ) ; + + // Gets specific interface pointers in the DVD-Video playback graph to + // make DVD-Video playback development easier. + // It helps get the following interfaces to control playback/show CC/ + // position window/control volume etc: + // - IDvdControl, IDvdInfo + // - IAMLine21Decoder + // - IVideoWindow, IBasicVideo + // - IBasicAudio + // This method will return + // a) E_INVALIDARG if ppvIF is invalid + // b) E_NOINTERFACE if riid is an IID we don't know about + // c) VFW_E_DVD_GRAPHNOTREADY if the graph has not been built through + // RenderDvdVideoVolume() yet. + // Remember to *ppvIF->Release() when you're done with it + HRESULT GetDvdInterface + ( [in] REFIID riid, // IID of the interface required + [out, annotation("_Out_")] void **ppvIF // returns pointer to the required interface + ) ; + + // Builds a filter graph according to user specs for playing back a + // DVD-Video volume. + // This method returns S_FALSE if + // 1. the graph has been either built, but either + // a) VPE mixing doesn't work (app didn't use AM_DVD_NOVPE flag) + // b) video decoder doesn't produce line21 data + // c) line21 data couldn't be rendered (decoding/mixing problem) + // d) the call specified an invalid volume path or DVD Nav couldn't + // locate any DVD-Video volume to be played. + // 2. some streams didn't render (completely), but the others have + // been rendered so that the volume can be partially played back. + // The status is indicated through the fields of the pStatus (out) + // parameter. + // About 1(a), the app will have enough info to tell the user that the + // video won't be visible unless a TV is connected to the NTSC out + // port of the DVD decoder (presumably HW in this case). + // For case 1(b) & (c), the app "can" put up a warning/informative message + // that closed captioning is not available because of the decoder. + // 1(d) helps an app to ask the user to insert a DVD-Video disc if none + // is specified/available in the drive when playback is started. + // This method builds the graph even if + // - an invalid DVD-Video volume is specified + // - the caller uses lpwszPathName = NULL to make the DVD Nav to locate + // the default volume to be played back, but DVD Nav doesn't find a + // default DVD-Video volume to be played back. + // An app can later specify the volume using IDvdControl::SetRoot() + // method. + // #2 will help the app indicate to the user that some of the streams + // can't be played. + // + // The graph is built using filters based on the dwFlags value (to use + // HW decoders or SW decoders or a mix of them). + // The dwFlags value is one of the values in AM_DVD_GRAPH_FLAGS enum + // type. The default value is AM_DVD_HWDEC_PREFER. None of the + // AM_DVD_HWDEC_xxx or AM_DVD_SWDEC_xxx flags can be mixed. However + // AM_DVD_NOVPE can be OR-ed with any of the AM_DVD_HWDEC_xxx flags. + // + // The method returns S_OK if the playback graph is built successfully + // with all the streams completely rendered and a valid DVD-Video volume + // is specified or a default one has been located. + // + // If the dwFlags specify conflicting options, E_INVALIDARG is returned. + // If the graph building fails, the method returns one of the following + // error codes: + // VFW_E_DVD_RENDERFAIL, VFW_E_DVD_DECNOTENOUGH + // + HRESULT RenderDvdVideoVolume + ( [in] LPCWSTR lpcwszPathName, // Can be NULL too + [in] DWORD dwFlags, // 0 is the default (use max HW) + [out, annotation("_Out_")] AM_DVD_RENDERSTATUS *pStatus // returns indications of ANY failure + ) ; +} + + +// +// DDraw Exclusive Mode Video standard COM interface for Overlay Mixer +// +[ + object, + local, + uuid(153ACC21-D83B-11d1-82BF-00A0C9696C8F), + pointer_default(unique) +] +interface IDDrawExclModeVideo : IUnknown { + // set a ddraw object to be used by the overlay mixer. If even one of the pins + // of the ovmixer is connected, then it won't start using the new ddraw obect + // immediately but just cache it. It will start using it the next time, all its + // pins are disconnected. + HRESULT SetDDrawObject([in] IDirectDraw *pDDrawObject); + + // gets the ddraw object currently being used by the overlay mixer. If the app has not + // set any ddraw object and the ovmixer has not yet allocated one, then *ppDDrawObject + // will be set to NULL and *pbUsingExternal will be set TO FALSE. Otherwise *pbUsingExternal + // will be set to TRUE if the ovmixer is currently USING an app given ddraw object and FALSE + // othewise + HRESULT GetDDrawObject([out, annotation("_Out_")] IDirectDraw **ppDDrawObject, + [out, annotation("_Out_")] BOOL *pbUsingExternal); + + // set a primary surface to be used by the overlay mixer. If even one of the pins + // of the ovmixer is connected, then it won't start using the new primary surface + // immediately but just cache it. It will start using it the next time, all its + // pins are disconnected. + // Also when the ovmixer does start using an app given primary surface, it will delete + // its output pin (and not draw its own colorkey) since the app is expected to do the + // window management and drawing colorkey etc on the primary surface + // This function makes sure that the surface provided exposes IDirectDrawSurface3, and + // is consistent with the ddraw object provided. + HRESULT SetDDrawSurface([in] IDirectDrawSurface *pDDrawSurface); + + // gets the ddraw surface currently being used by the overlay mixer. If the app has not + // set any ddraw surface and the ovmixer has not yet allocated one, then *ppDDrawSurface + // will be set to NULL and *pbUsingExternal will be set to FALSE. Otherwise *pbUsingExternal + // will be set to TRUE if the ovmixer is curretnly USING an app given ddraw surface and FALSE + // otherwise + HRESULT GetDDrawSurface([out, annotation("_Out_")] IDirectDrawSurface **ppDDrawSurface, + [out, annotation("_Out_")] BOOL *pbUsingExternal); + + // set draw paramters on the ovmixer (src and dest rect). Note that if the mode + // of the ovmixer is set to LETTER_BOX, then the ovmixer might show the video in + // only a subrect of *prcTarget (see IMixerPinConfig for details). + HRESULT SetDrawParameters([in] const RECT * prcSource, + [in] const RECT * prcTarget); + + // gets the current video size and picture aspect ratio of the primary stream of the overlay mixer + // The app should look for the evene EC_VIDEO_SIZE_AR_CHANGED and on its receipt + // call this function again + HRESULT GetNativeVideoProps([out, annotation("_Out_")] DWORD *pdwVideoWidth, + [out, annotation("_Out_")] DWORD *pdwVideoHeight, + [out, annotation("_Out_")] DWORD *pdwPictAspectRatioX, + [out, annotation("_Out_")] DWORD *pdwPictAspectRatioY); + + // Set the callback interface - the callback interface will be defined in a later release + // Currently returns E_NOTIMPL + HRESULT SetCallbackInterface([in] IDDrawExclModeVideoCallback *pCallback, + [in] DWORD dwFlags); +} + + +// +// DDraw Exclusive Mode Video callbacks +// + +// enum for flags +enum _AM_OVERLAY_NOTIFY_FLAGS { + AM_OVERLAY_NOTIFY_VISIBLE_CHANGE = 0x00000001, + AM_OVERLAY_NOTIFY_SOURCE_CHANGE = 0x00000002, + AM_OVERLAY_NOTIFY_DEST_CHANGE = 0x00000004 +}; +[ + object, + local, + uuid(913c24a0-20ab-11d2-9038-00a0c9697298), + pointer_default(unique) +] +interface IDDrawExclModeVideoCallback : IUnknown { + + // Called once before UpdateOverlay is called with bBefore == TRUE + // and once after it is called with bBefore == FALSE and otherwise + // identical parameters + HRESULT OnUpdateOverlay( + [in] BOOL bBefore, // After UpdateOverlayCalled? + [in] DWORD dwFlags,// _AM_OVERLAY_NOTIFY enum + [in] BOOL bOldVisible, + [in] const RECT *prcOldSrc, + [in] const RECT *prcOldDest, + [in] BOOL bNewVisible, + [in] const RECT *prcNewSrc, + [in] const RECT *prcNewDest); + + // Called when the surface color key is changed + HRESULT OnUpdateColorKey( + [in] const COLORKEY *pKey, + [in] DWORD dwColor); + + // Called when the video size or aspect ratio changes + HRESULT OnUpdateSize( [in] DWORD dwWidth, // Movie pixel width + [in] DWORD dwHeight, // Movie pixel height + [in] DWORD dwARWidth, // Aspect ratio horizontal + [in] DWORD dwARHeight); // Aspect ratio vertical +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dvdmedia.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dvdmedia.h new file mode 100644 index 0000000000000000000000000000000000000000..33fbaa49f87eac3b830900cd34c57c835a2d7402 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dvdmedia.h @@ -0,0 +1,455 @@ +//------------------------------------------------------------------------------ +// File: DVDMedia.h +// +// Desc: Contains typedefs and defines necessary for user mode (ring 3) DVD +// filters and applications. +// +// This should be included in the DirectShow SDK for user mode filters. +// The types defined here should be kept in synch with ksmedia.h WDM +// DDK for kernel mode filters. +// +// Copyright (c) 1997 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#ifndef __DVDMEDIA_H__ +#define __DVDMEDIA_H__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +// ----------------------------------------------------------------------- +// AC-3 definition for the AM_KSPROPSETID_AC3 property set +// ----------------------------------------------------------------------- + +typedef enum { + AM_PROPERTY_AC3_ERROR_CONCEALMENT = 1, + AM_PROPERTY_AC3_ALTERNATE_AUDIO = 2, + AM_PROPERTY_AC3_DOWNMIX = 3, + AM_PROPERTY_AC3_BIT_STREAM_MODE = 4, + AM_PROPERTY_AC3_DIALOGUE_LEVEL = 5, + AM_PROPERTY_AC3_LANGUAGE_CODE = 6, + AM_PROPERTY_AC3_ROOM_TYPE = 7 +} AM_PROPERTY_AC3; + +typedef struct { + BOOL fRepeatPreviousBlock; + BOOL fErrorInCurrentBlock; +} AM_AC3_ERROR_CONCEALMENT, *PAM_AC3_ERROR_CONCEALMENT; + +typedef struct { + BOOL fStereo; + ULONG DualMode; +} AM_AC3_ALTERNATE_AUDIO, *PAM_AC3_ALTERNATE_AUDIO; + +#define AM_AC3_ALTERNATE_AUDIO_1 1 +#define AM_AC3_ALTERNATE_AUDIO_2 2 +#define AM_AC3_ALTERNATE_AUDIO_BOTH 3 + +typedef struct { + BOOL fDownMix; + BOOL fDolbySurround; +} AM_AC3_DOWNMIX, *PAM_AC3_DOWNMIX; + +typedef struct { + LONG BitStreamMode; +} AM_AC3_BIT_STREAM_MODE, *PAM_AC3_BIT_STREAM_MODE; + +#define AM_AC3_SERVICE_MAIN_AUDIO 0 +#define AM_AC3_SERVICE_NO_DIALOG 1 +#define AM_AC3_SERVICE_VISUALLY_IMPAIRED 2 +#define AM_AC3_SERVICE_HEARING_IMPAIRED 3 +#define AM_AC3_SERVICE_DIALOG_ONLY 4 +#define AM_AC3_SERVICE_COMMENTARY 5 +#define AM_AC3_SERVICE_EMERGENCY_FLASH 6 +#define AM_AC3_SERVICE_VOICE_OVER 7 + +typedef struct { + ULONG DialogueLevel; +} AM_AC3_DIALOGUE_LEVEL, *PAM_AC3_DIALOGUE_LEVEL; + +typedef struct { + BOOL fLargeRoom; +} AM_AC3_ROOM_TYPE, *PAM_AC3_ROOM_TYPE; + + +// ----------------------------------------------------------------------- +// subpicture definition for the AM_KSPROPSETID_DvdSubPic property set +// ----------------------------------------------------------------------- + +typedef enum { + AM_PROPERTY_DVDSUBPIC_PALETTE = 0, + AM_PROPERTY_DVDSUBPIC_HLI = 1, + AM_PROPERTY_DVDSUBPIC_COMPOSIT_ON = 2 // TRUE for subpicture is displayed +} AM_PROPERTY_DVDSUBPIC; + +typedef struct _AM_DVD_YUV { + UCHAR Reserved; + UCHAR Y; + UCHAR U; + UCHAR V; +} AM_DVD_YUV, *PAM_DVD_YUV; + +typedef struct _AM_PROPERTY_SPPAL { + AM_DVD_YUV sppal[16]; +} AM_PROPERTY_SPPAL, *PAM_PROPERTY_SPPAL; + +typedef struct _AM_COLCON { + UCHAR emph1col:4; + UCHAR emph2col:4; + UCHAR backcol:4; + UCHAR patcol:4; + UCHAR emph1con:4; + UCHAR emph2con:4; + UCHAR backcon:4; + UCHAR patcon:4; + +} AM_COLCON, *PAM_COLCON; + +typedef struct _AM_PROPERTY_SPHLI { + USHORT HLISS; // + USHORT Reserved; + ULONG StartPTM; // start presentation time in x/90000 + ULONG EndPTM; // end PTM in x/90000 + USHORT StartX; + USHORT StartY; + USHORT StopX; + USHORT StopY; + AM_COLCON ColCon; // color contrast description (4 bytes as given in HLI) +} AM_PROPERTY_SPHLI, *PAM_PROPERTY_SPHLI; + +typedef BOOL AM_PROPERTY_COMPOSIT_ON, *PAM_PROPERTY_COMPOSIT_ON; + + + +// ----------------------------------------------------------------------- +// copy protection definitions +// ----------------------------------------------------------------------- + +// AM_UseNewCSSKey for the dwTypeSpecificFlags in IMediaSample2 to indicate +// the exact point in a stream after which to start applying a new CSS key. +// This is typically sent on an empty media sample just before attempting +// to renegotiate a CSS key. +#define AM_UseNewCSSKey 0x1 + +#define AM_ReverseBlockStart 0x2 +#define AM_ReverseBlockEnd 0x4 + + +// +// AM_KSPROPSETID_CopyProt property set definitions +// +typedef enum { + AM_PROPERTY_DVDCOPY_CHLG_KEY = 0x01, + AM_PROPERTY_DVDCOPY_DVD_KEY1 = 0x02, + AM_PROPERTY_DVDCOPY_DEC_KEY2 = 0x03, + AM_PROPERTY_DVDCOPY_TITLE_KEY = 0x04, + AM_PROPERTY_COPY_MACROVISION = 0x05, + AM_PROPERTY_DVDCOPY_REGION = 0x06, + AM_PROPERTY_DVDCOPY_SET_COPY_STATE = 0x07, + AM_PROPERTY_COPY_ANALOG_COMPONENT = 0x08, // GetOnly property, return data is a BOOL + AM_PROPERTY_COPY_DIGITAL_CP = 0x09, + AM_PROPERTY_COPY_DVD_SRM = 0x0a, + AM_PROPERTY_DVDCOPY_SUPPORTS_NEW_KEYCOUNT = 0x0b, // read only, BOOL + // gap + AM_PROPERTY_DVDCOPY_DISC_KEY = 0x80 +} AM_PROPERTY_DVDCOPYPROT; + +typedef enum _AM_DIGITAL_CP { + AM_DIGITAL_CP_OFF = 0, + AM_DIGITAL_CP_ON = 1, + AM_DIGITAL_CP_DVD_COMPLIANT = 2 +} AM_DIGITAL_CP; + +typedef struct _AM_DVDCOPY_CHLGKEY { + BYTE ChlgKey[10]; + BYTE Reserved[2]; +} AM_DVDCOPY_CHLGKEY, *PAM_DVDCOPY_CHLGKEY; + +typedef struct _AM_DVDCOPY_BUSKEY { + BYTE BusKey[5]; + BYTE Reserved[1]; +} AM_DVDCOPY_BUSKEY, *PAM_DVDCOPY_BUSKEY; + +typedef struct _AM_DVDCOPY_DISCKEY { + BYTE DiscKey[2048]; +} AM_DVDCOPY_DISCKEY, *PAM_DVDCOPY_DISCKEY; + +typedef struct AM_DVDCOPY_TITLEKEY { + ULONG KeyFlags; + ULONG Reserved1[2]; + UCHAR TitleKey[6]; + UCHAR Reserved2[2]; +} AM_DVDCOPY_TITLEKEY, *PAM_DVDCOPY_TITLEKEY; + +typedef struct _AM_COPY_MACROVISION { + ULONG MACROVISIONLevel; +} AM_COPY_MACROVISION, *PAM_COPY_MACROVISION; + +typedef struct AM_DVDCOPY_SET_COPY_STATE { + ULONG DVDCopyState; +} AM_DVDCOPY_SET_COPY_STATE, *PAM_DVDCOPY_SET_COPY_STATE; + +typedef enum { + AM_DVDCOPYSTATE_INITIALIZE = 0, + AM_DVDCOPYSTATE_INITIALIZE_TITLE = 1, // indicates we are starting a title + // key copy protection sequence + AM_DVDCOPYSTATE_AUTHENTICATION_NOT_REQUIRED = 2, + AM_DVDCOPYSTATE_AUTHENTICATION_REQUIRED = 3, + AM_DVDCOPYSTATE_DONE = 4 +} AM_DVDCOPYSTATE; + +typedef enum { + AM_MACROVISION_DISABLED = 0, + AM_MACROVISION_LEVEL1 = 1, + AM_MACROVISION_LEVEL2 = 2, + AM_MACROVISION_LEVEL3 = 3 +} AM_COPY_MACROVISION_LEVEL, *PAM_COPY_MACROVISION_LEVEL; + + +// CSS region stucture +typedef struct _DVD_REGION { + UCHAR CopySystem; + UCHAR RegionData; + UCHAR SystemRegion; + UCHAR ResetCount; +} DVD_REGION, *PDVD_REGION; + +// +// CGMS Copy Protection Flags +// + +#define AM_DVD_CGMS_RESERVED_MASK 0x00000078 + +#define AM_DVD_CGMS_COPY_PROTECT_MASK 0x00000018 +#define AM_DVD_CGMS_COPY_PERMITTED 0x00000000 +#define AM_DVD_CGMS_COPY_ONCE 0x00000010 +#define AM_DVD_CGMS_NO_COPY 0x00000018 + +#define AM_DVD_COPYRIGHT_MASK 0x00000040 +#define AM_DVD_NOT_COPYRIGHTED 0x00000000 +#define AM_DVD_COPYRIGHTED 0x00000040 + +#define AM_DVD_SECTOR_PROTECT_MASK 0x00000020 +#define AM_DVD_SECTOR_NOT_PROTECTED 0x00000000 +#define AM_DVD_SECTOR_PROTECTED 0x00000020 + + +// ----------------------------------------------------------------------- +// video format blocks +// ----------------------------------------------------------------------- + +enum AM_MPEG2Level { + AM_MPEG2Level_Low = 1, + AM_MPEG2Level_Main = 2, + AM_MPEG2Level_High1440 = 3, + AM_MPEG2Level_High = 4 +}; + +enum AM_MPEG2Profile { + AM_MPEG2Profile_Simple = 1, + AM_MPEG2Profile_Main = 2, + AM_MPEG2Profile_SNRScalable = 3, + AM_MPEG2Profile_SpatiallyScalable = 4, + AM_MPEG2Profile_High = 5 +}; + +#define AMINTERLACE_IsInterlaced 0x00000001 // if 0, other interlace bits are irrelevent +#define AMINTERLACE_1FieldPerSample 0x00000002 // else 2 fields per media sample +#define AMINTERLACE_Field1First 0x00000004 // else Field 2 is first; top field in PAL is field 1, top field in NTSC is field 2? +#define AMINTERLACE_UNUSED 0x00000008 // +#define AMINTERLACE_FieldPatternMask 0x00000030 // use this mask with AMINTERLACE_FieldPat* +#define AMINTERLACE_FieldPatField1Only 0x00000000 // stream never contains a Field2 +#define AMINTERLACE_FieldPatField2Only 0x00000010 // stream never contains a Field1 +#define AMINTERLACE_FieldPatBothRegular 0x00000020 // There will be a Field2 for every Field1 (required for Weave?) +#define AMINTERLACE_FieldPatBothIrregular 0x00000030 // Random pattern of Field1s and Field2s +#define AMINTERLACE_DisplayModeMask 0x000000c0 +#define AMINTERLACE_DisplayModeBobOnly 0x00000000 +#define AMINTERLACE_DisplayModeWeaveOnly 0x00000040 +#define AMINTERLACE_DisplayModeBobOrWeave 0x00000080 + +#define AMCOPYPROTECT_RestrictDuplication 0x00000001 // duplication of this stream should be restricted + +#define AMMPEG2_DoPanScan 0x00000001 //if set, the MPEG-2 video decoder should crop output image + // based on pan-scan vectors in picture_display_extension + // and change the picture aspect ratio accordingly. +#define AMMPEG2_DVDLine21Field1 0x00000002 //if set, the MPEG-2 decoder must be able to produce an output + // pin for DVD style closed caption data found in GOP layer of field 1 +#define AMMPEG2_DVDLine21Field2 0x00000004 //if set, the MPEG-2 decoder must be able to produce an output + // pin for DVD style closed caption data found in GOP layer of field 2 +#define AMMPEG2_SourceIsLetterboxed 0x00000008 //if set, indicates that black bars have been encoded in the top + // and bottom of the video. +#define AMMPEG2_FilmCameraMode 0x00000010 //if set, indicates "film mode" used for 625/50 content. If cleared, + // indicates that "camera mode" was used. +#define AMMPEG2_LetterboxAnalogOut 0x00000020 //if set and this stream is sent to an analog output, it should + // be letterboxed. Streams sent to VGA should be letterboxed only by renderers. +#define AMMPEG2_DSS_UserData 0x00000040 //if set, the MPEG-2 decoder must process DSS style user data +#define AMMPEG2_DVB_UserData 0x00000080 //if set, the MPEG-2 decoder must process DVB style user data +#define AMMPEG2_27MhzTimebase 0x00000100 //if set, the PTS,DTS timestamps advance at 27MHz rather than 90KHz + +#define AMMPEG2_WidescreenAnalogOut 0x00000200 //if set and this stream is sent to an analog output, it should + // be in widescreen format (4x3 content should be centered on a 16x9 output). + // Streams sent to VGA should be widescreened only by renderers. + +// PRESENT in dwReserved1 field in VIDEOINFOHEADER2 +#define AMCONTROL_USED 0x00000001 // Used to test if these flags are supported. Set and test for AcceptMediaType. + // If rejected, then you cannot use the AMCONTROL flags (send 0 for dwReserved1) +#define AMCONTROL_PAD_TO_4x3 0x00000002 // if set means display the image in a 4x3 area +#define AMCONTROL_PAD_TO_16x9 0x00000004 // if set means display the image in a 16x9 area +#define AMCONTROL_COLORINFO_PRESENT 0x00000080 // if set, indicates DXVA color info is present in the upper (24) bits of the dwControlFlags + +typedef struct tagVIDEOINFOHEADER2 { + RECT rcSource; + RECT rcTarget; + DWORD dwBitRate; + DWORD dwBitErrorRate; + REFERENCE_TIME AvgTimePerFrame; + DWORD dwInterlaceFlags; // use AMINTERLACE_* defines. Reject connection if undefined bits are not 0 + DWORD dwCopyProtectFlags; // use AMCOPYPROTECT_* defines. Reject connection if undefined bits are not 0 + DWORD dwPictAspectRatioX; // X dimension of picture aspect ratio, e.g. 16 for 16x9 display + DWORD dwPictAspectRatioY; // Y dimension of picture aspect ratio, e.g. 9 for 16x9 display + union { + DWORD dwControlFlags; // use AMCONTROL_* defines, use this from now on + DWORD dwReserved1; // for backward compatiblity (was "must be 0"; connection rejected otherwise) + }; + DWORD dwReserved2; // must be 0; reject connection otherwise + BITMAPINFOHEADER bmiHeader; +} VIDEOINFOHEADER2; + +typedef struct tagMPEG2VIDEOINFO { + VIDEOINFOHEADER2 hdr; + DWORD dwStartTimeCode; // ?? not used for DVD ?? + DWORD cbSequenceHeader; // is 0 for DVD (no sequence header) + DWORD dwProfile; // use enum MPEG2Profile + DWORD dwLevel; // use enum MPEG2Level + DWORD dwFlags; // use AMMPEG2_* defines. Reject connection if undefined bits are not 0 + DWORD dwSequenceHeader[1]; // DWORD instead of Byte for alignment purposes + // For MPEG-2, if a sequence_header is included, the sequence_extension + // should also be included +} MPEG2VIDEOINFO; + +#define SIZE_MPEG2VIDEOINFO(pv) (FIELD_OFFSET(MPEG2VIDEOINFO, dwSequenceHeader[0]) + (pv)->cbSequenceHeader) + +// do not use +#define MPEG1_SEQUENCE_INFO(pv) ((const BYTE *)(pv)->bSequenceHeader) + +// use this macro instead, the previous only works for MPEG1VIDEOINFO structures +#define MPEG2_SEQUENCE_INFO(pv) ((const BYTE *)(pv)->dwSequenceHeader) + + +//=================================================================================== +// flags for dwTypeSpecificFlags in AM_SAMPLE2_PROPERTIES which define type specific +// data in IMediaSample2 +//=================================================================================== + +#define AM_VIDEO_FLAG_FIELD_MASK 0x0003L // use this mask to check whether the sample is field1 or field2 or frame +#define AM_VIDEO_FLAG_INTERLEAVED_FRAME 0x0000L // the sample is a frame (remember to use AM_VIDEO_FLAG_FIELD_MASK when using this) +#define AM_VIDEO_FLAG_FIELD1 0x0001L // the sample is field1 (remember to use AM_VIDEO_FLAG_FIELD_MASK when using this) +#define AM_VIDEO_FLAG_FIELD2 0x0002L // the sample is the field2 (remember to use AM_VIDEO_FLAG_FIELD_MASK when using this) +#define AM_VIDEO_FLAG_FIELD1FIRST 0x0004L // if set means display field1 first, else display field2 first. + // this bit is irrelavant for 1FieldPerSample mode +#define AM_VIDEO_FLAG_WEAVE 0x0008L // if set use bob display mode else weave +#define AM_VIDEO_FLAG_IPB_MASK 0x0030L // use this mask to check whether the sample is I, P or B +#define AM_VIDEO_FLAG_I_SAMPLE 0x0000L // I Sample (remember to use AM_VIDEO_FLAG_IPB_MASK when using this) +#define AM_VIDEO_FLAG_P_SAMPLE 0x0010L // P Sample (remember to use AM_VIDEO_FLAG_IPB_MASK when using this) +#define AM_VIDEO_FLAG_B_SAMPLE 0x0020L // B Sample (remember to use AM_VIDEO_FLAG_IPB_MASK when using this) +#define AM_VIDEO_FLAG_REPEAT_FIELD 0x0040L // if set means display the field which has been displayed first again after displaying + // both fields first. This bit is irrelavant for 1FieldPerSample mode + +// ----------------------------------------------------------------------- +// AM_KSPROPSETID_DvdKaraoke property set definitions +// ----------------------------------------------------------------------- + +typedef struct tagAM_DvdKaraokeData +{ + DWORD dwDownmix; // bitwise OR of AM_DvdKaraoke_Downmix flags + DWORD dwSpeakerAssignment; // AM_DvdKaraoke_SpeakerAssignment +} AM_DvdKaraokeData; + +typedef enum { + AM_PROPERTY_DVDKARAOKE_ENABLE = 0, // BOOL + AM_PROPERTY_DVDKARAOKE_DATA = 1, +} AM_PROPERTY_DVDKARAOKE; + +// ----------------------------------------------------------------------- +// AM_KSPROPSETID_TSRateChange property set definitions for time stamp +// rate changes. +// ----------------------------------------------------------------------- + +typedef enum { + AM_RATE_SimpleRateChange = 1, // rw, use AM_SimpleRateChange + AM_RATE_ExactRateChange = 2, // rw, use AM_ExactRateChange + AM_RATE_MaxFullDataRate = 3, // r, use AM_MaxFullDataRate + AM_RATE_Step = 4, // w, use AM_Step + AM_RATE_UseRateVersion = 5, // w, use WORD + AM_RATE_QueryFullFrameRate =6, // r, use AM_QueryRate + AM_RATE_QueryLastRateSegPTS =7, // r, use REFERENCE_TIME + AM_RATE_CorrectTS = 8, // w, use LONG + AM_RATE_ReverseMaxFullDataRate = 9, // r, use AM_MaxFullDataRate + AM_RATE_ResetOnTimeDisc = 10, // rw, use DWORD - indicates supports new 'timeline reset on time discontinuity' sample + AM_RATE_QueryMapping = 11 +} AM_PROPERTY_TS_RATE_CHANGE; + +// ------------------------------------------------------------------- +// AM_KSPROPSETID_DVD_RateChange property set definitions for new DVD +// rate change scheme. +// ------------------------------------------------------------------- + +typedef enum { + AM_RATE_ChangeRate = 1, // w, use AM_DVD_ChangeRate + AM_RATE_FullDataRateMax = 2, // r, use AM_MaxFullDataRate + AM_RATE_ReverseDecode = 3, // r, use LONG + AM_RATE_DecoderPosition = 4, // r, use AM_DVD_DecoderPosition + AM_RATE_DecoderVersion = 5 // r, use LONG +} AM_PROPERTY_DVD_RATE_CHANGE; + +typedef struct { + // this is the simplest mechanism to set a time stamp rate change on + // a filter (simplest for the person setting the rate change, harder + // for the filter doing the rate change). + REFERENCE_TIME StartTime; //stream time at which to start this rate + LONG Rate; //new rate * 10000 (decimal) +} AM_SimpleRateChange; + +typedef struct { + LONG lMaxForwardFullFrame ; // rate * 10000 + LONG lMaxReverseFullFrame ; // rate * 10000 +} AM_QueryRate ; + +typedef struct { + REFERENCE_TIME OutputZeroTime; //input TS that maps to zero output TS + LONG Rate; //new rate * 10000 (decimal) +} AM_ExactRateChange; + +typedef LONG AM_MaxFullDataRate; //rate * 10000 (decimal) + +typedef DWORD AM_Step; // number of frame to step + +// New rate change property set, structs. enums etc. +typedef struct { + REFERENCE_TIME StartInTime; // stream time (input) at which to start decoding at this rate + REFERENCE_TIME StartOutTime; // reference time (output) at which to start showing at this rate + LONG Rate; // new rate * 10000 (decimal) +} AM_DVD_ChangeRate ; + +typedef LONGLONG AM_DVD_DecoderPosition ; + +typedef enum { + DVD_DIR_FORWARD = 0, + DVD_DIR_BACKWARD = 1 +} DVD_PLAY_DIRECTION ; + +#ifdef __cplusplus +} +#endif // __cplusplus + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __DVDMEDIA_H__ diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dvp.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dvp.h new file mode 100644 index 0000000000000000000000000000000000000000..e5fafa29e3dbf449fdc6b97b142408c4b6b3f4d1 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dvp.h @@ -0,0 +1,977 @@ +/*==========================================================================; + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: dvp.h + * Content: DirectDrawVideoPort include file + * + ***************************************************************************/ + +#ifndef __DVP_INCLUDED__ +#define __DVP_INCLUDED__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +/* + * GUIDS used by DirectDrawVideoPort objects + */ +#if defined( _WIN32 ) && (!defined( _NO_COM ) || defined( DEFINE_GUID )) +DEFINE_GUID( IID_IDDVideoPortContainer, 0x6C142760,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 ); +DEFINE_GUID( IID_IDirectDrawVideoPort, 0xB36D93E0,0x2B43,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xB9,0x33,0x56 ); +DEFINE_GUID( IID_IDirectDrawVideoPortNotify, 0xA655FB94,0x0589,0x4E57,0xB3,0x33,0x56,0x7A,0x89,0x46,0x8C,0x88); + + + +DEFINE_GUID( DDVPTYPE_E_HREFH_VREFH, 0x54F39980L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8); +DEFINE_GUID( DDVPTYPE_E_HREFH_VREFL, 0x92783220L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8); +DEFINE_GUID( DDVPTYPE_E_HREFL_VREFH, 0xA07A02E0L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8); +DEFINE_GUID( DDVPTYPE_E_HREFL_VREFL, 0xE09C77E0L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8); +DEFINE_GUID( DDVPTYPE_CCIR656, 0xFCA326A0L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8); +DEFINE_GUID( DDVPTYPE_BROOKTREE, 0x1352A560L,0xDA61,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8); +DEFINE_GUID( DDVPTYPE_PHILIPS, 0x332CF160L,0xDA61,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8); +#endif + +#ifndef GUID_DEFS_ONLY + +#if defined( _WIN32 ) && !defined( _NO_COM ) +#define COM_NO_WINDOWS_H +#include +#else +#define IUnknown void +#endif + +/* + * These definitions are required to allow polymorphic structure members (i.e. those + * that are referred to both as DWORDs and as pointers) to resolve into a type + * of correct size to hold the largest of those two types (i.e. pointer) on 64 bit + * systems. For 32 bit environments, ULONG_PTR resolves to a DWORD. + */ +#ifndef MAXULONG_PTR +#define ULONG_PTR DWORD +#endif //MAXULONG_PTR + +#ifdef __cplusplus +extern "C" { +#endif + +/*============================================================================ + * + * DirectDraw Structures + * + * Various structures used to invoke DirectDraw. + * + *==========================================================================*/ + +struct IDirectDraw; +struct IDirectDrawSurface; +struct IDirectDrawPalette; +struct IDirectDrawClipper; + +typedef struct IDDVideoPortContainer FAR *LPDDVIDEOPORTCONTAINER; +typedef struct IDirectDrawVideoPort FAR *LPDIRECTDRAWVIDEOPORT; +typedef struct IDirectDrawVideoPortNotify FAR *LPDIRECTDRAWVIDEOPORTNOTIFY; + +typedef struct _DDVIDEOPORTCONNECT FAR *LPDDVIDEOPORTCONNECT; +typedef struct _DDVIDEOPORTCAPS FAR *LPDDVIDEOPORTCAPS; +typedef struct _DDVIDEOPORTDESC FAR *LPDDVIDEOPORTDESC; +typedef struct _DDVIDEOPORTINFO FAR *LPDDVIDEOPORTINFO; +typedef struct _DDVIDEOPORTBANDWIDTH FAR *LPDDVIDEOPORTBANDWIDTH; +typedef struct _DDVIDEOPORTSTATUS FAR *LPDDVIDEOPORTSTATUS; +typedef struct _DDVIDEOPORTNOTIFY FAR *LPDDVIDEOPORTNOTIFY; + +typedef struct IDDVideoPortContainerVtbl DDVIDEOPORTCONTAINERCALLBACKS; +typedef struct IDirectDrawVideoPortVtbl DIRECTDRAWVIDEOPORTCALLBACKS; +typedef struct IDirectDrawVideoPortNotifyVtbl DIRECTDRAWVIDEOPORTNOTIFYCALLBACKS; + + +/* + * API's + */ +typedef HRESULT (FAR PASCAL * LPDDENUMVIDEOCALLBACK)(LPDDVIDEOPORTCAPS, LPVOID); + + +/* + * INTERACES FOLLOW: + * IDirectDrawVideoPort + * IVideoPort + */ + +/* + * IDirectDrawVideoPortContainer + */ +#if defined( _WIN32 ) && !defined( _NO_COM ) +#undef INTERFACE +#define INTERFACE IDDVideoPortContainer +DECLARE_INTERFACE_( IDDVideoPortContainer, IUnknown ) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + /*** IDirectDrawVideoPort methods ***/ + STDMETHOD(CreateVideoPort)(THIS_ DWORD, LPDDVIDEOPORTDESC, LPDIRECTDRAWVIDEOPORT FAR *, IUnknown FAR *) PURE; + STDMETHOD(EnumVideoPorts)(THIS_ DWORD, LPDDVIDEOPORTCAPS, LPVOID,LPDDENUMVIDEOCALLBACK ) PURE; + STDMETHOD(GetVideoPortConnectInfo)(THIS_ DWORD, _Inout_ LPDWORD pcInfo, _Out_writes_to_opt_(*pcInfo, *pcInfo) LPDDVIDEOPORTCONNECT ) PURE; + STDMETHOD(QueryVideoPortStatus)(THIS_ DWORD, LPDDVIDEOPORTSTATUS ) PURE; +}; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IVideoPortContainer_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b) +#define IVideoPortContainer_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IVideoPortContainer_Release(p) (p)->lpVtbl->Release(p) +#define IVideoPortContainer_CreateVideoPort(p, a, b, c, d) (p)->lpVtbl->CreateVideoPort(p, a, b, c, d) +#define IVideoPortContainer_EnumVideoPorts(p, a, b, c, d) (p)->lpVtbl->EnumVideoPorts(p, a, b, c, d) +#define IVideoPortContainer_GetVideoPortConnectInfo(p, a, b, c) (p)->lpVtbl->GetVideoPortConnectInfo(p, a, b, c) +#define IVideoPortContainer_QueryVideoPortStatus(p, a, b) (p)->lpVtbl->QueryVideoPortStatus(p, a, b) +#else +#define IVideoPortContainer_QueryInterface(p, a, b) (p)->QueryInterface(a, b) +#define IVideoPortContainer_AddRef(p) (p)->AddRef() +#define IVideoPortContainer_Release(p) (p)->Release() +#define IVideoPortContainer_CreateVideoPort(p, a, b, c, d) (p)->CreateVideoPort(a, b, c, d) +#define IVideoPortContainer_EnumVideoPorts(p, a, b, c, d) (p)->EnumVideoPorts(a, b, c, d) +#define IVideoPortContainer_GetVideoPortConnectInfo(p, a, b, c) (p)->GetVideoPortConnectInfo(a, b, c) +#define IVideoPortContainer_QueryVideoPortStatus(p, a, b) (p)->QueryVideoPortStatus(a, b) +#endif + +#endif + + +/* + * IDirectDrawVideoPort + */ +#if defined( _WIN32 ) && !defined( _NO_COM ) +#undef INTERFACE +#define INTERFACE IDirectDrawVideoPort +DECLARE_INTERFACE_( IDirectDrawVideoPort, IUnknown ) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + /*** IVideoPort methods ***/ + STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE, DWORD) PURE; + STDMETHOD(GetBandwidthInfo)(THIS_ LPDDPIXELFORMAT, DWORD, DWORD, DWORD, LPDDVIDEOPORTBANDWIDTH) PURE; + STDMETHOD(GetColorControls)(THIS_ LPDDCOLORCONTROL) PURE; + STDMETHOD(GetInputFormats)(THIS_ LPDWORD lpNumFormats, _Out_writes_to_opt_(*lpNumFormats, *lpNumFormats) LPDDPIXELFORMAT, DWORD) PURE; + STDMETHOD(GetOutputFormats)(THIS_ LPDDPIXELFORMAT, LPDWORD lpNumFormats, _Out_writes_to_opt_(*lpNumFormats, *lpNumFormats) LPDDPIXELFORMAT, DWORD) PURE; + STDMETHOD(GetFieldPolarity)(THIS_ LPBOOL) PURE; + STDMETHOD(GetVideoLine)(THIS_ LPDWORD) PURE; + STDMETHOD(GetVideoSignalStatus)(THIS_ LPDWORD) PURE; + STDMETHOD(SetColorControls)(THIS_ LPDDCOLORCONTROL) PURE; + STDMETHOD(SetTargetSurface)(THIS_ LPDIRECTDRAWSURFACE, DWORD) PURE; + STDMETHOD(StartVideo)(THIS_ LPDDVIDEOPORTINFO) PURE; + STDMETHOD(StopVideo)(THIS) PURE; + STDMETHOD(UpdateVideo)(THIS_ LPDDVIDEOPORTINFO) PURE; + STDMETHOD(WaitForSync)(THIS_ DWORD, DWORD, DWORD) PURE; +}; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IVideoPort_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IVideoPort_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IVideoPort_Release(p) (p)->lpVtbl->Release(p) +#define IVideoPort_SetTargetSurface(p,a,b) (p)->lpVtbl->SetTargetSurface(p,a,b) +#define IVideoPort_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b) +#define IVideoPort_GetBandwidthInfo(p,a,b,c,d,e) (p)->lpVtbl->GetBandwidthInfo(p,a,b,c,d,e) +#define IVideoPort_GetColorControls(p,a) (p)->lpVtbl->GetColorControls(p,a) +#define IVideoPort_GetInputFormats(p,a,b,c) (p)->lpVtbl->GetInputFormats(p,a,b,c) +#define IVideoPort_GetOutputFormats(p,a,b,c,d) (p)->lpVtbl->GetOutputFormats(p,a,b,c,d) +#define IVideoPort_GetFieldPolarity(p,a) (p)->lpVtbl->GetFieldPolarity(p,a) +#define IVideoPort_GetVideoLine(p,a) (p)->lpVtbl->GetVideoLine(p,a) +#define IVideoPort_GetVideoSignalStatus(p,a) (p)->lpVtbl->GetVideoSignalStatus(p,a) +#define IVideoPort_SetColorControls(p,a) (p)->lpVtbl->SetColorControls(p,a) +#define IVideoPort_StartVideo(p,a) (p)->lpVtbl->StartVideo(p,a) +#define IVideoPort_StopVideo(p) (p)->lpVtbl->StopVideo(p) +#define IVideoPort_UpdateVideo(p,a) (p)->lpVtbl->UpdateVideo(p,a) +#define IVideoPort_WaitForSync(p,a,b,c) (p)->lpVtbl->WaitForSync(p,a,b,c) +#else +#define IVideoPort_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IVideoPort_AddRef(p) (p)->AddRef() +#define IVideoPort_Release(p) (p)->Release() +#define IVideoPort_SetTargetSurface(p,a,b) (p)->SetTargetSurface(a,b) +#define IVideoPort_Flip(p,a,b) (p)->Flip(a,b) +#define IVideoPort_GetBandwidthInfo(p,a,b,c,d,e) (p)->GetBandwidthInfo(a,b,c,d,e) +#define IVideoPort_GetColorControls(p,a) (p)->GetColorControls(a) +#define IVideoPort_GetInputFormats(p,a,b,c) (p)->GetInputFormats(a,b,c) +#define IVideoPort_GetOutputFormats(p,a,b,c,d) (p)->GetOutputFormats(a,b,c,d) +#define IVideoPort_GetFieldPolarity(p,a) (p)->GetFieldPolarity(a) +#define IVideoPort_GetVideoLine(p,a) (p)->GetVideoLine(a) +#define IVideoPort_GetVideoSignalStatus(p,a) (p)->GetVideoSignalStatus(a) +#define IVideoPort_SetColorControls(p,a) (p)->SetColorControls(a) +#define IVideoPort_StartVideo(p,a) (p)->StartVideo(a) +#define IVideoPort_StopVideo(p) (p)->StopVideo() +#define IVideoPort_UpdateVideo(p,a) (p)->UpdateVideo(a) +#define IVideoPort_WaitForSync(p,a,b,c) (p)->WaitForSync(a,b,c) +#endif + +#endif + +/* + * IDirectDrawVideoPort + */ +#if (_WIN32_WINNT >= _WIN32_WINNT_WINXP) +#if defined( _WIN32 ) && !defined( _NO_COM ) +#undef INTERFACE +#define INTERFACE IDirectDrawVideoPortNotify +DECLARE_INTERFACE_( IDirectDrawVideoPortNotify, IUnknown ) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + /*** IVideoPort methods ***/ + STDMETHOD(AcquireNotification)(THIS_ HANDLE *, LPDDVIDEOPORTNOTIFY) PURE; + STDMETHOD(ReleaseNotification)(THIS_ HANDLE) PURE; +}; + +#if !defined(__cplusplus) || defined(CINTERFACE) +#define IVideoPortNotify_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IVideoPortNotify_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IVideoPortNotify_Release(p) (p)->lpVtbl->Release(p) +#define IVideoPortNotify_AcquireNotification(p,a,b) (p)->lpVtbl->AcquireNotification(p,a,b) +#define IVideoPortNotify_ReleaseNotification(p,a) (p)->lpVtbl->ReleaseNotification(p,a) +#else +#define IVideoPortNotify_QueryInterface(p,a,b) (p)->QueryInterface(a,b) +#define IVideoPortNotify_AddRef(p) (p)->AddRef() +#define IVideoPortNotify_Release(p) (p)->Release() +#define IVideoPortNotify_AcquireNotification(p,a,b) (p)->lpVtbl->AcquireNotification(a,b) +#define IVideoPortNotify_ReleaseNotification(p,a) (p)->lpVtbl->ReleaseNotification(a) +#endif + +#endif +#endif + +/* + * DDVIDEOPORTCONNECT + */ +typedef struct _DDVIDEOPORTCONNECT +{ + DWORD dwSize; // size of the DDVIDEOPORTCONNECT structure + DWORD dwPortWidth; // Width of the video port + GUID guidTypeID; // Description of video port connection + DWORD dwFlags; // Connection flags + ULONG_PTR dwReserved1; // Reserved, set to zero. +} DDVIDEOPORTCONNECT; + + +/* + * DDVIDEOPORTCAPS + */ +typedef struct _DDVIDEOPORTCAPS +{ + DWORD dwSize; // size of the DDVIDEOPORTCAPS structure + DWORD dwFlags; // indicates which fields contain data + DWORD dwMaxWidth; // max width of the video port field + DWORD dwMaxVBIWidth; // max width of the VBI data + DWORD dwMaxHeight; // max height of the video port field + DWORD dwVideoPortID; // Video port ID (0 - (dwMaxVideoPorts -1)) + DWORD dwCaps; // Video port capabilities + DWORD dwFX; // More video port capabilities + DWORD dwNumAutoFlipSurfaces; // Max number of autoflippable surfaces allowed + DWORD dwAlignVideoPortBoundary; // Byte restriction of placement within the surface + DWORD dwAlignVideoPortPrescaleWidth;// Byte restriction of width after prescaling + DWORD dwAlignVideoPortCropBoundary; // Byte restriction of left cropping + DWORD dwAlignVideoPortCropWidth; // Byte restriction of cropping width + DWORD dwPreshrinkXStep; // Width can be shrunk in steps of 1/x + DWORD dwPreshrinkYStep; // Height can be shrunk in steps of 1/x + DWORD dwNumVBIAutoFlipSurfaces; // Max number of VBI autoflippable surfaces allowed + DWORD dwNumPreferredAutoflip; // Optimal number of autoflippable surfaces for hardware + WORD wNumFilterTapsX; // Number of taps the prescaler uses in the X direction (0 - no prescale, 1 - replication, etc.) + WORD wNumFilterTapsY; // Number of taps the prescaler uses in the Y direction (0 - no prescale, 1 - replication, etc.) +} DDVIDEOPORTCAPS; + +/* + * The dwMaxWidth and dwMaxVBIWidth members are valid + */ +#define DDVPD_WIDTH 0x00000001l + +/* + * The dwMaxHeight member is valid + */ +#define DDVPD_HEIGHT 0x00000002l + +/* + * The dwVideoPortID member is valid + */ +#define DDVPD_ID 0x00000004l + +/* + * The dwCaps member is valid + */ +#define DDVPD_CAPS 0x00000008l + +/* + * The dwFX member is valid + */ +#define DDVPD_FX 0x00000010l + +/* + * The dwNumAutoFlipSurfaces member is valid + */ +#define DDVPD_AUTOFLIP 0x00000020l + +/* + * All of the alignment members are valid + */ +#define DDVPD_ALIGN 0x00000040l + +/* + * The dwNumPreferredAutoflip member is valid + */ +#define DDVPD_PREFERREDAUTOFLIP 0x00000080l + +/* + * The wNumFilterTapsX and wNumFilterTapsY fields are valid + */ +#define DDVPD_FILTERQUALITY 0x00000100l + +/* + * DDVIDEOPORTDESC + */ +typedef struct _DDVIDEOPORTDESC +{ + DWORD dwSize; // size of the DDVIDEOPORTDESC structure + DWORD dwFieldWidth; // width of the video port field + DWORD dwVBIWidth; // width of the VBI data + DWORD dwFieldHeight; // height of the video port field + DWORD dwMicrosecondsPerField; // Microseconds per video field + DWORD dwMaxPixelsPerSecond; // Maximum pixel rate per second + DWORD dwVideoPortID; // Video port ID (0 - (dwMaxVideoPorts -1)) + DWORD dwReserved1; // Reserved for future use - set to zero (struct padding) + DDVIDEOPORTCONNECT VideoPortType; // Description of video port connection + ULONG_PTR dwReserved2; // Reserved for future use - set to zero + ULONG_PTR dwReserved3; // Reserved for future use - set to zero +} DDVIDEOPORTDESC; + + +/* + * DDVIDEOPORTINFO + */ +typedef struct _DDVIDEOPORTINFO +{ + DWORD dwSize; // Size of the structure + DWORD dwOriginX; // Placement of the video data within the surface. + DWORD dwOriginY; // Placement of the video data within the surface. + DWORD dwVPFlags; // Video port options + RECT rCrop; // Cropping rectangle (optional). + DWORD dwPrescaleWidth; // Determines pre-scaling/zooming in the X direction (optional). + DWORD dwPrescaleHeight; // Determines pre-scaling/zooming in the Y direction (optional). + LPDDPIXELFORMAT lpddpfInputFormat; // Video format written to the video port + LPDDPIXELFORMAT lpddpfVBIInputFormat; // Input format of the VBI data + LPDDPIXELFORMAT lpddpfVBIOutputFormat;// Output format of the data + DWORD dwVBIHeight; // Specifies the number of lines of data within the vertical blanking interval. + ULONG_PTR dwReserved1; // Reserved for future use - set to zero + ULONG_PTR dwReserved2; // Reserved for future use - set to zero +} DDVIDEOPORTINFO; + + +/* + * DDVIDEOPORTBANDWIDTH + */ +typedef struct _DDVIDEOPORTBANDWIDTH +{ + DWORD dwSize; // Size of the structure + DWORD dwCaps; + DWORD dwOverlay; // Zoom factor at which overlay is supported + DWORD dwColorkey; // Zoom factor at which overlay w/ colorkey is supported + DWORD dwYInterpolate; // Zoom factor at which overlay w/ Y interpolation is supported + DWORD dwYInterpAndColorkey; // Zoom factor at which ovelray w/ Y interpolation and colorkeying is supported + ULONG_PTR dwReserved1; // Reserved for future use - set to zero + ULONG_PTR dwReserved2; // Reserved for future use - set to zero +} DDVIDEOPORTBANDWIDTH; + + +/* + * DDVIDEOPORTSTATUS + */ +typedef struct _DDVIDEOPORTSTATUS +{ + DWORD dwSize; // Size of the structure + BOOL bInUse; // TRUE if video port is currently being used + DWORD dwFlags; // Currently not used + DWORD dwReserved1; // Reserved for future use + DDVIDEOPORTCONNECT VideoPortType; // Information about the connection + ULONG_PTR dwReserved2; // Reserved for future use + ULONG_PTR dwReserved3; // Reserved for future use +} DDVIDEOPORTSTATUS; + +/* + * DDVIDEOPORTNOTIFY + */ +typedef struct _DDVIDEOPORTNOTIFY +{ + LARGE_INTEGER ApproximateTimeStamp; // Timestamp in the event notification + LONG lField; // 0 if even, 1 if odd, -1 if unknown + UINT dwSurfaceIndex; // Index in the surface chain of the surface that received the sample + LONG lDone; // Call InterlockedIncrement on this when done with sample +} DDVIDEOPORTNOTIFY; + + +/*============================================================================ + * + * Video Port Flags + * + * All flags are bit flags. + * + *==========================================================================*/ + +/**************************************************************************** + * + * VIDEOPORT DDVIDEOPORTCONNECT FLAGS + * + ****************************************************************************/ + +/* + * When this is set by the driver and passed to the client, this + * indicates that the video port is capable of double clocking the data. + * When this is set by the client, this indicates that the video port + * should enable double clocking. This flag is only valid with external + * syncs. + */ +#define DDVPCONNECT_DOUBLECLOCK 0x00000001l + +/* + * When this is set by the driver and passed to the client, this + * indicates that the video port is capable of using an external VACT + * signal. When this is set by the client, this indicates that the + * video port should use the external VACT signal. + */ +#define DDVPCONNECT_VACT 0x00000002l + +/* + * When this is set by the driver and passed to the client, this + * indicates that the video port is capable of treating even fields + * like odd fields and visa versa. When this is set by the client, + * this indicates that the video port should treat even fields like odd + * fields. + */ +#define DDVPCONNECT_INVERTPOLARITY 0x00000004l + +/* + * Indicates that any data written to the video port during the VREF + * period will not be written into the frame buffer. This flag is read only. + */ +#define DDVPCONNECT_DISCARDSVREFDATA 0x00000008l + +/* + * When this is set be the driver and passed to the client, this + * indicates that the device will write half lines into the frame buffer + * if half lines are provided by the decoder. If this is set by the client, + * this indicates that the decoder will be supplying half lines. + */ +#define DDVPCONNECT_HALFLINE 0x00000010l + +/* + * Indicates that the signal is interlaced. This flag is only + * set by the client. + */ +#define DDVPCONNECT_INTERLACED 0x00000020l + +/* + * Indicates that video port is shareable and that this video port + * will use the even fields. This flag is only set by the client. + */ +#define DDVPCONNECT_SHAREEVEN 0x00000040l + +/* + * Indicates that video port is shareable and that this video port + * will use the odd fields. This flag is only set by the client. + */ +#define DDVPCONNECT_SHAREODD 0x00000080l + +/**************************************************************************** + * + * VIDEOPORT DDVIDEOPORTDESC CAPS + * + ****************************************************************************/ + +/* + * Flip can be performed automatically to avoid tearing. + */ +#define DDVPCAPS_AUTOFLIP 0x00000001l + +/* + * Supports interlaced video + */ +#define DDVPCAPS_INTERLACED 0x00000002l + +/* + * Supports non-interlaced video + */ +#define DDVPCAPS_NONINTERLACED 0x00000004l + +/* + * Indicates that the device can return whether the current field + * of an interlaced signal is even or odd. + */ +#define DDVPCAPS_READBACKFIELD 0x00000008l + +/* + * Indicates that the device can return the current line of video + * being written into the frame buffer. + */ +#define DDVPCAPS_READBACKLINE 0x00000010l + +/* + * Allows two gen-locked video streams to share a single video port, + * where one stream uses the even fields and the other uses the odd + * fields. Separate parameters (including address, scaling, + * cropping, etc.) are maintained for both fields.) + */ +#define DDVPCAPS_SHAREABLE 0x00000020l + +/* + * Even fields of video can be automatically discarded. + */ +#define DDVPCAPS_SKIPEVENFIELDS 0x00000040l + +/* + * Odd fields of video can be automatically discarded. + */ +#define DDVPCAPS_SKIPODDFIELDS 0x00000080l + +/* + * Indicates that the device is capable of driving the graphics + * VSYNC with the video port VSYNC. + */ +#define DDVPCAPS_SYNCMASTER 0x00000100l + +/* + * Indicates that data within the vertical blanking interval can + * be written to a different surface. + */ +#define DDVPCAPS_VBISURFACE 0x00000200l + +/* + * Indicates that the video port can perform color operations + * on the incoming data before it is written to the frame buffer. + */ +#define DDVPCAPS_COLORCONTROL 0x00000400l + +/* + * Indicates that the video port can accept VBI data in a different + * width or format than the regular video data. + */ +#define DDVPCAPS_OVERSAMPLEDVBI 0x00000800l + +/* + * Indicates that the video port can write data directly to system memory + */ +#define DDVPCAPS_SYSTEMMEMORY 0x00001000l + +/* + * Indicates that the VBI and video portions of the video stream can + * be controlled by an independent processes. + */ +#define DDVPCAPS_VBIANDVIDEOINDEPENDENT 0x00002000l + +/* + * Indicates that the video port contains high quality hardware + * de-interlacing hardware that should be used instead of the + * bob/weave algorithms. + */ +#define DDVPCAPS_HARDWAREDEINTERLACE 0x00004000l + + +/**************************************************************************** + * + * VIDEOPORT DDVIDEOPORTDESC FX + * + ****************************************************************************/ + +/* + * Limited cropping is available to crop out the vertical interval data. + */ +#define DDVPFX_CROPTOPDATA 0x00000001l + +/* + * Incoming data can be cropped in the X direction before it is written + * to the surface. + */ +#define DDVPFX_CROPX 0x00000002l + +/* + * Incoming data can be cropped in the Y direction before it is written + * to the surface. + */ +#define DDVPFX_CROPY 0x00000004l + +/* + * Supports interleaving interlaced fields in memory. + */ +#define DDVPFX_INTERLEAVE 0x00000008l + +/* + * Supports mirroring left to right as the video data is written + * into the frame buffer. + */ +#define DDVPFX_MIRRORLEFTRIGHT 0x00000010l + +/* + * Supports mirroring top to bottom as the video data is written + * into the frame buffer. + */ +#define DDVPFX_MIRRORUPDOWN 0x00000020l + +/* + * Data can be arbitrarily shrunk in the X direction before it + * is written to the surface. + */ +#define DDVPFX_PRESHRINKX 0x00000040l + +/* + * Data can be arbitrarily shrunk in the Y direction before it + * is written to the surface. + */ +#define DDVPFX_PRESHRINKY 0x00000080l + +/* + * Data can be binary shrunk (1/2, 1/4, 1/8, etc.) in the X + * direction before it is written to the surface. + */ +#define DDVPFX_PRESHRINKXB 0x00000100l + +/* + * Data can be binary shrunk (1/2, 1/4, 1/8, etc.) in the Y + * direction before it is written to the surface. + */ +#define DDVPFX_PRESHRINKYB 0x00000200l + +/* + * Data can be shrunk in increments of 1/x in the X direction + * (where X is specified in the DDVIDEOPORTCAPS.dwPreshrinkXStep) + * before it is written to the surface. + */ +#define DDVPFX_PRESHRINKXS 0x00000400l + +/* + * Data can be shrunk in increments of 1/x in the Y direction + * (where X is specified in the DDVIDEOPORTCAPS.dwPreshrinkYStep) + * before it is written to the surface. + */ +#define DDVPFX_PRESHRINKYS 0x00000800l + +/* + * Data can be arbitrarily stretched in the X direction before + * it is written to the surface. + */ +#define DDVPFX_PRESTRETCHX 0x00001000l + +/* + * Data can be arbitrarily stretched in the Y direction before + * it is written to the surface. + */ +#define DDVPFX_PRESTRETCHY 0x00002000l + +/* + * Data can be integer stretched in the X direction before it is + * written to the surface. + */ +#define DDVPFX_PRESTRETCHXN 0x00004000l + +/* + * Data can be integer stretched in the Y direction before it is + * written to the surface. + */ +#define DDVPFX_PRESTRETCHYN 0x00008000l + +/* + * Indicates that data within the vertical blanking interval can + * be converted independently of the remaining video data. + */ +#define DDVPFX_VBICONVERT 0x00010000l + +/* + * Indicates that scaling can be disabled for data within the + * vertical blanking interval. + */ +#define DDVPFX_VBINOSCALE 0x00020000l + +/* + * Indicates that the video data can ignore the left and right + * cropping coordinates when cropping oversampled VBI data. + */ +#define DDVPFX_IGNOREVBIXCROP 0x00040000l + +/* + * Indicates that interleaving can be disabled for data within the + * vertical blanking interval. + */ +#define DDVPFX_VBINOINTERLEAVE 0x00080000l + + +/**************************************************************************** + * + * VIDEOPORT DDVIDEOPORTINFO FLAGS + * + ****************************************************************************/ + +/* + * Perform automatic flipping. Auto-flipping is performed between + * the overlay surface that was attached to the video port using + * IDirectDrawVideoPort::AttachSurface and the overlay surfaces that + * are attached to the surface via the IDirectDrawSurface::AttachSurface + * method. The flip order is the order in which the overlay surfaces + * were. attached. + */ +#define DDVP_AUTOFLIP 0x00000001l + +/* + * Perform conversion using the ddpfOutputFormat information. + */ +#define DDVP_CONVERT 0x00000002l + +/* + * Perform cropping using the specified rectangle. + */ +#define DDVP_CROP 0x00000004l + +/* + * Indicates that interlaced fields should be interleaved in memory. + */ +#define DDVP_INTERLEAVE 0x00000008l + +/* + * Indicates that the data should be mirrored left to right as it's + * written into the frame buffer. + */ +#define DDVP_MIRRORLEFTRIGHT 0x00000010l + +/* + * Indicates that the data should be mirrored top to bottom as it's + * written into the frame buffer. + */ +#define DDVP_MIRRORUPDOWN 0x00000020l + +/* + * Perform pre-scaling/zooming based on the pre-scale parameters. + */ +#define DDVP_PRESCALE 0x00000040l + +/* + * Ignore input of even fields. + */ +#define DDVP_SKIPEVENFIELDS 0x00000080l + +/* + * Ignore input of odd fields. + */ +#define DDVP_SKIPODDFIELDS 0x00000100l + +/* + * Drive the graphics VSYNCs using the video port VYSNCs. + */ +#define DDVP_SYNCMASTER 0x00000200l + +/* + * The ddpfVBIOutputFormatFormat member contains data that should be used + * to convert the data within the vertical blanking interval. + */ +#define DDVP_VBICONVERT 0x00000400l + +/* + * Indicates that data within the vertical blanking interval + * should not be scaled. + */ +#define DDVP_VBINOSCALE 0x00000800l + +/* + * Indicates that these bob/weave decisions should not be + * overriden by other interfaces. + */ +#define DDVP_OVERRIDEBOBWEAVE 0x00001000l + +/* + * Indicates that the video data should ignore the left and right + * cropping coordinates when cropping the VBI data. + */ +#define DDVP_IGNOREVBIXCROP 0x00002000l + +/* + * Indicates that interleaving can be disabled for data within the + * vertical blanking interval. + */ +#define DDVP_VBINOINTERLEAVE 0x00004000l + +/* + * Indicates that the video port should use the hardware + * de-interlacing hardware. + */ +#define DDVP_HARDWAREDEINTERLACE 0x00008000l + +/**************************************************************************** + * + * DIRIRECTDRAWVIDEOPORT GETINPUTFORMAT/GETOUTPUTFORMAT FLAGS + * + ****************************************************************************/ + +/* + * Return formats for the video data + */ +#define DDVPFORMAT_VIDEO 0x00000001l + +/* + * Return formats for the VBI data + */ +#define DDVPFORMAT_VBI 0x00000002l + +/**************************************************************************** + * + * DIRIRECTDRAWVIDEOPORT SETTARGETSURFACE FLAGS + * + ****************************************************************************/ + +/* + * Surface should receive video data (and VBI data if a surface + * is not explicitly attached for that purpose) + */ +#define DDVPTARGET_VIDEO 0x00000001l + +/* + * Surface should receive VBI data + */ +#define DDVPTARGET_VBI 0x00000002l + + +/**************************************************************************** + * + * DIRIRECTDRAWVIDEOPORT WAITFORSYNC FLAGS + * + ****************************************************************************/ + +/* + * Waits until the beginning of the next VSYNC + */ +#define DDVPWAIT_BEGIN 0x00000001l + +/* + * Waits until the end of the next/current VSYNC + */ +#define DDVPWAIT_END 0x00000002l + +/* + * Waits until the beginning of the specified line + */ +#define DDVPWAIT_LINE 0x00000003l + +/**************************************************************************** + * + * DIRECTDRAWVIDEOPORT FLIP FLAGS + * + ****************************************************************************/ + +/* + * Flips the normal video surface + */ +#define DDVPFLIP_VIDEO 0x00000001l + +/* + * Flips the VBI surface + */ +#define DDVPFLIP_VBI 0x00000002l + +/**************************************************************************** + * + * DIRIRECTDRAWVIDEOPORT GETVIDEOSIGNALSTATUS VALUES + * + ****************************************************************************/ + +/* + * No video signal is present at the video port + */ +#define DDVPSQ_NOSIGNAL 0x00000001l + +/* + * A valid video signal is present at the video port + */ +#define DDVPSQ_SIGNALOK 0x00000002l + +/**************************************************************************** + * + * VIDEOPORTBANDWIDTH Flags + * + ****************************************************************************/ + +/* + * The specified height/width refer to the size of the video port data + * written into memory, after prescaling has occured. + */ +#define DDVPB_VIDEOPORT 0x00000001l + +/* + * The specified height/width refer to the source size of the overlay. + */ +#define DDVPB_OVERLAY 0x00000002l + +/* + * This is a query for the device to return which caps this device requires. + */ +#define DDVPB_TYPE 0x00000004l + +/**************************************************************************** + * + * VIDEOPORTBANDWIDTH Caps + * + ****************************************************************************/ + +/* + * The bandwidth for this device is dependant on the overlay source size. + */ +#define DDVPBCAPS_SOURCE 0x00000001l + +/* + * The bandwidth for this device is dependant on the overlay destination + * size. + */ +#define DDVPBCAPS_DESTINATION 0x00000002l + +/**************************************************************************** + * + * DDVIDEOPORTCONTAINER CreateVideoPort flags + * + ****************************************************************************/ + +/* + * The process only wants to control the VBI portion of the video stream. + */ +#define DDVPCREATE_VBIONLY 0x00000001l + +/* + * The process only wants to control the non-VBI (video) portion of + * the video stream. + */ +#define DDVPCREATE_VIDEOONLY 0x00000002l + +/**************************************************************************** + * + * DDVIDEOPORTSTATUS flags + * + ****************************************************************************/ + +/* + * The video port interface is only controlling the VBI portion of the + * video stream + */ +#define DDVPSTATUS_VBIONLY 0x00000001l + +/* + * The video port interface is only controlling the video portion of the + * video stream + */ +#define DDVPSTATUS_VIDEOONLY 0x00000002l + + +#ifdef __cplusplus +}; +#endif + +#endif // GUID_DEFS_ONLY + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwmapi.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwmapi.h new file mode 100644 index 0000000000000000000000000000000000000000..3aeb430875c2c891b5a2208a3115af9075d566e7 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwmapi.h @@ -0,0 +1,698 @@ +// Copyright (C) Microsoft Corporation. All rights reserved. +#ifndef _DWMAPI_H_ +#define _DWMAPI_H_ + +#include +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifndef DWMAPI +#if !defined(_DWMAPI_) +#define DWMAPI EXTERN_C DECLSPEC_IMPORT HRESULT STDAPICALLTYPE +#define DWMAPI_(type) EXTERN_C DECLSPEC_IMPORT type STDAPICALLTYPE +#else +#define DWMAPI STDAPI +#define DWMAPI_(type) STDAPI_(type) +#endif /* _DWMAPI_ */ +#endif /* DWMAPI */ + +#ifndef MILCORE_KERNEL_COMPONENT +#include +#include +#endif + +#include + +// Blur behind data structures +#define DWM_BB_ENABLE 0x00000001 // fEnable has been specified +#define DWM_BB_BLURREGION 0x00000002 // hRgnBlur has been specified +#define DWM_BB_TRANSITIONONMAXIMIZED 0x00000004 // fTransitionOnMaximized has been specified + +typedef struct _DWM_BLURBEHIND +{ + DWORD dwFlags; + BOOL fEnable; + HRGN hRgnBlur; + BOOL fTransitionOnMaximized; +} DWM_BLURBEHIND, *PDWM_BLURBEHIND; + +// Window attributes +enum DWMWINDOWATTRIBUTE +{ + DWMWA_NCRENDERING_ENABLED = 1, // [get] Is non-client rendering enabled/disabled + DWMWA_NCRENDERING_POLICY, // [set] DWMNCRENDERINGPOLICY - Non-client rendering policy + DWMWA_TRANSITIONS_FORCEDISABLED, // [set] Potentially enable/forcibly disable transitions + DWMWA_ALLOW_NCPAINT, // [set] Allow contents rendered in the non-client area to be visible on the DWM-drawn frame. + DWMWA_CAPTION_BUTTON_BOUNDS, // [get] Bounds of the caption button area in window-relative space. + DWMWA_NONCLIENT_RTL_LAYOUT, // [set] Is non-client content RTL mirrored + DWMWA_FORCE_ICONIC_REPRESENTATION, // [set] Force this window to display iconic thumbnails. + DWMWA_FLIP3D_POLICY, // [set] Designates how Flip3D will treat the window. + DWMWA_EXTENDED_FRAME_BOUNDS, // [get] Gets the extended frame bounds rectangle in screen space + DWMWA_HAS_ICONIC_BITMAP, // [set] Indicates an available bitmap when there is no better thumbnail representation. + DWMWA_DISALLOW_PEEK, // [set] Don't invoke Peek on the window. + DWMWA_EXCLUDED_FROM_PEEK, // [set] LivePreview exclusion information + DWMWA_CLOAK, // [set] Cloak or uncloak the window + DWMWA_CLOAKED, // [get] Gets the cloaked state of the window + DWMWA_FREEZE_REPRESENTATION, // [set] BOOL, Force this window to freeze the thumbnail without live update + DWMWA_PASSIVE_UPDATE_MODE, // [set] BOOL, Updates the window only when desktop composition runs for other reasons + DWMWA_USE_HOSTBACKDROPBRUSH, // [set] BOOL, Allows the use of host backdrop brushes for the window. + DWMWA_USE_IMMERSIVE_DARK_MODE = 20, // [set] BOOL, Allows a window to either use the accent color, or dark, according to the user Color Mode preferences. + DWMWA_WINDOW_CORNER_PREFERENCE = 33, // [set] WINDOW_CORNER_PREFERENCE, Controls the policy that rounds top-level window corners + DWMWA_BORDER_COLOR, // [set] COLORREF, The color of the thin border around a top-level window + DWMWA_CAPTION_COLOR, // [set] COLORREF, The color of the caption + DWMWA_TEXT_COLOR, // [set] COLORREF, The color of the caption text + DWMWA_VISIBLE_FRAME_BORDER_THICKNESS, // [get] UINT, width of the visible border around a thick frame window + DWMWA_SYSTEMBACKDROP_TYPE, // [get, set] SYSTEMBACKDROP_TYPE, Controls the system-drawn backdrop material of a window, including behind the non-client area. + DWMWA_REDIRECTIONBITMAP_ALPHA, // [set] BOOL, GDI redirection bitmap containspremultiplied alpha + DWMWA_LAST +}; + +typedef enum { + /* + * Let the system decide whether or not to round window corners + */ + DWMWCP_DEFAULT = 0, + + /* + * Never round window corners + */ + DWMWCP_DONOTROUND = 1, + + /* + * Round the corners if appropriate + */ + DWMWCP_ROUND = 2, + + /* + * Round the corners if appropriate, with a small radius + */ + DWMWCP_ROUNDSMALL = 3 + +} DWM_WINDOW_CORNER_PREFERENCE; + +// Use this constant to reset any window part colors to the system default behavior +#define DWMWA_COLOR_DEFAULT 0xFFFFFFFF + +// Use this constant to specify that a window part should not be rendered +#define DWMWA_COLOR_NONE 0xFFFFFFFE + +// Types used with DWMWA_SYSTEMBACKDROP_TYPE +enum DWM_SYSTEMBACKDROP_TYPE +{ + DWMSBT_AUTO, // [Default] Let DWM automatically decide the system-drawn backdrop for this window. + DWMSBT_NONE, // Do not draw any system backdrop. + DWMSBT_MAINWINDOW, // Draw the backdrop material effect corresponding to a long-lived window. + DWMSBT_TRANSIENTWINDOW, // Draw the backdrop material effect corresponding to a transient window. + DWMSBT_TABBEDWINDOW, // Draw the backdrop material effect corresponding to a window with a tabbed title bar. +}; + + +// Non-client rendering policy attribute values +enum DWMNCRENDERINGPOLICY +{ + DWMNCRP_USEWINDOWSTYLE, // Enable/disable non-client rendering based on window style + DWMNCRP_DISABLED, // Disabled non-client rendering; window style is ignored + DWMNCRP_ENABLED, // Enabled non-client rendering; window style is ignored + DWMNCRP_LAST +}; + +// Values designating how Flip3D treats a given window. +enum DWMFLIP3DWINDOWPOLICY +{ + DWMFLIP3D_DEFAULT, // Hide or include the window in Flip3D based on window style and visibility. + DWMFLIP3D_EXCLUDEBELOW, // Display the window under Flip3D and disabled. + DWMFLIP3D_EXCLUDEABOVE, // Display the window above Flip3D and enabled. + DWMFLIP3D_LAST +}; + +// Cloaked flags describing why a window is cloaked. +#define DWM_CLOAKED_APP 0x00000001 +#define DWM_CLOAKED_SHELL 0x00000002 +#define DWM_CLOAKED_INHERITED 0x00000004 + +#pragma region Thumbnails +typedef HANDLE HTHUMBNAIL; +typedef HTHUMBNAIL* PHTHUMBNAIL; + +#pragma region Flags for DWM_THUMBNAIL_PROPERTIES +#define DWM_TNP_RECTDESTINATION 0x00000001 // A value for the "rcDestination" member has been specified. +#define DWM_TNP_RECTSOURCE 0x00000002 // A value for the "rcSource" member has been specified. +#define DWM_TNP_OPACITY 0x00000004 // A value for the "opacity" member has been specified. +#define DWM_TNP_VISIBLE 0x00000008 // A value for the "fVisible" member has been specified. +#define DWM_TNP_SOURCECLIENTAREAONLY 0x00000010 // A value for the "fSourceClientAreaOnly" member has been specified. +#pragma endregion + +typedef struct _DWM_THUMBNAIL_PROPERTIES +{ + DWORD dwFlags; // Specifies which members of this struct have been specified + RECT rcDestination; // The area in the destination window where the thumbnail will be rendered + RECT rcSource; // The region of the source window to use as the thumbnail. By default, the entire window is used as the thumbnail + BYTE opacity; // The opacity with which to render the thumbnail. 0 is fully transparent, while 255 is fully opaque. The default value is 255 + BOOL fVisible; // Whether the thumbnail should be visible. The default is FALSE + BOOL fSourceClientAreaOnly; // Whether only the client area of the source window should be included in the thumbnail. The default is FALSE +} DWM_THUMBNAIL_PROPERTIES, *PDWM_THUMBNAIL_PROPERTIES; +#pragma endregion + +// Video enabling apis + +typedef ULONGLONG DWM_FRAME_COUNT; +typedef ULONGLONG QPC_TIME; + +typedef struct _UNSIGNED_RATIO +{ + UINT32 uiNumerator; + UINT32 uiDenominator; +} UNSIGNED_RATIO; + +typedef struct _DWM_TIMING_INFO +{ + UINT32 cbSize; + + // Data on DWM composition overall + + // Monitor refresh rate + UNSIGNED_RATIO rateRefresh; + + // Actual period + QPC_TIME qpcRefreshPeriod; + + // composition rate + UNSIGNED_RATIO rateCompose; + + // QPC time at a VSync interupt + QPC_TIME qpcVBlank; + + // DWM refresh count of the last vsync + // DWM refresh count is a 64bit number where zero is + // the first refresh the DWM woke up to process + DWM_FRAME_COUNT cRefresh; + + // DX refresh count at the last Vsync Interupt + // DX refresh count is a 32bit number with zero + // being the first refresh after the card was initialized + // DX increments a counter when ever a VSync ISR is processed + // It is possible for DX to miss VSyncs + // + // There is not a fixed mapping between DX and DWM refresh counts + // because the DX will rollover and may miss VSync interupts + UINT cDXRefresh; + + // QPC time at a compose time. + QPC_TIME qpcCompose; + + // Frame number that was composed at qpcCompose + DWM_FRAME_COUNT cFrame; + + // The present number DX uses to identify renderer frames + UINT cDXPresent; + + // Refresh count of the frame that was composed at qpcCompose + DWM_FRAME_COUNT cRefreshFrame; + + + // DWM frame number that was last submitted + DWM_FRAME_COUNT cFrameSubmitted; + + // DX Present number that was last submitted + UINT cDXPresentSubmitted; + + // DWM frame number that was last confirmed presented + DWM_FRAME_COUNT cFrameConfirmed; + + // DX Present number that was last confirmed presented + UINT cDXPresentConfirmed; + + // The target refresh count of the last + // frame confirmed completed by the GPU + DWM_FRAME_COUNT cRefreshConfirmed; + + // DX refresh count when the frame was confirmed presented + UINT cDXRefreshConfirmed; + + // Number of frames the DWM presented late + // AKA Glitches + DWM_FRAME_COUNT cFramesLate; + + // the number of composition frames that + // have been issued but not confirmed completed + UINT cFramesOutstanding; + + + // Following fields are only relavent when an HWND is specified + // Display frame + + + // Last frame displayed + DWM_FRAME_COUNT cFrameDisplayed; + + // QPC time of the composition pass when the frame was displayed + QPC_TIME qpcFrameDisplayed; + + // Count of the VSync when the frame should have become visible + DWM_FRAME_COUNT cRefreshFrameDisplayed; + + // Complete frames: DX has notified the DWM that the frame is done rendering + + // ID of the the last frame marked complete (starts at 0) + DWM_FRAME_COUNT cFrameComplete; + + // QPC time when the last frame was marked complete + QPC_TIME qpcFrameComplete; + + // Pending frames: + // The application has been submitted to DX but not completed by the GPU + + // ID of the the last frame marked pending (starts at 0) + DWM_FRAME_COUNT cFramePending; + + // QPC time when the last frame was marked pending + QPC_TIME qpcFramePending; + + // number of unique frames displayed + DWM_FRAME_COUNT cFramesDisplayed; + + // number of new completed frames that have been received + DWM_FRAME_COUNT cFramesComplete; + + // number of new frames submitted to DX but not yet complete + DWM_FRAME_COUNT cFramesPending; + + // number of frames available but not displayed, used or dropped + DWM_FRAME_COUNT cFramesAvailable; + + // number of rendered frames that were never + // displayed because composition occured too late + DWM_FRAME_COUNT cFramesDropped; + + // number of times an old frame was composed + // when a new frame should have been used + // but was not available + DWM_FRAME_COUNT cFramesMissed; + + // the refresh at which the next frame is + // scheduled to be displayed + DWM_FRAME_COUNT cRefreshNextDisplayed; + + // the refresh at which the next DX present is + // scheduled to be displayed + DWM_FRAME_COUNT cRefreshNextPresented; + + // The total number of refreshes worth of content + // for this HWND that have been displayed by the DWM + // since DwmSetPresentParameters was called + DWM_FRAME_COUNT cRefreshesDisplayed; + + // The total number of refreshes worth of content + // that have been presented by the application + // since DwmSetPresentParameters was called + DWM_FRAME_COUNT cRefreshesPresented; + + + // The actual refresh # when content for this + // window started to be displayed + // it may be different than that requested + // DwmSetPresentParameters + DWM_FRAME_COUNT cRefreshStarted; + + // Total number of pixels DX redirected + // to the DWM. + // If Queueing is used the full buffer + // is transfered on each present. + // If not queuing it is possible only + // a dirty region is updated + ULONGLONG cPixelsReceived; + + // Total number of pixels drawn. + // Does not take into account if + // if the window is only partial drawn + // do to clipping or dirty rect management + ULONGLONG cPixelsDrawn; + + // The number of buffers in the flipchain + // that are empty. An application can + // present that number of times and guarantee + // it won't be blocked waiting for a buffer to + // become empty to present to + DWM_FRAME_COUNT cBuffersEmpty; + +} DWM_TIMING_INFO; + +typedef enum +{ + // Use the first source frame that + // includes the first refresh of the output frame + DWM_SOURCE_FRAME_SAMPLING_POINT, + + // use the source frame that includes the most + // refreshes of out the output frame + // in case of multiple source frames with the + // same coverage the last will be used + DWM_SOURCE_FRAME_SAMPLING_COVERAGE, + + // Sentinel value + DWM_SOURCE_FRAME_SAMPLING_LAST +} DWM_SOURCE_FRAME_SAMPLING; + +EXTERN_C __declspec(selectany) const UINT c_DwmMaxQueuedBuffers = 8; +EXTERN_C __declspec(selectany) const UINT c_DwmMaxMonitors = 16; +EXTERN_C __declspec(selectany) const UINT c_DwmMaxAdapters = 16; + +#pragma warning(push) +#pragma warning(disable:4201) +typedef struct _DWM_PRESENT_PARAMETERS +{ + UINT32 cbSize; + BOOL fQueue; + DWM_FRAME_COUNT cRefreshStart; + UINT cBuffer; + BOOL fUseSourceRate; + UNSIGNED_RATIO rateSource; + UINT cRefreshesPerFrame; + DWM_SOURCE_FRAME_SAMPLING eSampling; +} DWM_PRESENT_PARAMETERS; +#pragma warning(pop) + + + +#define DWM_FRAME_DURATION_DEFAULT -1 + +DWMAPI_(BOOL) +DwmDefWindowProc( + _In_ HWND hWnd, + UINT msg, + WPARAM wParam, + LPARAM lParam, + _Out_ LRESULT *plResult + ); + +DWMAPI +DwmEnableBlurBehindWindow( + HWND hWnd, + _In_ const DWM_BLURBEHIND* pBlurBehind + ); + +#define DWM_EC_DISABLECOMPOSITION 0 +#define DWM_EC_ENABLECOMPOSITION 1 + + +DWMAPI +DwmEnableComposition( + UINT uCompositionAction + ); + +#if NTDDI_VERSION >= NTDDI_WIN8 +#pragma deprecated (DwmEnableComposition) +#endif + +DWMAPI +DwmEnableMMCSS( + BOOL fEnableMMCSS + ); + +DWMAPI +DwmExtendFrameIntoClientArea( + HWND hWnd, + _In_ const MARGINS* pMarInset + ); + +DWMAPI +DwmGetColorizationColor( + _Out_ DWORD* pcrColorization, + _Out_ BOOL* pfOpaqueBlend + ); + +DWMAPI +DwmGetCompositionTimingInfo( + HWND hwnd, + _Out_ DWM_TIMING_INFO* pTimingInfo + ); + + +DWMAPI +DwmGetWindowAttribute( + HWND hwnd, + DWORD dwAttribute, + _Out_writes_bytes_(cbAttribute) PVOID pvAttribute, + DWORD cbAttribute + ); + +DWMAPI +DwmIsCompositionEnabled( + _Out_ BOOL* pfEnabled + ); + +DWMAPI +DwmModifyPreviousDxFrameDuration( + HWND hwnd, + INT cRefreshes, + BOOL fRelative + ); + +DWMAPI +DwmQueryThumbnailSourceSize( + HTHUMBNAIL hThumbnail, + _Out_ PSIZE pSize + ); + +DWMAPI +DwmRegisterThumbnail( + HWND hwndDestination, + HWND hwndSource, + _Out_ PHTHUMBNAIL phThumbnailId + ); + +DWMAPI +DwmSetDxFrameDuration( + HWND hwnd, + INT cRefreshes + ); + +DWMAPI +DwmSetPresentParameters( + HWND hwnd, + _Inout_ DWM_PRESENT_PARAMETERS* pPresentParams + ); + +DWMAPI +DwmSetWindowAttribute( + HWND hwnd, + DWORD dwAttribute, + _In_reads_bytes_(cbAttribute) LPCVOID pvAttribute, + DWORD cbAttribute + ); + +DWMAPI +DwmUnregisterThumbnail( + HTHUMBNAIL hThumbnailId + ); + +DWMAPI +DwmUpdateThumbnailProperties( + HTHUMBNAIL hThumbnailId, + _In_ const DWM_THUMBNAIL_PROPERTIES* ptnProperties + ); + +#if(_WIN32_WINNT >= 0x0601) +#define DWM_SIT_DISPLAYFRAME 0x00000001 // Display a window frame around the provided bitmap + +DWMAPI DwmSetIconicThumbnail( + HWND hwnd, + HBITMAP hbmp, + DWORD dwSITFlags + ); + +DWMAPI DwmSetIconicLivePreviewBitmap( + HWND hwnd, + HBITMAP hbmp, + _In_opt_ POINT *pptClient, + DWORD dwSITFlags + ); + +DWMAPI DwmInvalidateIconicBitmaps( + HWND hwnd + ); + +#endif /* _WIN32_WINNT >= 0x0601 */ + +DWMAPI +DwmAttachMilContent( + _In_ HWND hwnd + ); + +DWMAPI +DwmDetachMilContent( + _In_ HWND hwnd + ); + +DWMAPI +DwmFlush(); + +#ifndef MILCORE_KERNEL_COMPONENT +#ifndef _MIL_MATRIX3X2D_DEFINED + +typedef struct _MilMatrix3x2D +{ + DOUBLE S_11; + DOUBLE S_12; + DOUBLE S_21; + DOUBLE S_22; + DOUBLE DX; + DOUBLE DY; +} MilMatrix3x2D; + +#define _MIL_MATRIX3X2D_DEFINED + +#endif // _MIL_MATRIX3X2D_DEFINED + +#ifndef MILCORE_MIL_MATRIX3X2D_COMPAT_TYPEDEF +// Compatibility for Vista dwm api. +typedef MilMatrix3x2D MIL_MATRIX3X2D; +#define MILCORE_MIL_MATRIX3X2D_COMPAT_TYPEDEF +#endif // MILCORE_MIL_MATRIX3X2D_COMPAT_TYPEDEF + +DWMAPI +DwmGetGraphicsStreamTransformHint( + UINT uIndex, + _Out_ MilMatrix3x2D *pTransform + ); + +DWMAPI +DwmGetGraphicsStreamClient( + UINT uIndex, + _Out_ UUID *pClientUuid + ); +#endif // MILCORE_KERNEL_COMPONENT + +DWMAPI +DwmGetTransportAttributes( + _Out_writes_(1) BOOL *pfIsRemoting, + _Out_writes_(1) BOOL *pfIsConnected, + _Out_writes_(1) DWORD *pDwGeneration + ); + + +enum DWMTRANSITION_OWNEDWINDOW_TARGET +{ + DWMTRANSITION_OWNEDWINDOW_NULL = -1, + DWMTRANSITION_OWNEDWINDOW_REPOSITION = 0, +}; + +DWMAPI +DwmTransitionOwnedWindow( + HWND hwnd, + enum DWMTRANSITION_OWNEDWINDOW_TARGET target + ); + + +#if (NTDDI_VERSION >= NTDDI_WIN8) + +enum GESTURE_TYPE +{ + GT_PEN_TAP = 0, + GT_PEN_DOUBLETAP = 1, + GT_PEN_RIGHTTAP = 2, + GT_PEN_PRESSANDHOLD = 3, + GT_PEN_PRESSANDHOLDABORT = 4, + GT_TOUCH_TAP = 5, + GT_TOUCH_DOUBLETAP = 6, + GT_TOUCH_RIGHTTAP = 7, + GT_TOUCH_PRESSANDHOLD = 8, + GT_TOUCH_PRESSANDHOLDABORT = 9, + GT_TOUCH_PRESSANDTAP = 10, +}; + +DWMAPI +DwmRenderGesture( + _In_ enum GESTURE_TYPE gt, + _In_ UINT cContacts, + _In_reads_(cContacts) const DWORD *pdwPointerID, + _In_reads_(cContacts) const POINT *pPoints + ); + +DWMAPI +DwmTetherContact( + DWORD dwPointerID, + BOOL fEnable, + POINT ptTether + ); + +enum DWM_SHOWCONTACT +{ + DWMSC_DOWN = 0x00000001, + DWMSC_UP = 0x00000002, + DWMSC_DRAG = 0x00000004, + DWMSC_HOLD = 0x00000008, + DWMSC_PENBARREL = 0x00000010, + + DWMSC_NONE = 0x00000000, + DWMSC_ALL = 0xFFFFFFFF +}; +DEFINE_ENUM_FLAG_OPERATORS(DWM_SHOWCONTACT); + +DWMAPI +DwmShowContact( + DWORD dwPointerID, + enum DWM_SHOWCONTACT eShowContact + ); +#endif // NTDDI_WIN8 + + +#if (NTDDI_VERSION >= NTDDI_WIN10_RS4) + +enum DWM_TAB_WINDOW_REQUIREMENTS +{ + // This result means the window meets all requirements requested. + DWMTWR_NONE = 0x0000, + + // In some configurations, admin/user setting or mode of the system means that windows won't be tabbed + // This requirement says that the system/mode must implement tabbing and if it does not + // nothing can be done to change this. + DWMTWR_IMPLEMENTED_BY_SYSTEM = 0x0001, + + // The window has an owner or parent so is ineligible for tabbing. + DWMTWR_WINDOW_RELATIONSHIP = 0x0002, + + // The window has styles that make it ineligible for tabbing. + // To be eligible windows must: + // Have the WS_OVERLAPPEDWINDOW (WS_CAPTION, WS_THICKFRAME, etc.) styles set. + // Not have WS_POPUP, WS_CHILD or WS_DLGFRAME set. + // Not have WS_EX_TOPMOST or WS_EX_TOOLWINDOW set. + DWMTWR_WINDOW_STYLES = 0x0004, + + // The window has a region (set using SetWindowRgn) making it ineligible. + DWMTWR_WINDOW_REGION = 0x0008, + + // The window is ineligible due to its Dwm configuration. + // It must not extended its client area into the title bar using DwmExtendFrameIntoClientArea + // It must not have DWMWA_NCRENDERING_POLICY set to DWMNCRP_ENABLED + DWMTWR_WINDOW_DWM_ATTRIBUTES = 0x0010, + + // The window is ineligible due to it's margins, most likely due to custom handling in WM_NCCALCSIZE. + // The window must use the default window margins for the non-client area. + DWMTWR_WINDOW_MARGINS = 0x0020, + + // The window has been explicitly opted out by setting DWMWA_TABBING_ENABLED to FALSE. + DWMTWR_TABBING_ENABLED = 0x0040, + + // The user has configured this application to not participate in tabbing. + DWMTWR_USER_POLICY = 0x0080, + + // The group policy has configured this application to not participate in tabbing. + DWMTWR_GROUP_POLICY = 0x0100, + + // This is set if app compat has blocked tabs for this window. Can be overridden per window by setting + // DWMWA_TABBING_ENABLED to TRUE. That does not override any other tabbing requirements. + DWMTWR_APP_COMPAT = 0x0200 +}; +DEFINE_ENUM_FLAG_OPERATORS(DWM_TAB_WINDOW_REQUIREMENTS); + +// Checks the requirements needed to get tabs in the application title bar. +DWMAPI DwmGetUnmetTabRequirements(_In_opt_ HWND appWindow, _Out_ enum DWM_TAB_WINDOW_REQUIREMENTS* value); + +#endif // NTDDI_WIN10_RS4 + + +#include + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#endif // _DWMAPI_H_ diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwrite.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwrite.h new file mode 100644 index 0000000000000000000000000000000000000000..08c3cf50e86af0985dd2cec48864617d357e1c48 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwrite.h @@ -0,0 +1,5138 @@ +//+-------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Abstract: +// DirectX Typography Services public API definitions. +// +//---------------------------------------------------------------------------- + +#ifndef DWRITE_H_INCLUDED +#define DWRITE_H_INCLUDED + +#pragma once + +#ifndef DWRITE_NO_WINDOWS_H + +#include +#include + +#endif // DWRITE_NO_WINDOWS_H + +#include + +#ifndef DWRITE_DECLARE_INTERFACE +#define DWRITE_DECLARE_INTERFACE(iid) DECLSPEC_UUID(iid) DECLSPEC_NOVTABLE +#endif + +#ifndef DWRITE_BEGIN_INTERFACE +#define DWRITE_BEGIN_INTERFACE(name, iid) interface DWRITE_DECLARE_INTERFACE(iid) name +#endif + +#ifndef DWRITE_EXPORT +#define DWRITE_EXPORT __declspec(dllimport) WINAPI +#endif + +/// +/// The type of a font represented by a single font file. +/// Font formats that consist of multiple files, e.g. Type 1 .PFM and .PFB, have +/// separate enum values for each of the file type. +/// +enum DWRITE_FONT_FILE_TYPE +{ + /// + /// Font type is not recognized by the DirectWrite font system. + /// + DWRITE_FONT_FILE_TYPE_UNKNOWN, + + /// + /// OpenType font with CFF outlines. + /// + DWRITE_FONT_FILE_TYPE_CFF, + + /// + /// OpenType font with TrueType outlines. + /// + DWRITE_FONT_FILE_TYPE_TRUETYPE, + + /// + /// OpenType font that contains a TrueType collection. + /// + DWRITE_FONT_FILE_TYPE_OPENTYPE_COLLECTION, + + /// + /// Type 1 PFM font. + /// + DWRITE_FONT_FILE_TYPE_TYPE1_PFM, + + /// + /// Type 1 PFB font. + /// + DWRITE_FONT_FILE_TYPE_TYPE1_PFB, + + /// + /// Vector .FON font. + /// + DWRITE_FONT_FILE_TYPE_VECTOR, + + /// + /// Bitmap .FON font. + /// + DWRITE_FONT_FILE_TYPE_BITMAP, + + // The following name is obsolete, but kept as an alias to avoid breaking existing code. + DWRITE_FONT_FILE_TYPE_TRUETYPE_COLLECTION = DWRITE_FONT_FILE_TYPE_OPENTYPE_COLLECTION, +}; + +/// +/// The file format of a complete font face. +/// Font formats that consist of multiple files, e.g. Type 1 .PFM and .PFB, have +/// a single enum entry. +/// +enum DWRITE_FONT_FACE_TYPE +{ + /// + /// OpenType font face with CFF outlines. + /// + DWRITE_FONT_FACE_TYPE_CFF, + + /// + /// OpenType font face with TrueType outlines. + /// + DWRITE_FONT_FACE_TYPE_TRUETYPE, + + /// + /// OpenType font face that is a part of a TrueType or CFF collection. + /// + DWRITE_FONT_FACE_TYPE_OPENTYPE_COLLECTION, + + /// + /// A Type 1 font face. + /// + DWRITE_FONT_FACE_TYPE_TYPE1, + + /// + /// A vector .FON format font face. + /// + DWRITE_FONT_FACE_TYPE_VECTOR, + + /// + /// A bitmap .FON format font face. + /// + DWRITE_FONT_FACE_TYPE_BITMAP, + + /// + /// Font face type is not recognized by the DirectWrite font system. + /// + DWRITE_FONT_FACE_TYPE_UNKNOWN, + + /// + /// The font data includes only the CFF table from an OpenType CFF font. + /// This font face type can be used only for embedded fonts (i.e., custom + /// font file loaders) and the resulting font face object supports only the + /// minimum functionality necessary to render glyphs. + /// + DWRITE_FONT_FACE_TYPE_RAW_CFF, + + // The following name is obsolete, but kept as an alias to avoid breaking existing code. + DWRITE_FONT_FACE_TYPE_TRUETYPE_COLLECTION = DWRITE_FONT_FACE_TYPE_OPENTYPE_COLLECTION, +}; + +/// +/// Specifies algorithmic style simulations to be applied to the font face. +/// Bold and oblique simulations can be combined via bitwise OR operation. +/// +enum DWRITE_FONT_SIMULATIONS +{ + /// + /// No simulations are performed. + /// + DWRITE_FONT_SIMULATIONS_NONE = 0x0000, + + /// + /// Algorithmic emboldening is performed. + /// + DWRITE_FONT_SIMULATIONS_BOLD = 0x0001, + + /// + /// Algorithmic italicization is performed. + /// + DWRITE_FONT_SIMULATIONS_OBLIQUE = 0x0002 +}; + +#ifdef DEFINE_ENUM_FLAG_OPERATORS +DEFINE_ENUM_FLAG_OPERATORS(DWRITE_FONT_SIMULATIONS); +#endif + +/// +/// The font weight enumeration describes common values for degree of blackness or thickness of strokes of characters in a font. +/// Font weight values less than 1 or greater than 999 are considered to be invalid, and they are rejected by font API functions. +/// +enum DWRITE_FONT_WEIGHT +{ + /// + /// Predefined font weight : Thin (100). + /// + DWRITE_FONT_WEIGHT_THIN = 100, + + /// + /// Predefined font weight : Extra-light (200). + /// + DWRITE_FONT_WEIGHT_EXTRA_LIGHT = 200, + + /// + /// Predefined font weight : Ultra-light (200). + /// + DWRITE_FONT_WEIGHT_ULTRA_LIGHT = 200, + + /// + /// Predefined font weight : Light (300). + /// + DWRITE_FONT_WEIGHT_LIGHT = 300, + + /// + /// Predefined font weight : Semi-light (350). + /// + DWRITE_FONT_WEIGHT_SEMI_LIGHT = 350, + + /// + /// Predefined font weight : Normal (400). + /// + DWRITE_FONT_WEIGHT_NORMAL = 400, + + /// + /// Predefined font weight : Regular (400). + /// + DWRITE_FONT_WEIGHT_REGULAR = 400, + + /// + /// Predefined font weight : Medium (500). + /// + DWRITE_FONT_WEIGHT_MEDIUM = 500, + + /// + /// Predefined font weight : Demi-bold (600). + /// + DWRITE_FONT_WEIGHT_DEMI_BOLD = 600, + + /// + /// Predefined font weight : Semi-bold (600). + /// + DWRITE_FONT_WEIGHT_SEMI_BOLD = 600, + + /// + /// Predefined font weight : Bold (700). + /// + DWRITE_FONT_WEIGHT_BOLD = 700, + + /// + /// Predefined font weight : Extra-bold (800). + /// + DWRITE_FONT_WEIGHT_EXTRA_BOLD = 800, + + /// + /// Predefined font weight : Ultra-bold (800). + /// + DWRITE_FONT_WEIGHT_ULTRA_BOLD = 800, + + /// + /// Predefined font weight : Black (900). + /// + DWRITE_FONT_WEIGHT_BLACK = 900, + + /// + /// Predefined font weight : Heavy (900). + /// + DWRITE_FONT_WEIGHT_HEAVY = 900, + + /// + /// Predefined font weight : Extra-black (950). + /// + DWRITE_FONT_WEIGHT_EXTRA_BLACK = 950, + + /// + /// Predefined font weight : Ultra-black (950). + /// + DWRITE_FONT_WEIGHT_ULTRA_BLACK = 950 +}; + +/// +/// The font stretch enumeration describes relative change from the normal aspect ratio +/// as specified by a font designer for the glyphs in a font. +/// Values less than 1 or greater than 9 are considered to be invalid, and they are rejected by font API functions. +/// +enum DWRITE_FONT_STRETCH +{ + /// + /// Predefined font stretch : Not known (0). + /// + DWRITE_FONT_STRETCH_UNDEFINED = 0, + + /// + /// Predefined font stretch : Ultra-condensed (1). + /// + DWRITE_FONT_STRETCH_ULTRA_CONDENSED = 1, + + /// + /// Predefined font stretch : Extra-condensed (2). + /// + DWRITE_FONT_STRETCH_EXTRA_CONDENSED = 2, + + /// + /// Predefined font stretch : Condensed (3). + /// + DWRITE_FONT_STRETCH_CONDENSED = 3, + + /// + /// Predefined font stretch : Semi-condensed (4). + /// + DWRITE_FONT_STRETCH_SEMI_CONDENSED = 4, + + /// + /// Predefined font stretch : Normal (5). + /// + DWRITE_FONT_STRETCH_NORMAL = 5, + + /// + /// Predefined font stretch : Medium (5). + /// + DWRITE_FONT_STRETCH_MEDIUM = 5, + + /// + /// Predefined font stretch : Semi-expanded (6). + /// + DWRITE_FONT_STRETCH_SEMI_EXPANDED = 6, + + /// + /// Predefined font stretch : Expanded (7). + /// + DWRITE_FONT_STRETCH_EXPANDED = 7, + + /// + /// Predefined font stretch : Extra-expanded (8). + /// + DWRITE_FONT_STRETCH_EXTRA_EXPANDED = 8, + + /// + /// Predefined font stretch : Ultra-expanded (9). + /// + DWRITE_FONT_STRETCH_ULTRA_EXPANDED = 9 +}; + +/// +/// The font style enumeration describes the slope style of a font face, such as Normal, Italic or Oblique. +/// Values other than the ones defined in the enumeration are considered to be invalid, and they are rejected by font API functions. +/// +enum DWRITE_FONT_STYLE +{ + /// + /// Font slope style : Normal. + /// + DWRITE_FONT_STYLE_NORMAL, + + /// + /// Font slope style : Oblique. + /// + DWRITE_FONT_STYLE_OBLIQUE, + + /// + /// Font slope style : Italic. + /// + DWRITE_FONT_STYLE_ITALIC + +}; + +/// +/// The informational string enumeration identifies a string in a font. +/// +enum DWRITE_INFORMATIONAL_STRING_ID +{ + /// + /// Unspecified name ID. + /// + DWRITE_INFORMATIONAL_STRING_NONE, + + /// + /// Copyright notice provided by the font. + /// + DWRITE_INFORMATIONAL_STRING_COPYRIGHT_NOTICE, + + /// + /// String containing a version number. + /// + DWRITE_INFORMATIONAL_STRING_VERSION_STRINGS, + + /// + /// Trademark information provided by the font. + /// + DWRITE_INFORMATIONAL_STRING_TRADEMARK, + + /// + /// Name of the font manufacturer. + /// + DWRITE_INFORMATIONAL_STRING_MANUFACTURER, + + /// + /// Name of the font designer. + /// + DWRITE_INFORMATIONAL_STRING_DESIGNER, + + /// + /// URL of font designer (with protocol, e.g., http://, ftp://). + /// + DWRITE_INFORMATIONAL_STRING_DESIGNER_URL, + + /// + /// Description of the font. Can contain revision information, usage recommendations, history, features, etc. + /// + DWRITE_INFORMATIONAL_STRING_DESCRIPTION, + + /// + /// URL of font vendor (with protocol, e.g., http://, ftp://). If a unique serial number is embedded in the URL, it can be used to register the font. + /// + DWRITE_INFORMATIONAL_STRING_FONT_VENDOR_URL, + + /// + /// Description of how the font may be legally used, or different example scenarios for licensed use. This field should be written in plain language, not legalese. + /// + DWRITE_INFORMATIONAL_STRING_LICENSE_DESCRIPTION, + + /// + /// URL where additional licensing information can be found. + /// + DWRITE_INFORMATIONAL_STRING_LICENSE_INFO_URL, + + /// + /// GDI-compatible family name. Because GDI allows a maximum of four fonts per family, fonts in the same family may have different GDI-compatible family names + /// (e.g., "Arial", "Arial Narrow", "Arial Black"). + /// + DWRITE_INFORMATIONAL_STRING_WIN32_FAMILY_NAMES, + + /// + /// GDI-compatible subfamily name. + /// + DWRITE_INFORMATIONAL_STRING_WIN32_SUBFAMILY_NAMES, + + /// + /// Typographic family name preferred by the designer. This enables font designers to group more than four fonts in a single family without losing compatibility with + /// GDI. This name is typically only present if it differs from the GDI-compatible family name. + /// + DWRITE_INFORMATIONAL_STRING_TYPOGRAPHIC_FAMILY_NAMES, + + /// + /// Typographic subfamily name preferred by the designer. This name is typically only present if it differs from the GDI-compatible subfamily name. + /// + DWRITE_INFORMATIONAL_STRING_TYPOGRAPHIC_SUBFAMILY_NAMES, + + /// + /// Sample text. This can be the font name or any other text that the designer thinks is the best example to display the font in. + /// + DWRITE_INFORMATIONAL_STRING_SAMPLE_TEXT, + + /// + /// The full name of the font, e.g. "Arial Bold", from name id 4 in the name table. + /// + DWRITE_INFORMATIONAL_STRING_FULL_NAME, + + /// + /// The postscript name of the font, e.g. "GillSans-Bold" from name id 6 in the name table. + /// + DWRITE_INFORMATIONAL_STRING_POSTSCRIPT_NAME, + + /// + /// The postscript CID findfont name, from name id 20 in the name table. + /// + DWRITE_INFORMATIONAL_STRING_POSTSCRIPT_CID_NAME, + + /// + /// Family name for the weight-stretch-style model. + /// + DWRITE_INFORMATIONAL_STRING_WEIGHT_STRETCH_STYLE_FAMILY_NAME, + + /// + /// Script/language tag to identify the scripts or languages that the font was + /// primarily designed to support. See DWRITE_FONT_PROPERTY_ID_DESIGN_SCRIPT_LANGUAGE_TAG + /// for a longer description. + /// + DWRITE_INFORMATIONAL_STRING_DESIGN_SCRIPT_LANGUAGE_TAG, + + /// + /// Script/language tag to identify the scripts or languages that the font declares + /// it is able to support. + /// + DWRITE_INFORMATIONAL_STRING_SUPPORTED_SCRIPT_LANGUAGE_TAG, + + // Obsolete aliases kept to avoid breaking existing code. + DWRITE_INFORMATIONAL_STRING_PREFERRED_FAMILY_NAMES = DWRITE_INFORMATIONAL_STRING_TYPOGRAPHIC_FAMILY_NAMES, + DWRITE_INFORMATIONAL_STRING_PREFERRED_SUBFAMILY_NAMES = DWRITE_INFORMATIONAL_STRING_TYPOGRAPHIC_SUBFAMILY_NAMES, + DWRITE_INFORMATIONAL_STRING_WWS_FAMILY_NAME = DWRITE_INFORMATIONAL_STRING_WEIGHT_STRETCH_STYLE_FAMILY_NAME, +}; + + +/// +/// The DWRITE_FONT_METRICS structure specifies the metrics of a font face that +/// are applicable to all glyphs within the font face. +/// +struct DWRITE_FONT_METRICS +{ + /// + /// The number of font design units per em unit. + /// Font files use their own coordinate system of font design units. + /// A font design unit is the smallest measurable unit in the em square, + /// an imaginary square that is used to size and align glyphs. + /// The concept of em square is used as a reference scale factor when defining font size and device transformation semantics. + /// The size of one em square is also commonly used to compute the paragraph indentation value. + /// + UINT16 designUnitsPerEm; + + /// + /// Ascent value of the font face in font design units. + /// Ascent is the distance from the top of font character alignment box to English baseline. + /// + UINT16 ascent; + + /// + /// Descent value of the font face in font design units. + /// Descent is the distance from the bottom of font character alignment box to English baseline. + /// + UINT16 descent; + + /// + /// Line gap in font design units. + /// Recommended additional white space to add between lines to improve legibility. The recommended line spacing + /// (baseline-to-baseline distance) is thus the sum of ascent, descent, and lineGap. The line gap is usually + /// positive or zero but can be negative, in which case the recommended line spacing is less than the height + /// of the character alignment box. + /// + INT16 lineGap; + + /// + /// Cap height value of the font face in font design units. + /// Cap height is the distance from English baseline to the top of a typical English capital. + /// Capital "H" is often used as a reference character for the purpose of calculating the cap height value. + /// + UINT16 capHeight; + + /// + /// x-height value of the font face in font design units. + /// x-height is the distance from English baseline to the top of lowercase letter "x", or a similar lowercase character. + /// + UINT16 xHeight; + + /// + /// The underline position value of the font face in font design units. + /// Underline position is the position of underline relative to the English baseline. + /// The value is usually made negative in order to place the underline below the baseline. + /// + INT16 underlinePosition; + + /// + /// The suggested underline thickness value of the font face in font design units. + /// + UINT16 underlineThickness; + + /// + /// The strikethrough position value of the font face in font design units. + /// Strikethrough position is the position of strikethrough relative to the English baseline. + /// The value is usually made positive in order to place the strikethrough above the baseline. + /// + INT16 strikethroughPosition; + + /// + /// The suggested strikethrough thickness value of the font face in font design units. + /// + UINT16 strikethroughThickness; +}; + +/// +/// The DWRITE_GLYPH_METRICS structure specifies the metrics of an individual glyph. +/// The units depend on how the metrics are obtained. +/// +struct DWRITE_GLYPH_METRICS +{ + /// + /// Specifies the X offset from the glyph origin to the left edge of the black box. + /// The glyph origin is the current horizontal writing position. + /// A negative value means the black box extends to the left of the origin (often true for lowercase italic 'f'). + /// + INT32 leftSideBearing; + + /// + /// Specifies the X offset from the origin of the current glyph to the origin of the next glyph when writing horizontally. + /// + UINT32 advanceWidth; + + /// + /// Specifies the X offset from the right edge of the black box to the origin of the next glyph when writing horizontally. + /// The value is negative when the right edge of the black box overhangs the layout box. + /// + INT32 rightSideBearing; + + /// + /// Specifies the vertical offset from the vertical origin to the top of the black box. + /// Thus, a positive value adds whitespace whereas a negative value means the glyph overhangs the top of the layout box. + /// + INT32 topSideBearing; + + /// + /// Specifies the Y offset from the vertical origin of the current glyph to the vertical origin of the next glyph when writing vertically. + /// (Note that the term "origin" by itself denotes the horizontal origin. The vertical origin is different. + /// Its Y coordinate is specified by verticalOriginY value, + /// and its X coordinate is half the advanceWidth to the right of the horizontal origin). + /// + UINT32 advanceHeight; + + /// + /// Specifies the vertical distance from the black box's bottom edge to the advance height. + /// Positive when the bottom edge of the black box is within the layout box. + /// Negative when the bottom edge of black box overhangs the layout box. + /// + INT32 bottomSideBearing; + + /// + /// Specifies the Y coordinate of a glyph's vertical origin, in the font's design coordinate system. + /// The y coordinate of a glyph's vertical origin is the sum of the glyph's top side bearing + /// and the top (i.e. yMax) of the glyph's bounding box. + /// + INT32 verticalOriginY; +}; + +/// +/// Optional adjustment to a glyph's position. A glyph offset changes the position of a glyph without affecting +/// the pen position. Offsets are in logical, pre-transform units. +/// +struct DWRITE_GLYPH_OFFSET +{ + /// + /// Offset in the advance direction of the run. A positive advance offset moves the glyph to the right + /// (in pre-transform coordinates) if the run is left-to-right or to the left if the run is right-to-left. + /// + FLOAT advanceOffset; + + /// + /// Offset in the ascent direction, i.e., the direction ascenders point. A positive ascender offset moves + /// the glyph up (in pre-transform coordinates). + /// + FLOAT ascenderOffset; +}; + +/// +/// Specifies the type of DirectWrite factory object. +/// DirectWrite factory contains internal state such as font loader registration and cached font data. +/// In most cases it is recommended to use the shared factory object, because it allows multiple components +/// that use DirectWrite to share internal DirectWrite state and reduce memory usage. +/// However, there are cases when it is desirable to reduce the impact of a component, +/// such as a plug-in from an untrusted source, on the rest of the process by sandboxing and isolating it +/// from the rest of the process components. In such cases, it is recommended to use an isolated factory for the sandboxed +/// component. +/// +enum DWRITE_FACTORY_TYPE +{ + /// + /// Shared factory allow for re-use of cached font data across multiple in process components. + /// Such factories also take advantage of cross process font caching components for better performance. + /// + DWRITE_FACTORY_TYPE_SHARED, + + /// + /// Objects created from the isolated factory do not interact with internal DirectWrite state from other components. + /// + DWRITE_FACTORY_TYPE_ISOLATED +}; + +/// +/// Creates an OpenType tag as a 32bit integer such that +/// the first character in the tag is the lowest byte, +/// (least significant on little endian architectures) +/// which can be used to compare with tags in the font file. +/// This macro is compatible with DWRITE_FONT_FEATURE_TAG. +/// +/// Example: DWRITE_MAKE_OPENTYPE_TAG('c','c','m','p') +/// Dword: 0x706D6363 +/// +#define DWRITE_MAKE_OPENTYPE_TAG(a,b,c,d) ( \ + (static_cast(static_cast(d)) << 24) | \ + (static_cast(static_cast(c)) << 16) | \ + (static_cast(static_cast(b)) << 8) | \ + static_cast(static_cast(a))) + +/// +/// Creates an OpenType tag for glyph positioning and substitution font features. +/// +#define DWRITE_MAKE_FONT_FEATURE_TAG(a,b,c,d) (static_cast(DWRITE_MAKE_OPENTYPE_TAG(a,b,c,d))) + +interface IDWriteFontFileStream; + +/// +/// Font file loader interface handles loading font file resources of a particular type from a key. +/// The font file loader interface is recommended to be implemented by a singleton object. +/// IMPORTANT: font file loader implementations must not register themselves with DirectWrite factory +/// inside their constructors and must not unregister themselves in their destructors, because +/// registration and unregistration operations increment and decrement the object reference count respectively. +/// Instead, registration and unregistration of font file loaders with DirectWrite factory should be performed +/// outside of the font file loader implementation as a separate step. +/// +interface DWRITE_DECLARE_INTERFACE("727cad4e-d6af-4c9e-8a08-d695b11caa49") IDWriteFontFileLoader : public IUnknown +{ + /// + /// Creates a font file stream object that encapsulates an open file resource. + /// The resource is closed when the last reference to fontFileStream is released. + /// + /// Font file reference key that uniquely identifies the font file resource + /// within the scope of the font loader being used. + /// Size of font file reference key in bytes. + /// Pointer to the newly created font file stream. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateStreamFromKey)( + _In_reads_bytes_(fontFileReferenceKeySize) void const* fontFileReferenceKey, + UINT32 fontFileReferenceKeySize, + _COM_Outptr_ IDWriteFontFileStream** fontFileStream + ) PURE; +}; + +/// +/// A built-in implementation of IDWriteFontFileLoader interface that operates on local font files +/// and exposes local font file information from the font file reference key. +/// Font file references created using CreateFontFileReference use this font file loader. +/// +interface DWRITE_DECLARE_INTERFACE("b2d9f3ec-c9fe-4a11-a2ec-d86208f7c0a2") IDWriteLocalFontFileLoader : public IDWriteFontFileLoader +{ + /// + /// Obtains the length of the absolute file path from the font file reference key. + /// + /// Font file reference key that uniquely identifies the local font file + /// within the scope of the font loader being used. + /// Size of font file reference key in bytes. + /// Length of the file path string not including the terminated NULL character. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFilePathLengthFromKey)( + _In_reads_bytes_(fontFileReferenceKeySize) void const* fontFileReferenceKey, + UINT32 fontFileReferenceKeySize, + _Out_ UINT32* filePathLength + ) PURE; + + /// + /// Obtains the absolute font file path from the font file reference key. + /// + /// Font file reference key that uniquely identifies the local font file + /// within the scope of the font loader being used. + /// Size of font file reference key in bytes. + /// Character array that receives the local file path. + /// Size of the filePath array in character count including the terminated NULL character. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFilePathFromKey)( + _In_reads_bytes_(fontFileReferenceKeySize) void const* fontFileReferenceKey, + UINT32 fontFileReferenceKeySize, + _Out_writes_z_(filePathSize) WCHAR* filePath, + UINT32 filePathSize + ) PURE; + + /// + /// Obtains the last write time of the file from the font file reference key. + /// + /// Font file reference key that uniquely identifies the local font file + /// within the scope of the font loader being used. + /// Size of font file reference key in bytes. + /// Last modified time of the font file. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLastWriteTimeFromKey)( + _In_reads_bytes_(fontFileReferenceKeySize) void const* fontFileReferenceKey, + UINT32 fontFileReferenceKeySize, + _Out_ FILETIME* lastWriteTime + ) PURE; +}; + +/// +/// The interface for loading font file data. +/// +interface DWRITE_DECLARE_INTERFACE("6d4865fe-0ab8-4d91-8f62-5dd6be34a3e0") IDWriteFontFileStream : public IUnknown +{ + /// + /// Reads a fragment from a file. + /// + /// Receives the pointer to the start of the font file fragment. + /// Offset of the fragment from the beginning of the font file. + /// Size of the fragment in bytes. + /// The client defined context to be passed to the ReleaseFileFragment. + /// + /// Standard HRESULT error code. + /// + /// + /// IMPORTANT: ReadFileFragment() implementations must check whether the requested file fragment + /// is within the file bounds. Otherwise, an error should be returned from ReadFileFragment. + /// + STDMETHOD(ReadFileFragment)( + _Outptr_result_bytebuffer_(fragmentSize) void const** fragmentStart, + UINT64 fileOffset, + UINT64 fragmentSize, + _Out_ void** fragmentContext + ) PURE; + + /// + /// Releases a fragment from a file. + /// + /// The client defined context of a font fragment returned from ReadFileFragment. + STDMETHOD_(void, ReleaseFileFragment)( + void* fragmentContext + ) PURE; + + /// + /// Obtains the total size of a file. + /// + /// Receives the total size of the file. + /// + /// Standard HRESULT error code. + /// + /// + /// Implementing GetFileSize() for asynchronously loaded font files may require + /// downloading the complete file contents, therefore this method should only be used for operations that + /// either require complete font file to be loaded (e.g., copying a font file) or need to make + /// decisions based on the value of the file size (e.g., validation against a persisted file size). + /// + STDMETHOD(GetFileSize)( + _Out_ UINT64* fileSize + ) PURE; + + /// + /// Obtains the last modified time of the file. The last modified time is used by DirectWrite font selection algorithms + /// to determine whether one font resource is more up to date than another one. + /// + /// Receives the last modified time of the file in the format that represents + /// the number of 100-nanosecond intervals since January 1, 1601 (UTC). + /// + /// Standard HRESULT error code. For resources that don't have a concept of the last modified time, the implementation of + /// GetLastWriteTime should return E_NOTIMPL. + /// + STDMETHOD(GetLastWriteTime)( + _Out_ UINT64* lastWriteTime + ) PURE; +}; + +/// +/// The interface that represents a reference to a font file. +/// +interface DWRITE_DECLARE_INTERFACE("739d886a-cef5-47dc-8769-1a8b41bebbb0") IDWriteFontFile : public IUnknown +{ + /// + /// This method obtains the pointer to the reference key of a font file. The pointer is only valid until the object that refers to it is released. + /// + /// Pointer to the font file reference key. + /// IMPORTANT: The pointer value is valid until the font file reference object it is obtained from is released. + /// Size of font file reference key in bytes. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetReferenceKey)( + _Outptr_result_bytebuffer_(*fontFileReferenceKeySize) void const** fontFileReferenceKey, + _Out_ UINT32* fontFileReferenceKeySize + ) PURE; + + /// + /// Obtains the file loader associated with a font file object. + /// + /// The font file loader associated with the font file object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLoader)( + _COM_Outptr_ IDWriteFontFileLoader** fontFileLoader + ) PURE; + + /// + /// Analyzes a file and returns whether it represents a font, and whether the font type is supported by the font system. + /// + /// TRUE if the font type is supported by the font system, FALSE otherwise. + /// The type of the font file. Note that even if isSupportedFontType is FALSE, + /// the fontFileType value may be different from DWRITE_FONT_FILE_TYPE_UNKNOWN. + /// The type of the font face that can be constructed from the font file. + /// Note that even if isSupportedFontType is FALSE, the fontFaceType value may be different from + /// DWRITE_FONT_FACE_TYPE_UNKNOWN. + /// Number of font faces contained in the font file. + /// + /// Standard HRESULT error code if there was a processing error during analysis. + /// + /// + /// IMPORTANT: certain font file types are recognized, but not supported by the font system. + /// For example, the font system will recognize a file as a Type 1 font file, + /// but will not be able to construct a font face object from it. In such situations, Analyze will set + /// isSupportedFontType output parameter to FALSE. + /// + STDMETHOD(Analyze)( + _Out_ BOOL* isSupportedFontType, + _Out_ DWRITE_FONT_FILE_TYPE* fontFileType, + _Out_opt_ DWRITE_FONT_FACE_TYPE* fontFaceType, + _Out_ UINT32* numberOfFaces + ) PURE; +}; + +/// +/// Represents the internal structure of a device pixel (i.e., the physical arrangement of red, +/// green, and blue color components) that is assumed for purposes of rendering text. +/// +#ifndef DWRITE_PIXEL_GEOMETRY_DEFINED +enum DWRITE_PIXEL_GEOMETRY +{ + /// + /// The red, green, and blue color components of each pixel are assumed to occupy the same point. + /// + DWRITE_PIXEL_GEOMETRY_FLAT, + + /// + /// Each pixel comprises three vertical stripes, with red on the left, green in the center, and + /// blue on the right. This is the most common pixel geometry for LCD monitors. + /// + DWRITE_PIXEL_GEOMETRY_RGB, + + /// + /// Each pixel comprises three vertical stripes, with blue on the left, green in the center, and + /// red on the right. + /// + DWRITE_PIXEL_GEOMETRY_BGR +}; +#define DWRITE_PIXEL_GEOMETRY_DEFINED +#endif + +/// +/// Represents a method of rendering glyphs. +/// +enum DWRITE_RENDERING_MODE +{ + /// + /// Specifies that the rendering mode is determined automatically based on the font and size. + /// + DWRITE_RENDERING_MODE_DEFAULT, + + /// + /// Specifies that no antialiasing is performed. Each pixel is either set to the foreground + /// color of the text or retains the color of the background. + /// + DWRITE_RENDERING_MODE_ALIASED, + + /// + /// Specifies that antialiasing is performed in the horizontal direction and the appearance + /// of glyphs is layout-compatible with GDI using CLEARTYPE_QUALITY. Use DWRITE_MEASURING_MODE_GDI_CLASSIC + /// to get glyph advances. The antialiasing may be either ClearType or grayscale depending on + /// the text antialiasing mode. + /// + DWRITE_RENDERING_MODE_GDI_CLASSIC, + + /// + /// Specifies that antialiasing is performed in the horizontal direction and the appearance + /// of glyphs is layout-compatible with GDI using CLEARTYPE_NATURAL_QUALITY. Glyph advances + /// are close to the font design advances, but are still rounded to whole pixels. Use + /// DWRITE_MEASURING_MODE_GDI_NATURAL to get glyph advances. The antialiasing may be either + /// ClearType or grayscale depending on the text antialiasing mode. + /// + DWRITE_RENDERING_MODE_GDI_NATURAL, + + /// + /// Specifies that antialiasing is performed in the horizontal direction. This rendering + /// mode allows glyphs to be positioned with subpixel precision and is therefore suitable + /// for natural (i.e., resolution-independent) layout. The antialiasing may be either + /// ClearType or grayscale depending on the text antialiasing mode. + /// + DWRITE_RENDERING_MODE_NATURAL, + + /// + /// Similar to natural mode except that antialiasing is performed in both the horizontal + /// and vertical directions. This is typically used at larger sizes to make curves and + /// diagonal lines look smoother. The antialiasing may be either ClearType or grayscale + /// depending on the text antialiasing mode. + /// + DWRITE_RENDERING_MODE_NATURAL_SYMMETRIC, + + /// + /// Specifies that rendering should bypass the rasterizer and use the outlines directly. + /// This is typically used at very large sizes. + /// + DWRITE_RENDERING_MODE_OUTLINE, + + // The following names are obsolete, but are kept as aliases to avoid breaking existing code. + // Each of these rendering modes may result in either ClearType or grayscale antialiasing + // depending on the DWRITE_TEXT_ANTIALIASING_MODE. + DWRITE_RENDERING_MODE_CLEARTYPE_GDI_CLASSIC = DWRITE_RENDERING_MODE_GDI_CLASSIC, + DWRITE_RENDERING_MODE_CLEARTYPE_GDI_NATURAL = DWRITE_RENDERING_MODE_GDI_NATURAL, + DWRITE_RENDERING_MODE_CLEARTYPE_NATURAL = DWRITE_RENDERING_MODE_NATURAL, + DWRITE_RENDERING_MODE_CLEARTYPE_NATURAL_SYMMETRIC = DWRITE_RENDERING_MODE_NATURAL_SYMMETRIC +}; + +/// +/// The DWRITE_MATRIX structure specifies the graphics transform to be applied +/// to rendered glyphs. +/// +struct DWRITE_MATRIX +{ + /// + /// Horizontal scaling / cosine of rotation + /// + FLOAT m11; + + /// + /// Vertical shear / sine of rotation + /// + FLOAT m12; + + /// + /// Horizontal shear / negative sine of rotation + /// + FLOAT m21; + + /// + /// Vertical scaling / cosine of rotation + /// + FLOAT m22; + + /// + /// Horizontal shift (always orthogonal regardless of rotation) + /// + FLOAT dx; + + /// + /// Vertical shift (always orthogonal regardless of rotation) + /// + FLOAT dy; +}; + +/// +/// The interface that represents text rendering settings for glyph rasterization and filtering. +/// +interface DWRITE_DECLARE_INTERFACE("2f0da53a-2add-47cd-82ee-d9ec34688e75") IDWriteRenderingParams : public IUnknown +{ + /// + /// Gets the gamma value used for gamma correction. Valid values must be + /// greater than zero and cannot exceed 256. + /// + STDMETHOD_(FLOAT, GetGamma)() PURE; + + /// + /// Gets the amount of contrast enhancement. Valid values are greater than + /// or equal to zero. + /// + STDMETHOD_(FLOAT, GetEnhancedContrast)() PURE; + + /// + /// Gets the ClearType level. Valid values range from 0.0f (no ClearType) + /// to 1.0f (full ClearType). + /// + STDMETHOD_(FLOAT, GetClearTypeLevel)() PURE; + + /// + /// Gets the pixel geometry. + /// + STDMETHOD_(DWRITE_PIXEL_GEOMETRY, GetPixelGeometry)() PURE; + + /// + /// Gets the rendering mode. + /// + STDMETHOD_(DWRITE_RENDERING_MODE, GetRenderingMode)() PURE; +}; + +// Forward declarations of D2D types +interface ID2D1SimplifiedGeometrySink; + +typedef ID2D1SimplifiedGeometrySink IDWriteGeometrySink; + +/// +/// This interface exposes various font data such as metrics, names, and glyph outlines. +/// It contains font face type, appropriate file references and face identification data. +/// +interface DWRITE_DECLARE_INTERFACE("5f49804d-7024-4d43-bfa9-d25984f53849") IDWriteFontFace : public IUnknown +{ + /// + /// Obtains the file format type of a font face. + /// + STDMETHOD_(DWRITE_FONT_FACE_TYPE, GetType)() PURE; + + /// + /// Obtains the font files representing a font face. + /// + /// The number of files representing the font face. + /// User provided array that stores pointers to font files representing the font face. + /// This parameter can be NULL if the user is only interested in the number of files representing the font face. + /// This API increments reference count of the font file pointers returned according to COM conventions, and the client + /// should release them when finished. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFiles)( + _Inout_ UINT32* numberOfFiles, + _Out_writes_opt_(*numberOfFiles) IDWriteFontFile** fontFiles + ) PURE; + + /// + /// Obtains the zero-based index of the font face in its font file or files. If the font files contain a single face, + /// the return value is zero. + /// + STDMETHOD_(UINT32, GetIndex)() PURE; + + /// + /// Obtains the algorithmic style simulation flags of a font face. + /// + STDMETHOD_(DWRITE_FONT_SIMULATIONS, GetSimulations)() PURE; + + /// + /// Determines whether the font is a symbol font. + /// + STDMETHOD_(BOOL, IsSymbolFont)() PURE; + + /// + /// Obtains design units and common metrics for the font face. + /// These metrics are applicable to all the glyphs within a fontface and are used by applications for layout calculations. + /// + /// Points to a DWRITE_FONT_METRICS structure to fill in. + /// The metrics returned by this function are in font design units. + STDMETHOD_(void, GetMetrics)( + _Out_ DWRITE_FONT_METRICS* fontFaceMetrics + ) PURE; + + /// + /// Obtains the number of glyphs in the font face. + /// + STDMETHOD_(UINT16, GetGlyphCount)() PURE; + + /// + /// Obtains ideal glyph metrics in font design units. Design glyphs metrics are used for glyph positioning. + /// + /// An array of glyph indices to compute the metrics for. + /// The number of elements in the glyphIndices array. + /// Array of DWRITE_GLYPH_METRICS structures filled by this function. + /// The metrics returned by this function are in font design units. + /// Indicates whether the font is being used in a sideways run. + /// This can affect the glyph metrics if the font has oblique simulation + /// because sideways oblique simulation differs from non-sideways oblique simulation. + /// + /// Standard HRESULT error code. If any of the input glyph indices are outside of the valid glyph index range + /// for the current font face, E_INVALIDARG will be returned. + /// + STDMETHOD(GetDesignGlyphMetrics)( + _In_reads_(glyphCount) UINT16 const* glyphIndices, + UINT32 glyphCount, + _Out_writes_(glyphCount) DWRITE_GLYPH_METRICS* glyphMetrics, + BOOL isSideways = FALSE + ) PURE; + + /// + /// Returns the nominal mapping of UTF-32 Unicode code points to glyph indices as defined by the font 'cmap' table. + /// Note that this mapping is primarily provided for line layout engines built on top of the physical font API. + /// Because of OpenType glyph substitution and line layout character substitution, the nominal conversion does not always correspond + /// to how a Unicode string will map to glyph indices when rendering using a particular font face. + /// Also, note that Unicode Variation Selectors provide for alternate mappings for character to glyph. + /// This call will always return the default variant. + /// + /// An array of UTF-32 code points to obtain nominal glyph indices from. + /// The number of elements in the codePoints array. + /// Array of nominal glyph indices filled by this function. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetGlyphIndices)( + _In_reads_(codePointCount) UINT32 const* codePoints, + UINT32 codePointCount, + _Out_writes_(codePointCount) UINT16* glyphIndices + ) PURE; + + /// + /// Finds the specified OpenType font table if it exists and returns a pointer to it. + /// The function accesses the underlying font data via the IDWriteFontFileStream interface + /// implemented by the font file loader. + /// + /// Four character tag of table to find. + /// Use the DWRITE_MAKE_OPENTYPE_TAG() macro to create it. + /// Unlike GDI, it does not support the special TTCF and null tags to access the whole font. + /// + /// Pointer to base of table in memory. + /// The pointer is only valid so long as the FontFace used to get the font table still exists + /// (not any other FontFace, even if it actually refers to the same physical font). + /// + /// Byte size of table. + /// + /// Opaque context which must be freed by calling ReleaseFontTable. + /// The context actually comes from the lower level IDWriteFontFileStream, + /// which may be implemented by the application or DWrite itself. + /// It is possible for a NULL tableContext to be returned, especially if + /// the implementation directly memory maps the whole file. + /// Nevertheless, always release it later, and do not use it as a test for function success. + /// The same table can be queried multiple times, + /// but each returned context can be different, so release each separately. + /// + /// True if table exists. + /// + /// Standard HRESULT error code. + /// If a table can not be found, the function will not return an error, but the size will be 0, table NULL, and exists = FALSE. + /// The context does not need to be freed if the table was not found. + /// + /// + /// The context for the same tag may be different for each call, + /// so each one must be held and released separately. + /// + STDMETHOD(TryGetFontTable)( + _In_ UINT32 openTypeTableTag, + _Outptr_result_bytebuffer_(*tableSize) const void** tableData, + _Out_ UINT32* tableSize, + _Out_ void** tableContext, + _Out_ BOOL* exists + ) PURE; + + /// + /// Releases the table obtained earlier from TryGetFontTable. + /// + /// Opaque context from TryGetFontTable. + STDMETHOD_(void, ReleaseFontTable)( + _In_ void* tableContext + ) PURE; + + /// + /// Computes the outline of a run of glyphs by calling back to the outline sink interface. + /// + /// Logical size of the font in DIP units. A DIP ("device-independent pixel") equals 1/96 inch. + /// Array of glyph indices. + /// Optional array of glyph advances in DIPs. + /// Optional array of glyph offsets. + /// Number of glyphs. + /// If true, specifies that glyphs are rotated 90 degrees to the left and vertical metrics are used. + /// A client can render a vertical run by specifying isSideways = true and rotating the resulting geometry 90 degrees to the + /// right using a transform. + /// If true, specifies that the advance direction is right to left. By default, the advance direction + /// is left to right. + /// Interface the function calls back to draw each element of the geometry. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetGlyphRunOutline)( + FLOAT emSize, + _In_reads_(glyphCount) UINT16 const* glyphIndices, + _In_reads_opt_(glyphCount) FLOAT const* glyphAdvances, + _In_reads_opt_(glyphCount) DWRITE_GLYPH_OFFSET const* glyphOffsets, + UINT32 glyphCount, + BOOL isSideways, + BOOL isRightToLeft, + _In_ IDWriteGeometrySink* geometrySink + ) PURE; + + /// + /// Determines the recommended rendering mode for the font given the specified size and rendering parameters. + /// + /// Logical size of the font in DIP units. A DIP ("device-independent pixel") equals 1/96 inch. + /// Number of physical pixels per DIP. For example, if the DPI of the rendering surface is 96 this + /// value is 1.0f. If the DPI is 120, this value is 120.0f/96. + /// Specifies measuring mode that will be used for glyphs in the font. + /// Renderer implementations may choose different rendering modes for given measuring modes, but + /// best results are seen when the corresponding modes match: + /// DWRITE_RENDERING_MODE_CLEARTYPE_NATURAL for DWRITE_MEASURING_MODE_NATURAL + /// DWRITE_RENDERING_MODE_CLEARTYPE_GDI_CLASSIC for DWRITE_MEASURING_MODE_GDI_CLASSIC + /// DWRITE_RENDERING_MODE_CLEARTYPE_GDI_NATURAL for DWRITE_MEASURING_MODE_GDI_NATURAL + /// + /// Rendering parameters object. This parameter is necessary in case the rendering parameters + /// object overrides the rendering mode. + /// Receives the recommended rendering mode to use. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetRecommendedRenderingMode)( + FLOAT emSize, + FLOAT pixelsPerDip, + DWRITE_MEASURING_MODE measuringMode, + IDWriteRenderingParams* renderingParams, + _Out_ DWRITE_RENDERING_MODE* renderingMode + ) PURE; + + /// + /// Obtains design units and common metrics for the font face. + /// These metrics are applicable to all the glyphs within a fontface and are used by applications for layout calculations. + /// + /// Logical size of the font in DIP units. A DIP ("device-independent pixel") equals 1/96 inch. + /// Number of physical pixels per DIP. For example, if the DPI of the rendering surface is 96 this + /// value is 1.0f. If the DPI is 120, this value is 120.0f/96. + /// Optional transform applied to the glyphs and their positions. This transform is applied after the + /// scaling specified by the font size and pixelsPerDip. + /// Points to a DWRITE_FONT_METRICS structure to fill in. + /// The metrics returned by this function are in font design units. + STDMETHOD(GetGdiCompatibleMetrics)( + FLOAT emSize, + FLOAT pixelsPerDip, + _In_opt_ DWRITE_MATRIX const* transform, + _Out_ DWRITE_FONT_METRICS* fontFaceMetrics + ) PURE; + + /// + /// Obtains glyph metrics in font design units with the return values compatible with what GDI would produce. + /// Glyphs metrics are used for positioning of individual glyphs. + /// + /// Logical size of the font in DIP units. A DIP ("device-independent pixel") equals 1/96 inch. + /// Number of physical pixels per DIP. For example, if the DPI of the rendering surface is 96 this + /// value is 1.0f. If the DPI is 120, this value is 120.0f/96. + /// Optional transform applied to the glyphs and their positions. This transform is applied after the + /// scaling specified by the font size and pixelsPerDip. + /// + /// When set to FALSE, the metrics are the same as the metrics of GDI aliased text. + /// When set to TRUE, the metrics are the same as the metrics of text measured by GDI using a font + /// created with CLEARTYPE_NATURAL_QUALITY. + /// + /// An array of glyph indices to compute the metrics for. + /// The number of elements in the glyphIndices array. + /// Array of DWRITE_GLYPH_METRICS structures filled by this function. + /// The metrics returned by this function are in font design units. + /// Indicates whether the font is being used in a sideways run. + /// This can affect the glyph metrics if the font has oblique simulation + /// because sideways oblique simulation differs from non-sideways oblique simulation. + /// + /// Standard HRESULT error code. If any of the input glyph indices are outside of the valid glyph index range + /// for the current font face, E_INVALIDARG will be returned. + /// + STDMETHOD(GetGdiCompatibleGlyphMetrics)( + FLOAT emSize, + FLOAT pixelsPerDip, + _In_opt_ DWRITE_MATRIX const* transform, + BOOL useGdiNatural, + _In_reads_(glyphCount) UINT16 const* glyphIndices, + UINT32 glyphCount, + _Out_writes_(glyphCount) DWRITE_GLYPH_METRICS* glyphMetrics, + BOOL isSideways = FALSE + ) PURE; +}; + + +interface IDWriteFactory; +interface IDWriteFontFileEnumerator; + +/// +/// The font collection loader interface is used to construct a collection of fonts given a particular type of key. +/// The font collection loader interface is recommended to be implemented by a singleton object. +/// IMPORTANT: font collection loader implementations must not register themselves with a DirectWrite factory +/// inside their constructors and must not unregister themselves in their destructors, because +/// registration and unregistration operations increment and decrement the object reference count respectively. +/// Instead, registration and unregistration of font file loaders with DirectWrite factory should be performed +/// outside of the font file loader implementation as a separate step. +/// +interface DWRITE_DECLARE_INTERFACE("cca920e4-52f0-492b-bfa8-29c72ee0a468") IDWriteFontCollectionLoader : public IUnknown +{ + /// + /// Creates a font file enumerator object that encapsulates a collection of font files. + /// The font system calls back to this interface to create a font collection. + /// + /// Factory associated with the loader. + /// Font collection key that uniquely identifies the collection of font files within + /// the scope of the font collection loader being used. + /// Size of the font collection key in bytes. + /// Pointer to the newly created font file enumerator. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateEnumeratorFromKey)( + _In_ IDWriteFactory* factory, + _In_reads_bytes_(collectionKeySize) void const* collectionKey, + UINT32 collectionKeySize, + _COM_Outptr_ IDWriteFontFileEnumerator** fontFileEnumerator + ) PURE; +}; + +/// +/// The font file enumerator interface encapsulates a collection of font files. The font system uses this interface +/// to enumerate font files when building a font collection. +/// +interface DWRITE_DECLARE_INTERFACE("72755049-5ff7-435d-8348-4be97cfa6c7c") IDWriteFontFileEnumerator : public IUnknown +{ + /// + /// Advances to the next font file in the collection. When it is first created, the enumerator is positioned + /// before the first element of the collection and the first call to MoveNext advances to the first file. + /// + /// Receives the value TRUE if the enumerator advances to a file, or FALSE if + /// the enumerator advanced past the last file in the collection. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(MoveNext)( + _Out_ BOOL* hasCurrentFile + ) PURE; + + /// + /// Gets a reference to the current font file. + /// + /// Pointer to the newly created font file object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetCurrentFontFile)( + _COM_Outptr_ IDWriteFontFile** fontFile + ) PURE; +}; + +/// +/// Represents a collection of strings indexed by locale name. +/// +interface DWRITE_DECLARE_INTERFACE("08256209-099a-4b34-b86d-c22b110e7771") IDWriteLocalizedStrings : public IUnknown +{ + /// + /// Gets the number of language/string pairs. + /// + STDMETHOD_(UINT32, GetCount)() PURE; + + /// + /// Gets the index of the item with the specified locale name. + /// + /// Locale name to look for. + /// Receives the zero-based index of the locale name/string pair. + /// Receives TRUE if the locale name exists or FALSE if not. + /// + /// Standard HRESULT error code. If the specified locale name does not exist, the return value is S_OK, + /// but *index is UINT_MAX and *exists is FALSE. + /// + STDMETHOD(FindLocaleName)( + _In_z_ WCHAR const* localeName, + _Out_ UINT32* index, + _Out_ BOOL* exists + ) PURE; + + /// + /// Gets the length in characters (not including the null terminator) of the locale name with the specified index. + /// + /// Zero-based index of the locale name. + /// Receives the length in characters, not including the null terminator. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLocaleNameLength)( + UINT32 index, + _Out_ UINT32* length + ) PURE; + + /// + /// Copies the locale name with the specified index to the specified array. + /// + /// Zero-based index of the locale name. + /// Character array that receives the locale name. + /// Size of the array in characters. The size must include space for the terminating + /// null character. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLocaleName)( + UINT32 index, + _Out_writes_z_(size) WCHAR* localeName, + UINT32 size + ) PURE; + + /// + /// Gets the length in characters (not including the null terminator) of the string with the specified index. + /// + /// Zero-based index of the string. + /// Receives the length in characters, not including the null terminator. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetStringLength)( + UINT32 index, + _Out_ UINT32* length + ) PURE; + + /// + /// Copies the string with the specified index to the specified array. + /// + /// Zero-based index of the string. + /// Character array that receives the string. + /// Size of the array in characters. The size must include space for the terminating + /// null character. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetString)( + UINT32 index, + _Out_writes_z_(size) WCHAR* stringBuffer, + UINT32 size + ) PURE; +}; + +interface IDWriteFontFamily; +interface IDWriteFont; + +/// +/// The IDWriteFontCollection encapsulates a collection of font families. +/// +interface DWRITE_DECLARE_INTERFACE("a84cee02-3eea-4eee-a827-87c1a02a0fcc") IDWriteFontCollection : public IUnknown +{ + /// + /// Gets the number of font families in the collection. + /// + STDMETHOD_(UINT32, GetFontFamilyCount)() PURE; + + /// + /// Creates a font family object given a zero-based font family index. + /// + /// Zero-based index of the font family. + /// Receives a pointer the newly created font family object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFamily)( + UINT32 index, + _COM_Outptr_ IDWriteFontFamily** fontFamily + ) PURE; + + /// + /// Finds the font family with the specified family name. + /// + /// Name of the font family. The name is not case-sensitive but must otherwise exactly match a family name in the collection. + /// Receives the zero-based index of the matching font family if the family name was found or UINT_MAX otherwise. + /// Receives TRUE if the family name exists or FALSE otherwise. + /// + /// Standard HRESULT error code. If the specified family name does not exist, the return value is S_OK, but *index is UINT_MAX and *exists is FALSE. + /// + STDMETHOD(FindFamilyName)( + _In_z_ WCHAR const* familyName, + _Out_ UINT32* index, + _Out_ BOOL* exists + ) PURE; + + /// + /// Gets the font object that corresponds to the same physical font as the specified font face object. The specified physical font must belong + /// to the font collection. + /// + /// Font face object that specifies the physical font. + /// Receives a pointer to the newly created font object if successful or NULL otherwise. + /// + /// Standard HRESULT error code. If the specified physical font is not part of the font collection the return value is DWRITE_E_NOFONT. + /// + STDMETHOD(GetFontFromFontFace)( + _In_ IDWriteFontFace* fontFace, + _COM_Outptr_ IDWriteFont** font + ) PURE; +}; + +/// +/// The IDWriteFontList interface represents an ordered set of fonts that are part of an IDWriteFontCollection. +/// +interface DWRITE_DECLARE_INTERFACE("1a0d8438-1d97-4ec1-aef9-a2fb86ed6acb") IDWriteFontList : public IUnknown +{ + /// + /// Gets the font collection that contains the fonts. + /// + /// Receives a pointer to the font collection object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontCollection)( + _COM_Outptr_ IDWriteFontCollection** fontCollection + ) PURE; + + /// + /// Gets the number of fonts in the font list. + /// + STDMETHOD_(UINT32, GetFontCount)() PURE; + + /// + /// Gets a font given its zero-based index. + /// + /// Zero-based index of the font in the font list. + /// Receives a pointer to the newly created font object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFont)( + UINT32 index, + _COM_Outptr_ IDWriteFont** font + ) PURE; +}; + +/// +/// The IDWriteFontFamily interface represents a set of fonts that share the same design but are differentiated +/// by weight, stretch, and style. +/// +interface DWRITE_DECLARE_INTERFACE("da20d8ef-812a-4c43-9802-62ec4abd7add") IDWriteFontFamily : public IDWriteFontList +{ + /// + /// Creates a localized strings object that contains the family names for the font family, indexed by locale name. + /// + /// Receives a pointer to the newly created localized strings object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFamilyNames)( + _COM_Outptr_ IDWriteLocalizedStrings** names + ) PURE; + + /// + /// Gets the font that best matches the specified properties. + /// + /// Requested font weight. + /// Requested font stretch. + /// Requested font style. + /// Receives a pointer to the newly created font object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFirstMatchingFont)( + DWRITE_FONT_WEIGHT weight, + DWRITE_FONT_STRETCH stretch, + DWRITE_FONT_STYLE style, + _COM_Outptr_ IDWriteFont** matchingFont + ) PURE; + + /// + /// Gets a list of fonts in the font family ranked in order of how well they match the specified properties. + /// + /// Requested font weight. + /// Requested font stretch. + /// Requested font style. + /// Receives a pointer to the newly created font list object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetMatchingFonts)( + DWRITE_FONT_WEIGHT weight, + DWRITE_FONT_STRETCH stretch, + DWRITE_FONT_STYLE style, + _COM_Outptr_ IDWriteFontList** matchingFonts + ) PURE; +}; + +/// +/// The IDWriteFont interface represents a physical font in a font collection. +/// +interface DWRITE_DECLARE_INTERFACE("acd16696-8c14-4f5d-877e-fe3fc1d32737") IDWriteFont : public IUnknown +{ + /// + /// Gets the font family to which the specified font belongs. + /// + /// Receives a pointer to the font family object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFamily)( + _COM_Outptr_ IDWriteFontFamily** fontFamily + ) PURE; + + /// + /// Gets the weight of the specified font. + /// + STDMETHOD_(DWRITE_FONT_WEIGHT, GetWeight)() PURE; + + /// + /// Gets the stretch (aka. width) of the specified font. + /// + STDMETHOD_(DWRITE_FONT_STRETCH, GetStretch)() PURE; + + /// + /// Gets the style (aka. slope) of the specified font. + /// + STDMETHOD_(DWRITE_FONT_STYLE, GetStyle)() PURE; + + /// + /// Returns TRUE if the font is a symbol font or FALSE if not. + /// + STDMETHOD_(BOOL, IsSymbolFont)() PURE; + + /// + /// Gets a localized strings collection containing the face names for the font (e.g., Regular or Bold), indexed by locale name. + /// + /// Receives a pointer to the newly created localized strings object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFaceNames)( + _COM_Outptr_ IDWriteLocalizedStrings** names + ) PURE; + + /// + /// Gets a localized strings collection containing the specified informational strings, indexed by locale name. + /// + /// Identifies the string to get. + /// Receives a pointer to the newly created localized strings object. + /// Receives the value TRUE if the font contains the specified string ID or FALSE if not. + /// + /// Standard HRESULT error code. If the font does not contain the specified string, the return value is S_OK but + /// informationalStrings receives a NULL pointer and exists receives the value FALSE. + /// + STDMETHOD(GetInformationalStrings)( + DWRITE_INFORMATIONAL_STRING_ID informationalStringID, + _COM_Outptr_result_maybenull_ IDWriteLocalizedStrings** informationalStrings, + _Out_ BOOL* exists + ) PURE; + + /// + /// Gets a value that indicates what simulation are applied to the specified font. + /// + STDMETHOD_(DWRITE_FONT_SIMULATIONS, GetSimulations)() PURE; + + /// + /// Gets the metrics for the font. + /// + /// Receives the font metrics. + STDMETHOD_(void, GetMetrics)( + _Out_ DWRITE_FONT_METRICS* fontMetrics + ) PURE; + + /// + /// Determines whether the font supports the specified character. + /// + /// Unicode (UCS-4) character value. + /// Receives the value TRUE if the font supports the specified character or FALSE if not. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(HasCharacter)( + UINT32 unicodeValue, + _Out_ BOOL* exists + ) PURE; + + /// + /// Creates a font face object for the font. + /// + /// Receives a pointer to the newly created font face object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFace)( + _COM_Outptr_ IDWriteFontFace** fontFace + ) PURE; +}; + +/// +/// Direction for how reading progresses. +/// +enum DWRITE_READING_DIRECTION +{ + /// + /// Reading progresses from left to right. + /// + DWRITE_READING_DIRECTION_LEFT_TO_RIGHT = 0, + + /// + /// Reading progresses from right to left. + /// + DWRITE_READING_DIRECTION_RIGHT_TO_LEFT = 1, + + /// + /// Reading progresses from top to bottom. + /// + DWRITE_READING_DIRECTION_TOP_TO_BOTTOM = 2, + + /// + /// Reading progresses from bottom to top. + /// + DWRITE_READING_DIRECTION_BOTTOM_TO_TOP = 3, +}; + +/// +/// Direction for how lines of text are placed relative to one another. +/// +enum DWRITE_FLOW_DIRECTION +{ + /// + /// Text lines are placed from top to bottom. + /// + DWRITE_FLOW_DIRECTION_TOP_TO_BOTTOM = 0, + + /// + /// Text lines are placed from bottom to top. + /// + DWRITE_FLOW_DIRECTION_BOTTOM_TO_TOP = 1, + + /// + /// Text lines are placed from left to right. + /// + DWRITE_FLOW_DIRECTION_LEFT_TO_RIGHT = 2, + + /// + /// Text lines are placed from right to left. + /// + DWRITE_FLOW_DIRECTION_RIGHT_TO_LEFT = 3, +}; + +/// +/// Alignment of paragraph text along the reading direction axis relative to +/// the leading and trailing edge of the layout box. +/// +enum DWRITE_TEXT_ALIGNMENT +{ + /// + /// The leading edge of the paragraph text is aligned to the layout box's leading edge. + /// + DWRITE_TEXT_ALIGNMENT_LEADING, + + /// + /// The trailing edge of the paragraph text is aligned to the layout box's trailing edge. + /// + DWRITE_TEXT_ALIGNMENT_TRAILING, + + /// + /// The center of the paragraph text is aligned to the center of the layout box. + /// + DWRITE_TEXT_ALIGNMENT_CENTER, + + /// + /// Align text to the leading side, and also justify text to fill the lines. + /// + DWRITE_TEXT_ALIGNMENT_JUSTIFIED +}; + +/// +/// Alignment of paragraph text along the flow direction axis relative to the +/// flow's beginning and ending edge of the layout box. +/// +enum DWRITE_PARAGRAPH_ALIGNMENT +{ + /// + /// The first line of paragraph is aligned to the flow's beginning edge of the layout box. + /// + DWRITE_PARAGRAPH_ALIGNMENT_NEAR, + + /// + /// The last line of paragraph is aligned to the flow's ending edge of the layout box. + /// + DWRITE_PARAGRAPH_ALIGNMENT_FAR, + + /// + /// The center of the paragraph is aligned to the center of the flow of the layout box. + /// + DWRITE_PARAGRAPH_ALIGNMENT_CENTER +}; + +/// +/// Word wrapping in multiline paragraph. +/// +enum DWRITE_WORD_WRAPPING +{ + /// + /// Words are broken across lines to avoid text overflowing the layout box. + /// + DWRITE_WORD_WRAPPING_WRAP = 0, + + /// + /// Words are kept within the same line even when it overflows the layout box. + /// This option is often used with scrolling to reveal overflow text. + /// + DWRITE_WORD_WRAPPING_NO_WRAP = 1, + + /// + /// Words are broken across lines to avoid text overflowing the layout box. + /// Emergency wrapping occurs if the word is larger than the maximum width. + /// + DWRITE_WORD_WRAPPING_EMERGENCY_BREAK = 2, + + /// + /// Only wrap whole words, never breaking words (emergency wrapping) when the + /// layout width is too small for even a single word. + /// + DWRITE_WORD_WRAPPING_WHOLE_WORD = 3, + + /// + /// Wrap between any valid characters clusters. + /// + DWRITE_WORD_WRAPPING_CHARACTER = 4, +}; + +/// +/// The method used for line spacing in layout. +/// +enum DWRITE_LINE_SPACING_METHOD +{ + /// + /// Line spacing depends solely on the content, growing to accommodate the size of fonts and inline objects. + /// + DWRITE_LINE_SPACING_METHOD_DEFAULT, + + /// + /// Lines are explicitly set to uniform spacing, regardless of contained font sizes. + /// This can be useful to avoid the uneven appearance that can occur from font fallback. + /// + DWRITE_LINE_SPACING_METHOD_UNIFORM, + + /// + /// Line spacing and baseline distances are proportional to the computed values based on the content, the size of the fonts and inline objects. + /// + DWRITE_LINE_SPACING_METHOD_PROPORTIONAL +}; + +/// +/// Text granularity used to trim text overflowing the layout box. +/// +enum DWRITE_TRIMMING_GRANULARITY +{ + /// + /// No trimming occurs. Text flows beyond the layout width. + /// + DWRITE_TRIMMING_GRANULARITY_NONE, + + /// + /// Trimming occurs at character cluster boundary. + /// + DWRITE_TRIMMING_GRANULARITY_CHARACTER, + + /// + /// Trimming occurs at word boundary. + /// + DWRITE_TRIMMING_GRANULARITY_WORD +}; + +/// +/// Typographic feature of text supplied by the font. +/// +/// +/// Use DWRITE_MAKE_FONT_FEATURE_TAG() to create a custom one. +/// +enum DWRITE_FONT_FEATURE_TAG +{ + DWRITE_FONT_FEATURE_TAG_ALTERNATIVE_FRACTIONS = DWRITE_MAKE_OPENTYPE_TAG('a','f','r','c'), + DWRITE_FONT_FEATURE_TAG_PETITE_CAPITALS_FROM_CAPITALS = DWRITE_MAKE_OPENTYPE_TAG('c','2','p','c'), + DWRITE_FONT_FEATURE_TAG_SMALL_CAPITALS_FROM_CAPITALS = DWRITE_MAKE_OPENTYPE_TAG('c','2','s','c'), + DWRITE_FONT_FEATURE_TAG_CONTEXTUAL_ALTERNATES = DWRITE_MAKE_OPENTYPE_TAG('c','a','l','t'), + DWRITE_FONT_FEATURE_TAG_CASE_SENSITIVE_FORMS = DWRITE_MAKE_OPENTYPE_TAG('c','a','s','e'), + DWRITE_FONT_FEATURE_TAG_GLYPH_COMPOSITION_DECOMPOSITION = DWRITE_MAKE_OPENTYPE_TAG('c','c','m','p'), + DWRITE_FONT_FEATURE_TAG_CONTEXTUAL_LIGATURES = DWRITE_MAKE_OPENTYPE_TAG('c','l','i','g'), + DWRITE_FONT_FEATURE_TAG_CAPITAL_SPACING = DWRITE_MAKE_OPENTYPE_TAG('c','p','s','p'), + DWRITE_FONT_FEATURE_TAG_CONTEXTUAL_SWASH = DWRITE_MAKE_OPENTYPE_TAG('c','s','w','h'), + DWRITE_FONT_FEATURE_TAG_CURSIVE_POSITIONING = DWRITE_MAKE_OPENTYPE_TAG('c','u','r','s'), + DWRITE_FONT_FEATURE_TAG_DEFAULT = DWRITE_MAKE_OPENTYPE_TAG('d','f','l','t'), + DWRITE_FONT_FEATURE_TAG_DISCRETIONARY_LIGATURES = DWRITE_MAKE_OPENTYPE_TAG('d','l','i','g'), + DWRITE_FONT_FEATURE_TAG_EXPERT_FORMS = DWRITE_MAKE_OPENTYPE_TAG('e','x','p','t'), + DWRITE_FONT_FEATURE_TAG_FRACTIONS = DWRITE_MAKE_OPENTYPE_TAG('f','r','a','c'), + DWRITE_FONT_FEATURE_TAG_FULL_WIDTH = DWRITE_MAKE_OPENTYPE_TAG('f','w','i','d'), + DWRITE_FONT_FEATURE_TAG_HALF_FORMS = DWRITE_MAKE_OPENTYPE_TAG('h','a','l','f'), + DWRITE_FONT_FEATURE_TAG_HALANT_FORMS = DWRITE_MAKE_OPENTYPE_TAG('h','a','l','n'), + DWRITE_FONT_FEATURE_TAG_ALTERNATE_HALF_WIDTH = DWRITE_MAKE_OPENTYPE_TAG('h','a','l','t'), + DWRITE_FONT_FEATURE_TAG_HISTORICAL_FORMS = DWRITE_MAKE_OPENTYPE_TAG('h','i','s','t'), + DWRITE_FONT_FEATURE_TAG_HORIZONTAL_KANA_ALTERNATES = DWRITE_MAKE_OPENTYPE_TAG('h','k','n','a'), + DWRITE_FONT_FEATURE_TAG_HISTORICAL_LIGATURES = DWRITE_MAKE_OPENTYPE_TAG('h','l','i','g'), + DWRITE_FONT_FEATURE_TAG_HALF_WIDTH = DWRITE_MAKE_OPENTYPE_TAG('h','w','i','d'), + DWRITE_FONT_FEATURE_TAG_HOJO_KANJI_FORMS = DWRITE_MAKE_OPENTYPE_TAG('h','o','j','o'), + DWRITE_FONT_FEATURE_TAG_JIS04_FORMS = DWRITE_MAKE_OPENTYPE_TAG('j','p','0','4'), + DWRITE_FONT_FEATURE_TAG_JIS78_FORMS = DWRITE_MAKE_OPENTYPE_TAG('j','p','7','8'), + DWRITE_FONT_FEATURE_TAG_JIS83_FORMS = DWRITE_MAKE_OPENTYPE_TAG('j','p','8','3'), + DWRITE_FONT_FEATURE_TAG_JIS90_FORMS = DWRITE_MAKE_OPENTYPE_TAG('j','p','9','0'), + DWRITE_FONT_FEATURE_TAG_KERNING = DWRITE_MAKE_OPENTYPE_TAG('k','e','r','n'), + DWRITE_FONT_FEATURE_TAG_STANDARD_LIGATURES = DWRITE_MAKE_OPENTYPE_TAG('l','i','g','a'), + DWRITE_FONT_FEATURE_TAG_LINING_FIGURES = DWRITE_MAKE_OPENTYPE_TAG('l','n','u','m'), + DWRITE_FONT_FEATURE_TAG_LOCALIZED_FORMS = DWRITE_MAKE_OPENTYPE_TAG('l','o','c','l'), + DWRITE_FONT_FEATURE_TAG_MARK_POSITIONING = DWRITE_MAKE_OPENTYPE_TAG('m','a','r','k'), + DWRITE_FONT_FEATURE_TAG_MATHEMATICAL_GREEK = DWRITE_MAKE_OPENTYPE_TAG('m','g','r','k'), + DWRITE_FONT_FEATURE_TAG_MARK_TO_MARK_POSITIONING = DWRITE_MAKE_OPENTYPE_TAG('m','k','m','k'), + DWRITE_FONT_FEATURE_TAG_ALTERNATE_ANNOTATION_FORMS = DWRITE_MAKE_OPENTYPE_TAG('n','a','l','t'), + DWRITE_FONT_FEATURE_TAG_NLC_KANJI_FORMS = DWRITE_MAKE_OPENTYPE_TAG('n','l','c','k'), + DWRITE_FONT_FEATURE_TAG_OLD_STYLE_FIGURES = DWRITE_MAKE_OPENTYPE_TAG('o','n','u','m'), + DWRITE_FONT_FEATURE_TAG_ORDINALS = DWRITE_MAKE_OPENTYPE_TAG('o','r','d','n'), + DWRITE_FONT_FEATURE_TAG_PROPORTIONAL_ALTERNATE_WIDTH = DWRITE_MAKE_OPENTYPE_TAG('p','a','l','t'), + DWRITE_FONT_FEATURE_TAG_PETITE_CAPITALS = DWRITE_MAKE_OPENTYPE_TAG('p','c','a','p'), + DWRITE_FONT_FEATURE_TAG_PROPORTIONAL_FIGURES = DWRITE_MAKE_OPENTYPE_TAG('p','n','u','m'), + DWRITE_FONT_FEATURE_TAG_PROPORTIONAL_WIDTHS = DWRITE_MAKE_OPENTYPE_TAG('p','w','i','d'), + DWRITE_FONT_FEATURE_TAG_QUARTER_WIDTHS = DWRITE_MAKE_OPENTYPE_TAG('q','w','i','d'), + DWRITE_FONT_FEATURE_TAG_REQUIRED_LIGATURES = DWRITE_MAKE_OPENTYPE_TAG('r','l','i','g'), + DWRITE_FONT_FEATURE_TAG_RUBY_NOTATION_FORMS = DWRITE_MAKE_OPENTYPE_TAG('r','u','b','y'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_ALTERNATES = DWRITE_MAKE_OPENTYPE_TAG('s','a','l','t'), + DWRITE_FONT_FEATURE_TAG_SCIENTIFIC_INFERIORS = DWRITE_MAKE_OPENTYPE_TAG('s','i','n','f'), + DWRITE_FONT_FEATURE_TAG_SMALL_CAPITALS = DWRITE_MAKE_OPENTYPE_TAG('s','m','c','p'), + DWRITE_FONT_FEATURE_TAG_SIMPLIFIED_FORMS = DWRITE_MAKE_OPENTYPE_TAG('s','m','p','l'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_1 = DWRITE_MAKE_OPENTYPE_TAG('s','s','0','1'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_2 = DWRITE_MAKE_OPENTYPE_TAG('s','s','0','2'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_3 = DWRITE_MAKE_OPENTYPE_TAG('s','s','0','3'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_4 = DWRITE_MAKE_OPENTYPE_TAG('s','s','0','4'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_5 = DWRITE_MAKE_OPENTYPE_TAG('s','s','0','5'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_6 = DWRITE_MAKE_OPENTYPE_TAG('s','s','0','6'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_7 = DWRITE_MAKE_OPENTYPE_TAG('s','s','0','7'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_8 = DWRITE_MAKE_OPENTYPE_TAG('s','s','0','8'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_9 = DWRITE_MAKE_OPENTYPE_TAG('s','s','0','9'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_10 = DWRITE_MAKE_OPENTYPE_TAG('s','s','1','0'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_11 = DWRITE_MAKE_OPENTYPE_TAG('s','s','1','1'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_12 = DWRITE_MAKE_OPENTYPE_TAG('s','s','1','2'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_13 = DWRITE_MAKE_OPENTYPE_TAG('s','s','1','3'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_14 = DWRITE_MAKE_OPENTYPE_TAG('s','s','1','4'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_15 = DWRITE_MAKE_OPENTYPE_TAG('s','s','1','5'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_16 = DWRITE_MAKE_OPENTYPE_TAG('s','s','1','6'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_17 = DWRITE_MAKE_OPENTYPE_TAG('s','s','1','7'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_18 = DWRITE_MAKE_OPENTYPE_TAG('s','s','1','8'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_19 = DWRITE_MAKE_OPENTYPE_TAG('s','s','1','9'), + DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_20 = DWRITE_MAKE_OPENTYPE_TAG('s','s','2','0'), + DWRITE_FONT_FEATURE_TAG_SUBSCRIPT = DWRITE_MAKE_OPENTYPE_TAG('s','u','b','s'), + DWRITE_FONT_FEATURE_TAG_SUPERSCRIPT = DWRITE_MAKE_OPENTYPE_TAG('s','u','p','s'), + DWRITE_FONT_FEATURE_TAG_SWASH = DWRITE_MAKE_OPENTYPE_TAG('s','w','s','h'), + DWRITE_FONT_FEATURE_TAG_TITLING = DWRITE_MAKE_OPENTYPE_TAG('t','i','t','l'), + DWRITE_FONT_FEATURE_TAG_TRADITIONAL_NAME_FORMS = DWRITE_MAKE_OPENTYPE_TAG('t','n','a','m'), + DWRITE_FONT_FEATURE_TAG_TABULAR_FIGURES = DWRITE_MAKE_OPENTYPE_TAG('t','n','u','m'), + DWRITE_FONT_FEATURE_TAG_TRADITIONAL_FORMS = DWRITE_MAKE_OPENTYPE_TAG('t','r','a','d'), + DWRITE_FONT_FEATURE_TAG_THIRD_WIDTHS = DWRITE_MAKE_OPENTYPE_TAG('t','w','i','d'), + DWRITE_FONT_FEATURE_TAG_UNICASE = DWRITE_MAKE_OPENTYPE_TAG('u','n','i','c'), + DWRITE_FONT_FEATURE_TAG_VERTICAL_WRITING = DWRITE_MAKE_OPENTYPE_TAG('v','e','r','t'), + DWRITE_FONT_FEATURE_TAG_VERTICAL_ALTERNATES_AND_ROTATION = DWRITE_MAKE_OPENTYPE_TAG('v','r','t','2'), + DWRITE_FONT_FEATURE_TAG_SLASHED_ZERO = DWRITE_MAKE_OPENTYPE_TAG('z','e','r','o'), +}; + +/// +/// The DWRITE_TEXT_RANGE structure specifies a range of text positions where format is applied. +/// +struct DWRITE_TEXT_RANGE +{ + /// + /// The start text position of the range. + /// + UINT32 startPosition; + + /// + /// The number of text positions in the range. + /// + UINT32 length; +}; + +/// +/// The DWRITE_FONT_FEATURE structure specifies properties used to identify and execute typographic feature in the font. +/// +struct DWRITE_FONT_FEATURE +{ + /// + /// The feature OpenType name identifier. + /// + DWRITE_FONT_FEATURE_TAG nameTag; + + /// + /// Execution parameter of the feature. + /// + /// + /// The parameter should be non-zero to enable the feature. Once enabled, a feature can't be disabled again within + /// the same range. Features requiring a selector use this value to indicate the selector index. + /// + UINT32 parameter; +}; + +/// +/// Defines a set of typographic features to be applied during shaping. +/// Notice the character range which this feature list spans is specified +/// as a separate parameter to GetGlyphs. +/// +struct DWRITE_TYPOGRAPHIC_FEATURES +{ + /// + /// Array of font features. + /// + _Field_size_(featureCount) DWRITE_FONT_FEATURE* features; + + /// + /// The number of features. + /// + UINT32 featureCount; +}; + +/// +/// The DWRITE_TRIMMING structure specifies the trimming option for text overflowing the layout box. +/// +struct DWRITE_TRIMMING +{ + /// + /// Text granularity of which trimming applies. + /// + DWRITE_TRIMMING_GRANULARITY granularity; + + /// + /// Character code used as the delimiter signaling the beginning of the portion of text to be preserved, + /// most useful for path ellipsis, where the delimiter would be a slash. Leave this zero if there is no + /// delimiter. + /// + UINT32 delimiter; + + /// + /// How many occurrences of the delimiter to step back. Leave this zero if there is no delimiter. + /// + UINT32 delimiterCount; +}; + + +interface IDWriteTypography; +interface IDWriteInlineObject; + +/// +/// The format of text used for text layout. +/// +/// +/// This object may not be thread-safe and it may carry the state of text format change. +/// +interface DWRITE_DECLARE_INTERFACE("9c906818-31d7-4fd3-a151-7c5e225db55a") IDWriteTextFormat : public IUnknown +{ + /// + /// Set alignment option of text relative to layout box's leading and trailing edge. + /// + /// Text alignment option + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetTextAlignment)( + DWRITE_TEXT_ALIGNMENT textAlignment + ) PURE; + + /// + /// Set alignment option of paragraph relative to layout box's top and bottom edge. + /// + /// Paragraph alignment option + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetParagraphAlignment)( + DWRITE_PARAGRAPH_ALIGNMENT paragraphAlignment + ) PURE; + + /// + /// Set word wrapping option. + /// + /// Word wrapping option + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetWordWrapping)( + DWRITE_WORD_WRAPPING wordWrapping + ) PURE; + + /// + /// Set paragraph reading direction. + /// + /// Text reading direction + /// + /// Standard HRESULT error code. + /// + /// + /// The flow direction must be perpendicular to the reading direction. + /// Setting both to a vertical direction or both to horizontal yields + /// DWRITE_E_FLOWDIRECTIONCONFLICTS when calling GetMetrics or Draw. + /// + STDMETHOD(SetReadingDirection)( + DWRITE_READING_DIRECTION readingDirection + ) PURE; + + /// + /// Set paragraph flow direction. + /// + /// Paragraph flow direction + /// + /// Standard HRESULT error code. + /// + /// + /// The flow direction must be perpendicular to the reading direction. + /// Setting both to a vertical direction or both to horizontal yields + /// DWRITE_E_FLOWDIRECTIONCONFLICTS when calling GetMetrics or Draw. + /// + STDMETHOD(SetFlowDirection)( + DWRITE_FLOW_DIRECTION flowDirection + ) PURE; + + /// + /// Set incremental tab stop position. + /// + /// The incremental tab stop value + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetIncrementalTabStop)( + FLOAT incrementalTabStop + ) PURE; + + /// + /// Set trimming options for any trailing text exceeding the layout width + /// or for any far text exceeding the layout height. + /// + /// Text trimming options. + /// Application-defined omission sign. This parameter may be NULL if no trimming sign is desired. + /// + /// Any inline object can be used for the trimming sign, but CreateEllipsisTrimmingSign + /// provides a typical ellipsis symbol. Trimming is also useful vertically for hiding + /// partial lines. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetTrimming)( + _In_ DWRITE_TRIMMING const* trimmingOptions, + _In_opt_ IDWriteInlineObject* trimmingSign + ) PURE; + + /// + /// Set line spacing. + /// + /// How to determine line height. + /// The line height, or rather distance between one baseline to another. + /// Distance from top of line to baseline. A reasonable ratio to lineSpacing is 80%. + /// + /// For the default method, spacing depends solely on the content. + /// For uniform spacing, the given line height will override the content. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetLineSpacing)( + DWRITE_LINE_SPACING_METHOD lineSpacingMethod, + FLOAT lineSpacing, + FLOAT baseline + ) PURE; + + /// + /// Get alignment option of text relative to layout box's leading and trailing edge. + /// + STDMETHOD_(DWRITE_TEXT_ALIGNMENT, GetTextAlignment)() PURE; + + /// + /// Get alignment option of paragraph relative to layout box's top and bottom edge. + /// + STDMETHOD_(DWRITE_PARAGRAPH_ALIGNMENT, GetParagraphAlignment)() PURE; + + /// + /// Get word wrapping option. + /// + STDMETHOD_(DWRITE_WORD_WRAPPING, GetWordWrapping)() PURE; + + /// + /// Get paragraph reading direction. + /// + STDMETHOD_(DWRITE_READING_DIRECTION, GetReadingDirection)() PURE; + + /// + /// Get paragraph flow direction. + /// + STDMETHOD_(DWRITE_FLOW_DIRECTION, GetFlowDirection)() PURE; + + /// + /// Get incremental tab stop position. + /// + STDMETHOD_(FLOAT, GetIncrementalTabStop)() PURE; + + /// + /// Get trimming options for text overflowing the layout width. + /// + /// Text trimming options. + /// Trimming omission sign. This parameter may be NULL. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetTrimming)( + _Out_ DWRITE_TRIMMING* trimmingOptions, + _COM_Outptr_ IDWriteInlineObject** trimmingSign + ) PURE; + + /// + /// Get line spacing. + /// + /// How line height is determined. + /// The line height, or rather distance between one baseline to another. + /// Distance from top of line to baseline. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLineSpacing)( + _Out_ DWRITE_LINE_SPACING_METHOD* lineSpacingMethod, + _Out_ FLOAT* lineSpacing, + _Out_ FLOAT* baseline + ) PURE; + + /// + /// Get the font collection. + /// + /// The current font collection. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontCollection)( + _COM_Outptr_ IDWriteFontCollection** fontCollection + ) PURE; + + /// + /// Get the length of the font family name, in characters, not including the terminating NULL character. + /// + STDMETHOD_(UINT32, GetFontFamilyNameLength)() PURE; + + /// + /// Get a copy of the font family name. + /// + /// Character array that receives the current font family name + /// Size of the character array in character count including the terminated NULL character. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFamilyName)( + _Out_writes_z_(nameSize) WCHAR* fontFamilyName, + UINT32 nameSize + ) PURE; + + /// + /// Get the font weight. + /// + STDMETHOD_(DWRITE_FONT_WEIGHT, GetFontWeight)() PURE; + + /// + /// Get the font style. + /// + STDMETHOD_(DWRITE_FONT_STYLE, GetFontStyle)() PURE; + + /// + /// Get the font stretch. + /// + STDMETHOD_(DWRITE_FONT_STRETCH, GetFontStretch)() PURE; + + /// + /// Get the font em height. + /// + STDMETHOD_(FLOAT, GetFontSize)() PURE; + + /// + /// Get the length of the locale name, in characters, not including the terminating NULL character. + /// + STDMETHOD_(UINT32, GetLocaleNameLength)() PURE; + + /// + /// Get a copy of the locale name. + /// + /// Character array that receives the current locale name + /// Size of the character array in character count including the terminated NULL character. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLocaleName)( + _Out_writes_z_(nameSize) WCHAR* localeName, + UINT32 nameSize + ) PURE; +}; + + +/// +/// Font typography setting. +/// +interface DWRITE_DECLARE_INTERFACE("55f1112b-1dc2-4b3c-9541-f46894ed85b6") IDWriteTypography : public IUnknown +{ + /// + /// Add font feature. + /// + /// The font feature to add. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AddFontFeature)( + DWRITE_FONT_FEATURE fontFeature + ) PURE; + + /// + /// Get the number of font features. + /// + STDMETHOD_(UINT32, GetFontFeatureCount)() PURE; + + /// + /// Get the font feature at the specified index. + /// + /// The zero-based index of the font feature to get. + /// The font feature. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFeature)( + UINT32 fontFeatureIndex, + _Out_ DWRITE_FONT_FEATURE* fontFeature + ) PURE; +}; + +enum DWRITE_SCRIPT_SHAPES +{ + /// + /// No additional shaping requirement. Text is shaped with the writing system default behavior. + /// + DWRITE_SCRIPT_SHAPES_DEFAULT = 0, + + /// + /// Text should leave no visual on display i.e. control or format control characters. + /// + DWRITE_SCRIPT_SHAPES_NO_VISUAL = 1 +}; + +#ifdef DEFINE_ENUM_FLAG_OPERATORS +DEFINE_ENUM_FLAG_OPERATORS(DWRITE_SCRIPT_SHAPES); +#endif + +/// +/// Association of text and its writing system script as well as some display attributes. +/// +struct DWRITE_SCRIPT_ANALYSIS +{ + /// + /// Zero-based index representation of writing system script. + /// + UINT16 script; + + /// + /// Additional shaping requirement of text. + /// + DWRITE_SCRIPT_SHAPES shapes; +}; + +/// +/// Condition at the edges of inline object or text used to determine +/// line-breaking behavior. +/// +enum DWRITE_BREAK_CONDITION +{ + /// + /// Whether a break is allowed is determined by the condition of the + /// neighboring text span or inline object. + /// + DWRITE_BREAK_CONDITION_NEUTRAL, + + /// + /// A break is allowed, unless overruled by the condition of the + /// neighboring text span or inline object, either prohibited by a + /// May Not or forced by a Must. + /// + DWRITE_BREAK_CONDITION_CAN_BREAK, + + /// + /// There should be no break, unless overruled by a Must condition from + /// the neighboring text span or inline object. + /// + DWRITE_BREAK_CONDITION_MAY_NOT_BREAK, + + /// + /// The break must happen, regardless of the condition of the adjacent + /// text span or inline object. + /// + DWRITE_BREAK_CONDITION_MUST_BREAK +}; + +/// +/// Line breakpoint characteristics of a character. +/// +struct DWRITE_LINE_BREAKPOINT +{ + /// + /// Breaking condition before the character. + /// + UINT8 breakConditionBefore : 2; + + /// + /// Breaking condition after the character. + /// + UINT8 breakConditionAfter : 2; + + /// + /// The character is some form of whitespace, which may be meaningful + /// for justification. + /// + UINT8 isWhitespace : 1; + + /// + /// The character is a soft hyphen, often used to indicate hyphenation + /// points inside words. + /// + UINT8 isSoftHyphen : 1; + + UINT8 padding : 2; +}; + +/// +/// How to apply number substitution on digits and related punctuation. +/// +enum DWRITE_NUMBER_SUBSTITUTION_METHOD +{ + /// + /// Specifies that the substitution method should be determined based + /// on LOCALE_IDIGITSUBSTITUTION value of the specified text culture. + /// + DWRITE_NUMBER_SUBSTITUTION_METHOD_FROM_CULTURE, + + /// + /// If the culture is Arabic or Farsi, specifies that the number shape + /// depend on the context. Either traditional or nominal number shape + /// are used depending on the nearest preceding strong character or (if + /// there is none) the reading direction of the paragraph. + /// + DWRITE_NUMBER_SUBSTITUTION_METHOD_CONTEXTUAL, + + /// + /// Specifies that code points 0x30-0x39 are always rendered as nominal numeral + /// shapes (ones of the European number), i.e., no substitution is performed. + /// + DWRITE_NUMBER_SUBSTITUTION_METHOD_NONE, + + /// + /// Specifies that number are rendered using the national number shape + /// as specified by the LOCALE_SNATIVEDIGITS value of the specified text culture. + /// + DWRITE_NUMBER_SUBSTITUTION_METHOD_NATIONAL, + + /// + /// Specifies that number are rendered using the traditional shape + /// for the specified culture. For most cultures, this is the same as + /// NativeNational. However, NativeNational results in Latin number + /// for some Arabic cultures, whereas this value results in Arabic + /// number for all Arabic cultures. + /// + DWRITE_NUMBER_SUBSTITUTION_METHOD_TRADITIONAL +}; + +/// +/// Holds the appropriate digits and numeric punctuation for a given locale. +/// +interface DWRITE_DECLARE_INTERFACE("14885CC9-BAB0-4f90-B6ED-5C366A2CD03D") IDWriteNumberSubstitution : public IUnknown +{ +}; + +/// +/// Shaping output properties per input character. +/// +struct DWRITE_SHAPING_TEXT_PROPERTIES +{ + /// + /// This character can be shaped independently from the others + /// (usually set for the space character). + /// + UINT16 isShapedAlone : 1; + + /// + /// Reserved for use by shaping engine. + /// + UINT16 reserved1 : 1; + + /// + /// Glyph shaping can be cut after this point without affecting shaping + /// before or after it. Otherwise, splitting a call to GetGlyphs would + /// cause a reflow of glyph advances and shapes. + /// + UINT16 canBreakShapingAfter : 1; + + /// + /// Reserved for use by shaping engine. + /// + UINT16 reserved : 13; +}; + +/// +/// Shaping output properties per output glyph. +/// +struct DWRITE_SHAPING_GLYPH_PROPERTIES +{ + /// + /// Justification class, whether to use spacing, kashidas, or + /// another method. This exists for backwards compatibility + /// with Uniscribe's SCRIPT_JUSTIFY enum. + /// + UINT16 justification : 4; + + /// + /// Indicates glyph is the first of a cluster. + /// + UINT16 isClusterStart : 1; + + /// + /// Glyph is a diacritic. + /// + UINT16 isDiacritic : 1; + + /// + /// Glyph has no width, mark, ZWJ, ZWNJ, ZWSP, LRM etc. + /// This flag is not limited to just U+200B. + /// + UINT16 isZeroWidthSpace : 1; + + /// + /// Reserved for use by shaping engine. + /// + UINT16 reserved : 9; +}; + +/// +/// The interface implemented by the text analyzer's client to provide text to +/// the analyzer. It allows the separation between the logical view of text as +/// a continuous stream of characters identifiable by unique text positions, +/// and the actual memory layout of potentially discrete blocks of text in the +/// client's backing store. +/// +/// If any of these callbacks returns an error, the analysis functions will +/// stop prematurely and return a callback error. Rather than return E_NOTIMPL, +/// an application should stub the method and return a constant/null and S_OK. +/// +interface DWRITE_DECLARE_INTERFACE("688e1a58-5094-47c8-adc8-fbcea60ae92b") IDWriteTextAnalysisSource : public IUnknown +{ + /// + /// Get a block of text starting at the specified text position. + /// Returning NULL indicates the end of text - the position is after + /// the last character. This function is called iteratively for + /// each consecutive block, tying together several fragmented blocks + /// in the backing store into a virtual contiguous string. + /// + /// First position of the piece to obtain. All + /// positions are in UTF16 code-units, not whole characters, which + /// matters when supplementary characters are used. + /// Address that receives a pointer to the text block + /// at the specified position. + /// Number of UTF16 units of the retrieved chunk. + /// The returned length is not the length of the block, but the length + /// remaining in the block, from the given position until its end. + /// So querying for a position that is 75 positions into a 100 + /// position block would return 25. + /// Pointer to the first character at the given text position. + /// NULL indicates no chunk available at the specified position, either + /// because textPosition >= the entire text content length or because the + /// queried position is not mapped into the app's backing store. + /// + /// Although apps can implement sparse textual content that only maps part of + /// the backing store, the app must map any text that is in the range passed + /// to any analysis functions. + /// + STDMETHOD(GetTextAtPosition)( + UINT32 textPosition, + _Outptr_result_buffer_(*textLength) WCHAR const** textString, + _Out_ UINT32* textLength + ) PURE; + + /// + /// Get a block of text immediately preceding the specified position. + /// + /// Position immediately after the last position of the chunk to obtain. + /// Address that receives a pointer to the text block + /// at the specified position. + /// Number of UTF16 units of the retrieved block. + /// The length returned is from the given position to the front of + /// the block. + /// Pointer to the first character at (textPosition - textLength). + /// NULL indicates no chunk available at the specified position, either + /// because textPosition == 0,the textPosition > the entire text content + /// length, or the queried position is not mapped into the app's backing + /// store. + /// + /// Although apps can implement sparse textual content that only maps part of + /// the backing store, the app must map any text that is in the range passed + /// to any analysis functions. + /// + STDMETHOD(GetTextBeforePosition)( + UINT32 textPosition, + _Outptr_result_buffer_(*textLength) WCHAR const** textString, + _Out_ UINT32* textLength + ) PURE; + + /// + /// Get paragraph reading direction. + /// + STDMETHOD_(DWRITE_READING_DIRECTION, GetParagraphReadingDirection)() PURE; + + /// + /// Get locale name on the range affected by it. + /// + /// Position to get the locale name of. + /// Receives the length from the given position up to the + /// next differing locale. + /// Address that receives a pointer to the locale + /// at the specified position. + /// + /// The localeName pointer must remain valid until the next call or until + /// the analysis returns. + /// + STDMETHOD(GetLocaleName)( + UINT32 textPosition, + _Out_ UINT32* textLength, + _Outptr_result_z_ WCHAR const** localeName + ) PURE; + + /// + /// Get number substitution on the range affected by it. + /// + /// Position to get the number substitution of. + /// Receives the length from the given position up to the + /// next differing number substitution. + /// Address that receives a pointer to the number substitution + /// at the specified position. + /// + /// Any implementation should return the number substitution with an + /// incremented ref count, and the analysis will release when finished + /// with it (either before the next call or before it returns). However, + /// the sink callback may hold onto it after that. + /// + STDMETHOD(GetNumberSubstitution)( + UINT32 textPosition, + _Out_ UINT32* textLength, + _COM_Outptr_ IDWriteNumberSubstitution** numberSubstitution + ) PURE; +}; + +/// +/// The interface implemented by the text analyzer's client to receive the +/// output of a given text analysis. The Text analyzer disregards any current +/// state of the analysis sink, therefore a Set method call on a range +/// overwrites the previously set analysis result of the same range. +/// +interface DWRITE_DECLARE_INTERFACE("5810cd44-0ca0-4701-b3fa-bec5182ae4f6") IDWriteTextAnalysisSink : public IUnknown +{ + /// + /// Report script analysis for the text range. + /// + /// Starting position to report from. + /// Number of UTF16 units of the reported range. + /// Script analysis of characters in range. + /// + /// A successful code or error code to abort analysis. + /// + STDMETHOD(SetScriptAnalysis)( + UINT32 textPosition, + UINT32 textLength, + _In_ DWRITE_SCRIPT_ANALYSIS const* scriptAnalysis + ) PURE; + + /// + /// Report line-break opportunities for each character, starting from + /// the specified position. + /// + /// Starting position to report from. + /// Number of UTF16 units of the reported range. + /// Breaking conditions for each character. + /// + /// A successful code or error code to abort analysis. + /// + STDMETHOD(SetLineBreakpoints)( + UINT32 textPosition, + UINT32 textLength, + _In_reads_(textLength) DWRITE_LINE_BREAKPOINT const* lineBreakpoints + ) PURE; + + /// + /// Set bidirectional level on the range, called once per each + /// level run change (either explicit or resolved implicit). + /// + /// Starting position to report from. + /// Number of UTF16 units of the reported range. + /// Explicit level from embedded control codes + /// RLE/RLO/LRE/LRO/PDF, determined before any additional rules. + /// Final implicit level considering the + /// explicit level and characters' natural directionality, after all + /// Bidi rules have been applied. + /// + /// A successful code or error code to abort analysis. + /// + STDMETHOD(SetBidiLevel)( + UINT32 textPosition, + UINT32 textLength, + UINT8 explicitLevel, + UINT8 resolvedLevel + ) PURE; + + /// + /// Set number substitution on the range. + /// + /// Starting position to report from. + /// Number of UTF16 units of the reported range. + /// The number substitution applicable to + /// the returned range of text. The sink callback may hold onto it by + /// incrementing its ref count. + /// + /// A successful code or error code to abort analysis. + /// + /// + /// Unlike script and bidi analysis, where every character passed to the + /// analyzer has a result, this will only be called for those ranges where + /// substitution is applicable. For any other range, you will simply not + /// be called. + /// + STDMETHOD(SetNumberSubstitution)( + UINT32 textPosition, + UINT32 textLength, + _In_ IDWriteNumberSubstitution* numberSubstitution + ) PURE; +}; + +/// +/// Analyzes various text properties for complex script processing. +/// +interface DWRITE_DECLARE_INTERFACE("b7e6163e-7f46-43b4-84b3-e4e6249c365d") IDWriteTextAnalyzer : public IUnknown +{ + /// + /// Analyzes a text range for script boundaries, reading text attributes + /// from the source and reporting the Unicode script ID to the sink + /// callback SetScript. + /// + /// Source object to analyze. + /// Starting position within the source object. + /// Length to analyze. + /// Callback object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AnalyzeScript)( + _In_ IDWriteTextAnalysisSource* analysisSource, + UINT32 textPosition, + UINT32 textLength, + _In_ IDWriteTextAnalysisSink* analysisSink + ) PURE; + + /// + /// Analyzes a text range for script directionality, reading attributes + /// from the source and reporting levels to the sink callback SetBidiLevel. + /// + /// Source object to analyze. + /// Starting position within the source object. + /// Length to analyze. + /// Callback object. + /// + /// Standard HRESULT error code. + /// + /// + /// While the function can handle multiple paragraphs, the text range + /// should not arbitrarily split the middle of paragraphs. Otherwise the + /// returned levels may be wrong, since the Bidi algorithm is meant to + /// apply to the paragraph as a whole. + /// + /// + /// Embedded control codes (LRE/LRO/RLE/RLO/PDF) are taken into account. + /// + STDMETHOD(AnalyzeBidi)( + _In_ IDWriteTextAnalysisSource* analysisSource, + UINT32 textPosition, + UINT32 textLength, + _In_ IDWriteTextAnalysisSink* analysisSink + ) PURE; + + /// + /// Analyzes a text range for spans where number substitution is applicable, + /// reading attributes from the source and reporting substitutable ranges + /// to the sink callback SetNumberSubstitution. + /// + /// Source object to analyze. + /// Starting position within the source object. + /// Length to analyze. + /// Callback object. + /// + /// Standard HRESULT error code. + /// + /// + /// While the function can handle multiple ranges of differing number + /// substitutions, the text ranges should not arbitrarily split the + /// middle of numbers. Otherwise it will treat the numbers separately + /// and will not translate any intervening punctuation. + /// + /// + /// Embedded control codes (LRE/LRO/RLE/RLO/PDF) are taken into account. + /// + STDMETHOD(AnalyzeNumberSubstitution)( + _In_ IDWriteTextAnalysisSource* analysisSource, + UINT32 textPosition, + UINT32 textLength, + _In_ IDWriteTextAnalysisSink* analysisSink + ) PURE; + + /// + /// Analyzes a text range for potential breakpoint opportunities, reading + /// attributes from the source and reporting breakpoint opportunities to + /// the sink callback SetLineBreakpoints. + /// + /// Source object to analyze. + /// Starting position within the source object. + /// Length to analyze. + /// Callback object. + /// + /// Standard HRESULT error code. + /// + /// + /// While the function can handle multiple paragraphs, the text range + /// should not arbitrarily split the middle of paragraphs, unless the + /// given text span is considered a whole unit. Otherwise the + /// returned properties for the first and last characters will + /// inappropriately allow breaks. + /// + /// + /// Special cases include the first, last, and surrogate characters. Any + /// text span is treated as if adjacent to inline objects on either side. + /// So the rules with contingent-break opportunities are used, where the + /// edge between text and inline objects is always treated as a potential + /// break opportunity, dependent on any overriding rules of the adjacent + /// objects to prohibit or force the break (see Unicode TR #14). + /// Surrogate pairs never break between. + /// + STDMETHOD(AnalyzeLineBreakpoints)( + _In_ IDWriteTextAnalysisSource* analysisSource, + UINT32 textPosition, + UINT32 textLength, + _In_ IDWriteTextAnalysisSink* analysisSink + ) PURE; + + /// + /// Parses the input text string and maps it to the set of glyphs and associated glyph data + /// according to the font and the writing system's rendering rules. + /// + /// The string to convert to glyphs. + /// The length of textString. + /// The font face to get glyphs from. + /// Set to true if the text is intended to be + /// drawn vertically. + /// Set to TRUE for right-to-left text. + /// Script analysis result from AnalyzeScript. + /// The locale to use when selecting glyphs. + /// e.g. the same character may map to different glyphs for ja-jp vs zh-chs. + /// If this is NULL then the default mapping based on the script is used. + /// Optional number substitution which + /// selects the appropriate glyphs for digits and related numeric characters, + /// depending on the results obtained from AnalyzeNumberSubstitution. Passing + /// null indicates that no substitution is needed and that the digits should + /// receive nominal glyphs. + /// An array of pointers to the sets of typographic + /// features to use in each feature range. + /// The length of each feature range, in characters. + /// The sum of all lengths should be equal to textLength. + /// The number of feature ranges. + /// The maximum number of glyphs that can be + /// returned. + /// The mapping from character ranges to glyph + /// ranges. + /// Per-character output properties. + /// Output glyph indices. + /// Per-glyph output properties. + /// The actual number of glyphs returned if + /// the call succeeds. + /// + /// Standard HRESULT error code. + /// + /// + /// Note that the mapping from characters to glyphs is, in general, many- + /// to-many. The recommended estimate for the per-glyph output buffers is + /// (3 * textLength / 2 + 16). This is not guaranteed to be sufficient. + /// + /// The value of the actualGlyphCount parameter is only valid if the call + /// succeeds. In the event that maxGlyphCount is not big enough + /// E_NOT_SUFFICIENT_BUFFER, which is equivalent to HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), + /// will be returned. The application should allocate a larger buffer and try again. + /// + STDMETHOD(GetGlyphs)( + _In_reads_(textLength) WCHAR const* textString, + UINT32 textLength, + _In_ IDWriteFontFace* fontFace, + BOOL isSideways, + BOOL isRightToLeft, + _In_ DWRITE_SCRIPT_ANALYSIS const* scriptAnalysis, + _In_opt_z_ WCHAR const* localeName, + _In_opt_ IDWriteNumberSubstitution* numberSubstitution, + _In_reads_opt_(featureRanges) DWRITE_TYPOGRAPHIC_FEATURES const** features, + _In_reads_opt_(featureRanges) UINT32 const* featureRangeLengths, + UINT32 featureRanges, + UINT32 maxGlyphCount, + _Out_writes_(textLength) UINT16* clusterMap, + _Out_writes_(textLength) DWRITE_SHAPING_TEXT_PROPERTIES* textProps, + _Out_writes_(maxGlyphCount) UINT16* glyphIndices, + _Out_writes_(maxGlyphCount) DWRITE_SHAPING_GLYPH_PROPERTIES* glyphProps, + _Out_ UINT32* actualGlyphCount + ) PURE; + + /// + /// Place glyphs output from the GetGlyphs method according to the font + /// and the writing system's rendering rules. + /// + /// The original string the glyphs came from. + /// The mapping from character ranges to glyph + /// ranges. Returned by GetGlyphs. + /// Per-character properties. Returned by + /// GetGlyphs. + /// The length of textString. + /// Glyph indices. See GetGlyphs + /// Per-glyph properties. See GetGlyphs + /// The number of glyphs. + /// The font face the glyphs came from. + /// Logical font size in DIP's. + /// Set to true if the text is intended to be + /// drawn vertically. + /// Set to TRUE for right-to-left text. + /// Script analysis result from AnalyzeScript. + /// The locale to use when selecting glyphs. + /// e.g. the same character may map to different glyphs for ja-jp vs zh-chs. + /// If this is NULL then the default mapping based on the script is used. + /// An array of pointers to the sets of typographic + /// features to use in each feature range. + /// The length of each feature range, in characters. + /// The sum of all lengths should be equal to textLength. + /// The number of feature ranges. + /// The advance width of each glyph. + /// The offset of the origin of each glyph. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetGlyphPlacements)( + _In_reads_(textLength) WCHAR const* textString, + _In_reads_(textLength) UINT16 const* clusterMap, + _Inout_updates_(textLength) DWRITE_SHAPING_TEXT_PROPERTIES* textProps, + UINT32 textLength, + _In_reads_(glyphCount) UINT16 const* glyphIndices, + _In_reads_(glyphCount) DWRITE_SHAPING_GLYPH_PROPERTIES const* glyphProps, + UINT32 glyphCount, + _In_ IDWriteFontFace* fontFace, + FLOAT fontEmSize, + BOOL isSideways, + BOOL isRightToLeft, + _In_ DWRITE_SCRIPT_ANALYSIS const* scriptAnalysis, + _In_opt_z_ WCHAR const* localeName, + _In_reads_opt_(featureRanges) DWRITE_TYPOGRAPHIC_FEATURES const** features, + _In_reads_opt_(featureRanges) UINT32 const* featureRangeLengths, + UINT32 featureRanges, + _Out_writes_(glyphCount) FLOAT* glyphAdvances, + _Out_writes_(glyphCount) DWRITE_GLYPH_OFFSET* glyphOffsets + ) PURE; + + /// + /// Place glyphs output from the GetGlyphs method according to the font + /// and the writing system's rendering rules. + /// + /// The original string the glyphs came from. + /// The mapping from character ranges to glyph + /// ranges. Returned by GetGlyphs. + /// Per-character properties. Returned by + /// GetGlyphs. + /// The length of textString. + /// Glyph indices. See GetGlyphs + /// Per-glyph properties. See GetGlyphs + /// The number of glyphs. + /// The font face the glyphs came from. + /// Logical font size in DIP's. + /// Number of physical pixels per DIP. For example, if the DPI of the rendering surface is 96 this + /// value is 1.0f. If the DPI is 120, this value is 120.0f/96. + /// Optional transform applied to the glyphs and their positions. This transform is applied after the + /// scaling specified by the font size and pixelsPerDip. + /// + /// When set to FALSE, the metrics are the same as the metrics of GDI aliased text. + /// When set to TRUE, the metrics are the same as the metrics of text measured by GDI using a font + /// created with CLEARTYPE_NATURAL_QUALITY. + /// + /// Set to true if the text is intended to be + /// drawn vertically. + /// Set to TRUE for right-to-left text. + /// Script analysis result from AnalyzeScript. + /// The locale to use when selecting glyphs. + /// e.g. the same character may map to different glyphs for ja-jp vs zh-chs. + /// If this is NULL then the default mapping based on the script is used. + /// An array of pointers to the sets of typographic + /// features to use in each feature range. + /// The length of each feature range, in characters. + /// The sum of all lengths should be equal to textLength. + /// The number of feature ranges. + /// The advance width of each glyph. + /// The offset of the origin of each glyph. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetGdiCompatibleGlyphPlacements)( + _In_reads_(textLength) WCHAR const* textString, + _In_reads_(textLength) UINT16 const* clusterMap, + _In_reads_(textLength) DWRITE_SHAPING_TEXT_PROPERTIES* textProps, + UINT32 textLength, + _In_reads_(glyphCount) UINT16 const* glyphIndices, + _In_reads_(glyphCount) DWRITE_SHAPING_GLYPH_PROPERTIES const* glyphProps, + UINT32 glyphCount, + _In_ IDWriteFontFace * fontFace, + FLOAT fontEmSize, + FLOAT pixelsPerDip, + _In_opt_ DWRITE_MATRIX const* transform, + BOOL useGdiNatural, + BOOL isSideways, + BOOL isRightToLeft, + _In_ DWRITE_SCRIPT_ANALYSIS const* scriptAnalysis, + _In_opt_z_ WCHAR const* localeName, + _In_reads_opt_(featureRanges) DWRITE_TYPOGRAPHIC_FEATURES const** features, + _In_reads_opt_(featureRanges) UINT32 const* featureRangeLengths, + UINT32 featureRanges, + _Out_writes_(glyphCount) FLOAT* glyphAdvances, + _Out_writes_(glyphCount) DWRITE_GLYPH_OFFSET* glyphOffsets + ) PURE; +}; + +/// +/// The DWRITE_GLYPH_RUN structure contains the information needed by renderers +/// to draw glyph runs. All coordinates are in device independent pixels (DIPs). +/// +struct DWRITE_GLYPH_RUN +{ + /// + /// The physical font face to draw with. + /// + _Notnull_ IDWriteFontFace* fontFace; + + /// + /// Logical size of the font in DIPs, not points (equals 1/96 inch). + /// + FLOAT fontEmSize; + + /// + /// The number of glyphs. + /// + UINT32 glyphCount; + + /// + /// The indices to render. + /// + _Field_size_(glyphCount) UINT16 const* glyphIndices; + + /// + /// Glyph advance widths. + /// + _Field_size_opt_(glyphCount) FLOAT const* glyphAdvances; + + /// + /// Glyph offsets. + /// + _Field_size_opt_(glyphCount) DWRITE_GLYPH_OFFSET const* glyphOffsets; + + /// + /// If true, specifies that glyphs are rotated 90 degrees to the left and + /// vertical metrics are used. Vertical writing is achieved by specifying + /// isSideways = true and rotating the entire run 90 degrees to the right + /// via a rotate transform. + /// + BOOL isSideways; + + /// + /// The implicit resolved bidi level of the run. Odd levels indicate + /// right-to-left languages like Hebrew and Arabic, while even levels + /// indicate left-to-right languages like English and Japanese (when + /// written horizontally). For right-to-left languages, the text origin + /// is on the right, and text should be drawn to the left. + /// + UINT32 bidiLevel; +}; + +/// +/// The DWRITE_GLYPH_RUN_DESCRIPTION structure contains additional properties +/// related to those in DWRITE_GLYPH_RUN. +/// +struct DWRITE_GLYPH_RUN_DESCRIPTION +{ + /// + /// The locale name associated with this run. + /// + _Field_z_ WCHAR const* localeName; + + /// + /// The text associated with the glyphs. + /// + _Field_size_(stringLength) WCHAR const* string; + + /// + /// The number of characters (UTF16 code-units). + /// Note that this may be different than the number of glyphs. + /// + UINT32 stringLength; + + /// + /// An array of indices to the glyph indices array, of the first glyphs of + /// all the glyph clusters of the glyphs to render. + /// + _Field_size_opt_(stringLength) UINT16 const* clusterMap; + + /// + /// Corresponding text position in the original string + /// this glyph run came from. + /// + UINT32 textPosition; +}; + +/// +/// The DWRITE_UNDERLINE structure contains information about the size and +/// placement of underlines. All coordinates are in device independent +/// pixels (DIPs). +/// +struct DWRITE_UNDERLINE +{ + /// + /// Width of the underline, measured parallel to the baseline. + /// + FLOAT width; + + /// + /// Thickness of the underline, measured perpendicular to the + /// baseline. + /// + FLOAT thickness; + + /// + /// Offset of the underline from the baseline. + /// A positive offset represents a position below the baseline and + /// a negative offset is above. + /// + FLOAT offset; + + /// + /// Height of the tallest run where the underline applies. + /// + FLOAT runHeight; + + /// + /// Reading direction of the text associated with the underline. This + /// value is used to interpret whether the width value runs horizontally + /// or vertically. + /// + DWRITE_READING_DIRECTION readingDirection; + + /// + /// Flow direction of the text associated with the underline. This value + /// is used to interpret whether the thickness value advances top to + /// bottom, left to right, or right to left. + /// + DWRITE_FLOW_DIRECTION flowDirection; + + /// + /// Locale of the text the underline is being drawn under. Can be + /// pertinent where the locale affects how the underline is drawn. + /// For example, in vertical text, the underline belongs on the + /// left for Chinese but on the right for Japanese. + /// This choice is completely left up to higher levels. + /// + _Field_z_ WCHAR const* localeName; + + /// + /// The measuring mode can be useful to the renderer to determine how + /// underlines are rendered, e.g. rounding the thickness to a whole pixel + /// in GDI-compatible modes. + /// + DWRITE_MEASURING_MODE measuringMode; +}; + +/// +/// The DWRITE_STRIKETHROUGH structure contains information about the size and +/// placement of strikethroughs. All coordinates are in device independent +/// pixels (DIPs). +/// +struct DWRITE_STRIKETHROUGH +{ + /// + /// Width of the strikethrough, measured parallel to the baseline. + /// + FLOAT width; + + /// + /// Thickness of the strikethrough, measured perpendicular to the + /// baseline. + /// + FLOAT thickness; + + /// + /// Offset of the strikethrough from the baseline. + /// A positive offset represents a position below the baseline and + /// a negative offset is above. + /// + FLOAT offset; + + /// + /// Reading direction of the text associated with the strikethrough. This + /// value is used to interpret whether the width value runs horizontally + /// or vertically. + /// + DWRITE_READING_DIRECTION readingDirection; + + /// + /// Flow direction of the text associated with the strikethrough. This + /// value is used to interpret whether the thickness value advances top to + /// bottom, left to right, or right to left. + /// + DWRITE_FLOW_DIRECTION flowDirection; + + /// + /// Locale of the range. Can be pertinent where the locale affects the style. + /// + _Field_z_ WCHAR const* localeName; + + /// + /// The measuring mode can be useful to the renderer to determine how + /// underlines are rendered, e.g. rounding the thickness to a whole pixel + /// in GDI-compatible modes. + /// + DWRITE_MEASURING_MODE measuringMode; +}; + +/// +/// The DWRITE_LINE_METRICS structure contains information about a formatted +/// line of text. +/// +struct DWRITE_LINE_METRICS +{ + /// + /// The number of total text positions in the line. + /// This includes any trailing whitespace and newline characters. + /// + UINT32 length; + + /// + /// The number of whitespace positions at the end of the line. Newline + /// sequences are considered whitespace. + /// + UINT32 trailingWhitespaceLength; + + /// + /// The number of characters in the newline sequence at the end of the line. + /// If the count is zero, then the line was either wrapped or it is the + /// end of the text. + /// + UINT32 newlineLength; + + /// + /// Height of the line as measured from top to bottom. + /// + FLOAT height; + + /// + /// Distance from the top of the line to its baseline. + /// + FLOAT baseline; + + /// + /// The line is trimmed. + /// + BOOL isTrimmed; +}; + + +/// +/// The DWRITE_CLUSTER_METRICS structure contains information about a glyph cluster. +/// +struct DWRITE_CLUSTER_METRICS +{ + /// + /// The total advance width of all glyphs in the cluster. + /// + FLOAT width; + + /// + /// The number of text positions in the cluster. + /// + UINT16 length; + + /// + /// Indicate whether line can be broken right after the cluster. + /// + UINT16 canWrapLineAfter : 1; + + /// + /// Indicate whether the cluster corresponds to whitespace character. + /// + UINT16 isWhitespace : 1; + + /// + /// Indicate whether the cluster corresponds to a newline character. + /// + UINT16 isNewline : 1; + + /// + /// Indicate whether the cluster corresponds to soft hyphen character. + /// + UINT16 isSoftHyphen : 1; + + /// + /// Indicate whether the cluster is read from right to left. + /// + UINT16 isRightToLeft : 1; + + UINT16 padding : 11; +}; + + +/// +/// Overall metrics associated with text after layout. +/// All coordinates are in device independent pixels (DIPs). +/// +struct DWRITE_TEXT_METRICS +{ + /// + /// Left-most point of formatted text relative to layout box + /// (excluding any glyph overhang). + /// + FLOAT left; + + /// + /// Top-most point of formatted text relative to layout box + /// (excluding any glyph overhang). + /// + FLOAT top; + + /// + /// The width of the formatted text ignoring trailing whitespace + /// at the end of each line. + /// + FLOAT width; + + /// + /// The width of the formatted text taking into account the + /// trailing whitespace at the end of each line. + /// + FLOAT widthIncludingTrailingWhitespace; + + /// + /// The height of the formatted text. The height of an empty string + /// is determined by the size of the default font's line height. + /// + FLOAT height; + + /// + /// Initial width given to the layout. Depending on whether the text + /// was wrapped or not, it can be either larger or smaller than the + /// text content width. + /// + FLOAT layoutWidth; + + /// + /// Initial height given to the layout. Depending on the length of the + /// text, it may be larger or smaller than the text content height. + /// + FLOAT layoutHeight; + + /// + /// The maximum reordering count of any line of text, used + /// to calculate the most number of hit-testing boxes needed. + /// If the layout has no bidirectional text or no text at all, + /// the minimum level is 1. + /// + UINT32 maxBidiReorderingDepth; + + /// + /// Total number of lines. + /// + UINT32 lineCount; +}; + + +/// +/// Properties describing the geometric measurement of an +/// application-defined inline object. +/// +struct DWRITE_INLINE_OBJECT_METRICS +{ + /// + /// Width of the inline object. + /// + FLOAT width; + + /// + /// Height of the inline object as measured from top to bottom. + /// + FLOAT height; + + /// + /// Distance from the top of the object to the baseline where it is lined up with the adjacent text. + /// If the baseline is at the bottom, baseline simply equals height. + /// + FLOAT baseline; + + /// + /// Flag indicating whether the object is to be placed upright or alongside the text baseline + /// for vertical text. + /// + BOOL supportsSideways; +}; + + +/// +/// The DWRITE_OVERHANG_METRICS structure holds how much any visible pixels +/// (in DIPs) overshoot each side of the layout or inline objects. +/// +/// +/// Positive overhangs indicate that the visible area extends outside the layout +/// box or inline object, while negative values mean there is whitespace inside. +/// The returned values are unaffected by rendering transforms or pixel snapping. +/// Additionally, they may not exactly match final target's pixel bounds after +/// applying grid fitting and hinting. +/// +struct DWRITE_OVERHANG_METRICS +{ + /// + /// The distance from the left-most visible DIP to its left alignment edge. + /// + FLOAT left; + + /// + /// The distance from the top-most visible DIP to its top alignment edge. + /// + FLOAT top; + + /// + /// The distance from the right-most visible DIP to its right alignment edge. + /// + FLOAT right; + + /// + /// The distance from the bottom-most visible DIP to its bottom alignment edge. + /// + FLOAT bottom; +}; + + +/// +/// Geometry enclosing of text positions. +/// +struct DWRITE_HIT_TEST_METRICS +{ + /// + /// First text position within the geometry. + /// + UINT32 textPosition; + + /// + /// Number of text positions within the geometry. + /// + UINT32 length; + + /// + /// Left position of the top-left coordinate of the geometry. + /// + FLOAT left; + + /// + /// Top position of the top-left coordinate of the geometry. + /// + FLOAT top; + + /// + /// Geometry's width. + /// + FLOAT width; + + /// + /// Geometry's height. + /// + FLOAT height; + + /// + /// Bidi level of text positions enclosed within the geometry. + /// + UINT32 bidiLevel; + + /// + /// Geometry encloses text? + /// + BOOL isText; + + /// + /// Range is trimmed. + /// + BOOL isTrimmed; +}; + + +interface IDWriteTextRenderer; + + +/// +/// The IDWriteInlineObject interface wraps an application defined inline graphic, +/// allowing DWrite to query metrics as if it was a glyph inline with the text. +/// +interface DWRITE_DECLARE_INTERFACE("8339FDE3-106F-47ab-8373-1C6295EB10B3") IDWriteInlineObject : public IUnknown +{ + /// + /// The application implemented rendering callback (IDWriteTextRenderer::DrawInlineObject) + /// can use this to draw the inline object without needing to cast or query the object + /// type. The text layout does not call this method directly. + /// + /// The context passed to IDWriteTextLayout::Draw. + /// The renderer passed to IDWriteTextLayout::Draw as the object's containing parent. + /// X-coordinate at the top-left corner of the inline object. + /// Y-coordinate at the top-left corner of the inline object. + /// The object should be drawn on its side. + /// The object is in an right-to-left context and should be drawn flipped. + /// The drawing effect set in IDWriteTextLayout::SetDrawingEffect. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(Draw)( + _In_opt_ void* clientDrawingContext, + _In_ IDWriteTextRenderer* renderer, + FLOAT originX, + FLOAT originY, + BOOL isSideways, + BOOL isRightToLeft, + _In_opt_ IUnknown* clientDrawingEffect + ) PURE; + + /// + /// TextLayout calls this callback function to get the measurement of the inline object. + /// + /// Returned metrics + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetMetrics)( + _Out_ DWRITE_INLINE_OBJECT_METRICS* metrics + ) PURE; + + /// + /// TextLayout calls this callback function to get the visible extents (in DIPs) of the inline object. + /// In the case of a simple bitmap, with no padding and no overhang, all the overhangs will + /// simply be zeroes. + /// + /// Overshoot of visible extents (in DIPs) outside the object. + /// + /// Standard HRESULT error code. + /// + /// + /// The overhangs should be returned relative to the reported size of the object + /// (DWRITE_INLINE_OBJECT_METRICS::width/height), and should not be baseline + /// adjusted. If you have an image that is actually 100x100 DIPs, but you want it + /// slightly inset (perhaps it has a glow) by 20 DIPs on each side, you would + /// return a width/height of 60x60 and four overhangs of 20 DIPs. + /// + STDMETHOD(GetOverhangMetrics)( + _Out_ DWRITE_OVERHANG_METRICS* overhangs + ) PURE; + + /// + /// Layout uses this to determine the line breaking behavior of the inline object + /// amidst the text. + /// + /// Line-breaking condition between the object and the content immediately preceding it. + /// Line-breaking condition between the object and the content immediately following it. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetBreakConditions)( + _Out_ DWRITE_BREAK_CONDITION* breakConditionBefore, + _Out_ DWRITE_BREAK_CONDITION* breakConditionAfter + ) PURE; +}; + +/// +/// The IDWritePixelSnapping interface defines the pixel snapping properties of a text renderer. +/// +interface DWRITE_DECLARE_INTERFACE("eaf3a2da-ecf4-4d24-b644-b34f6842024b") IDWritePixelSnapping : public IUnknown +{ + /// + /// Determines whether pixel snapping is disabled. The recommended default is FALSE, + /// unless doing animation that requires subpixel vertical placement. + /// + /// The context passed to IDWriteTextLayout::Draw. + /// Receives TRUE if pixel snapping is disabled or FALSE if it not. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(IsPixelSnappingDisabled)( + _In_opt_ void* clientDrawingContext, + _Out_ BOOL* isDisabled + ) PURE; + + /// + /// Gets the current transform that maps abstract coordinates to DIPs, + /// which may disable pixel snapping upon any rotation or shear. + /// + /// The context passed to IDWriteTextLayout::Draw. + /// Receives the transform. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetCurrentTransform)( + _In_opt_ void* clientDrawingContext, + _Out_ DWRITE_MATRIX* transform + ) PURE; + + /// + /// Gets the number of physical pixels per DIP. A DIP (device-independent pixel) is 1/96 inch, + /// so the pixelsPerDip value is the number of logical pixels per inch divided by 96 (yielding + /// a value of 1 for 96 DPI and 1.25 for 120). + /// + /// The context passed to IDWriteTextLayout::Draw. + /// Receives the number of physical pixels per DIP. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetPixelsPerDip)( + _In_opt_ void* clientDrawingContext, + _Out_ FLOAT* pixelsPerDip + ) PURE; +}; + +/// +/// The IDWriteTextRenderer interface represents a set of application-defined +/// callbacks that perform rendering of text, inline objects, and decorations +/// such as underlines. +/// +interface DWRITE_DECLARE_INTERFACE("ef8a8135-5cc6-45fe-8825-c5a0724eb819") IDWriteTextRenderer : public IDWritePixelSnapping +{ + /// + /// IDWriteTextLayout::Draw calls this function to instruct the client to + /// render a run of glyphs. + /// + /// The context passed to + /// IDWriteTextLayout::Draw. + /// X-coordinate of the baseline. + /// Y-coordinate of the baseline. + /// Specifies measuring mode for glyphs in the run. + /// Renderer implementations may choose different rendering modes for given measuring modes, + /// but best results are seen when the rendering mode matches the corresponding measuring mode: + /// DWRITE_RENDERING_MODE_CLEARTYPE_NATURAL for DWRITE_MEASURING_MODE_NATURAL + /// DWRITE_RENDERING_MODE_CLEARTYPE_GDI_CLASSIC for DWRITE_MEASURING_MODE_GDI_CLASSIC + /// DWRITE_RENDERING_MODE_CLEARTYPE_GDI_NATURAL for DWRITE_MEASURING_MODE_GDI_NATURAL + /// + /// The glyph run to draw. + /// Properties of the characters + /// associated with this run. + /// The drawing effect set in + /// IDWriteTextLayout::SetDrawingEffect. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(DrawGlyphRun)( + _In_opt_ void* clientDrawingContext, + FLOAT baselineOriginX, + FLOAT baselineOriginY, + DWRITE_MEASURING_MODE measuringMode, + _In_ DWRITE_GLYPH_RUN const* glyphRun, + _In_ DWRITE_GLYPH_RUN_DESCRIPTION const* glyphRunDescription, + _In_opt_ IUnknown* clientDrawingEffect + ) PURE; + + /// + /// IDWriteTextLayout::Draw calls this function to instruct the client to draw + /// an underline. + /// + /// The context passed to + /// IDWriteTextLayout::Draw. + /// X-coordinate of the baseline. + /// Y-coordinate of the baseline. + /// Underline logical information. + /// The drawing effect set in + /// IDWriteTextLayout::SetDrawingEffect. + /// + /// Standard HRESULT error code. + /// + /// + /// A single underline can be broken into multiple calls, depending on + /// how the formatting changes attributes. If font sizes/styles change + /// within an underline, the thickness and offset will be averaged + /// weighted according to characters. + /// To get the correct top coordinate of the underline rect, add underline::offset + /// to the baseline's Y. Otherwise the underline will be immediately under the text. + /// The x coordinate will always be passed as the left side, regardless + /// of text directionality. This simplifies drawing and reduces the + /// problem of round-off that could potentially cause gaps or a double + /// stamped alpha blend. To avoid alpha overlap, round the end points + /// to the nearest device pixel. + /// + STDMETHOD(DrawUnderline)( + _In_opt_ void* clientDrawingContext, + FLOAT baselineOriginX, + FLOAT baselineOriginY, + _In_ DWRITE_UNDERLINE const* underline, + _In_opt_ IUnknown* clientDrawingEffect + ) PURE; + + /// + /// IDWriteTextLayout::Draw calls this function to instruct the client to draw + /// a strikethrough. + /// + /// The context passed to + /// IDWriteTextLayout::Draw. + /// X-coordinate of the baseline. + /// Y-coordinate of the baseline. + /// Strikethrough logical information. + /// The drawing effect set in + /// IDWriteTextLayout::SetDrawingEffect. + /// + /// Standard HRESULT error code. + /// + /// + /// A single strikethrough can be broken into multiple calls, depending on + /// how the formatting changes attributes. Strikethrough is not averaged + /// across font sizes/styles changes. + /// To get the correct top coordinate of the strikethrough rect, + /// add strikethrough::offset to the baseline's Y. + /// Like underlines, the x coordinate will always be passed as the left side, + /// regardless of text directionality. + /// + STDMETHOD(DrawStrikethrough)( + _In_opt_ void* clientDrawingContext, + FLOAT baselineOriginX, + FLOAT baselineOriginY, + _In_ DWRITE_STRIKETHROUGH const* strikethrough, + _In_opt_ IUnknown* clientDrawingEffect + ) PURE; + + /// + /// IDWriteTextLayout::Draw calls this application callback when it needs to + /// draw an inline object. + /// + /// The context passed to IDWriteTextLayout::Draw. + /// X-coordinate at the top-left corner of the inline object. + /// Y-coordinate at the top-left corner of the inline object. + /// The object set using IDWriteTextLayout::SetInlineObject. + /// The object should be drawn on its side. + /// The object is in an right-to-left context and should be drawn flipped. + /// The drawing effect set in + /// IDWriteTextLayout::SetDrawingEffect. + /// + /// Standard HRESULT error code. + /// + /// + /// The right-to-left flag is a hint for those cases where it would look + /// strange for the image to be shown normally (like an arrow pointing to + /// right to indicate a submenu). + /// + STDMETHOD(DrawInlineObject)( + _In_opt_ void* clientDrawingContext, + FLOAT originX, + FLOAT originY, + _In_ IDWriteInlineObject* inlineObject, + BOOL isSideways, + BOOL isRightToLeft, + _In_opt_ IUnknown* clientDrawingEffect + ) PURE; +}; + +/// +/// The IDWriteTextLayout interface represents a block of text after it has +/// been fully analyzed and formatted. +/// +/// All coordinates are in device independent pixels (DIPs). +/// +interface DWRITE_DECLARE_INTERFACE("53737037-6d14-410b-9bfe-0b182bb70961") IDWriteTextLayout : public IDWriteTextFormat +{ + /// + /// Set layout maximum width + /// + /// Layout maximum width + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetMaxWidth)( + FLOAT maxWidth + ) PURE; + + /// + /// Set layout maximum height + /// + /// Layout maximum height + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetMaxHeight)( + FLOAT maxHeight + ) PURE; + + /// + /// Set the font collection. + /// + /// The font collection to set + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetFontCollection)( + _In_ IDWriteFontCollection* fontCollection, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set null-terminated font family name. + /// + /// Font family name + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetFontFamilyName)( + _In_z_ WCHAR const* fontFamilyName, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set font weight. + /// + /// Font weight + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetFontWeight)( + DWRITE_FONT_WEIGHT fontWeight, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set font style. + /// + /// Font style + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetFontStyle)( + DWRITE_FONT_STYLE fontStyle, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set font stretch. + /// + /// font stretch + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetFontStretch)( + DWRITE_FONT_STRETCH fontStretch, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set font em height. + /// + /// Font em height + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetFontSize)( + FLOAT fontSize, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set underline. + /// + /// The Boolean flag indicates whether underline takes place + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetUnderline)( + BOOL hasUnderline, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set strikethrough. + /// + /// The Boolean flag indicates whether strikethrough takes place + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetStrikethrough)( + BOOL hasStrikethrough, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set application-defined drawing effect. + /// + /// Pointer to an application-defined drawing effect. + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + /// + /// This drawing effect is associated with the specified range and will be passed back + /// to the application via the callback when the range is drawn at drawing time. + /// + STDMETHOD(SetDrawingEffect)( + IUnknown* drawingEffect, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set inline object. + /// + /// Pointer to an application-implemented inline object. + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + /// + /// This inline object applies to the specified range and will be passed back + /// to the application via the DrawInlineObject callback when the range is drawn. + /// Any text in that range will be suppressed. + /// + STDMETHOD(SetInlineObject)( + _In_ IDWriteInlineObject* inlineObject, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set font typography features. + /// + /// Pointer to font typography setting. + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetTypography)( + _In_ IDWriteTypography* typography, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Set locale name. + /// + /// Locale name + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetLocaleName)( + _In_z_ WCHAR const* localeName, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Get layout maximum width + /// + STDMETHOD_(FLOAT, GetMaxWidth)() PURE; + + /// + /// Get layout maximum height + /// + STDMETHOD_(FLOAT, GetMaxHeight)() PURE; + + /// + /// Get the font collection where the current position is at. + /// + /// The current text position. + /// The current font collection + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontCollection)( + UINT32 currentPosition, + _COM_Outptr_ IDWriteFontCollection** fontCollection, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the length of the font family name where the current position is at. + /// + /// The current text position. + /// Size of the character array in character count not including the terminated NULL character. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFamilyNameLength)( + UINT32 currentPosition, + _Out_ UINT32* nameLength, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Copy the font family name where the current position is at. + /// + /// The current text position. + /// Character array that receives the current font family name + /// Size of the character array in character count including the terminated NULL character. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFamilyName)( + UINT32 currentPosition, + _Out_writes_z_(nameSize) WCHAR* fontFamilyName, + UINT32 nameSize, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the font weight where the current position is at. + /// + /// The current text position. + /// The current font weight + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontWeight)( + UINT32 currentPosition, + _Out_ DWRITE_FONT_WEIGHT* fontWeight, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the font style where the current position is at. + /// + /// The current text position. + /// The current font style + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontStyle)( + UINT32 currentPosition, + _Out_ DWRITE_FONT_STYLE* fontStyle, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the font stretch where the current position is at. + /// + /// The current text position. + /// The current font stretch + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontStretch)( + UINT32 currentPosition, + _Out_ DWRITE_FONT_STRETCH* fontStretch, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the font em height where the current position is at. + /// + /// The current text position. + /// The current font em height + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontSize)( + UINT32 currentPosition, + _Out_ FLOAT* fontSize, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the underline presence where the current position is at. + /// + /// The current text position. + /// The Boolean flag indicates whether text is underlined. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetUnderline)( + UINT32 currentPosition, + _Out_ BOOL* hasUnderline, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the strikethrough presence where the current position is at. + /// + /// The current text position. + /// The Boolean flag indicates whether text has strikethrough. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetStrikethrough)( + UINT32 currentPosition, + _Out_ BOOL* hasStrikethrough, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the application-defined drawing effect where the current position is at. + /// + /// The current text position. + /// The current application-defined drawing effect. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetDrawingEffect)( + UINT32 currentPosition, + _COM_Outptr_ IUnknown** drawingEffect, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the inline object at the given position. + /// + /// The given text position. + /// The inline object. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetInlineObject)( + UINT32 currentPosition, + _COM_Outptr_ IDWriteInlineObject** inlineObject, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the typography setting where the current position is at. + /// + /// The current text position. + /// The current typography setting. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetTypography)( + UINT32 currentPosition, + _COM_Outptr_ IDWriteTypography** typography, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the length of the locale name where the current position is at. + /// + /// The current text position. + /// Size of the character array in character count not including the terminated NULL character. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLocaleNameLength)( + UINT32 currentPosition, + _Out_ UINT32* nameLength, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Get the locale name where the current position is at. + /// + /// The current text position. + /// Character array that receives the current locale name + /// Size of the character array in character count including the terminated NULL character. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLocaleName)( + UINT32 currentPosition, + _Out_writes_z_(nameSize) WCHAR* localeName, + UINT32 nameSize, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Initiate drawing of the text. + /// + /// An application defined value + /// included in rendering callbacks. + /// The set of application-defined callbacks that do + /// the actual rendering. + /// X-coordinate of the layout's left side. + /// Y-coordinate of the layout's top side. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(Draw)( + _In_opt_ void* clientDrawingContext, + _In_ IDWriteTextRenderer* renderer, + FLOAT originX, + FLOAT originY + ) PURE; + + /// + /// GetLineMetrics returns properties of each line. + /// + /// The array to fill with line information. + /// The maximum size of the lineMetrics array. + /// The actual size of the lineMetrics + /// array that is needed. + /// + /// Standard HRESULT error code. + /// + /// + /// If maxLineCount is not large enough E_NOT_SUFFICIENT_BUFFER, + /// which is equivalent to HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), + /// is returned and *actualLineCount is set to the number of lines + /// needed. + /// + STDMETHOD(GetLineMetrics)( + _Out_writes_opt_(maxLineCount) DWRITE_LINE_METRICS* lineMetrics, + UINT32 maxLineCount, + _Out_ UINT32* actualLineCount + ) PURE; + + /// + /// GetMetrics retrieves overall metrics for the formatted string. + /// + /// The returned metrics. + /// + /// Standard HRESULT error code. + /// + /// + /// Drawing effects like underline and strikethrough do not contribute + /// to the text size, which is essentially the sum of advance widths and + /// line heights. Additionally, visible swashes and other graphic + /// adornments may extend outside the returned width and height. + /// + STDMETHOD(GetMetrics)( + _Out_ DWRITE_TEXT_METRICS* textMetrics + ) PURE; + + /// + /// GetOverhangMetrics returns the overhangs (in DIPs) of the layout and all + /// objects contained in it, including text glyphs and inline objects. + /// + /// Overshoots of visible extents (in DIPs) outside the layout. + /// + /// Standard HRESULT error code. + /// + /// + /// Any underline and strikethrough do not contribute to the black box + /// determination, since these are actually drawn by the renderer, which + /// is allowed to draw them in any variety of styles. + /// + STDMETHOD(GetOverhangMetrics)( + _Out_ DWRITE_OVERHANG_METRICS* overhangs + ) PURE; + + /// + /// Retrieve logical properties and measurement of each cluster. + /// + /// The array to fill with cluster information. + /// The maximum size of the clusterMetrics array. + /// The actual size of the clusterMetrics array that is needed. + /// + /// Standard HRESULT error code. + /// + /// + /// If maxClusterCount is not large enough E_NOT_SUFFICIENT_BUFFER, + /// which is equivalent to HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), + /// is returned and *actualClusterCount is set to the number of clusters + /// needed. + /// + STDMETHOD(GetClusterMetrics)( + _Out_writes_opt_(maxClusterCount) DWRITE_CLUSTER_METRICS* clusterMetrics, + UINT32 maxClusterCount, + _Out_ UINT32* actualClusterCount + ) PURE; + + /// + /// Determines the minimum possible width the layout can be set to without + /// emergency breaking between the characters of whole words. + /// + /// Minimum width. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(DetermineMinWidth)( + _Out_ FLOAT* minWidth + ) PURE; + + /// + /// Given a coordinate (in DIPs) relative to the top-left of the layout box, + /// this returns the corresponding hit-test metrics of the text string where + /// the hit-test has occurred. This is useful for mapping mouse clicks to caret + /// positions. When the given coordinate is outside the text string, the function + /// sets the output value *isInside to false but returns the nearest character + /// position. + /// + /// X coordinate to hit-test, relative to the top-left location of the layout box. + /// Y coordinate to hit-test, relative to the top-left location of the layout box. + /// Output flag indicating whether the hit-test location is at the leading or the trailing + /// side of the character. When the output *isInside value is set to false, this value is set according to the output + /// *position value to represent the edge closest to the hit-test location. + /// Output flag indicating whether the hit-test location is inside the text string. + /// When false, the position nearest the text's edge is returned. + /// Output geometry fully enclosing the hit-test location. When the output *isInside value + /// is set to false, this structure represents the geometry enclosing the edge closest to the hit-test location. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(HitTestPoint)( + FLOAT pointX, + FLOAT pointY, + _Out_ BOOL* isTrailingHit, + _Out_ BOOL* isInside, + _Out_ DWRITE_HIT_TEST_METRICS* hitTestMetrics + ) PURE; + + /// + /// Given a text position and whether the caret is on the leading or trailing + /// edge of that position, this returns the corresponding coordinate (in DIPs) + /// relative to the top-left of the layout box. This is most useful for drawing + /// the caret's current position, but it could also be used to anchor an IME to the + /// typed text or attach a floating menu near the point of interest. It may also be + /// used to programmatically obtain the geometry of a particular text position + /// for UI automation. + /// + /// Text position to get the coordinate of. + /// Flag indicating whether the location is of the leading or the trailing side of the specified text position. + /// Output caret X, relative to the top-left of the layout box. + /// Output caret Y, relative to the top-left of the layout box. + /// Output geometry fully enclosing the specified text position. + /// + /// Standard HRESULT error code. + /// + /// + /// When drawing a caret at the returned X,Y, it should be centered on X + /// and drawn from the Y coordinate down. The height will be the size of the + /// hit-tested text (which can vary in size within a line). + /// Reading direction also affects which side of the character the caret is drawn. + /// However, the returned X coordinate will be correct for either case. + /// You can get a text length back that is larger than a single character. + /// This happens for complex scripts when multiple characters form a single cluster, + /// when diacritics join their base character, or when you test a surrogate pair. + /// + STDMETHOD(HitTestTextPosition)( + UINT32 textPosition, + BOOL isTrailingHit, + _Out_ FLOAT* pointX, + _Out_ FLOAT* pointY, + _Out_ DWRITE_HIT_TEST_METRICS* hitTestMetrics + ) PURE; + + /// + /// The application calls this function to get a set of hit-test metrics + /// corresponding to a range of text positions. The main usage for this + /// is to draw highlighted selection of the text string. + /// + /// The function returns E_NOT_SUFFICIENT_BUFFER, which is equivalent to + /// HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), when the buffer size of + /// hitTestMetrics is too small to hold all the regions calculated by the + /// function. In such situation, the function sets the output value + /// *actualHitTestMetricsCount to the number of geometries calculated. + /// The application is responsible to allocate a new buffer of greater + /// size and call the function again. + /// + /// A good value to use as an initial value for maxHitTestMetricsCount may + /// be calculated from the following equation: + /// maxHitTestMetricsCount = lineCount * maxBidiReorderingDepth + /// + /// where lineCount is obtained from the value of the output argument + /// *actualLineCount from the function IDWriteTextLayout::GetLineMetrics, + /// and the maxBidiReorderingDepth value from the DWRITE_TEXT_METRICS + /// structure of the output argument *textMetrics from the function + /// IDWriteFactory::CreateTextLayout. + /// + /// First text position of the specified range. + /// Number of positions of the specified range. + /// Offset of the X origin (left of the layout box) which is added to each of the hit-test metrics returned. + /// Offset of the Y origin (top of the layout box) which is added to each of the hit-test metrics returned. + /// Pointer to a buffer of the output geometry fully enclosing the specified position range. + /// Maximum number of distinct metrics it could hold in its buffer memory. + /// Actual number of metrics returned or needed. + /// + /// Standard HRESULT error code. + /// + /// + /// There are no gaps in the returned metrics. While there could be visual gaps, + /// depending on bidi ordering, each range is contiguous and reports all the text, + /// including any hidden characters and trimmed text. + /// The height of each returned range will be the same within each line, regardless + /// of how the font sizes vary. + /// + STDMETHOD(HitTestTextRange)( + UINT32 textPosition, + UINT32 textLength, + FLOAT originX, + FLOAT originY, + _Out_writes_opt_(maxHitTestMetricsCount) DWRITE_HIT_TEST_METRICS* hitTestMetrics, + UINT32 maxHitTestMetricsCount, + _Out_ UINT32* actualHitTestMetricsCount + ) PURE; + + using IDWriteTextFormat::GetFontCollection; + using IDWriteTextFormat::GetFontFamilyNameLength; + using IDWriteTextFormat::GetFontFamilyName; + using IDWriteTextFormat::GetFontWeight; + using IDWriteTextFormat::GetFontStyle; + using IDWriteTextFormat::GetFontStretch; + using IDWriteTextFormat::GetFontSize; + using IDWriteTextFormat::GetLocaleNameLength; + using IDWriteTextFormat::GetLocaleName; +}; + + +/// +/// Encapsulates a 32-bit device independent bitmap and device context, which can be used for rendering glyphs. +/// +interface DWRITE_DECLARE_INTERFACE("5e5a32a3-8dff-4773-9ff6-0696eab77267") IDWriteBitmapRenderTarget : public IUnknown +{ + /// + /// Draws a run of glyphs to the bitmap. + /// + /// Horizontal position of the baseline origin, in DIPs, relative to the upper-left corner of the DIB. + /// Vertical position of the baseline origin, in DIPs, relative to the upper-left corner of the DIB. + /// Specifies measuring mode for glyphs in the run. + /// Renderer implementations may choose different rendering modes for different measuring modes, for example + /// DWRITE_RENDERING_MODE_CLEARTYPE_NATURAL for DWRITE_MEASURING_MODE_NATURAL, + /// DWRITE_RENDERING_MODE_CLEARTYPE_GDI_CLASSIC for DWRITE_MEASURING_MODE_GDI_CLASSIC, and + /// DWRITE_RENDERING_MODE_CLEARTYPE_GDI_NATURAL for DWRITE_MEASURING_MODE_GDI_NATURAL. + /// + /// Structure containing the properties of the glyph run. + /// Object that controls rendering behavior. + /// Specifies the foreground color of the text. + /// Optional rectangle that receives the bounding box (in pixels not DIPs) of all the pixels affected by + /// drawing the glyph run. The black box rectangle may extend beyond the dimensions of the bitmap. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(DrawGlyphRun)( + FLOAT baselineOriginX, + FLOAT baselineOriginY, + DWRITE_MEASURING_MODE measuringMode, + _In_ DWRITE_GLYPH_RUN const* glyphRun, + _In_ IDWriteRenderingParams* renderingParams, + COLORREF textColor, + _Out_opt_ RECT* blackBoxRect = NULL + ) PURE; + + /// + /// Gets a handle to the memory device context. + /// + /// + /// Returns the device context handle. + /// + /// + /// An application can use the device context to draw using GDI functions. An application can obtain the bitmap handle + /// (HBITMAP) by calling GetCurrentObject. An application that wants information about the underlying bitmap, including + /// a pointer to the pixel data, can call GetObject to fill in a DIBSECTION structure. The bitmap is always a 32-bit + /// top-down DIB. + /// + STDMETHOD_(HDC, GetMemoryDC)() PURE; + + /// + /// Gets the number of bitmap pixels per DIP. A DIP (device-independent pixel) is 1/96 inch so this value is the number + /// if pixels per inch divided by 96. + /// + /// + /// Returns the number of bitmap pixels per DIP. + /// + STDMETHOD_(FLOAT, GetPixelsPerDip)() PURE; + + /// + /// Sets the number of bitmap pixels per DIP. A DIP (device-independent pixel) is 1/96 inch so this value is the number + /// if pixels per inch divided by 96. + /// + /// Specifies the number of pixels per DIP. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetPixelsPerDip)( + FLOAT pixelsPerDip + ) PURE; + + /// + /// Gets the transform that maps abstract coordinate to DIPs. By default this is the identity + /// transform. Note that this is unrelated to the world transform of the underlying device + /// context. + /// + /// Receives the transform. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetCurrentTransform)( + _Out_ DWRITE_MATRIX* transform + ) PURE; + + /// + /// Sets the transform that maps abstract coordinate to DIPs. This does not affect the world + /// transform of the underlying device context. + /// + /// Specifies the new transform. This parameter can be NULL, in which + /// case the identity transform is implied. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetCurrentTransform)( + _In_opt_ DWRITE_MATRIX const* transform + ) PURE; + + /// + /// Gets the dimensions of the bitmap. + /// + /// Receives the size of the bitmap in pixels. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetSize)( + _Out_ SIZE* size + ) PURE; + + /// + /// Resizes the bitmap. + /// + /// New bitmap width, in pixels. + /// New bitmap height, in pixels. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(Resize)( + UINT32 width, + UINT32 height + ) PURE; +}; + +/// +/// The GDI interop interface provides interoperability with GDI. +/// +interface DWRITE_DECLARE_INTERFACE("1edd9491-9853-4299-898f-6432983b6f3a") IDWriteGdiInterop : public IUnknown +{ + /// + /// Creates a font object that matches the properties specified by the LOGFONT structure + /// in the system font collection (GetSystemFontCollection). + /// + /// Structure containing a GDI-compatible font description. + /// Receives a newly created font object if successful, or NULL in case of error. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFromLOGFONT)( + _In_ LOGFONTW const* logFont, + _COM_Outptr_ IDWriteFont** font + ) PURE; + + /// + /// Initializes a LOGFONT structure based on the GDI-compatible properties of the specified font. + /// + /// Specifies a font. + /// Structure that receives a GDI-compatible font description. + /// Contains TRUE if the specified font object is part of the system font collection + /// or FALSE otherwise. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(ConvertFontToLOGFONT)( + _In_ IDWriteFont* font, + _Out_ LOGFONTW* logFont, + _Out_ BOOL* isSystemFont + ) PURE; + + /// + /// Initializes a LOGFONT structure based on the GDI-compatible properties of the specified font. + /// + /// Specifies a font face. + /// Structure that receives a GDI-compatible font description. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(ConvertFontFaceToLOGFONT)( + _In_ IDWriteFontFace* font, + _Out_ LOGFONTW* logFont + ) PURE; + + /// + /// Creates a font face object that corresponds to the currently selected HFONT. + /// + /// Handle to a device context into which a font has been selected. It is assumed that the client + /// has already performed font mapping and that the font selected into the DC is the actual font that would be used + /// for rendering glyphs. + /// Contains the newly created font face object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFaceFromHdc)( + HDC hdc, + _COM_Outptr_ IDWriteFontFace** fontFace + ) PURE; + + /// + /// Creates an object that encapsulates a bitmap and memory DC which can be used for rendering glyphs. + /// + /// Optional device context used to create a compatible memory DC. + /// Width of the bitmap. + /// Height of the bitmap. + /// Receives a pointer to the newly created render target. + STDMETHOD(CreateBitmapRenderTarget)( + _In_opt_ HDC hdc, + UINT32 width, + UINT32 height, + _COM_Outptr_ IDWriteBitmapRenderTarget** renderTarget + ) PURE; +}; + +/// +/// The DWRITE_TEXTURE_TYPE enumeration identifies a type of alpha texture. An alpha texture is a bitmap of alpha values, each +/// representing the darkness (i.e., opacity) of a pixel or subpixel. +/// +enum DWRITE_TEXTURE_TYPE +{ + /// + /// Specifies an alpha texture for aliased text rendering (i.e., bi-level, where each pixel is either fully opaque or fully transparent), + /// with one byte per pixel. + /// + DWRITE_TEXTURE_ALIASED_1x1, + + /// + /// Specifies an alpha texture for ClearType text rendering, with three bytes per pixel in the horizontal dimension and + /// one byte per pixel in the vertical dimension. + /// + DWRITE_TEXTURE_CLEARTYPE_3x1 +}; + +/// +/// Maximum alpha value in a texture returned by IDWriteGlyphRunAnalysis::CreateAlphaTexture. +/// +#define DWRITE_ALPHA_MAX 255 + +/// +/// Interface that encapsulates information used to render a glyph run. +/// +interface DWRITE_DECLARE_INTERFACE("7d97dbf7-e085-42d4-81e3-6a883bded118") IDWriteGlyphRunAnalysis : public IUnknown +{ + /// + /// Gets the bounding rectangle of the physical pixels affected by the glyph run. + /// + /// Specifies the type of texture requested. If a bi-level texture is requested, the + /// bounding rectangle includes only bi-level glyphs. Otherwise, the bounding rectangle includes only anti-aliased + /// glyphs. + /// Receives the bounding rectangle, or an empty rectangle if there are no glyphs + /// if the specified type. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetAlphaTextureBounds)( + DWRITE_TEXTURE_TYPE textureType, + _Out_ RECT* textureBounds + ) PURE; + + /// + /// Creates an alpha texture of the specified type. + /// + /// Specifies the type of texture requested. If a bi-level texture is requested, the + /// texture contains only bi-level glyphs. Otherwise, the texture contains only anti-aliased glyphs. + /// Specifies the bounding rectangle of the texture, which can be different than + /// the bounding rectangle returned by GetAlphaTextureBounds. + /// Receives the array of alpha values. + /// Size of the alphaValues array. The minimum size depends on the dimensions of the + /// rectangle and the type of texture requested. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateAlphaTexture)( + DWRITE_TEXTURE_TYPE textureType, + _In_ RECT const* textureBounds, + _Out_writes_bytes_(bufferSize) BYTE* alphaValues, + UINT32 bufferSize + ) PURE; + + /// + /// Gets properties required for ClearType blending. + /// + /// Rendering parameters object. In most cases, the values returned in the output + /// parameters are based on the properties of this object. The exception is if a GDI-compatible rendering mode + /// is specified. + /// Receives the gamma value to use for gamma correction. + /// Receives the enhanced contrast value. + /// Receives the ClearType level. + STDMETHOD(GetAlphaBlendParams)( + _In_ IDWriteRenderingParams* renderingParams, + _Out_ FLOAT* blendGamma, + _Out_ FLOAT* blendEnhancedContrast, + _Out_ FLOAT* blendClearTypeLevel + ) PURE; +}; + +/// +/// The root factory interface for all DWrite objects. +/// +interface DWRITE_DECLARE_INTERFACE("b859ee5a-d838-4b5b-a2e8-1adc7d93db48") IDWriteFactory : public IUnknown +{ + /// + /// Gets a font collection representing the set of installed fonts. + /// + /// Receives a pointer to the system font collection object, or NULL in case of failure. + /// If this parameter is nonzero, the function performs an immediate check for changes to the set of + /// installed fonts. If this parameter is FALSE, the function will still detect changes if the font cache service is running, but + /// there may be some latency. For example, an application might specify TRUE if it has itself just installed a font and wants to + /// be sure the font collection contains that font. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetSystemFontCollection)( + _COM_Outptr_ IDWriteFontCollection** fontCollection, + BOOL checkForUpdates = FALSE + ) PURE; + + /// + /// Creates a font collection using a custom font collection loader. + /// + /// Application-defined font collection loader, which must have been previously + /// registered using RegisterFontCollectionLoader. + /// Key used by the loader to identify a collection of font files. + /// Size in bytes of the collection key. + /// Receives a pointer to the system font collection object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateCustomFontCollection)( + _In_ IDWriteFontCollectionLoader* collectionLoader, + _In_reads_bytes_(collectionKeySize) void const* collectionKey, + UINT32 collectionKeySize, + _COM_Outptr_ IDWriteFontCollection** fontCollection + ) PURE; + + /// + /// Registers a custom font collection loader with the factory object. + /// + /// Application-defined font collection loader. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(RegisterFontCollectionLoader)( + _In_ IDWriteFontCollectionLoader* fontCollectionLoader + ) PURE; + + /// + /// Unregisters a custom font collection loader that was previously registered using RegisterFontCollectionLoader. + /// + /// Application-defined font collection loader. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(UnregisterFontCollectionLoader)( + _In_ IDWriteFontCollectionLoader* fontCollectionLoader + ) PURE; + + /// + /// CreateFontFileReference creates a font file reference object from a local font file. + /// + /// Absolute file path. Subsequent operations on the constructed object may fail + /// if the user provided filePath doesn't correspond to a valid file on the disk. + /// Last modified time of the input file path. If the parameter is omitted, + /// the function will access the font file to obtain its last write time, so the clients are encouraged to specify this value + /// to avoid extra disk access. Subsequent operations on the constructed object may fail + /// if the user provided lastWriteTime doesn't match the file on the disk. + /// Contains newly created font file reference object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFileReference)( + _In_z_ WCHAR const* filePath, + _In_opt_ FILETIME const* lastWriteTime, + _COM_Outptr_ IDWriteFontFile** fontFile + ) PURE; + + /// + /// CreateCustomFontFileReference creates a reference to an application specific font file resource. + /// This function enables an application or a document to use a font without having to install it on the system. + /// The fontFileReferenceKey has to be unique only in the scope of the fontFileLoader used in this call. + /// + /// Font file reference key that uniquely identifies the font file resource + /// during the lifetime of fontFileLoader. + /// Size of font file reference key in bytes. + /// Font file loader that will be used by the font system to load data from the file identified by + /// fontFileReferenceKey. + /// Contains the newly created font file object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + /// + /// This function is provided for cases when an application or a document needs to use a font + /// without having to install it on the system. fontFileReferenceKey has to be unique only in the scope + /// of the fontFileLoader used in this call. + /// + STDMETHOD(CreateCustomFontFileReference)( + _In_reads_bytes_(fontFileReferenceKeySize) void const* fontFileReferenceKey, + UINT32 fontFileReferenceKeySize, + _In_ IDWriteFontFileLoader* fontFileLoader, + _COM_Outptr_ IDWriteFontFile** fontFile + ) PURE; + + /// + /// Creates a font face object. + /// + /// The file format of the font face. + /// The number of font files required to represent the font face. + /// Font files representing the font face. Since IDWriteFontFace maintains its own references + /// to the input font file objects, it's OK to release them after this call. + /// The zero based index of a font face in cases when the font files contain a collection of font faces. + /// If the font files contain a single face, this value should be zero. + /// Font face simulation flags for algorithmic emboldening and italicization. + /// Contains the newly created font face object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFace)( + DWRITE_FONT_FACE_TYPE fontFaceType, + UINT32 numberOfFiles, + _In_reads_(numberOfFiles) IDWriteFontFile* const* fontFiles, + UINT32 faceIndex, + DWRITE_FONT_SIMULATIONS fontFaceSimulationFlags, + _COM_Outptr_ IDWriteFontFace** fontFace + ) PURE; + + /// + /// Creates a rendering parameters object with default settings for the primary monitor. + /// + /// Holds the newly created rendering parameters object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateRenderingParams)( + _COM_Outptr_ IDWriteRenderingParams** renderingParams + ) PURE; + + /// + /// Creates a rendering parameters object with default settings for the specified monitor. + /// + /// The monitor to read the default values from. + /// Holds the newly created rendering parameters object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateMonitorRenderingParams)( + HMONITOR monitor, + _COM_Outptr_ IDWriteRenderingParams** renderingParams + ) PURE; + + /// + /// Creates a rendering parameters object with the specified properties. + /// + /// The gamma value used for gamma correction, which must be greater than zero and cannot exceed 256. + /// The amount of contrast enhancement, zero or greater. + /// The degree of ClearType level, from 0.0f (no ClearType) to 1.0f (full ClearType). + /// The geometry of a device pixel. + /// Method of rendering glyphs. In most cases, this should be DWRITE_RENDERING_MODE_DEFAULT to automatically use an appropriate mode. + /// Holds the newly created rendering parameters object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateCustomRenderingParams)( + FLOAT gamma, + FLOAT enhancedContrast, + FLOAT clearTypeLevel, + DWRITE_PIXEL_GEOMETRY pixelGeometry, + DWRITE_RENDERING_MODE renderingMode, + _COM_Outptr_ IDWriteRenderingParams** renderingParams + ) PURE; + + /// + /// Registers a font file loader with DirectWrite. + /// + /// Pointer to the implementation of the IDWriteFontFileLoader for a particular file resource type. + /// + /// Standard HRESULT error code. + /// + /// + /// This function registers a font file loader with DirectWrite. + /// Font file loader interface handles loading font file resources of a particular type from a key. + /// The font file loader interface is recommended to be implemented by a singleton object. + /// A given instance can only be registered once. + /// Succeeding attempts will return an error that it has already been registered. + /// IMPORTANT: font file loader implementations must not register themselves with DirectWrite + /// inside their constructors and must not unregister themselves in their destructors, because + /// registration and unregistration operations increment and decrement the object reference count respectively. + /// Instead, registration and unregistration of font file loaders with DirectWrite should be performed + /// outside of the font file loader implementation as a separate step. + /// + STDMETHOD(RegisterFontFileLoader)( + _In_ IDWriteFontFileLoader* fontFileLoader + ) PURE; + + /// + /// Unregisters a font file loader that was previously registered with the DirectWrite font system using RegisterFontFileLoader. + /// + /// Pointer to the file loader that was previously registered with the DirectWrite font system using RegisterFontFileLoader. + /// + /// This function will succeed if the user loader is requested to be removed. + /// It will fail if the pointer to the file loader identifies a standard DirectWrite loader, + /// or a loader that is never registered or has already been unregistered. + /// + /// + /// This function unregisters font file loader callbacks with the DirectWrite font system. + /// The font file loader interface is recommended to be implemented by a singleton object. + /// IMPORTANT: font file loader implementations must not register themselves with DirectWrite + /// inside their constructors and must not unregister themselves in their destructors, because + /// registration and unregistration operations increment and decrement the object reference count respectively. + /// Instead, registration and unregistration of font file loaders with DirectWrite should be performed + /// outside of the font file loader implementation as a separate step. + /// + STDMETHOD(UnregisterFontFileLoader)( + _In_ IDWriteFontFileLoader* fontFileLoader + ) PURE; + + /// + /// Create a text format object used for text layout. + /// + /// Name of the font family + /// Font collection. NULL indicates the system font collection. + /// Font weight + /// Font style + /// Font stretch + /// Logical size of the font in DIP units. A DIP ("device-independent pixel") equals 1/96 inch. + /// Locale name + /// Contains newly created text format object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + /// + /// If fontCollection is nullptr, the system font collection is used, grouped by typographic family name + /// (DWRITE_FONT_FAMILY_MODEL_WEIGHT_STRETCH_STYLE) without downloadable fonts. + /// + STDMETHOD(CreateTextFormat)( + _In_z_ WCHAR const* fontFamilyName, + _In_opt_ IDWriteFontCollection* fontCollection, + DWRITE_FONT_WEIGHT fontWeight, + DWRITE_FONT_STYLE fontStyle, + DWRITE_FONT_STRETCH fontStretch, + FLOAT fontSize, + _In_z_ WCHAR const* localeName, + _COM_Outptr_ IDWriteTextFormat** textFormat + ) PURE; + + /// + /// Create a typography object used in conjunction with text format for text layout. + /// + /// Contains newly created typography object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateTypography)( + _COM_Outptr_ IDWriteTypography** typography + ) PURE; + + /// + /// Create an object used for interoperability with GDI. + /// + /// Receives the GDI interop object if successful, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetGdiInterop)( + _COM_Outptr_ IDWriteGdiInterop** gdiInterop + ) PURE; + + /// + /// CreateTextLayout takes a string, format, and associated constraints + /// and produces an object representing the fully analyzed + /// and formatted result. + /// + /// The string to layout. + /// The length of the string. + /// The format to apply to the string. + /// Width of the layout box. + /// Height of the layout box. + /// The resultant object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateTextLayout)( + _In_reads_(stringLength) WCHAR const* string, + UINT32 stringLength, + _In_ IDWriteTextFormat* textFormat, + FLOAT maxWidth, + FLOAT maxHeight, + _COM_Outptr_ IDWriteTextLayout** textLayout + ) PURE; + + /// + /// CreateGdiCompatibleTextLayout takes a string, format, and associated constraints + /// and produces and object representing the result formatted for a particular display resolution + /// and measuring mode. The resulting text layout should only be used for the intended resolution, + /// and for cases where text scalability is desired, CreateTextLayout should be used instead. + /// + /// The string to layout. + /// The length of the string. + /// The format to apply to the string. + /// Width of the layout box. + /// Height of the layout box. + /// Number of physical pixels per DIP. For example, if rendering onto a 96 DPI device then pixelsPerDip + /// is 1. If rendering onto a 120 DPI device then pixelsPerDip is 120/96. + /// Optional transform applied to the glyphs and their positions. This transform is applied after the + /// scaling specified the font size and pixelsPerDip. + /// + /// When set to FALSE, instructs the text layout to use the same metrics as GDI aliased text. + /// When set to TRUE, instructs the text layout to use the same metrics as text measured by GDI using a font + /// created with CLEARTYPE_NATURAL_QUALITY. + /// + /// The resultant object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateGdiCompatibleTextLayout)( + _In_reads_(stringLength) WCHAR const* string, + UINT32 stringLength, + _In_ IDWriteTextFormat* textFormat, + FLOAT layoutWidth, + FLOAT layoutHeight, + FLOAT pixelsPerDip, + _In_opt_ DWRITE_MATRIX const* transform, + BOOL useGdiNatural, + _COM_Outptr_ IDWriteTextLayout** textLayout + ) PURE; + + /// + /// The application may call this function to create an inline object for trimming, using an ellipsis as the omission sign. + /// The ellipsis will be created using the current settings of the format, including base font, style, and any effects. + /// Alternate omission signs can be created by the application by implementing IDWriteInlineObject. + /// + /// Text format used as a template for the omission sign. + /// Created omission sign. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateEllipsisTrimmingSign)( + _In_ IDWriteTextFormat* textFormat, + _COM_Outptr_ IDWriteInlineObject** trimmingSign + ) PURE; + + /// + /// Return an interface to perform text analysis with. + /// + /// The resultant object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateTextAnalyzer)( + _COM_Outptr_ IDWriteTextAnalyzer** textAnalyzer + ) PURE; + + /// + /// Creates a number substitution object using a locale name, + /// substitution method, and whether to ignore user overrides (uses NLS + /// defaults for the given culture instead). + /// + /// Method of number substitution to use. + /// Which locale to obtain the digits from. + /// Ignore the user's settings and use the locale defaults + /// Receives a pointer to the newly created object. + STDMETHOD(CreateNumberSubstitution)( + _In_ DWRITE_NUMBER_SUBSTITUTION_METHOD substitutionMethod, + _In_z_ WCHAR const* localeName, + _In_ BOOL ignoreUserOverride, + _COM_Outptr_ IDWriteNumberSubstitution** numberSubstitution + ) PURE; + + /// + /// Creates a glyph run analysis object, which encapsulates information + /// used to render a glyph run. + /// + /// Structure specifying the properties of the glyph run. + /// Number of physical pixels per DIP. For example, if rendering onto a 96 DPI bitmap then pixelsPerDip + /// is 1. If rendering onto a 120 DPI bitmap then pixelsPerDip is 120/96. + /// Optional transform applied to the glyphs and their positions. This transform is applied after the + /// scaling specified by the emSize and pixelsPerDip. + /// Specifies the rendering mode, which must be one of the raster rendering modes (i.e., not default + /// and not outline). + /// Specifies the method to measure glyphs. + /// Horizontal position of the baseline origin, in DIPs. + /// Vertical position of the baseline origin, in DIPs. + /// Receives a pointer to the newly created object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateGlyphRunAnalysis)( + _In_ DWRITE_GLYPH_RUN const* glyphRun, + FLOAT pixelsPerDip, + _In_opt_ DWRITE_MATRIX const* transform, + DWRITE_RENDERING_MODE renderingMode, + DWRITE_MEASURING_MODE measuringMode, + FLOAT baselineOriginX, + FLOAT baselineOriginY, + _COM_Outptr_ IDWriteGlyphRunAnalysis** glyphRunAnalysis + ) PURE; + +}; // interface IDWriteFactory + + +/// +/// Creates a DirectWrite factory object that is used for subsequent creation of individual DirectWrite objects. +/// +/// Identifies whether the factory object will be shared or isolated. +/// Identifies the DirectWrite factory interface, such as __uuidof(IDWriteFactory). +/// Receives the DirectWrite factory object. +/// +/// Standard HRESULT error code. +/// +/// +/// Obtains DirectWrite factory object that is used for subsequent creation of individual DirectWrite classes. +/// DirectWrite factory contains internal state such as font loader registration and cached font data. +/// In most cases it is recommended to use the shared factory object, because it allows multiple components +/// that use DirectWrite to share internal DirectWrite state and reduce memory usage. +/// However, there are cases when it is desirable to reduce the impact of a component, +/// such as a plug-in from an untrusted source, on the rest of the process by sandboxing and isolating it +/// from the rest of the process components. In such cases, it is recommended to use an isolated factory for the sandboxed +/// component. +/// +EXTERN_C HRESULT DWRITE_EXPORT DWriteCreateFactory( + _In_ DWRITE_FACTORY_TYPE factoryType, + _In_ REFIID iid, + _COM_Outptr_ IUnknown **factory + ) WIN_NOEXCEPT; + +// Macros used to define DirectWrite error codes. +#define FACILITY_DWRITE 0x898 +#define DWRITE_ERR_BASE 0x5000 +#define MAKE_DWRITE_HR(severity, code) MAKE_HRESULT(severity, FACILITY_DWRITE, (DWRITE_ERR_BASE + code)) +#define MAKE_DWRITE_HR_ERR(code) MAKE_DWRITE_HR(SEVERITY_ERROR, code) + +// DWrite errors have moved to winerror.h + + +#endif /* DWRITE_H_INCLUDED */ diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwrite_1.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwrite_1.h new file mode 100644 index 0000000000000000000000000000000000000000..727b009a38d2e771916e7b5fb02b6a706b3658c4 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwrite_1.h @@ -0,0 +1,1926 @@ +//+-------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Abstract: +// DirectX Typography Services public API definitions. +// +//---------------------------------------------------------------------------- + +#ifndef DWRITE_1_H_INCLUDED +#define DWRITE_1_H_INCLUDED + +#pragma once + +#include + + + +/// +/// The overall kind of family. +/// +enum DWRITE_PANOSE_FAMILY +{ + DWRITE_PANOSE_FAMILY_ANY = 0, + DWRITE_PANOSE_FAMILY_NO_FIT = 1, + DWRITE_PANOSE_FAMILY_TEXT_DISPLAY = 2, + DWRITE_PANOSE_FAMILY_SCRIPT = 3, // or hand written + DWRITE_PANOSE_FAMILY_DECORATIVE = 4, + DWRITE_PANOSE_FAMILY_SYMBOL = 5, // or symbol + DWRITE_PANOSE_FAMILY_PICTORIAL = DWRITE_PANOSE_FAMILY_SYMBOL +}; + +/// +/// Appearance of the serifs. +/// Present for families: 2-text +/// +enum DWRITE_PANOSE_SERIF_STYLE +{ + DWRITE_PANOSE_SERIF_STYLE_ANY = 0, + DWRITE_PANOSE_SERIF_STYLE_NO_FIT = 1, + DWRITE_PANOSE_SERIF_STYLE_COVE = 2, + DWRITE_PANOSE_SERIF_STYLE_OBTUSE_COVE = 3, + DWRITE_PANOSE_SERIF_STYLE_SQUARE_COVE = 4, + DWRITE_PANOSE_SERIF_STYLE_OBTUSE_SQUARE_COVE = 5, + DWRITE_PANOSE_SERIF_STYLE_SQUARE = 6, + DWRITE_PANOSE_SERIF_STYLE_THIN = 7, + DWRITE_PANOSE_SERIF_STYLE_OVAL = 8, + DWRITE_PANOSE_SERIF_STYLE_EXAGGERATED = 9, + DWRITE_PANOSE_SERIF_STYLE_TRIANGLE = 10, + DWRITE_PANOSE_SERIF_STYLE_NORMAL_SANS = 11, + DWRITE_PANOSE_SERIF_STYLE_OBTUSE_SANS = 12, + DWRITE_PANOSE_SERIF_STYLE_PERPENDICULAR_SANS = 13, + DWRITE_PANOSE_SERIF_STYLE_FLARED = 14, + DWRITE_PANOSE_SERIF_STYLE_ROUNDED = 15, + DWRITE_PANOSE_SERIF_STYLE_SCRIPT = 16, + DWRITE_PANOSE_SERIF_STYLE_PERP_SANS = DWRITE_PANOSE_SERIF_STYLE_PERPENDICULAR_SANS, + DWRITE_PANOSE_SERIF_STYLE_BONE = DWRITE_PANOSE_SERIF_STYLE_OVAL +}; + +/// +/// PANOSE font weights. These roughly correspond to the DWRITE_FONT_WEIGHT's +/// using (panose_weight - 2) * 100. +/// Present for families: 2-text, 3-script, 4-decorative, 5-symbol +/// +enum DWRITE_PANOSE_WEIGHT +{ + DWRITE_PANOSE_WEIGHT_ANY = 0, + DWRITE_PANOSE_WEIGHT_NO_FIT = 1, + DWRITE_PANOSE_WEIGHT_VERY_LIGHT = 2, + DWRITE_PANOSE_WEIGHT_LIGHT = 3, + DWRITE_PANOSE_WEIGHT_THIN = 4, + DWRITE_PANOSE_WEIGHT_BOOK = 5, + DWRITE_PANOSE_WEIGHT_MEDIUM = 6, + DWRITE_PANOSE_WEIGHT_DEMI = 7, + DWRITE_PANOSE_WEIGHT_BOLD = 8, + DWRITE_PANOSE_WEIGHT_HEAVY = 9, + DWRITE_PANOSE_WEIGHT_BLACK = 10, + DWRITE_PANOSE_WEIGHT_EXTRA_BLACK = 11, + DWRITE_PANOSE_WEIGHT_NORD = DWRITE_PANOSE_WEIGHT_EXTRA_BLACK +}; + +/// +/// Proportion of the glyph shape considering additional detail to standard +/// characters. +/// Present for families: 2-text +/// +enum DWRITE_PANOSE_PROPORTION +{ + DWRITE_PANOSE_PROPORTION_ANY = 0, + DWRITE_PANOSE_PROPORTION_NO_FIT = 1, + DWRITE_PANOSE_PROPORTION_OLD_STYLE = 2, + DWRITE_PANOSE_PROPORTION_MODERN = 3, + DWRITE_PANOSE_PROPORTION_EVEN_WIDTH = 4, + DWRITE_PANOSE_PROPORTION_EXPANDED = 5, + DWRITE_PANOSE_PROPORTION_CONDENSED = 6, + DWRITE_PANOSE_PROPORTION_VERY_EXPANDED = 7, + DWRITE_PANOSE_PROPORTION_VERY_CONDENSED = 8, + DWRITE_PANOSE_PROPORTION_MONOSPACED = 9 +}; + +/// +/// Ratio between thickest and thinnest point of the stroke for a letter such +/// as uppercase 'O'. +/// Present for families: 2-text, 3-script, 4-decorative +/// +enum DWRITE_PANOSE_CONTRAST +{ + DWRITE_PANOSE_CONTRAST_ANY = 0, + DWRITE_PANOSE_CONTRAST_NO_FIT = 1, + DWRITE_PANOSE_CONTRAST_NONE = 2, + DWRITE_PANOSE_CONTRAST_VERY_LOW = 3, + DWRITE_PANOSE_CONTRAST_LOW = 4, + DWRITE_PANOSE_CONTRAST_MEDIUM_LOW = 5, + DWRITE_PANOSE_CONTRAST_MEDIUM = 6, + DWRITE_PANOSE_CONTRAST_MEDIUM_HIGH = 7, + DWRITE_PANOSE_CONTRAST_HIGH = 8, + DWRITE_PANOSE_CONTRAST_VERY_HIGH = 9, + DWRITE_PANOSE_CONTRAST_HORIZONTAL_LOW = 10, + DWRITE_PANOSE_CONTRAST_HORIZONTAL_MEDIUM = 11, + DWRITE_PANOSE_CONTRAST_HORIZONTAL_HIGH = 12, + DWRITE_PANOSE_CONTRAST_BROKEN = 13 +}; + +/// +/// Relationship between thin and thick stems. +/// Present for families: 2-text +/// +enum DWRITE_PANOSE_STROKE_VARIATION +{ + DWRITE_PANOSE_STROKE_VARIATION_ANY = 0, + DWRITE_PANOSE_STROKE_VARIATION_NO_FIT = 1, + DWRITE_PANOSE_STROKE_VARIATION_NO_VARIATION = 2, + DWRITE_PANOSE_STROKE_VARIATION_GRADUAL_DIAGONAL = 3, + DWRITE_PANOSE_STROKE_VARIATION_GRADUAL_TRANSITIONAL = 4, + DWRITE_PANOSE_STROKE_VARIATION_GRADUAL_VERTICAL = 5, + DWRITE_PANOSE_STROKE_VARIATION_GRADUAL_HORIZONTAL = 6, + DWRITE_PANOSE_STROKE_VARIATION_RAPID_VERTICAL = 7, + DWRITE_PANOSE_STROKE_VARIATION_RAPID_HORIZONTAL = 8, + DWRITE_PANOSE_STROKE_VARIATION_INSTANT_VERTICAL = 9, + DWRITE_PANOSE_STROKE_VARIATION_INSTANT_HORIZONTAL = 10 +}; + +/// +/// Style of termination of stems and rounded letterforms. +/// Present for families: 2-text +/// +enum DWRITE_PANOSE_ARM_STYLE +{ + DWRITE_PANOSE_ARM_STYLE_ANY = 0, + DWRITE_PANOSE_ARM_STYLE_NO_FIT = 1, + DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_HORIZONTAL = 2, + DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_WEDGE = 3, + DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_VERTICAL = 4, + DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_SINGLE_SERIF = 5, + DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_DOUBLE_SERIF = 6, + DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_HORIZONTAL = 7, + DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_WEDGE = 8, + DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_VERTICAL = 9, + DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_SINGLE_SERIF = 10, + DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_DOUBLE_SERIF = 11, + DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_HORZ = DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_HORIZONTAL, + DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_VERT = DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_VERTICAL, + DWRITE_PANOSE_ARM_STYLE_BENT_ARMS_HORZ = DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_HORIZONTAL, + DWRITE_PANOSE_ARM_STYLE_BENT_ARMS_WEDGE = DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_WEDGE, + DWRITE_PANOSE_ARM_STYLE_BENT_ARMS_VERT = DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_VERTICAL, + DWRITE_PANOSE_ARM_STYLE_BENT_ARMS_SINGLE_SERIF = DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_SINGLE_SERIF, + DWRITE_PANOSE_ARM_STYLE_BENT_ARMS_DOUBLE_SERIF = DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_DOUBLE_SERIF +}; + +/// +/// Roundness of letterform. +/// Present for families: 2-text +/// +enum DWRITE_PANOSE_LETTERFORM +{ + DWRITE_PANOSE_LETTERFORM_ANY = 0, + DWRITE_PANOSE_LETTERFORM_NO_FIT = 1, + DWRITE_PANOSE_LETTERFORM_NORMAL_CONTACT = 2, + DWRITE_PANOSE_LETTERFORM_NORMAL_WEIGHTED = 3, + DWRITE_PANOSE_LETTERFORM_NORMAL_BOXED = 4, + DWRITE_PANOSE_LETTERFORM_NORMAL_FLATTENED = 5, + DWRITE_PANOSE_LETTERFORM_NORMAL_ROUNDED = 6, + DWRITE_PANOSE_LETTERFORM_NORMAL_OFF_CENTER = 7, + DWRITE_PANOSE_LETTERFORM_NORMAL_SQUARE = 8, + DWRITE_PANOSE_LETTERFORM_OBLIQUE_CONTACT = 9, + DWRITE_PANOSE_LETTERFORM_OBLIQUE_WEIGHTED = 10, + DWRITE_PANOSE_LETTERFORM_OBLIQUE_BOXED = 11, + DWRITE_PANOSE_LETTERFORM_OBLIQUE_FLATTENED = 12, + DWRITE_PANOSE_LETTERFORM_OBLIQUE_ROUNDED = 13, + DWRITE_PANOSE_LETTERFORM_OBLIQUE_OFF_CENTER = 14, + DWRITE_PANOSE_LETTERFORM_OBLIQUE_SQUARE = 15 +}; + +/// +/// Placement of midline across uppercase characters and treatment of diagonal +/// stem apexes. +/// Present for families: 2-text +/// +enum DWRITE_PANOSE_MIDLINE +{ + DWRITE_PANOSE_MIDLINE_ANY = 0, + DWRITE_PANOSE_MIDLINE_NO_FIT = 1, + DWRITE_PANOSE_MIDLINE_STANDARD_TRIMMED = 2, + DWRITE_PANOSE_MIDLINE_STANDARD_POINTED = 3, + DWRITE_PANOSE_MIDLINE_STANDARD_SERIFED = 4, + DWRITE_PANOSE_MIDLINE_HIGH_TRIMMED = 5, + DWRITE_PANOSE_MIDLINE_HIGH_POINTED = 6, + DWRITE_PANOSE_MIDLINE_HIGH_SERIFED = 7, + DWRITE_PANOSE_MIDLINE_CONSTANT_TRIMMED = 8, + DWRITE_PANOSE_MIDLINE_CONSTANT_POINTED = 9, + DWRITE_PANOSE_MIDLINE_CONSTANT_SERIFED = 10, + DWRITE_PANOSE_MIDLINE_LOW_TRIMMED = 11, + DWRITE_PANOSE_MIDLINE_LOW_POINTED = 12, + DWRITE_PANOSE_MIDLINE_LOW_SERIFED = 13 +}; + +/// +/// Relative size of lowercase letters and treament of diacritic marks +/// and uppercase glyphs. +/// Present for families: 2-text +/// +enum DWRITE_PANOSE_XHEIGHT +{ + DWRITE_PANOSE_XHEIGHT_ANY = 0, + DWRITE_PANOSE_XHEIGHT_NO_FIT = 1, + DWRITE_PANOSE_XHEIGHT_CONSTANT_SMALL = 2, + DWRITE_PANOSE_XHEIGHT_CONSTANT_STANDARD = 3, + DWRITE_PANOSE_XHEIGHT_CONSTANT_LARGE = 4, + DWRITE_PANOSE_XHEIGHT_DUCKING_SMALL = 5, + DWRITE_PANOSE_XHEIGHT_DUCKING_STANDARD = 6, + DWRITE_PANOSE_XHEIGHT_DUCKING_LARGE = 7, + DWRITE_PANOSE_XHEIGHT_CONSTANT_STD = DWRITE_PANOSE_XHEIGHT_CONSTANT_STANDARD, + DWRITE_PANOSE_XHEIGHT_DUCKING_STD = DWRITE_PANOSE_XHEIGHT_DUCKING_STANDARD +}; + +/// +/// Kind of tool used to create character forms. +/// Present for families: 3-script +/// +enum DWRITE_PANOSE_TOOL_KIND +{ + DWRITE_PANOSE_TOOL_KIND_ANY = 0, + DWRITE_PANOSE_TOOL_KIND_NO_FIT = 1, + DWRITE_PANOSE_TOOL_KIND_FLAT_NIB = 2, + DWRITE_PANOSE_TOOL_KIND_PRESSURE_POINT = 3, + DWRITE_PANOSE_TOOL_KIND_ENGRAVED = 4, + DWRITE_PANOSE_TOOL_KIND_BALL = 5, + DWRITE_PANOSE_TOOL_KIND_BRUSH = 6, + DWRITE_PANOSE_TOOL_KIND_ROUGH = 7, + DWRITE_PANOSE_TOOL_KIND_FELT_PEN_BRUSH_TIP = 8, + DWRITE_PANOSE_TOOL_KIND_WILD_BRUSH = 9 +}; + +/// +/// Monospace vs proportional. +/// Present for families: 3-script, 5-symbol +/// +enum DWRITE_PANOSE_SPACING +{ + DWRITE_PANOSE_SPACING_ANY = 0, + DWRITE_PANOSE_SPACING_NO_FIT = 1, + DWRITE_PANOSE_SPACING_PROPORTIONAL_SPACED = 2, + DWRITE_PANOSE_SPACING_MONOSPACED = 3, +}; + +/// +/// Ratio between width and height of the face. +/// Present for families: 3-script +/// +enum DWRITE_PANOSE_ASPECT_RATIO +{ + DWRITE_PANOSE_ASPECT_RATIO_ANY = 0, + DWRITE_PANOSE_ASPECT_RATIO_NO_FIT = 1, + DWRITE_PANOSE_ASPECT_RATIO_VERY_CONDENSED = 2, + DWRITE_PANOSE_ASPECT_RATIO_CONDENSED = 3, + DWRITE_PANOSE_ASPECT_RATIO_NORMAL = 4, + DWRITE_PANOSE_ASPECT_RATIO_EXPANDED = 5, + DWRITE_PANOSE_ASPECT_RATIO_VERY_EXPANDED = 6 +}; + +/// +/// Topology of letterforms. +/// Present for families: 3-script +/// +enum DWRITE_PANOSE_SCRIPT_TOPOLOGY +{ + DWRITE_PANOSE_SCRIPT_TOPOLOGY_ANY = 0, + DWRITE_PANOSE_SCRIPT_TOPOLOGY_NO_FIT = 1, + DWRITE_PANOSE_SCRIPT_TOPOLOGY_ROMAN_DISCONNECTED = 2, + DWRITE_PANOSE_SCRIPT_TOPOLOGY_ROMAN_TRAILING = 3, + DWRITE_PANOSE_SCRIPT_TOPOLOGY_ROMAN_CONNECTED = 4, + DWRITE_PANOSE_SCRIPT_TOPOLOGY_CURSIVE_DISCONNECTED = 5, + DWRITE_PANOSE_SCRIPT_TOPOLOGY_CURSIVE_TRAILING = 6, + DWRITE_PANOSE_SCRIPT_TOPOLOGY_CURSIVE_CONNECTED = 7, + DWRITE_PANOSE_SCRIPT_TOPOLOGY_BLACKLETTER_DISCONNECTED = 8, + DWRITE_PANOSE_SCRIPT_TOPOLOGY_BLACKLETTER_TRAILING = 9, + DWRITE_PANOSE_SCRIPT_TOPOLOGY_BLACKLETTER_CONNECTED = 10 +}; + +/// +/// General look of the face, considering slope and tails. +/// Present for families: 3-script +/// +enum DWRITE_PANOSE_SCRIPT_FORM +{ + DWRITE_PANOSE_SCRIPT_FORM_ANY = 0, + DWRITE_PANOSE_SCRIPT_FORM_NO_FIT = 1, + DWRITE_PANOSE_SCRIPT_FORM_UPRIGHT_NO_WRAPPING = 2, + DWRITE_PANOSE_SCRIPT_FORM_UPRIGHT_SOME_WRAPPING = 3, + DWRITE_PANOSE_SCRIPT_FORM_UPRIGHT_MORE_WRAPPING = 4, + DWRITE_PANOSE_SCRIPT_FORM_UPRIGHT_EXTREME_WRAPPING = 5, + DWRITE_PANOSE_SCRIPT_FORM_OBLIQUE_NO_WRAPPING = 6, + DWRITE_PANOSE_SCRIPT_FORM_OBLIQUE_SOME_WRAPPING = 7, + DWRITE_PANOSE_SCRIPT_FORM_OBLIQUE_MORE_WRAPPING = 8, + DWRITE_PANOSE_SCRIPT_FORM_OBLIQUE_EXTREME_WRAPPING = 9, + DWRITE_PANOSE_SCRIPT_FORM_EXAGGERATED_NO_WRAPPING = 10, + DWRITE_PANOSE_SCRIPT_FORM_EXAGGERATED_SOME_WRAPPING = 11, + DWRITE_PANOSE_SCRIPT_FORM_EXAGGERATED_MORE_WRAPPING = 12, + DWRITE_PANOSE_SCRIPT_FORM_EXAGGERATED_EXTREME_WRAPPING = 13 +}; + +/// +/// How character ends and miniscule ascenders are treated. +/// Present for families: 3-script +/// +enum DWRITE_PANOSE_FINIALS +{ + DWRITE_PANOSE_FINIALS_ANY = 0, + DWRITE_PANOSE_FINIALS_NO_FIT = 1, + DWRITE_PANOSE_FINIALS_NONE_NO_LOOPS = 2, + DWRITE_PANOSE_FINIALS_NONE_CLOSED_LOOPS = 3, + DWRITE_PANOSE_FINIALS_NONE_OPEN_LOOPS = 4, + DWRITE_PANOSE_FINIALS_SHARP_NO_LOOPS = 5, + DWRITE_PANOSE_FINIALS_SHARP_CLOSED_LOOPS = 6, + DWRITE_PANOSE_FINIALS_SHARP_OPEN_LOOPS = 7, + DWRITE_PANOSE_FINIALS_TAPERED_NO_LOOPS = 8, + DWRITE_PANOSE_FINIALS_TAPERED_CLOSED_LOOPS = 9, + DWRITE_PANOSE_FINIALS_TAPERED_OPEN_LOOPS = 10, + DWRITE_PANOSE_FINIALS_ROUND_NO_LOOPS = 11, + DWRITE_PANOSE_FINIALS_ROUND_CLOSED_LOOPS = 12, + DWRITE_PANOSE_FINIALS_ROUND_OPEN_LOOPS = 13 +}; + +/// +/// Relative size of the lowercase letters. +/// Present for families: 3-script +/// +enum DWRITE_PANOSE_XASCENT +{ + DWRITE_PANOSE_XASCENT_ANY = 0, + DWRITE_PANOSE_XASCENT_NO_FIT = 1, + DWRITE_PANOSE_XASCENT_VERY_LOW = 2, + DWRITE_PANOSE_XASCENT_LOW = 3, + DWRITE_PANOSE_XASCENT_MEDIUM = 4, + DWRITE_PANOSE_XASCENT_HIGH = 5, + DWRITE_PANOSE_XASCENT_VERY_HIGH = 6 +}; + +/// +/// General look of the face. +/// Present for families: 4-decorative +/// +enum DWRITE_PANOSE_DECORATIVE_CLASS +{ + DWRITE_PANOSE_DECORATIVE_CLASS_ANY = 0, + DWRITE_PANOSE_DECORATIVE_CLASS_NO_FIT = 1, + DWRITE_PANOSE_DECORATIVE_CLASS_DERIVATIVE = 2, + DWRITE_PANOSE_DECORATIVE_CLASS_NONSTANDARD_TOPOLOGY = 3, + DWRITE_PANOSE_DECORATIVE_CLASS_NONSTANDARD_ELEMENTS = 4, + DWRITE_PANOSE_DECORATIVE_CLASS_NONSTANDARD_ASPECT = 5, + DWRITE_PANOSE_DECORATIVE_CLASS_INITIALS = 6, + DWRITE_PANOSE_DECORATIVE_CLASS_CARTOON = 7, + DWRITE_PANOSE_DECORATIVE_CLASS_PICTURE_STEMS = 8, + DWRITE_PANOSE_DECORATIVE_CLASS_ORNAMENTED = 9, + DWRITE_PANOSE_DECORATIVE_CLASS_TEXT_AND_BACKGROUND = 10, + DWRITE_PANOSE_DECORATIVE_CLASS_COLLAGE = 11, + DWRITE_PANOSE_DECORATIVE_CLASS_MONTAGE = 12 +}; + +/// +/// Ratio between the width and height of the face. +/// Present for families: 4-decorative +/// +enum DWRITE_PANOSE_ASPECT +{ + DWRITE_PANOSE_ASPECT_ANY = 0, + DWRITE_PANOSE_ASPECT_NO_FIT = 1, + DWRITE_PANOSE_ASPECT_SUPER_CONDENSED = 2, + DWRITE_PANOSE_ASPECT_VERY_CONDENSED = 3, + DWRITE_PANOSE_ASPECT_CONDENSED = 4, + DWRITE_PANOSE_ASPECT_NORMAL = 5, + DWRITE_PANOSE_ASPECT_EXTENDED = 6, + DWRITE_PANOSE_ASPECT_VERY_EXTENDED = 7, + DWRITE_PANOSE_ASPECT_SUPER_EXTENDED = 8, + DWRITE_PANOSE_ASPECT_MONOSPACED = 9 +}; + +/// +/// Type of fill/line (treatment). +/// Present for families: 4-decorative +/// +enum DWRITE_PANOSE_FILL +{ + DWRITE_PANOSE_FILL_ANY = 0, + DWRITE_PANOSE_FILL_NO_FIT = 1, + DWRITE_PANOSE_FILL_STANDARD_SOLID_FILL = 2, + DWRITE_PANOSE_FILL_NO_FILL = 3, + DWRITE_PANOSE_FILL_PATTERNED_FILL = 4, + DWRITE_PANOSE_FILL_COMPLEX_FILL = 5, + DWRITE_PANOSE_FILL_SHAPED_FILL = 6, + DWRITE_PANOSE_FILL_DRAWN_DISTRESSED = 7, +}; + +/// +/// Outline handling. +/// Present for families: 4-decorative +/// +enum DWRITE_PANOSE_LINING +{ + DWRITE_PANOSE_LINING_ANY = 0, + DWRITE_PANOSE_LINING_NO_FIT = 1, + DWRITE_PANOSE_LINING_NONE = 2, + DWRITE_PANOSE_LINING_INLINE = 3, + DWRITE_PANOSE_LINING_OUTLINE = 4, + DWRITE_PANOSE_LINING_ENGRAVED = 5, + DWRITE_PANOSE_LINING_SHADOW = 6, + DWRITE_PANOSE_LINING_RELIEF = 7, + DWRITE_PANOSE_LINING_BACKDROP = 8 +}; + +/// +/// Overall shape characteristics of the font. +/// Present for families: 4-decorative +/// +enum DWRITE_PANOSE_DECORATIVE_TOPOLOGY +{ + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_ANY = 0, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_NO_FIT = 1, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_STANDARD = 2, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_SQUARE = 3, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_MULTIPLE_SEGMENT = 4, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_ART_DECO = 5, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_UNEVEN_WEIGHTING = 6, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_DIVERSE_ARMS = 7, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_DIVERSE_FORMS = 8, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_LOMBARDIC_FORMS = 9, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_UPPER_CASE_IN_LOWER_CASE = 10, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_IMPLIED_TOPOLOGY = 11, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_HORSESHOE_E_AND_A = 12, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_CURSIVE = 13, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_BLACKLETTER = 14, + DWRITE_PANOSE_DECORATIVE_TOPOLOGY_SWASH_VARIANCE = 15 +}; + +/// +/// Type of characters available in the font. +/// Present for families: 4-decorative +/// +enum DWRITE_PANOSE_CHARACTER_RANGES +{ + DWRITE_PANOSE_CHARACTER_RANGES_ANY = 0, + DWRITE_PANOSE_CHARACTER_RANGES_NO_FIT = 1, + DWRITE_PANOSE_CHARACTER_RANGES_EXTENDED_COLLECTION = 2, + DWRITE_PANOSE_CHARACTER_RANGES_LITERALS = 3, + DWRITE_PANOSE_CHARACTER_RANGES_NO_LOWER_CASE = 4, + DWRITE_PANOSE_CHARACTER_RANGES_SMALL_CAPS = 5 +}; + +/// +/// Kind of symbol set. +/// Present for families: 5-symbol +/// +enum DWRITE_PANOSE_SYMBOL_KIND +{ + DWRITE_PANOSE_SYMBOL_KIND_ANY = 0, + DWRITE_PANOSE_SYMBOL_KIND_NO_FIT = 1, + DWRITE_PANOSE_SYMBOL_KIND_MONTAGES = 2, + DWRITE_PANOSE_SYMBOL_KIND_PICTURES = 3, + DWRITE_PANOSE_SYMBOL_KIND_SHAPES = 4, + DWRITE_PANOSE_SYMBOL_KIND_SCIENTIFIC = 5, + DWRITE_PANOSE_SYMBOL_KIND_MUSIC = 6, + DWRITE_PANOSE_SYMBOL_KIND_EXPERT = 7, + DWRITE_PANOSE_SYMBOL_KIND_PATTERNS = 8, + DWRITE_PANOSE_SYMBOL_KIND_BOARDERS = 9, + DWRITE_PANOSE_SYMBOL_KIND_ICONS = 10, + DWRITE_PANOSE_SYMBOL_KIND_LOGOS = 11, + DWRITE_PANOSE_SYMBOL_KIND_INDUSTRY_SPECIFIC = 12 +}; + +/// +/// Aspect ratio of symbolic characters. +/// Present for families: 5-symbol +/// +enum DWRITE_PANOSE_SYMBOL_ASPECT_RATIO +{ + DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_ANY = 0, + DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_NO_FIT = 1, + DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_NO_WIDTH = 2, + DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_EXCEPTIONALLY_WIDE = 3, + DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_SUPER_WIDE = 4, + DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_VERY_WIDE = 5, + DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_WIDE = 6, + DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_NORMAL = 7, + DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_NARROW = 8, + DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_VERY_NARROW = 9 +}; + +/// +/// Specifies the policy used by GetRecommendedRenderingMode to determine whether to +/// render glyphs in outline mode. Glyphs are rendered in outline mode by default at +/// large sizes for performance reasons, but how large (i.e., the outline threshold) +/// depends on the quality of outline rendering. If the graphics system renders anti- +/// aliased outlines then a relatively low threshold is used, but if the graphics +/// system renders aliased outlines then a much higher threshold is used. +/// +enum DWRITE_OUTLINE_THRESHOLD +{ + DWRITE_OUTLINE_THRESHOLD_ANTIALIASED, + DWRITE_OUTLINE_THRESHOLD_ALIASED +}; + +/// +/// Baseline for text alignment. +/// +enum DWRITE_BASELINE +{ + /// + /// The Roman baseline for horizontal, Central baseline for vertical. + /// + DWRITE_BASELINE_DEFAULT, + + /// + /// The baseline used by alphabetic scripts such as Latin, Greek, Cyrillic. + /// + DWRITE_BASELINE_ROMAN, + + /// + /// Central baseline, generally used for vertical text. + /// + DWRITE_BASELINE_CENTRAL, + + /// + /// Mathematical baseline which math characters are centered on. + /// + DWRITE_BASELINE_MATH, + + /// + /// Hanging baseline, used in scripts like Devanagari. + /// + DWRITE_BASELINE_HANGING, + + /// + /// Ideographic bottom baseline for CJK, left in vertical. + /// + DWRITE_BASELINE_IDEOGRAPHIC_BOTTOM, + + /// + /// Ideographic top baseline for CJK, right in vertical. + /// + DWRITE_BASELINE_IDEOGRAPHIC_TOP, + + /// + /// The bottom-most extent in horizontal, left-most in vertical. + /// + DWRITE_BASELINE_MINIMUM, + + /// + /// The top-most extent in horizontal, right-most in vertical. + /// + DWRITE_BASELINE_MAXIMUM, +}; + +/// +/// The desired kind of glyph orientation for the text. The client specifies +/// this to the analyzer as the desired orientation, but note this is the +/// client preference, and the constraints of the script will determine the +/// final presentation. +/// +enum DWRITE_VERTICAL_GLYPH_ORIENTATION +{ + /// + /// In vertical layout, naturally horizontal scripts (Latin, Thai, Arabic, + /// Devanagari) rotate 90 degrees clockwise, while ideographic scripts + /// (Chinese, Japanese, Korean) remain upright, 0 degrees. + /// + DWRITE_VERTICAL_GLYPH_ORIENTATION_DEFAULT, + + /// + /// Ideographic scripts and scripts that permit stacking + /// (Latin, Hebrew) are stacked in vertical reading layout. + /// Connected scripts (Arabic, Syriac, 'Phags-pa, Ogham), + /// which would otherwise look broken if glyphs were kept + /// at 0 degrees, remain connected and rotate. + /// + DWRITE_VERTICAL_GLYPH_ORIENTATION_STACKED, +}; + +/// +/// How the glyph is oriented to the x-axis. This is an output from the text +/// analyzer, dependent on the desired orientation, bidi level, and character +/// properties. +/// +enum DWRITE_GLYPH_ORIENTATION_ANGLE +{ + /// + /// Glyph orientation is upright. + /// + DWRITE_GLYPH_ORIENTATION_ANGLE_0_DEGREES, + + /// + /// Glyph orientation is rotated 90 clockwise. + /// + DWRITE_GLYPH_ORIENTATION_ANGLE_90_DEGREES, + + /// + /// Glyph orientation is upside-down. + /// + DWRITE_GLYPH_ORIENTATION_ANGLE_180_DEGREES, + + /// + /// Glyph orientation is rotated 270 clockwise. + /// + DWRITE_GLYPH_ORIENTATION_ANGLE_270_DEGREES, +}; + + +struct DWRITE_FONT_METRICS1 : public DWRITE_FONT_METRICS +{ + /// + /// Left edge of accumulated bounding blackbox of all glyphs in the font. + /// + INT16 glyphBoxLeft; + + /// + /// Top edge of accumulated bounding blackbox of all glyphs in the font. + /// + INT16 glyphBoxTop; + + /// + /// Right edge of accumulated bounding blackbox of all glyphs in the font. + /// + INT16 glyphBoxRight; + + /// + /// Bottom edge of accumulated bounding blackbox of all glyphs in the font. + /// + INT16 glyphBoxBottom; + + /// + /// Horizontal position of the subscript relative to the baseline origin. + /// This is typically negative (to the left) in italic/oblique fonts, and + /// zero in regular fonts. + /// + INT16 subscriptPositionX; + + /// + /// Vertical position of the subscript relative to the baseline. + /// This is typically negative. + /// + INT16 subscriptPositionY; + + /// + /// Horizontal size of the subscript em box in design units, used to + /// scale the simulated subscript relative to the full em box size. + /// This the numerator of the scaling ratio where denominator is the + /// design units per em. If this member is zero, the font does not specify + /// a scale factor, and the client should use its own policy. + /// + INT16 subscriptSizeX; + + /// + /// Vertical size of the subscript em box in design units, used to + /// scale the simulated subscript relative to the full em box size. + /// This the numerator of the scaling ratio where denominator is the + /// design units per em. If this member is zero, the font does not specify + /// a scale factor, and the client should use its own policy. + /// + INT16 subscriptSizeY; + + /// + /// Horizontal position of the superscript relative to the baseline origin. + /// This is typically positive (to the right) in italic/oblique fonts, and + /// zero in regular fonts. + /// + INT16 superscriptPositionX; + + /// + /// Vertical position of the superscript relative to the baseline. + /// This is typically positive. + /// + INT16 superscriptPositionY; + + /// + /// Horizontal size of the superscript em box in design units, used to + /// scale the simulated superscript relative to the full em box size. + /// This the numerator of the scaling ratio where denominator is the + /// design units per em. If this member is zero, the font does not specify + /// a scale factor, and the client should use its own policy. + /// + INT16 superscriptSizeX; + + /// + /// Vertical size of the superscript em box in design units, used to + /// scale the simulated superscript relative to the full em box size. + /// This the numerator of the scaling ratio where denominator is the + /// design units per em. If this member is zero, the font does not specify + /// a scale factor, and the client should use its own policy. + /// + INT16 superscriptSizeY; + + /// + /// Indicates that the ascent, descent, and lineGap are based on newer + /// 'typographic' values in the font, rather than legacy values. + /// + BOOL hasTypographicMetrics; +}; + + +/// +/// Metrics for caret placement in a font. +/// +struct DWRITE_CARET_METRICS +{ + /// + /// Vertical rise of the caret. Rise / Run yields the caret angle. + /// Rise = 1 for perfectly upright fonts (non-italic). + /// + INT16 slopeRise; + + /// + /// Horizontal run of th caret. Rise / Run yields the caret angle. + /// Run = 0 for perfectly upright fonts (non-italic). + /// + INT16 slopeRun; + + /// + /// Horizontal offset of the caret along the baseline for good appearance. + /// Offset = 0 for perfectly upright fonts (non-italic). + /// + INT16 offset; +}; + + +/// +/// Typeface classification values, used for font selection and matching. +/// +/// +/// Note the family type (index 0) is the only stable entry in the 10-byte +/// array, as all the following entries can change dynamically depending on +/// context of the first field. +/// +union DWRITE_PANOSE +{ + UINT8 values[10]; + + UINT8 familyKind; // this is the only field that never changes meaning + + struct + { + UINT8 familyKind; // = 2 for text + UINT8 serifStyle; + UINT8 weight; + UINT8 proportion; + UINT8 contrast; + UINT8 strokeVariation; + UINT8 armStyle; + UINT8 letterform; + UINT8 midline; + UINT8 xHeight; + } text; + + struct + { + UINT8 familyKind; // = 3 for script + UINT8 toolKind; + UINT8 weight; + UINT8 spacing; + UINT8 aspectRatio; + UINT8 contrast; + UINT8 scriptTopology; + UINT8 scriptForm; + UINT8 finials; + UINT8 xAscent; + } script; + + struct + { + UINT8 familyKind; // = 4 for decorative + UINT8 decorativeClass; + UINT8 weight; + UINT8 aspect; + UINT8 contrast; + UINT8 serifVariant; + UINT8 fill; // treatment + UINT8 lining; + UINT8 decorativeTopology; + UINT8 characterRange; + } decorative; + + struct + { + UINT8 familyKind; // = 5 for symbol + UINT8 symbolKind; + UINT8 weight; + UINT8 spacing; + UINT8 aspectRatioAndContrast; // hard coded to no-fit (1) + UINT8 aspectRatio94; + UINT8 aspectRatio119; + UINT8 aspectRatio157; + UINT8 aspectRatio163; + UINT8 aspectRatio211; + } symbol; +}; + + +/// +/// Range of Unicode codepoints. +/// +struct DWRITE_UNICODE_RANGE +{ + /// + /// The first codepoint in the Unicode range. + /// + UINT32 first; + + /// + /// The last codepoint in the Unicode range. + /// + UINT32 last; +}; + + +/// +/// Script-specific properties for caret navigation and justification. +/// +struct DWRITE_SCRIPT_PROPERTIES +{ + /// + /// The standardized four character code for the given script. + /// Note these only include the general Unicode scripts, not any + /// additional ISO 15924 scripts for bibliographic distinction + /// (for example, Fraktur Latin vs Gaelic Latin). + /// http://unicode.org/iso15924/iso15924-codes.html + /// + UINT32 isoScriptCode; + + /// + /// The standardized numeric code, ranging 0-999. + /// http://unicode.org/iso15924/iso15924-codes.html + /// + UINT32 isoScriptNumber; + + /// + /// Number of characters to estimate look-ahead for complex scripts. + /// Latin and all Kana are generally 1. Indic scripts are up to 15, + /// and most others are 8. Note that combining marks and variation + /// selectors can produce clusters longer than these look-aheads, + /// so this estimate is considered typical language use. Diacritics + /// must be tested explicitly separately. + /// + UINT32 clusterLookahead; + + /// + /// Appropriate character to elongate the given script for justification. + /// + /// Examples: + /// Arabic - U+0640 Tatweel + /// Ogham - U+1680 Ogham Space Mark + /// + UINT32 justificationCharacter; + + /// + /// Restrict the caret to whole clusters, like Thai and Devanagari. Scripts + /// such as Arabic by default allow navigation between clusters. Others + /// like Thai always navigate across whole clusters. + /// + UINT32 restrictCaretToClusters : 1; + + /// + /// The language uses dividers between words, such as spaces between Latin + /// or the Ethiopic wordspace. + /// + /// Examples: Latin, Greek, Devanagari, Ethiopic + /// Excludes: Chinese, Korean, Thai. + /// + UINT32 usesWordDividers : 1; + + /// + /// The characters are discrete units from each other. This includes both + /// block scripts and clustered scripts. + /// + /// Examples: Latin, Greek, Cyrillic, Hebrew, Chinese, Thai + /// + UINT32 isDiscreteWriting : 1; + + /// + /// The language is a block script, expanding between characters. + /// + /// Examples: Chinese, Japanese, Korean, Bopomofo. + /// + UINT32 isBlockWriting : 1; + + /// + /// The language is justified within glyph clusters, not just between glyph + /// clusters. One such as the character sequence is Thai Lu and Sara Am + /// (U+E026, U+E033) which form a single cluster but still expand between + /// them. + /// + /// Examples: Thai, Lao, Khmer + /// + UINT32 isDistributedWithinCluster : 1; + + /// + /// The script's clusters are connected to each other (such as the + /// baseline-linked Devanagari), and no separation should be added + /// between characters. Note that cursively linked scripts like Arabic + /// are also connected (but not all connected scripts are + /// cursive). + /// + /// Examples: Devanagari, Arabic, Syriac, Bengali, Gurmukhi, Ogham + /// Excludes: Latin, Chinese, Thaana + /// + UINT32 isConnectedWriting : 1; + + /// + /// The script is naturally cursive (Arabic/Syriac), meaning it uses other + /// justification methods like kashida extension rather than intercharacter + /// spacing. Note that although other scripts like Latin and Japanese may + /// actually support handwritten cursive forms, they are not considered + /// cursive scripts. + /// + /// Examples: Arabic, Syriac, Mongolian + /// Excludes: Thaana, Devanagari, Latin, Chinese + /// + UINT32 isCursiveWriting : 1; + + UINT32 reserved : 25; +}; + + +/// +/// Justification information per glyph. +/// +struct DWRITE_JUSTIFICATION_OPPORTUNITY +{ + /// + /// Minimum amount of expansion to apply to the side of the glyph. + /// This may vary from 0 to infinity, typically being zero except + /// for kashida. + /// + FLOAT expansionMinimum; + + /// + /// Maximum amount of expansion to apply to the side of the glyph. + /// This may vary from 0 to infinity, being zero for fixed-size characters + /// and connected scripts, and non-zero for discrete scripts, and non-zero + /// for cursive scripts at expansion points. + /// + FLOAT expansionMaximum; + + /// + /// Maximum amount of compression to apply to the side of the glyph. + /// This may vary from 0 up to the glyph cluster size. + /// + FLOAT compressionMaximum; + + /// + /// Priority of this expansion point. Larger priorities are applied later, + /// while priority zero does nothing. + /// + UINT32 expansionPriority : 8; + + /// + /// Priority of this compression point. Larger priorities are applied later, + /// while priority zero does nothing. + /// + UINT32 compressionPriority : 8; + + /// + /// Allow this expansion point to use up any remaining slack space even + /// after all expansion priorities have been used up. + /// + UINT32 allowResidualExpansion : 1; + + /// + /// Allow this compression point to use up any remaining space even after + /// all compression priorities have been used up. + /// + UINT32 allowResidualCompression : 1; + + /// + /// Apply expansion/compression to the leading edge of the glyph. This will + /// be false for connected scripts, fixed-size characters, and diacritics. + /// It is generally false within a multi-glyph cluster, unless the script + /// allows expansion of glyphs within a cluster, like Thai. + /// + UINT32 applyToLeadingEdge : 1; + + /// + /// Apply expansion/compression to the trailing edge of the glyph. This will + /// be false for connected scripts, fixed-size characters, and diacritics. + /// It is generally false within a multi-glyph cluster, unless the script + /// allows expansion of glyphs within a cluster, like Thai. + /// + UINT32 applyToTrailingEdge : 1; + + UINT32 reserved : 12; +}; + + +interface IDWriteTextAnalysisSource1; +interface IDWriteTextAnalysisSink1; +interface IDWriteRenderingParams1; + +/// +/// The root factory interface for all DWrite objects. +/// +interface DWRITE_DECLARE_INTERFACE("30572f99-dac6-41db-a16e-0486307e606a") IDWriteFactory1 : public IDWriteFactory +{ + /// + /// Gets a font collection representing the set of end-user defined + /// custom fonts. + /// + /// Receives a pointer to the EUDC font + /// collection object, or NULL in case of failure. + /// If this parameter is nonzero, the + /// function performs an immediate check for changes to the set of + /// EUDC fonts. If this parameter is FALSE, the function will still + /// detect changes, but there may be some latency. For example, an + /// application might specify TRUE if it has itself just modified a + /// font and wants to be sure the font collection contains that font. + /// + /// + /// Standard HRESULT error code. Note that if no EUDC is set on the system, + /// the returned collection will be empty, meaning it will return success + /// but GetFontFamilyCount will be zero. + /// + /// + /// Querying via IDWriteFontCollection::FindFamilyName for a specific + /// family (like MS Gothic) will return the matching family-specific EUDC + /// font if one exists. Querying for "" will return the global EUDC font. + /// For example, if you were matching an EUDC character within a run of + /// the base font PMingLiu, you would retrieve the corresponding EUDC font + /// face using GetEudcFontCollection, then FindFamilyName with "PMingLiu", + /// followed by GetFontFamily and CreateFontFace. + /// + /// Be aware that eudcedit.exe can create placeholder empty glyphs that + /// have zero advance width and no glyph outline. Although they are present + /// in the font (HasCharacter returns true), you are best to ignore + /// these and continue on with font fallback in your layout if the metrics + /// for the glyph are zero. + /// + STDMETHOD(GetEudcFontCollection)( + _COM_Outptr_ IDWriteFontCollection** fontCollection, + BOOL checkForUpdates = FALSE + ) PURE; + + /// + /// Creates a rendering parameters object with the specified properties. + /// + /// The gamma value used for gamma correction, which must be greater than zero and cannot exceed 256. + /// The amount of contrast enhancement, zero or greater. + /// The amount of contrast enhancement to use for grayscale antialiasing, zero or greater. + /// The degree of ClearType level, from 0.0f (no ClearType) to 1.0f (full ClearType). + /// The geometry of a device pixel. + /// Method of rendering glyphs. In most cases, this should be DWRITE_RENDERING_MODE_DEFAULT to automatically use an appropriate mode. + /// Holds the newly created rendering parameters object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateCustomRenderingParams)( + FLOAT gamma, + FLOAT enhancedContrast, + FLOAT enhancedContrastGrayscale, + FLOAT clearTypeLevel, + DWRITE_PIXEL_GEOMETRY pixelGeometry, + DWRITE_RENDERING_MODE renderingMode, + _COM_Outptr_ IDWriteRenderingParams1** renderingParams + ) PURE; + + using IDWriteFactory::CreateCustomRenderingParams; +}; + + +/// +/// The interface that represents an absolute reference to a font face. +/// It contains font face type, appropriate file references and face identification data. +/// Various font data such as metrics, names and glyph outlines is obtained from IDWriteFontFace. +/// +interface DWRITE_DECLARE_INTERFACE("a71efdb4-9fdb-4838-ad90-cfc3be8c3daf") IDWriteFontFace1 : public IDWriteFontFace +{ + /// + /// Gets common metrics for the font in design units. + /// These metrics are applicable to all the glyphs within a font, + /// and are used by applications for layout calculations. + /// + /// Metrics structure to fill in. + STDMETHOD_(void, GetMetrics)( + _Out_ DWRITE_FONT_METRICS1* fontMetrics + ) PURE; + + /// + /// Gets common metrics for the font in design units. + /// These metrics are applicable to all the glyphs within a font, + /// and are used by applications for layout calculations. + /// + /// Logical size of the font in DIP units. A DIP + /// ("device-independent pixel") equals 1/96 inch. + /// Number of physical pixels per DIP. For + /// example, if the DPI of the rendering surface is 96 this value is + /// 1.0f. If the DPI is 120, this value is 120.0f/96. + /// Optional transform applied to the glyphs and + /// their positions. This transform is applied after the scaling + /// specified by the font size and pixelsPerDip. + /// Font metrics structure to fill in. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetGdiCompatibleMetrics)( + FLOAT emSize, + FLOAT pixelsPerDip, + _In_opt_ DWRITE_MATRIX const* transform, + _Out_ DWRITE_FONT_METRICS1* fontMetrics + ) PURE; + + /// + /// Gets caret metrics for the font in design units. These are used by + /// text editors for drawing the correct caret placement/slant. + /// + /// Metrics structure to fill in. + STDMETHOD_(void, GetCaretMetrics)( + _Out_ DWRITE_CARET_METRICS* caretMetrics + ) PURE; + + /// + /// Returns the list of character ranges supported by the font, which is + /// useful for scenarios like character picking, glyph display, and + /// efficient font selection lookup. This is similar to GDI's + /// GetFontUnicodeRanges, except that it returns the full Unicode range, + /// not just 16-bit UCS-2. + /// + /// Maximum number of character ranges passed + /// in from the client. + /// Array of character ranges. + /// Actual number of character ranges, + /// regardless of the maximum count. + /// + /// These ranges are from the cmap, not the OS/2::ulCodePageRange1. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetUnicodeRanges)( + UINT32 maxRangeCount, + _Out_writes_to_opt_(maxRangeCount, *actualRangeCount) DWRITE_UNICODE_RANGE* unicodeRanges, + _Out_ UINT32* actualRangeCount + ) PURE; + + /// + /// Returns true if the font is monospaced, meaning its characters are the + /// same fixed-pitch width (non-proportional). + /// + STDMETHOD_(BOOL, IsMonospacedFont)() PURE; + + /// + /// Returns the advances in design units for a sequences of glyphs. + /// + /// Number of glyphs to retrieve advances for. + /// Array of glyph id's to retrieve advances for. + /// Returned advances in font design units for + /// each glyph. + /// Retrieve the glyph's vertical advance height + /// rather than horizontal advance widths. + /// + /// This is equivalent to calling GetGlyphMetrics and using only the + /// advance width/height. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetDesignGlyphAdvances)( + UINT32 glyphCount, + _In_reads_(glyphCount) UINT16 const* glyphIndices, + _Out_writes_(glyphCount) INT32* glyphAdvances, + BOOL isSideways = FALSE + ) PURE; + + /// + /// Returns the pixel-aligned advances for a sequences of glyphs, the same + /// as GetGdiCompatibleGlyphMetrics would return. + /// + /// Logical size of the font in DIP units. A DIP + /// ("device-independent pixel") equals 1/96 inch. + /// Number of physical pixels per DIP. For + /// example, if the DPI of the rendering surface is 96 this value is + /// 1.0f. If the DPI is 120, this value is 120.0f/96. + /// Optional transform applied to the glyphs and + /// their positions. This transform is applied after the scaling + /// specified by the font size and pixelsPerDip. + /// When FALSE, the metrics are the same as + /// GDI aliased text (DWRITE_MEASURING_MODE_GDI_CLASSIC). When TRUE, + /// the metrics are the same as those measured by GDI using a font + /// using CLEARTYPE_NATURAL_QUALITY (DWRITE_MEASURING_MODE_GDI_NATURAL). + /// Retrieve the glyph's vertical advances rather + /// than horizontal advances. + /// Total glyphs to retrieve adjustments for. + /// Array of glyph id's to retrieve advances. + /// Returned advances in font design units for + /// each glyph. + /// + /// This is equivalent to calling GetGdiCompatibleGlyphMetrics and using only + /// the advance width/height. Like GetGdiCompatibleGlyphMetrics, these are in + /// design units, meaning they must be scaled down by + /// DWRITE_FONT_METRICS::designUnitsPerEm. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetGdiCompatibleGlyphAdvances)( + FLOAT emSize, + FLOAT pixelsPerDip, + _In_opt_ DWRITE_MATRIX const* transform, + BOOL useGdiNatural, + BOOL isSideways, + UINT32 glyphCount, + _In_reads_(glyphCount) UINT16 const* glyphIndices, + _Out_writes_(glyphCount) INT32* glyphAdvances + ) PURE; + + /// + /// Retrieves the kerning pair adjustments from the font's kern table. + /// + /// Number of glyphs to retrieve adjustments for. + /// Array of glyph id's to retrieve adjustments + /// for. + /// Returned advances in font design units for + /// each glyph. The last glyph adjustment is zero. + /// + /// This is not a direct replacement for GDI's character based + /// GetKerningPairs, but it serves the same role, without the client + /// needing to cache them locally. It also uses glyph id's directly + /// rather than UCS-2 characters (how the kern table actually stores + /// them) which avoids glyph collapse and ambiguity, such as the dash + /// and hyphen, or space and non-breaking space. + /// + /// + /// Newer fonts may have only GPOS kerning instead of the legacy pair + /// table kerning. Such fonts, like Gabriola, will only return 0's for + /// adjustments. This function does not virtualize and flatten these + /// GPOS entries into kerning pairs. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetKerningPairAdjustments)( + UINT32 glyphCount, + _In_reads_(glyphCount) UINT16 const* glyphIndices, + _Out_writes_(glyphCount) INT32* glyphAdvanceAdjustments + ) PURE; + + /// + /// Returns whether or not the font supports pair-kerning. + /// + /// + /// If the font does not support pair table kerning, there is no need to + /// call GetKerningPairAdjustments (it would be all zeroes). + /// + /// + /// Whether the font supports kerning pairs. + /// + STDMETHOD_(BOOL, HasKerningPairs)() PURE; + + /// + /// Determines the recommended text rendering mode to be used based on the + /// font, size, world transform, and measuring mode. + /// + /// Logical font size in DIPs. + /// Number of pixels per logical inch in the horizontal direction. + /// Number of pixels per logical inch in the vertical direction. + /// Specifies the world transform. + /// Specifies the quality of the graphics system's outline rendering, + /// affects the size threshold above which outline rendering is used. + /// Specifies the method used to measure during text layout. For proper + /// glyph spacing, the function returns a rendering mode that is compatible with the specified + /// measuring mode. + /// Receives the recommended rendering mode. + /// + /// This method should be used to determine the actual rendering mode in cases where the rendering + /// mode of the rendering params object is DWRITE_RENDERING_MODE_DEFAULT. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetRecommendedRenderingMode)( + FLOAT fontEmSize, + FLOAT dpiX, + FLOAT dpiY, + _In_opt_ DWRITE_MATRIX const* transform, + BOOL isSideways, + DWRITE_OUTLINE_THRESHOLD outlineThreshold, + DWRITE_MEASURING_MODE measuringMode, + _Out_ DWRITE_RENDERING_MODE* renderingMode + ) PURE; + + /// + /// Retrieves the vertical forms of the nominal glyphs retrieved from + /// GetGlyphIndices, using the font's 'vert' table. This is used in + /// CJK vertical layout so the correct characters are shown. + /// + /// Number of glyphs to retrieve. + /// Original glyph indices from cmap. + /// The vertical form of glyph indices. + /// + /// Call GetGlyphIndices to get the nominal glyph indices, followed by + /// calling this to remap the to the substituted forms, when the run + /// is sideways, and the font has vertical glyph variants. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetVerticalGlyphVariants)( + UINT32 glyphCount, + _In_reads_(glyphCount) UINT16 const* nominalGlyphIndices, + _Out_writes_(glyphCount) UINT16* verticalGlyphIndices + ) PURE; + + /// + /// Returns whether or not the font has any vertical glyph variants. + /// + /// + /// For OpenType fonts, this will return true if the font contains a 'vert' + /// feature. + /// + /// + /// True if the font contains vertical glyph variants. + /// + STDMETHOD_(BOOL, HasVerticalGlyphVariants)() PURE; + + using IDWriteFontFace::GetMetrics; + using IDWriteFontFace::GetGdiCompatibleMetrics; + using IDWriteFontFace::GetRecommendedRenderingMode; +}; + + +/// +/// The IDWriteFont interface represents a physical font in a font collection. +/// +interface DWRITE_DECLARE_INTERFACE("acd16696-8c14-4f5d-877e-fe3fc1d32738") IDWriteFont1 : public IDWriteFont +{ + /// + /// Gets common metrics for the font in design units. + /// These metrics are applicable to all the glyphs within a font, + /// and are used by applications for layout calculations. + /// + /// Metrics structure to fill in. + STDMETHOD_(void, GetMetrics)( + _Out_ DWRITE_FONT_METRICS1* fontMetrics + ) PURE; + + using IDWriteFont::GetMetrics; + + /// + /// Gets the PANOSE values from the font, used for font selection and + /// matching. + /// + /// PANOSE structure to fill in. + /// + /// The function does not simulate these, such as substituting a weight or + /// proportion inferred on other values. If the font does not specify them, + /// they are all set to 'any' (0). + /// + STDMETHOD_(void, GetPanose)( + _Out_ DWRITE_PANOSE* panose + ) PURE; + + /// + /// Returns the list of character ranges supported by the font, which is + /// useful for scenarios like character picking, glyph display, and + /// efficient font selection lookup. This is similar to GDI's + /// GetFontUnicodeRanges, except that it returns the full Unicode range, + /// not just 16-bit UCS-2. + /// + /// Maximum number of character ranges passed + /// in from the client. + /// Array of character ranges. + /// Actual number of character ranges, + /// regardless of the maximum count. + /// + /// These ranges are from the cmap, not the OS/2::ulCodePageRange1. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetUnicodeRanges)( + UINT32 maxRangeCount, + _Out_writes_to_opt_(maxRangeCount, *actualRangeCount) DWRITE_UNICODE_RANGE* unicodeRanges, + _Out_ UINT32* actualRangeCount + ) PURE; + + /// + /// Returns true if the font is monospaced, meaning its characters are the + /// same fixed-pitch width (non-proportional). + /// + STDMETHOD_(BOOL, IsMonospacedFont)() PURE; +}; + +/// +/// The interface that represents text rendering settings for glyph rasterization and filtering. +/// +interface DWRITE_DECLARE_INTERFACE("94413cf4-a6fc-4248-8b50-6674348fcad3") IDWriteRenderingParams1 : public IDWriteRenderingParams +{ + /// + /// Gets the amount of contrast enhancement to use for grayscale antialiasing. + /// Valid values are greater than or equal to zero. + /// + STDMETHOD_(FLOAT, GetGrayscaleEnhancedContrast)() PURE; +}; + +/// +/// Analyzes various text properties for complex script processing. +/// +interface DWRITE_DECLARE_INTERFACE("80DAD800-E21F-4E83-96CE-BFCCE500DB7C") IDWriteTextAnalyzer1 : public IDWriteTextAnalyzer +{ + /// + /// Applies spacing between characters, properly adjusting glyph clusters + /// and diacritics. + /// + /// The spacing before each character, in reading order. + /// The spacing after each character, in reading order. + /// The minimum advance of each character, + /// to prevent characters from becoming too thin or zero-width. This + /// must be zero or greater. + /// The length of the clustermap and original text. + /// The number of glyphs. + /// Mapping from character ranges to glyph ranges. + /// The advance width of each glyph. + /// The offset of the origin of each glyph. + /// Properties of each glyph, from GetGlyphs. + /// The new advance width of each glyph. + /// The new offset of the origin of each glyph. + /// + /// The input and output advances/offsets are allowed to alias the same array. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(ApplyCharacterSpacing)( + FLOAT leadingSpacing, + FLOAT trailingSpacing, + FLOAT minimumAdvanceWidth, + UINT32 textLength, + UINT32 glyphCount, + _In_reads_(textLength) UINT16 const* clusterMap, + _In_reads_(glyphCount) FLOAT const* glyphAdvances, + _In_reads_(glyphCount) DWRITE_GLYPH_OFFSET const* glyphOffsets, + _In_reads_(glyphCount) DWRITE_SHAPING_GLYPH_PROPERTIES const* glyphProperties, + _Out_writes_(glyphCount) FLOAT* modifiedGlyphAdvances, + _Out_writes_(glyphCount) DWRITE_GLYPH_OFFSET* modifiedGlyphOffsets + ) PURE; + + /// + /// Retrieves the given baseline from the font. + /// + /// The font face to read. + /// The baseline of interest. + /// Whether the baseline is vertical or horizontal. + /// Simulate the baseline if it is missing in the font. + /// Script analysis result from AnalyzeScript. + /// The language of the run. + /// The baseline coordinate value in design units. + /// Whether the returned baseline exists in the font. + /// + /// If the baseline does not exist in the font, it is not considered an + /// error, but the function will return exists = false. You may then use + /// heuristics to calculate the missing base, or, if the flag + /// simulationAllowed is true, the function will compute a reasonable + /// approximation for you. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetBaseline)( + _In_ IDWriteFontFace* fontFace, + DWRITE_BASELINE baseline, + BOOL isVertical, + BOOL isSimulationAllowed, + DWRITE_SCRIPT_ANALYSIS scriptAnalysis, + _In_opt_z_ WCHAR const* localeName, + _Out_ INT32* baselineCoordinate, + _Out_ BOOL* exists + ) PURE; + + /// + /// Analyzes a text range for script orientation, reading text and + /// attributes from the source and reporting results to the sink. + /// + /// Source object to analyze. + /// Starting position within the source object. + /// Length to analyze. + /// Callback object. + /// + /// Standard HRESULT error code. + /// + /// + /// All bidi analysis should be resolved before calling this. + /// + STDMETHOD(AnalyzeVerticalGlyphOrientation)( + _In_ IDWriteTextAnalysisSource1* analysisSource, + UINT32 textPosition, + UINT32 textLength, + _In_ IDWriteTextAnalysisSink1* analysisSink + ) PURE; + + /// + /// Returns 2x3 transform matrix for the respective angle to draw the + /// glyph run. + /// + /// The angle reported into + /// SetGlyphOrientation. + /// Whether the run's glyphs are sideways or not. + /// Returned transform. + /// + /// + /// Standard HRESULT error code. + /// + /// + /// The returned displacement is zero. + /// + STDMETHOD(GetGlyphOrientationTransform)( + DWRITE_GLYPH_ORIENTATION_ANGLE glyphOrientationAngle, + BOOL isSideways, + _Out_ DWRITE_MATRIX* transform + ) PURE; + + /// + /// Returns the properties for a given script. + /// + /// The script for a run of text returned + /// from IDWriteTextAnalyzer::AnalyzeScript. + /// Information for the script. + /// + /// Returns properties for the given script. If the script is invalid, + /// it returns generic properties for the unknown script and E_INVALIDARG. + /// + STDMETHOD(GetScriptProperties)( + DWRITE_SCRIPT_ANALYSIS scriptAnalysis, + _Out_ DWRITE_SCRIPT_PROPERTIES* scriptProperties + ) PURE; + + /// + /// Determines the complexity of text, and whether or not full script + /// shaping needs to be called (GetGlyphs). + /// + /// The font face to read. + /// Length of the text to check. + /// The text to check for complexity. This string + /// may be UTF-16, but any supplementary characters will be considered + /// complex. + /// If true, the text is simple, and the + /// glyphIndices array will already have the nominal glyphs for you. + /// Otherwise you need to call GetGlyphs to properly shape complex + /// scripts and OpenType features. + /// + /// The length read of the text run with the + /// same complexity, simple or complex. You may call again from that + /// point onward. + /// Optional glyph indices for the text. If the + /// function returned that the text was simple, you already have the + /// glyphs you need. Otherwise the glyph indices are not meaningful, + /// and you should call shaping instead. + /// + /// Text is not simple if the characters are part of a script that has + /// complex shaping requirements, require bidi analysis, combine with + /// other characters, reside in the supplementary planes, or have glyphs + /// which participate in standard OpenType features. The length returned + /// will not split combining marks from their base characters. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetTextComplexity)( + _In_reads_(textLength) WCHAR const* textString, + UINT32 textLength, + _In_ IDWriteFontFace* fontFace, + _Out_ BOOL* isTextSimple, + _Out_range_(0, textLength) UINT32* textLengthRead, + _Out_writes_to_opt_(textLength, *textLengthRead) UINT16* glyphIndices + ) PURE; + + /// + /// Retrieves justification opportunity information for each of the glyphs + /// given the text and shaping glyph properties. + /// + /// Font face that was used for shaping. This is + /// mainly important for returning correct results of the kashida + /// width. + /// Font em size used for the glyph run. + /// Script of the text from the itemizer. + /// Length of the text. + /// Number of glyphs. + /// Characters used to produce the glyphs. + /// Clustermap produced from shaping. + /// Glyph properties produced from shaping. + /// Receives information for the + /// allowed justification expansion/compression for each glyph. + /// + /// This function is called per-run, after shaping is done via GetGlyphs(). + /// Note this function only supports natural metrics (DWRITE_MEASURING_MODE_NATURAL). + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetJustificationOpportunities)( + _In_opt_ IDWriteFontFace* fontFace, + FLOAT fontEmSize, + DWRITE_SCRIPT_ANALYSIS scriptAnalysis, + UINT32 textLength, + UINT32 glyphCount, + _In_reads_(textLength) WCHAR const* textString, + _In_reads_(textLength) UINT16 const* clusterMap, + _In_reads_(glyphCount) DWRITE_SHAPING_GLYPH_PROPERTIES const* glyphProperties, + _Out_writes_(glyphCount) DWRITE_JUSTIFICATION_OPPORTUNITY* justificationOpportunities + ) PURE; + + /// + /// Justifies an array of glyph advances to fit the line width. + /// + /// Width of the line. + /// Number of glyphs. + /// Opportunities per glyph. Call + /// GetJustificationOpportunities() to get suitable opportunities + /// according to script. + /// Original glyph advances from shaping. + /// Original glyph offsets from shaping. + /// Justified glyph advances. + /// Justified glyph offsets. + /// + /// This is called after all the opportunities have been collected, and it + /// spans across the entire line. The input and output arrays are allowed + /// to alias each other, permitting in-place update. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(JustifyGlyphAdvances)( + FLOAT lineWidth, + UINT32 glyphCount, + _In_reads_(glyphCount) DWRITE_JUSTIFICATION_OPPORTUNITY const* justificationOpportunities, + _In_reads_(glyphCount) FLOAT const* glyphAdvances, + _In_reads_(glyphCount) DWRITE_GLYPH_OFFSET const* glyphOffsets, + _Out_writes_(glyphCount) FLOAT* justifiedGlyphAdvances, + _Out_writes_opt_(glyphCount) DWRITE_GLYPH_OFFSET* justifiedGlyphOffsets + ) PURE; + + /// + /// Fills in new glyphs for complex scripts where justification increased + /// the advances of glyphs, such as Arabic with kashida. + /// + /// Font face used for shaping. + /// Font em size used for the glyph run. + /// Script of the text from the itemizer. + /// Length of the text. + /// Number of glyphs. + /// Maximum number of output glyphs allocated + /// by caller. + /// Clustermap produced from shaping. + /// Original glyphs produced from shaping. + /// Original glyph advances produced from shaping. + /// Justified glyph advances from + /// JustifyGlyphAdvances(). + /// Justified glyph offsets from + /// JustifyGlyphAdvances(). + /// Properties of each glyph, from GetGlyphs. + /// The new glyph count written to the + /// modified arrays, or the needed glyph count if the size is not + /// large enough. + /// Updated clustermap. + /// Updated glyphs with new glyphs + /// inserted where needed. + /// Updated glyph advances. + /// Updated glyph offsets. + /// + /// This is called after the line has been justified, and it is per-run. + /// It only needs to be called if the script has a specific justification + /// character via GetScriptProperties, and it is mainly for cursive scripts + /// like Arabic. If maxGlyphCount is not large enough, the error + /// E_NOT_SUFFICIENT_BUFFER will be returned, with actualGlyphCount holding + /// the final/needed glyph count. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetJustifiedGlyphs)( + _In_opt_ IDWriteFontFace* fontFace, + FLOAT fontEmSize, + DWRITE_SCRIPT_ANALYSIS scriptAnalysis, + UINT32 textLength, + UINT32 glyphCount, + UINT32 maxGlyphCount, + _In_reads_opt_(textLength) UINT16 const* clusterMap, + _In_reads_(glyphCount) UINT16 const* glyphIndices, + _In_reads_(glyphCount) FLOAT const* glyphAdvances, + _In_reads_(glyphCount) FLOAT const* justifiedGlyphAdvances, + _In_reads_(glyphCount) DWRITE_GLYPH_OFFSET const* justifiedGlyphOffsets, + _In_reads_(glyphCount) DWRITE_SHAPING_GLYPH_PROPERTIES const* glyphProperties, + _Out_range_(glyphCount, maxGlyphCount) UINT32* actualGlyphCount, + _Out_writes_opt_(textLength) UINT16* modifiedClusterMap, + _Out_writes_to_(maxGlyphCount, *actualGlyphCount) UINT16* modifiedGlyphIndices, + _Out_writes_to_(maxGlyphCount, *actualGlyphCount) FLOAT* modifiedGlyphAdvances, + _Out_writes_to_(maxGlyphCount, *actualGlyphCount) DWRITE_GLYPH_OFFSET* modifiedGlyphOffsets + ) PURE; +}; + + +/// +/// The interface implemented by the client to provide needed information to +/// the text analyzer, such as the text and associated text properties. +/// If any of these callbacks returns an error, the analysis functions will +/// stop prematurely and return a callback error. +/// +interface DWRITE_DECLARE_INTERFACE("639CFAD8-0FB4-4B21-A58A-067920120009") IDWriteTextAnalysisSource1 : public IDWriteTextAnalysisSource +{ + /// + /// The text analyzer calls back to this to get the desired glyph + /// orientation and resolved bidi level, which it uses along with the + /// script properties of the text to determine the actual orientation of + /// each character, which it reports back to the client via the sink + /// SetGlyphOrientation method. + /// + /// First position of the piece to obtain. All + /// positions are in UTF-16 code-units, not whole characters, which + /// matters when supplementary characters are used. + /// Number of UTF-16 units of the retrieved chunk. + /// The returned length is not the length of the block, but the length + /// remaining in the block, from the given position until its end. + /// So querying for a position that is 75 positions into a 100 + /// postition block would return 25. + /// The type of glyph orientation the + /// client wants for this range, up to the returned text length. + /// The bidi level for this range up to + /// the returned text length, which comes from an earlier + /// bidirectional analysis. + /// + /// Standard HRESULT error code. Returning an error will abort the + /// analysis. + /// + STDMETHOD(GetVerticalGlyphOrientation)( + UINT32 textPosition, + _Out_ UINT32* textLength, + _Out_ DWRITE_VERTICAL_GLYPH_ORIENTATION* glyphOrientation, + _Out_ UINT8* bidiLevel + ) PURE; +}; + + +/// +/// The interface implemented by the client to receive the +/// output of the text analyzers. +/// +interface DWRITE_DECLARE_INTERFACE("B0D941A0-85E7-4D8B-9FD3-5CED9934482A") IDWriteTextAnalysisSink1 : public IDWriteTextAnalysisSink +{ + /// + /// The text analyzer calls back to this to report the actual orientation + /// of each character for shaping and drawing. + /// + /// Starting position to report from. + /// Number of UTF-16 units of the reported range. + /// Angle of the glyphs within the text + /// range (pass to GetGlyphOrientationTransform to get the world + /// relative transform). + /// The adjusted bidi level to be used by + /// the client layout for reordering runs. This will differ from the + /// resolved bidi level retrieved from the source for cases such as + /// Arabic stacked top-to-bottom, where the glyphs are still shaped + /// as RTL, but the runs are TTB along with any CJK or Latin. + /// Whether the glyphs are rotated on their side, + /// which is the default case for CJK and the case stacked Latin + /// Whether the script should be shaped as + /// right-to-left. For Arabic stacked top-to-bottom, even when the + /// adjusted bidi level is coerced to an even level, this will still + /// be true. + /// + /// A successful code or error code to abort analysis. + /// + STDMETHOD(SetGlyphOrientation)( + UINT32 textPosition, + UINT32 textLength, + DWRITE_GLYPH_ORIENTATION_ANGLE glyphOrientationAngle, + UINT8 adjustedBidiLevel, + BOOL isSideways, + BOOL isRightToLeft + ) PURE; +}; + + +/// +/// The IDWriteTextLayout1 interface represents a block of text after it has +/// been fully analyzed and formatted. +/// +/// All coordinates are in device independent pixels (DIPs). +/// +interface DWRITE_DECLARE_INTERFACE("9064D822-80A7-465C-A986-DF65F78B8FEB") IDWriteTextLayout1 : public IDWriteTextLayout +{ + /// + /// Enables/disables pair-kerning on the given range. + /// + /// The Boolean flag indicates whether text is pair-kerned. + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetPairKerning)( + BOOL isPairKerningEnabled, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Get whether or not pair-kerning is enabled at given position. + /// + /// The current text position. + /// The Boolean flag indicates whether text is pair-kerned. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetPairKerning)( + UINT32 currentPosition, + _Out_ BOOL* isPairKerningEnabled, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; + + /// + /// Sets the spacing between characters. + /// + /// The spacing before each character, in reading order. + /// The spacing after each character, in reading order. + /// The minimum advance of each character, + /// to prevent characters from becoming too thin or zero-width. This + /// must be zero or greater. + /// Text range to which this change applies. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetCharacterSpacing)( + FLOAT leadingSpacing, + FLOAT trailingSpacing, + FLOAT minimumAdvanceWidth, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Gets the spacing between characters. + /// + /// The current text position. + /// The spacing before each character, in reading order. + /// The spacing after each character, in reading order. + /// The minimum advance of each character, + /// to prevent characters from becoming too thin or zero-width. This + /// must be zero or greater. + /// The position range of the current format. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetCharacterSpacing)( + UINT32 currentPosition, + _Out_ FLOAT* leadingSpacing, + _Out_ FLOAT* trailingSpacing, + _Out_ FLOAT* minimumAdvanceWidth, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL + ) PURE; +}; + +/// +/// Represents the type of antialiasing to use for text when the rendering mode calls for +/// antialiasing. +/// +enum DWRITE_TEXT_ANTIALIAS_MODE +{ + /// + /// ClearType antialiasing computes coverage independently for the red, green, and blue + /// color elements of each pixel. This allows for more detail than conventional antialiasing. + /// However, because there is no one alpha value for each pixel, ClearType is not suitable + /// rendering text onto a transparent intermediate bitmap. + /// + DWRITE_TEXT_ANTIALIAS_MODE_CLEARTYPE, + + /// + /// Grayscale antialiasing computes one coverage value for each pixel. Because the alpha + /// value of each pixel is well-defined, text can be rendered onto a transparent bitmap, + /// which can then be composited with other content. Note that grayscale rendering with + /// IDWriteBitmapRenderTarget1 uses premultiplied alpha. + /// + DWRITE_TEXT_ANTIALIAS_MODE_GRAYSCALE +}; + +/// +/// Encapsulates a 32-bit device independent bitmap and device context, which can be used for rendering glyphs. +/// +interface DWRITE_DECLARE_INTERFACE("791e8298-3ef3-4230-9880-c9bdecc42064") IDWriteBitmapRenderTarget1 : public IDWriteBitmapRenderTarget +{ + /// + /// Gets the current text antialiasing mode of the bitmap render target. + /// + /// + /// Returns the antialiasing mode. + /// + STDMETHOD_(DWRITE_TEXT_ANTIALIAS_MODE, GetTextAntialiasMode)() PURE; + + /// + /// Sets the current text antialiasing mode of the bitmap render target. + /// + /// + /// Returns S_OK if successful, or E_INVALIDARG if the argument is not valid. + /// + /// + /// The antialiasing mode of a newly-created bitmap render target defaults to + /// DWRITE_TEXT_ANTIALIAS_MODE_CLEARTYPE. An application can change the antialiasing + /// mode by calling SetTextAntialiasMode. For example, an application might specify + /// grayscale antialiasing when rendering text onto a transparent bitmap. + /// + STDMETHOD(SetTextAntialiasMode)( + DWRITE_TEXT_ANTIALIAS_MODE antialiasMode + ) PURE; +}; + +#endif /* DWRITE_1_H_INCLUDED */ diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwrite_2.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwrite_2.h new file mode 100644 index 0000000000000000000000000000000000000000..9fb86ff4698f7cad406ef79b7255390bf1f697f6 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwrite_2.h @@ -0,0 +1,980 @@ +//+-------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Abstract: +// DirectX Typography Services public API definitions. +// +//---------------------------------------------------------------------------- + +#ifndef DWRITE_2_H_INCLUDED +#define DWRITE_2_H_INCLUDED + +#pragma once + +#include + + +interface IDWriteFontFallback; + + +/// +/// How to align glyphs to the margin. +/// +enum DWRITE_OPTICAL_ALIGNMENT +{ + /// + /// Align to the default metrics of the glyph. + /// + DWRITE_OPTICAL_ALIGNMENT_NONE, + + /// + /// Align glyphs to the margins. Without this, some small whitespace + /// may be present between the text and the margin from the glyph's side + /// bearing values. Note that glyphs may still overhang outside the + /// margin, such as flourishes or italic slants. + /// + DWRITE_OPTICAL_ALIGNMENT_NO_SIDE_BEARINGS, +}; + + +/// +/// Whether to enable grid-fitting of glyph outlines (a.k.a. hinting). +/// +enum DWRITE_GRID_FIT_MODE +{ + /// + /// Choose grid fitting base on the font's gasp table information. + /// + DWRITE_GRID_FIT_MODE_DEFAULT, + + /// + /// Always disable grid fitting, using the ideal glyph outlines. + /// + DWRITE_GRID_FIT_MODE_DISABLED, + + /// + /// Enable grid fitting, adjusting glyph outlines for device pixel display. + /// + DWRITE_GRID_FIT_MODE_ENABLED +}; + + +/// +/// Overall metrics associated with text after layout. +/// All coordinates are in device independent pixels (DIPs). +/// +struct DWRITE_TEXT_METRICS1 : DWRITE_TEXT_METRICS +{ + /// + /// The height of the formatted text taking into account the + /// trailing whitespace at the end of each line, which will + /// matter for vertical reading directions. + /// + FLOAT heightIncludingTrailingWhitespace; +}; + + +/// +/// The text renderer interface represents a set of application-defined +/// callbacks that perform rendering of text, inline objects, and decorations +/// such as underlines. +/// +interface DWRITE_DECLARE_INTERFACE("D3E0E934-22A0-427E-AAE4-7D9574B59DB1") IDWriteTextRenderer1 : public IDWriteTextRenderer +{ + /// + /// IDWriteTextLayout::Draw calls this function to instruct the client to + /// render a run of glyphs. + /// + /// The context passed to + /// IDWriteTextLayout::Draw. + /// X-coordinate of the baseline. + /// Y-coordinate of the baseline. + /// Orientation of the glyph run. + /// Specifies measuring method for glyphs in + /// the run. Renderer implementations may choose different rendering + /// modes for given measuring methods, but best results are seen when + /// the rendering mode matches the corresponding measuring mode: + /// DWRITE_RENDERING_MODE_CLEARTYPE_NATURAL for DWRITE_MEASURING_MODE_NATURAL + /// DWRITE_RENDERING_MODE_CLEARTYPE_GDI_CLASSIC for DWRITE_MEASURING_MODE_GDI_CLASSIC + /// DWRITE_RENDERING_MODE_CLEARTYPE_GDI_NATURAL for DWRITE_MEASURING_MODE_GDI_NATURAL + /// + /// The glyph run to draw. + /// Properties of the characters + /// associated with this run. + /// The drawing effect set in + /// IDWriteTextLayout::SetDrawingEffect. + /// + /// Standard HRESULT error code. + /// + /// + /// If a non-identity orientation is passed, the glyph run should be + /// rotated around the given baseline x and y coordinates. The function + /// IDWriteAnalyzer2::GetGlyphOrientationTransform will return the + /// necessary transform for you, which can be combined with any existing + /// world transform on the drawing context. + /// + STDMETHOD(DrawGlyphRun)( + _In_opt_ void* clientDrawingContext, + FLOAT baselineOriginX, + FLOAT baselineOriginY, + DWRITE_GLYPH_ORIENTATION_ANGLE orientationAngle, + DWRITE_MEASURING_MODE measuringMode, + _In_ DWRITE_GLYPH_RUN const* glyphRun, + _In_ DWRITE_GLYPH_RUN_DESCRIPTION const* glyphRunDescription, + _In_opt_ IUnknown* clientDrawingEffect + ) PURE; + + /// + /// IDWriteTextLayout::Draw calls this function to instruct the client to draw + /// an underline. + /// + /// The context passed to + /// IDWriteTextLayout::Draw. + /// X-coordinate of the baseline. + /// Y-coordinate of the baseline. + /// Orientation of the underline. + /// Underline logical information. + /// The drawing effect set in + /// IDWriteTextLayout::SetDrawingEffect. + /// + /// Standard HRESULT error code. + /// + /// + /// A single underline can be broken into multiple calls, depending on + /// how the formatting changes attributes. If font sizes/styles change + /// within an underline, the thickness and offset will be averaged + /// weighted according to characters. + /// + /// To get the correct top coordinate of the underline rect, add + /// underline::offset to the baseline's Y. Otherwise the underline will + /// be immediately under the text. The x coordinate will always be passed + /// as the left side, regardless of text directionality. This simplifies + /// drawing and reduces the problem of round-off that could potentially + /// cause gaps or a double stamped alpha blend. To avoid alpha overlap, + /// round the end points to the nearest device pixel. + /// + STDMETHOD(DrawUnderline)( + _In_opt_ void* clientDrawingContext, + FLOAT baselineOriginX, + FLOAT baselineOriginY, + DWRITE_GLYPH_ORIENTATION_ANGLE orientationAngle, + _In_ DWRITE_UNDERLINE const* underline, + _In_opt_ IUnknown* clientDrawingEffect + ) PURE; + + /// + /// IDWriteTextLayout::Draw calls this function to instruct the client to draw + /// a strikethrough. + /// + /// The context passed to + /// IDWriteTextLayout::Draw. + /// X-coordinate of the baseline. + /// Y-coordinate of the baseline. + /// Orientation of the strikethrough. + /// Strikethrough logical information. + /// The drawing effect set in + /// IDWriteTextLayout::SetDrawingEffect. + /// + /// Standard HRESULT error code. + /// + /// + /// A single strikethrough can be broken into multiple calls, depending on + /// how the formatting changes attributes. Strikethrough is not averaged + /// across font sizes/styles changes. + /// To get the correct top coordinate of the strikethrough rect, + /// add strikethrough::offset to the baseline's Y. + /// Like underlines, the x coordinate will always be passed as the left side, + /// regardless of text directionality. + /// + STDMETHOD(DrawStrikethrough)( + _In_opt_ void* clientDrawingContext, + FLOAT baselineOriginX, + FLOAT baselineOriginY, + DWRITE_GLYPH_ORIENTATION_ANGLE orientationAngle, + _In_ DWRITE_STRIKETHROUGH const* strikethrough, + _In_opt_ IUnknown* clientDrawingEffect + ) PURE; + + /// + /// IDWriteTextLayout::Draw calls this application callback when it needs to + /// draw an inline object. + /// + /// The context passed to + /// IDWriteTextLayout::Draw. + /// X-coordinate at the top-left corner of the + /// inline object. + /// Y-coordinate at the top-left corner of the + /// inline object. + /// Orientation of the inline object. + /// The object set using IDWriteTextLayout::SetInlineObject. + /// The object should be drawn on its side. + /// The object is in an right-to-left context + /// and should be drawn flipped. + /// The drawing effect set in + /// IDWriteTextLayout::SetDrawingEffect. + /// + /// Standard HRESULT error code. + /// + /// + /// The right-to-left flag is a hint to draw the appropriate visual for + /// that reading direction. For example, it would look strange to draw an + /// arrow pointing to the right to indicate a submenu. The sideways flag + /// similarly hints that the object is drawn in a different orientation. + /// If a non-identity orientation is passed, the top left of the inline + /// object should be rotated around the given x and y coordinates. + /// IDWriteAnalyzer2::GetGlyphOrientationTransform returns the necessary + /// transform for this. + /// + STDMETHOD(DrawInlineObject)( + _In_opt_ void* clientDrawingContext, + FLOAT originX, + FLOAT originY, + DWRITE_GLYPH_ORIENTATION_ANGLE orientationAngle, + _In_ IDWriteInlineObject* inlineObject, + BOOL isSideways, + BOOL isRightToLeft, + _In_opt_ IUnknown* clientDrawingEffect + ) PURE; + + using IDWriteTextRenderer::DrawGlyphRun; + using IDWriteTextRenderer::DrawUnderline; + using IDWriteTextRenderer::DrawStrikethrough; + using IDWriteTextRenderer::DrawInlineObject; +}; + + +/// +/// The format of text used for text layout. +/// +/// +/// This object may not be thread-safe and it may carry the state of text format change. +/// +interface DWRITE_DECLARE_INTERFACE("5F174B49-0D8B-4CFB-8BCA-F1CCE9D06C67") IDWriteTextFormat1 : public IDWriteTextFormat +{ + /// + /// Set the preferred orientation of glyphs when using a vertical reading direction. + /// + /// Preferred glyph orientation. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetVerticalGlyphOrientation)( + DWRITE_VERTICAL_GLYPH_ORIENTATION glyphOrientation + ) PURE; + + /// + /// Get the preferred orientation of glyphs when using a vertical reading + /// direction. + /// + STDMETHOD_(DWRITE_VERTICAL_GLYPH_ORIENTATION, GetVerticalGlyphOrientation)() PURE; + + /// + /// Set whether or not the last word on the last line is wrapped. + /// + /// Line wrapping option. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetLastLineWrapping)( + BOOL isLastLineWrappingEnabled + ) PURE; + + /// + /// Get whether or not the last word on the last line is wrapped. + /// + STDMETHOD_(BOOL, GetLastLineWrapping)() PURE; + + /// + /// Set how the glyphs align to the edges the margin. Default behavior is + /// to align glyphs using their default glyphs metrics which include side + /// bearings. + /// + /// Optical alignment option. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetOpticalAlignment)( + DWRITE_OPTICAL_ALIGNMENT opticalAlignment + ) PURE; + + /// + /// Get how the glyphs align to the edges the margin. + /// + STDMETHOD_(DWRITE_OPTICAL_ALIGNMENT, GetOpticalAlignment)() PURE; + + /// + /// Apply a custom font fallback onto layout. If none is specified, + /// layout uses the system fallback list. + /// + /// Custom font fallback created from + /// IDWriteFontFallbackBuilder::CreateFontFallback or from + /// IDWriteFactory2::GetSystemFontFallback. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetFontFallback)( + IDWriteFontFallback* fontFallback + ) PURE; + + /// + /// Get the current font fallback object. + /// + STDMETHOD(GetFontFallback)( + __out IDWriteFontFallback** fontFallback + ) PURE; +}; + + +/// +/// The text layout interface represents a block of text after it has +/// been fully analyzed and formatted. +/// +/// All coordinates are in device independent pixels (DIPs). +/// +interface DWRITE_DECLARE_INTERFACE("1093C18F-8D5E-43F0-B064-0917311B525E") IDWriteTextLayout2 : public IDWriteTextLayout1 +{ + /// + /// GetMetrics retrieves overall metrics for the formatted string. + /// + /// The returned metrics. + /// + /// Standard HRESULT error code. + /// + /// + /// Drawing effects like underline and strikethrough do not contribute + /// to the text size, which is essentially the sum of advance widths and + /// line heights. Additionally, visible swashes and other graphic + /// adornments may extend outside the returned width and height. + /// + STDMETHOD(GetMetrics)( + _Out_ DWRITE_TEXT_METRICS1* textMetrics + ) PURE; + + using IDWriteTextLayout::GetMetrics; + + /// + /// Set the preferred orientation of glyphs when using a vertical reading direction. + /// + /// Preferred glyph orientation. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetVerticalGlyphOrientation)( + DWRITE_VERTICAL_GLYPH_ORIENTATION glyphOrientation + ) PURE; + + /// + /// Get the preferred orientation of glyphs when using a vertical reading + /// direction. + /// + STDMETHOD_(DWRITE_VERTICAL_GLYPH_ORIENTATION, GetVerticalGlyphOrientation)() PURE; + + /// + /// Set whether or not the last word on the last line is wrapped. + /// + /// Line wrapping option. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetLastLineWrapping)( + BOOL isLastLineWrappingEnabled + ) PURE; + + /// + /// Get whether or not the last word on the last line is wrapped. + /// + STDMETHOD_(BOOL, GetLastLineWrapping)() PURE; + + /// + /// Set how the glyphs align to the edges the margin. Default behavior is + /// to align glyphs using their default glyphs metrics which include side + /// bearings. + /// + /// Optical alignment option. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetOpticalAlignment)( + DWRITE_OPTICAL_ALIGNMENT opticalAlignment + ) PURE; + + /// + /// Get how the glyphs align to the edges the margin. + /// + STDMETHOD_(DWRITE_OPTICAL_ALIGNMENT, GetOpticalAlignment)() PURE; + + /// + /// Apply a custom font fallback onto layout. If none is specified, + /// layout uses the system fallback list. + /// + /// Custom font fallback created from + /// IDWriteFontFallbackBuilder::CreateFontFallback or + /// IDWriteFactory2::GetSystemFontFallback. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetFontFallback)( + IDWriteFontFallback* fontFallback + ) PURE; + + /// + /// Get the current font fallback object. + /// + STDMETHOD(GetFontFallback)( + __out IDWriteFontFallback** fontFallback + ) PURE; +}; + + +/// +/// The text analyzer interface represents a set of application-defined +/// callbacks that perform rendering of text, inline objects, and decorations +/// such as underlines. +/// +interface DWRITE_DECLARE_INTERFACE("553A9FF3-5693-4DF7-B52B-74806F7F2EB9") IDWriteTextAnalyzer2 : public IDWriteTextAnalyzer1 +{ + /// + /// Returns 2x3 transform matrix for the respective angle to draw the + /// glyph run or other object. + /// + /// The angle reported to one of the application callbacks, + /// including IDWriteTextAnalysisSink1::SetGlyphOrientation and IDWriteTextRenderer1::Draw*. + /// Whether the run's glyphs are sideways or not. + /// X origin of the element, be it a glyph run or underline or other. + /// Y origin of the element, be it a glyph run or underline or other. + /// Returned transform. + /// + /// Standard HRESULT error code. + /// + /// + /// This rotates around the given origin x and y, returning a translation component + /// such that the glyph run, text decoration, or inline object is drawn with the + /// right orientation at the expected coordinate. + /// + STDMETHOD(GetGlyphOrientationTransform)( + DWRITE_GLYPH_ORIENTATION_ANGLE glyphOrientationAngle, + BOOL isSideways, + FLOAT originX, + FLOAT originY, + _Out_ DWRITE_MATRIX* transform + ) PURE; + + /// + /// Returns a list of typographic feature tags for the given script and language. + /// + /// The font face to get features from. + /// Script analysis result from AnalyzeScript. + /// The locale to use when selecting the feature, + /// such en-us or ja-jp. + /// Maximum tag count. + /// Actual tag count. If greater than + /// maxTagCount, E_NOT_SUFFICIENT_BUFFER is returned, and the call + /// should be retried with a larger buffer. + /// Feature tag list. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetTypographicFeatures)( + IDWriteFontFace* fontFace, + DWRITE_SCRIPT_ANALYSIS scriptAnalysis, + _In_opt_z_ WCHAR const* localeName, + UINT32 maxTagCount, + _Out_ UINT32* actualTagCount, + _Out_writes_(maxTagCount) DWRITE_FONT_FEATURE_TAG* tags + ) PURE; + + /// + /// Returns an array of which glyphs are affected by a given feature. + /// + /// The font face to read glyph information from. + /// Script analysis result from AnalyzeScript. + /// The locale to use when selecting the feature, + /// such en-us or ja-jp. + /// OpenType feature name to use, which may be one + /// of the DWRITE_FONT_FEATURE_TAG values or a custom feature using + /// DWRITE_MAKE_OPENTYPE_TAG. + /// Number of glyph indices to check. + /// Glyph indices to check for feature application. + /// Output of which glyphs are affected by the + /// feature, where for each glyph affected, the respective array index + /// will be 1. The result is returned per-glyph without regard to + /// neighboring context of adjacent glyphs. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CheckTypographicFeature)( + IDWriteFontFace* fontFace, + DWRITE_SCRIPT_ANALYSIS scriptAnalysis, + _In_opt_z_ WCHAR const* localeName, + DWRITE_FONT_FEATURE_TAG featureTag, + UINT32 glyphCount, + _In_reads_(glyphCount) UINT16 const* glyphIndices, + _Out_writes_(glyphCount) UINT8* featureApplies + ) PURE; + + using IDWriteTextAnalyzer1::GetGlyphOrientationTransform; +}; + + +/// +/// A font fallback definition used for mapping characters to fonts capable of +/// supporting them. +/// +interface DWRITE_DECLARE_INTERFACE("EFA008F9-F7A1-48BF-B05C-F224713CC0FF") IDWriteFontFallback : public IUnknown +{ + /// + /// Determines an appropriate font to use to render the range of text. + /// + /// The text source implementation holds the text and + /// locale. + /// Length of the text to analyze. + /// Default font collection to use. + /// Family name of the base font. If you pass + /// null, no matching will be done against the family. + /// Desired weight. + /// Desired style. + /// Desired stretch. + /// Length of text mapped to the mapped font. + /// This will always be less or equal to the input text length and + /// greater than zero (if the text length is non-zero) so that the + /// caller advances at least one character each call. + /// The font that should be used to render the + /// first mappedLength characters of the text. If it returns NULL, + /// then no known font can render the text, and mappedLength is the + /// number of unsupported characters to skip. + /// Scale factor to multiply the em size of the + /// returned font by. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(MapCharacters)( + IDWriteTextAnalysisSource* analysisSource, + UINT32 textPosition, + UINT32 textLength, + _In_opt_ IDWriteFontCollection* baseFontCollection, + _In_opt_z_ wchar_t const* baseFamilyName, + DWRITE_FONT_WEIGHT baseWeight, + DWRITE_FONT_STYLE baseStyle, + DWRITE_FONT_STRETCH baseStretch, + _Out_range_(0, textLength) UINT32* mappedLength, + _COM_Outptr_result_maybenull_ IDWriteFont** mappedFont, + _Out_ FLOAT* scale + ) PURE; +}; + + +/// +/// Builder used to create a font fallback definition by appending a series of +/// fallback mappings, followed by a creation call. +/// +/// +/// This object may not be thread-safe. +/// +interface DWRITE_DECLARE_INTERFACE("FD882D06-8ABA-4FB8-B849-8BE8B73E14DE") IDWriteFontFallbackBuilder : public IUnknown +{ + /// + /// Appends a single mapping to the list. Call this once for each additional mapping. + /// + /// Unicode ranges that apply to this mapping. + /// Number of Unicode ranges. + /// Locale of the context (e.g. document locale). + /// Base family name to match against, if applicable. + /// Explicit font collection for this mapping (optional). + /// List of target family name strings. + /// Number of target family names. + /// Scale factor to multiply the result target font by. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AddMapping)( + _In_reads_(rangesCount) DWRITE_UNICODE_RANGE const* ranges, + UINT32 rangesCount, + _In_reads_(targetFamilyNamesCount) WCHAR const** targetFamilyNames, + UINT32 targetFamilyNamesCount, + _In_opt_ IDWriteFontCollection* fontCollection = NULL, + _In_opt_z_ WCHAR const* localeName = NULL, + _In_opt_z_ WCHAR const* baseFamilyName = NULL, + FLOAT scale = 1.0f + ) PURE; + + /// + /// Appends all the mappings from an existing font fallback object. + /// + /// Font fallback to read mappings from. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AddMappings)( + IDWriteFontFallback* fontFallback + ) PURE; + + /// + /// Creates the finalized fallback object from the mappings added. + /// + /// Created fallback list. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFallback)( + _COM_Outptr_ IDWriteFontFallback** fontFallback + ) PURE; +}; + +/// +/// DWRITE_COLOR_F +/// +#ifndef D3DCOLORVALUE_DEFINED + +typedef struct _D3DCOLORVALUE { + union { + FLOAT r; + FLOAT dvR; + }; + union { + FLOAT g; + FLOAT dvG; + }; + union { + FLOAT b; + FLOAT dvB; + }; + union { + FLOAT a; + FLOAT dvA; + }; +} D3DCOLORVALUE; + +#define D3DCOLORVALUE_DEFINED +#endif // D3DCOLORVALUE_DEFINED + +typedef D3DCOLORVALUE DWRITE_COLOR_F; + +/// +/// The IDWriteFont interface represents a physical font in a font collection. +/// +interface DWRITE_DECLARE_INTERFACE("29748ed6-8c9c-4a6a-be0b-d912e8538944") IDWriteFont2 : public IDWriteFont1 +{ + /// + /// Returns TRUE if the font contains tables that can provide color information + /// (including COLR, CPAL, SVG, CBDT, sbix tables), or FALSE if not. Note that + /// TRUE is returned even in the case when the font tables contain only grayscale + /// images. + /// + STDMETHOD_(BOOL, IsColorFont)() PURE; +}; + +/// +/// The interface that represents an absolute reference to a font face. +/// It contains font face type, appropriate file references and face identification data. +/// Various font data such as metrics, names and glyph outlines is obtained from IDWriteFontFace. +/// +interface DWRITE_DECLARE_INTERFACE("d8b768ff-64bc-4e66-982b-ec8e87f693f7") IDWriteFontFace2 : public IDWriteFontFace1 +{ + /// + /// Returns TRUE if the font contains tables that can provide color information + /// (including COLR, CPAL, SVG, CBDT, sbix tables), or FALSE if not. Note that + /// TRUE is returned even in the case when the font tables contain only grayscale + /// images. + /// + STDMETHOD_(BOOL, IsColorFont)() PURE; + + /// + /// Returns the number of color palettes defined by the font. The return + /// value is zero if the font has no color information. Color fonts must + /// have at least one palette, with palette index zero being the default. + /// + STDMETHOD_(UINT32, GetColorPaletteCount)() PURE; + + /// + /// Returns the number of entries in each color palette. All color palettes + /// in a font have the same number of palette entries. The return value is + /// zero if the font has no color information. + /// + STDMETHOD_(UINT32, GetPaletteEntryCount)() PURE; + + /// + /// Reads color values from the font's color palette. + /// + /// Zero-based index of the color palette. If the + /// font does not have a palette with the specified index, the method returns + /// DWRITE_E_NOCOLOR. + /// Zero-based index of the first palette entry + /// to read. + /// Number of palette entries to read. + /// Array that receives the color values. + /// + /// Standard HRESULT error code. + /// The return value is E_INVALIDARG if firstEntryIndex + entryCount is greater + /// than the actual number of palette entries as returned by GetPaletteEntryCount. + /// The return value is DWRITE_E_NOCOLOR if the font does not have a palette + /// with the specified palette index. + /// + STDMETHOD(GetPaletteEntries)( + UINT32 colorPaletteIndex, + UINT32 firstEntryIndex, + UINT32 entryCount, + _Out_writes_(entryCount) DWRITE_COLOR_F* paletteEntries + ) PURE; + + /// + /// Determines the recommended text rendering and grid-fit mode to be used based on the + /// font, size, world transform, and measuring mode. + /// + /// Logical font size in DIPs. + /// Number of pixels per logical inch in the horizontal direction. + /// Number of pixels per logical inch in the vertical direction. + /// Specifies the world transform. + /// Specifies the quality of the graphics system's outline rendering, + /// affects the size threshold above which outline rendering is used. + /// Specifies the method used to measure during text layout. For proper + /// glyph spacing, the function returns a rendering mode that is compatible with the specified + /// measuring mode. + /// Rendering parameters object. This parameter is necessary in case the rendering parameters + /// object overrides the rendering mode. + /// Receives the recommended rendering mode. + /// Receives the recommended grid-fit mode. + /// + /// This method should be used to determine the actual rendering mode in cases where the rendering + /// mode of the rendering params object is DWRITE_RENDERING_MODE_DEFAULT, and the actual grid-fit + /// mode when the rendering params object is DWRITE_GRID_FIT_MODE_DEFAULT. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetRecommendedRenderingMode)( + FLOAT fontEmSize, + FLOAT dpiX, + FLOAT dpiY, + _In_opt_ DWRITE_MATRIX const* transform, + BOOL isSideways, + DWRITE_OUTLINE_THRESHOLD outlineThreshold, + DWRITE_MEASURING_MODE measuringMode, + _In_opt_ IDWriteRenderingParams* renderingParams, + _Out_ DWRITE_RENDERING_MODE* renderingMode, + _Out_ DWRITE_GRID_FIT_MODE* gridFitMode + ) PURE; + + using IDWriteFontFace1::GetRecommendedRenderingMode; +}; + +/// +/// Reserved palette entry index that does not specify any palette entry. +/// +#define DWRITE_NO_PALETTE_INDEX 0xFFFF + +/// +/// Represents a color glyph run. The IDWriteFactory2::TranslateColorGlyphRun +/// method returns an ordered collection of color glyph runs, which can be +/// layered on top of each other to produce a color representation of the +/// given base glyph run. +/// +struct DWRITE_COLOR_GLYPH_RUN +{ + /// + /// Glyph run to render. + /// + DWRITE_GLYPH_RUN glyphRun; + + /// + /// Optional glyph run description. + /// + _Maybenull_ DWRITE_GLYPH_RUN_DESCRIPTION* glyphRunDescription; + + /// + /// Location at which to draw this glyph run. + /// + FLOAT baselineOriginX; + FLOAT baselineOriginY; + + /// + /// Color to use for this layer, if any. If the paletteIndex member is + /// DWRITE_NO_PALETTE_INDEX (0xFFFF) then no color is specifed by the font, + /// this member is set to { 0, 0, 0, 0 }, and the client should use the + /// current foreground brush. Otherwise, this member is set to a color from + /// the font's color palette, i.e., the same color that would be returned + /// by IDWriteFontFace2::GetPaletteEntries for the current palette index. + /// + DWRITE_COLOR_F runColor; + + /// + /// Zero-based index of this layer's color entry in the current color + /// palette, or DWRITE_NO_PALETTE_INDEX (0xFFFF) if this layer + /// is to be rendered using the current foreground brush. + /// + UINT16 paletteIndex; +}; + +/// +/// Enumerator for an ordered collection of color glyph runs. +/// +interface DWRITE_DECLARE_INTERFACE("d31fbe17-f157-41a2-8d24-cb779e0560e8") IDWriteColorGlyphRunEnumerator : public IUnknown +{ + /// + /// Advances to the first or next color run. The runs are enumerated + /// in order from back to front. + /// + /// Receives TRUE if there is a current run or + /// FALSE if the end of the sequence has been reached. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(MoveNext)( + _Out_ BOOL* hasRun + ) PURE; + + /// + /// Gets the current color glyph run. + /// + /// Receives a pointer to the color + /// glyph run. The pointer remains valid until the next call to + /// MoveNext or until the interface is released. + /// + /// Standard HRESULT error code. An error is returned if there is + /// no current glyph run, i.e., if MoveNext has not yet been called + /// or if the end of the sequence has been reached. + /// + STDMETHOD(GetCurrentRun)( + _Outptr_ DWRITE_COLOR_GLYPH_RUN const** colorGlyphRun + ) PURE; +}; + +/// +/// The interface that represents text rendering settings for glyph rasterization and filtering. +/// +interface DWRITE_DECLARE_INTERFACE("F9D711C3-9777-40AE-87E8-3E5AF9BF0948") IDWriteRenderingParams2 : public IDWriteRenderingParams1 +{ + /// + /// Gets the grid fitting mode. + /// + STDMETHOD_(DWRITE_GRID_FIT_MODE, GetGridFitMode)() PURE; +}; + +/// +/// The root factory interface for all DWrite objects. +/// +interface DWRITE_DECLARE_INTERFACE("0439fc60-ca44-4994-8dee-3a9af7b732ec") IDWriteFactory2 : public IDWriteFactory1 +{ + /// + /// Get the system-appropriate font fallback mapping list. + /// + /// The system fallback list. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetSystemFontFallback)( + _COM_Outptr_ IDWriteFontFallback** fontFallback + ) PURE; + + /// + /// Create a custom font fallback builder. + /// + /// Empty font fallback builder. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFallbackBuilder)( + _COM_Outptr_ IDWriteFontFallbackBuilder** fontFallbackBuilder + ) PURE; + + /// + /// Translates a glyph run to a sequence of color glyph runs, which can be + /// rendered to produce a color representation of the original "base" run. + /// + /// Horizontal origin of the base glyph run in + /// pre-transform coordinates. + /// Vertical origin of the base glyph run in + /// pre-transform coordinates. + /// Pointer to the original "base" glyph run. + /// Optional glyph run description. + /// Measuring mode, needed to compute the origins + /// of each glyph. + /// Matrix converting from the client's + /// coordinate space to device coordinates (pixels), i.e., the world transform + /// multiplied by any DPI scaling. + /// Zero-based index of the color palette to use. + /// Valid indices are less than the number of palettes in the font, as returned + /// by IDWriteFontFace2::GetColorPaletteCount. + /// If the function succeeds, receives a pointer + /// to an enumerator object that can be used to obtain the color glyph runs. + /// If the base run has no color glyphs, then the output pointer is NULL + /// and the method returns DWRITE_E_NOCOLOR. + /// + /// Returns DWRITE_E_NOCOLOR if the font has no color information, the base + /// glyph run does not contain any color glyphs, or the specified color palette + /// index is out of range. In this case, the client should render the base glyph + /// run. Otherwise, returns a standard HRESULT error code. + /// + STDMETHOD(TranslateColorGlyphRun)( + FLOAT baselineOriginX, + FLOAT baselineOriginY, + _In_ DWRITE_GLYPH_RUN const* glyphRun, + _In_opt_ DWRITE_GLYPH_RUN_DESCRIPTION const* glyphRunDescription, + DWRITE_MEASURING_MODE measuringMode, + _In_opt_ DWRITE_MATRIX const* worldToDeviceTransform, + UINT32 colorPaletteIndex, + _COM_Outptr_ IDWriteColorGlyphRunEnumerator** colorLayers + ) PURE; + + /// + /// Creates a rendering parameters object with the specified properties. + /// + /// The gamma value used for gamma correction, which must be greater than zero and cannot exceed 256. + /// The amount of contrast enhancement, zero or greater. + /// The degree of ClearType level, from 0.0f (no ClearType) to 1.0f (full ClearType). + /// The geometry of a device pixel. + /// Method of rendering glyphs. In most cases, this should be DWRITE_RENDERING_MODE_DEFAULT to automatically use an appropriate mode. + /// How to grid fit glyph outlines. In most cases, this should be DWRITE_GRID_FIT_DEFAULT to automatically choose an appropriate mode. + /// Holds the newly created rendering parameters object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateCustomRenderingParams)( + FLOAT gamma, + FLOAT enhancedContrast, + FLOAT grayscaleEnhancedContrast, + FLOAT clearTypeLevel, + DWRITE_PIXEL_GEOMETRY pixelGeometry, + DWRITE_RENDERING_MODE renderingMode, + DWRITE_GRID_FIT_MODE gridFitMode, + _COM_Outptr_ IDWriteRenderingParams2** renderingParams + ) PURE; + + using IDWriteFactory::CreateCustomRenderingParams; + using IDWriteFactory1::CreateCustomRenderingParams; + + /// + /// Creates a glyph run analysis object, which encapsulates information + /// used to render a glyph run. + /// + /// Structure specifying the properties of the glyph run. + /// Optional transform applied to the glyphs and their positions. This transform is applied after the + /// scaling specified by the emSize and pixelsPerDip. + /// Specifies the rendering mode, which must be one of the raster rendering modes (i.e., not default + /// and not outline). + /// Specifies the method to measure glyphs. + /// How to grid-fit glyph outlines. This must be non-default. + /// Horizontal position of the baseline origin, in DIPs. + /// Vertical position of the baseline origin, in DIPs. + /// Receives a pointer to the newly created object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateGlyphRunAnalysis)( + _In_ DWRITE_GLYPH_RUN const* glyphRun, + _In_opt_ DWRITE_MATRIX const* transform, + DWRITE_RENDERING_MODE renderingMode, + DWRITE_MEASURING_MODE measuringMode, + DWRITE_GRID_FIT_MODE gridFitMode, + DWRITE_TEXT_ANTIALIAS_MODE antialiasMode, + FLOAT baselineOriginX, + FLOAT baselineOriginY, + _COM_Outptr_ IDWriteGlyphRunAnalysis** glyphRunAnalysis + ) PURE; + + using IDWriteFactory::CreateGlyphRunAnalysis; +}; + + +#endif /* DWRITE_2_H_INCLUDED */ diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwrite_3.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwrite_3.h new file mode 100644 index 0000000000000000000000000000000000000000..01a3b56cc5c618e1d510251269a8d2ee67d8078e --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwrite_3.h @@ -0,0 +1,4552 @@ +//+-------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Abstract: +// DirectX Typography Services public API definitions. +// +//---------------------------------------------------------------------------- + +#ifndef DWRITE_3_H_INCLUDED +#define DWRITE_3_H_INCLUDED + +#pragma once + +#include + +interface IDWriteFontFaceReference; +interface IDWriteFont3; +interface IDWriteFontFace3; +interface IDWriteFontSet; +interface IDWriteFontSetBuilder; +interface IDWriteFontCollection1; +interface IDWriteFontFamily1; +interface IDWriteStringList; +interface IDWriteFontDownloadQueue; + + +/// +/// A font resource could not be accessed because it was remote. This can happen +/// when calling CreateFontFace on a non-local font or trying to measure/draw +/// glyphs that are not downloaded yet. +/// +#ifndef DWRITE_E_REMOTEFONT +#define DWRITE_E_REMOTEFONT _HRESULT_TYPEDEF_(0x8898500DL) +#endif + +/// +/// The download was canceled, which happens if the application calls +/// IDWriteFontDownloadQueue::CancelDownload before they finish. +/// +#ifndef DWRITE_E_DOWNLOADCANCELLED +#define DWRITE_E_DOWNLOADCANCELLED _HRESULT_TYPEDEF_(0x8898500EL) +#endif + +/// +/// The download failed to complete because the remote resource is missing +/// or the network is down. +/// +#ifndef DWRITE_E_DOWNLOADFAILED +#define DWRITE_E_DOWNLOADFAILED _HRESULT_TYPEDEF_(0x8898500FL) +#endif + +/// +/// A download request was not added or a download failed because there +/// are too many active downloads. +/// +#ifndef DWRITE_E_TOOMANYDOWNLOADS +#define DWRITE_E_TOOMANYDOWNLOADS _HRESULT_TYPEDEF_(0x88985010L) +#endif + +/// +/// The font property enumeration identifies a string in a font. +/// +enum DWRITE_FONT_PROPERTY_ID +{ + /// + /// Unspecified font property identifier. + /// + DWRITE_FONT_PROPERTY_ID_NONE, + + /// + /// Family name for the weight-stretch-style model. + /// + DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FAMILY_NAME, + + /// + /// Family name preferred by the designer. This enables font designers to group more than four fonts in a single family without losing compatibility with + /// GDI. This name is typically only present if it differs from the GDI-compatible family name. + /// + DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FAMILY_NAME, + + /// + /// Face name of the for the weight-stretch-style (e.g., Regular or Bold). + /// + DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FACE_NAME, + + /// + /// The full name of the font, e.g. "Arial Bold", from name id 4 in the name table. + /// + DWRITE_FONT_PROPERTY_ID_FULL_NAME, + + /// + /// GDI-compatible family name. Because GDI allows a maximum of four fonts per family, fonts in the same family may have different GDI-compatible family names + /// (e.g., "Arial", "Arial Narrow", "Arial Black"). + /// + DWRITE_FONT_PROPERTY_ID_WIN32_FAMILY_NAME, + + /// + /// The postscript name of the font, e.g. "GillSans-Bold" from name id 6 in the name table. + /// + DWRITE_FONT_PROPERTY_ID_POSTSCRIPT_NAME, + + /// + /// Script/language tag to identify the scripts or languages that the font was + /// primarily designed to support. + /// + /// + /// The design script/language tag is meant to be understood from the perspective of + /// users. For example, a font is considered designed for English if it is considered + /// useful for English users. Note that this is different from what a font might be + /// capable of supporting. For example, the Meiryo font was primarily designed for + /// Japanese users. While it is capable of displaying English well, it was not + /// meant to be offered for the benefit of non-Japanese-speaking English users. + /// + /// As another example, a font designed for Chinese may be capable of displaying + /// Japanese text, but would likely look incorrect to Japanese users. + /// + /// The valid values for this property are "ScriptLangTag" values. These are adapted + /// from the IETF BCP 47 specification, "Tags for Identifying Languages" (see + /// http://tools.ietf.org/html/bcp47). In a BCP 47 language tag, a language subtag + /// element is mandatory and other subtags are optional. In a ScriptLangTag, a + /// script subtag is mandatory and other subtags are option. The following + /// augmented BNF syntax, adapted from BCP 47, is used: + /// + /// ScriptLangTag = [language "-"] + /// script + /// ["-" region] + /// *("-" variant) + /// *("-" extension) + /// ["-" privateuse] + /// + /// The expansion of the elements and the intended semantics associated with each + /// are as defined in BCP 47. Script subtags are taken from ISO 15924. At present, + /// no extensions are defined, and any extension should be ignored. Private use + /// subtags are defined by private agreement between the source and recipient and + /// may be ignored. + /// + /// Subtags must be valid for use in BCP 47 and contained in the Language Subtag + /// Registry maintained by IANA. (See + /// http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry + /// and section 3 of BCP 47 for details. + /// + /// Any ScriptLangTag value not conforming to these specifications is ignored. + /// + /// Examples: + /// "Latn" denotes Latin script (and any language or writing system using Latin) + /// "Cyrl" denotes Cyrillic script + /// "sr-Cyrl" denotes Cyrillic script as used for writing the Serbian language; + /// a font that has this property value may not be suitable for displaying + /// text in Russian or other languages written using Cyrillic script + /// "Jpan" denotes Japanese writing (Han + Hiragana + Katakana) + /// + /// When passing this property to GetPropertyValues, use the overload which does + /// not take a language parameter, since this property has no specific language. + /// + DWRITE_FONT_PROPERTY_ID_DESIGN_SCRIPT_LANGUAGE_TAG, + + /// + /// Script/language tag to identify the scripts or languages that the font declares + /// it is able to support. + /// + DWRITE_FONT_PROPERTY_ID_SUPPORTED_SCRIPT_LANGUAGE_TAG, + + /// + /// Semantic tag to describe the font (e.g. Fancy, Decorative, Handmade, Sans-serif, Swiss, Pixel, Futuristic). + /// + DWRITE_FONT_PROPERTY_ID_SEMANTIC_TAG, + + /// + /// Weight of the font represented as a decimal string in the range 1-999. + /// + /// + /// This enum is discouraged for use with IDWriteFontSetBuilder2 in favor of the more generic font axis + /// DWRITE_FONT_AXIS_TAG_WEIGHT which supports higher precision and range. + /// + DWRITE_FONT_PROPERTY_ID_WEIGHT, + + /// + /// Stretch of the font represented as a decimal string in the range 1-9. + /// + /// + /// This enum is discouraged for use with IDWriteFontSetBuilder2 in favor of the more generic font axis + /// DWRITE_FONT_AXIS_TAG_WIDTH which supports higher precision and range. + /// + DWRITE_FONT_PROPERTY_ID_STRETCH, + + /// + /// Style of the font represented as a decimal string in the range 0-2. + /// + /// + /// This enum is discouraged for use with IDWriteFontSetBuilder2 in favor of the more generic font axes + /// DWRITE_FONT_AXIS_TAG_SLANT and DWRITE_FONT_AXIS_TAG_ITAL. + /// + DWRITE_FONT_PROPERTY_ID_STYLE, + + /// + /// Face name preferred by the designer. This enables font designers to group more than four fonts in a single + /// family without losing compatibility with GDI. + /// + DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FACE_NAME, + + /// + /// Total number of properties for NTDDI_WIN10 (IDWriteFontSet). + /// + /// + /// DWRITE_FONT_PROPERTY_ID_TOTAL cannot be used as a property ID. + /// + DWRITE_FONT_PROPERTY_ID_TOTAL = DWRITE_FONT_PROPERTY_ID_STYLE + 1, + + /// + /// Total number of properties for NTDDI_WIN10_RS3 (IDWriteFontSet1). + /// + DWRITE_FONT_PROPERTY_ID_TOTAL_RS3 = DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FACE_NAME + 1, + + // Obsolete aliases kept to avoid breaking existing code. + DWRITE_FONT_PROPERTY_ID_PREFERRED_FAMILY_NAME = DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FAMILY_NAME, + DWRITE_FONT_PROPERTY_ID_FAMILY_NAME = DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FAMILY_NAME, + DWRITE_FONT_PROPERTY_ID_FACE_NAME = DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FACE_NAME, +}; + + +/// +/// Font property used for filtering font sets and +/// building a font set with explicit properties. +/// +struct DWRITE_FONT_PROPERTY +{ + /// + /// Specifies the requested font property, such as DWRITE_FONT_PROPERTY_ID_FAMILY_NAME. + /// + DWRITE_FONT_PROPERTY_ID propertyId; + + /// + /// Specifies the property value, such as "Segoe UI". + /// + _Field_z_ WCHAR const* propertyValue; + + /// + /// Specifies the language / locale to use, such as "en-US". + /// + /// + /// When passing property information to AddFontFaceReference, localeName indicates + /// the language of the property value. BCP 47 language tags should be used. If a + /// property value is inherently non-linguistic, this can be left empty. + /// + /// When used for font set filtering, leave this empty: a match will be found + /// regardless of language associated with property values. + /// + _Field_z_ _Maybenull_ WCHAR const* localeName; +}; + + +/// +/// Specifies the locality of a resource. +/// +enum DWRITE_LOCALITY +{ + /// + /// The resource is remote, and information is unknown yet, including the file size and date. + /// Attempting to create a font or file stream will fail until locality becomes at least partial. + /// + DWRITE_LOCALITY_REMOTE, + + /// + /// The resource is partially local, meaning you can query the size and date of the file + /// stream, and you may be able to create a font face and retrieve the particular glyphs + /// for metrics and drawing, but not all the glyphs will be present. + /// + DWRITE_LOCALITY_PARTIAL, + + /// + /// The resource is completely local, and all font functions can be called + /// without concern of missing data or errors related to network connectivity. + /// + DWRITE_LOCALITY_LOCAL, +}; + + +/// +/// Represents a method of rendering glyphs. +/// +enum DWRITE_RENDERING_MODE1 +{ + /// + /// Specifies that the rendering mode is determined automatically based on the font and size. + /// + DWRITE_RENDERING_MODE1_DEFAULT = DWRITE_RENDERING_MODE_DEFAULT, + + /// + /// Specifies that no antialiasing is performed. Each pixel is either set to the foreground + /// color of the text or retains the color of the background. + /// + DWRITE_RENDERING_MODE1_ALIASED = DWRITE_RENDERING_MODE_ALIASED, + + /// + /// Specifies that antialiasing is performed in the horizontal direction and the appearance + /// of glyphs is layout-compatible with GDI using CLEARTYPE_QUALITY. Use DWRITE_MEASURING_MODE_GDI_CLASSIC + /// to get glyph advances. The antialiasing may be either ClearType or grayscale depending on + /// the text antialiasing mode. + /// + DWRITE_RENDERING_MODE1_GDI_CLASSIC = DWRITE_RENDERING_MODE_GDI_CLASSIC, + + /// + /// Specifies that antialiasing is performed in the horizontal direction and the appearance + /// of glyphs is layout-compatible with GDI using CLEARTYPE_NATURAL_QUALITY. Glyph advances + /// are close to the font design advances, but are still rounded to whole pixels. Use + /// DWRITE_MEASURING_MODE_GDI_NATURAL to get glyph advances. The antialiasing may be either + /// ClearType or grayscale depending on the text antialiasing mode. + /// + DWRITE_RENDERING_MODE1_GDI_NATURAL = DWRITE_RENDERING_MODE_GDI_NATURAL, + + /// + /// Specifies that antialiasing is performed in the horizontal direction. This rendering + /// mode allows glyphs to be positioned with subpixel precision and is therefore suitable + /// for natural (i.e., resolution-independent) layout. The antialiasing may be either + /// ClearType or grayscale depending on the text antialiasing mode. + /// + DWRITE_RENDERING_MODE1_NATURAL = DWRITE_RENDERING_MODE_NATURAL, + + /// + /// Similar to natural mode except that antialiasing is performed in both the horizontal + /// and vertical directions. This is typically used at larger sizes to make curves and + /// diagonal lines look smoother. The antialiasing may be either ClearType or grayscale + /// depending on the text antialiasing mode. + /// + DWRITE_RENDERING_MODE1_NATURAL_SYMMETRIC = DWRITE_RENDERING_MODE_NATURAL_SYMMETRIC, + + /// + /// Specifies that rendering should bypass the rasterizer and use the outlines directly. + /// This is typically used at very large sizes. + /// + DWRITE_RENDERING_MODE1_OUTLINE = DWRITE_RENDERING_MODE_OUTLINE, + + /// + /// Similar to natural symmetric mode except that when possible, text should be rasterized + /// in a downsampled form. + /// + DWRITE_RENDERING_MODE1_NATURAL_SYMMETRIC_DOWNSAMPLED, +}; + + +/// +/// The interface that represents text rendering settings for glyph rasterization and filtering. +/// +interface DWRITE_DECLARE_INTERFACE("B7924BAA-391B-412A-8C5C-E44CC2D867DC") IDWriteRenderingParams3 : public IDWriteRenderingParams2 +{ + /// + /// Gets the rendering mode. + /// + STDMETHOD_(DWRITE_RENDERING_MODE1, GetRenderingMode1)() PURE; +}; + + +/// +/// The root factory interface for all DWrite objects. +/// +interface DWRITE_DECLARE_INTERFACE("9A1B41C3-D3BB-466A-87FC-FE67556A3B65") IDWriteFactory3 : public IDWriteFactory2 +{ + /// + /// Creates a glyph run analysis object, which encapsulates information + /// used to render a glyph run. + /// + /// Structure specifying the properties of the glyph run. + /// Optional transform applied to the glyphs and their positions. This transform is applied after the + /// scaling specified by the emSize. + /// Specifies the rendering mode, which must be one of the raster rendering modes (i.e., not default + /// and not outline). + /// Specifies the method to measure glyphs. + /// How to grid-fit glyph outlines. This must be non-default. + /// Horizontal position of the baseline origin, in DIPs. + /// Vertical position of the baseline origin, in DIPs. + /// Receives a pointer to the newly created object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateGlyphRunAnalysis)( + _In_ DWRITE_GLYPH_RUN const* glyphRun, + _In_opt_ DWRITE_MATRIX const* transform, + DWRITE_RENDERING_MODE1 renderingMode, + DWRITE_MEASURING_MODE measuringMode, + DWRITE_GRID_FIT_MODE gridFitMode, + DWRITE_TEXT_ANTIALIAS_MODE antialiasMode, + FLOAT baselineOriginX, + FLOAT baselineOriginY, + _COM_Outptr_ IDWriteGlyphRunAnalysis** glyphRunAnalysis + ) PURE; + + using IDWriteFactory::CreateGlyphRunAnalysis; + using IDWriteFactory2::CreateGlyphRunAnalysis; + + /// + /// Creates a rendering parameters object with the specified properties. + /// + /// The gamma value used for gamma correction, which must be greater than zero and cannot exceed 256. + /// The amount of contrast enhancement, zero or greater. + /// The amount of contrast enhancement to use for grayscale antialiasing, zero or greater. + /// The degree of ClearType level, from 0.0f (no ClearType) to 1.0f (full ClearType). + /// The geometry of a device pixel. + /// Method of rendering glyphs. In most cases, this should be DWRITE_RENDERING_MODE_DEFAULT to automatically use an appropriate mode. + /// How to grid fit glyph outlines. In most cases, this should be DWRITE_GRID_FIT_DEFAULT to automatically choose an appropriate mode. + /// Receives a pointer to the newly created rendering parameters object, or NULL in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateCustomRenderingParams)( + FLOAT gamma, + FLOAT enhancedContrast, + FLOAT grayscaleEnhancedContrast, + FLOAT clearTypeLevel, + DWRITE_PIXEL_GEOMETRY pixelGeometry, + DWRITE_RENDERING_MODE1 renderingMode, + DWRITE_GRID_FIT_MODE gridFitMode, + _COM_Outptr_ IDWriteRenderingParams3** renderingParams + ) PURE; + + using IDWriteFactory::CreateCustomRenderingParams; + using IDWriteFactory1::CreateCustomRenderingParams; + using IDWriteFactory2::CreateCustomRenderingParams; + + /// + /// Creates a reference to a font given a full path. + /// + /// Absolute file path. Subsequent operations on the constructed object may fail + /// if the user provided filePath doesn't correspond to a valid file on the disk. + /// Last modified time of the input file path. If the parameter is omitted, + /// the function will access the font file to obtain its last write time, so the clients are encouraged to specify this value + /// to avoid extra disk access. Subsequent operations on the constructed object may fail + /// if the user provided lastWriteTime doesn't match the file on the disk. + /// The zero based index of a font face in cases when the font files contain a collection of font faces. + /// If the font files contain a single face, this value should be zero. + /// Font face simulation flags for algorithmic emboldening and italicization. + /// Receives a pointer to the newly created font face reference object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFaceReference)( + _In_z_ WCHAR const* filePath, + _In_opt_ FILETIME const* lastWriteTime, + UINT32 faceIndex, + DWRITE_FONT_SIMULATIONS fontSimulations, + _COM_Outptr_ IDWriteFontFaceReference** fontFaceReference + ) PURE; + + /// + /// Creates a reference to a font given a file. + /// + /// User provided font file representing the font face. + /// The zero based index of a font face in cases when the font files contain a collection of font faces. + /// If the font files contain a single face, this value should be zero. + /// Font face simulation flags for algorithmic emboldening and italicization. + /// Receives a pointer to the newly created font face reference object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFaceReference)( + _In_ IDWriteFontFile* fontFile, + UINT32 faceIndex, + DWRITE_FONT_SIMULATIONS fontSimulations, + _COM_Outptr_ IDWriteFontFaceReference** fontFaceReference + ) PURE; + + /// + /// Retrieves the list of system fonts. + /// + /// Receives a pointer to the font set object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetSystemFontSet)( + _COM_Outptr_ IDWriteFontSet** fontSet + ) PURE; + + /// + /// Creates an empty font set builder to add font face references + /// and create a custom font set. + /// + /// Receives a pointer to the newly created font set builder object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontSetBuilder)( + _COM_Outptr_ IDWriteFontSetBuilder** fontSetBuilder + ) PURE; + + /// + /// Create a weight-stretch-style based collection of families (DWRITE_FONT_FAMILY_MODEL_WEIGHT_STRETCH_STYLE) + /// from a set of fonts. + /// + /// A set of fonts to use to build the collection. + /// Receives a pointer to the newly created font collection object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontCollectionFromFontSet)( + IDWriteFontSet* fontSet, + _COM_Outptr_ IDWriteFontCollection1** fontCollection + ) PURE; + + /// + /// Retrieves a weight-stretch-style based collection of font families. + /// + /// Include downloadable fonts or only locally installed ones. + /// Receives a pointer to the newly created font collection object, or nullptr in + /// case of failure. + /// If this parameter is nonzero, the function performs an immediate check for changes + /// to the set of system fonts. If this parameter is FALSE, the function will still detect changes if the font + /// cache service is running, but there may be some latency. For example, an application might specify TRUE if + /// it has itself just installed a font and wants to be sure the font collection contains that font. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetSystemFontCollection)( + BOOL includeDownloadableFonts, + _COM_Outptr_ IDWriteFontCollection1** fontCollection, + BOOL checkForUpdates = FALSE + ) PURE; + + using IDWriteFactory::GetSystemFontCollection; + + /// + /// Gets the font download queue associated with this factory object. + /// + /// Receives a pointer to the font download queue interface. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontDownloadQueue)( + _COM_Outptr_ IDWriteFontDownloadQueue** fontDownloadQueue + ) PURE; +}; + + +/// +/// Set of fonts used for creating font faces, selecting nearest matching fonts, and filtering. +/// Unlike IDWriteFontFamily and IDWriteFontList, which are part of the IDWriteFontCollection heirarchy, font sets +/// are unordered flat lists. +/// +interface DWRITE_DECLARE_INTERFACE("53585141-D9F8-4095-8321-D73CF6BD116B") IDWriteFontSet : public IUnknown +{ + /// + /// Get the number of total fonts in the set. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD_(UINT32, GetFontCount)() PURE; + + /// + /// Get a reference to the font at this index, which may be local or remote. + /// + /// Zero-based index of the font. + /// Receives a pointer the font face reference object, or nullptr on failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFaceReference)( + UINT32 listIndex, + _COM_Outptr_ IDWriteFontFaceReference** fontFaceReference + ) PURE; + + /// + /// Gets the index of the matching font face reference in the font set, with the same file, face index, and simulations. + /// + /// Font face reference object that specifies the physical font. + /// Receives the zero-based index of the matching font if the font was found, or UINT_MAX otherwise. + /// Receives TRUE if the font exists or FALSE otherwise. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(FindFontFaceReference)( + IDWriteFontFaceReference* fontFaceReference, + _Out_ UINT32* listIndex, + _Out_ BOOL* exists + ) PURE; + + /// + /// Gets the index of the matching font face reference in the font set, with the same file, face index, and simulations. + /// + /// Font face object that specifies the physical font. + /// Receives the zero-based index of the matching font if the font was found, or UINT_MAX otherwise. + /// Receives TRUE if the font exists or FALSE otherwise. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(FindFontFace)( + IDWriteFontFace* fontFace, + _Out_ UINT32* listIndex, + _Out_ BOOL* exists + ) PURE; + + /// + /// Returns the property values of a specific font item index. + /// + /// Zero-based index of the font. + /// Font property of interest. + /// Receives the value TRUE if the font contains the specified property identifier or FALSE if not. + /// Receives a pointer to the newly created localized strings object, or nullptr on failure or non-existent property. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetPropertyValues)( + UINT32 listIndex, + DWRITE_FONT_PROPERTY_ID propertyId, + _Out_ BOOL* exists, + _COM_Outptr_result_maybenull_ IDWriteLocalizedStrings** values + ) PURE; + + /// + /// Returns all unique property values in the set, which can be used + /// for purposes such as displaying a family list or tag cloud. Values are + /// returned in priority order according to the language list, such that if + /// a font contains more than one localized name, the preferred one will be + /// returned. + /// + /// Font property of interest. + /// List of semicolon delimited language names in preferred + /// order. When a particular string like font family has more than one localized name, + /// the first match is returned. + /// Receives a pointer to the newly created strings list. + /// + /// Standard HRESULT error code. + /// + /// + /// For example, suppose the font set includes the Meiryo family, which has both Japanese and English family names. + /// The returned list of distinct family names would include either the Japanese name (if "ja-jp" was specified as + /// a preferred locale) or the English name (in all other cases). + /// + STDMETHOD(GetPropertyValues)( + DWRITE_FONT_PROPERTY_ID propertyID, + _In_z_ WCHAR const* preferredLocaleNames, + _COM_Outptr_ IDWriteStringList** values + ) PURE; + + /// + /// Returns all unique property values in the set, which can be used + /// for purposes such as displaying a family list or tag cloud. All values + /// are returned regardless of language, including all localized names. + /// + /// Font property of interest. + /// Receives a pointer to the newly created strings list. + /// + /// Standard HRESULT error code. + /// + /// + /// For example, suppose the font set includes the Meiryo family, which has both Japanese and English family names. + /// The returned list of distinct family names would include both the Japanese and English names. + /// + STDMETHOD(GetPropertyValues)( + DWRITE_FONT_PROPERTY_ID propertyID, + _COM_Outptr_ IDWriteStringList** values + ) PURE; + + /// + /// Returns how many times a given property value occurs in the set. + /// + /// Font property of interest. + /// How many times that property occurs. + /// + /// Standard HRESULT error code. + /// + /// + /// For example, the family name "Segoe UI" may return a count of 12, + /// whereas Harrington only has 1. + /// + STDMETHOD(GetPropertyOccurrenceCount)( + _In_ DWRITE_FONT_PROPERTY const* property, + _Out_ UINT32* propertyOccurrenceCount + ) PURE; + + /// + /// Returns a subset of fonts filtered by the given properties. + /// + /// List of properties to filter using. + /// How many properties to filter. + /// Subset of fonts that match the properties, + /// or nullptr on failure. + /// + /// Standard HRESULT error code. + /// + /// + /// If no fonts matched the filter, the subset will be empty (GetFontCount + /// returns 0), but the function does not return an error. The subset will + /// always be equal to or less than the original set. + /// + STDMETHOD(GetMatchingFonts)( + _In_reads_(propertyCount) DWRITE_FONT_PROPERTY const* properties, + UINT32 propertyCount, + _COM_Outptr_ IDWriteFontSet** filteredSet + ) PURE; + + /// + /// Returns a list of fonts within the given WWS family prioritized by + /// WWS distance. + /// + /// Neutral or localized family name of font. + /// Weight of font. + /// Stretch of font. + /// Slope of font. + /// Subset of fonts that match the properties, + /// or nullptr on failure. + /// + /// Standard HRESULT error code. + /// + /// + /// The returned list can include simulated bold and oblique variants, + /// which would be useful for font fallback selection. + /// + STDMETHOD(GetMatchingFonts)( + _In_z_ WCHAR const* familyName, + DWRITE_FONT_WEIGHT fontWeight, + DWRITE_FONT_STRETCH fontStretch, + DWRITE_FONT_STYLE fontStyle, + _COM_Outptr_ IDWriteFontSet** filteredSet + ) PURE; +}; + + +/// +/// Builder interface to add font face references and create a font set. +/// +interface DWRITE_DECLARE_INTERFACE("2F642AFE-9C68-4F40-B8BE-457401AFCB3D") IDWriteFontSetBuilder : public IUnknown +{ + /// + /// Adds a reference to a font to the set being built. The necessary + /// metadata will automatically be extracted from the font upon calling + /// CreateFontSet. + /// + /// Font face reference object to add to the set. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AddFontFaceReference)( + _In_ IDWriteFontFaceReference* fontFaceReference + ) PURE; + + /// + /// Adds a reference to a font to the set being built. The caller + /// supplies enough information to search on, avoiding the need to open + /// the potentially non-local font. Any properties not supplied by the + /// caller will be missing, and those properties will not be available as + /// filters in GetMatchingFonts. GetPropertyValues for missing properties + /// will return an empty string list. The properties passed should generally + /// be consistent with the actual font contents, but they need not be. You + /// could, for example, alias a font using a different name or unique + /// identifier, or you could set custom tags not present in the actual + /// font. + /// + /// Reference to the font. + /// List of properties to associate with the reference. + /// How many properties are defined. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AddFontFaceReference)( + _In_ IDWriteFontFaceReference* fontFaceReference, + _In_reads_(propertyCount) DWRITE_FONT_PROPERTY const* properties, + UINT32 propertyCount + ) PURE; + + /// + /// Appends an existing font set to the one being built, allowing + /// one to aggregate two sets or to essentially extend an existing one. + /// + /// Font set to append font face references from. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AddFontSet)( + _In_ IDWriteFontSet* fontSet + ) PURE; + + /// + /// Creates a font set from all the font face references added so + /// far via AddFontFaceReference. + /// + /// Receives a pointer to the newly created font set object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + /// + /// Creating a font set takes less time if the references were added + /// with metadata rather than needing to extract the metadata from the + /// font file. + /// + STDMETHOD(CreateFontSet)( + _COM_Outptr_ IDWriteFontSet** fontSet + ) PURE; +}; + + +interface DWRITE_DECLARE_INTERFACE("53585141-D9F8-4095-8321-D73CF6BD116C") IDWriteFontCollection1 : public IDWriteFontCollection +{ + /// + /// Get the underlying font set used by this collection. + /// + /// Contains font set used by the collection. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontSet)( + _COM_Outptr_ IDWriteFontSet** fontSet + ) PURE; + + /// + /// Creates a font family object given a zero-based font family index. + /// + /// Zero-based index of the font family. + /// Receives a pointer the newly created font family object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFamily)( + UINT32 index, + _COM_Outptr_ IDWriteFontFamily1** fontFamily + ) PURE; + + using IDWriteFontCollection::GetFontFamily; +}; + + +/// +/// The IDWriteFontFamily interface represents a set of fonts that share the same design but are differentiated +/// by weight, stretch, and style. +/// +interface DWRITE_DECLARE_INTERFACE("DA20D8EF-812A-4C43-9802-62EC4ABD7ADF") IDWriteFontFamily1 : public IDWriteFontFamily +{ + /// + /// Gets the current locality of a font given its zero-based index. + /// + /// Zero-based index of the font in the font list. + /// + /// The locality enumeration. For fully local files, the result will always + /// be DWRITE_LOCALITY_LOCAL. For downloadable files, the result depends on how + /// much of the file has been downloaded, and GetFont() fails if the locality + /// is REMOTE and potentially fails if PARTIAL. The application can explicitly + /// ask for the font to be enqueued for download via EnqueueFontDownloadRequest + /// followed by BeginDownload(). + /// + /// + /// The locality enumeration. + /// + STDMETHOD_(DWRITE_LOCALITY, GetFontLocality)(UINT32 listIndex) PURE; + + /// + /// Gets a font given its zero-based index. + /// + /// Zero-based index of the font in the font list. + /// Receives a pointer to the newly created font object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFont)( + UINT32 listIndex, + _COM_Outptr_ IDWriteFont3** font + ) PURE; + + using IDWriteFontFamily::GetFont; + + /// + /// Gets a font face reference given its zero-based index. + /// + /// Zero-based index of the font in the font list. + /// Receives a pointer to the newly created font face reference object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFaceReference)( + UINT32 listIndex, + _COM_Outptr_ IDWriteFontFaceReference** fontFaceReference + ) PURE; +}; + + +/// +/// The IDWriteFontList interface represents a list of fonts. +/// +interface DWRITE_DECLARE_INTERFACE("DA20D8EF-812A-4C43-9802-62EC4ABD7ADE") IDWriteFontList1 : public IDWriteFontList +{ + /// + /// Gets the current locality of a font given its zero-based index. + /// + /// Zero-based index of the font in the font list. + /// + /// The locality enumeration. For fully local files, the result will always + /// be DWRITE_LOCALITY_LOCAL. For downloadable files, the result depends on how + /// much of the file has been downloaded, and GetFont() fails if the locality + /// is REMOTE and potentially fails if PARTIAL. The application can explicitly + /// ask for the font to be enqueued for download via EnqueueFontDownloadRequest + /// followed by BeginDownload(). + /// + /// + /// The locality enumeration. + /// + STDMETHOD_(DWRITE_LOCALITY, GetFontLocality)(UINT32 listIndex) PURE; + + /// + /// Gets a font given its zero-based index. + /// + /// Zero-based index of the font in the font list. + /// Receives a pointer to the newly created font object. + /// + /// Standard HRESULT error code. The function returns DWRITE_E_REMOTEFONT if it could not construct a remote font. + /// + STDMETHOD(GetFont)( + UINT32 listIndex, + _COM_Outptr_ IDWriteFont3** font + ) PURE; + + using IDWriteFontList::GetFont; + + /// + /// Gets a font face reference given its zero-based index. + /// + /// Zero-based index of the font in the font list. + /// Receives a pointer to the newly created font face reference object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFaceReference)( + UINT32 listIndex, + _COM_Outptr_ IDWriteFontFaceReference** fontFaceReference + ) PURE; +}; + + +/// +/// A uniquely identifying reference to a font, from which you can create a font +/// face to query font metrics and use for rendering. A font face reference +/// consists of a font file, font face index, and font face simulation. The file +/// data may or may not be physically present on the local machine yet. +/// +interface DWRITE_DECLARE_INTERFACE("5E7FA7CA-DDE3-424C-89F0-9FCD6FED58CD") IDWriteFontFaceReference : public IUnknown +{ + /// + /// Creates a font face from the reference for use with layout, + /// shaping, or rendering. + /// + /// Newly created font face object, or nullptr in the case of failure. + /// + /// Standard HRESULT error code. + /// + /// + /// This function can fail with DWRITE_E_REMOTEFONT if the font is not local. + /// + STDMETHOD(CreateFontFace)( + _COM_Outptr_ IDWriteFontFace3** fontFace + ) PURE; + + /// + /// Creates a font face with alternate font simulations, for example, to + /// explicitly simulate a bold font face out of a regular variant. + /// + /// Font face simulation flags for algorithmic emboldening and italicization. + /// Newly created font face object, or nullptr in the case of failure. + /// + /// Standard HRESULT error code. + /// + /// + /// This function can fail with DWRITE_E_REMOTEFONT if the font is not local. + /// + STDMETHOD(CreateFontFaceWithSimulations)( + DWRITE_FONT_SIMULATIONS fontFaceSimulationFlags, + _COM_Outptr_ IDWriteFontFace3** fontFace + ) PURE; + + /// + /// Compares two instances of a font face references for equality. + /// + STDMETHOD_(BOOL, Equals)(IDWriteFontFaceReference* fontFaceReference) PURE; + + /// + /// Obtains the zero-based index of the font face in its font file. If the font files contain a single face, + /// the return value is zero. + /// + STDMETHOD_(UINT32, GetFontFaceIndex)() PURE; + + /// + /// Obtains the algorithmic style simulation flags of a font face. + /// + STDMETHOD_(DWRITE_FONT_SIMULATIONS, GetSimulations)() PURE; + + /// + /// Obtains the font file representing a font face. + /// + STDMETHOD(GetFontFile)( + _COM_Outptr_ IDWriteFontFile** fontFile + ) PURE; + + /// + /// Get the local size of the font face in bytes. + /// + /// + /// The value returned by GetLocalFileSize will always be less than or + /// equal to the value returned by GetFullSize. If the locality is remote, + /// the GetLocalFileSize value is zero. If the locality is local, this + /// value will equal the value returned by GetFileSize. If the locality is + /// partial, this value will equal the size of the portions of the font + /// data that have been downloaded, which will be greater than zero and + /// less than or equal to the GetFileSize value. + /// + STDMETHOD_(UINT64, GetLocalFileSize)() PURE; + + /// + /// Get the total size of the font face in bytes. + /// + /// + /// If the locality is remote, this value is unknown and will be zero. + /// If the locality is partial or local, the value is the full size of + /// the font face. + /// + STDMETHOD_(UINT64, GetFileSize)() PURE; + + /// + /// Get the last modified date. + /// + /// + /// The time may be zero if the font file loader does not expose file time. + /// + STDMETHOD(GetFileTime)(_Out_ FILETIME* lastWriteTime) PURE; + + /// + /// Get the locality of this font face reference. You can always successfully + /// create a font face from a fully local font. Attempting to create a font + /// face on a remote or partially local font may fail with DWRITE_E_REMOTEFONT. + /// This function may change between calls depending on background downloads + /// and whether cached data expires. + /// + STDMETHOD_(DWRITE_LOCALITY, GetLocality)() PURE; + + /// + /// Adds a request to the font download queue (IDWriteFontDownloadQueue). + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(EnqueueFontDownloadRequest)() PURE; + + /// + /// Adds a request to the font download queue (IDWriteFontDownloadQueue). + /// + /// Array of characters to download. + /// The number of elements in the character array. + /// + /// Standard HRESULT error code. + /// + /// + /// Downloading a character involves downloading every glyph it depends on + /// directly or indirectly, via font tables (cmap, GSUB, COLR, glyf). + /// + STDMETHOD(EnqueueCharacterDownloadRequest)( + _In_reads_(characterCount) WCHAR const* characters, + UINT32 characterCount + ) PURE; + + /// + /// Adds a request to the font download queue (IDWriteFontDownloadQueue). + /// + /// Array of glyph indices to download. + /// The number of elements in the glyph index array. + /// + /// Standard HRESULT error code. + /// + /// + /// Downloading a glyph involves downloading any other glyphs it depends on + /// from the font tables (GSUB, COLR, glyf). + /// + STDMETHOD(EnqueueGlyphDownloadRequest)( + _In_reads_(glyphCount) UINT16 const* glyphIndices, + UINT32 glyphCount + ) PURE; + + /// + /// Adds a request to the font download queue (IDWriteFontDownloadQueue). + /// + /// Offset of the fragment from the beginning of the font file. + /// Size of the fragment in bytes. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(EnqueueFileFragmentDownloadRequest)( + UINT64 fileOffset, + UINT64 fragmentSize + ) PURE; +}; + + +/// +/// The IDWriteFont interface represents a font in a font collection. +/// +interface DWRITE_DECLARE_INTERFACE("29748ED6-8C9C-4A6A-BE0B-D912E8538944") IDWriteFont3 : public IDWriteFont2 +{ + /// + /// Creates a font face object for the font. + /// + /// Receives a pointer to the newly created font face object. + /// + /// Standard HRESULT error code. The function returns DWRITE_E_REMOTEFONT if it could not construct a remote font. + /// + STDMETHOD(CreateFontFace)( + _COM_Outptr_ IDWriteFontFace3** fontFace + ) PURE; + + using IDWriteFont::CreateFontFace; + + /// + /// Compares two instances of a font references for equality. + /// + STDMETHOD_(BOOL, Equals)(IDWriteFont* font) PURE; + + /// + /// Return a font face reference identifying this font. + /// + /// A uniquely identifying reference to a font face. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFaceReference)( + _COM_Outptr_ IDWriteFontFaceReference** fontFaceReference + ) PURE; + + /// + /// Determines whether the font supports the specified character. + /// + /// Unicode (UCS-4) character value. + /// + /// Returns TRUE if the font has the specified character, FALSE if not. + /// + STDMETHOD_(BOOL, HasCharacter)( + UINT32 unicodeValue + ) PURE; + + using IDWriteFont::HasCharacter; + + /// + /// Gets the current locality of the font. + /// + /// + /// The locality enumeration. For fully local files, the result will always + /// be DWRITE_LOCALITY_LOCAL. A downloadable file may be any of the states, + /// and this function may change between calls. + /// + /// + /// The locality enumeration. + /// + STDMETHOD_(DWRITE_LOCALITY, GetLocality)() PURE; +}; + + +/// +/// The interface that represents an absolute reference to a font face. +/// It contains font face type, appropriate file references and face identification data. +/// Various font data such as metrics, names and glyph outlines is obtained from IDWriteFontFace. +/// +interface DWRITE_DECLARE_INTERFACE("D37D7598-09BE-4222-A236-2081341CC1F2") IDWriteFontFace3 : public IDWriteFontFace2 +{ + /// + /// Return a font face reference identifying this font. + /// + /// A uniquely identifying reference to a font face. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFaceReference)( + _COM_Outptr_ IDWriteFontFaceReference** fontFaceReference + ) PURE; + + /// + /// Gets the PANOSE values from the font, used for font selection and + /// matching. + /// + /// PANOSE structure to fill in. + /// + /// The function does not simulate these, such as substituting a weight or + /// proportion inferred on other values. If the font does not specify them, + /// they are all set to 'any' (0). + /// + STDMETHOD_(void, GetPanose)( + _Out_ DWRITE_PANOSE* panose + ) PURE; + + /// + /// Gets the weight of the specified font. + /// + STDMETHOD_(DWRITE_FONT_WEIGHT, GetWeight)() PURE; + + /// + /// Gets the stretch (aka. width) of the specified font. + /// + STDMETHOD_(DWRITE_FONT_STRETCH, GetStretch)() PURE; + + /// + /// Gets the style (aka. slope) of the specified font. + /// + STDMETHOD_(DWRITE_FONT_STYLE, GetStyle)() PURE; + + /// + /// Creates an localized strings object that contains the weight-stretch-style family names for the font family, indexed by locale name. + /// + /// Receives a pointer to the newly created localized strings object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFamilyNames)( + _COM_Outptr_ IDWriteLocalizedStrings** names + ) PURE; + + /// + /// Gets a localized strings collection containing the weight-stretch-style face names for the font (e.g., Regular or Bold), indexed by locale name. + /// + /// Receives a pointer to the newly created localized strings object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFaceNames)( + _COM_Outptr_ IDWriteLocalizedStrings** names + ) PURE; + + /// + /// Gets a localized strings collection containing the specified informational strings, indexed by locale name. + /// + /// Identifies the string to get. + /// Receives a pointer to the newly created localized strings object. + /// Receives the value TRUE if the font contains the specified string ID or FALSE if not. + /// + /// Standard HRESULT error code. If the font does not contain the specified string, the return value is S_OK but + /// informationalStrings receives a NULL pointer and exists receives the value FALSE. + /// + STDMETHOD(GetInformationalStrings)( + DWRITE_INFORMATIONAL_STRING_ID informationalStringID, + _COM_Outptr_result_maybenull_ IDWriteLocalizedStrings** informationalStrings, + _Out_ BOOL* exists + ) PURE; + + /// + /// Determines whether the font supports the specified character. + /// + /// Unicode (UCS-4) character value. + /// + /// Returns TRUE if the font has the specified character, FALSE if not. + /// + STDMETHOD_(BOOL, HasCharacter)( + UINT32 unicodeValue + ) PURE; + + /// + /// Determines the recommended text rendering and grid-fit mode to be used based on the + /// font, size, world transform, and measuring mode. + /// + /// Logical font size in DIPs. + /// Number of pixels per logical inch in the horizontal direction. + /// Number of pixels per logical inch in the vertical direction. + /// Specifies the world transform. + /// Specifies the quality of the graphics system's outline rendering, + /// affects the size threshold above which outline rendering is used. + /// Specifies the method used to measure during text layout. For proper + /// glyph spacing, the function returns a rendering mode that is compatible with the specified + /// measuring mode. + /// Rendering parameters object. This parameter is necessary in case the rendering parameters + /// object overrides the rendering mode. + /// Receives the recommended rendering mode. + /// Receives the recommended grid-fit mode. + /// + /// This method should be used to determine the actual rendering mode in cases where the rendering + /// mode of the rendering params object is DWRITE_RENDERING_MODE_DEFAULT, and the actual grid-fit + /// mode when the rendering params object is DWRITE_GRID_FIT_MODE_DEFAULT. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetRecommendedRenderingMode)( + FLOAT fontEmSize, + FLOAT dpiX, + FLOAT dpiY, + _In_opt_ DWRITE_MATRIX const* transform, + BOOL isSideways, + DWRITE_OUTLINE_THRESHOLD outlineThreshold, + DWRITE_MEASURING_MODE measuringMode, + _In_opt_ IDWriteRenderingParams* renderingParams, + _Out_ DWRITE_RENDERING_MODE1* renderingMode, + _Out_ DWRITE_GRID_FIT_MODE* gridFitMode + ) PURE; + + using IDWriteFontFace2::GetRecommendedRenderingMode; + + /// + /// Determines whether the character is locally downloaded from the font. + /// + /// Unicode (UCS-4) character value. + /// + /// Returns TRUE if the font has the specified character locally available, + /// FALSE if not or if the font does not support that character. + /// + STDMETHOD_(BOOL, IsCharacterLocal)( + UINT32 unicodeValue + ) PURE; + + /// + /// Determines whether the glyph is locally downloaded from the font. + /// + /// Glyph identifier. + /// + /// Returns TRUE if the font has the specified glyph locally available. + /// + STDMETHOD_(BOOL, IsGlyphLocal)( + UINT16 glyphId + ) PURE; + + /// + /// Determines whether the specified characters are local. + /// + /// Array of characters. + /// The number of elements in the character array. + /// Specifies whether to enqueue a download request + /// if any of the specified characters are not local. + /// Receives TRUE if all of the specified characters are local, + /// FALSE if any of the specified characters are remote. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AreCharactersLocal)( + _In_reads_(characterCount) WCHAR const* characters, + UINT32 characterCount, + BOOL enqueueIfNotLocal, + _Out_ BOOL* isLocal + ) PURE; + + /// + /// Determines whether the specified glyphs are local. + /// + /// Array of glyph indices. + /// The number of elements in the glyph index array. + /// Specifies whether to enqueue a download request + /// if any of the specified glyphs are not local. + /// Receives TRUE if all of the specified glyphs are local, + /// FALSE if any of the specified glyphs are remote. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AreGlyphsLocal)( + _In_reads_(glyphCount) UINT16 const* glyphIndices, + UINT32 glyphCount, + BOOL enqueueIfNotLocal, + _Out_ BOOL* isLocal + ) PURE; +}; + + +/// +/// Represents a collection of strings indexed by number. +/// An IDWriteStringList is otherwise identical to IDWriteLocalizedStrings except +/// for the semantics, where localized strings are indexed on language (each +/// language has one string property) whereas a string list may contain multiple +/// strings of the same language, such as a string list of family names from a +/// font set. You can QueryInterface from an IDWriteLocalizedStrings to an +/// IDWriteStringList. +/// +interface DWRITE_DECLARE_INTERFACE("CFEE3140-1157-47CA-8B85-31BFCF3F2D0E") IDWriteStringList : public IUnknown +{ + /// + /// Gets the number of strings. + /// + STDMETHOD_(UINT32, GetCount)() PURE; + + /// + /// Gets the length in characters (not including the null terminator) of the locale name with the specified index. + /// + /// Zero-based index of the locale name. + /// Receives the length in characters, not including the null terminator. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLocaleNameLength)( + UINT32 listIndex, + _Out_ UINT32* length + ) PURE; + + /// + /// Copies the locale name with the specified index to the specified array. + /// + /// Zero-based index of the locale name. + /// Character array that receives the locale name. + /// Size of the array in characters. The size must include space for the terminating + /// null character. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLocaleName)( + UINT32 listIndex, + _Out_writes_z_(size) WCHAR* localeName, + UINT32 size + ) PURE; + + /// + /// Gets the length in characters (not including the null terminator) of the string with the specified index. + /// + /// Zero-based index of the string. + /// Receives the length in characters, not including the null terminator. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetStringLength)( + UINT32 listIndex, + _Out_ UINT32* length + ) PURE; + + /// + /// Copies the string with the specified index to the specified array. + /// + /// Zero-based index of the string. + /// Character array that receives the string. + /// Size of the array in characters. The size must include space for the terminating + /// null character. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetString)( + UINT32 listIndex, + _Out_writes_z_(stringBufferSize) WCHAR* stringBuffer, + UINT32 stringBufferSize + ) PURE; +}; + + +/// +/// Application-defined callback interface that receives notifications from the font +/// download queue (IDWriteFontDownloadQueue interface). Callbacks will occur on the +/// downloading thread, and objects must be prepared to handle calls on their methods +/// from other threads at any time. +/// +interface DWRITE_DECLARE_INTERFACE("B06FE5B9-43EC-4393-881B-DBE4DC72FDA7") IDWriteFontDownloadListener : public IUnknown +{ + /// + /// The DownloadCompleted method is called back on an arbitrary thread when a + /// download operation ends. + /// + /// Pointer to the download queue interface on which + /// the BeginDownload method was called. + /// Optional context object that was passed to BeginDownload. + /// AddRef is called on the context object by BeginDownload and Release is called + /// after the DownloadCompleted method returns. + /// Result of the download operation. + STDMETHOD_(void, DownloadCompleted)( + _In_ IDWriteFontDownloadQueue* downloadQueue, + _In_opt_ IUnknown* context, + HRESULT downloadResult + ) PURE; +}; + + +/// +/// Interface that enqueues download requests for remote fonts, characters, glyphs, and font fragments. +/// Provides methods to asynchronously execute a download, cancel pending downloads, and be notified of +/// download completion. Callbacks to listeners will occur on the downloading thread, and objects must +/// be must be able to handle calls on their methods from other threads at any time. +/// +interface DWRITE_DECLARE_INTERFACE("B71E6052-5AEA-4FA3-832E-F60D431F7E91") IDWriteFontDownloadQueue : public IUnknown +{ + /// + /// Registers a client-defined listener object that receives download notifications. + /// All registered listener's DownloadCompleted will be called after BeginDownload + /// completes. + /// + /// Listener object to add. + /// Receives a token value, which the caller must subsequently + /// pass to RemoveListener. + /// + /// Standard HRESULT error code. + /// + /// + /// An IDWriteFontDownloadListener can also be passed to BeginDownload via the + /// context parameter, rather than globally registered to the queue. + /// + STDMETHOD(AddListener)( + IDWriteFontDownloadListener* listener, + _Out_ UINT32* token + ) PURE; + + /// + /// Unregisters a notification handler that was previously registered using + /// AddListener. + /// + /// Token value previously returned by AddListener. + /// + /// Returns S_OK if successful or E_INVALIDARG if the specified token does not + /// correspond to a registered listener. + /// + STDMETHOD(RemoveListener)( + UINT32 token + ) PURE; + + /// + /// Determines whether the download queue is empty. Note that the queue does not + /// include requests that are already being downloaded. In other words, BeginDownload + /// clears the queue. + /// + /// + /// TRUE if the queue is empty, FALSE if there are requests pending for BeginDownload. + /// + STDMETHOD_(BOOL, IsEmpty)() PURE; + + /// + /// Begins an asynchronous download operation. The download operation executes + /// in the background until it completes or is cancelled by a CancelDownload call. + /// + /// Optional context object that is passed back to the + /// download notification handler's DownloadCompleted method. If the context object + /// implements IDWriteFontDownloadListener, its DownloadCompleted will be called + /// when done. + /// + /// Returns S_OK if a download was successfully begun, S_FALSE if the queue was + /// empty, or a standard HRESULT error code. + /// + /// + /// BeginDownload removes all download requests from the queue, transferring them + /// to a background download operation. If any previous downloads are still ongoing + /// when BeginDownload is called again, the new download does not complete until + /// the previous downloads have finished. If the queue is empty and no active + /// downloads are pending, the DownloadCompleted callback is called immediately with + /// DWRITE_DOWNLOAD_RESULT_NONE. + /// + STDMETHOD(BeginDownload)( + _In_opt_ IUnknown* context = nullptr + ) PURE; + + /// + /// Removes all download requests from the queue and cancels any active download + /// operations. This calls DownloadCompleted with DWRITE_E_DOWNLOADCANCELLED. + /// Applications should call this when shutting down if they started any + /// downloads that have not finished yet with a call to DownloadCompleted. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CancelDownload)() PURE; + + /// + /// Get the current generation number of the download queue, which is incremented + /// every time after a download completes, whether failed or successful. This cookie + /// comparison value may be used to compared against cached data to know when it is + /// stale. + /// + /// + /// The number of download queue generations. + /// + STDMETHOD_(UINT64, GetGenerationCount)() PURE; +}; + + +/// +/// The GDI interop interface provides interoperability with GDI. +/// +interface DWRITE_DECLARE_INTERFACE("4556BE70-3ABD-4F70-90BE-421780A6F515") IDWriteGdiInterop1 : public IDWriteGdiInterop +{ + /// + /// Creates a font object that matches the properties specified by the LOGFONT structure. + /// + /// Structure containing a GDI-compatible font description. + /// The font collection to search. If NULL, the local system font collection is used. + /// Receives a newly created font object if successful, or NULL in case of error. + /// + /// Standard HRESULT error code. + /// + /// + /// The only fields that matter include: lfFaceName, lfCharSet, lfWeight, lfItalic. + /// Font size and rendering mode are a rendering time property, not a font property, + /// and text decorations like underline are drawn separately from the text. If no + /// font matches the given weight, slope, and character set, the best match within + /// the given GDI family name will be returned. DWRITE_E_NOFONT is returned if there + /// is no matching font name using either the GDI family name (e.g. Arial) or the + /// full font name (e.g. Arial Bold Italic). + /// + STDMETHOD(CreateFontFromLOGFONT)( + _In_ LOGFONTW const* logFont, + _In_opt_ IDWriteFontCollection* fontCollection, + _COM_Outptr_ IDWriteFont** font + ) PURE; + + /// + /// Reads the font signature from the given font. + /// + /// Font to read font signature from. + /// Font signature from the OS/2 table, ulUnicodeRange and ulCodePageRange. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontSignature)( + _In_ IDWriteFont* font, + _Out_ FONTSIGNATURE* fontSignature + ) PURE; + + /// + /// Reads the font signature from the given font. + /// + /// Font to read font signature from. + /// Font signature from the OS/2 table, ulUnicodeRange and ulCodePageRange. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontSignature)( + _In_ IDWriteFontFace* fontFace, + _Out_ FONTSIGNATURE* fontSignature + ) PURE; + + /// + /// Get a list of matching fonts based on the LOGFONT values. Only fonts + /// of that family name will be returned. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetMatchingFontsByLOGFONT)( + _In_ LOGFONT const* logFont, + _In_ IDWriteFontSet* fontSet, + _COM_Outptr_ IDWriteFontSet** filteredSet + ) PURE; + + using IDWriteGdiInterop::CreateFontFromLOGFONT; +}; + +/// +/// Information about a formatted line of text. +/// +struct DWRITE_LINE_METRICS1 : DWRITE_LINE_METRICS +{ + /// + /// White space before the content of the line. This is included in the line height and baseline distances. + /// If the line is formatted horizontally either with a uniform line spacing or with proportional + /// line spacing, this value represents the extra space above the content. + /// + FLOAT leadingBefore; + + /// + /// White space after the content of the line. This is included in the height of the line. + /// If the line is formatted horizontally either with a uniform line spacing or with proportional + /// line spacing, this value represents the extra space below the content. + /// + FLOAT leadingAfter; +}; + +/// +/// Specify whether DWRITE_FONT_METRICS::lineGap value should be part of the line metrics. +/// +enum DWRITE_FONT_LINE_GAP_USAGE +{ + /// + /// The usage of the font line gap depends on the method used for text layout. + /// + DWRITE_FONT_LINE_GAP_USAGE_DEFAULT, + + /// + /// The font line gap is excluded from line spacing + /// + DWRITE_FONT_LINE_GAP_USAGE_DISABLED, + + /// + /// The font line gap is included in line spacing + /// + DWRITE_FONT_LINE_GAP_USAGE_ENABLED +}; + +/// +/// The DWRITE_LINE_SPACING structure specifies the parameters used to specify how to manage space between lines. +/// +struct DWRITE_LINE_SPACING +{ + /// + /// Method used to determine line spacing. + /// + DWRITE_LINE_SPACING_METHOD method; + + /// + /// Spacing between lines. + /// The interpretation of this parameter depends upon the line spacing method, as follows: + /// - default line spacing: ignored + /// - uniform line spacing: explicit distance in DIPs between lines + /// - proportional line spacing: a scaling factor to be applied to the computed line height; + /// for each line, the height of the line is computed as for default line spacing, and the scaling factor is applied to that value. + /// + FLOAT height; + + /// + /// Distance from top of line to baseline. + /// The interpretation of this parameter depends upon the line spacing method, as follows: + /// - default line spacing: ignored + /// - uniform line spacing: explicit distance in DIPs from the top of the line to the baseline + /// - proportional line spacing: a scaling factor applied to the computed baseline; for each line, + /// the baseline distance is computed as for default line spacing, and the scaling factor is applied to that value. + /// + FLOAT baseline; + + /// + /// Proportion of the entire leading distributed before the line. The allowed value is between 0 and 1.0. The remaining + /// leading is distributed after the line. It is ignored for the default and uniform line spacing methods. + /// The leading that is available to distribute before or after the line depends on the values of the height and + /// baseline parameters. + /// + FLOAT leadingBefore; + + /// + /// Specify whether DWRITE_FONT_METRICS::lineGap value should be part of the line metrics. + /// + DWRITE_FONT_LINE_GAP_USAGE fontLineGapUsage; +}; + +interface DWRITE_DECLARE_INTERFACE("F67E0EDD-9E3D-4ECC-8C32-4183253DFE70") IDWriteTextFormat2 : public IDWriteTextFormat1 +{ + /// + /// Set line spacing. + /// + /// How to manage space between lines. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetLineSpacing)(_In_ DWRITE_LINE_SPACING const* lineSpacingOptions) PURE; + + /// + /// Get line spacing. + /// + /// How to manage space between lines. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLineSpacing)(_Out_ DWRITE_LINE_SPACING* lineSpacingOptions) PURE; + + using IDWriteTextFormat1::SetLineSpacing; + using IDWriteTextFormat1::GetLineSpacing; +}; + +interface DWRITE_DECLARE_INTERFACE("07DDCD52-020E-4DE8-AC33-6C953D83F92D") IDWriteTextLayout3 : public IDWriteTextLayout2 +{ + /// + /// Invalidates the layout, forcing layout to remeasure before calling the + /// metrics or drawing functions. This is useful if the locality of a font + /// changes, and layout should be redrawn, or if the size of a client + /// implemented IDWriteInlineObject changes. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(InvalidateLayout)() PURE; + + /// + /// Set line spacing. + /// + /// How to manage space between lines. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetLineSpacing)(_In_ DWRITE_LINE_SPACING const* lineSpacingOptions) PURE; + + /// + /// Get line spacing. + /// + /// How to manage space between lines. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLineSpacing)(_Out_ DWRITE_LINE_SPACING* lineSpacingOptions) PURE; + + /// + /// GetLineMetrics returns properties of each line. + /// + /// The array to fill with line information. + /// The maximum size of the lineMetrics array. + /// The actual size of the lineMetrics + /// array that is needed. + /// + /// Standard HRESULT error code. + /// + /// + /// If maxLineCount is not large enough E_NOT_SUFFICIENT_BUFFER, + /// which is equivalent to HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), + /// is returned and *actualLineCount is set to the number of lines + /// needed. + /// + STDMETHOD(GetLineMetrics)( + _Out_writes_to_opt_(maxLineCount, *actualLineCount) DWRITE_LINE_METRICS1* lineMetrics, + UINT32 maxLineCount, + _Out_ UINT32* actualLineCount + ) PURE; + + using IDWriteTextLayout2::SetLineSpacing; + using IDWriteTextLayout2::GetLineSpacing; + using IDWriteTextLayout2::GetLineMetrics; +}; + + +//////////////////////////////////////////////////////////////////////////////////////////////////// + + +#if NTDDI_VERSION >= NTDDI_WIN10_RS1 + + +/// +/// Represents a color glyph run. The IDWriteFactory4::TranslateColorGlyphRun +/// method returns an ordered collection of color glyph runs of varying types +/// depending on what the font supports. +/// +/// +/// For runs without any specific color, such as PNG data, the runColor field will be zero. +/// +struct DWRITE_COLOR_GLYPH_RUN1 : DWRITE_COLOR_GLYPH_RUN +{ + /// + /// Type of glyph image format for this color run. Exactly one type will be set since + /// TranslateColorGlyphRun has already broken down the run into separate parts. + /// + DWRITE_GLYPH_IMAGE_FORMATS glyphImageFormat; + + /// + /// Measuring mode to use for this glyph run. + /// + DWRITE_MEASURING_MODE measuringMode; +}; + + +/// +/// Data for a single glyph from GetGlyphImageData. +/// +struct DWRITE_GLYPH_IMAGE_DATA +{ + /// + /// Pointer to the glyph data, be it SVG, PNG, JPEG, TIFF. + /// + _Field_size_bytes_(imageDataSize) void const* imageData; + + /// + /// Size of glyph data in bytes. + /// + UINT32 imageDataSize; + + /// + /// Unique identifier for the glyph data. Clients may use this to cache a parsed/decompressed + /// version and tell whether a repeated call to the same font returns the same data. + /// + UINT32 uniqueDataId; + + /// + /// Pixels per em of the returned data. For non-scalable raster data (PNG/TIFF/JPG), this can be larger + /// or smaller than requested from GetGlyphImageData when there isn't an exact match. + /// For scaling intermediate sizes, use: desired pixels per em * font em size / actual pixels per em. + /// + UINT32 pixelsPerEm; + + /// + /// Size of image when the format is pixel data. + /// + D2D1_SIZE_U pixelSize; + + /// + /// Left origin along the horizontal Roman baseline. + /// + D2D1_POINT_2L horizontalLeftOrigin; + + /// + /// Right origin along the horizontal Roman baseline. + /// + D2D1_POINT_2L horizontalRightOrigin; + + /// + /// Top origin along the vertical central baseline. + /// + D2D1_POINT_2L verticalTopOrigin; + + /// + /// Bottom origin along vertical central baseline. + /// + D2D1_POINT_2L verticalBottomOrigin; +}; + + +/// +/// Enumerator for an ordered collection of color glyph runs. +/// +interface DWRITE_DECLARE_INTERFACE("7C5F86DA-C7A1-4F05-B8E1-55A179FE5A35") IDWriteColorGlyphRunEnumerator1 : public IDWriteColorGlyphRunEnumerator +{ + /// + /// Gets the current color glyph run. + /// + /// Receives a pointer to the color + /// glyph run. The pointer remains valid until the next call to + /// MoveNext or until the interface is released. + /// + /// Standard HRESULT error code. An error is returned if there is + /// no current glyph run, i.e., if MoveNext has not yet been called + /// or if the end of the sequence has been reached. + /// + STDMETHOD(GetCurrentRun)( + _Outptr_ DWRITE_COLOR_GLYPH_RUN1 const** colorGlyphRun + ) PURE; + + using IDWriteColorGlyphRunEnumerator::GetCurrentRun; +}; + + +/// +/// The interface that represents an absolute reference to a font face. +/// It contains font face type, appropriate file references and face identification data. +/// Various font data such as metrics, names and glyph outlines is obtained from IDWriteFontFace. +/// +interface DWRITE_DECLARE_INTERFACE("27F2A904-4EB8-441D-9678-0563F53E3E2F") IDWriteFontFace4 : public IDWriteFontFace3 +{ + /// + /// Gets all the glyph image formats supported by the entire font (SVG, PNG, JPEG, ...). + /// + STDMETHOD_(DWRITE_GLYPH_IMAGE_FORMATS, GetGlyphImageFormats)() PURE; + + /// + /// Gets the available image formats of a specific glyph and ppem. Glyphs often have at least TrueType + /// or CFF outlines, but they may also have SVG outlines, or they may have only bitmaps + /// with no TrueType/CFF outlines. Some image formats, notably the PNG/JPEG ones, are size + /// specific and will return no match when there isn't an entry in that size range. + /// + /// + /// Glyph ids beyond the glyph count return DWRITE_GLYPH_IMAGE_FORMATS_NONE. + /// + STDMETHOD(GetGlyphImageFormats)( + UINT16 glyphId, + UINT32 pixelsPerEmFirst, + UINT32 pixelsPerEmLast, + _Out_ DWRITE_GLYPH_IMAGE_FORMATS* glyphImageFormats + ) PURE; + + /// + /// Gets a pointer to the glyph data based on the desired image format. + /// + /// + /// The glyphDataContext must be released via ReleaseGlyphImageData when done if the data is not empty, + /// similar to IDWriteFontFileStream::ReadFileFragment and IDWriteFontFileStream::ReleaseFileFragment. + /// The data pointer is valid so long as the IDWriteFontFace exists and ReleaseGlyphImageData has not + /// been called. + /// + /// + /// The DWRITE_GLYPH_IMAGE_DATA::uniqueDataId is valuable for caching purposes so that if the same + /// resource is returned more than once, an existing resource can be quickly retrieved rather than + /// needing to reparse or decompress the data. + /// + /// + /// The function only returns SVG or raster data - requesting TrueType/CFF/COLR data returns + /// DWRITE_E_INVALIDARG. Those must be drawn via DrawGlyphRun or queried using GetGlyphOutline instead. + /// Exactly one format may be requested or else the function returns DWRITE_E_INVALIDARG. + /// If the glyph does not have that format, the call is not an error, but the function returns empty data. + /// + STDMETHOD(GetGlyphImageData)( + _In_ UINT16 glyphId, + UINT32 pixelsPerEm, + DWRITE_GLYPH_IMAGE_FORMATS glyphImageFormat, + _Out_ DWRITE_GLYPH_IMAGE_DATA* glyphData, + _Outptr_result_maybenull_ void** glyphDataContext + ) PURE; + + /// + /// Releases the table data obtained earlier from ReadGlyphData. + /// + /// Opaque context from ReadGlyphData. + STDMETHOD_(void, ReleaseGlyphImageData)( + void* glyphDataContext + ) PURE; +}; + + +interface DWRITE_DECLARE_INTERFACE("4B0B5BD3-0797-4549-8AC5-FE915CC53856") IDWriteFactory4 : public IDWriteFactory3 +{ + /// + /// Translates a glyph run to a sequence of color glyph runs, which can be + /// rendered to produce a color representation of the original "base" run. + /// + /// Horizontal and vertical origin of the base glyph run in + /// pre-transform coordinates. + /// Pointer to the original "base" glyph run. + /// Optional glyph run description. + /// Which data formats TranslateColorGlyphRun + /// should split the runs into. + /// Measuring mode, needed to compute the origins + /// of each glyph. + /// Matrix converting from the client's + /// coordinate space to device coordinates (pixels), i.e., the world transform + /// multiplied by any DPI scaling. + /// Zero-based index of the color palette to use. + /// Valid indices are less than the number of palettes in the font, as returned + /// by IDWriteFontFace2::GetColorPaletteCount. + /// If the function succeeds, receives a pointer + /// to an enumerator object that can be used to obtain the color glyph runs. + /// If the base run has no color glyphs, then the output pointer is NULL + /// and the method returns DWRITE_E_NOCOLOR. + /// + /// Returns DWRITE_E_NOCOLOR if the font has no color information, the glyph run + /// does not contain any color glyphs, or the specified color palette index + /// is out of range. In this case, the client should render the original glyph + /// run. Otherwise, returns a standard HRESULT error code. + /// + /// + /// The old IDWriteFactory2::TranslateColorGlyphRun is equivalent to passing + /// DWRITE_GLYPH_IMAGE_FORMATS_TRUETYPE|CFF|COLR. + /// + STDMETHOD(TranslateColorGlyphRun)( + D2D1_POINT_2F baselineOrigin, + _In_ DWRITE_GLYPH_RUN const* glyphRun, + _In_opt_ DWRITE_GLYPH_RUN_DESCRIPTION const* glyphRunDescription, + DWRITE_GLYPH_IMAGE_FORMATS desiredGlyphImageFormats, + DWRITE_MEASURING_MODE measuringMode, + _In_opt_ DWRITE_MATRIX const* worldAndDpiTransform, + UINT32 colorPaletteIndex, + _COM_Outptr_ IDWriteColorGlyphRunEnumerator1** colorLayers + ) PURE; + + using IDWriteFactory2::TranslateColorGlyphRun; + + /// + /// Converts glyph run placements to glyph origins. + /// + /// + /// Standard HRESULT error code. + /// + /// + /// The transform and DPI have no affect on the origin scaling. + /// They are solely used to compute glyph advances when not supplied + /// and align glyphs in pixel aligned measuring modes. + /// + STDMETHOD(ComputeGlyphOrigins)( + DWRITE_GLYPH_RUN const* glyphRun, + DWRITE_MEASURING_MODE measuringMode, + D2D1_POINT_2F baselineOrigin, + _In_opt_ DWRITE_MATRIX const* worldAndDpiTransform, + _Out_writes_(glyphRun->glyphCount) D2D1_POINT_2F* glyphOrigins + ) PURE; + + /// + /// Converts glyph run placements to glyph origins. This overload is for natural metrics, which + /// includes SVG, TrueType natural modes, and bitmap placement. + /// + STDMETHOD(ComputeGlyphOrigins)( + DWRITE_GLYPH_RUN const* glyphRun, + D2D1_POINT_2F baselineOrigin, + _Out_writes_(glyphRun->glyphCount) D2D1_POINT_2F* glyphOrigins + ) PURE; +}; + +#endif // NTDDI_VERSION >= NTDDI_WIN10_RS1 + + +//////////////////////////////////////////////////////////////////////////////////////////////////// + + +#if NTDDI_VERSION >= NTDDI_WIN10_RS2 + +interface DWRITE_DECLARE_INTERFACE("3FF7715F-3CDC-4DC6-9B72-EC5621DCCAFD") IDWriteFontSetBuilder1 : public IDWriteFontSetBuilder +{ + /// + /// Adds references to all the fonts in the specified font file. The method + /// parses the font file to determine the fonts and their properties. + /// + /// Font file reference object to add to the set. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AddFontFile)( + _In_ IDWriteFontFile* fontFile + ) PURE; +}; + +/// +/// The IDWriteAsyncResult interface represents the result of an asynchronous +/// operation. A client can use the interface to wait for the operation to +/// complete and to get the result. +/// +interface DWRITE_DECLARE_INTERFACE("CE25F8FD-863B-4D13-9651-C1F88DC73FE2") IDWriteAsyncResult : public IUnknown +{ + /// + /// The GetWaitHandleMethod method returns a handle that can be used to wait + /// for the asynchronous operation to complete. The handle remains valid + /// until the interface is released. + /// + STDMETHOD_(HANDLE, GetWaitHandle)() PURE; + + /// + /// The GetResult method returns the result of the asynchronous operation. + /// The return value is E_PENDING if the operation has not yet completed. + /// + STDMETHOD(GetResult)() PURE; +}; + + +/// +/// DWRITE_FILE_FRAGMENT represents a range of bytes in a font file. +/// +struct DWRITE_FILE_FRAGMENT +{ + /// + /// Starting offset of the fragment from the beginning of the file. + /// + UINT64 fileOffset; + + /// + /// Size of the file fragment, in bytes. + /// + UINT64 fragmentSize; +}; + + +/// +/// IDWriteRemoteFontFileStream represents a font file stream parts of which may be +/// non-local. Non-local data must be downloaded before it can be accessed using +/// ReadFragment. The interface exposes methods to download font data and query the +/// locality of font data. +/// +/// +/// For more information, see the description of IDWriteRemoteFontFileLoader. +/// +interface DWRITE_DECLARE_INTERFACE("4DB3757A-2C72-4ED9-B2B6-1ABABE1AFF9C") IDWriteRemoteFontFileStream : public IDWriteFontFileStream +{ + /// + /// GetLocalFileSize returns the number of bytes of the font file that are + /// currently local, which should always be less than or equal to the full + /// file size returned by GetFileSize. If the locality is remote, the return + /// value is zero. If the file is fully local, the return value must be the + /// same as GetFileSize. + /// + /// Receives the local size of the file. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLocalFileSize)( + _Out_ UINT64* localFileSize + ) PURE; + + /// + /// GetFileFragmentLocality returns information about the locality of a byte range (i.e., + /// font fragment) within the font file stream. + /// + /// Offset of the fragment from the beginning of the font file. + /// Size of the fragment in bytes. + /// Receives TRUE if the first byte of the fragment is local, FALSE if not. + /// Receives the number of contiguous bytes from the start of the + /// fragment that have the same locality as the first byte. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFileFragmentLocality)( + UINT64 fileOffset, + UINT64 fragmentSize, + _Out_ BOOL* isLocal, + _Out_range_(0, fragmentSize) UINT64* partialSize + ) PURE; + + /// + /// Gets the current locality of the file. + /// + /// + /// Returns the locality enumeration (i.e., remote, partial, or local). + /// + STDMETHOD_(DWRITE_LOCALITY, GetLocality)() PURE; + + /// + /// BeginDownload begins downloading all or part of the font file. + /// + /// Array of structures, each specifying a byte + /// range to download. + /// Number of elements in the fileFragments array. + /// This can be zero to just download file information, such as the size. + /// Receives an object that can be used to wait for + /// the asynchronous download to complete and to get the download result upon + /// completion. The result may be NULL if the download completes synchronously. + /// For example, this can happen if method determines that the requested data + /// is already local. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(BeginDownload)( + _In_ UUID const* downloadOperationID, + _In_reads_(fragmentCount) DWRITE_FILE_FRAGMENT const* fileFragments, + UINT32 fragmentCount, + _COM_Outptr_result_maybenull_ IDWriteAsyncResult** asyncResult + ) PURE; +}; + + +/// +/// Specifies the container format of a font resource. A container format is distinct from +/// a font file format (DWRITE_FONT_FILE_TYPE) because the container describes the container +/// in which the underlying font file is packaged. +/// +enum DWRITE_CONTAINER_TYPE +{ + DWRITE_CONTAINER_TYPE_UNKNOWN, + DWRITE_CONTAINER_TYPE_WOFF, + DWRITE_CONTAINER_TYPE_WOFF2 +}; + + +/// +/// The IDWriteRemoteFontFileLoader interface represents a font file loader that can access +/// remote (i.e., downloadable) fonts. The IDWriteFactory5::CreateHttpFontFileLoader method +/// returns an instance of this interface, or a client can create its own implementation. +/// +/// +/// Calls to a remote file loader or stream should never block waiting for network operations. +/// Any call that cannot succeeded immediately using local (e.g., cached) must should return +/// DWRITE_E_REMOTEFONT. This error signifies to DWrite that it should add requests to the +/// font download queue. +/// +interface DWRITE_DECLARE_INTERFACE("68648C83-6EDE-46C0-AB46-20083A887FDE") IDWriteRemoteFontFileLoader : public IDWriteFontFileLoader +{ + /// + /// Creates a remote font file stream object that encapsulates an open file resource + /// and can be used to download remote file data. + /// + /// Font file reference key that uniquely identifies the font file resource + /// within the scope of the font loader being used. + /// Size of font file reference key in bytes. + /// Pointer to the newly created font file stream. + /// + /// Standard HRESULT error code. + /// + /// + /// Unlike CreateStreamFromKey, this method can be used to create a stream for a remote file. If the file is + /// remote, the returned stream's BeginDownload method can be used to download all or part of the font file. + /// However, the stream cannot be used to get the file size or access font data unless the file is at least + /// partially local. + /// + STDMETHOD(CreateRemoteStreamFromKey)( + _In_reads_bytes_(fontFileReferenceKeySize) void const* fontFileReferenceKey, + UINT32 fontFileReferenceKeySize, + _COM_Outptr_ IDWriteRemoteFontFileStream** fontFileStream + ) PURE; + + /// + /// Gets the locality of the file resource identified by the unique key. + /// + /// Font file reference key that uniquely identifies the font file resource + /// within the scope of the font loader being used. + /// Size of font file reference key in bytes. + /// Locality of the file. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetLocalityFromKey)( + _In_reads_bytes_(fontFileReferenceKeySize) void const* fontFileReferenceKey, + UINT32 fontFileReferenceKeySize, + _Out_ DWRITE_LOCALITY* locality + ) PURE; + + /// + /// Creates a font file reference from a URL if the loader supports this capability. + /// + /// Factory used to create the font file reference. + /// Optional base URL. The base URL is used to resolve the fontFileUrl + /// if it is relative. For example, the baseUrl might be the URL of the referring document + /// that contained the fontFileUrl. + /// URL of the font resource. + /// Receives a pointer to the newly created font file reference. + /// + /// Standard HRESULT error code, or E_NOTIMPL if the loader does not implement this method. + /// + STDMETHOD(CreateFontFileReferenceFromUrl)( + IDWriteFactory* factory, + _In_opt_z_ WCHAR const* baseUrl, + _In_z_ WCHAR const* fontFileUrl, + _COM_Outptr_ IDWriteFontFile** fontFile + ) PURE; +}; + + +/// +/// The IDWriteInMemoryFontFileLoader interface enables clients to reference +/// in-memory fonts without having to implement a custom loader. The +/// IDWriteFactory5::CreateInMemoryFontFileLoader method returns an instance +/// of this interface, which the client is responsible for registering and +/// unregistering using IDWriteFactory::RegisterFontFileLoader and +/// IDWriteFactory::UnregisterFontFileLoader. +/// +interface DWRITE_DECLARE_INTERFACE("DC102F47-A12D-4B1C-822D-9E117E33043F") IDWriteInMemoryFontFileLoader : public IDWriteFontFileLoader +{ + /// + /// The CreateInMemoryFontFileReference method creates a font file reference + /// (IDWriteFontFile object) from an array of bytes. The font file reference + /// is bound to the IDWriteInMemoryFontFileLoader instance with which it was + /// created and remains valid for as long as that loader is registered with + /// the factory. + /// + /// Factory object used to create the font file reference. + /// Pointer to a memory block containing the font data. + /// Size of the font data. + /// Optional object that owns the memory specified by + /// the fontData parameter. If this parameter is not NULL, the method stores a + /// pointer to the font data and adds a reference to the owner object. The + /// fontData pointer must remain valid until the owner object is released. If + /// this parameter is NULL, the method makes a copy of the font data. + /// Receives a pointer to the newly-created font file + /// reference. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateInMemoryFontFileReference)( + IDWriteFactory* factory, + _In_reads_bytes_(fontDataSize) void const* fontData, + UINT32 fontDataSize, + _In_opt_ IUnknown* ownerObject, + _COM_Outptr_ IDWriteFontFile** fontFile + ) PURE; + + /// + /// The GetFileCount method returns the number of font file references that + /// have been created using this loader instance. + /// + STDMETHOD_(UINT32, GetFileCount)() PURE; +}; + + +/// +/// The root factory interface for all DWrite objects. +/// +interface DWRITE_DECLARE_INTERFACE("958DB99A-BE2A-4F09-AF7D-65189803D1D3") IDWriteFactory5 : public IDWriteFactory4 +{ + /// + /// Creates an empty font set builder to add font face references + /// and create a custom font set. + /// + /// Receives a pointer to the newly created font set builder object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontSetBuilder)( + _COM_Outptr_ IDWriteFontSetBuilder1** fontSetBuilder + ) PURE; + + using IDWriteFactory3::CreateFontSetBuilder; + + /// + /// The CreateInMemoryFontFileLoader method creates a loader object that can + /// be used to create font file references to in-memory fonts. The caller is + /// responsible for registering and unregistering the loader. + /// + /// Receives a pointer to the newly-created loader object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateInMemoryFontFileLoader)( + _COM_Outptr_ IDWriteInMemoryFontFileLoader** newLoader + ) PURE; + + /// + /// The CreateHttpFontFileLoader function creates a remote font file loader + /// that can create font file references from HTTP or HTTPS URLs. The caller + /// is responsible for registering and unregistering the loader. + /// + /// Optional referrer URL for HTTP requests. + /// Optional additional header fields to include + /// in HTTP requests. Each header field consists of a name followed by a colon + /// (":") and the field value, as specified by RFC 2616. Multiple header fields + /// may be separated by newlines. + /// Receives a pointer to the newly-created loader object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateHttpFontFileLoader)( + _In_opt_z_ wchar_t const* referrerUrl, + _In_opt_z_ wchar_t const* extraHeaders, + _COM_Outptr_ IDWriteRemoteFontFileLoader** newLoader + ) PURE; + + /// + /// The AnalyzeContainerType method analyzes the specified file data to determine + /// whether it is a known font container format (e.g., WOFF or WOFF2). + /// + /// + /// Returns the container type if recognized. DWRITE_CONTAINER_TYPE_UNKOWNN is + /// returned for all other files, including uncompressed font files. + /// + STDMETHOD_(DWRITE_CONTAINER_TYPE, AnalyzeContainerType)( + _In_reads_bytes_(fileDataSize) void const* fileData, + UINT32 fileDataSize + ) PURE; + + /// + /// The UnpackFontFile method unpacks font data from a container file (WOFF or + /// WOFF2) and returns the unpacked font data in the form of a font file stream. + /// + /// Container type returned by AnalyzeContainerType. + /// Pointer to the compressed data. + /// Size of the compressed data, in bytes. + /// Receives a pointer to a newly created font + /// file stream containing the uncompressed data. + /// + /// Standard HRESULT error code. The return value is E_INVALIDARG if the container + /// type is DWRITE_CONTAINER_TYPE_UNKNOWN. + /// + STDMETHOD(UnpackFontFile)( + DWRITE_CONTAINER_TYPE containerType, + _In_reads_bytes_(fileDataSize) void const* fileData, + UINT32 fileDataSize, + _COM_Outptr_ IDWriteFontFileStream** unpackedFontStream + ) PURE; +}; + +#endif // NTDDI_VERSION >= NTDDI_WIN10_RS2 + + +//////////////////////////////////////////////////////////////////////////////////////////////////// + + +#if NTDDI_VERSION >= NTDDI_WIN10_RS3 + + +interface IDWriteFontResource; +interface IDWriteFontFace5; +interface IDWriteFontFaceReference1; +interface IDWriteFontSet1; +interface IDWriteFontCollection2; +interface IDWriteTextFormat3; +interface IDWriteFontSetBuilder2; + + +/// +/// Creates an OpenType tag for a font axis. +/// +#define DWRITE_MAKE_FONT_AXIS_TAG(a,b,c,d) (static_cast(DWRITE_MAKE_OPENTYPE_TAG(a,b,c,d))) + + +/// +/// Four character identifier for a font axis. +/// +/// +/// Use DWRITE_MAKE_FONT_AXIS_TAG() to create a custom one. +/// +enum DWRITE_FONT_AXIS_TAG : UINT32 +{ + DWRITE_FONT_AXIS_TAG_WEIGHT = DWRITE_MAKE_FONT_AXIS_TAG('w','g','h','t'), + DWRITE_FONT_AXIS_TAG_WIDTH = DWRITE_MAKE_FONT_AXIS_TAG('w','d','t','h'), + DWRITE_FONT_AXIS_TAG_SLANT = DWRITE_MAKE_FONT_AXIS_TAG('s','l','n','t'), + DWRITE_FONT_AXIS_TAG_OPTICAL_SIZE = DWRITE_MAKE_FONT_AXIS_TAG('o','p','s','z'), + DWRITE_FONT_AXIS_TAG_ITALIC = DWRITE_MAKE_FONT_AXIS_TAG('i','t','a','l'), +}; + +#define DWRITE_STANDARD_FONT_AXIS_COUNT 5 + +/// +/// Value for a font axis, used when querying and creating font instances. +/// +struct DWRITE_FONT_AXIS_VALUE +{ + /// + /// Four character identifier of the font axis (weight, width, slant, italic...). + /// + DWRITE_FONT_AXIS_TAG axisTag; + + /// + /// Value for the given axis, with the meaning and range depending on the axis semantics. + /// Certain well known axes have standard ranges and defaults, such as weight (1..1000, default=400), + /// width (>0, default=100), slant (-90..90, default=-20), and italic (0 or 1). + /// + FLOAT value; +}; + + +/// +/// Minimum and maximum range of a font axis. +/// +struct DWRITE_FONT_AXIS_RANGE +{ + /// + /// Four character identifier of the font axis (weight, width, slant, italic...). + /// + DWRITE_FONT_AXIS_TAG axisTag; + + /// + /// Minimum value supported by this axis. + /// + FLOAT minValue; + + /// + /// Maximum value supported by this axis. The maximum can equal the minimum. + /// + FLOAT maxValue; +}; + + +/// +/// How font families are grouped together, used by IDWriteFontCollection. +/// +enum DWRITE_FONT_FAMILY_MODEL +{ + /// + /// Families are grouped by the typographic family name preferred by the font author. The family can contain as + /// many face as the font author wants. + /// This corresponds to the DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FAMILY_NAME. + /// + DWRITE_FONT_FAMILY_MODEL_TYPOGRAPHIC, + + /// + /// Families are grouped by the weight-stretch-style family name, where all faces that differ only by those three + /// axes are grouped into the same family, but any other axes go into a distinct family. For example, the Sitka + /// family with six different optical sizes yields six separate families (Sitka Caption, Display, Text, Subheading, + /// Heading, Banner...). This corresponds to the DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FAMILY_NAME. + /// + DWRITE_FONT_FAMILY_MODEL_WEIGHT_STRETCH_STYLE, +}; + + +/// +/// Apply certain axes automatically in layout during font selection. +/// +enum DWRITE_AUTOMATIC_FONT_AXES +{ + /// + /// No axes are automatically applied. + /// + DWRITE_AUTOMATIC_FONT_AXES_NONE = 0x0000, + + /// + /// Automatically pick an appropriate optical value based on the font size (via SetFontSize) when no value is + /// specified via DWRITE_FONT_AXIS_TAG_OPTICAL_SIZE. Callers can still explicitly apply the 'opsz' value over + /// text ranges via SetFontAxisValues, which take priority. + /// + DWRITE_AUTOMATIC_FONT_AXES_OPTICAL_SIZE = 0x0001, +}; + +#ifdef DEFINE_ENUM_FLAG_OPERATORS +DEFINE_ENUM_FLAG_OPERATORS(DWRITE_AUTOMATIC_FONT_AXES); +#endif + + +/// +/// Attributes for a font axis. +/// +enum DWRITE_FONT_AXIS_ATTRIBUTES +{ + /// + /// No attributes. + /// + DWRITE_FONT_AXIS_ATTRIBUTES_NONE = 0x0000, + + /// + /// This axis is implemented as a variation axis in a variable font, with a continuous range of + /// values, such as a range of weights from 100..900. Otherwise it is either a static axis that + /// holds a single point, or it has a range but doesn't vary, such as optical size in the Skia + /// Heading font which covers a range of points but doesn't interpolate any new glyph outlines. + /// + DWRITE_FONT_AXIS_ATTRIBUTES_VARIABLE = 0x0001, + + /// + /// This axis is recommended to be remain hidden in user interfaces. The font developer may + /// recommend this if an axis is intended to be accessed only programmatically, or is meant for + /// font-internal or font-developer use only. The axis may be exposed in lower-level font + /// inspection utilities, but should not be exposed in common or even advanced-mode user + /// interfaces in content-authoring apps. + /// + DWRITE_FONT_AXIS_ATTRIBUTES_HIDDEN = 0x0002, +}; + +#ifdef DEFINE_ENUM_FLAG_OPERATORS +DEFINE_ENUM_FLAG_OPERATORS(DWRITE_FONT_AXIS_ATTRIBUTES); +#endif + + +interface DWRITE_DECLARE_INTERFACE("F3744D80-21F7-42EB-B35D-995BC72FC223") IDWriteFactory6 : public IDWriteFactory5 +{ + /// + /// Creates a reference to a specific font instance within a file. + /// + /// User provided font file representing the font face. + /// The zero based index of a font face in cases when the font files contain a collection of font faces. + /// If the font files contain a single face, this value should be zero. + /// Font face simulation flags for algorithmic emboldening and italicization. + /// List of font axis values. + /// Number of font axis values. + /// Receives a pointer to the newly created font face reference object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFaceReference)( + _In_ IDWriteFontFile* fontFile, + UINT32 faceIndex, + DWRITE_FONT_SIMULATIONS fontSimulations, + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + _COM_Outptr_ IDWriteFontFaceReference1** fontFaceReference + ) PURE; + + using IDWriteFactory5::CreateFontFaceReference; + + /// + /// Creates a font resource given a font file and face index. + /// + /// User provided font file representing the font face. + /// The zero based index of a font face in cases when the font files contain a collection of font faces. + /// If the font files contain a single face, this value should be zero. + /// Receives a pointer to the newly created font resource object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontResource)( + _In_ IDWriteFontFile* fontFile, + UINT32 faceIndex, + _COM_Outptr_ IDWriteFontResource** fontResource + ) PURE; + + /// + /// Retrieves the set of system fonts. + /// + /// Include downloadable fonts or only locally installed ones. + /// Receives a pointer to the font set object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetSystemFontSet)( + BOOL includeDownloadableFonts, + _COM_Outptr_ IDWriteFontSet1** fontSet + ) PURE; + + using IDWriteFactory3::GetSystemFontSet; + + /// + /// Retrieves a collection of fonts grouped into families. + /// + /// Include downloadable fonts or only locally installed ones. + /// How to group families in the collection. + /// Receives a pointer to the font collection object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetSystemFontCollection)( + BOOL includeDownloadableFonts, + DWRITE_FONT_FAMILY_MODEL fontFamilyModel, + _COM_Outptr_ IDWriteFontCollection2** fontCollection + ) PURE; + + using IDWriteFactory3::GetSystemFontCollection; + + /// + /// Create a collection of fonts grouped into families from a font set. + /// + /// A set of fonts to use to build the collection. + /// How to group families in the collection. + /// Receives a pointer to the newly created font collection object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontCollectionFromFontSet)( + IDWriteFontSet* fontSet, + DWRITE_FONT_FAMILY_MODEL fontFamilyModel, + _COM_Outptr_ IDWriteFontCollection2** fontCollection + ) PURE; + + using IDWriteFactory5::CreateFontCollectionFromFontSet; + + /// + /// Creates an empty font set builder to add font instances and create a custom font set. + /// + /// Receives a pointer to the newly created font set builder object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontSetBuilder)( + _COM_Outptr_ IDWriteFontSetBuilder2** fontSetBuilder + ) PURE; + + using IDWriteFactory3::CreateFontSetBuilder; + using IDWriteFactory5::CreateFontSetBuilder; + + /// + /// Create a text format object used for text layout. + /// + /// Name of the font family from the collection. + /// Font collection, with nullptr indicating the system font collection. + /// List of font axis values. + /// Number of font axis values. + /// Logical size of the font in DIP units. + /// Locale name (e.g. "ja-JP", "en-US", "ar-EG"). + /// Receives a pointer to the newly created text format object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + /// + /// If fontCollection is nullptr, the system font collection is used, grouped by typographic family name + /// (DWRITE_FONT_FAMILY_MODEL_TYPOGRAPHIC) without downloadable fonts. + /// + STDMETHOD(CreateTextFormat)( + _In_z_ WCHAR const* fontFamilyName, + _In_opt_ IDWriteFontCollection* fontCollection, + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + FLOAT fontSize, + _In_z_ WCHAR const* localeName, + _COM_Outptr_ IDWriteTextFormat3** textFormat + ) PURE; + + using IDWriteFactory::CreateTextFormat; +}; + + +interface DWRITE_DECLARE_INTERFACE("98EFF3A5-B667-479A-B145-E2FA5B9FDC29") IDWriteFontFace5 : public IDWriteFontFace4 +{ + /// + /// Get the number of axes defined by the font. This includes both static and variable axes. + /// + STDMETHOD_(UINT32, GetFontAxisValueCount)() PURE; + + /// + /// Get the list of axis values used by the font. + /// + /// List of font axis values. + /// Maximum number of font axis values to write. + /// + /// Standard HRESULT error code, or E_INVALIDARG if fontAxisValueCount doesn't match GetFontAxisValueCount. + /// + /// + /// The values are returned in the canonical order defined by the font, clamped to the actual range supported, + /// not specifically the same axis value array passed to CreateFontFace. + /// + STDMETHOD(GetFontAxisValues)( + _Out_writes_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE* fontAxisValues, + UINT32 fontAxisValueCount + ) PURE; + + /// + /// Whether this font's resource supports any variable axes. When true, at least one DWRITE_FONT_AXIS_RANGE + /// in the font resource has a non-empty range (maximum > minimum). + /// + STDMETHOD_(BOOL, HasVariations)() PURE; + + /// + /// Get the underlying font resource for this font face. A caller can use that to query information on the resource + /// or recreate a new font face instance with different axis values. + /// + /// Newly created font resource object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontResource)( + _COM_Outptr_ IDWriteFontResource** fontResource + ) PURE; + + /// + /// Compares two instances of a font face for equality. + /// + STDMETHOD_(BOOL, Equals)(IDWriteFontFace* fontFace) PURE; +}; + + +/// +/// Interface to return axis information for a font resource and create specific font face instances. +/// +interface DWRITE_DECLARE_INTERFACE("1F803A76-6871-48E8-987F-B975551C50F2") IDWriteFontResource : public IUnknown +{ + /// + /// Get the font file of the resource. + /// + /// Receives a pointer to the font file. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFile)( + _COM_Outptr_ IDWriteFontFile** fontFile + ) PURE; + + /// + /// Obtains the zero-based index of the font face in its font file. If the font files contain a single face, + /// the return value is zero. + /// + STDMETHOD_(UINT32, GetFontFaceIndex)() PURE; + + /// + /// Get the number of axes supported by the font resource. This includes both static and variable axes. + /// + STDMETHOD_(UINT32, GetFontAxisCount)() PURE; + + /// + /// Get the default values for all axes supported by the font resource. + /// + /// List of font axis values. + /// Maximum number of font axis values to write. + /// + /// Different font resources may have different defaults. + /// For OpenType 1.8 fonts, these values come from the STAT and fvar tables. + /// For older fonts without a STAT table, weight-width-slant-italic are read from the OS/2 table. + /// + /// + /// Standard HRESULT error code, or E_INVALIDARG if fontAxisValueCount doesn't match GetFontAxisCount. + /// + STDMETHOD(GetDefaultFontAxisValues)( + _Out_writes_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE* fontAxisValues, + UINT32 fontAxisValueCount + ) PURE; + + /// + /// Get ranges of each axis. + /// + /// + /// Total number of axis ranges + /// + /// Standard HRESULT error code, or E_INVALIDARG if fontAxisRangeCount doesn't match GetFontAxisCount. + /// + /// + /// Non-varying axes will have empty ranges (minimum==maximum). + /// + STDMETHOD(GetFontAxisRanges)( + _Out_writes_(fontAxisRangeCount) DWRITE_FONT_AXIS_RANGE* fontAxisRanges, + UINT32 fontAxisRangeCount + ) PURE; + + /// + /// Gets attributes about the given axis, such as whether the font author recommends to hide the axis + /// in user interfaces. + /// + /// Font axis, from 0 to GetFontAxisValueCount - 1. + /// Receives the attributes for the given axis. + /// + /// Attributes for a font axis, or NONE if axisIndex is beyond the font count. + /// + STDMETHOD_(DWRITE_FONT_AXIS_ATTRIBUTES, GetFontAxisAttributes)( + UINT32 axisIndex + ) PURE; + + /// + /// Gets the localized names of a font axis. + /// + /// Font axis, from 0 to GetFontAxisCount - 1. + /// Receives a pointer to the newly created localized strings object. + /// + /// The font author may not have supplied names for some font axes. The localized strings + /// will be empty in that case. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetAxisNames)( + UINT32 axisIndex, + _COM_Outptr_ IDWriteLocalizedStrings** names + ) PURE; + + /// + /// Get the number of named values for a specific axis. + /// + /// Font axis, from 0 to GetFontAxisCount - 1. + /// + /// Number of named values. + /// + STDMETHOD_(UINT32, GetAxisValueNameCount)( + UINT32 axisIndex + ) PURE; + + /// + /// Gets the localized names of specific values for a font axis. + /// + /// Font axis, from 0 to GetFontAxisCount - 1. + /// Value index, from 0 to GetAxisValueNameCount - 1. + /// Range of the named value. + /// Receives a pointer to the newly created localized strings object. + /// + /// The font author may not have supplied names for some font axis values. The localized strings + /// will be empty in that case. The range may be a single point, where minimum == maximum. + /// All ranges are in ascending order by axisValueIndex. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetAxisValueNames)( + UINT32 axisIndex, + UINT32 axisValueIndex, + _Out_ DWRITE_FONT_AXIS_RANGE* fontAxisRange, + _COM_Outptr_ IDWriteLocalizedStrings** names + ) PURE; + + /// + /// Whether this font's resource supports any variable axes. When true, at least one DWRITE_FONT_AXIS_RANGE + /// in the font resource has a non-empty range (maximum > minimum). + /// + STDMETHOD_(BOOL, HasVariations)() PURE; + + /// + /// Creates a font face instance with specific axis values. + /// + /// Font face simulation flags for algorithmic emboldening and italicization. + /// List of font axis values. + /// Number of font axis values. + /// Receives a pointer to the newly created font face object, or nullptr on failure. + /// + /// The passed input axis values are permitted to be a subset or superset of all the ones actually supported by + /// the font. Any unspecified axes use their default values, values beyond the ranges are clamped, and any + /// non-varying axes have no effect. + /// + /// + /// Standard HRESULT error code, or DWRITE_E_REMOTEFONT if the face is not local. + /// + STDMETHOD(CreateFontFace)( + DWRITE_FONT_SIMULATIONS fontSimulations, + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + _COM_Outptr_ IDWriteFontFace5** fontFace + ) PURE; + + /// + /// Creates a font face reference with specific axis values. + /// + /// Font face simulation flags for algorithmic emboldening and italicization. + /// List of font axis values. + /// Number of font axis values. + /// Receives a pointer to the newly created font face reference object, or nullptr on failure. + /// + /// The passed input axis values are permitted to be a subset or superset of all the ones actually supported by + /// the font. Any unspecified axes use their default values, values beyond the ranges are clamped, and any + /// non-varying axes have no effect. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(CreateFontFaceReference)( + DWRITE_FONT_SIMULATIONS fontSimulations, + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + _COM_Outptr_ IDWriteFontFaceReference1** fontFaceReference + ) PURE; +}; + + +interface DWRITE_DECLARE_INTERFACE("C081FE77-2FD1-41AC-A5A3-34983C4BA61A") IDWriteFontFaceReference1 : public IDWriteFontFaceReference +{ + /// + /// Creates a font face from the reference for use with layout, shaping, or rendering. + /// + /// Newly created font face object, or nullptr in the case of failure. + /// + /// Standard HRESULT error code. + /// + /// + /// This function can fail with DWRITE_E_REMOTEFONT if the font is not local. + /// + STDMETHOD(CreateFontFace)( + _COM_Outptr_ IDWriteFontFace5** fontFace + ) PURE; + + using IDWriteFontFaceReference::CreateFontFace; + + /// + /// Get the number of axes specified by the reference. + /// + STDMETHOD_(UINT32, GetFontAxisValueCount)() PURE; + + /// + /// Get the list of font axis values specified by the reference. + /// + /// List of font axis values. + /// Number of font axis values. + /// + /// Standard HRESULT error code, or E_INVALIDARG if fontAxisValueCount doesn't match GetFontAxisValueCount. + /// + STDMETHOD(GetFontAxisValues)( + _Out_writes_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE* fontAxisValues, + UINT32 fontAxisValueCount + ) PURE; +}; + + +interface DWRITE_DECLARE_INTERFACE("EE5BA612-B131-463C-8F4F-3189B9401E45") IDWriteFontSetBuilder2 : public IDWriteFontSetBuilder1 +{ + /// + /// Adds a font to the set being built, with the caller supplying enough information to search on + /// and determine axis ranges, avoiding the need to open the potentially non-local font. + /// + /// Font file reference object to add to the set. + /// The zero based index of a font face in a collection. + /// Font face simulation flags for algorithmic emboldening and italicization. + /// List of font axis values. + /// Number of font axis values. + /// List of axis ranges. + /// Number of axis ranges. + /// List of properties to associate with the reference. + /// How many properties are defined. + /// + /// Standard HRESULT error code. + /// + /// + /// The font properties should include at least a family (typographic or weight/style/stretch). + /// Otherwise the font would be accessible in the IDWriteFontSet only by index, not name. + /// + STDMETHOD(AddFont)( + _In_ IDWriteFontFile* fontFile, + UINT32 fontFaceIndex, + DWRITE_FONT_SIMULATIONS fontSimulations, + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + _In_reads_(fontAxisRangeCount) DWRITE_FONT_AXIS_RANGE const* fontAxisRanges, + UINT32 fontAxisRangeCount, + _In_reads_(propertyCount) DWRITE_FONT_PROPERTY const* properties, + UINT32 propertyCount + ) PURE; + + /// + /// Adds references to all the fonts in the specified font file. The method + /// parses the font file to determine the fonts and their properties. + /// + /// Absolute file path to add to the font set. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(AddFontFile)( + _In_z_ WCHAR const* filePath + ) PURE; + + using IDWriteFontSetBuilder1::AddFontFile; +}; + + +interface DWRITE_DECLARE_INTERFACE("7E9FDA85-6C92-4053-BC47-7AE3530DB4D3") IDWriteFontSet1 : public IDWriteFontSet +{ + /// + /// Generates a matching font set based on the requested inputs, ordered so that nearer matches are earlier. + /// + /// Font property of interest, such as typographic family or weight/stretch/style family. + /// List of font axis values. + /// Number of font axis values. + /// Prioritized list of fonts that match the properties, or nullptr on failure. + /// + /// Standard HRESULT error code. + /// + /// + /// This can yield distinct items that were not in the original font set, including items with simulation flags + /// (if they would be a closer match to the request) and instances that were not named by the font author. + /// Items from the same font resources are collapsed into one, the closest possible match. + /// + STDMETHOD(GetMatchingFonts)( + _In_opt_ DWRITE_FONT_PROPERTY const* fontProperty, + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + _COM_Outptr_ IDWriteFontSet1** matchingFonts + ) PURE; + + /// + /// Returns a font set that contains only the first occurrence of each font resource in the given set. + /// + /// New font set consisting of single default instances from font resources. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFirstFontResources)( + _COM_Outptr_ IDWriteFontSet1** filteredFontSet + ) PURE; + + /// + /// Returns a subset of fonts filtered by the given properties. + /// + /// List of properties to filter using. + /// How many properties to filter. + /// Select any property rather rather than the intersection of them all. + /// Subset of fonts that match the properties, or nullptr on failure. + /// + /// Standard HRESULT error code. + /// + /// + /// If no fonts matched the filter, the returned subset will be empty (GetFontCount returns 0). + /// The subset will always be equal to or less than the original set. + /// + STDMETHOD(GetFilteredFonts)( + _In_reads_opt_(propertyCount) DWRITE_FONT_PROPERTY const* properties, + UINT32 propertyCount, + BOOL selectAnyProperty, + _COM_Outptr_ IDWriteFontSet1** filteredFontSet + ) PURE; + + /// + /// Returns a subset of fonts filtered by the given ranges, endpoint-inclusive. + /// + /// List of axis ranges. + /// Number of axis ranges. + /// Select any range rather rather than the intersection of them all. + /// Subset of fonts that fall within the ranges, or nullptr on failure. + /// + /// Standard HRESULT error code. + /// + /// + /// If no fonts matched the filter, the subset will be empty (GetFontCount returns 0), but the function does not + /// return an error. The subset will always be equal to or less than the original set. + /// + STDMETHOD(GetFilteredFonts)( + _In_reads_(fontAxisRangeCount) DWRITE_FONT_AXIS_RANGE const* fontAxisRanges, + UINT32 fontAxisRangeCount, + BOOL selectAnyRange, + _COM_Outptr_ IDWriteFontSet1** filteredFontSet + ) PURE; + + /// + /// Returns a subset of fonts filtered by the given indices. + /// + /// Array of indices, each index from [0..GetFontCount() - 1]. + /// Number of indices. + /// Subset of fonts that come from the given indices, or nullptr on failure. + /// + /// Standard HRESULT error code. + /// + /// + /// The indices can come in any order, meaning this function can produce a new set with items removed, duplicated, + /// or reordered from the original. If zero indices were passed, an empty font set is returned. + /// + STDMETHOD(GetFilteredFonts)( + _In_reads_(indexCount) UINT32 const* indices, + UINT32 indexCount, + _COM_Outptr_ IDWriteFontSet1** filteredFontSet + ) PURE; + + /// + /// Get all the item indices filtered by the given properties. + /// + /// List of properties to filter using. + /// How many properties to filter. + /// Select any property rather rather than the intersection of them all. + /// Ascending array of indices [0..GetFontCount() - 1]. + /// Number of indices. + /// Actual number of indices written or needed [0..GetFontCount()-1]. + /// + /// E_NOT_SUFFICIENT_BUFFER if the buffer is too small, with actualIndexCount set to the needed size. + /// The actualIndexCount will always be <= IDwriteFontSet::GetFontCount. + /// + STDMETHOD(GetFilteredFontIndices)( + _In_reads_(propertyCount) DWRITE_FONT_PROPERTY const* properties, + UINT32 propertyCount, + BOOL selectAnyProperty, + _Out_writes_(maxIndexCount) UINT32* indices, + UINT32 maxIndexCount, + _Out_ UINT32* actualIndexCount + ) PURE; + + /// + /// Get all the item indices filtered by the given ranges. + /// + /// List of axis ranges. + /// Number of axis ranges. + /// Select any property rather rather than the intersection of them all. + /// Ascending array of indices [0..GetFontCount() - 1]. + /// Number of indices. + /// Actual number of indices written or needed [0..GetFontCount()-1]. + /// + /// E_NOT_SUFFICIENT_BUFFER if the buffer is too small, with actualIndexCount set to the needed size. + /// + STDMETHOD(GetFilteredFontIndices)( + _In_reads_(fontAxisRangeCount) DWRITE_FONT_AXIS_RANGE const* fontAxisRanges, + UINT32 fontAxisRangeCount, + BOOL selectAnyRange, + _Out_writes_(maxIndexCount) UINT32* indices, + UINT32 maxIndexCount, + _Out_ UINT32* actualIndexCount + ) PURE; + + /// + /// Gets all axis ranges in the font set, the union of all contained items. + /// + /// List of axis ranges. + /// Number of axis ranges. + /// Actual number of axis ranges written or needed. + /// + /// E_NOT_SUFFICIENT_BUFFER if the buffer is too small, with actualFontAxisRangeCount set to the needed size. + /// + STDMETHOD(GetFontAxisRanges)( + _Out_writes_(maxFontAxisRangeCount) DWRITE_FONT_AXIS_RANGE* fontAxisRanges, + UINT32 maxFontAxisRangeCount, + _Out_ UINT32* actualFontAxisRangeCount + ) PURE; + + /// + /// Get the axis ranges of a single item. + /// + /// Zero-based index of the font in the set. + /// List of axis ranges. + /// Number of axis ranges. + /// Actual number of axis ranges written or needed. + /// + /// E_NOT_SUFFICIENT_BUFFER if the buffer is too small, with actualFontAxisRangeCount set to the needed size. + /// + STDMETHOD(GetFontAxisRanges)( + UINT32 listIndex, + _Out_writes_(maxFontAxisRangeCount) DWRITE_FONT_AXIS_RANGE* fontAxisRanges, + UINT32 maxFontAxisRangeCount, + _Out_ UINT32* actualFontAxisRangeCount + ) PURE; + + /// + /// Get the font face reference of a single item. + /// + /// Zero-based index of the font item in the set. + /// Receives a pointer to the font face reference. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFaceReference)( + UINT32 listIndex, + _COM_Outptr_ IDWriteFontFaceReference1** fontFaceReference + ) PURE; + + using IDWriteFontSet::GetFontFaceReference; + + /// + /// Create the font resource of a single item. + /// + /// Zero-based index of the font item in the set. + /// Receives a pointer to the font resource. + /// + /// Standard HRESULT error code, or DWRITE_E_REMOTEFONT if the file is not local. + /// + STDMETHOD(CreateFontResource)( + UINT32 listIndex, + _COM_Outptr_ IDWriteFontResource** fontResource + ) PURE; + + /// + /// Create a font face for a single item (rather than going through the font face reference). + /// + /// Zero-based index of the font item in the set. + /// Receives a pointer to the font face. + /// + /// Standard HRESULT error code, or DWRITE_E_REMOTEFONT if the file is not local. + /// + STDMETHOD(CreateFontFace)( + UINT32 listIndex, + _COM_Outptr_ IDWriteFontFace5** fontFace + ) PURE; + + /// + /// Return the locality of a single item. + /// + /// Zero-based index of the font item in the set. + /// + /// The locality enumeration. For fully local files, the result will always + /// be DWRITE_LOCALITY_LOCAL. For downloadable files, the result depends on how + /// much of the file has been downloaded. + /// + /// + /// The locality enumeration. + /// + STDMETHOD_(DWRITE_LOCALITY, GetFontLocality)(UINT32 listIndex) PURE; +}; + + +interface DWRITE_DECLARE_INTERFACE("C0763A34-77AF-445A-B735-08C37B0A5BF5") IDWriteFontList2 : public IDWriteFontList1 +{ + /// + /// Get the underlying font set used by this list. + /// + /// Contains font set used by the list. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontSet)( + _COM_Outptr_ IDWriteFontSet1** fontSet + ) PURE; +}; + + +interface DWRITE_DECLARE_INTERFACE("3ED49E77-A398-4261-B9CF-C126C2131EF3") IDWriteFontFamily2 : public IDWriteFontFamily1 +{ + /// + /// Gets a list of fonts in the font family ranked in order of how well they match the specified axis values. + /// + /// List of font axis values. + /// Number of font axis values. + /// Receives a pointer to the newly created font list object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetMatchingFonts)( + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + _COM_Outptr_ IDWriteFontList2** matchingFonts + ) PURE; + + using IDWriteFontFamily::GetMatchingFonts; + + /// + /// Get the underlying font set used by this family. + /// + /// Contains font set used by the family. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontSet)( + _COM_Outptr_ IDWriteFontSet1** fontSet + ) PURE; +}; + + +interface DWRITE_DECLARE_INTERFACE("514039C6-4617-4064-BF8B-92EA83E506E0") IDWriteFontCollection2 : public IDWriteFontCollection1 +{ + /// + /// Creates a font family object given a zero-based font family index. + /// + /// Zero-based index of the font family. + /// Receives a pointer the newly created font family object. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontFamily)( + UINT32 index, + _COM_Outptr_ IDWriteFontFamily2** fontFamily + ) PURE; + + /// + /// Gets a list of fonts in the specified font family ranked in order of how well they match the specified axis values. + /// + /// Name of the font family. The name is not case-sensitive but must otherwise exactly match a family name in the collection. + /// List of font axis values. + /// Number of font axis values. + /// Receives a pointer to the newly created font list object. + /// + /// If no fonts matched, the list will be empty (GetFontCount returns 0), + /// but the function does not return an error. + /// + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetMatchingFonts)( + _In_z_ WCHAR const* familyName, + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + _COM_Outptr_ IDWriteFontList2** fontList + ) PURE; + + /// + /// Get the font family model used by the font collection to group families. + /// + /// + /// Family model enumeration. + /// + STDMETHOD_(DWRITE_FONT_FAMILY_MODEL, GetFontFamilyModel)() PURE; + + /// + /// Get the underlying font set used by this collection. + /// + /// Contains font set used by the collection. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontSet)( + _COM_Outptr_ IDWriteFontSet1** fontSet + ) PURE; + + using IDWriteFontCollection::GetFontFamily; + using IDWriteFontCollection1::GetFontFamily; + using IDWriteFontCollection1::GetFontSet; +}; + + +interface DWRITE_DECLARE_INTERFACE("05A9BF42-223F-4441-B5FB-8263685F55E9") IDWriteTextLayout4 : public IDWriteTextLayout3 +{ + /// + /// Set values for font axes over a range of text. + /// + /// List of font axis values. + /// Number of font axis values. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetFontAxisValues)( + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + DWRITE_TEXT_RANGE textRange + ) PURE; + + /// + /// Get the number of axes set on the text position. + /// + STDMETHOD_(UINT32, GetFontAxisValueCount)( + UINT32 currentPosition + ) PURE; + + /// + /// Get the list of font axis values on the text position. + /// + /// List of font axis values. + /// Maximum number of font axis values to write. + /// + /// Standard HRESULT error code, or E_INVALIDARG if fontAxisValueCount doesn't match GetFontAxisValueCount. + /// + STDMETHOD(GetFontAxisValues)( + UINT32 currentPosition, + _Out_writes_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE* fontAxisValues, + UINT32 fontAxisValueCount, + _Out_opt_ DWRITE_TEXT_RANGE* textRange = nullptr + ) PURE; + + /// + /// Get the automatic axis options. + /// + /// + /// Automatic axis options. + /// + STDMETHOD_(DWRITE_AUTOMATIC_FONT_AXES, GetAutomaticFontAxes)() PURE; + + /// + /// Sets the automatic font axis options. + /// + /// Automatic font axis options. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetAutomaticFontAxes)(DWRITE_AUTOMATIC_FONT_AXES automaticFontAxes) PURE; +}; + + +interface DWRITE_DECLARE_INTERFACE("6D3B5641-E550-430D-A85B-B7BF48A93427") IDWriteTextFormat3 : public IDWriteTextFormat2 +{ + /// + /// Set values for font axes of the format. + /// + /// List of font axis values. + /// Number of font axis values. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetFontAxisValues)( + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount + ) PURE; + + /// + /// Get the number of axes set on the format. + /// + STDMETHOD_(UINT32, GetFontAxisValueCount)() PURE; + + /// + /// Get the list of font axis values on the format. + /// + /// List of font axis values. + /// Maximum number of font axis values to write. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontAxisValues)( + _Out_writes_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE* fontAxisValues, + UINT32 fontAxisValueCount + ) PURE; + + /// + /// Get the automatic axis options. + /// + /// + /// Automatic axis options. + /// + STDMETHOD_(DWRITE_AUTOMATIC_FONT_AXES, GetAutomaticFontAxes)() PURE; + + /// + /// Sets the automatic font axis options. + /// + /// Automatic font axis options. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetAutomaticFontAxes)(DWRITE_AUTOMATIC_FONT_AXES automaticFontAxes) PURE; +}; + + +interface DWRITE_DECLARE_INTERFACE("2397599D-DD0D-4681-BD6A-F4F31EAADE77") IDWriteFontFallback1 : public IDWriteFontFallback +{ + /// + /// Determines an appropriate font to use to render the range of text. + /// + /// The text source implementation holds the text and locale. + /// Length of the text to analyze. + /// Default font collection to use. + /// Family name of the base font. If you pass nullptr, no matching will be done against + /// the base family. + /// List of font axis values. + /// Number of font axis values. + /// Length of text mapped to the mapped font. This will always be less or equal to the + /// input text length and greater than zero (if the text length is non-zero) so that the caller advances at + /// least one character each call. + /// The font face that should be used to render the first mappedLength characters of the text. + /// If it returns null, then no known font can render the text, and mappedLength is the number of unsupported + /// characters to skip. + /// Scale factor to multiply the em size of the returned font by. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(MapCharacters)( + IDWriteTextAnalysisSource* analysisSource, + UINT32 textPosition, + UINT32 textLength, + _In_opt_ IDWriteFontCollection* baseFontCollection, + _In_opt_z_ WCHAR const* baseFamilyName, + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + _Deref_out_range_(0, textLength) UINT32* mappedLength, + _Out_ FLOAT* scale, + _COM_Outptr_ IDWriteFontFace5** mappedFontFace + ) PURE; + + using IDWriteFontFallback::MapCharacters; +}; + +#endif // NTDDI_VERSION >= NTDDI_WIN10_RS3 + +#if NTDDI_VERSION >= NTDDI_WIN10_RS4 + +interface DWRITE_DECLARE_INTERFACE("DC7EAD19-E54C-43AF-B2DA-4E2B79BA3F7F") IDWriteFontSet2 : public IDWriteFontSet1 +{ + /// + /// Gets the expiration event for the font set, if any. The expiration event is set on a system font set object if + /// it is out of date due to fonts being installed, uninstalled, or updated. The client should handle the event by + /// getting a new system font set. + /// + /// + /// Returns an event handle if called on the system font set, or nullptr if called on a custom font set. + /// + /// + /// The client must not call CloseHandle on the returned event handle. The handle is owned by the font set + /// object, and remains valid as long as the client holds a reference to the font set. The client can wait + /// on the returned event or use RegisterWaitForSingleObject to request a callback when the event is set. + /// + STDMETHOD_(HANDLE, GetExpirationEvent)() PURE; +}; + +interface DWRITE_DECLARE_INTERFACE("A4D055A6-F9E3-4E25-93B7-9E309F3AF8E9") IDWriteFontCollection3 : public IDWriteFontCollection2 +{ + /// + /// Gets the expiration event for the font collection, if any. The expiration event is set on a system font + /// collection object if it is out of date due to fonts being installed, uninstalled, or updated. The client + /// should handle the event by getting a new system font collection. + /// + /// + /// Returns an event handle if called on the system font collection, or nullptr if called on a custom font + /// collection. + /// + /// + /// The client must not call CloseHandle on the returned event handle. The handle is owned by the font collection + /// object, and remains valid as long as the client holds a reference to the font collection. The client can wait + /// on the returned event or use RegisterWaitForSingleObject to request a callback when the event is set. + /// + STDMETHOD_(HANDLE, GetExpirationEvent)() PURE; +}; + +interface DWRITE_DECLARE_INTERFACE("35D0E0B3-9076-4D2E-A016-A91B568A06B4") IDWriteFactory7 : public IDWriteFactory6 +{ + /// + /// Retrieves the set of system fonts. + /// + /// Include downloadable fonts or only locally installed ones. + /// Receives a pointer to the font set object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetSystemFontSet)( + BOOL includeDownloadableFonts, + _COM_Outptr_ IDWriteFontSet2** fontSet + ) PURE; + + using IDWriteFactory6::GetSystemFontSet; + + /// + /// Retrieves a collection of fonts grouped into families. + /// + /// Include downloadable fonts or only locally installed ones. + /// How to group families in the collection. + /// Receives a pointer to the font collection object, or nullptr in case of failure. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetSystemFontCollection)( + BOOL includeDownloadableFonts, + DWRITE_FONT_FAMILY_MODEL fontFamilyModel, + _COM_Outptr_ IDWriteFontCollection3** fontCollection + ) PURE; + + using IDWriteFactory6::GetSystemFontCollection; +}; + +#endif // NTDDI_VERSION >= NTDDI_WIN10_RS4 + +#if NTDDI_VERSION >= NTDDI_WIN10_RS5 + +/// +/// The font source type identifies the mechanism by which a font came to be included in a font set. +/// +enum DWRITE_FONT_SOURCE_TYPE +{ + /// + /// The font source is unknown or is not any of the other defined font source types. + /// + DWRITE_FONT_SOURCE_TYPE_UNKNOWN, + + /// + /// The font source is a font file, which is installed for all users on the device. + /// + DWRITE_FONT_SOURCE_TYPE_PER_MACHINE, + + /// + /// The font source is a font file, which is installed for the current user. + /// + DWRITE_FONT_SOURCE_TYPE_PER_USER, + + /// + /// The font source is an APPX package, which includes one or more font files. + /// The font source name is the full name of the package. + /// + DWRITE_FONT_SOURCE_TYPE_APPX_PACKAGE, + + /// + /// The font source is a font provider for downloadable fonts. + /// + DWRITE_FONT_SOURCE_TYPE_REMOTE_FONT_PROVIDER +}; + +interface DWRITE_DECLARE_INTERFACE("7C073EF2-A7F4-4045-8C32-8AB8AE640F90") IDWriteFontSet3 : public IDWriteFontSet2 +{ + /// + /// Gets the font source type of the specified font. + /// + /// Zero-based index of the font. + STDMETHOD_(DWRITE_FONT_SOURCE_TYPE, GetFontSourceType)(UINT32 fontIndex) PURE; + + /// + /// Gets the length of the font source name for the specified font. + /// + /// Zero-based index of the font. + STDMETHOD_(UINT32, GetFontSourceNameLength)(UINT32 listIndex) PURE; + + /// + /// Copies the font source name for the specified font to an output array. + /// + /// Zero-based index of the font. + /// Character array that receives the string. + /// Size of the array in characters. The size must include space for the terminating + /// null character. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFontSourceName)( + UINT32 listIndex, + _Out_writes_z_(stringBufferSize) WCHAR* stringBuffer, + UINT32 stringBufferSize + ) PURE; +}; + +#endif // NTDDI_VERSION >= NTDDI_WIN10_RS5 + +#if NTDDI_VERSION >= NTDDI_WIN10_MN + +interface DWRITE_DECLARE_INTERFACE("C4B1FE1B-6E84-47D5-B54C-A597981B06AD") IDWriteFontFace6 : public IDWriteFontFace5 +{ + /// + /// Creates a localized strings object that contains the family names for the font, indexed by locale name. + /// + /// Specifies how fonts are grouped into families, which affects the family name property. + /// Receives a pointer to an object to contains the font family names, indexed by locale. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFamilyNames)( + DWRITE_FONT_FAMILY_MODEL fontFamilyModel, + _COM_Outptr_ IDWriteLocalizedStrings** names + ) PURE; + + using IDWriteFontFace3::GetFamilyNames; + + /// + /// Creates a localized strings object that contains the face names for the font, indexed by locale name. + /// + /// Specifies how fonts are grouped into families, which affects the face name property. + /// Receives a pointer to an object to contains the font face names, indexed by locale. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(GetFaceNames)( + DWRITE_FONT_FAMILY_MODEL fontFamilyModel, + _COM_Outptr_ IDWriteLocalizedStrings** names + ) PURE; + + using IDWriteFontFace3::GetFaceNames; +}; + +#endif // NTDDI_VERSION >= NTDDI_WIN10_MN + +#if NTDDI_VERSION >= NTDDI_WIN10_NI + +interface DWRITE_DECLARE_INTERFACE("EEC175FC-BEA9-4C86-8B53-CCBDD7DF0C82") IDWriteFontSet4 : public IDWriteFontSet3 +{ + /// + /// Computes derived font axis values from the specified font weight, stretch, style, and size. + /// + /// Pointer to an optional array of input axis values. Axes present + /// in this array are excluded from the output. This is so explicit axis values take precedence over + /// derived axis values. + /// Size of the array of input axis values. + /// Font weight, used to compute "wght" axis value. + /// Font stretch, used to compute "wdth" axis value. + /// Font style, used to compute "slnt" and "ital" axis values. + /// Font size in DIPs, used to compute "opsz" axis value. If this parameter is zero, + /// no "opsz" axis value is added to the output array. + /// Pointer to an output array to which derived axis values are written. + /// The size of this array must be at least DWRITE_STANDARD_FONT_AXIS_COUNT (5). The return value is + /// the actual number of axis values written to this array. + /// Returns the actual number of derived axis values written to the output array. + /// The caller should concatenate the output axis values to the input axis values (if any), + /// and pass the combined axis values to the GetMatchingFonts method. This does not result in duplicates + /// because the output does not include any axes present in the inputAxisValues array. + /// + STDMETHOD_(UINT32, ConvertWeightStretchStyleToFontAxisValues)( + _In_reads_opt_(inputAxisCount) DWRITE_FONT_AXIS_VALUE const* inputAxisValues, + UINT32 inputAxisCount, + DWRITE_FONT_WEIGHT fontWeight, + DWRITE_FONT_STRETCH fontStretch, + DWRITE_FONT_STYLE fontStyle, + float fontSize, + _Out_writes_to_(DWRITE_STANDARD_FONT_AXIS_COUNT, return) DWRITE_FONT_AXIS_VALUE* outputAxisValues + ) PURE; + + /// + /// Generates a matching font set based on the requested inputs, ordered so that nearer matches are earlier. + /// + /// Font family name. This can be a typographic family name, weight/stretch/style + /// family name, GDI (RBIZ) family name, or full name. + /// Array of font axis values. + /// Number of font axis values. + /// Specifies which simulations (i.e., algorithmic emboldening and/or slant) + /// may be applied to matching fonts to better match the specified axis values. No simulations are applied if + /// this parameter is DWRITE_FONT_SIMULATIONS_NONE (0). + /// Receives a pointer to a newly-created font set, which contains a prioritized + /// list of fonts that match the specified inputs. + /// + /// Standard HRESULT error code. + /// + /// + /// This can yield distinct items that were not in the original font set, including items with simulation flags + /// (if they would be a closer match to the request) and instances that were not named by the font author. + /// Items from the same font resources are collapsed into one, the closest possible match. + /// + STDMETHOD(GetMatchingFonts)( + _In_z_ WCHAR const* familyName, + _In_reads_(fontAxisValueCount) DWRITE_FONT_AXIS_VALUE const* fontAxisValues, + UINT32 fontAxisValueCount, + DWRITE_FONT_SIMULATIONS allowedSimulations, + _COM_Outptr_ IDWriteFontSet4** matchingFonts + ) PURE; +}; + +#endif // NTDDI_VERSION >= NTDDI_WIN10_NI + +#if NTDDI_VERSION >= NTDDI_WIN10_CU // TODO - set correct DDI version + +/// +/// Contains information about a bitmap associated with an IDWriteBitmapRenderTarget. +/// The bitmap is top-down with 32-bits per pixel and no padding between scan lines. +/// +struct DWRITE_BITMAP_DATA_BGRA32 +{ + UINT32 width; + UINT32 height; + _Field_size_(width * height) UINT32* pixels; +}; + +/// +/// Encapsulates a bitmap which can be used for rendering glyphs. +/// +DWRITE_BEGIN_INTERFACE(IDWriteBitmapRenderTarget2, "C553A742-FC01-44DA-A66E-B8B9ED6C3995") : IDWriteBitmapRenderTarget1 +{ + /// + /// Gets the demensions and a pointer to the system memory bitmap encapsulated by this + /// bitmap render target object. The pointer is owned by the render target object, and + /// remains valid as long as the object exists. + /// + STDMETHOD(GetBitmapData)(_Out_ DWRITE_BITMAP_DATA_BGRA32* bitmapData) PURE; +}; + +/// +/// Defines known feature level for use with the IDWritePaintReader interface and +/// related APIs. A feature level represents a level of functionality. For example, it +/// determines what DWRITE_PAINT_TYPE values might be returned. +/// +/// +/// See the DWRITE_PAINT_TYPE enumeration for which paint types are required for each +/// feature level. +/// +enum DWRITE_PAINT_FEATURE_LEVEL : INT32 +{ + /// + /// No paint API support. + /// + DWRITE_PAINT_FEATURE_LEVEL_NONE = 0, + + /// + /// Specifies a level of functionality corresponding to OpenType COLR version 0. + /// + DWRITE_PAINT_FEATURE_LEVEL_COLR_V0 = 1, + + /// + /// Specifies a level of functionality corresponding to OpenType COLR version 1. + /// + DWRITE_PAINT_FEATURE_LEVEL_COLR_V1 = 2 +}; + +/// +/// Combination of flags specifying attributes of a color glyph or of specific color values in +/// a color glyph. +/// +enum DWRITE_PAINT_ATTRIBUTES +{ + DWRITE_PAINT_ATTRIBUTES_NONE = 0, + + /// + /// Specifies that the color value (or any color value in the glyph) comes from the font's + /// color palette. This means the appearance may depend on the current palette index, which + /// may be important to clients that cache color glyphs. + /// + DWRITE_PAINT_ATTRIBUTES_USES_PALETTE = 0x01, + + /// + /// Specifies that the color value (or any color value in the glyph) comes from the client-specified + /// text color. This means the appearance may depend on the text color, which may be important to + /// clients that cache color glyphs. + /// + DWRITE_PAINT_ATTRIBUTES_USES_TEXT_COLOR = 0x02 +}; +#ifdef DEFINE_ENUM_FLAG_OPERATORS +DEFINE_ENUM_FLAG_OPERATORS(DWRITE_PAINT_ATTRIBUTES) +#endif + +/// +/// Represents a color in a color glyph. +/// +struct DWRITE_PAINT_COLOR +{ + /// + /// Color value (not premultiplied). See the colorAttributes member for information about how + /// the color is determined. + /// + DWRITE_COLOR_F value; + + /// + /// If the colorAttributes member is DWRITE_PAINT_ATTRIBUTES_USES_PALETTE, this member is + /// the index of a palette entry in the selected color palette. Otherwise, this member is + /// DWRITE_NO_PALETTE_INDEX (0xFFFF). + /// + UINT16 paletteEntryIndex; + + /// + /// Specifies an alpha value multiplier in the range 0 to 1 that was used to compute the color + /// value. Color glyph descriptions may include alpha values to be multiplied with the alpha + /// values of palette entries. + /// + float alphaMultiplier; + + /// + /// Specifies how the color value is determined. If this member is + /// DWRITE_PAINT_ATTRIBUTES_USES_PALETTE, the color value is determined by getting the color at + /// paletteEntryIndex in the current color palette. The color's alpha value is then multiplied + /// by alphaMultiplier. If a font has multiple color palettes, a client can set the current color + /// palette using the IDWritePaintReader::SetColorPaletteIndex method. A client that uses a custom + /// palette can use the paletteEntryIndex and alphaMultiplier methods to compute the color. If this + /// member is DWRITE_PAINT_ATTRIBUTES_USES_TEXT_COLOR, the color value is equal to the text + /// foreground color, which can be set using the IDWritePaintReader::SetTextColor method. + /// + DWRITE_PAINT_ATTRIBUTES colorAttributes; +}; + +/// +/// Specifies a composite mode for combining source and destination paint elements in a +/// color glyph. These are taken from the W3C Compositing and Blending Level 1 specification. +/// +enum DWRITE_COLOR_COMPOSITE_MODE +{ + // Porter-Duff modes. + DWRITE_COLOR_COMPOSITE_CLEAR, + DWRITE_COLOR_COMPOSITE_SRC, + DWRITE_COLOR_COMPOSITE_DEST, + DWRITE_COLOR_COMPOSITE_SRC_OVER, + DWRITE_COLOR_COMPOSITE_DEST_OVER, + DWRITE_COLOR_COMPOSITE_SRC_IN, + DWRITE_COLOR_COMPOSITE_DEST_IN, + DWRITE_COLOR_COMPOSITE_SRC_OUT, + DWRITE_COLOR_COMPOSITE_DEST_OUT, + DWRITE_COLOR_COMPOSITE_SRC_ATOP, + DWRITE_COLOR_COMPOSITE_DEST_ATOP, + DWRITE_COLOR_COMPOSITE_XOR, + DWRITE_COLOR_COMPOSITE_PLUS, + + // Separable color blend modes. + DWRITE_COLOR_COMPOSITE_SCREEN, + DWRITE_COLOR_COMPOSITE_OVERLAY, + DWRITE_COLOR_COMPOSITE_DARKEN, + DWRITE_COLOR_COMPOSITE_LIGHTEN, + DWRITE_COLOR_COMPOSITE_COLOR_DODGE, + DWRITE_COLOR_COMPOSITE_COLOR_BURN, + DWRITE_COLOR_COMPOSITE_HARD_LIGHT, + DWRITE_COLOR_COMPOSITE_SOFT_LIGHT, + DWRITE_COLOR_COMPOSITE_DIFFERENCE, + DWRITE_COLOR_COMPOSITE_EXCLUSION, + DWRITE_COLOR_COMPOSITE_MULTIPLY, + + // Non-separable color blend modes. + DWRITE_COLOR_COMPOSITE_HSL_HUE, + DWRITE_COLOR_COMPOSITE_HSL_SATURATION, + DWRITE_COLOR_COMPOSITE_HSL_COLOR, + DWRITE_COLOR_COMPOSITE_HSL_LUMINOSITY +}; + +/// +/// Identifies a type of paint element in a color glyph. A color glyph's visual representation +/// is defined by a tree of paint elements. A paint element's properties are specified by a +/// DWRITE_PAINT_ELEMENT structure, which combines a paint type an a union. +/// +/// +/// For more information about each paint type, see DWRITE_PAINT_ELEMENT. +/// +enum DWRITE_PAINT_TYPE +{ + // The following paint types may be returned for color feature levels greater than + // or equal to DWRITE_PAINT_FEATURE_LEVEL_COLR_V0. + DWRITE_PAINT_TYPE_NONE, + DWRITE_PAINT_TYPE_LAYERS, + DWRITE_PAINT_TYPE_SOLID_GLYPH, + + // The following paint types may be returned for color feature levels greater than + // or equal to DWRITE_PAINT_FEATURE_LEVEL_COLR_V1. + DWRITE_PAINT_TYPE_SOLID, + DWRITE_PAINT_TYPE_LINEAR_GRADIENT, + DWRITE_PAINT_TYPE_RADIAL_GRADIENT, + DWRITE_PAINT_TYPE_SWEEP_GRADIENT, + DWRITE_PAINT_TYPE_GLYPH, + DWRITE_PAINT_TYPE_COLOR_GLYPH, + DWRITE_PAINT_TYPE_TRANSFORM, + DWRITE_PAINT_TYPE_COMPOSITE +}; + +/// +/// Specifies properties of a paint element, which is one node in a visual tree associated +/// with a color glyph. This is passed as an output parameter to various IDWritePaintReader +/// methods. +/// +/// +/// For a detailed description of how paint elements should be rendered, see the OpenType COLR +/// table specification. Comments below reference the COLR paint record formats associated with +/// each paint type. +/// +/// Note that this structure (and its size) may differ for different versions of the API, as +/// newer versions may have additional union members for new paint types. For this reason, +/// IDWritePaintReader methods that take a DWRITE_PAINT_ELEMENT output parameter also take a +/// structSize parameter, for which the caller should specify actual size of the structure +/// allocated by the caller, i.e., sizeof(DWRITE_PAINT_ELEMENT). Clients should use caution +/// when passing DWRITE_PAINT_ELEMENT objects between components that may have been compiled +/// against different versions of this header file. +/// +struct DWRITE_PAINT_ELEMENT +{ + /// + /// Specifies the paint type, and thus which member of the union is valid. + /// + DWRITE_PAINT_TYPE paintType; + + /// + /// Specifies type-specific properties of the paint element. + /// + union PAINT_UNION + { + /// + /// Valid for paint elements of type DWRITE_PAINT_TYPE_LAYERS. + /// Contains one or more child paint elements to be drawn in bottom-up order. + /// + /// + /// This corresponds to a PaintColrLayers record in the OpenType COLR table. + /// Or it may correspond to a BaseGlyph record defined by COLR version 0. + /// + struct PAINT_LAYERS + { + /// + /// Number of child paint elements in bottom-up order. Use the IDWritePaintReader + /// interface's MoveFirstChild and MoveNextSibling methods to retrieve the child paint + /// elements. Use the MoveParent method to return to the parent element. + /// + UINT32 childCount; + } layers; + + /// + /// Valid for paint elements of type DWRITE_PAINT_TYPE_SOLID_GLYPH. + /// Specifies a glyph with a solid color fill. + /// This paint element has no child elements. + /// + /// + /// This corresponds to a combination of two paint records in the OpenType COLR table: + /// a PaintGlyph record, which references either a PaintSolid or PaintVarSolid record. + /// Or it may correspond to a Layer record defined by COLR version 0. + /// + struct PAINT_SOLID_GLYPH + { + /// + /// Glyph index defining the shape to be filled. + /// + UINT32 glyphIndex; + + /// + /// Glyph color used to fill the glyph shape. + /// + DWRITE_PAINT_COLOR color; + } solidGlyph; + + /// + /// Valid for paint elements of type DWRITE_PAINT_TYPE_SOLID. + /// Specifies a solid color used to fill the current shape or clip. + /// This paint element has no child elements. + /// + /// + /// This corresponds to a PaintSolid or PaintVarSolid record in the OpenType COLR table. + /// + DWRITE_PAINT_COLOR solid; + + /// + /// Valid for paint elements of type DWRITE_PAINT_TYPE_LINEAR_GRADIENT. + /// Specifies a linear gradient used to fill the current shape or clip. + /// This paint element has no child elements. + /// + /// + /// This corresponds to a PaintLinearGradient or PaintVarLinearGradient record in the OpenType + /// COLR table. + /// + struct PAINT_LINEAR_GRADIENT + { + /// + /// D2D1_EXTEND_MODE value speciying how colors outside the interval are defined. + /// + UINT32 extendMode; + + /// + /// Number of gradient stops. Use the IDWritePaintReader::GetGradientStops method to + /// get the gradient stops. + /// + UINT32 gradientStopCount; + + /// + /// X coordinate of the start point of the color line. + /// + float x0; + + /// + /// Y coordinate of the start point of the color line. + /// + float y0; + + /// + /// X coordinate of the end point of the color line. + /// + float x1; + + /// + /// Y coordinate of the end point of the color line. + /// + float y1; + + /// + /// X coordinate of the rotation point of the color line. + /// + float x2; + + /// + /// Y coordinate of the rotation point of the color line. + /// + float y2; + } linearGradient; + + /// + /// Valid for paint elements of type DWRITE_PAINT_TYPE_RADIAL_GRADIENT. + /// Specifies a radial gradient used to fill the current shape or clip. + /// This paint element has no child elements. + /// + /// + /// This corresponds to a PaintRadialGradient or PaintVarRadialGradient record in the OpenType + /// COLR table. + /// + struct PAINT_RADIAL_GRADIENT + { + /// + /// D2D1_EXTEND_MODE value speciying how colors outside the interval are defined. + /// + UINT32 extendMode; + + /// + /// Number of gradient stops. Use the IDWritePaintReader::GetGradientStops method to + /// get the gradient stops. + /// + UINT32 gradientStopCount; + + /// + /// Center X coordinate of the start circle. + /// + float x0; + + /// + /// Center Y coordinate of the start circle. + /// + float y0; + + /// + /// Radius of the start circle. + /// + float radius0; + + /// + /// Center X coordinate of the end circle. + /// + float x1; + + /// + /// Center Y coordinate of the end circle. + /// + float y1; + + /// + /// Radius of the end circle. + /// + float radius1; + } radialGradient; + + /// + /// Valid for paint elements of type DWRITE_PAINT_TYPE_SWEEP_GRADIENT. + /// Specifies a sweep gradient used to fill the current shape or clip. + /// This paint element has no child elements. + /// + /// + /// This corresponds to a PaintSweepGradient or PaintVarSweepGradient record in the OpenType + /// COLR table. + /// + struct PAINT_SWEEP_GRADIENT + { + /// + /// D2D1_EXTEND_MODE value speciying how colors outside the interval are defined. + /// + UINT32 extendMode; + + /// + /// Number of gradient stops. Use the IDWritePaintReader::GetGradientStops method to + /// get the gradient stops. + /// + UINT32 gradientStopCount; + + /// + /// Center X coordinate. + /// + float centerX; + + /// + /// Center Y coordinate. + /// + float centerY; + + /// + /// Start of the angular range of the gradient, measured in counter-clockwise degrees + /// from the direction of the positive x axis. + /// + float startAngle; + + /// + /// End of the angular range of the gradient, measured in counter-clockwise degrees + /// from the direction of the positive x axis. + /// + float endAngle; + } sweepGradient; + + /// + /// Valid for paint elements of type DWRITE_PAINT_TYPE_GLYPH. + /// Specifies a glyph shape to be filled or, equivalently, a clip region. + /// This paint element has one child element. + /// + /// + /// The child paint element defines how the glyph shape is filled. The child element can be a single paint + /// element, such as a linear gradient. Or the child element can be the root of a visual tree to be rendered + /// with the glyph shape as a clip region. + /// This corresponds to a PaintGlyph record in the OpenType COLR table. + /// + struct PAINT_GLYPH + { + /// + /// Glyph index of the glyph that defines the shape to be filled. + /// + UINT32 glyphIndex; + } glyph; + + /// + /// Valid for paint elements of type DWRITE_PAINT_TYPE_COLOR_GLYPH. + /// Specifies another color glyph, used as a reusable component. + /// This paint element has one child element, which is the root paint element of the specified color glyph. + /// + /// + /// This corresponds to a PaintColorGlyph record in the OpenType COLR table. + /// + struct PAINT_COLOR_GLYPH + { + /// + /// Glyph index of the referenced color glyph. + /// + UINT32 glyphIndex; + + /// + /// Clip box of the referenced color glyph, in ems. This is an empty rectangle of the color glyph does + /// not specify a clip box. If it is not an empty rect, the client is required to clip the child content + /// to this box. + /// + D2D_RECT_F clipBox; + } colorGlyph; + + /// + /// Valid for paint elements of type DWRITE_PAINT_TYPE_TRANSFORM. + /// Specifies an affine transform to be applied to child content. + /// This paint element has one child element, which is the transformed content. + /// + /// + /// This corresponds to paint formats 12 through 31 in the OpenType COLR table. + /// + DWRITE_MATRIX transform; + + /// + /// Valid for paint elements of type DWRITE_PAINT_TYPE_COMPOSITE. + /// Combines the two child paint elements using the specified compositing or blending mode. + /// This paint element has two child elements. The first child is the paint source. The + /// second child is the paint destination (or backdrop). + /// + /// + /// This corresponds to a PaintComposite record in the OpenType COLR table. + /// + struct PAINT_COMPOSITE + { + /// + /// Specifies the compositing or blending mode. + /// + DWRITE_COLOR_COMPOSITE_MODE mode; + } composite; + } paint; +}; + +struct D2D1_GRADIENT_STOP; + +/// +/// Interface used to read color glyph data for a specific font. A color glyph is +/// represented as a visual tree of paint elements. +/// +DWRITE_BEGIN_INTERFACE(IDWritePaintReader, "8128E912-3B97-42A5-AB6C-24AAD3A86E54") : IUnknown +{ + /// + /// Sets the current glyph and positions the reader on the root paint element of the + /// selected glyph's visual tree. + /// + /// Glyph index to get the color glyph representation for. + /// Receives information about the root paint element of the + /// glyph's visual tree. + /// Size of the DWRITE_PAINT_ELEMENT structure, in bytes. + /// Receives a precomputed glyph box (in ems) for the specified glyph, + /// if one is specified by the font. Otherwise, the glyph box is set to an empty rectangle + /// (all zeros). If a non-empty clip box is specified, the client must clip the color + /// glyph's representation to the specified box. + /// Receives optional paint attributes for the glyph. + /// + /// Standard HRESULT error code. + /// + /// + /// If the specified glyph index is not a color glyph, the method succeeds, but the paintType + /// member of the DWRITE_PAINT_ELEMENT structure is set to DWRITE_PAINT_TYPE_NONE. In this + /// case, the application should draw the input glyph as a non-color glyph. + /// + STDMETHOD(SetCurrentGlyph)( + UINT32 glyphIndex, + _Out_writes_bytes_(structSize) DWRITE_PAINT_ELEMENT* paintElement, + UINT32 structSize, + _Out_ D2D_RECT_F* clipBox, + _Out_opt_ DWRITE_PAINT_ATTRIBUTES* glyphAttributes = nullptr + ) PURE; + + // Inline overload of SetCurrentGlyph, in which structSize is implied. + HRESULT SetCurrentGlyph( + UINT32 glyphIndex, + _Out_ DWRITE_PAINT_ELEMENT* paintElement, + _Out_ D2D_RECT_F* clipBox, + _Out_opt_ DWRITE_PAINT_ATTRIBUTES* glyphAttributes = nullptr + ) + { + return SetCurrentGlyph( + glyphIndex, + paintElement, + sizeof(DWRITE_PAINT_ELEMENT), + clipBox, + glyphAttributes + ); + } + + /// + /// Sets the client-defined text color. The default value is transparent black. Changing the text color + /// can affect the appearance of a glyph if its definition uses the current text color. If this is the + /// case, the SetCurrentGlyph method returns the DWRITE_PAINT_ATTRIBUTES_USES_TEXT_COLOR flag via the + /// glyphAttributes output parameter. + /// + /// Specifies the text color. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetTextColor)( + DWRITE_COLOR_F const& textColor + ) PURE; + + /// + /// Sets the current color palette index. The default value is zero. Changing the palette index can affect + /// the appearance of a glyph if its definition references colors in the color palette. If this is the case, + /// the SetCurrentGlyph method returns the DWRITE_PAINT_ATTRIBUTES_USES_PALETTE flag via the glyphAttributes + /// output parameter. + /// + /// Specifies the color palette index. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetColorPaletteIndex)( + UINT32 colorPaletteIndex + ) PURE; + + /// + /// Sets a custom color palette with client-defined palette entries instead of using a font-defined color + /// palette. Changing the color palette can affect the appearance of a glyph if its definition references + /// colors in the color palette. If this is the case, the SetCurrentGlyph method returns the + /// DWRITE_PAINT_ATTRIBUTES_USES_PALETTE flag via the glyphAttributes output parameter. + /// + /// Array of palette entries for the client-defined color palette. + /// Size of the paletteEntries array. This must equal the font's palette + /// entry count as returned by IDWriteFontFace2::GetPaletteEntryCount. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(SetCustomColorPalette)( + _In_reads_(paletteEntryCount) DWRITE_COLOR_F const* paletteEntries, + UINT32 paletteEntryCount + ) PURE; + + /// + /// Sets the current position in the visual tree to the first child of the current paint element, and returns + /// the newly-selected element's properties via the paintElement output parameter. + /// + /// Receives the properties of the newly-selected element. + /// Size of the DWRITE_PAINT_ELEMENT structure, in bytes. + /// + /// Standard HRESULT error code. The return value is E_INVALIDARG if the current paint element doesn't have + /// any children. + /// + /// + /// Whether a paint element has children (and how many) can be determined a priori from its paint type and + /// properties. For more information, see DWRITE_PAINT_ELEMENT. + /// + STDMETHOD(MoveToFirstChild)( + _Out_writes_bytes_(structSize) DWRITE_PAINT_ELEMENT* paintElement, + UINT32 structSize = sizeof(DWRITE_PAINT_ELEMENT) + ) PURE; + + /// + /// Sets the current position in the visual tree to the next sibling of the current paint element, and returns + /// the newly-selected element's properties via the paintElement output parameter. + /// + /// Receives the properties of the newly-selected element. + /// Size of the DWRITE_PAINT_ELEMENT structure, in bytes. + /// + /// Standard HRESULT error code. The return value is E_INVALIDARG if the current paint element doesn't have + /// a next sibling. + /// + /// + /// Whether a paint element has children (and how many) can be determined a priori from its paint type and + /// properties. For more information, see DWRITE_PAINT_ELEMENT. + /// + STDMETHOD(MoveToNextSibling)( + _Out_writes_bytes_(structSize) DWRITE_PAINT_ELEMENT* paintElement, + UINT32 structSize = sizeof(DWRITE_PAINT_ELEMENT) + ) PURE; + + /// + /// Sets the current position in the visual tree to the parent of the current paint element. + /// + /// + /// Standard HRESULT error code. The return value is E_INVALIDARG if the current paint element is the root + /// element of the visual tree. + /// + STDMETHOD(MoveToParent)() PURE; + + /// + /// Returns gradient stops of the current paint element. + /// + /// Index of the first gradient stop to get. + /// Number of gradient stops to get. + /// Receives the gradient stops. + /// Standard HRESULT error code. + /// Gradient stops are guaranteed to be in ascending order by position. + STDMETHOD(GetGradientStops)( + UINT32 firstGradientStopIndex, + UINT32 gradientStopCount, + _Out_writes_(gradientStopCount) D2D1_GRADIENT_STOP* gradientStops + ) PURE; + + /// + /// Returns color information about each gradient stop, such as palette indices. + /// + /// Index of the first gradient stop to get. + /// Number of gradient stops to get. + /// Receives the gradient stop colors. + /// Standard HRESULT error code. + STDMETHOD(GetGradientStopColors)( + UINT32 firstGradientStopIndex, + UINT32 gradientStopCount, + _Out_writes_(gradientStopCount) DWRITE_PAINT_COLOR* gradientStopColors + ) PURE; +}; + +DWRITE_BEGIN_INTERFACE(IDWriteFontFace7, "3945B85B-BC95-40F7-B72C-8B73BFC7E13B") : IDWriteFontFace6 +{ + /// + /// Returns the maximum paint feature level supported for the specified glyph image format. + /// Possible values are specified by the DWRITE_PAINT_FEATURE_LEVEL enumeration, + /// but additional feature levels may be added over time. + /// + /// Glyph image format to get the paint feature level for. + /// The return value is zero if the image format is not supported by the IDWritePaintReader API, + /// or if the font doesn't contain image data in that format. + STDMETHOD_(DWRITE_PAINT_FEATURE_LEVEL, GetPaintFeatureLevel)( + DWRITE_GLYPH_IMAGE_FORMATS glyphImageFormat + ) PURE; + + /// + /// Creates a paint reader object, which can be used to retrieve vector graphic information + /// for color glyphs in the font. + /// + /// Specifies the type of glyph data the reader will obtain. The only + /// glyph image format currently supported by this method is DWRITE_GLYPH_IMAGE_FORMATS_COLR_PAINT_TREE. + /// Specifies the maximum paint feature level supported by the client. + /// This affects the types of paint elements that may be returned by the paint reader. + /// Receives a pointer to the newly-created object. + /// Standard HRESULT error code. + STDMETHOD(CreatePaintReader)( + DWRITE_GLYPH_IMAGE_FORMATS glyphImageFormat, + DWRITE_PAINT_FEATURE_LEVEL paintFeatureLevel, + _COM_Outptr_ IDWritePaintReader** paintReader + ) PURE; +}; + + +DWRITE_BEGIN_INTERFACE(IDWriteFactory8, "EE0A7FB5-DEF4-4C23-A454-C9C7DC878398") : IDWriteFactory7 +{ + /// + /// Translates a glyph run to a sequence of color glyph runs, which can be + /// rendered to produce a color representation of the original "base" run. + /// + /// Horizontal and vertical origin of the base glyph run in + /// pre-transform coordinates. + /// Pointer to the original "base" glyph run. + /// Optional glyph run description. + /// Which data formats TranslateColorGlyphRun + /// should split the runs into. + /// Paint feature level supported by the caller. Used + /// when desiredGlyphImageFormats includes DWRITE_GLYPH_IMAGE_FORMATS_COLR_PAINT_TREE. See + /// DWRITE_PAINT_FEATURE_LEVEL for more information. + /// Measuring mode, needed to compute the origins + /// of each glyph. + /// Matrix converting from the client's + /// coordinate space to device coordinates (pixels), i.e., the world transform + /// multiplied by any DPI scaling. + /// Zero-based index of the color palette to use. + /// Valid indices are less than the number of palettes in the font, as returned + /// by IDWriteFontFace2::GetColorPaletteCount. + /// If the function succeeds, receives a pointer + /// to an enumerator object that can be used to obtain the color glyph runs. + /// If the base run has no color glyphs, then the output pointer is NULL + /// and the method returns DWRITE_E_NOCOLOR. + /// + /// Returns DWRITE_E_NOCOLOR if the font has no color information, the glyph run + /// does not contain any color glyphs, or the specified color palette index + /// is out of range. In this case, the client should render the original glyph + /// run. Otherwise, returns a standard HRESULT error code. + /// + /// + /// The old IDWriteFactory2::TranslateColorGlyphRun is equivalent to passing + /// DWRITE_GLYPH_IMAGE_FORMATS_TRUETYPE|CFF|COLR. + /// + STDMETHOD(TranslateColorGlyphRun)( + D2D1_POINT_2F baselineOrigin, + _In_ DWRITE_GLYPH_RUN const* glyphRun, + _In_opt_ DWRITE_GLYPH_RUN_DESCRIPTION const* glyphRunDescription, + DWRITE_GLYPH_IMAGE_FORMATS desiredGlyphImageFormats, + DWRITE_PAINT_FEATURE_LEVEL paintFeatureLevel, + DWRITE_MEASURING_MODE measuringMode, + _In_opt_ DWRITE_MATRIX const* worldAndDpiTransform, + UINT32 colorPaletteIndex, + _COM_Outptr_ IDWriteColorGlyphRunEnumerator1** colorEnumerator + ) PURE; +}; + +/// +/// Encapsulates a bitmap which can be used for rendering glyphs. +/// +DWRITE_BEGIN_INTERFACE(IDWriteBitmapRenderTarget3, "AEEC37DB-C337-40F1-8E2A-9A41B167B238") : IDWriteBitmapRenderTarget2 +{ + /// + /// Returns the paint feature level supported by this render target. + /// A client can pass the return value of this method to IDWriteFactory8::TranslateColorGlyphRun. + /// + STDMETHOD_(DWRITE_PAINT_FEATURE_LEVEL, GetPaintFeatureLevel)() PURE; + + /// + /// Draws a glyph run in a "paint" image format returned by IDWriteColorGlyphRunEnumerator1. + /// + /// X-coordinate of the baseline. + /// Y-coordinate of the baseline. + /// Specifies measuring mode for positioning glyphs in the run. + /// The glyph run to draw. + /// The image format of the color glyph run, as returned by + /// IDWriteColorGlyphRunEnumerator1. This must be one of the "paint" image formats. + /// Foreground color of the text, used in cases where a color glyph + /// uses the text color. + /// Zero-based index of the font-defined color palette to use. + /// Optional rectangle that receives the bounding box (in pixels not DIPs) of all the pixels affected by + /// drawing the glyph run. The black box rectangle may extend beyond the dimensions of the bitmap. + /// + /// Standard HRESULT error code. + /// + STDMETHOD(DrawPaintGlyphRun)( + FLOAT baselineOriginX, + FLOAT baselineOriginY, + DWRITE_MEASURING_MODE measuringMode, + _In_ DWRITE_GLYPH_RUN const* glyphRun, + DWRITE_GLYPH_IMAGE_FORMATS glyphImageFormat, + COLORREF textColor, + UINT32 colorPaletteIndex = 0, + _Out_opt_ RECT* blackBoxRect = NULL + ) PURE; + + /// + /// Draws a glyph run, using color representations of glyphs if available in the font. + /// + /// X-coordinate of the baseline. + /// Y-coordinate of the baseline. + /// Specifies measuring mode for positioning glyphs in the run. + /// The glyph run to draw. + /// Object that controls rendering behavior. + /// Foreground color of the text. + /// Zero-based index of the font-defined color palette to use. + /// Optional rectangle that receives the bounding box (in pixels not DIPs) of all the pixels affected by + /// drawing the glyph run. The black box rectangle may extend beyond the dimensions of the bitmap. + /// + /// Standard HRESULT error code. + /// + /// + /// This method internally calls TranslateColorGlyphRun and then automatically calls the appropriate + /// lower-level methods to render monochrome or color glyph runs. + /// + STDMETHOD(DrawGlyphRunWithColorSupport)( + FLOAT baselineOriginX, + FLOAT baselineOriginY, + DWRITE_MEASURING_MODE measuringMode, + _In_ DWRITE_GLYPH_RUN const* glyphRun, + _In_ IDWriteRenderingParams* renderingParams, + COLORREF textColor, + UINT32 colorPaletteIndex = 0, + _Out_opt_ RECT* blackBoxRect = NULL + ) PURE; +}; + +#endif + +#endif // DWRITE_3_H_INCLUDED diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dx95type.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dx95type.h new file mode 100644 index 0000000000000000000000000000000000000000..c51ee25260497a3be2a0c9c2a0dc1c5bdfb7466f --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dx95type.h @@ -0,0 +1,789 @@ +/******************************Module*Header*******************************\ +* +* Module Name: dx95type.h +* +* Portability module for NT kernel-mode DirectX components created from +* Win95 sources +* +* Copyright (c) Microsoft Corp. All Rights Reserved. +* +\**************************************************************************/ + +#ifndef __DX95TYPE_H__ +#define __DX95TYPE_H__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +// Basic includes +#ifndef NODXINCLUDES +#ifdef WINNT +#include +// Includes ddrawint.h and d3dnthal.h +#include +#else // WINNT +#include +#include +#endif // WINNT +#endif // NODXINCLUDES + +// Simple memory allocation of N bytes +#ifndef NODXMALLOC +#ifdef WINNT +#define DXMALLOC(n) EngAllocMem(0, n, 'amxD') +#define DXMALLOCZ(n) EngAllocMem(FL_ZERO_MEMORY, n, 'amxD') +#define DXFREE(p) EngFreeMem(p) +#else // WINNT +#define DXMALLOC(n) HeapAlloc(GetProcessHeap(), 0, n) +#define DXMALLOCZ(n) HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, n) +#define DXFREE(n) HeapFree(GetProcessHeap(), 0, n) +#endif // WINNT +#endif // NODXMALLOC + +// Surface and palette access macros +#ifndef NODXLCL +#ifdef WINNT +#define DDS_LCL(pdds) (pdds) +#define DDP_LCL(pddp) (pddp) +#else // WINNT +#define DDS_LCL(pdds) (((DDRAWI_DDRAWSURFACE_INT *)(pdds))->lpLcl) +#define DDP_LCL(pddp) (((DDRAWI_DDRAWPALETTE_INT *)(pddp))->lpLcl) +#endif // WINNT +#define DDS_LCL_OR_NULL(pdds) ((pdds) == NULL ? NULL : DDS_LCL(pdds)) +#define DDP_LCL_OR_NULL(pddp) ((pddp) == NULL ? NULL : DDP_LCL(pddp)) +#endif // NODXLCL + +// Typedefs and defines to create a Win95-like compilation environment + +#ifndef NODX95TYPES +#ifdef WINNT + +typedef D3DNTHALDEVICEDESC_V1 D3DDEVICEDESC_V1; +typedef PDD_SURFACE_LOCAL LPDDRAWI_DDRAWSURFACE_LCL; +typedef PDD_SURFACE_MORE LPDDRAWI_DDRAWSURFACE_MORE; +typedef PDD_SURFACE_GLOBAL LPDDRAWI_DDRAWSURFACE_GBL; +typedef PDD_DIRECTDRAW_GLOBAL LPDDRAWI_DIRECTDRAW_GBL; +typedef PDD_ATTACHLIST LPATTACHLIST; + +typedef DDNTCORECAPS DDCORECAPS; +typedef PDDNTCORECAPS LPDDCORECAPS; +typedef DD_HALINFO DDHALINFO; +typedef PDD_HALINFO LPDDHALINFO; +typedef DD_MORECAPS DDMORECAPS; +typedef PDD_MORECAPS LPDDMORECAPS; + +// DirectDraw HAL function data structures + +typedef PDD_CREATEPALETTEDATA LPDDHAL_CREATEPALETTEDATA; +typedef PDD_CREATESURFACEDATA LPDDHAL_CREATESURFACEDATA; +typedef PDD_CREATESURFACEEXDATA LPDDHAL_CREATESURFACEEXDATA; +typedef PDD_CANCREATESURFACEDATA LPDDHAL_CANCREATESURFACEDATA; +typedef PDD_WAITFORVERTICALBLANKDATA LPDDHAL_WAITFORVERTICALBLANKDATA; +typedef PDD_DESTROYDRIVERDATA LPDDHAL_DESTROYDRIVERDATA; +typedef PDD_SETMODEDATA LPDDHAL_SETMODEDATA; +typedef PDD_DRVSETCOLORKEYDATA LPDDHAL_DRVSETCOLORKEYDATA; +typedef PDD_GETSCANLINEDATA LPDDHAL_GETSCANLINEDATA; +typedef PDD_MAPMEMORYDATA LPDDHAL_MAPMEMORYDATA; +typedef PDD_SETEXCLUSIVEMODEDATA LPDDHAL_SETEXCLUSIVEMODEDATA; +typedef PDD_FLIPTOGDISURFACEDATA LPDDHAL_FLIPTOGDISURFACEDATA; +typedef PDD_UPDATENONLOCALHEAPDATA LPDDHAL_UPDATENONLOCALHEAPDATA; +typedef PDD_GETHEAPALIGNMENTDATA LPDDHAL_GETHEAPALIGNMENTDATA; +typedef DD_CREATEPALETTEDATA DDHAL_CREATEPALETTEDATA; +typedef DD_CREATESURFACEDATA DDHAL_CREATESURFACEDATA; +typedef DD_CREATESURFACEEXDATA DDHAL_CREATESURFACEEXDATA; +typedef DD_CANCREATESURFACEDATA DDHAL_CANCREATESURFACEDATA; +typedef DD_WAITFORVERTICALBLANKDATA DDHAL_WAITFORVERTICALBLANKDATA; +typedef DD_DRVSETCOLORKEYDATA DDHAL_DRVSETCOLORKEYDATA; +typedef DD_GETSCANLINEDATA DDHAL_GETSCANLINEDATA; +typedef DD_MAPMEMORYDATA DDHAL_MAPMEMORYDATA; +typedef DD_SETEXCLUSIVEMODEDATA DDHAL_SETEXCLUSIVEMODEDATA; +typedef DD_FLIPTOGDISURFACEDATA DDHAL_FLIPTOGDISURFACEDATA; +typedef DD_UPDATENONLOCALHEAPDATA DDHAL_UPDATENONLOCALHEAPDATA; + +typedef PDD_DESTROYPALETTEDATA LPDDHAL_DESTROYPALETTEDATA; +typedef PDD_SETENTRIESDATA LPDDHAL_SETENTRIESDATA; +typedef DD_DESTROYPALETTEDATA DDHAL_DESTROYPALETTEDATA; +typedef DD_SETENTRIESDATA DDHAL_SETENTRIESDATA; + +typedef PDD_BLTDATA LPDDHAL_BLTDATA; +typedef PDD_LOCKDATA LPDDHAL_LOCKDATA; +typedef PDD_UNLOCKDATA LPDDHAL_UNLOCKDATA; +typedef PDD_UPDATEOVERLAYDATA LPDDHAL_UPDATEOVERLAYDATA; +typedef PDD_SETOVERLAYPOSITIONDATA LPDDHAL_SETOVERLAYPOSITIONDATA; +typedef PDD_SETPALETTEDATA LPDDHAL_SETPALETTEDATA; +typedef PDD_FLIPDATA LPDDHAL_FLIPDATA; +typedef PDD_DESTROYSURFACEDATA LPDDHAL_DESTROYSURFACEDATA; +typedef PDD_SETCLIPLISTDATA LPDDHAL_SETCLIPLISTDATA; +typedef PDD_ADDATTACHEDSURFACEDATA LPDDHAL_ADDATTACHEDSURFACEDATA; +typedef PDD_SETCOLORKEYDATA LPDDHAL_SETCOLORKEYDATA; +typedef PDD_GETBLTSTATUSDATA LPDDHAL_GETBLTSTATUSDATA; +typedef PDD_GETFLIPSTATUSDATA LPDDHAL_GETFLIPSTATUSDATA; +typedef PDD_GETAVAILDRIVERMEMORYDATA LPDDHAL_GETAVAILDRIVERMEMORYDATA; +typedef PDD_GETDRIVERINFODATA LPDDHAL_GETDRIVERINFODATA; +typedef PDD_GETDRIVERSTATEDATA LPDDHAL_GETDRIVERSTATEDATA; +typedef PDD_DESTROYDDLOCALDATA LPDDHAL_DESTROYDDLOCALDATA; +typedef DD_BLTDATA DDHAL_BLTDATA; +typedef DD_LOCKDATA DDHAL_LOCKDATA; +typedef DD_UNLOCKDATA DDHAL_UNLOCKDATA; +typedef DD_UPDATEOVERLAYDATA DDHAL_UPDATEOVERLAYDATA; +typedef DD_SETOVERLAYPOSITIONDATA DDHAL_SETOVERLAYPOSITIONDATA; +typedef DD_SETPALETTEDATA DDHAL_SETPALETTEDATA; +typedef DD_FLIPDATA DDHAL_FLIPDATA; +typedef DD_DESTROYSURFACEDATA DDHAL_DESTROYSURFACEDATA; +typedef DD_SETCLIPLISTDATA DDHAL_SETCLIPLISTDATA; +typedef DD_ADDATTACHEDSURFACEDATA DDHAL_ADDATTACHEDSURFACEDATA; +typedef DD_SETCOLORKEYDATA DDHAL_SETCOLORKEYDATA; +typedef DD_GETBLTSTATUSDATA DDHAL_GETBLTSTATUSDATA; +typedef DD_GETFLIPSTATUSDATA DDHAL_GETFLIPSTATUSDATA; +typedef DD_GETAVAILDRIVERMEMORYDATA DDHAL_GETAVAILDRIVERMEMORYDATA; +typedef DD_GETDRIVERINFODATA DDHAL_GETDRIVERINFODATA; +typedef DD_GETDRIVERSTATEDATA DDHAL_GETDRIVERSTATEDATA; +typedef DD_DESTROYDDLOCALDATA DDHAL_DESTROYDDLOCALDATA; + +typedef PDD_CANCREATEVPORTDATA LPDDHAL_CANCREATEVPORTDATA; +typedef PDD_CREATEVPORTDATA LPDDHAL_CREATEVPORTDATA; +typedef PDD_FLIPVPORTDATA LPDDHAL_FLIPVPORTDATA; +typedef PDD_GETVPORTCONNECTDATA LPDDHAL_GETVPORTCONNECTDATA; +typedef PDD_GETVPORTBANDWIDTHDATA LPDDHAL_GETVPORTBANDWIDTHDATA; +typedef PDD_GETVPORTINPUTFORMATDATA LPDDHAL_GETVPORTINPUTFORMATDATA; +typedef PDD_GETVPORTOUTPUTFORMATDATA LPDDHAL_GETVPORTOUTPUTFORMATDATA; +typedef PDD_GETVPORTFIELDDATA LPDDHAL_GETVPORTFIELDDATA; +typedef PDD_GETVPORTLINEDATA LPDDHAL_GETVPORTLINEDATA; +typedef PDD_DESTROYVPORTDATA LPDDHAL_DESTROYVPORTDATA; +typedef PDD_GETVPORTFLIPSTATUSDATA LPDDHAL_GETVPORTFLIPSTATUSDATA; +typedef PDD_UPDATEVPORTDATA LPDDHAL_UPDATEVPORTDATA; +typedef PDD_WAITFORVPORTSYNCDATA LPDDHAL_WAITFORVPORTSYNCDATA; +typedef PDD_GETVPORTSIGNALDATA LPDDHAL_GETVPORTSIGNALDATA; +typedef PDD_VPORTCOLORDATA LPDDHAL_VPORTCOLORDATA; +typedef DD_CANCREATEVPORTDATA DDHAL_CANCREATEVPORTDATA; +typedef DD_CREATEVPORTDATA DDHAL_CREATEVPORTDATA; +typedef DD_FLIPVPORTDATA DDHAL_FLIPVPORTDATA; +typedef DD_GETVPORTCONNECTDATA DDHAL_GETVPORTCONNECTDATA; +typedef DD_GETVPORTBANDWIDTHDATA DDHAL_GETVPORTBANDWIDTHDATA; +typedef DD_GETVPORTINPUTFORMATDATA DDHAL_GETVPORTINPUTFORMATDATA; +typedef DD_GETVPORTOUTPUTFORMATDATA DDHAL_GETVPORTOUTPUTFORMATDATA; +typedef DD_GETVPORTFIELDDATA DDHAL_GETVPORTFIELDDATA; +typedef DD_GETVPORTLINEDATA DDHAL_GETVPORTLINEDATA; +typedef DD_DESTROYVPORTDATA DDHAL_DESTROYVPORTDATA; +typedef DD_GETVPORTFLIPSTATUSDATA DDHAL_GETVPORTFLIPSTATUSDATA; +typedef DD_UPDATEVPORTDATA DDHAL_UPDATEVPORTDATA; +typedef DD_WAITFORVPORTSYNCDATA DDHAL_WAITFORVPORTSYNCDATA; +typedef DD_GETVPORTSIGNALDATA DDHAL_GETVPORTSIGNALDATA; +typedef DD_VPORTCOLORDATA DDHAL_VPORTCOLORDATA; + +typedef PDD_COLORCONTROLDATA LPDDHAL_COLORCONTROLDATA; +typedef DD_COLORCONTROLDATA DDHAL_COLORCONTROLDATA; + +typedef PDD_SYNCSURFACEDATA LPDDHAL_SYNCSURFACEDATA; +typedef PDD_SYNCVIDEOPORTDATA LPDDHAL_SYNCVIDEOPORTDATA; +typedef DD_SYNCSURFACEDATA DDHAL_SYNCSURFACEDATA; +typedef DD_SYNCVIDEOPORTDATA DDHAL_SYNCVIDEOPORTDATA; + +typedef PDD_GETMOCOMPGUIDSDATA LPDDHAL_GETMOCOMPGUIDSDATA; +typedef PDD_GETMOCOMPFORMATSDATA LPDDHAL_GETMOCOMPFORMATSDATA; +typedef PDD_CREATEMOCOMPDATA LPDDHAL_CREATEMOCOMPDATA; +typedef PDD_GETMOCOMPCOMPBUFFDATA LPDDHAL_GETMOCOMPCOMPBUFFDATA; +typedef PDD_GETINTERNALMOCOMPDATA LPDDHAL_GETINTERNALMOCOMPDATA; +typedef PDD_BEGINMOCOMPFRAMEDATA LPDDHAL_BEGINMOCOMPFRAMEDATA; +typedef PDD_ENDMOCOMPFRAMEDATA LPDDHAL_ENDMOCOMPFRAMEDATA; +typedef PDD_RENDERMOCOMPDATA LPDDHAL_RENDERMOCOMPDATA; +typedef PDD_QUERYMOCOMPSTATUSDATA LPDDHAL_QUERYMOCOMPSTATUSDATA; +typedef PDD_DESTROYMOCOMPDATA LPDDHAL_DESTROYMOCOMPDATA; +typedef DD_GETMOCOMPGUIDSDATA DDHAL_GETMOCOMPGUIDSDATA; +typedef DD_GETMOCOMPFORMATSDATA DDHAL_GETMOCOMPFORMATSDATA; +typedef DD_CREATEMOCOMPDATA DDHAL_CREATEMOCOMPDATA; +typedef DD_GETMOCOMPCOMPBUFFDATA DDHAL_GETMOCOMPCOMPBUFFDATA; +typedef DD_GETINTERNALMOCOMPDATA DDHAL_GETINTERNALMOCOMPDATA; +typedef DD_BEGINMOCOMPFRAMEDATA DDHAL_BEGINMOCOMPFRAMEDATA; +typedef DD_ENDMOCOMPFRAMEDATA DDHAL_ENDMOCOMPFRAMEDATA; +typedef DD_RENDERMOCOMPDATA DDHAL_RENDERMOCOMPDATA; +typedef DD_QUERYMOCOMPSTATUSDATA DDHAL_QUERYMOCOMPSTATUSDATA; +typedef DD_DESTROYMOCOMPDATA DDHAL_DESTROYMOCOMPDATA; + +// DirectDraw HAL call backs + +typedef PDD_SETCOLORKEY LPDDHAL_SETCOLORKEY; +typedef PDD_CANCREATESURFACE LPDDHAL_CANCREATESURFACE; +typedef PDD_WAITFORVERTICALBLANK LPDDHAL_WAITFORVERTICALBLANK; +typedef PDD_CREATESURFACE LPDDHAL_CREATESURFACE; +typedef PDD_DESTROYDRIVER LPDDHAL_DESTROYDRIVER; +typedef PDD_SETMODE LPDDHAL_SETMODE; +typedef PDD_CREATEPALETTE LPDDHAL_CREATEPALETTE; +typedef PDD_GETSCANLINE LPDDHAL_GETSCANLINE; +typedef PDD_MAPMEMORY LPDDHAL_MAPMEMORY; +typedef PDD_GETAVAILDRIVERMEMORY LPDDHAL_GETAVAILDRIVERMEMORY; +typedef PDD_GETDRIVERINFODATA LPDDHAL_GETDRIVERINFODATA; +typedef PDD_SYNCSURFACEDATA LPDDHAL_SYNCSURFACEDATA; +typedef PDD_SYNCVIDEOPORTDATA LPDDHAL_SYNCVIDEOPORTDATA; +typedef PDD_SETEXCLUSIVEMODE LPDDHAL_SETEXCLUSIVEMODE; +typedef PDD_FLIPTOGDISURFACE LPDDHAL_FLIPTOGDISURFACE; + +typedef PDD_ALPHABLT LPDDHAL_ALPHABLT; +typedef PDD_CREATESURFACEEX LPDDHAL_CREATESURFACEEX; +typedef PDD_GETDRIVERSTATE LPDDHAL_GETDRIVERSTATE; + +typedef PDD_PALCB_DESTROYPALETTE LPDDHALPALCB_DESTROYPALETTE; +typedef PDD_PALCB_SETENTRIES LPDDHALPALCB_SETENTRIES; + +typedef PDD_SURFCB_LOCK LPDDHALSURFCB_LOCK; +typedef PDD_SURFCB_UNLOCK LPDDHALSURFCB_UNLOCK; +typedef PDD_SURFCB_BLT LPDDHALSURFCB_BLT; +typedef PDD_SURFCB_UPDATEOVERLAY LPDDHALSURFCB_UPDATEOVERLAY; +typedef PDD_SURFCB_SETOVERLAYPOSITION LPDDHALSURFCB_SETOVERLAYPOSITION; +typedef PDD_SURFCB_SETPALETTE LPDDHALSURFCB_SETPALETTE; +typedef PDD_SURFCB_FLIP LPDDHALSURFCB_FLIP; +typedef PDD_SURFCB_DESTROYSURFACE LPDDHALSURFCB_DESTROYSURFACE; +typedef PDD_SURFCB_SETCLIPLIST LPDDHALSURFCB_SETCLIPLIST; +typedef PDD_SURFCB_ADDATTACHEDSURFACE LPDDHALSURFCB_ADDATTACHEDSURFACE; +typedef PDD_SURFCB_SETCOLORKEY LPDDHALSURFCB_SETCOLORKEY; +typedef PDD_SURFCB_GETBLTSTATUS LPDDHALSURFCB_GETBLTSTATUS; +typedef PDD_SURFCB_GETFLIPSTATUS LPDDHALSURFCB_GETFLIPSTATUS; + +typedef PDD_VPORTCB_CANCREATEVIDEOPORT LPDDHALVPORTCB_CANCREATEVIDEOPORT; +typedef PDD_VPORTCB_CREATEVIDEOPORT LPDDHALVPORTCB_CREATEVIDEOPORT; +typedef PDD_VPORTCB_FLIP LPDDHALVPORTCB_FLIP; +typedef PDD_VPORTCB_GETBANDWIDTH LPDDHALVPORTCB_GETBANDWIDTH; +typedef PDD_VPORTCB_GETINPUTFORMATS LPDDHALVPORTCB_GETINPUTFORMATS; +typedef PDD_VPORTCB_GETOUTPUTFORMATS LPDDHALVPORTCB_GETOUTPUTFORMATS; +typedef PDD_VPORTCB_GETFIELD LPDDHALVPORTCB_GETFIELD; +typedef PDD_VPORTCB_GETLINE LPDDHALVPORTCB_GETLINE; +typedef PDD_VPORTCB_GETVPORTCONNECT LPDDHALVPORTCB_GETVPORTCONNECT; +typedef PDD_VPORTCB_DESTROYVPORT LPDDHALVPORTCB_DESTROYVPORT; +typedef PDD_VPORTCB_GETFLIPSTATUS LPDDHALVPORTCB_GETFLIPSTATUS; +typedef PDD_VPORTCB_UPDATE LPDDHALVPORTCB_UPDATE; +typedef PDD_VPORTCB_WAITFORSYNC LPDDHALVPORTCB_WAITFORSYNC; +typedef PDD_VPORTCB_GETSIGNALSTATUS LPDDHALVPORTCB_GETSIGNALSTATUS; +typedef PDD_VPORTCB_COLORCONTROL LPDDHALVPORTCB_COLORCONTROL; + +typedef PDD_MOCOMPCB_GETGUIDS LPDDHALMOCOMPCB_GETGUIDS; +typedef PDD_MOCOMPCB_GETFORMATS LPDDHALMOCOMPCB_GETFORMATS; +typedef PDD_MOCOMPCB_CREATE LPDDHALMOCOMPCB_CREATE; +typedef PDD_MOCOMPCB_GETCOMPBUFFINFO LPDDHALMOCOMPCB_GETCOMPBUFFINFO; +typedef PDD_MOCOMPCB_GETINTERNALINFO LPDDHALMOCOMPCB_GETINTERNALINFO; +typedef PDD_MOCOMPCB_BEGINFRAME LPDDHALMOCOMPCB_BEGINFRAME; +typedef PDD_MOCOMPCB_ENDFRAME LPDDHALMOCOMPCB_ENDFRAME; +typedef PDD_MOCOMPCB_RENDER LPDDHALMOCOMPCB_RENDER; +typedef PDD_MOCOMPCB_QUERYSTATUS LPDDHALMOCOMPCB_QUERYSTATUS; +typedef PDD_MOCOMPCB_DESTROY LPDDHALMOCOMPCB_DESTROY; + +typedef DD_CALLBACKS DDHAL_DDCALLBACKS; +typedef DD_PALETTECALLBACKS DDHAL_DDPALETTECALLBACKS; +typedef DD_SURFACECALLBACKS DDHAL_DDSURFACECALLBACKS; +typedef DD_VIDEOPORTCALLBACKS DDHAL_DDVIDEOPORTCALLBACKS; +typedef DD_COLORCONTROLCALLBACKS DDHAL_DDCOLORCONTROLCALLBACKS; +typedef DD_KERNELCALLBACKS DDHAL_DDKERNELCALLBACKS; +typedef DD_MOTIONCOMPCALLBACKS DDHAL_DDMOTIONCOMPCALLBACKS; +typedef DD_MISCELLANEOUS2CALLBACKS DDHAL_DDMISCELLANEOUS2CALLBACKS; +typedef DD_D3DBUFCALLBACKS DDHAL_D3DBUFCALLBACKS; +typedef DD_NTCALLBACKS DDHAL_DDNTCALLBACKS; + +typedef PDD_CALLBACKS LPDDHAL_DDCALLBACKS; +typedef PDD_PALETTECALLBACKS LPDDHAL_DDPALETTECALLBACKS; +typedef PDD_SURFACECALLBACKS LPDDHAL_DDSURFACECALLBACKS; +typedef PDD_VIDEOPORTCALLBACKS LPDDHAL_DDVIDEOPORTCALLBACKS; +typedef PDD_COLORCONTROLCALLBACKS LPDDHAL_DDCOLORCONTROLCALLBACKS; +typedef PDD_KERNELCALLBACKS LPDDHAL_DDKERNELCALLBACKS; +typedef PDD_MOTIONCOMPCALLBACKS LPDDHAL_DDMOTIONCOMPCALLBACKS; +typedef PDD_MISCELLANEOUS2CALLBACKS LPDDHAL_DDMISCELLANEOUS2CALLBACKS; +typedef PDD_D3DBUFCALLBACKS LPDDHAL_D3DBUFCALLBACKS; +typedef PDD_NTCALLBACKS LPDDHAL_DDNTCALLBACKS; + +// bit definition for dwFlags in dwPaletteFlags in D3DHAL_DP2SETPALETTE +#define DDRAWIPAL_256 0x00000001l // 256 entry palette +#define DDRAWIPAL_16 0x00000002l // 16 entry palette +#define DDRAWIPAL_GDI 0x00000004l // palette allocated through GDI +#define DDRAWIPAL_STORED_8 0x00000008l // palette stored as 8bpp/entry +#define DDRAWIPAL_STORED_16 0x00000010l // palette stored as 16bpp/entry +#define DDRAWIPAL_STORED_24 0x00000020l // palette stored as 24bpp/entry +#define DDRAWIPAL_EXCLUSIVE 0x00000040l // palette being used in exclusive mode +#define DDRAWIPAL_INHEL 0x00000080l // palette is done in the hel +#define DDRAWIPAL_DIRTY 0x00000100l // gdi palette out 'o sync +#define DDRAWIPAL_ALLOW256 0x00000200l // can fully update palette +#define DDRAWIPAL_4 0x00000400l // 4 entry palette +#define DDRAWIPAL_2 0x00000800l // 2 entry palette +#define DDRAWIPAL_STORED_8INDEX 0x00001000l // palette stored as 8-bit index into dst palette +#define DDRAWIPAL_ALPHA 0x00002000l // palette entries contain alpha + +typedef D3DNTHAL_CALLBACKS D3DHAL_CALLBACKS; +typedef D3DNTHAL_GLOBALDRIVERDATA D3DHAL_GLOBALDRIVERDATA; +typedef D3DNTHAL_CONTEXTCREATEDATA D3DHAL_CONTEXTCREATEDATA; +typedef D3DNTHAL_CONTEXTDESTROYDATA D3DHAL_CONTEXTDESTROYDATA; +typedef D3DNTHAL_CONTEXTDESTROYALLDATA D3DHAL_CONTEXTDESTROYALLDATA; +typedef D3DNTHAL_SCENECAPTUREDATA D3DHAL_SCENECAPTUREDATA; +typedef D3DNTHAL_TEXTURECREATEDATA D3DHAL_TEXTURECREATEDATA; +typedef D3DNTHAL_TEXTUREDESTROYDATA D3DHAL_TEXTUREDESTROYDATA; +typedef D3DNTHAL_TEXTURESWAPDATA D3DHAL_TEXTURESWAPDATA; +typedef D3DNTHAL_TEXTUREGETSURFDATA D3DHAL_TEXTUREGETSURFDATA; + +typedef D3DNTHAL_CALLBACKS2 D3DHAL_CALLBACKS2; +typedef D3DNTHAL_SETRENDERTARGETDATA D3DHAL_SETRENDERTARGETDATA; + +typedef D3DNTHAL_CALLBACKS3 D3DHAL_CALLBACKS3; +typedef D3DNTHAL_CLEAR2DATA D3DHAL_CLEAR2DATA; +typedef D3DNTHAL_VALIDATETEXTURESTAGESTATEDATA D3DHAL_VALIDATETEXTURESTAGESTATEDATA; +typedef D3DNTHAL_DRAWPRIMITIVES2DATA D3DHAL_DRAWPRIMITIVES2DATA; +typedef D3DNTHAL_D3DEXTENDEDCAPS D3DHAL_D3DEXTENDEDCAPS; + +typedef LPD3DNTHAL_CALLBACKS LPD3DHAL_CALLBACKS; +typedef LPD3DNTHAL_GLOBALDRIVERDATA LPD3DHAL_GLOBALDRIVERDATA; +typedef LPD3DNTHAL_CONTEXTCREATEDATA LPD3DHAL_CONTEXTCREATEDATA; +typedef LPD3DNTHAL_CONTEXTDESTROYDATA LPD3DHAL_CONTEXTDESTROYDATA; +typedef LPD3DNTHAL_CONTEXTDESTROYALLDATA LPD3DHAL_CONTEXTDESTROYALLDATA; +typedef LPD3DNTHAL_SCENECAPTUREDATA LPD3DHAL_SCENECAPTUREDATA; +typedef LPD3DNTHAL_TEXTURECREATEDATA LPD3DHAL_TEXTURECREATEDATA; +typedef LPD3DNTHAL_TEXTUREDESTROYDATA LPD3DHAL_TEXTUREDESTROYDATA; +typedef LPD3DNTHAL_TEXTURESWAPDATA LPD3DHAL_TEXTURESWAPDATA; +typedef LPD3DNTHAL_TEXTUREGETSURFDATA LPD3DHAL_TEXTUREGETSURFDATA; + +typedef LPD3DNTHAL_CALLBACKS2 LPD3DHAL_CALLBACKS2; +typedef LPD3DNTHAL_SETRENDERTARGETDATA LPD3DHAL_SETRENDERTARGETDATA; + +typedef LPD3DNTHAL_CALLBACKS3 LPD3DHAL_CALLBACKS3; +typedef LPD3DNTHAL_CLEAR2DATA LPD3DHAL_CLEAR2DATA; +typedef LPD3DNTHAL_VALIDATETEXTURESTAGESTATEDATA LPD3DHAL_VALIDATETEXTURESTAGESTATEDATA; +typedef LPD3DNTHAL_DRAWPRIMITIVES2DATA LPD3DHAL_DRAWPRIMITIVES2DATA; +typedef LPD3DNTHAL_D3DEXTENDEDCAPS LPD3DHAL_D3DEXTENDEDCAPS; + +#define D3DHAL2_CB32_SETRENDERTARGET D3DNTHAL2_CB32_SETRENDERTARGET + +#define D3DHAL_CONTEXT_BAD D3DNTHAL_CONTEXT_BAD +#define D3DHAL_OUTOFCONTEXTS D3DNTHAL_OUTOFCONTEXTS +#define D3DHALSTATE_GET_RENDER D3DNTHALSTATE_GET_RENDER +#define D3DHAL_SCENE_CAPTURE_START D3DNTHAL_SCENE_CAPTURE_START +#define D3DHAL_SCENE_CAPTURE_END D3DNTHAL_SCENE_CAPTURE_END + +#define D3DHAL3_CB32_CLEAR2 D3DNTHAL3_CB32_CLEAR2 +#define D3DHAL3_CB32_RESERVED D3DNTHAL3_CB32_RESERVED +#define D3DHAL3_CB32_VALIDATETEXTURESTAGESTATE D3DNTHAL3_CB32_VALIDATETEXTURESTAGESTATE +#define D3DHAL3_CB32_DRAWPRIMITIVES2 D3DNTHAL3_CB32_DRAWPRIMITIVES2 + +//----------------------------------------------------------------------------- +// DrawPrimitives2 DDI +//----------------------------------------------------------------------------- +typedef D3DNTHAL_DP2COMMAND D3DHAL_DP2COMMAND; +typedef LPDNT3DHAL_DP2COMMAND LPD3DHAL_DP2COMMAND; +typedef D3DNTHAL_DP2OPERATION D3DHAL_DP2OPERATION; +typedef D3DNTHAL_DP2POINTS D3DHAL_DP2POINTS; +typedef D3DNTHAL_DP2LINELIST D3DHAL_DP2LINELIST; +typedef D3DNTHAL_DP2INDEXEDLINELIST D3DHAL_DP2INDEXEDLINELIST; +typedef D3DNTHAL_DP2LINESTRIP D3DHAL_DP2LINESTRIP; +typedef D3DNTHAL_DP2INDEXEDLINESTRIP D3DHAL_DP2INDEXEDLINESTRIP; +typedef D3DNTHAL_DP2TRIANGLELIST D3DHAL_DP2TRIANGLELIST; +typedef D3DNTHAL_DP2INDEXEDTRIANGLELIST D3DHAL_DP2INDEXEDTRIANGLELIST; +typedef D3DNTHAL_DP2INDEXEDTRIANGLELIST2 D3DHAL_DP2INDEXEDTRIANGLELIST2; +typedef D3DNTHAL_DP2TRIANGLESTRIP D3DHAL_DP2TRIANGLESTRIP; +typedef D3DNTHAL_DP2INDEXEDTRIANGLESTRIP D3DHAL_DP2INDEXEDTRIANGLESTRIP; +typedef D3DNTHAL_DP2TRIANGLEFAN D3DHAL_DP2TRIANGLEFAN; +typedef D3DNTHAL_DP2INDEXEDTRIANGLEFAN D3DHAL_DP2INDEXEDTRIANGLEFAN; +typedef D3DNTHAL_DP2RENDERSTATE D3DHAL_DP2RENDERSTATE; +typedef D3DNTHAL_DP2TEXTURESTAGESTATE D3DHAL_DP2TEXTURESTAGESTATE; +typedef D3DNTHAL_DP2TRIANGLEFAN_IMM D3DHAL_DP2TRIANGLEFAN_IMM; +typedef D3DNTHAL_DP2STARTVERTEX D3DHAL_DP2STARTVERTEX; +typedef D3DNTHAL_DP2VIEWPORTINFO D3DHAL_DP2VIEWPORTINFO; +typedef D3DNTHAL_DP2WINFO D3DHAL_DP2WINFO; +typedef D3DNTHAL_DP2SETPALETTE D3DHAL_DP2SETPALETTE; +typedef D3DNTHAL_DP2UPDATEPALETTE D3DHAL_DP2UPDATEPALETTE; +typedef D3DNTHAL_DP2ZRANGE D3DHAL_DP2ZRANGE; +typedef D3DNTHAL_DP2SETMATERIAL D3DHAL_DP2SETMATERIAL; +typedef D3DNTHAL_DP2SETLIGHT D3DHAL_DP2SETLIGHT; +typedef D3DNTHAL_DP2SETCLIPPLANE D3DHAL_DP2SETCLIPPLANE; +typedef D3DNTHAL_DP2CREATELIGHT D3DHAL_DP2CREATELIGHT; +typedef D3DNTHAL_DP2SETTRANSFORM D3DHAL_DP2SETTRANSFORM; +typedef D3DNTHAL_DP2EXT D3DHAL_DP2EXT; +typedef D3DNTHAL_DP2TEXBLT D3DHAL_DP2TEXBLT; +typedef D3DNTHAL_DP2STATESET D3DHAL_DP2STATESET; +typedef D3DNTHAL_DP2SETPRIORITY D3DHAL_DP2SETPRIORITY; +typedef D3DNTHAL_DP2SETRENDERTARGET D3DHAL_DP2SETRENDERTARGET; +typedef D3DNTHAL_DP2CLEAR D3DHAL_DP2CLEAR; +typedef D3DNTHAL_DP2SETTEXLOD D3DHAL_DP2SETTEXLOD; + +#define D3DDP2OP_POINTS D3DNTDP2OP_POINTS +#define D3DDP2OP_INDEXEDLINELIST D3DNTDP2OP_INDEXEDLINELIST +#define D3DDP2OP_INDEXEDLINELIST2 D3DNTDP2OP_INDEXEDLINELIST2 +#define D3DDP2OP_INDEXEDTRIANGLELIST D3DNTDP2OP_INDEXEDTRIANGLELIST +#define D3DDP2OP_INDEXEDTRIANGLELIST2 D3DNTDP2OP_INDEXEDTRIANGLELIST2 +#define D3DDP2OP_RENDERSTATE D3DNTDP2OP_RENDERSTATE +#define D3DDP2OP_LINELIST D3DNTDP2OP_LINELIST +#define D3DDP2OP_LINESTRIP D3DNTDP2OP_LINESTRIP +#define D3DDP2OP_INDEXEDLINESTRIP D3DNTDP2OP_INDEXEDLINESTRIP +#define D3DDP2OP_TRIANGLELIST D3DNTDP2OP_TRIANGLELIST +#define D3DDP2OP_TRIANGLESTRIP D3DNTDP2OP_TRIANGLESTRIP +#define D3DDP2OP_INDEXEDTRIANGLESTRIP D3DNTDP2OP_INDEXEDTRIANGLESTRIP +#define D3DDP2OP_TRIANGLEFAN D3DNTDP2OP_TRIANGLEFAN +#define D3DDP2OP_INDEXEDTRIANGLEFAN D3DNTDP2OP_INDEXEDTRIANGLEFAN +#define D3DDP2OP_TRIANGLEFAN_IMM D3DNTDP2OP_TRIANGLEFAN_IMM +#define D3DDP2OP_LINELIST_IMM D3DNTDP2OP_LINELIST_IMM +#define D3DDP2OP_TEXTURESTAGESTATE D3DNTDP2OP_TEXTURESTAGESTATE +#define D3DDP2OP_VIEWPORTINFO D3DNTDP2OP_VIEWPORTINFO +#define D3DDP2OP_WINFO D3DNTDP2OP_WINFO +#define D3DDP2OP_SETPALETTE D3DNTDP2OP_SETPALETTE +#define D3DDP2OP_UPDATEPALETTE D3DNTDP2OP_UPDATEPALETTE + +#define D3DDP2OP_ZRANGE D3DNTDP2OP_ZRANGE +#define D3DDP2OP_SETMATERIAL D3DNTDP2OP_SETMATERIAL +#define D3DDP2OP_SETLIGHT D3DNTDP2OP_SETLIGHT +#define D3DDP2OP_CREATELIGHT D3DNTDP2OP_CREATELIGHT +#define D3DDP2OP_SETTRANSFORM D3DNTDP2OP_SETTRANSFORM +#define D3DDP2OP_TEXBLT D3DNTDP2OP_TEXBLT +#define D3DDP2OP_STATESET D3DNTDP2OP_STATESET +#define D3DDP2OP_SETPRIORITY D3DNTDP2OP_SETPRIORITY +#define D3DDP2OP_SETRENDERTARGET D3DNTDP2OP_SETRENDERTARGET +#define D3DDP2OP_CLEAR D3DNTDP2OP_CLEAR +#define D3DDP2OP_SETTEXLOD D3DNTDP2OP_SETTEXLOD +#define D3DDP2OP_SETCLIPPLANE D3DNTDP2OP_SETCLIPPLANE + +#define D3DERR_COMMAND_UNPARSED D3DNTERR_COMMAND_UNPARSED +#define D3DHALDP2_USERMEMVERTICES D3DNTHALDP2_USERMEMVERTICES +#define D3DHALDP2_EXECUTEBUFFER D3DNTHALDP2_EXECUTEBUFFER +#define D3DHALDP2_SWAPVERTEXBUFFER D3DNTHALDP2_SWAPVERTEXBUFFER +#define D3DHALDP2_SWAPCOMMANDBUFFER D3DNTHALDP2_SWAPCOMMANDBUFFER +#define D3DHALDP2_REQVERTEXBUFSIZE D3DNTHALDP2_REQVERTEXBUFSIZE +#define D3DHALDP2_REQCOMMANDBUFSIZE D3DNTHALDP2_REQCOMMANDBUFSIZE +#define D3DHALDP2_VIDMEMVERTEXBUF D3DNTHALDP2_VIDMEMVERTEXBUF +#define D3DHALDP2_VIDMEMCOMMANDBUF D3DNTHALDP2_VIDMEMCOMMANDBUF + + +#define PFND3DPARSEUNKNOWNCOMMAND PFND3DNTPARSEUNKNOWNCOMMAND + +#if(DIRECT3D_VERSION >= 0x0800 ) +#define D3DDP2OP_CREATEVERTEXSHADER D3DNTDP2OP_CREATEVERTEXSHADER +#define D3DDP2OP_DELETEVERTEXSHADER D3DNTDP2OP_DELETEVERTEXSHADER +#define D3DDP2OP_SETVERTEXSHADER D3DNTDP2OP_SETVERTEXSHADER +#define D3DDP2OP_SETVERTEXSHADERCONST D3DNTDP2OP_SETVERTEXSHADERCONST +#define D3DDP2OP_SETSTREAMSOURCE D3DNTDP2OP_SETSTREAMSOURCE +#define D3DDP2OP_SETSTREAMSOURCEUM D3DNTDP2OP_SETSTREAMSOURCEUM +#define D3DDP2OP_SETINDICES D3DNTDP2OP_SETINDICES +#define D3DDP2OP_DRAWPRIMITIVE D3DNTDP2OP_DRAWPRIMITIVE +#define D3DDP2OP_DRAWINDEXEDPRIMITIVE D3DNTDP2OP_DRAWINDEXEDPRIMITIVE +#define D3DDP2OP_CREATEPIXELSHADER D3DNTDP2OP_CREATEPIXELSHADER +#define D3DDP2OP_DELETEPIXELSHADER D3DNTDP2OP_DELETEPIXELSHADER +#define D3DDP2OP_SETPIXELSHADER D3DNTDP2OP_SETPIXELSHADER +#define D3DDP2OP_SETPIXELSHADERCONST D3DNTDP2OP_SETPIXELSHADERCONST +#define D3DDP2OP_CLIPPEDTRIANGLEFAN D3DNTDP2OP_CLIPPEDTRIANGLEFAN +#define D3DDP2OP_DRAWPRIMITIVE2 D3DNTDP2OP_DRAWPRIMITIVE2 +#define D3DDP2OP_DRAWINDEXEDPRIMITIVE2 D3DNTDP2OP_DRAWINDEXEDPRIMITIVE2 +#define D3DDP2OP_DRAWRECTPATCH D3DNTDP2OP_DRAWRECTPATCH +#define D3DDP2OP_DRAWTRIPATCH D3DNTDP2OP_DRAWTRIPATCH +#define D3DDP2OP_VOLUMEBLT D3DNTDP2OP_VOLUMEBLT +#define D3DDP2OP_BUFFERBLT D3DNTDP2OP_BUFFERBLT +#define D3DDP2OP_MULTIPLYTRANSFORM D3DNTDP2OP_MULTIPLYTRANSFORM +#define D3DDP2OP_ADDDIRTYRECT D3DNTDP2OP_ADDDIRTYRECT +#define D3DDP2OP_ADDDIRTYBOX D3DNTDP2OP_ADDDIRTYBOX + +#if(DIRECT3D_VERSION >= 0x0900 ) +#define D3DDP2OP_CREATEVERTEXSHADERDECL D3DNTDP2OP_CREATEVERTEXSHADERDECL +#define D3DDP2OP_DELETEVERTEXSHADERDECL D3DNTDP2OP_DELETEVERTEXSHADERDECL +#define D3DDP2OP_SETVERTEXSHADERDECL D3DNTDP2OP_SETVERTEXSHADERDECL +#define D3DDP2OP_CREATEVERTEXSHADERFUNC D3DNTDP2OP_CREATEVERTEXSHADERFUNC +#define D3DDP2OP_DELETEVERTEXSHADERFUNC D3DNTDP2OP_DELETEVERTEXSHADERFUNC +#define D3DDP2OP_SETVERTEXSHADERFUNC D3DNTDP2OP_SETVERTEXSHADERFUNC +#define D3DDP2OP_SETVERTEXSHADERCONSTI D3DNTDP2OP_SETVERTEXSHADERCONSTI +#define D3DDP2OP_SETSCISSORRECT D3DNTDP2OP_SETSCISSORRECT +#define D3DDP2OP_SETSTREAMSOURCE2 D3DNTDP2OP_SETSTREAMSOURCE2 +#define D3DDP2OP_BLT D3DNTDP2OP_BLT +#define D3DDP2OP_COLORFILL D3DNTDP2OP_COLORFILL +#define D3DDP2OP_SETVERTEXSHADERCONSTB D3DNTDP2OP_SETVERTEXSHADERCONSTB +#define D3DDP2OP_CREATEQUERY D3DNTDP2OP_CREATEQUERY +#define D3DDP2OP_DELETEQUERY D3DNTDP2OP_DELETEQUERY +#define D3DDP2OP_ISSUEQUERY D3DNTDP2OP_ISSUEQUERY +#define D3DDP2OP_SETRENDERTARGET2 D3DNTDP2OP_SETRENDERTARGET2 +#define D3DDP2OP_SETDEPTHSTENCIL D3DNTDP2OP_SETDEPTHSTENCIL +#define D3DDP2OP_RESPONSECONTINUE D3DNTDP2OP_RESPONSECONTINUE +#define D3DDP2OP_RESPONSEQUERY D3DNTDP2OP_RESPONSEQUERY +#define D3DDP2OP_GENERATEMIPSUBLEVELS D3DNTDP2OP_GENERATEMIPSUBLEVELS +#define D3DDP2OP_SETPIXELSHADERCONSTI D3DNTDP2OP_SETPIXELSHADERCONSTI +#define D3DDP2OP_SETPIXELSHADERCONSTB D3DNTDP2OP_SETPIXELSHADERCONSTB +#define D3DDP2OP_SETSTREAMSOURCEFREQ D3DNTDP2OP_SETSTREAMSOURCEFREQ +#define D3DDP2OP_SURFACEBLT D3DNTDP2OP_SURFACEBLT +#endif // (DIRECT3D_VERSION >= 0x0900 ) + + +#define D3DHAL_STATESETCREATE D3DNTHAL_STATESETCREATE +#define D3DCLEAR_COMPUTERECTS D3DNTCLEAR_COMPUTERECTS + +typedef D3DNTHAL_DP2MULTIPLYTRANSFORM D3DHAL_DP2MULTIPLYTRANSFORM; +typedef LPD3DNTHAL_DP2MULTIPLYTRANSFORM LPD3DHAL_DP2MULTIPLYTRANSFORM; +typedef D3DNTHAL_DP2VERTEXSHADER D3DHAL_DP2VERTEXSHADER ; +typedef LPD3DNTHAL_DP2VERTEXSHADER LPD3DHAL_DP2VERTEXSHADER; + +typedef D3DNTHAL_DP2CREATEVERTEXSHADER D3DHAL_DP2CREATEVERTEXSHADER; +typedef LPD3DNTHAL_DP2CREATEVERTEXSHADER LPD3DHAL_DP2CREATEVERTEXSHADER; +typedef D3DNTHAL_DP2SETVERTEXSHADERCONST D3DHAL_DP2SETVERTEXSHADERCONST; +typedef LPD3DNTHAL_DP2SETVERTEXSHADERCONST LPD3DHAL_DP2SETVERTEXSHADERCONST; +typedef D3DNTHAL_DP2SETSTREAMSOURCE D3DHAL_DP2SETSTREAMSOURCE; +typedef LPD3DNTHAL_DP2SETSTREAMSOURCE LPD3DHAL_DP2SETSTREAMSOURCE; +typedef D3DNTHAL_DP2SETSTREAMSOURCEUM D3DHAL_DP2SETSTREAMSOURCEUM; +typedef LPD3DNTHAL_DP2SETSTREAMSOURCEUM LPD3DHAL_DP2SETSTREAMSOURCEUM; +typedef D3DNTHAL_DP2SETINDICES D3DHAL_DP2SETINDICES; +typedef LPD3DNTHAL_DP2SETINDICES LPD3DHAL_DP2SETINDICES; +typedef D3DNTHAL_DP2DRAWPRIMITIVE D3DHAL_DP2DRAWPRIMITIVE; +typedef LPD3DNTHAL_DP2DRAWPRIMITIVE LPD3DHAL_DP2DRAWPRIMITIVE; +typedef D3DNTHAL_DP2DRAWINDEXEDPRIMITIVE D3DHAL_DP2DRAWINDEXEDPRIMITIVE; +typedef LPD3DNTHAL_DP2DRAWINDEXEDPRIMITIVE LPD3DHAL_DP2DRAWINDEXEDPRIMITIVE; +typedef D3DNTHAL_CLIPPEDTRIANGLEFAN D3DHAL_CLIPPEDTRIANGLEFAN; +typedef LPD3DNTHAL_CLIPPEDTRIANGLEFAN LPD3DHAL_CLIPPEDTRIANGLEFAN; +typedef D3DNTHAL_DP2DRAWPRIMITIVE2 D3DHAL_DP2DRAWPRIMITIVE2; +typedef LPD3DNTHAL_DP2DRAWPRIMITIVE2 LPD3DHAL_DP2DRAWPRIMITIVE2; +typedef D3DNTHAL_DP2DRAWINDEXEDPRIMITIVE2 D3DHAL_DP2DRAWINDEXEDPRIMITIVE2; +typedef LPD3DNTHAL_DP2DRAWINDEXEDPRIMITIVE2 LPD3DHAL_DP2DRAWINDEXEDPRIMITIVE2; +typedef D3DNTHAL_DP2PIXELSHADER D3DHAL_DP2PIXELSHADER; +typedef LPD3DNTHAL_DP2PIXELSHADER LPD3DHAL_DP2PIXELSHADER; +typedef D3DNTHAL_DP2CREATEPIXELSHADER D3DHAL_DP2CREATEPIXELSHADER; +typedef LPD3DNTHAL_DP2CREATEPIXELSHADER LPD3DHAL_DP2CREATEPIXELSHADER; +typedef D3DNTHAL_DP2SETPIXELSHADERCONST D3DHAL_DP2SETPIXELSHADERCONST; +typedef LPD3DNTHAL_DP2SETPIXELSHADERCONST LPD3DHAL_DP2SETPIXELSHADERCONST; + +#define RTPATCHFLAG_HASSEGS _NT_RTPATCHFLAG_HASSEGS +#define RTPATCHFLAG_HASINFO _NT_RTPATCHFLAG_HASINFO + +typedef D3DNTHAL_DP2DRAWRECTPATCH D3DHAL_DP2DRAWRECTPATCH; +typedef LPD3DNTHAL_DP2DRAWRECTPATCH LPD3DHAL_DP2DRAWRECTPATCH; +typedef D3DNTHAL_DP2DRAWTRIPATCH D3DHAL_DP2DRAWTRIPATCH; +typedef LPD3DNTHAL_DP2DRAWTRIPATCH LPD3DHAL_DP2DRAWTRIPATCH; +typedef D3DNTHAL_DP2VOLUMEBLT D3DHAL_DP2VOLUMEBLT; +typedef LPD3DNTHAL_DP2VOLUMEBLT LPD3DHAL_DP2VOLUMEBLT; +typedef D3DNTHAL_DP2BUFFERBLT D3DHAL_DP2BUFFERBLT; +typedef LPD3DNTHAL_DP2BUFFERBLT LPD3DHAL_DP2BUFFERBLT; +typedef D3DNTHAL_DP2ADDDIRTYRECT D3DHAL_DP2ADDDIRTYRECT; +typedef LPD3DNTHAL_DP2ADDDIRTYRECT LPD3DHAL_DP2ADDDIRTYRECT; +typedef D3DNTHAL_DP2ADDDIRTYBOX D3DHAL_DP2ADDDIRTYBOX; +typedef LPD3DNTHAL_DP2ADDDIRTYBOX LPD3DHAL_DP2ADDDIRTYBOX; + +#if(DIRECT3D_VERSION >= 0x0900 ) +typedef D3DNTHAL_DP2CREATEVERTEXSHADERDECL D3DHAL_DP2CREATEVERTEXSHADERDECL; +typedef LPD3DNTHAL_DP2CREATEVERTEXSHADERDECL LPD3DHAL_DP2CREATEVERTEXSHADERDECL; +typedef D3DNTHAL_DP2CREATEVERTEXSHADERFUNC D3DHAL_DP2CREATEVERTEXSHADERFUNC; +typedef LPD3DNTHAL_DP2CREATEVERTEXSHADERFUNC LPD3DHAL_DP2CREATEVERTEXSHADERFUNC; +typedef D3DNTHAL_DP2SETSTREAMSOURCE2 D3DHAL_DP2SETSTREAMSOURCE2; +typedef LPD3DNTHAL_DP2SETSTREAMSOURCE2 LPD3DHAL_DP2SETSTREAMSOURCE2; +typedef D3DNTHAL_DP2SETSCISSORRECT D3DHAL_DP2SETSCISSORRECT; +typedef LPD3DNTHAL_DP2SETSCISSORRECT LPD3DHAL_DP2SETSCISSORRECT; +typedef D3DNTHAL_DP2BLT D3DHAL_DP2BLT; +typedef LPD3DNTHAL_DP2BLT LPD3DHAL_DP2BLT; +typedef D3DNTHAL_DP2COLORFILL D3DHAL_DP2COLORFILL; +typedef LPD3DNTHAL_DP2COLORFILL LPD3DHAL_DP2COLORFILL; +typedef D3DNTHAL_DP2SETVERTEXSHADERCONSTB D3DHAL_DP2SETVERTEXSHADERCONSTB; +typedef LPD3DNTHAL_DP2SETVERTEXSHADERCONSTB LPD3DHAL_DP2SETVERTEXSHADERCONSTB; +typedef D3DNTHAL_DP2SETRENDERTARGET2 D3DHAL_DP2SETRENDERTARGET2; +typedef LPD3DNTHAL_DP2SETRENDERTARGET2 LPD3DHAL_DP2SETRENDERTARGET2; +typedef D3DNTHAL_DP2SETDEPTHSTENCIL D3DHAL_DP2SETDEPTHSTENCIL; +typedef LPD3DNTHAL_DP2SETDEPTHSTENCIL LPD3DHAL_DP2SETDEPTHSTENCIL; +typedef D3DNTHAL_DP2CREATEQUERY D3DHAL_DP2CREATEQUERY; +typedef LPD3DNTHAL_DP2CREATEQUERY LPD3DHAL_DP2CREATEQUERY; +typedef D3DNTHAL_DP2DELETEQUERY D3DHAL_DP2DELETEQUERY; +typedef LPD3DNTHAL_DP2DELETEQUERY LPD3DHAL_DP2DELETEQUERY; +typedef D3DNTHAL_DP2ISSUEQUERY D3DHAL_DP2ISSUEQUERY; +typedef LPD3DNTHAL_DP2ISSUEQUERY LPD3DHAL_DP2ISSUEQUERY; +typedef D3DNTHAL_DP2GENERATEMIPSUBLEVELS D3DHAL_DP2GENERATEMIPSUBLEVELS; +typedef LPD3DNTHAL_DP2GENERATEMIPSUBLEVELS LPD3DHAL_DP2GENERATEMIPSUBLEVELS; +typedef D3DNTHAL_DP2RESPONSE D3DHAL_DP2RESPONSE; +typedef LPD3DNTHAL_DP2RESPONSE LPD3DHAL_DP2RESPONSE; +typedef D3DNTHAL_DP2RESPONSEQUERY D3DHAL_DP2RESPONSEQUERY; +typedef LPD3DNTHAL_DP2RESPONSEQUERY LPD3DHAL_DP2RESPONSEQUERY; +typedef D3DNTHAL_DP2SETVERTEXSHADERCONSTI D3DHAL_DP2SETVERTEXSHADERCONSTI; +typedef LPD3DNTHAL_DP2SETVERTEXSHADERCONSTI LPD3DHAL_DP2SETVERTEXSHADERCONSTI; +typedef D3DNTHAL_DP2SETPIXELSHADERCONSTI D3DHAL_DP2SETPIXELSHADERCONSTI; +typedef LPD3DNTHAL_DP2SETPIXELSHADERCONSTI LPD3DHAL_DP2SETPIXELSHADERCONSTI; +typedef D3DNTHAL_DP2SETPIXELSHADERCONSTB D3DHAL_DP2SETPIXELSHADERCONSTB; +typedef LPD3DNTHAL_DP2SETPIXELSHADERCONSTB LPD3DHAL_DP2SETPIXELSHADERCONSTB; +typedef D3DNTHAL_DP2SETSTREAMSOURCEFREQ D3DHAL_DP2SETSTREAMSOURCEFREQ; +typedef LPD3DNTHAL_DP2SETSTREAMSOURCEFREQ LPD3DHAL_DP2SETSTREAMSOURCEFREQ; +typedef D3DNTHAL_DP2SURFACEBLT D3DHAL_DP2SURFACEBLT; +typedef LPD3DNTHAL_DP2SURFACEBLT LPD3DHAL_DP2SURFACEBLT; +typedef _NT_D3DLINEPATTERN D3DLINEPATTERN; +#endif // (DIRECT3D_VERSION >= 0x0900 ) + +#define D3DSI_GETREGTYPE _NT_D3DSI_GETREGTYPE +#if(DIRECT3D_VERSION >= 0x0900 ) +#define D3DSI_GETUSAGE _NT_D3DSI_GETUSAGE +#define D3DSI_GETUSAGEINDEX _NT_D3DSI_GETUSAGEINDEX +#define D3DSI_GETINSTLENGTH _NT_D3DSI_GETINSTLENGTH +#endif // (DIRECT3D_VERSION >= 0x0900 ) +#define D3DSI_GETREGNUM _NT_D3DSI_GETREGNUM +#define D3DSI_GETOPCODE _NT_D3DSI_GETOPCODE +#define D3DSI_GETWRITEMASK _NT_D3DSI_GETWRITEMASK +#define D3DVS_GETSWIZZLECOMP _NT_D3DVS_GETSWIZZLECOMP +#define D3DVS_GETSWIZZLE _NT_D3DVS_GETSWIZZLE +#define D3DVS_GETSRCMODIFIER _NT_D3DVS_GETSRCMODIFIER +#define D3DVS_GETADDRESSMODE _NT_D3DVS_GETADDRESSMODE + +#define D3DRS_DELETERTPATCH _NT_D3DRS_DELETERTPATCH + +typedef DDNT_GETDRIVERINFO2DATA DD_GETDRIVERINFO2DATA; + +#if(DIRECT3D_VERSION >= 0x0900) +typedef DDNT_GETD3DQUERYCOUNTDATA DD_GETD3DQUERYCOUNTDATA; +typedef DDNT_GETD3DQUERYDATA DD_GETD3DQUERYDATA; +typedef DDNT_GETDDIVERSIONDATA DD_GETDDIVERSIONDATA; +#endif // (DIRECT3D_VERSION >= 0x0900) + +#define GUID_GetDriverInfo2 _NT_GUID_GetDriverInfo2 +#define D3DGDI2_MAGIC _NT_D3DGDI2_MAGIC + +#define D3DGDI2_TYPE_GETD3DCAPS8 _NT_D3DGDI2_TYPE_GETD3DCAPS8 +#define D3DGDI2_TYPE_GETFORMATCOUNT _NT_D3DGDI2_TYPE_GETFORMATCOUNT +#define D3DGDI2_TYPE_GETFORMAT _NT_D3DGDI2_TYPE_GETFORMAT +#define D3DGDI2_TYPE_DXVERSION _NT_D3DGDI2_TYPE_DXVERSION +#define D3DGDI2_TYPE_DEFERRED_AGP_AWARE _NT_D3DGDI2_TYPE_DEFERRED_AGP_AWARE +#define D3DGDI2_TYPE_FREE_DEFERRED_AGP _NT_D3DGDI2_TYPE_FREE_DEFERRED_AGP +#define D3DGDI2_TYPE_DEFER_AGP_FREES _NT_D3DGDI2_TYPE_DEFER_AGP_FREES +#if(DIRECT3D_VERSION >= 0x0900) +#define D3DGDI2_TYPE_GETD3DCAPS9 _NT_D3DGDI2_TYPE_GETD3DCAPS9 +#define D3DGDI2_TYPE_GETEXTENDEDMODECOUNT _NT_D3DGDI2_TYPE_GETEXTENDEDMODECOUNT +#define D3DGDI2_TYPE_GETEXTENDEDMODE _NT_D3DGDI2_TYPE_GETEXTENDEDMODE +#define D3DGDI2_TYPE_GETADAPTERGROUP _NT_D3DGDI2_TYPE_GETADAPTERGROUP +#define D3DGDI2_TYPE_GETMULTISAMPLEQUALITYLEVELS _NT_D3DGDI2_TYPE_GETMULTISAMPLEQUALITYLEVELS +#define D3DGDI2_TYPE_GETD3DQUERYCOUNT _NT_D3DGDI2_TYPE_GETD3DQUERYCOUNT +#define D3DGDI2_TYPE_GETD3DQUERY _NT_D3DGDI2_TYPE_GETD3DQUERY +#define D3DGDI2_TYPE_GETDDIVERSION _NT_D3DGDI2_TYPE_GETDDIVERSION + +#endif // (DIRECT3D_VERSION >= 0x0900) + +typedef DDNT_GETFORMATCOUNTDATA DD_GETFORMATCOUNTDATA; +typedef DDNT_GETFORMATDATA DD_GETFORMATDATA; +typedef DDNT_DXVERSION DD_DXVERSION; +typedef DDNT_DEFERRED_AGP_AWARE_DATA DD_DEFERRED_AGP_AWARE_DATA; +typedef DDNT_FREE_DEFERRED_AGP_DATA DD_FREE_DEFERRED_AGP_DATA; +#if(DIRECT3D_VERSION >= 0x0900) +typedef DDNT_GETEXTENDEDMODECOUNTDATA DD_GETEXTENDEDMODECOUNTDATA; +typedef DDNT_GETEXTENDEDMODEDATA DD_GETEXTENDEDMODEDATA; +typedef DDNT_GETADAPTERGROUPDATA DD_GETADAPTERGROUPDATA; +typedef DDNT_MULTISAMPLEQUALITYLEVELSDATA DD_MULTISAMPLEQUALITYLEVELSDATA; +#endif // (DIRECT3D_VERSION >= 0x0900) + +#define D3DDEVCAPS_HWVERTEXBUFFER _NT_D3DDEVCAPS_HWVERTEXBUFFER +#define D3DDEVCAPS_HWINDEXBUFFER _NT_D3DDEVCAPS_HWINDEXBUFFER +#define D3DDEVCAPS_SUBVOLUMELOCK _NT_D3DDEVCAPS_SUBVOLUMELOCK + +#define D3DPMISCCAPS_FOGINFVF _NT_D3DPMISCCAPS_FOGINFVF +#define D3DFVF_FOG _NT_D3DFVF_FOG + +#define D3DFMT_D32 _NT_D3DFMT_D32 +#define D3DFMT_S1D15 _NT_D3DFMT_S1D15 +#define D3DFMT_D15S1 _NT_D3DFMT_D15S1 +#define D3DFMT_S8D24 _NT_D3DFMT_S8D24 +#define D3DFMT_D24S8 _NT_D3DFMT_D24S8 +#define D3DFMT_X8D24 _NT_D3DFMT_X8D24 +#define D3DFMT_D24X8 _NT_D3DFMT_D24X8 +#define D3DFMT_X4S4D24 _NT_D3DFMT_X4S4D24 +#define D3DFMT_D24X4S4 _NT_D3DFMT_D24X4S4 + +#define D3DVS_INPUTREG_MAX_V1_1 _NT_D3DVS_INPUTREG_MAX_V1_1 +#define D3DVS_TEMPREG_MAX_V1_1 _NT_D3DVS_TEMPREG_MAX_V1_1 +#define D3DVS_CONSTREG_MAX_V1_1 _NT_D3DVS_CONSTREG_MAX_V1_1 +#define D3DVS_TCRDOUTREG_MAX_V1_1 _NT_D3DVS_TCRDOUTREG_MAX_V1_1 +#define D3DVS_ADDRREG_MAX_V1_1 _NT_D3DVS_ADDRREG_MAX_V1_1 +#define D3DVS_ATTROUTREG_MAX_V1_1 _NT_D3DVS_ATTROUTREG_MAX_V1_1 +#define D3DVS_MAXINSTRUCTIONCOUNT_V1_1 _NT_D3DVS_MAXINSTRUCTIONCOUNT_V1_1 + +#define D3DPS_INPUTREG_MAX_DX8 _NT_D3DPS_INPUTREG_MAX_DX8 +#define D3DPS_TEMPREG_MAX_DX8 _NT_D3DPS_TEMPREG_MAX_DX8 +#define D3DPS_CONSTREG_MAX_DX8 _NT_D3DPS_CONSTREG_MAX_DX8 +#define D3DPS_TEXTUREREG_MAX_DX8 _NT_D3DPS_TEXTUREREG_MAX_DX8 + +#endif // (DIRECT3D_VERSION >= 0x0800 ) + +#ifdef DX8DDK_DX7HAL_DEFINES + +// Some legacy (<=DX7) definitions that are in d3dhal.h + +#define D3DHAL_TSS_MAXSTAGES D3DNTHAL_TSS_MAXSTAGES +typedef PDD_DIRECTDRAW_LOCAL LPDDRAWI_DIRECTDRAW_LCL; + +typedef D3DNTHAL_DP2OPERATION *LPD3DHAL_DP2OPERATION; +typedef D3DNTHAL_DP2POINTS *LPD3DHAL_DP2POINTS; +typedef D3DNTHAL_DP2LINELIST *LPD3DHAL_DP2LINELIST; +typedef D3DNTHAL_DP2INDEXEDLINELIST *LPD3DHAL_DP2INDEXEDLINELIST; +typedef D3DNTHAL_DP2LINESTRIP *LPD3DHAL_DP2LINESTRIP; +typedef D3DNTHAL_DP2INDEXEDLINESTRIP *LPD3DHAL_DP2INDEXEDLINESTRIP; +typedef D3DNTHAL_DP2TRIANGLELIST *LPD3DHAL_DP2TRIANGLELIST; +typedef D3DNTHAL_DP2INDEXEDTRIANGLELIST *LPD3DHAL_DP2INDEXEDTRIANGLELIST; +typedef D3DNTHAL_DP2INDEXEDTRIANGLELIST2 *LPD3DHAL_DP2INDEXEDTRIANGLELIST2; +typedef D3DNTHAL_DP2TRIANGLESTRIP *LPD3DHAL_DP2TRIANGLESTRIP; +typedef D3DNTHAL_DP2INDEXEDTRIANGLESTRIP *LPD3DHAL_DP2INDEXEDTRIANGLESTRIP; +typedef D3DNTHAL_DP2TRIANGLEFAN *LPD3DHAL_DP2TRIANGLEFAN; +typedef D3DNTHAL_DP2INDEXEDTRIANGLEFAN *LPD3DHAL_DP2INDEXEDTRIANGLEFAN; +typedef D3DNTHAL_DP2RENDERSTATE *LPD3DHAL_DP2RENDERSTATE; +typedef D3DNTHAL_DP2TEXTURESTAGESTATE *LPD3DHAL_DP2TEXTURESTAGESTATE; +typedef D3DNTHAL_DP2TRIANGLEFAN_IMM *LPD3DHAL_DP2TRIANGLEFAN_IMM; +typedef D3DNTHAL_DP2STARTVERTEX *LPD3DHAL_DP2STARTVERTEX; +typedef D3DNTHAL_DP2VIEWPORTINFO *LPD3DHAL_DP2VIEWPORTINFO; +typedef D3DNTHAL_DP2WINFO *LPD3DHAL_DP2WINFO; +typedef D3DNTHAL_DP2SETPALETTE *LPD3DHAL_DP2SETPALETTE; +typedef D3DNTHAL_DP2UPDATEPALETTE *LPD3DHAL_DP2UPDATEPALETTE; +typedef D3DNTHAL_DP2ZRANGE *LPD3DHAL_DP2ZRANGE; +typedef D3DNTHAL_DP2SETMATERIAL *LPD3DHAL_DP2SETMATERIAL; +typedef D3DNTHAL_DP2SETLIGHT *LPD3DHAL_DP2SETLIGHT; +typedef D3DNTHAL_DP2SETCLIPPLANE *LPD3DHAL_DP2SETCLIPPLANE; +typedef D3DNTHAL_DP2CREATELIGHT *LPD3DHAL_DP2CREATELIGHT; +typedef D3DNTHAL_DP2SETTRANSFORM *LPD3DHAL_DP2SETTRANSFORM; +typedef D3DNTHAL_DP2EXT *LPD3DHAL_DP2EXT; +typedef D3DNTHAL_DP2TEXBLT *LPD3DHAL_DP2TEXBLT; +typedef D3DNTHAL_DP2STATESET *LPD3DHAL_DP2STATESET; +typedef D3DNTHAL_DP2SETPRIORITY *LPD3DHAL_DP2SETPRIORITY; +typedef D3DNTHAL_DP2SETRENDERTARGET *LPD3DHAL_DP2SETRENDERTARGET; +typedef D3DNTHAL_DP2CLEAR *LPD3DHAL_DP2CLEAR; +typedef D3DNTHAL_DP2SETTEXLOD *LPD3DHAL_DP2SETTEXLOD; + +// Values for dwDataType in D3DHAL_DP2SETLIGHT +#define D3DHAL_SETLIGHT_ENABLE 0 +#define D3DHAL_SETLIGHT_DISABLE 1 +// If this is set, light data will be passed in after the +// D3DLIGHT7 structure +#define D3DHAL_SETLIGHT_DATA 2 + +#define D3DHAL_NUMCLIPVERTICES 20 + +#define D3DTSS_MAX ((D3DTEXTURESTAGESTATETYPE)33) + +/* + * If DX8 driver wants to support pre-DX8 applications, it should use these + * definitions for pre-DX8 world matrices +*/ +#define D3DTRANSFORMSTATE_WORLD_DX7 1 +#define D3DTRANSFORMSTATE_WORLD1_DX7 4 +#define D3DTRANSFORMSTATE_WORLD2_DX7 5 +#define D3DTRANSFORMSTATE_WORLD3_DX7 6 + +/* + * Generally needed maximum state structure sizes. Note that the copy of + * these in refrasti.hpp must be kept in sync with these. + */ + +#define D3DHAL_MAX_RSTATES (D3DRENDERSTATE_WRAPBIAS + 128) +/* Last state offset for combined render state and texture stage array + 1 */ +#define D3DHAL_MAX_RSTATES_AND_STAGES \ + (D3DHAL_TSS_RENDERSTATEBASE + \ + D3DHAL_TSS_MAXSTAGES * D3DHAL_TSS_STATESPERSTAGE) +/* Last texture state ID */ +#define D3DHAL_MAX_TEXTURESTATES (13) +/* Last texture state ID + 1 */ +#define D3DHAL_TEXTURESTATEBUF_SIZE (D3DHAL_MAX_TEXTURESTATES+1) + +/* + * If no dwNumVertices is given, this is what will be used. + */ +#define D3DHAL_DEFAULT_TL_NUM ((32 * 1024) / sizeof (D3DTLVERTEX)) +#define D3DHAL_DEFAULT_H_NUM ((32 * 1024) / sizeof (D3DHVERTEX)) + +typedef D3DDEVICEDESC_V1 *LPD3DDEVICEDESC_V1; +#define D3DDEVICEDESCSIZE_V1 (sizeof(D3DDEVICEDESC_V1)) + +#define D3DHAL_GLOBALDRIVERDATASIZE (sizeof(D3DHAL_GLOBALDRIVERDATA)) + +#define D3DHAL_D3DEXTENDEDCAPSSIZE (sizeof(D3DHAL_D3DEXTENDEDCAPS)) + +#endif // DX8DDK_DX7HAL_DEFINES + + + +#endif // WINNT +#endif // NODX95TYPES + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __DX95TYPE_H__ diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxcapi.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxcapi.h new file mode 100644 index 0000000000000000000000000000000000000000..5d073e21ee33fcb41bc3956db9ee31cf63a1ab51 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxcapi.h @@ -0,0 +1,1218 @@ + +/////////////////////////////////////////////////////////////////////////////// +// // +// dxcapi.h // +// Copyright (C) Microsoft Corporation. All rights reserved. // +// This file is distributed under the University of Illinois Open Source // +// License. See LICENSE.TXT for details. // +// // +// Provides declarations for the DirectX Compiler API entry point. // +// // +/////////////////////////////////////////////////////////////////////////////// + +#ifndef __DXC_API__ +#define __DXC_API__ + +#ifdef _WIN32 +#ifndef DXC_API_IMPORT +#define DXC_API_IMPORT __declspec(dllimport) +#endif +#else +#ifndef DXC_API_IMPORT +#define DXC_API_IMPORT __attribute__ ((visibility ("default"))) +#endif +#endif + +#ifdef _WIN32 + +#ifndef CROSS_PLATFORM_UUIDOF +// Warning: This macro exists in WinAdapter.h as well +#define CROSS_PLATFORM_UUIDOF(interface, spec) \ + struct __declspec(uuid(spec)) interface; +#endif + +#else + +#include +#include "WinAdapter.h" +#endif + +struct IMalloc; + +struct IDxcIncludeHandler; + +/// \brief Typedef for DxcCreateInstance function pointer. +/// +/// This can be used with GetProcAddress to get the DxcCreateInstance function. +typedef HRESULT (__stdcall *DxcCreateInstanceProc)( + _In_ REFCLSID rclsid, + _In_ REFIID riid, + _Out_ LPVOID* ppv +); + +/// \brief Typedef for DxcCreateInstance2 function pointer. +/// +/// This can be used with GetProcAddress to get the DxcCreateInstance2 function. +typedef HRESULT(__stdcall *DxcCreateInstance2Proc)( + _In_ IMalloc *pMalloc, + _In_ REFCLSID rclsid, + _In_ REFIID riid, + _Out_ LPVOID* ppv + ); + +/// \brief Creates a single uninitialized object of the class associated with a +/// specified CLSID. +/// +/// \param rclsid The CLSID associated with the data and code that will be used +/// to create the object. +/// +/// \param riid A reference to the identifier of the interface to be used to +/// communicate with the object. +/// +/// \param ppv Address of pointer variable that receives the interface pointer +/// requested in riid. Upon successful return, *ppv contains the requested +/// interface pointer. Upon failure, *ppv contains NULL. +/// +/// While this function is similar to CoCreateInstance, there is no COM +/// involvement. +extern "C" +DXC_API_IMPORT HRESULT __stdcall DxcCreateInstance( + _In_ REFCLSID rclsid, + _In_ REFIID riid, + _Out_ LPVOID* ppv + ); + +/// \brief Version of DxcCreateInstance that takes an IMalloc interface. +/// +/// This can be used to create an instance of the compiler with a custom memory allocator. +extern "C" +DXC_API_IMPORT HRESULT __stdcall DxcCreateInstance2( + _In_ IMalloc *pMalloc, + _In_ REFCLSID rclsid, + _In_ REFIID riid, + _Out_ LPVOID* ppv +); + +// For convenience, equivalent definitions to CP_UTF8 and CP_UTF16. +#define DXC_CP_UTF8 65001 +#define DXC_CP_UTF16 1200 +#define DXC_CP_UTF32 12000 +// Use DXC_CP_ACP for: Binary; ANSI Text; Autodetect UTF with BOM +#define DXC_CP_ACP 0 + +/// Codepage for "wide" characters - UTF16 on Windows, UTF32 on other platforms. +#ifdef _WIN32 +#define DXC_CP_WIDE DXC_CP_UTF16 +#else +#define DXC_CP_WIDE DXC_CP_UTF32 +#endif + +/// Indicates that the shader hash was computed taking into account source +/// information (-Zss). +#define DXC_HASHFLAG_INCLUDES_SOURCE 1 + +/// Hash digest type for ShaderHash. +typedef struct DxcShaderHash { + UINT32 Flags; ///< DXC_HASHFLAG_* + BYTE HashDigest[16]; ///< The hash digest +} DxcShaderHash; + +#define DXC_FOURCC(ch0, ch1, ch2, ch3) ( \ + (UINT32)(UINT8)(ch0) | (UINT32)(UINT8)(ch1) << 8 | \ + (UINT32)(UINT8)(ch2) << 16 | (UINT32)(UINT8)(ch3) << 24 \ + ) +#define DXC_PART_PDB DXC_FOURCC('I', 'L', 'D', 'B') +#define DXC_PART_PDB_NAME DXC_FOURCC('I', 'L', 'D', 'N') +#define DXC_PART_PRIVATE_DATA DXC_FOURCC('P', 'R', 'I', 'V') +#define DXC_PART_ROOT_SIGNATURE DXC_FOURCC('R', 'T', 'S', '0') +#define DXC_PART_DXIL DXC_FOURCC('D', 'X', 'I', 'L') +#define DXC_PART_REFLECTION_DATA DXC_FOURCC('S', 'T', 'A', 'T') +#define DXC_PART_SHADER_HASH DXC_FOURCC('H', 'A', 'S', 'H') +#define DXC_PART_INPUT_SIGNATURE DXC_FOURCC('I', 'S', 'G', '1') +#define DXC_PART_OUTPUT_SIGNATURE DXC_FOURCC('O', 'S', 'G', '1') +#define DXC_PART_PATCH_CONSTANT_SIGNATURE DXC_FOURCC('P', 'S', 'G', '1') + +// Some option arguments are defined here for continuity with D3DCompile +// interface. +#define DXC_ARG_DEBUG L"-Zi" +#define DXC_ARG_SKIP_VALIDATION L"-Vd" +#define DXC_ARG_SKIP_OPTIMIZATIONS L"-Od" +#define DXC_ARG_PACK_MATRIX_ROW_MAJOR L"-Zpr" +#define DXC_ARG_PACK_MATRIX_COLUMN_MAJOR L"-Zpc" +#define DXC_ARG_AVOID_FLOW_CONTROL L"-Gfa" +#define DXC_ARG_PREFER_FLOW_CONTROL L"-Gfp" +#define DXC_ARG_ENABLE_STRICTNESS L"-Ges" +#define DXC_ARG_ENABLE_BACKWARDS_COMPATIBILITY L"-Gec" +#define DXC_ARG_IEEE_STRICTNESS L"-Gis" +#define DXC_ARG_OPTIMIZATION_LEVEL0 L"-O0" +#define DXC_ARG_OPTIMIZATION_LEVEL1 L"-O1" +#define DXC_ARG_OPTIMIZATION_LEVEL2 L"-O2" +#define DXC_ARG_OPTIMIZATION_LEVEL3 L"-O3" +#define DXC_ARG_WARNINGS_ARE_ERRORS L"-WX" +#define DXC_ARG_RESOURCES_MAY_ALIAS L"-res_may_alias" +#define DXC_ARG_ALL_RESOURCES_BOUND L"-all_resources_bound" +#define DXC_ARG_DEBUG_NAME_FOR_SOURCE L"-Zss" +#define DXC_ARG_DEBUG_NAME_FOR_BINARY L"-Zsb" + +CROSS_PLATFORM_UUIDOF(IDxcBlob, "8BA5FB08-5195-40e2-AC58-0D989C3A0102") +/// \brief A sized buffer that can be passed in and out of DXC APIs. +/// +/// This is an alias of ID3D10Blob and ID3DBlob. +struct IDxcBlob : public IUnknown { +public: + /// \brief Retrieves a pointer to the blob's data. + virtual LPVOID STDMETHODCALLTYPE GetBufferPointer(void) = 0; + + /// \brief Retrieves the size, in bytes, of the blob's data. + virtual SIZE_T STDMETHODCALLTYPE GetBufferSize(void) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcBlobEncoding, "7241d424-2646-4191-97c0-98e96e42fc68") +/// \brief A blob that might have a known encoding. +struct IDxcBlobEncoding : public IDxcBlob { +public: + /// \brief Retrieve the encoding for this blob. + /// + /// \param pKnown Pointer to a variable that will be set to TRUE if the + /// encoding is known. + /// + /// \param pCodePage Pointer to variable that will be set to the encoding used + /// for this blog. + /// + /// If the encoding is not known then pCodePage will be set to CP_ACP. + virtual HRESULT STDMETHODCALLTYPE GetEncoding(_Out_ BOOL *pKnown, + _Out_ UINT32 *pCodePage) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcBlobWide, "A3F84EAB-0FAA-497E-A39C-EE6ED60B2D84") +/// \brief A blob containing a null-terminated wide string. +/// +/// This uses the native wide character encoding (utf16 on Windows, utf32 on +/// Linux). +/// +/// The value returned by GetBufferSize() is the size of the buffer, in bytes, +/// including the null-terminator. +/// +/// This interface is used to return output name strings DXC. Other string +/// output blobs, such as errors/warnings, preprocessed HLSL, or other text are +/// returned using encodings based on the -encoding option passed to the +/// compiler. +struct IDxcBlobWide : public IDxcBlobEncoding { +public: + /// \brief Retrieves a pointer to the string stored in this blob. + virtual LPCWSTR STDMETHODCALLTYPE GetStringPointer(void) = 0; + + /// \brief Retrieves the length of the string stored in this blob, in + /// characters, excluding the null-terminator. + virtual SIZE_T STDMETHODCALLTYPE GetStringLength(void) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcBlobUtf8, "3DA636C9-BA71-4024-A301-30CBF125305B") +/// \brief A blob containing a UTF-8 encoded string. +/// +/// The value returned by GetBufferSize() is the size of the buffer, in bytes, +/// including the null-terminator. +/// +/// Depending on the -encoding option passed to the compiler, this interface is +/// used to return string output blobs, such as errors/warnings, preprocessed +/// HLSL, or other text. Output name strings always use IDxcBlobWide. +struct IDxcBlobUtf8 : public IDxcBlobEncoding { +public: + /// \brief Retrieves a pointer to the string stored in this blob. + virtual LPCSTR STDMETHODCALLTYPE GetStringPointer(void) = 0; + + /// \brief Retrieves the length of the string stored in this blob, in + /// characters, excluding the null-terminator. + virtual SIZE_T STDMETHODCALLTYPE GetStringLength(void) = 0; +}; + +#ifdef _WIN32 +/// IDxcBlobUtf16 is a legacy alias for IDxcBlobWide on Win32. +typedef IDxcBlobWide IDxcBlobUtf16; +#endif + +CROSS_PLATFORM_UUIDOF(IDxcIncludeHandler, "7f61fc7d-950d-467f-b3e3-3c02fb49187c") +/// \brief Interface for handling include directives. +/// +/// This interface can be implemented to customize handling of include +/// directives. +/// +/// Use IDxcUtils::CreateDefaultIncludeHandler to create a default +/// implementation that reads include files from the filesystem. +/// +struct IDxcIncludeHandler : public IUnknown { + /// \brief Load a source file to be included by the compiler. + /// + /// \param pFilename Candidate filename. + /// + /// \param ppIncludeSource Resultant source object for included file, nullptr + /// if not found. + virtual HRESULT STDMETHODCALLTYPE LoadSource( + _In_z_ LPCWSTR pFilename, + _COM_Outptr_result_maybenull_ IDxcBlob **ppIncludeSource + ) = 0; +}; + +/// \brief Structure for supplying bytes or text input to Dxc APIs. +typedef struct DxcBuffer { + /// \brief Pointer to the start of the buffer. + LPCVOID Ptr; + + /// \brief Size of the buffer in bytes. + SIZE_T Size; + + /// \brief Encoding of the buffer. + /// + /// Use Encoding = 0 for non-text bytes, ANSI text, or unknown with BOM. + UINT Encoding; +} DxcText; + +/// \brief Structure for supplying defines to Dxc APIs. +struct DxcDefine { + LPCWSTR Name; ///< The define name. + _Maybenull_ LPCWSTR Value; ///< Optional value for the define. +}; + +CROSS_PLATFORM_UUIDOF(IDxcCompilerArgs, "73EFFE2A-70DC-45F8-9690-EFF64C02429D") +/// \brief Interface for managing arguments passed to DXC. +/// +/// Use IDxcUtils::BuildArguments to create an instance of this interface. +struct IDxcCompilerArgs : public IUnknown { + /// \brief Retrieve the array of arguments. + /// + /// This can be passed directly to the pArguments parameter of the Compile() + /// method. + virtual LPCWSTR* STDMETHODCALLTYPE GetArguments() = 0; + + /// \brief Retrieve the number of arguments. + /// + /// This can be passed directly to the argCount parameter of the Compile() + /// method. + virtual UINT32 STDMETHODCALLTYPE GetCount() = 0; + + /// \brief Add additional arguments to this list of compiler arguments. + virtual HRESULT STDMETHODCALLTYPE AddArguments( + _In_opt_count_(argCount) LPCWSTR *pArguments, ///< Array of pointers to arguments to add. + _In_ UINT32 argCount ///< Number of arguments to add. + ) = 0; + + /// \brief Add additional UTF-8 encoded arguments to this list of compiler + /// arguments. + virtual HRESULT STDMETHODCALLTYPE AddArgumentsUTF8( + _In_opt_count_(argCount)LPCSTR *pArguments, ///< Array of pointers to UTF-8 arguments to add. + _In_ UINT32 argCount ///< Number of arguments to add. + ) = 0; + + /// \brief Add additional defines to this list of compiler arguments. + virtual HRESULT STDMETHODCALLTYPE AddDefines( + _In_count_(defineCount) const DxcDefine *pDefines, ///< Array of defines. + _In_ UINT32 defineCount ///< Number of defines. + ) = 0; +}; + +////////////////////////// +// Legacy Interfaces +///////////////////////// + +CROSS_PLATFORM_UUIDOF(IDxcLibrary, "e5204dc7-d18c-4c3c-bdfb-851673980fe7") +/// \deprecated IDxcUtils replaces IDxcLibrary; please use IDxcUtils insted. +struct IDxcLibrary : public IUnknown { + /// \deprecated + virtual HRESULT STDMETHODCALLTYPE SetMalloc(_In_opt_ IMalloc *pMalloc) = 0; + + /// \deprecated + virtual HRESULT STDMETHODCALLTYPE CreateBlobFromBlob( + _In_ IDxcBlob *pBlob, UINT32 offset, UINT32 length, _COM_Outptr_ IDxcBlob **ppResult) = 0; + + /// \deprecated + virtual HRESULT STDMETHODCALLTYPE CreateBlobFromFile( + _In_z_ LPCWSTR pFileName, _In_opt_ UINT32* codePage, + _COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) = 0; + + /// \deprecated + virtual HRESULT STDMETHODCALLTYPE CreateBlobWithEncodingFromPinned( + _In_bytecount_(size) LPCVOID pText, UINT32 size, UINT32 codePage, + _COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) = 0; + + /// \deprecated + virtual HRESULT STDMETHODCALLTYPE CreateBlobWithEncodingOnHeapCopy( + _In_bytecount_(size) LPCVOID pText, UINT32 size, UINT32 codePage, + _COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) = 0; + + /// \deprecated + virtual HRESULT STDMETHODCALLTYPE CreateBlobWithEncodingOnMalloc( + _In_bytecount_(size) LPCVOID pText, IMalloc *pIMalloc, UINT32 size, UINT32 codePage, + _COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) = 0; + + /// \deprecated + virtual HRESULT STDMETHODCALLTYPE CreateIncludeHandler( + _COM_Outptr_ IDxcIncludeHandler **ppResult) = 0; + + /// \deprecated + virtual HRESULT STDMETHODCALLTYPE CreateStreamFromBlobReadOnly( + _In_ IDxcBlob *pBlob, _COM_Outptr_ IStream **ppStream) = 0; + + /// \deprecated + virtual HRESULT STDMETHODCALLTYPE GetBlobAsUtf8( + _In_ IDxcBlob *pBlob, _COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) = 0; + + // Renamed from GetBlobAsUtf16 to GetBlobAsWide + /// \deprecated + virtual HRESULT STDMETHODCALLTYPE GetBlobAsWide( + _In_ IDxcBlob *pBlob, _COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) = 0; + +#ifdef _WIN32 + // Alias to GetBlobAsWide on Win32 + /// \deprecated + inline HRESULT GetBlobAsUtf16( + _In_ IDxcBlob *pBlob, _COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) { + return this->GetBlobAsWide(pBlob, pBlobEncoding); + } +#endif +}; + +CROSS_PLATFORM_UUIDOF(IDxcOperationResult, "CEDB484A-D4E9-445A-B991-CA21CA157DC2") +/// \brief The results of a DXC operation. +/// +/// Note: IDxcResult replaces IDxcOperationResult and should be used wherever +/// possible. +struct IDxcOperationResult : public IUnknown { + /// \brief Retrieve the overall status of the operation. + virtual HRESULT STDMETHODCALLTYPE GetStatus(_Out_ HRESULT *pStatus) = 0; + + /// \brief Retrieve the primary output of the operation. + /// + /// This corresponds to: + /// * DXC_OUT_OBJECT - Compile() with shader or library target + /// * DXC_OUT_DISASSEMBLY - Disassemble() + /// * DXC_OUT_HLSL - Compile() with -P + /// * DXC_OUT_ROOT_SIGNATURE - Compile() with rootsig_* target + virtual HRESULT STDMETHODCALLTYPE GetResult(_COM_Outptr_result_maybenull_ IDxcBlob **ppResult) = 0; + + /// \brief Retrieves the error buffer from the operation, if there is one. + /// + // This corresponds to calling IDxcResult::GetOutput() with DXC_OUT_ERRORS. + virtual HRESULT STDMETHODCALLTYPE GetErrorBuffer(_COM_Outptr_result_maybenull_ IDxcBlobEncoding **ppErrors) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcCompiler, "8c210bf3-011f-4422-8d70-6f9acb8db617") +/// \deprecated Please use IDxcCompiler3 instead. +struct IDxcCompiler : public IUnknown { + /// \brief Compile a single entry point to the target shader model. + /// + /// \deprecated Please use IDxcCompiler3::Compile() instead. + virtual HRESULT STDMETHODCALLTYPE Compile( + _In_ IDxcBlob *pSource, // Source text to compile. + _In_opt_z_ LPCWSTR pSourceName, // Optional file name for pSource. Used in errors and include handlers. + _In_opt_z_ LPCWSTR pEntryPoint, // Entry point name. + _In_z_ LPCWSTR pTargetProfile, // Shader profile to compile. + _In_opt_count_(argCount) LPCWSTR *pArguments, // Array of pointers to arguments. + _In_ UINT32 argCount, // Number of arguments. + _In_count_(defineCount) + const DxcDefine *pDefines, // Array of defines. + _In_ UINT32 defineCount, // Number of defines. + _In_opt_ IDxcIncludeHandler *pIncludeHandler, // User-provided interface to handle #include directives (optional). + _COM_Outptr_ IDxcOperationResult **ppResult // Compiler output status, buffer, and errors. + ) = 0; + + /// \brief Preprocess source text. + /// + /// \deprecated Please use IDxcCompiler3::Compile() with the "-P" argument instead. + virtual HRESULT STDMETHODCALLTYPE Preprocess( + _In_ IDxcBlob *pSource, // Source text to preprocess. + _In_opt_z_ LPCWSTR pSourceName, // Optional file name for pSource. Used in errors and include handlers. + _In_opt_count_(argCount) LPCWSTR *pArguments, // Array of pointers to arguments. + _In_ UINT32 argCount, // Number of arguments. + _In_count_(defineCount) + const DxcDefine *pDefines, // Array of defines. + _In_ UINT32 defineCount, // Number of defines. + _In_opt_ IDxcIncludeHandler *pIncludeHandler, // user-provided interface to handle #include directives (optional). + _COM_Outptr_ IDxcOperationResult **ppResult // Preprocessor output status, buffer, and errors. + ) = 0; + + /// \brief Disassemble a program. + /// + /// \deprecated Please use IDxcCompiler3::Disassemble() instead. + virtual HRESULT STDMETHODCALLTYPE Disassemble( + _In_ IDxcBlob *pSource, // Program to disassemble. + _COM_Outptr_ IDxcBlobEncoding **ppDisassembly // Disassembly text. + ) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcCompiler2, "A005A9D9-B8BB-4594-B5C9-0E633BEC4D37") +/// \deprecated Please use IDxcCompiler3 instead. +struct IDxcCompiler2 : public IDxcCompiler { + /// \brief Compile a single entry point to the target shader model with debug information. + /// + /// \deprecated Please use IDxcCompiler3::Compile() instead. + virtual HRESULT STDMETHODCALLTYPE CompileWithDebug( + _In_ IDxcBlob *pSource, // Source text to compile. + _In_opt_z_ LPCWSTR pSourceName, // Optional file name for pSource. Used in errors and include handlers. + _In_opt_z_ LPCWSTR pEntryPoint, // Entry point name. + _In_z_ LPCWSTR pTargetProfile, // Shader profile to compile. + _In_opt_count_(argCount) LPCWSTR *pArguments, // Array of pointers to arguments. + _In_ UINT32 argCount, // Number of arguments. + _In_count_(defineCount) + const DxcDefine *pDefines, // Array of defines. + _In_ UINT32 defineCount, // Number of defines. + _In_opt_ IDxcIncludeHandler *pIncludeHandler, // user-provided interface to handle #include directives (optional). + _COM_Outptr_ IDxcOperationResult **ppResult, // Compiler output status, buffer, and errors. + _Outptr_opt_result_z_ LPWSTR *ppDebugBlobName,// Suggested file name for debug blob. Must be CoTaskMemFree()'d. + _COM_Outptr_opt_ IDxcBlob **ppDebugBlob // Debug blob. + ) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcLinker, "F1B5BE2A-62DD-4327-A1C2-42AC1E1E78E6") +/// \brief DXC linker interface. +/// +/// Use DxcCreateInstance with CLSID_DxcLinker to obtain an instance of this +/// interface. +struct IDxcLinker : public IUnknown { +public: + /// \brief Register a library with name to reference it later. + virtual HRESULT RegisterLibrary( + _In_opt_ LPCWSTR pLibName, ///< Name of the library. + _In_ IDxcBlob *pLib ///< Library blob. + ) = 0; + + /// \brief Links the shader and produces a shader blob that the Direct3D + /// runtime can use. + virtual HRESULT STDMETHODCALLTYPE Link( + _In_opt_ LPCWSTR pEntryName, ///< Entry point name. + _In_ LPCWSTR pTargetProfile, ///< shader profile to link. + _In_count_(libCount) + const LPCWSTR *pLibNames, ///< Array of library names to link. + _In_ UINT32 libCount, ///< Number of libraries to link. + _In_opt_count_(argCount) const LPCWSTR *pArguments, ///< Array of pointers to arguments. + _In_ UINT32 argCount, ///< Number of arguments. + _COM_Outptr_ + IDxcOperationResult **ppResult ///< Linker output status, buffer, and errors. + ) = 0; +}; + +///////////////////////// +// Latest interfaces. Please use these. +//////////////////////// + +CROSS_PLATFORM_UUIDOF(IDxcUtils, "4605C4CB-2019-492A-ADA4-65F20BB7D67F") +/// \brief Various utility functions for DXC. +/// +/// Use DxcCreateInstance with CLSID_DxcUtils to obtain an instance of this +/// interface. +/// +/// IDxcUtils replaces IDxcLibrary. +struct IDxcUtils : public IUnknown { + /// \brief Create a sub-blob that holds a reference to the outer blob and + /// points to its memory. + /// + /// \param pBlob The outer blob. + /// + /// \param offset The offset inside the outer blob. + /// + /// \param length The size, in bytes, of the buffer to reference from the + /// output blob. + /// + /// \param ppResult Address of the pointer that receives a pointer to the + /// newly created blob. + virtual HRESULT STDMETHODCALLTYPE CreateBlobFromBlob( + _In_ IDxcBlob *pBlob, UINT32 offset, UINT32 length, _COM_Outptr_ IDxcBlob **ppResult) = 0; + + // For codePage, use 0 (or DXC_CP_ACP) for raw binary or ANSI code page. + + /// \brief Create a blob referencing existing memory, with no copy. + /// + /// \param pData Pointer to buffer containing the contents of the new blob. + /// + /// \param size The size of the pData buffer, in bytes. + /// + /// \param codePage The code page to use if the blob contains text. Use + /// DXC_CP_ACP for binary or ANSI code page. + /// + /// \param ppBlobEncoding Address of the pointer that receives a pointer to + /// the newly created blob. + /// + /// The user must manage the memory lifetime separately. + /// + /// This replaces IDxcLibrary::CreateBlobWithEncodingFromPinned. + virtual HRESULT STDMETHODCALLTYPE CreateBlobFromPinned( + _In_bytecount_(size) LPCVOID pData, UINT32 size, UINT32 codePage, + _COM_Outptr_ IDxcBlobEncoding **ppBlobEncoding) = 0; + + /// \brief Create a blob, taking ownership of memory allocated with the + /// supplied allocator. + /// + /// \param pData Pointer to buffer containing the contents of the new blob. + /// + /// \param pIMalloc The memory allocator to use. + /// + /// \param size The size of thee pData buffer, in bytes. + /// + /// \param codePage The code page to use if the blob contains text. Use + /// DXC_CP_ACP for binary or ANSI code page. + /// + /// \param ppBlobEncoding Address of the pointer that receives a pointer to + /// the newly created blob. + /// + /// This replaces IDxcLibrary::CreateBlobWithEncodingOnMalloc. + virtual HRESULT STDMETHODCALLTYPE MoveToBlob( + _In_bytecount_(size) LPCVOID pData, IMalloc *pIMalloc, UINT32 size, UINT32 codePage, + _COM_Outptr_ IDxcBlobEncoding **ppBlobEncoding) = 0; + + /// \brief Create a blob containing a copy of the existing data. + /// + /// \param pData Pointer to buffer containing the contents of the new blob. + /// + /// \param size The size of thee pData buffer, in bytes. + /// + /// \param codePage The code page to use if the blob contains text. Use + /// DXC_CP_ACP for binary or ANSI code page. + /// + /// \param ppBlobEncoding Address of the pointer that receives a pointer to + /// the newly created blob. + /// + /// The new blob and its contents are allocated with the current allocator. + /// This replaces IDxcLibrary::CreateBlobWithEncodingOnHeapCopy. + virtual HRESULT STDMETHODCALLTYPE CreateBlob( + _In_bytecount_(size) LPCVOID pData, UINT32 size, UINT32 codePage, + _COM_Outptr_ IDxcBlobEncoding **ppBlobEncoding) = 0; + + /// \brief Create a blob with data loaded from a file. + /// + /// \param pFileName The name of the file to load from. + /// + /// \param pCodePage Optional code page to use if the blob contains text. Pass + /// NULL for binary data. + /// + /// \param ppBlobEncoding Address of the pointer that receives a pointer to + /// the newly created blob. + /// + /// The new blob and its contents are allocated with the current allocator. + /// This replaces IDxcLibrary::CreateBlobFromFile. + virtual HRESULT STDMETHODCALLTYPE LoadFile( + _In_z_ LPCWSTR pFileName, _In_opt_ UINT32* pCodePage, + _COM_Outptr_ IDxcBlobEncoding **ppBlobEncoding) = 0; + + /// \brief Create a stream that reads data from a blob. + /// + /// \param pBlob The blob to read from. + /// + /// \param ppStream Address of the pointer that receives a pointer to the + /// newly created stream. + virtual HRESULT STDMETHODCALLTYPE CreateReadOnlyStreamFromBlob( + _In_ IDxcBlob *pBlob, _COM_Outptr_ IStream **ppStream) = 0; + + /// \brief Create default file-based include handler. + /// + /// \param ppResult Address of the pointer that receives a pointer to the + /// newly created include handler. + virtual HRESULT STDMETHODCALLTYPE CreateDefaultIncludeHandler( + _COM_Outptr_ IDxcIncludeHandler **ppResult) = 0; + + /// \brief Convert or return matching encoded text blob as UTF-8. + /// + /// \param pBlob The blob to convert. + /// + /// \param ppBlobEncoding Address of the pointer that receives a pointer to + /// the newly created blob. + virtual HRESULT STDMETHODCALLTYPE GetBlobAsUtf8( + _In_ IDxcBlob *pBlob, _COM_Outptr_ IDxcBlobUtf8 **ppBlobEncoding) = 0; + + /// \brief Convert or return matching encoded text blob as UTF-16. + /// + /// \param pBlob The blob to convert. + /// + /// \param ppBlobEncoding Address of the pointer that receives a pointer to + /// the newly created blob. + virtual HRESULT STDMETHODCALLTYPE GetBlobAsWide( + _In_ IDxcBlob *pBlob, _COM_Outptr_ IDxcBlobWide **ppBlobEncoding) = 0; + +#ifdef _WIN32 + /// \brief Convert or return matching encoded text blob as UTF-16. + /// + /// \param pBlob The blob to convert. + /// + /// \param ppBlobEncoding Address of the pointer that receives a pointer to + /// the newly created blob. + /// + /// Alias to GetBlobAsWide on Win32. + inline HRESULT GetBlobAsUtf16( + _In_ IDxcBlob *pBlob, _COM_Outptr_ IDxcBlobWide **ppBlobEncoding) { + return this->GetBlobAsWide(pBlob, ppBlobEncoding); + } +#endif + + /// \brief Retrieve a single part from a DXIL container. + /// + /// \param pShader The shader to retrieve the part from. + /// + /// \param DxcPart The part to retrieve (eg DXC_PART_ROOT_SIGNATURE). + /// + /// \param ppPartData Address of the pointer that receives a pointer to the + /// part. + /// + /// \param pPartSizeInBytes Address of the pointer that receives the size of + /// the part. + /// + /// The returned pointer points inside the buffer passed in pShader. + virtual HRESULT STDMETHODCALLTYPE GetDxilContainerPart( + _In_ const DxcBuffer *pShader, + _In_ UINT32 DxcPart, + _Outptr_result_nullonfailure_ void **ppPartData, + _Out_ UINT32 *pPartSizeInBytes) = 0; + + /// \brief Create reflection interface from serialized DXIL container or the + /// DXC_OUT_REFLECTION blob contents. + /// + /// \param pData The source data. + /// + /// \param iid The interface ID of the reflection interface to create. + /// + /// \param ppvReflection Address of the pointer that receives a pointer to the + /// newly created reflection interface. + /// + /// Use this with interfaces such as ID3D12ShaderReflection. + virtual HRESULT STDMETHODCALLTYPE CreateReflection( + _In_ const DxcBuffer *pData, REFIID iid, void **ppvReflection) = 0; + + /// \brief Build arguments that can be passed to the Compile method. + virtual HRESULT STDMETHODCALLTYPE BuildArguments( + _In_opt_z_ LPCWSTR pSourceName, ///< Optional file name for pSource. Used in errors and include handlers. + _In_opt_z_ LPCWSTR pEntryPoint, ///< Entry point name (-E). + _In_z_ LPCWSTR pTargetProfile, ///< Shader profile to compile (-T). + _In_opt_count_(argCount) LPCWSTR *pArguments, ///< Array of pointers to arguments. + _In_ UINT32 argCount, ///< Number of arguments. + _In_count_(defineCount) + const DxcDefine *pDefines, ///< Array of defines. + _In_ UINT32 defineCount, ///< Number of defines. + _COM_Outptr_ IDxcCompilerArgs **ppArgs ///< Arguments you can use with Compile() method. + ) = 0; + + /// \brief Retrieve the hash and contents of a shader PDB. + /// + /// \param pPDBBlob The blob containing the PDB. + /// + /// \param ppHash Address of the pointer that receives a pointer to the hash + /// blob. + /// + /// \param ppContainer Address of the pointer that receives a pointer to the + /// bloc containing the contents of the PDB. + /// + virtual HRESULT STDMETHODCALLTYPE GetPDBContents( + _In_ IDxcBlob *pPDBBlob, _COM_Outptr_ IDxcBlob **ppHash, _COM_Outptr_ IDxcBlob **ppContainer) = 0; +}; + +/// \brief Specifies the kind of output to retrieve from a IDxcResult. +/// +/// Note: text outputs returned from version 2 APIs are UTF-8 or UTF-16 based on +/// the -encoding option passed to the compiler. +typedef enum DXC_OUT_KIND { + DXC_OUT_NONE = 0, ///< No output. + DXC_OUT_OBJECT = 1, ///< IDxcBlob - Shader or library object. + DXC_OUT_ERRORS = 2, ///< IDxcBlobUtf8 or IDxcBlobWide. + DXC_OUT_PDB = 3, ///< IDxcBlob. + DXC_OUT_SHADER_HASH = 4, ///< IDxcBlob - DxcShaderHash of shader or shader with source info (-Zsb/-Zss). + DXC_OUT_DISASSEMBLY = 5, ///< IDxcBlobUtf8 or IDxcBlobWide - from Disassemble. + DXC_OUT_HLSL = 6, ///< IDxcBlobUtf8 or IDxcBlobWide - from Preprocessor or Rewriter. + DXC_OUT_TEXT = 7, ///< IDxcBlobUtf8 or IDxcBlobWide - other text, such as -ast-dump or -Odump. + DXC_OUT_REFLECTION = 8, ///< IDxcBlob - RDAT part with reflection data. + DXC_OUT_ROOT_SIGNATURE = 9, ///< IDxcBlob - Serialized root signature output. + DXC_OUT_EXTRA_OUTPUTS = 10,///< IDxcExtraOutputs - Extra outputs. + DXC_OUT_REMARKS = 11, ///< IDxcBlobUtf8 or IDxcBlobWide - text directed at stdout. + DXC_OUT_TIME_REPORT = 12, ///< IDxcBlobUtf8 or IDxcBlobWide - text directed at stdout. + DXC_OUT_TIME_TRACE = 13, ///< IDxcBlobUtf8 or IDxcBlobWide - text directed at stdout. + + DXC_OUT_LAST = DXC_OUT_TIME_TRACE, ///< Last value for a counter. + + DXC_OUT_NUM_ENUMS, + DXC_OUT_FORCE_DWORD = 0xFFFFFFFF +} DXC_OUT_KIND; + +static_assert(DXC_OUT_NUM_ENUMS == DXC_OUT_LAST + 1, + "DXC_OUT_* Enum added and last value not updated."); + +CROSS_PLATFORM_UUIDOF(IDxcResult, "58346CDA-DDE7-4497-9461-6F87AF5E0659") +/// \brief Result of a DXC operation. +/// +/// DXC operations may have multiple outputs, such as a shader object and +/// errors. This interface provides access to the outputs. +struct IDxcResult : public IDxcOperationResult { + /// \brief Determines whether or not this result has the specified output. + /// + /// \param dxcOutKind The kind of output to check for. + virtual BOOL STDMETHODCALLTYPE HasOutput(_In_ DXC_OUT_KIND dxcOutKind) = 0; + + /// \brief Retrieves the specified output. + /// + /// \param dxcOutKind The kind of output to retrieve. + /// + /// \param iid The interface ID of the output interface. + /// + /// \param ppvObject Address of the pointer that receives a pointer to the + /// output. + /// + /// \param ppOutputName Optional address of a pointer to receive the name + /// blob, if there is one. + virtual HRESULT STDMETHODCALLTYPE GetOutput(_In_ DXC_OUT_KIND dxcOutKind, + _In_ REFIID iid, _COM_Outptr_opt_result_maybenull_ void **ppvObject, + _COM_Outptr_ IDxcBlobWide **ppOutputName) = 0; + + /// \brief Retrieves the number of outputs available in this result. + virtual UINT32 GetNumOutputs() = 0; + + /// \brief Retrieves the output kind at the specified index. + virtual DXC_OUT_KIND GetOutputByIndex(UINT32 Index) = 0; + + /// \brief Retrieves the primary output kind for this result. + /// + /// See IDxcOperationResult::GetResult() for more information on the primary + /// output kinds. + virtual DXC_OUT_KIND PrimaryOutput() = 0; +}; + +// Special names for extra output that should get written to specific streams. +#define DXC_EXTRA_OUTPUT_NAME_STDOUT L"*stdout*" +#define DXC_EXTRA_OUTPUT_NAME_STDERR L"*stderr*" + +CROSS_PLATFORM_UUIDOF(IDxcExtraOutputs, "319b37a2-a5c2-494a-a5de-4801b2faf989") +/// \brief Additional outputs from a DXC operation. +/// +/// This can be used to obtain outputs that don't have an explicit DXC_OUT_KIND. +/// Use DXC_OUT_EXTRA_OUTPUTS to obtain instances of this. +struct IDxcExtraOutputs : public IUnknown { + /// \brief Retrieves the number of outputs available + virtual UINT32 STDMETHODCALLTYPE GetOutputCount() = 0; + + /// \brief Retrieves the specified output. + /// + /// \param uIndex The index of the output to retrieve. + /// + /// \param iid The interface ID of the output interface. + /// + /// \param ppvObject Optional address of the pointer that receives a pointer + /// to the output if there is one. + /// + /// \param ppOutputType Optional address of the pointer that receives the + /// output type name blob if there is one. + /// + /// \param ppOutputName Optional address of the pointer that receives the + /// output name blob if there is one. + virtual HRESULT STDMETHODCALLTYPE GetOutput(_In_ UINT32 uIndex, + _In_ REFIID iid, _COM_Outptr_opt_result_maybenull_ void **ppvObject, + _COM_Outptr_opt_result_maybenull_ IDxcBlobWide **ppOutputType, + _COM_Outptr_opt_result_maybenull_ IDxcBlobWide **ppOutputName) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcCompiler3, "228B4687-5A6A-4730-900C-9702B2203F54") +/// \brief Interface to the DirectX Shader Compiler. +/// +/// Use DxcCreateInstance with CLSID_DxcCompiler to obtain an instance of this +/// interface. +struct IDxcCompiler3 : public IUnknown { + /// \brief Compile a shader. + /// + /// IDxcUtils::BuildArguments can be used to assist building the pArguments + /// and argCount parameters. + /// + /// Depending on the arguments, this method can be used to: + /// + /// * Compile a single entry point to the target shader model, + /// * Compile a library to a library target (-T lib_*) + /// * Compile a root signature (-T rootsig_*), + /// * Preprocess HLSL source (-P). + virtual HRESULT STDMETHODCALLTYPE Compile( + _In_ const DxcBuffer *pSource, ///< Source text to compile. + _In_opt_count_(argCount) LPCWSTR *pArguments, ///< Array of pointers to arguments. + _In_ UINT32 argCount, ///< Number of arguments. + _In_opt_ IDxcIncludeHandler *pIncludeHandler, ///< user-provided interface to handle include directives (optional). + _In_ REFIID riid, ///< Interface ID for the result. + _Out_ LPVOID *ppResult ///< IDxcResult: status, buffer, and errors. + ) = 0; + + /// \brief Disassemble a program. + virtual HRESULT STDMETHODCALLTYPE Disassemble( + _In_ const DxcBuffer *pObject, ///< Program to disassemble: dxil container or bitcode. + _In_ REFIID riid, ///< Interface ID for the result. + _Out_ LPVOID *ppResult ///< IDxcResult: status, disassembly text, and errors. + ) = 0; +}; + +static const UINT32 DxcValidatorFlags_Default = 0; +static const UINT32 DxcValidatorFlags_InPlaceEdit = 1; // Validator is allowed to update shader blob in-place. +static const UINT32 DxcValidatorFlags_RootSignatureOnly = 2; +static const UINT32 DxcValidatorFlags_ModuleOnly = 4; +static const UINT32 DxcValidatorFlags_ValidMask = 0x7; + +CROSS_PLATFORM_UUIDOF(IDxcValidator, "A6E82BD2-1FD7-4826-9811-2857E797F49A") +/// \brief Interface to DXC shader validator. +/// +/// Use DxcCreateInstance with CLSID_DxcValidator to obtain an instance of this. +struct IDxcValidator : public IUnknown { + /// \brief Validate a shader. + virtual HRESULT STDMETHODCALLTYPE Validate( + _In_ IDxcBlob *pShader, ///< Shader to validate. + _In_ UINT32 Flags, ///< Validation flags. + _COM_Outptr_ IDxcOperationResult **ppResult ///< Validation output status, buffer, and errors. + ) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcValidator2, "458e1fd1-b1b2-4750-a6e1-9c10f03bed92") +/// \brief Interface to DXC shader validator. +/// +/// Use DxcCreateInstance with CLSID_DxcValidator to obtain an instance of this. +struct IDxcValidator2 : public IDxcValidator { + /// \brief Validate a shader with optional debug bitcode. + virtual HRESULT STDMETHODCALLTYPE ValidateWithDebug( + _In_ IDxcBlob *pShader, ///< Shader to validate. + _In_ UINT32 Flags, ///< Validation flags. + _In_opt_ DxcBuffer *pOptDebugBitcode, ///< Optional debug module bitcode to provide line numbers. + _COM_Outptr_ IDxcOperationResult **ppResult ///< Validation output status, buffer, and errors. + ) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcContainerBuilder, "334b1f50-2292-4b35-99a1-25588d8c17fe") +/// \brief Interface to DXC container builder. +/// +/// Use DxcCreateInstance with CLSID_DxcContainerBuilder to obtain an instance of this. +struct IDxcContainerBuilder : public IUnknown { + /// \brief Load a DxilContainer to the builder. + virtual HRESULT STDMETHODCALLTYPE Load(_In_ IDxcBlob *pDxilContainerHeader) = 0; + + /// \brief Add a part to the container. + /// + /// \param fourCC The part identifier (eg DXC_PART_PDB). + /// + /// \param pSource The source blob. + virtual HRESULT STDMETHODCALLTYPE AddPart(_In_ UINT32 fourCC, _In_ IDxcBlob *pSource) = 0; + + /// \brief Remove a part from the container. + /// + /// \param fourCC The part identifier (eg DXC_PART_PDB). + /// + /// \return S_OK on success, DXC_E_MISSING_PART if the part was not found, or + /// other standard HRESULT error code. + virtual HRESULT STDMETHODCALLTYPE RemovePart(_In_ UINT32 fourCC) = 0; + + /// \brief Build the container. + /// + /// \param ppResult Pointer to variable to receive the result. + virtual HRESULT STDMETHODCALLTYPE SerializeContainer(_Out_ IDxcOperationResult **ppResult) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcAssembler, "091f7a26-1c1f-4948-904b-e6e3a8a771d5") +/// \brief Interface to DxcAssembler. +/// +/// Use DxcCreateInstance with CLSID_DxcAssembler to obtain an instance of this. +struct IDxcAssembler : public IUnknown { + /// \brief Assemble DXIL in LL or LLVM bitcode to DXIL container. + virtual HRESULT STDMETHODCALLTYPE AssembleToContainer( + _In_ IDxcBlob *pShader, ///< Shader to assemble. + _COM_Outptr_ IDxcOperationResult **ppResult ///< Assembly output status, buffer, and errors. + ) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcContainerReflection, "d2c21b26-8350-4bdc-976a-331ce6f4c54c") +/// \brief Interface to DxcContainerReflection. +/// +/// Use DxcCreateInstance with CLSID_DxcContainerReflection to obtain an +/// instance of this. +struct IDxcContainerReflection : public IUnknown { + /// \brief Choose the container to perform reflection on + /// + /// \param pContainer The container to load. If null is passed then this + /// instance will release any held resources. + virtual HRESULT STDMETHODCALLTYPE Load(_In_ IDxcBlob *pContainer) = 0; + + /// \brief Retrieves the number of parts in the container. + /// + /// \param pResult Pointer to variable to receive the result. + /// + /// \return S_OK on success, E_NOT_VALID_STATE if a container has not been + /// loaded using Load(), or other standard HRESULT error codes. + virtual HRESULT STDMETHODCALLTYPE GetPartCount(_Out_ UINT32 *pResult) = 0; + + /// \brief Retrieve the kind of a specified part. + /// + /// \param idx The index of the part to retrieve the kind of. + /// + /// \param pResult Pointer to variable to receive the result. + /// + /// \return S_OK on success, E_NOT_VALID_STATE if a container has not been + /// loaded using Load(), E_BOUND if idx is out of bounds, or other standard + /// HRESULT error codes. + virtual HRESULT STDMETHODCALLTYPE GetPartKind(UINT32 idx, _Out_ UINT32 *pResult) = 0; + + /// \brief Retrieve the content of a specified part. + /// + /// \param idx The index of the part to retrieve. + /// + /// \param ppResult Pointer to variable to receive the result. + /// + /// \return S_OK on success, E_NOT_VALID_STATE if a container has not been + /// loaded using Load(), E_BOUND if idx is out of bounds, or other standard + /// HRESULT error codes. + virtual HRESULT STDMETHODCALLTYPE GetPartContent(UINT32 idx, _COM_Outptr_ IDxcBlob **ppResult) = 0; + + /// \brief Retrieve the index of the first part with the specified kind. + /// + /// \param kind The kind to search for. + /// + /// \param pResult Pointer to variable to receive the index of the matching + /// part. + /// + /// \return S_OK on success, E_NOT_VALID_STATE if a container has not been + /// loaded using Load(), HRESULT_FROM_WIN32(ERROR_NOT_FOUND) if there is no + /// part with the specified kind, or other standard HRESULT error codes. + virtual HRESULT STDMETHODCALLTYPE FindFirstPartKind(UINT32 kind, _Out_ UINT32 *pResult) = 0; + + /// \brief Retrieve the reflection interface for a specified part. + /// + /// \param idx The index of the part to retrieve the reflection interface of. + /// + /// \param iid The IID of the interface to retrieve. + /// + /// \param ppvObject Pointer to variable to receive the result. + /// + /// Use this with interfaces such as ID3D12ShaderReflection. + /// + /// \return S_OK on success, E_NOT_VALID_STATE if a container has not been + /// loaded using Load(), E_BOUND if idx is out of bounds, or other standard + /// HRESULT error codes. + virtual HRESULT STDMETHODCALLTYPE GetPartReflection(UINT32 idx, REFIID iid, void **ppvObject) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcOptimizerPass, "AE2CD79F-CC22-453F-9B6B-B124E7A5204C") +/// \brief An optimizer pass. +/// +/// Instances of this can be obtained via IDxcOptimizer::GetAvailablePass. +struct IDxcOptimizerPass : public IUnknown { + virtual HRESULT STDMETHODCALLTYPE GetOptionName(_COM_Outptr_ LPWSTR *ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE GetDescription(_COM_Outptr_ LPWSTR *ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE GetOptionArgCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE GetOptionArgName(UINT32 argIndex, _COM_Outptr_ LPWSTR *ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE GetOptionArgDescription(UINT32 argIndex, _COM_Outptr_ LPWSTR *ppResult) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcOptimizer, "25740E2E-9CBA-401B-9119-4FB42F39F270") +/// \brief Interface to DxcOptimizer. +/// +/// Use DxcCreateInstance with CLSID_DxcOptimizer to obtain an instance of this. +struct IDxcOptimizer : public IUnknown { + virtual HRESULT STDMETHODCALLTYPE GetAvailablePassCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE GetAvailablePass(UINT32 index, _COM_Outptr_ IDxcOptimizerPass** ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE RunOptimizer(IDxcBlob *pBlob, + _In_count_(optionCount) LPCWSTR *ppOptions, UINT32 optionCount, + _COM_Outptr_ IDxcBlob **pOutputModule, + _COM_Outptr_opt_ IDxcBlobEncoding **ppOutputText) = 0; +}; + +static const UINT32 DxcVersionInfoFlags_None = 0; +static const UINT32 DxcVersionInfoFlags_Debug = 1; // Matches VS_FF_DEBUG +static const UINT32 DxcVersionInfoFlags_Internal = 2; // Internal Validator (non-signing) + +CROSS_PLATFORM_UUIDOF(IDxcVersionInfo, "b04f5b50-2059-4f12-a8ff-a1e0cde1cc7e") +/// \brief PDB Version information. +/// +/// Use IDxcPdbUtils2::GetVersionInfo to obtain an instance of this. +struct IDxcVersionInfo : public IUnknown { + virtual HRESULT STDMETHODCALLTYPE GetVersion(_Out_ UINT32 *pMajor, _Out_ UINT32 *pMinor) = 0; + virtual HRESULT STDMETHODCALLTYPE GetFlags(_Out_ UINT32 *pFlags) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcVersionInfo2, "fb6904c4-42f0-4b62-9c46-983af7da7c83") +/// \brief PDB Version Information. +/// +/// Use IDxcPdbUtils2::GetVersionInfo to obtain a IDxcVersionInfo interface, and +/// then use QueryInterface to obtain an instance of this interface from it. +struct IDxcVersionInfo2 : public IDxcVersionInfo { + virtual HRESULT STDMETHODCALLTYPE GetCommitInfo( + _Out_ UINT32 *pCommitCount, ///< The total number commits. + _Outptr_result_z_ char **pCommitHash ///< The SHA of the latest commit. Must be CoTaskMemFree()'d. + ) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcVersionInfo3, "5e13e843-9d25-473c-9ad2-03b2d0b44b1e") +/// \brief PDB Version Information. +/// +/// Use IDxcPdbUtils2::GetVersionInfo to obtain a IDxcVersionInfo interface, and +/// then use QueryInterface to obtain an instance of this interface from it. +struct IDxcVersionInfo3 : public IUnknown { + virtual HRESULT STDMETHODCALLTYPE GetCustomVersionString( + _Outptr_result_z_ char **pVersionString ///< Custom version string for compiler. Must be CoTaskMemFree()'d. + ) = 0; +}; + +struct DxcArgPair { + const WCHAR *pName; + const WCHAR *pValue; +}; + +CROSS_PLATFORM_UUIDOF(IDxcPdbUtils, "E6C9647E-9D6A-4C3B-B94C-524B5A6C343D") +/// \deprecated Please use IDxcPdbUtils2 instead. +struct IDxcPdbUtils : public IUnknown { + virtual HRESULT STDMETHODCALLTYPE Load(_In_ IDxcBlob *pPdbOrDxil) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSourceCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE GetSource(_In_ UINT32 uIndex, _COM_Outptr_ IDxcBlobEncoding **ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE GetSourceName(_In_ UINT32 uIndex, _Outptr_result_z_ BSTR *pResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFlagCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE GetFlag(_In_ UINT32 uIndex, _Outptr_result_z_ BSTR *pResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetArgCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE GetArg(_In_ UINT32 uIndex, _Outptr_result_z_ BSTR *pResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetArgPairCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE GetArgPair(_In_ UINT32 uIndex, _Outptr_result_z_ BSTR *pName, _Outptr_result_z_ BSTR *pValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDefineCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE GetDefine(_In_ UINT32 uIndex, _Outptr_result_z_ BSTR *pResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTargetProfile(_Outptr_result_z_ BSTR *pResult) = 0; + virtual HRESULT STDMETHODCALLTYPE GetEntryPoint(_Outptr_result_z_ BSTR *pResult) = 0; + virtual HRESULT STDMETHODCALLTYPE GetMainFileName(_Outptr_result_z_ BSTR *pResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHash(_COM_Outptr_ IDxcBlob **ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE GetName(_Outptr_result_z_ BSTR *pResult) = 0; + + virtual BOOL STDMETHODCALLTYPE IsFullPDB() = 0; + virtual HRESULT STDMETHODCALLTYPE GetFullPDB(_COM_Outptr_ IDxcBlob **ppFullPDB) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionInfo(_COM_Outptr_ IDxcVersionInfo **ppVersionInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetCompiler(_In_ IDxcCompiler3 *pCompiler) = 0; + virtual HRESULT STDMETHODCALLTYPE CompileForFullPDB(_COM_Outptr_ IDxcResult **ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE OverrideArgs(_In_ DxcArgPair *pArgPairs, UINT32 uNumArgPairs) = 0; + virtual HRESULT STDMETHODCALLTYPE OverrideRootSignature(_In_ const WCHAR *pRootSignature) = 0; +}; + +CROSS_PLATFORM_UUIDOF(IDxcPdbUtils2, "4315D938-F369-4F93-95A2-252017CC3807") +/// \brief DxcPdbUtils interface. +/// +/// Use DxcCreateInstance with CLSID_DxcPdbUtils to create an instance of this. +struct IDxcPdbUtils2 : public IUnknown { + virtual HRESULT STDMETHODCALLTYPE Load(_In_ IDxcBlob *pPdbOrDxil) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSourceCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE GetSource(_In_ UINT32 uIndex, _COM_Outptr_ IDxcBlobEncoding **ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE GetSourceName(_In_ UINT32 uIndex, _COM_Outptr_ IDxcBlobWide **ppResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetLibraryPDBCount(UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE GetLibraryPDB(_In_ UINT32 uIndex, _COM_Outptr_ IDxcPdbUtils2 **ppOutPdbUtils, _COM_Outptr_opt_result_maybenull_ IDxcBlobWide **ppLibraryName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFlagCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE GetFlag(_In_ UINT32 uIndex, _COM_Outptr_ IDxcBlobWide **ppResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetArgCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE GetArg(_In_ UINT32 uIndex, _COM_Outptr_ IDxcBlobWide **ppResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetArgPairCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE GetArgPair(_In_ UINT32 uIndex, _COM_Outptr_result_maybenull_ IDxcBlobWide **ppName, _COM_Outptr_result_maybenull_ IDxcBlobWide **ppValue) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDefineCount(_Out_ UINT32 *pCount) = 0; + virtual HRESULT STDMETHODCALLTYPE GetDefine(_In_ UINT32 uIndex, _COM_Outptr_ IDxcBlobWide **ppResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetTargetProfile(_COM_Outptr_result_maybenull_ IDxcBlobWide **ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE GetEntryPoint(_COM_Outptr_result_maybenull_ IDxcBlobWide **ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE GetMainFileName(_COM_Outptr_result_maybenull_ IDxcBlobWide **ppResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetHash(_COM_Outptr_result_maybenull_ IDxcBlob **ppResult) = 0; + virtual HRESULT STDMETHODCALLTYPE GetName(_COM_Outptr_result_maybenull_ IDxcBlobWide **ppResult) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVersionInfo(_COM_Outptr_result_maybenull_ IDxcVersionInfo **ppVersionInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCustomToolchainID(_Out_ UINT32 *pID) = 0; + virtual HRESULT STDMETHODCALLTYPE GetCustomToolchainData(_COM_Outptr_result_maybenull_ IDxcBlob **ppBlob) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetWholeDxil(_COM_Outptr_result_maybenull_ IDxcBlob **ppResult) = 0; + + virtual BOOL STDMETHODCALLTYPE IsFullPDB() = 0; + virtual BOOL STDMETHODCALLTYPE IsPDBRef() = 0; +}; + +// Note: __declspec(selectany) requires 'extern' +// On Linux __declspec(selectany) is removed and using 'extern' results in link error. +#ifdef _MSC_VER +#define CLSID_SCOPE __declspec(selectany) extern +#else +#define CLSID_SCOPE +#endif + +CLSID_SCOPE const CLSID CLSID_DxcCompiler = { + 0x73e22d93, + 0xe6ce, + 0x47f3, + {0xb5, 0xbf, 0xf0, 0x66, 0x4f, 0x39, 0xc1, 0xb0}}; + +// {EF6A8087-B0EA-4D56-9E45-D07E1A8B7806} +CLSID_SCOPE const GUID CLSID_DxcLinker = { + 0xef6a8087, + 0xb0ea, + 0x4d56, + {0x9e, 0x45, 0xd0, 0x7e, 0x1a, 0x8b, 0x78, 0x6}}; + +// {CD1F6B73-2AB0-484D-8EDC-EBE7A43CA09F} +CLSID_SCOPE const CLSID CLSID_DxcDiaDataSource = { + 0xcd1f6b73, + 0x2ab0, + 0x484d, + {0x8e, 0xdc, 0xeb, 0xe7, 0xa4, 0x3c, 0xa0, 0x9f}}; + +// {3E56AE82-224D-470F-A1A1-FE3016EE9F9D} +CLSID_SCOPE const CLSID CLSID_DxcCompilerArgs = { + 0x3e56ae82, + 0x224d, + 0x470f, + {0xa1, 0xa1, 0xfe, 0x30, 0x16, 0xee, 0x9f, 0x9d}}; + +// {6245D6AF-66E0-48FD-80B4-4D271796748C} +CLSID_SCOPE const GUID CLSID_DxcLibrary = { + 0x6245d6af, + 0x66e0, + 0x48fd, + {0x80, 0xb4, 0x4d, 0x27, 0x17, 0x96, 0x74, 0x8c}}; + +CLSID_SCOPE const GUID CLSID_DxcUtils = CLSID_DxcLibrary; + +// {8CA3E215-F728-4CF3-8CDD-88AF917587A1} +CLSID_SCOPE const GUID CLSID_DxcValidator = { + 0x8ca3e215, + 0xf728, + 0x4cf3, + {0x8c, 0xdd, 0x88, 0xaf, 0x91, 0x75, 0x87, 0xa1}}; + +// {D728DB68-F903-4F80-94CD-DCCF76EC7151} +CLSID_SCOPE const GUID CLSID_DxcAssembler = { + 0xd728db68, + 0xf903, + 0x4f80, + {0x94, 0xcd, 0xdc, 0xcf, 0x76, 0xec, 0x71, 0x51}}; + +// {b9f54489-55b8-400c-ba3a-1675e4728b91} +CLSID_SCOPE const GUID CLSID_DxcContainerReflection = { + 0xb9f54489, + 0x55b8, + 0x400c, + {0xba, 0x3a, 0x16, 0x75, 0xe4, 0x72, 0x8b, 0x91}}; + +// {AE2CD79F-CC22-453F-9B6B-B124E7A5204C} +CLSID_SCOPE const GUID CLSID_DxcOptimizer = { + 0xae2cd79f, + 0xcc22, + 0x453f, + {0x9b, 0x6b, 0xb1, 0x24, 0xe7, 0xa5, 0x20, 0x4c}}; + +// {94134294-411f-4574-b4d0-8741e25240d2} +CLSID_SCOPE const GUID CLSID_DxcContainerBuilder = { + 0x94134294, + 0x411f, + 0x4574, + {0xb4, 0xd0, 0x87, 0x41, 0xe2, 0x52, 0x40, 0xd2}}; + +// {54621dfb-f2ce-457e-ae8c-ec355faeec7c} +CLSID_SCOPE const GUID CLSID_DxcPdbUtils = { + 0x54621dfb, + 0xf2ce, + 0x457e, + {0xae, 0x8c, 0xec, 0x35, 0x5f, 0xae, 0xec, 0x7c}}; + +#endif diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxcore.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxcore.h new file mode 100644 index 0000000000000000000000000000000000000000..5ee4bdfd3886a9256729ce5a2edd8c222479573c --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxcore.h @@ -0,0 +1,42 @@ +/************************************************************ +* * +* Copyright (c) Microsoft Corporation. * +* Licensed under the MIT license. * +* * +************************************************************/ + +#ifndef _DXCOREEXTMODULE_H_ +#define _DXCOREEXTMODULE_H_ + +#include +#include "dxcore_interface.h" + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +#if (_WIN32_WINNT >= _WIN32_WINNT_WIN10) + +STDAPI +DXCoreCreateAdapterFactory( + REFIID riid, + _COM_Outptr_ void** ppvFactory +); + +template +HRESULT +DXCoreCreateAdapterFactory( + _COM_Outptr_ T** ppvFactory +) +{ + return DXCoreCreateAdapterFactory(IID_PPV_ARGS(ppvFactory)); +} + +#endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN10) + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#endif // _DXCOREEXTMODULE_H_ + + + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxcore_interface.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxcore_interface.h new file mode 100644 index 0000000000000000000000000000000000000000..49a76598dceef1c2c119af905e960c41be7f3159 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxcore_interface.h @@ -0,0 +1,497 @@ +// +// DXCore Interface +// Copyright (C) Microsoft Corporation. +// Licensed under the MIT license. +// + +#ifndef __dxcore_interface_h__ +#define __dxcore_interface_h__ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#include + +#ifdef __cplusplus + +#define _FACDXCORE 0x880 +#define MAKE_DXCORE_HRESULT( code ) MAKE_HRESULT( 1, _FACDXCORE, code ) + +enum class DXCoreAdapterProperty : uint32_t +{ + InstanceLuid = 0, + DriverVersion = 1, + DriverDescription = 2, + HardwareID = 3, // Use HardwareIDParts instead, if available. + KmdModelVersion = 4, + ComputePreemptionGranularity = 5, + GraphicsPreemptionGranularity = 6, + DedicatedAdapterMemory = 7, + DedicatedSystemMemory = 8, + SharedSystemMemory = 9, + AcgCompatible = 10, + IsHardware = 11, + IsIntegrated = 12, + IsDetachable = 13, + HardwareIDParts = 14, + PhysicalAdapterCount = 15, + AdapterEngineCount = 16, + AdapterEngineName = 17, +}; + +enum class DXCoreAdapterState : uint32_t +{ + IsDriverUpdateInProgress = 0, + AdapterMemoryBudget = 1, + AdapterMemoryUsageBytes = 2, + AdapterMemoryUsageByProcessBytes = 3, + AdapterEngineRunningTimeMicroseconds = 4, + AdapterEngineRunningTimeByProcessMicroseconds = 5, + AdapterTemperatureCelsius = 6, + AdapterInUseProcessCount = 7, + AdapterInUseProcessSet = 8, + AdapterEngineFrequencyHertz = 9, + AdapterMemoryFrequencyHertz = 10 +}; + +enum class DXCoreSegmentGroup : uint32_t +{ + Local = 0, + NonLocal = 1 +}; + +enum class DXCoreNotificationType : uint32_t +{ + AdapterListStale = 0, + AdapterNoLongerValid = 1, + AdapterBudgetChange = 2, + AdapterHardwareContentProtectionTeardown = 3 +}; + +enum class DXCoreAdapterPreference : uint32_t +{ + Hardware = 0, + MinimumPower = 1, + HighPerformance = 2 +}; + +enum class DXCoreWorkload : uint32_t +{ + Graphics = 0, + Compute = 1, + Media = 2, + MachineLearning = 3, +}; + +enum class DXCoreRuntimeFilterFlags : uint32_t +{ + None = 0x0, + D3D11 = 0x1, + D3D12 = 0x2 +}; + +DEFINE_ENUM_FLAG_OPERATORS(DXCoreRuntimeFilterFlags); + +enum class DXCoreHardwareTypeFilterFlags : uint32_t +{ + None = 0x0, + GPU = 0x1, + ComputeAccelerator = 0x2, + NPU = 0x4, + MediaAccelerator = 0x8 +}; + +DEFINE_ENUM_FLAG_OPERATORS(DXCoreHardwareTypeFilterFlags); + +struct DXCoreHardwareID +{ + uint32_t vendorID; + uint32_t deviceID; + uint32_t subSysID; + uint32_t revision; +}; + +struct DXCoreHardwareIDParts +{ + uint32_t vendorID; + uint32_t deviceID; + uint32_t subSystemID; + uint32_t subVendorID; + uint32_t revisionID; +}; + +struct DXCoreAdapterMemoryBudgetNodeSegmentGroup +{ + uint32_t nodeIndex; + DXCoreSegmentGroup segmentGroup; +}; + +struct DXCoreAdapterMemoryBudget +{ + uint64_t budget; + uint64_t currentUsage; + uint64_t availableForReservation; + uint64_t currentReservation; +}; + +struct DXCoreAdapterEngineIndex +{ + uint32_t physicalAdapterIndex; + uint32_t engineIndex; +}; + +struct DXCoreEngineQueryInput +{ + DXCoreAdapterEngineIndex adapterEngineIndex; + uint32_t processId; +}; + +struct DXCoreEngineQueryOutput +{ + uint64_t runningTime; + bool processQuerySucceeded; +}; + +enum class DXCoreMemoryType : uint32_t +{ + Dedicated = 0, + Shared = 1 +}; + +struct DXCoreMemoryUsage +{ + uint64_t committed; + uint64_t resident; +}; + +struct DXCoreMemoryQueryInput +{ + uint32_t physicalAdapterIndex; + DXCoreMemoryType memoryType; +}; + +struct DXCoreProcessMemoryQueryInput +{ + uint32_t physicalAdapterIndex; + DXCoreMemoryType memoryType; + uint32_t processId; +}; + +struct DXCoreProcessMemoryQueryOutput +{ + DXCoreMemoryUsage memoryUsage; + bool processQuerySucceeded; +}; + +struct DXCoreAdapterProcessSetQueryInput +{ + uint32_t arraySize; + _Field_size_(arraySize) uint32_t* processIds; +}; + +struct DXCoreAdapterProcessSetQueryOutput +{ + uint32_t processesWritten; + uint32_t processesTotal; +}; + +struct DXCoreEngineNamePropertyInput +{ + DXCoreAdapterEngineIndex adapterEngineIndex; + uint32_t engineNameLength; + _Field_size_(engineNameLength) wchar_t *engineName; +}; + +struct DXCoreEngineNamePropertyOutput +{ + uint32_t engineNameLength; +}; + +struct DXCoreFrequencyQueryOutput +{ + uint64_t frequency; + uint64_t maxFrequency; + uint64_t maxOverclockedFrequency; +}; + +typedef void (STDMETHODCALLTYPE *PFN_DXCORE_NOTIFICATION_CALLBACK)( + DXCoreNotificationType notificationType, + _In_ IUnknown *object, + _In_opt_ void *context); + +static_assert(sizeof(bool) == 1, "bool assumed as one byte"); + +DEFINE_GUID(IID_IDXCoreAdapterFactory, 0x78ee5945, 0xc36e, 0x4b13, 0xa6, 0x69, 0x00, 0x5d, 0xd1, 0x1c, 0x0f, 0x06); +DEFINE_GUID(IID_IDXCoreAdapterFactory1, 0xd5682e19, 0x6d21, 0x401c, 0x82, 0x7a, 0x9a, 0x51, 0xa4, 0xea, 0x35, 0xd7); +DEFINE_GUID(IID_IDXCoreAdapterList, 0x526c7776, 0x40e9, 0x459b, 0xb7, 0x11, 0xf3, 0x2a, 0xd7, 0x6d, 0xfc, 0x28); +DEFINE_GUID(IID_IDXCoreAdapter, 0xf0db4c7f, 0xfe5a, 0x42a2, 0xbd, 0x62, 0xf2, 0xa6, 0xcf, 0x6f, 0xc8, 0x3e); +DEFINE_GUID(IID_IDXCoreAdapter1, 0xa0783366, 0xcfa3, 0x43be, 0x9d, 0x79, 0x55, 0xb2, 0xda, 0x97, 0xc6, 0x3c); + +DEFINE_GUID(DXCORE_ADAPTER_ATTRIBUTE_D3D11_GRAPHICS, 0x8c47866b, 0x7583, 0x450d, 0xf0, 0xf0, 0x6b, 0xad, 0xa8, 0x95, 0xaf, 0x4b); +DEFINE_GUID(DXCORE_ADAPTER_ATTRIBUTE_D3D12_GRAPHICS, 0x0c9ece4d, 0x2f6e, 0x4f01, 0x8c, 0x96, 0xe8, 0x9e, 0x33, 0x1b, 0x47, 0xb1); +DEFINE_GUID(DXCORE_ADAPTER_ATTRIBUTE_D3D12_CORE_COMPUTE, 0x248e2800, 0xa793, 0x4724, 0xab, 0xaa, 0x23, 0xa6, 0xde, 0x1b, 0xe0, 0x90); +DEFINE_GUID(DXCORE_ADAPTER_ATTRIBUTE_D3D12_GENERIC_ML, 0xb71b0d41, 0x1088, 0x422f, 0xa2, 0x7c, 0x2, 0x50, 0xb7, 0xd3, 0xa9, 0x88); +DEFINE_GUID(DXCORE_ADAPTER_ATTRIBUTE_D3D12_GENERIC_MEDIA, 0x8eb2c848, 0x82f6, 0x4b49, 0xaa, 0x87, 0xae, 0xcf, 0xcf, 0x1, 0x74, 0xc6); + +DEFINE_GUID(DXCORE_HARDWARE_TYPE_ATTRIBUTE_GPU, 0xb69eb219, 0x3ded, 0x4464, 0x97, 0x9f, 0xa0, 0xb, 0xd4, 0x68, 0x70, 0x6); +DEFINE_GUID(DXCORE_HARDWARE_TYPE_ATTRIBUTE_COMPUTE_ACCELERATOR, 0xe0b195da, 0x58ef, 0x4a22, 0x90, 0xf1, 0x1f, 0x28, 0x16, 0x9c, 0xab, 0x8d); +DEFINE_GUID(DXCORE_HARDWARE_TYPE_ATTRIBUTE_NPU, 0xd46140c4, 0xadd7, 0x451b, 0x9e, 0x56, 0x6, 0xfe, 0x8c, 0x3b, 0x58, 0xed); +DEFINE_GUID(DXCORE_HARDWARE_TYPE_ATTRIBUTE_MEDIA_ACCELERATOR, 0x66bdb96a, 0x50b, 0x44c7, 0xa4, 0xfd, 0xd1, 0x44, 0xce, 0xa, 0xb4, 0x43); + +/* interface IDXCoreAdapter */ +MIDL_INTERFACE("f0db4c7f-fe5a-42a2-bd62-f2a6cf6fc83e") +IDXCoreAdapter : public IUnknown +{ +public: + virtual bool STDMETHODCALLTYPE IsValid() = 0; + + virtual bool STDMETHODCALLTYPE IsAttributeSupported( + REFGUID attributeGUID) = 0; + + virtual bool STDMETHODCALLTYPE IsPropertySupported( + DXCoreAdapterProperty property) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProperty( + DXCoreAdapterProperty property, + size_t bufferSize, + _Out_writes_bytes_(bufferSize) void *propertyData) = 0; + + template + HRESULT GetProperty( + DXCoreAdapterProperty property, + _Out_writes_bytes_(sizeof(T)) T *propertyData) + { + return GetProperty(property, + sizeof(T), + (void*)propertyData); + } + + virtual HRESULT STDMETHODCALLTYPE GetPropertySize( + DXCoreAdapterProperty property, + _Out_ size_t *bufferSize) = 0; + + virtual bool STDMETHODCALLTYPE IsQueryStateSupported( + DXCoreAdapterState property) = 0; + + virtual HRESULT STDMETHODCALLTYPE QueryState( + DXCoreAdapterState state, + size_t inputStateDetailsSize, + _In_reads_bytes_opt_(inputStateDetailsSize) const void *inputStateDetails, + size_t outputBufferSize, + _Out_writes_bytes_(outputBufferSize) void *outputBuffer) = 0; + + template + HRESULT QueryState( + DXCoreAdapterState state, + _In_reads_bytes_opt_(sizeof(T1)) const T1 *inputStateDetails, + _Out_writes_bytes_(sizeof(T2)) T2 *outputBuffer) + { + return QueryState(state, + sizeof(T1), + (const void*)inputStateDetails, + sizeof(T2), + (void*)outputBuffer); + } + + template + HRESULT QueryState( + DXCoreAdapterState state, + _Out_writes_bytes_(sizeof(T)) T *outputBuffer) + { + return QueryState(state, + 0, + nullptr, + sizeof(T), + (void*)outputBuffer); + } + + virtual bool STDMETHODCALLTYPE IsSetStateSupported( + DXCoreAdapterState property) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetState( + DXCoreAdapterState state, + size_t inputStateDetailsSize, + _In_reads_bytes_opt_(inputStateDetailsSize) const void *inputStateDetails, + size_t inputDataSize, + _In_reads_bytes_(inputDataSize) const void *inputData) = 0; + + template + HRESULT SetState( + DXCoreAdapterState state, + const T1 *inputStateDetails, + const T2 *inputData) + { + return SetState(state, + sizeof(T1), + (const void*)inputStateDetails, + sizeof(T2), + (const void*)inputData); + } + + virtual HRESULT STDMETHODCALLTYPE GetFactory( + REFIID riid, + _COM_Outptr_ void** ppvFactory + ) = 0; + + template + HRESULT GetFactory( + _COM_Outptr_ T** ppvFactory + ) + { + return GetFactory(IID_PPV_ARGS(ppvFactory)); + } +}; + +/* interface IDXCoreAdapter1 */ +MIDL_INTERFACE("a0783366-cfa3-43be-9d79-55b2da97c63c") +IDXCoreAdapter1 : public IDXCoreAdapter +{ +public: + virtual HRESULT STDMETHODCALLTYPE GetPropertyWithInput( + DXCoreAdapterProperty property, + size_t inputPropertyDetailsSize, + _In_reads_bytes_opt_(inputPropertyDetailsSize) const void *inputPropertyDetails, + size_t outputBufferSize, + _Out_writes_bytes_(outputBufferSize) void *outputBuffer) = 0; + + template + HRESULT GetPropertyWithInput( + DXCoreAdapterProperty property, + _In_reads_bytes_opt_(sizeof(T1)) const T1 *inputPropertyDetails, + _Out_writes_bytes_(sizeof(T2)) T2 *outputBuffer) + { + return GetPropertyWithInput(property, + sizeof(T1), + (const void*)inputPropertyDetails, + sizeof(T2), + (void*)outputBuffer); + } +}; + +/* interface IDXCoreAdapterList */ +MIDL_INTERFACE("526c7776-40e9-459b-b711-f32ad76dfc28") +IDXCoreAdapterList : public IUnknown +{ +public: + virtual HRESULT STDMETHODCALLTYPE GetAdapter( + uint32_t index, + REFIID riid, + _COM_Outptr_ void **ppvAdapter) = 0; + + template + HRESULT STDMETHODCALLTYPE GetAdapter( + uint32_t index, + _COM_Outptr_ T **ppvAdapter) + { + return GetAdapter(index, + IID_PPV_ARGS(ppvAdapter)); + } + + virtual uint32_t STDMETHODCALLTYPE GetAdapterCount() = 0; + + virtual bool STDMETHODCALLTYPE IsStale() = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFactory( + REFIID riid, + _COM_Outptr_ void** ppvFactory + ) = 0; + + template + HRESULT GetFactory( + _COM_Outptr_ T** ppvFactory + ) + { + return GetFactory(IID_PPV_ARGS(ppvFactory)); + } + + virtual HRESULT STDMETHODCALLTYPE Sort( + uint32_t numPreferences, + _In_reads_(numPreferences) const DXCoreAdapterPreference* preferences) = 0; + + virtual bool STDMETHODCALLTYPE IsAdapterPreferenceSupported( + DXCoreAdapterPreference preference) = 0; +}; + +/* interface IDXCoreAdapterFactory */ +MIDL_INTERFACE("78ee5945-c36e-4b13-a669-005dd11c0f06") +IDXCoreAdapterFactory : public IUnknown +{ +public: + + virtual HRESULT STDMETHODCALLTYPE CreateAdapterList( + uint32_t numAttributes, + _In_reads_(numAttributes) const GUID *filterAttributes, + REFIID riid, + _COM_Outptr_ void **ppvAdapterList) = 0; + + template + HRESULT STDMETHODCALLTYPE CreateAdapterList( + uint32_t numAttributes, + _In_reads_(numAttributes) const GUID *filterAttributes, + _COM_Outptr_ T **ppvAdapterList) + { + return CreateAdapterList(numAttributes, + filterAttributes, + IID_PPV_ARGS(ppvAdapterList)); + } + + virtual HRESULT STDMETHODCALLTYPE GetAdapterByLuid( + const LUID &adapterLUID, + REFIID riid, + _COM_Outptr_ void **ppvAdapter) = 0; + + template + HRESULT STDMETHODCALLTYPE GetAdapterByLuid( + const LUID &adapterLUID, + _COM_Outptr_ T **ppvAdapter) + { + return GetAdapterByLuid(adapterLUID, + IID_PPV_ARGS(ppvAdapter)); + } + + virtual bool STDMETHODCALLTYPE IsNotificationTypeSupported( + DXCoreNotificationType notificationType) = 0; + + virtual HRESULT STDMETHODCALLTYPE RegisterEventNotification( + _In_ IUnknown *dxCoreObject, + DXCoreNotificationType notificationType, + _In_ PFN_DXCORE_NOTIFICATION_CALLBACK callbackFunction, + _In_opt_ void *callbackContext, + _Out_ uint32_t *eventCookie) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnregisterEventNotification( + uint32_t eventCookie) = 0; +}; + +/* interface IDXCoreAdapterFactory1 */ +MIDL_INTERFACE("d5682e19-6d21-401c-827a-9a51a4ea35d7") +IDXCoreAdapterFactory1 : public IDXCoreAdapterFactory +{ +public: + virtual HRESULT STDMETHODCALLTYPE CreateAdapterListByWorkload( + DXCoreWorkload workload, + DXCoreRuntimeFilterFlags runtimeFilter, + DXCoreHardwareTypeFilterFlags hardwareTypeFilter, + REFIID riid, + _COM_Outptr_ void **ppvAdapterList) = 0; + + template + HRESULT STDMETHODCALLTYPE CreateAdapterListByWorkload( + DXCoreWorkload workload, + DXCoreRuntimeFilterFlags runtimeFilter, + DXCoreHardwareTypeFilterFlags hardwareTypeFilter, + _COM_Outptr_ T **ppvAdapterList) + { + return CreateAdapterListByWorkload(workload, + runtimeFilter, + hardwareTypeFilter, + IID_PPV_ARGS(ppvAdapterList)); + } +}; + +#endif // __cplusplus + +#endif // __dxcore_interface_h__ + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxdiag.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxdiag.h new file mode 100644 index 0000000000000000000000000000000000000000..773989f43da7303a36f12decfade30a01ebf1297 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxdiag.h @@ -0,0 +1,196 @@ +/*==========================================================================; + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: dxdiag.h + * Content: DirectX Diagnostic Tool include file + * + ****************************************************************************/ + +#ifndef _DXDIAG_H_ +#define _DXDIAG_H_ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include // for DECLARE_INTERFACE_ and HRESULT + +// This identifier is passed to IDxDiagProvider::Initialize in order to ensure that an +// application was built against the correct header files. This number is +// incremented whenever a header (or other) change would require applications +// to be rebuilt. If the version doesn't match, IDxDiagProvider::Initialize will fail. +// (The number itself has no meaning.) +#define DXDIAG_DX9_SDK_VERSION 111 + +#ifdef __cplusplus +extern "C" { +#endif + + +/**************************************************************************** + * + * DxDiag Errors + * + ****************************************************************************/ +#define DXDIAG_E_INSUFFICIENT_BUFFER ((HRESULT)0x8007007AL) // HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) + + +/**************************************************************************** + * + * DxDiag CLSIDs + * + ****************************************************************************/ + +// {A65B8071-3BFE-4213-9A5B-491DA4461CA7} +DEFINE_GUID(CLSID_DxDiagProvider, +0xA65B8071, 0x3BFE, 0x4213, 0x9A, 0x5B, 0x49, 0x1D, 0xA4, 0x46, 0x1C, 0xA7); + + +/**************************************************************************** + * + * DxDiag Interface IIDs + * + ****************************************************************************/ + +// {9C6B4CB0-23F8-49CC-A3ED-45A55000A6D2} +DEFINE_GUID(IID_IDxDiagProvider, +0x9C6B4CB0, 0x23F8, 0x49CC, 0xA3, 0xED, 0x45, 0xA5, 0x50, 0x00, 0xA6, 0xD2); + +// {0x7D0F462F-0x4064-0x4862-BC7F-933E5058C10F} +DEFINE_GUID(IID_IDxDiagContainer, +0x7D0F462F, 0x4064, 0x4862, 0xBC, 0x7F, 0x93, 0x3E, 0x50, 0x58, 0xC1, 0x0F); + + +/**************************************************************************** + * + * DxDiag Interface Pointer definitions + * + ****************************************************************************/ + +typedef struct IDxDiagProvider *LPDXDIAGPROVIDER, *PDXDIAGPROVIDER; + +typedef struct IDxDiagContainer *LPDXDIAGCONTAINER, *PDXDIAGCONTAINER; + + +/**************************************************************************** + * + * DxDiag Structures + * + ****************************************************************************/ + +typedef struct _DXDIAG_INIT_PARAMS +{ + DWORD dwSize; // Size of this structure. + DWORD dwDxDiagHeaderVersion; // Pass in DXDIAG_DX9_SDK_VERSION. This verifies + // the header and dll are correctly matched. + BOOL bAllowWHQLChecks; // If true, allow dxdiag to check if drivers are + // digital signed as logo'd by WHQL which may + // connect via internet to update WHQL certificates. + VOID* pReserved; // Reserved. Must be NULL. +} DXDIAG_INIT_PARAMS; + + +/**************************************************************************** + * + * DxDiag Application Interfaces + * + ****************************************************************************/ + +// +// COM definition for IDxDiagProvider +// +#undef INTERFACE // External COM Implementation +#define INTERFACE IDxDiagProvider +DECLARE_INTERFACE_(IDxDiagProvider,IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID *ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /*** IDxDiagProvider methods ***/ + STDMETHOD(Initialize) (THIS_ DXDIAG_INIT_PARAMS* pParams) PURE; + STDMETHOD(GetRootContainer) (THIS_ struct IDxDiagContainer **ppInstance) PURE; +}; + + +// +// COM definition for IDxDiagContainer +// +#undef INTERFACE // External COM Implementation +#define INTERFACE IDxDiagContainer +DECLARE_INTERFACE_(IDxDiagContainer,IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID *ppvObj) PURE; + STDMETHOD_(ULONG,AddRef) (THIS) PURE; + STDMETHOD_(ULONG,Release) (THIS) PURE; + + /*** IDxDiagContainer methods ***/ + STDMETHOD(GetNumberOfChildContainers) (THIS_ DWORD *pdwCount) PURE; + STDMETHOD(EnumChildContainerNames) (THIS_ DWORD dwIndex, LPWSTR pwszContainer, DWORD cchContainer) PURE; + STDMETHOD(GetChildContainer) (THIS_ LPCWSTR pwszContainer, IDxDiagContainer **ppInstance) PURE; + STDMETHOD(GetNumberOfProps) (THIS_ DWORD *pdwCount) PURE; + STDMETHOD(EnumPropNames) (THIS_ DWORD dwIndex, LPWSTR pwszPropName, DWORD cchPropName) PURE; + STDMETHOD(GetProp) (THIS_ LPCWSTR pwszPropName, VARIANT *pvarProp) PURE; +}; + + +/**************************************************************************** + * + * DxDiag application interface macros + * + ****************************************************************************/ + +#if !defined(__cplusplus) || defined(CINTERFACE) + +#define IDxDiagProvider_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDxDiagProvider_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDxDiagProvider_Release(p) (p)->lpVtbl->Release(p) +#define IDxDiagProvider_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) +#define IDxDiagProvider_GetRootContainer(p,a) (p)->lpVtbl->GetRootContainer(p,a) + +#define IDxDiagContainer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) +#define IDxDiagContainer_AddRef(p) (p)->lpVtbl->AddRef(p) +#define IDxDiagContainer_Release(p) (p)->lpVtbl->Release(p) +#define IDxDiagContainer_GetNumberOfChildContainers(p,a) (p)->lpVtbl->GetNumberOfChildContainers(p,a) +#define IDxDiagContainer_EnumChildContainerNames(p,a,b,c) (p)->lpVtbl->EnumChildContainerNames(p,a,b,c) +#define IDxDiagContainer_GetChildContainer(p,a,b) (p)->lpVtbl->GetChildContainer(p,a,b) +#define IDxDiagContainer_GetNumberOfProps(p,a) (p)->lpVtbl->GetNumberOfProps(p,a) +#define IDxDiagContainer_EnumProps(p,a,b) (p)->lpVtbl->EnumProps(p,a,b,c) +#define IDxDiagContainer_GetProp(p,a,b) (p)->lpVtbl->GetProp(p,a,b) + +#else /* C++ */ + +#define IDxDiagProvider_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b) +#define IDxDiagProvider_AddRef(p) (p)->AddRef(p) +#define IDxDiagProvider_Release(p) (p)->Release(p) +#define IDxDiagProvider_Initialize(p,a,b) (p)->Initialize(p,a,b) +#define IDxDiagProvider_GetRootContainer(p,a) (p)->GetRootContainer(p,a) + +#define IDxDiagContainer_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b) +#define IDxDiagContainer_AddRef(p) (p)->AddRef(p) +#define IDxDiagContainer_Release(p) (p)->Release(p) +#define IDxDiagContainer_GetNumberOfChildContainers(p,a) (p)->GetNumberOfChildContainers(p,a) +#define IDxDiagContainer_EnumChildContainerNames(p,a,b,c) (p)->EnumChildContainerNames(p,a,b,c) +#define IDxDiagContainer_GetChildContainer(p,a,b) (p)->GetChildContainer(p,a,b) +#define IDxDiagContainer_GetNumberOfProps(p,a) (p)->GetNumberOfProps(p,a) +#define IDxDiagContainer_EnumProps(p,a,b) (p)->EnumProps(p,a,b,c) +#define IDxDiagContainer_GetProp(p,a,b) (p)->GetProp(p,a,b) + +#endif + + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* _DXDIAG_H_ */ + + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxgiddi.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxgiddi.h new file mode 100644 index 0000000000000000000000000000000000000000..bd4d10a0ba3a35fa96724e35ffe652a8ee1ccc84 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxgiddi.h @@ -0,0 +1,1042 @@ +/*==========================================================================; + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * Content: DXGI Basic Device Driver Interface Definitions + * + ***************************************************************************/ + +#ifndef _DXGIDDI_H +#define _DXGIDDI_H +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + +#include "dxgicommon.h" +#include "dxgitype.h" + + +//-------------------------------------------------------------------------------------------------------- +// DXGI error codes +//-------------------------------------------------------------------------------------------------------- +#define _FACDXGI_DDI 0x87b +#define MAKE_DXGI_DDI_HRESULT( code ) MAKE_HRESULT( 1, _FACDXGI_DDI, code ) +#define MAKE_DXGI_DDI_STATUS( code ) MAKE_HRESULT( 0, _FACDXGI_DDI, code ) + +// DXGI DDI error codes have moved to winerror.h + + +//======================================================================================================== +// This is the standard DDI that any DXGI-enabled user-mode driver should support +// + +//-------------------------------------------------------------------------------------------------------- +typedef UINT_PTR DXGI_DDI_HDEVICE; +typedef UINT_PTR DXGI_DDI_HRESOURCE; + +//-------------------------------------------------------------------------------------------------------- +typedef enum DXGI_DDI_RESIDENCY +{ + DXGI_DDI_RESIDENCY_FULLY_RESIDENT = 1, + DXGI_DDI_RESIDENCY_RESIDENT_IN_SHARED_MEMORY = 2, + DXGI_DDI_RESIDENCY_EVICTED_TO_DISK = 3, +} DXGI_DDI_RESIDENCY; + +//-------------------------------------------------------------------------------------------------------- +typedef enum DXGI_DDI_FLIP_INTERVAL_TYPE +{ + DXGI_DDI_FLIP_INTERVAL_IMMEDIATE = 0, + DXGI_DDI_FLIP_INTERVAL_ONE = 1, + DXGI_DDI_FLIP_INTERVAL_TWO = 2, + DXGI_DDI_FLIP_INTERVAL_THREE = 3, + DXGI_DDI_FLIP_INTERVAL_FOUR = 4, + + // For the sync interval override in the present callbacks, IMMEDIATE means the API + // semantic of sync interval 0, where IMMEDIATE_ALLOW_TEARING is equivalent to the addition + // of the ALLOW_TEARING API flags. + DXGI_DDI_FLIP_INTERVAL_IMMEDIATE_ALLOW_TEARING = 5, +} DXGI_DDI_FLIP_INTERVAL_TYPE; + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI_DDI_PRESENT_FLAGS +{ + union + { + struct + { + UINT Blt : 1; // 0x00000001 + UINT Flip : 1; // 0x00000002 + UINT PreferRight : 1; // 0x00000004 + UINT TemporaryMono : 1; // 0x00000008 + UINT AllowTearing : 1; // 0x00000010 + UINT AllowFlexibleRefresh : 1; // 0x00000020 + UINT NoScanoutTransform : 1; // 0x00000040 + UINT Reserved :25; + }; + UINT Value; + }; +} DXGI_DDI_PRESENT_FLAGS; + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI_DDI_ARG_PRESENT +{ + DXGI_DDI_HDEVICE hDevice; //in + DXGI_DDI_HRESOURCE hSurfaceToPresent; //in + UINT SrcSubResourceIndex; // Index of surface level + DXGI_DDI_HRESOURCE hDstResource; // if non-zero, it's the destination of the present + UINT DstSubResourceIndex; // Index of surface level + void * pDXGIContext; // opaque: Pass this to the Present callback + DXGI_DDI_PRESENT_FLAGS Flags; // Presentation flags. + DXGI_DDI_FLIP_INTERVAL_TYPE FlipInterval; // Presentation interval (flip only) +}DXGI_DDI_ARG_PRESENT; + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES +{ + DXGI_DDI_HDEVICE hDevice; //in + CONST DXGI_DDI_HRESOURCE* pResources; //in: Array of Resources to rotate identities; 0 <= 1, 1 <= 2, etc. + UINT Resources; +} DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES; + +typedef struct DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS +{ + DXGI_DDI_HDEVICE hDevice; //in + DXGI_GAMMA_CONTROL_CAPABILITIES * pGammaCapabilities; //in/out +} DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS; + +typedef struct DXGI_DDI_ARG_SET_GAMMA_CONTROL +{ + DXGI_DDI_HDEVICE hDevice; //in + DXGI_GAMMA_CONTROL GammaControl; //in +} DXGI_DDI_ARG_SET_GAMMA_CONTROL; + +typedef struct DXGI_DDI_ARG_SETDISPLAYMODE +{ + DXGI_DDI_HDEVICE hDevice; //in + DXGI_DDI_HRESOURCE hResource; // Source surface + UINT SubResourceIndex; // Index of surface level +} DXGI_DDI_ARG_SETDISPLAYMODE; + +typedef struct DXGI_DDI_ARG_SETRESOURCEPRIORITY +{ + DXGI_DDI_HDEVICE hDevice; //in + DXGI_DDI_HRESOURCE hResource; //in + UINT Priority; //in +} DXGI_DDI_ARG_SETRESOURCEPRIORITY; + +typedef struct DXGI_DDI_ARG_QUERYRESOURCERESIDENCY +{ + DXGI_DDI_HDEVICE hDevice; //in + _Field_size_( Resources ) CONST DXGI_DDI_HRESOURCE * pResources; //in + _Field_size_( Resources ) DXGI_DDI_RESIDENCY * pStatus; //out + SIZE_T Resources; //in +} DXGI_DDI_ARG_QUERYRESOURCERESIDENCY; + +//-------------------------------------------------------------------------------------------------------- +// Remarks: Fractional value used to represent vertical and horizontal frequencies of a video mode +// (i.e. VSync and HSync). Vertical frequencies are stored in Hz. Horizontal frequencies +// are stored in KHz. +// The dynamic range of this encoding format, given 10^-7 resolution is {0..(2^32 - 1) / 10^7}, +// which translates to {0..428.4967296} [Hz] for vertical frequencies and {0..428.4967296} [KHz] +// for horizontal frequencies. This sub-microseconds precision range should be acceptable even +// for a pro-video application (error in one microsecond for video signal synchronization would +// imply a time drift with a cycle of 10^7/(60*60*24) = 115.741 days. +// +// If rational number with a finite fractional sequence, use denominator of form 10^(length of fractional sequence). +// If rational number without a finite fractional sequence, or a sequence exceeding the precision allowed by the +// dynamic range of the denominator, or an irrational number, use an appropriate ratio of integers which best +// represents the value. +// +typedef struct DXGI_DDI_RATIONAL +{ + UINT Numerator; + UINT Denominator; +} DXGI_DDI_RATIONAL; + +//-------------------------------------------------------------------------------------------------------- +typedef enum DXGI_DDI_MODE_SCANLINE_ORDER +{ + DXGI_DDI_MODE_SCANLINE_ORDER_UNSPECIFIED = 0, + DXGI_DDI_MODE_SCANLINE_ORDER_PROGRESSIVE = 1, + DXGI_DDI_MODE_SCANLINE_ORDER_UPPER_FIELD_FIRST = 2, + DXGI_DDI_MODE_SCANLINE_ORDER_LOWER_FIELD_FIRST = 3, +} DXGI_DDI_MODE_SCANLINE_ORDER; + +typedef enum DXGI_DDI_MODE_SCALING +{ + DXGI_DDI_MODE_SCALING_UNSPECIFIED = 0, + DXGI_DDI_MODE_SCALING_STRETCHED = 1, + DXGI_DDI_MODE_SCALING_CENTERED = 2, +} DXGI_DDI_MODE_SCALING; + +typedef enum DXGI_DDI_MODE_ROTATION +{ + DXGI_DDI_MODE_ROTATION_UNSPECIFIED = 0, + DXGI_DDI_MODE_ROTATION_IDENTITY = 1, + DXGI_DDI_MODE_ROTATION_ROTATE90 = 2, + DXGI_DDI_MODE_ROTATION_ROTATE180 = 3, + DXGI_DDI_MODE_ROTATION_ROTATE270 = 4, +} DXGI_DDI_MODE_ROTATION; + +typedef struct DXGI_DDI_MODE_DESC +{ + UINT Width; + UINT Height; + DXGI_FORMAT Format; + DXGI_DDI_RATIONAL RefreshRate; + DXGI_DDI_MODE_SCANLINE_ORDER ScanlineOrdering; + DXGI_DDI_MODE_ROTATION Rotation; + DXGI_DDI_MODE_SCALING Scaling; +} DXGI_DDI_MODE_DESC; + +// Bit indicates that UMD has the option to prevent this Resource from ever being a Primary +// UMD can prevent the actual flip (from optional primary to regular primary) and use a copy +// operation, during Present. Thus, it's possible the UMD can opt out of this Resource being +// actually used as a primary. +#define DXGI_DDI_PRIMARY_OPTIONAL 0x1 + +// Bit indicates that the Primary really represents the IDENTITY rotation, eventhough it will +// be used with non-IDENTITY display modes, since the application will take on the burden of +// honoring the output orientation by rotating, say the viewport and projection matrix. +#define DXGI_DDI_PRIMARY_NONPREROTATED 0x2 + + +// Bit indicates that the primary is stereoscopic. +#define DXGI_DDI_PRIMARY_STEREO 0x4 + +// Bit indicates that this primary will be used for indirect presentation +#define DXGI_DDI_PRIMARY_INDIRECT 0x8 + + +// Bit indicates that the driver cannot tolerate setting any subresource of the specified +// resource as a primary. The UMD should set this bit at resource creation time if it +// chooses to implement presentation from this surface via a copy operation. The DXGI +// runtime will not employ flip-style presentation if this bit is set +#define DXGI_DDI_PRIMARY_DRIVER_FLAG_NO_SCANOUT 0x1 + +typedef struct DXGI_DDI_PRIMARY_DESC +{ + UINT Flags; // [in] + D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId; // [in] + DXGI_DDI_MODE_DESC ModeDesc; // [in] + UINT DriverFlags; // [out] Filled by the driver +} DXGI_DDI_PRIMARY_DESC; + +typedef struct DXGI_DDI_ARG_BLT_FLAGS +{ + union + { + struct + { + UINT Resolve : 1; // 0x00000001 + UINT Convert : 1; // 0x00000002 + UINT Stretch : 1; // 0x00000004 + UINT Present : 1; // 0x00000008 + UINT Reserved :28; + }; + UINT Value; + }; +} DXGI_DDI_ARG_BLT_FLAGS; + +typedef struct DXGI_DDI_ARG_BLT +{ + DXGI_DDI_HDEVICE hDevice; //in + DXGI_DDI_HRESOURCE hDstResource; //in + UINT DstSubresource; //in + UINT DstLeft; //in + UINT DstTop; //in + UINT DstRight; //in + UINT DstBottom; //in + DXGI_DDI_HRESOURCE hSrcResource; //in + UINT SrcSubresource; //in + DXGI_DDI_ARG_BLT_FLAGS Flags; //in + DXGI_DDI_MODE_ROTATION Rotate; //in +} DXGI_DDI_ARG_BLT; + +typedef struct DXGI_DDI_ARG_RESOLVESHAREDRESOURCE +{ + DXGI_DDI_HDEVICE hDevice; //in + DXGI_DDI_HRESOURCE hResource; //in +} DXGI_DDI_ARG_RESOLVESHAREDRESOURCE; + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8) +typedef struct DXGI_DDI_ARG_BLT1 +{ + DXGI_DDI_HDEVICE hDevice; //in + DXGI_DDI_HRESOURCE hDstResource; //in + UINT DstSubresource; //in + UINT DstLeft; //in + UINT DstTop; //in + UINT DstRight; //in + UINT DstBottom; //in + DXGI_DDI_HRESOURCE hSrcResource; //in + UINT SrcSubresource; //in + UINT SrcLeft; //in + UINT SrcTop; //in + UINT SrcRight; //in + UINT SrcBottom; //in + DXGI_DDI_ARG_BLT_FLAGS Flags; //in + DXGI_DDI_MODE_ROTATION Rotate; //in +} DXGI_DDI_ARG_BLT1; + +typedef struct _DXGI_DDI_ARG_OFFERRESOURCES { + DXGI_DDI_HDEVICE hDevice; //in: device that created the resources + const DXGI_DDI_HRESOURCE* pResources; //in: array of resources to reset + UINT Resources; //in: number of elements in pResources + D3DDDI_OFFER_PRIORITY Priority; //in: priority with which to reset the resources +} DXGI_DDI_ARG_OFFERRESOURCES; + +typedef struct _DXGI_DDI_ARG_RECLAIMRESOURCES { + DXGI_DDI_HDEVICE hDevice; //in: device that created the resources + const DXGI_DDI_HRESOURCE *pResources; //in: array of resources to reset + BOOL *pDiscarded; //out: optional array of booleans specifying whether each resource was discarded + UINT Resources; //in: number of elements in pResources and pDiscarded +} DXGI_DDI_ARG_RECLAIMRESOURCES; + +//----------------------------------------------------------------------------------------------------------- +// Multi Plane Overlay DDI +// + +#define DXGI_DDI_MAX_MULTIPLANE_OVERLAY_ALLOCATIONS 16 + +typedef struct DXGI_DDI_MULTIPLANE_OVERLAY_CAPS +{ + UINT MaxPlanes; // Total number of planes supported (including the DWM's primary) + UINT NumCapabilityGroups; // Number of plane types supported. +} DXGI_DDI_MULTIPLANE_OVERLAY_CAPS; + + +typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS +{ + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_ROTATION_WITHOUT_INDEPENDENT_FLIP = 0x1, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_VERTICAL_FLIP = 0x2, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_HORIZONTAL_FLIP = 0x4, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_DEINTERLACE = 0x8, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_STEREO = 0x10, // D3D10 or above only. + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_RGB = 0x20, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_YUV = 0x40, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_BILINEAR_FILTER = 0x80, // Can do bilinear stretching + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_HIGH_FILTER = 0x100, // Can do better than bilinear stretching + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_ROTATION = 0x200, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_FULLSCREEN_POST_COMPOSITION = 0x400, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_RESERVED1 = 0x800, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_SHARED = 0x1000, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_IMMEDIATE = 0x2000, + DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_PLANE0_FOR_VIRTUAL_MODE_ONLY = 0x4000, +} DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS; + +typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS +{ + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS_SEPARATE = 0x1, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS_ROW_INTERLEAVED = 0x4, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS_COLUMN_INTERLEAVED = 0x8, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS_CHECKERBOARD = 0x10, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS_FLIP_MODE = 0x20, +} DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS; + +typedef struct DXGI_DDI_MULTIPLANE_OVERLAY_GROUP_CAPS +{ + UINT NumPlanes; + float MaxStretchFactor; + float MaxShrinkFactor; + UINT OverlayCaps; // DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS + UINT StereoCaps; // DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS +} DXGI_DDI_MULTIPLANE_OVERLAY_GROUP_CAPS; + +typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_FLAGS +{ + DXGI_DDI_MULTIPLANE_OVERLAY_FLAG_VERTICAL_FLIP = 0x1, + DXGI_DDI_MULTIPLANE_OVERLAY_FLAG_HORIZONTAL_FLIP = 0x2, + DXGI_DDI_MULTIPLANE_OVERLAY_FLAG_FULLSCREEN_POST_COMPOSITION = 0x4, + DXGI_DDI_MULTIPLANE_OVERLAY_FLAG_NO_SCANOUT_TRANFORMATION = 0x8, + DXGI_DDI_MULTIPLANE_OVERLAY_FLAG_NO_RENDER_PRESENT = 0x10, +} DXGI_DDI_MULTIPLANE_OVERLAY_FLAGS; + +typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_BLEND +{ + DXGI_DDI_MULTIPLANE_OVERLAY_BLEND_OPAQUE = 0x0, + DXGI_DDI_MULTIPLANE_OVERLAY_BLEND_ALPHABLEND = 0x1, +} DXGI_DDI_MULTIPLANE_OVERLAY_BLEND; + +typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_VIDEO_FRAME_FORMAT +{ + DXGI_DDI_MULIIPLANE_OVERLAY_VIDEO_FRAME_FORMAT_PROGRESSIVE = 0, + DXGI_DDI_MULTIPLANE_OVERLAY_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1, + DXGI_DDI_MULTIPLANE_OVERLAY_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2 +} DXGI_DDI_MULTIPLANE_OVERLAY_VIDEO_FRAME_FORMAT; + +typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_YCbCr_FLAGS +{ + DXGI_DDI_MULTIPLANE_OVERLAY_YCbCr_FLAG_NOMINAL_RANGE = 0x1, // 16 - 235 vs. 0 - 255 + DXGI_DDI_MULTIPLANE_OVERLAY_YCbCr_FLAG_BT709 = 0x2, // BT.709 vs. BT.601 + DXGI_DDI_MULTIPLANE_OVERLAY_YCbCr_FLAG_xvYCC = 0x4, // xvYCC vs. conventional YCbCr +} DXGI_DDI_MULTIPLANE_OVERLAY_YCbCr_FLAGS; + +typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT +{ + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_MONO = 0, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_HORIZONTAL = 1, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_VERTICAL = 2, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_SEPARATE = 3, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_MONO_OFFSET = 4, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_ROW_INTERLEAVED = 5, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_COLUMN_INTERLEAVED = 6, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_CHECKERBOARD = 7 +} DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT; + +typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_MODE +{ + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_NONE = 0, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_FRAME0 = 1, + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_FRAME1 = 2, +} DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_MODE; + +typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_STRETCH_QUALITY +{ + DXGI_DDI_MULTIPLANE_OVERLAY_STRETCH_QUALITY_BILINEAR = 0x1, // Bilinear + DXGI_DDI_MULTIPLANE_OVERLAY_STRETCH_QUALITY_HIGH = 0x2, // Maximum +} DXGI_DDI_MULTIPLANE_OVERLAY_STRETCH_QUALITY; + +typedef struct DXGI_DDI_MULTIPLANE_OVERLAY_ATTRIBUTES +{ + UINT Flags; // DXGI_DDI_MULTIPLANE_OVERLAY_FLAGS + RECT SrcRect; + RECT DstRect; +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // M1 + RECT ClipRect; +#endif + DXGI_DDI_MODE_ROTATION Rotation; + DXGI_DDI_MULTIPLANE_OVERLAY_BLEND Blend; +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // MP + UINT DirtyRectCount; + RECT* pDirtyRects; +#else + UINT NumFilters; + void* pFilters; +#endif + DXGI_DDI_MULTIPLANE_OVERLAY_VIDEO_FRAME_FORMAT VideoFrameFormat; + UINT YCbCrFlags; // DXGI_DDI_MULTIPLANE_OVERLAY_YCbCr_FLAGS + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT StereoFormat; + BOOL StereoLeftViewFrame0; + BOOL StereoBaseViewFrame0; + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_MODE StereoFlipMode; +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // M1 + DXGI_DDI_MULTIPLANE_OVERLAY_STRETCH_QUALITY StretchQuality; +#endif +} DXGI_DDI_MULTIPLANE_OVERLAY_ATTRIBUTES; + + +typedef struct _DXGI_DDI_ARG_GETMULTIPLANEOVERLAYCAPS +{ + DXGI_DDI_HDEVICE hDevice; + D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId; + DXGI_DDI_MULTIPLANE_OVERLAY_CAPS MultiplaneOverlayCaps; +} DXGI_DDI_ARG_GETMULTIPLANEOVERLAYCAPS; + +typedef struct _DXGI_DDI_ARG_GETMULTIPLANEOVERLAYGROUPCAPS +{ + DXGI_DDI_HDEVICE hDevice; + D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId; + UINT GroupIndex; + DXGI_DDI_MULTIPLANE_OVERLAY_GROUP_CAPS MultiplaneOverlayGroupCaps; +} DXGI_DDI_ARG_GETMULTIPLANEOVERLAYGROUPCAPS; + +typedef struct DXGI_DDI_CHECK_MULTIPLANEOVERLAYSUPPORT_PLANE_INFO +{ + DXGI_DDI_HRESOURCE hResource; + UINT SubResourceIndex; + DXGI_DDI_MULTIPLANE_OVERLAY_ATTRIBUTES PlaneAttributes; +} DXGI_DDI_CHECK_MULTIPLANE_OVERLAY_SUPPORT_PLANE_INFO; + +typedef struct _DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYSUPPORT +{ + DXGI_DDI_HDEVICE hDevice; + D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId; + UINT NumPlaneInfo; + DXGI_DDI_CHECK_MULTIPLANE_OVERLAY_SUPPORT_PLANE_INFO* pPlaneInfo; + BOOL Supported; // out: driver to fill TRUE/FALSE +} DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYSUPPORT; + +typedef struct _DXGI_DDI_PRESENT_MULTIPLANE_OVERLAY +{ + UINT LayerIndex; + BOOL Enabled; + DXGI_DDI_HRESOURCE hResource; + UINT SubResourceIndex; + DXGI_DDI_MULTIPLANE_OVERLAY_ATTRIBUTES PlaneAttributes; +} DXGI_DDI_PRESENT_MULTIPLANE_OVERLAY; + +typedef struct _DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY +{ + DXGI_DDI_HDEVICE hDevice; + void * pDXGIContext; + + D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId; + DXGI_DDI_PRESENT_FLAGS Flags; + DXGI_DDI_FLIP_INTERVAL_TYPE FlipInterval; + + UINT PresentPlaneCount; + DXGI_DDI_PRESENT_MULTIPLANE_OVERLAY* pPresentPlanes; +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // M1 + UINT Reserved; +#endif +} DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY; + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // M1 + +typedef struct _DXGI_DDI_ARG_CHECKPRESENTDURATIONSUPPORT +{ + DXGI_DDI_HDEVICE hDevice; + D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId; + UINT DesiredPresentDuration; + UINT ClosestSmallerDuration; // out + UINT ClosestLargerDuration; //out +} DXGI_DDI_ARG_CHECKPRESENTDURATIONSUPPORT; + +typedef struct DXGI_DDI_ARG_PRESENTSURFACE +{ + DXGI_DDI_HRESOURCE hSurface; // In + UINT SubResourceIndex; // Index of surface level +} DXGI_DDI_ARG_PRESENTSURFACE; + +typedef struct DXGI_DDI_ARG_PRESENT1 +{ + DXGI_DDI_HDEVICE hDevice; //in + CONST DXGI_DDI_ARG_PRESENTSURFACE* phSurfacesToPresent; //in + UINT SurfacesToPresent; //in + DXGI_DDI_HRESOURCE hDstResource; // if non-zero, it's the destination of the present + UINT DstSubResourceIndex; // Index of surface level + void * pDXGIContext; // opaque: Pass this to the Present callback + DXGI_DDI_PRESENT_FLAGS Flags; // Presentation flags. + DXGI_DDI_FLIP_INTERVAL_TYPE FlipInterval; // Presentation interval (flip only) + UINT Reserved; + CONST RECT* pDirtyRects; // in: Array of dirty rects + UINT DirtyRects; // in: Number of dirty rects + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_0) + // out: for LDA only. + // Only WDDM2.0 drivers should write this value + // The number of physical back buffer per logical back buffer. + UINT BackBufferMultiplicity; +#endif + +} DXGI_DDI_ARG_PRESENT1; + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // M1 + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_0) + +typedef struct _DXGI_DDI_ARG_TRIMRESIDENCYSET +{ + DXGI_DDI_HDEVICE hDevice; + D3DDDI_TRIMRESIDENCYSET_FLAGS TrimFlags; + UINT64 NumBytesToTrim; +} DXGI_DDI_ARG_TRIMRESIDENCYSET; + +typedef struct _DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYCOLORSPACESUPPORT +{ + DXGI_DDI_HDEVICE hDevice; + D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId; + DXGI_FORMAT Format; + D3DDDI_COLOR_SPACE_TYPE ColorSpace; + BOOL Supported; // out +} DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYCOLORSPACESUPPORT; + +typedef struct DXGI_DDI_MULTIPLANE_OVERLAY_ATTRIBUTES1 +{ + UINT Flags; // DXGI_DDI_MULTIPLANE_OVERLAY_FLAGS + RECT SrcRect; + RECT DstRect; + RECT ClipRect; + DXGI_DDI_MODE_ROTATION Rotation; + DXGI_DDI_MULTIPLANE_OVERLAY_BLEND Blend; + UINT DirtyRectCount; + RECT* pDirtyRects; + DXGI_DDI_MULTIPLANE_OVERLAY_VIDEO_FRAME_FORMAT VideoFrameFormat; + D3DDDI_COLOR_SPACE_TYPE ColorSpace; + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT StereoFormat; + BOOL StereoLeftViewFrame0; + BOOL StereoBaseViewFrame0; + DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_MODE StereoFlipMode; + DXGI_DDI_MULTIPLANE_OVERLAY_STRETCH_QUALITY StretchQuality; + UINT ColorKey; +} DXGI_DDI_MULTIPLANE_OVERLAY_ATTRIBUTES1; + +typedef struct _DXGI_DDI_PRESENT_MULTIPLANE_OVERLAY1 +{ + UINT LayerIndex; + BOOL Enabled; + DXGI_DDI_HRESOURCE hResource; + UINT SubResourceIndex; + DXGI_DDI_MULTIPLANE_OVERLAY_ATTRIBUTES1 PlaneAttributes; +} DXGI_DDI_PRESENT_MULTIPLANE_OVERLAY1; + +typedef struct _DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY1 +{ + DXGI_DDI_HDEVICE hDevice; + void * pDXGIContext; + + D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId; + DXGI_DDI_PRESENT_FLAGS Flags; + DXGI_DDI_FLIP_INTERVAL_TYPE FlipInterval; + + UINT PresentPlaneCount; + DXGI_DDI_PRESENT_MULTIPLANE_OVERLAY1* pPresentPlanes; +} DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY1; + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_0) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_1_1) + +typedef struct _DXGI_DDI_ARG_OFFERRESOURCES1 +{ + _In_ DXGI_DDI_HDEVICE hDevice; //in: device that created the resources + _In_reads_(Resources) const DXGI_DDI_HRESOURCE* pResources; //in: array of resources to reset + _In_ UINT Resources; //in: number of elements in pResources + _In_ D3DDDI_OFFER_PRIORITY Priority; //in: priority with which to reset the resources + _In_ D3DDDI_OFFER_FLAGS Flags; //in: flags specifying additional behaviors on offer +} DXGI_DDI_ARG_OFFERRESOURCES1; + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_1_1) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_1_2) + +typedef struct _DXGI_DDI_ARG_RECLAIMRESOURCES1 +{ + DXGI_DDI_HDEVICE hDevice; //in: device that created the resources + const DXGI_DDI_HRESOURCE *pResources; //in: array of resources to reset + D3DDDI_RECLAIM_RESULT *pResults; //out: array of results specifying whether each resource was + // successfully reclaimed, discarded, or has no commitment + UINT Resources; //in: number of elements in pResources and pDiscarded +} DXGI_DDI_ARG_RECLAIMRESOURCES1; + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_1_2) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2) + +typedef struct DXGI1_6_1_DDI_ARG_PRESENT +{ + DXGI_DDI_HDEVICE hDevice; //in + CONST DXGI_DDI_ARG_PRESENTSURFACE* phSurfacesToPresent; //in + UINT SurfacesToPresent; //in + DXGI_DDI_HRESOURCE hDstResource; // if non-zero, it's the destination of the present + UINT DstSubResourceIndex; // Index of surface level + void * pDXGIContext; // opaque: Pass this to the Present callback + DXGI_DDI_PRESENT_FLAGS Flags; // Presentation flags. + DXGI_DDI_FLIP_INTERVAL_TYPE FlipInterval; // Presentation interval (flip only) + DXGI_DDI_MODE_ROTATION RotationHint; // in: Hint that the contents of the frame are rotated with respect to scanout. + CONST RECT* pDirtyRects; // in: Array of dirty rects + UINT DirtyRects; // in: Number of dirty rects + + // out: for LDA only. + // The number of physical back buffer per logical back buffer. + UINT BackBufferMultiplicity; +} DXGI1_6_1_DDI_ARG_PRESENT; + +typedef struct DXGI1_6_1_DDI_ARG_PRESENTMULTIPLANEOVERLAY +{ + DXGI_DDI_HDEVICE hDevice; + void * pDXGIContext; + + D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId; + DXGI_DDI_PRESENT_FLAGS Flags; + DXGI_DDI_FLIP_INTERVAL_TYPE FlipInterval; + + UINT PresentPlaneCount; + DXGI_DDI_PRESENT_MULTIPLANE_OVERLAY1* pPresentPlanes; + DXGI_DDI_MODE_ROTATION* pRotationHints; +} DXGI1_6_1_DDI_ARG_PRESENTMULTIPLANEOVERLAY; + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2) + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI_DDI_BASE_FUNCTIONS +{ + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*); +}DXGI_DDI_BASE_FUNCTIONS; + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI1_1_DDI_BASE_FUNCTIONS +{ + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnResolveSharedResource ) (DXGI_DDI_ARG_RESOLVESHAREDRESOURCE*); +}DXGI1_1_DDI_BASE_FUNCTIONS; + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8) + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI1_2_DDI_BASE_FUNCTIONS +{ + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnResolveSharedResource ) (DXGI_DDI_ARG_RESOLVESHAREDRESOURCE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt1 ) (DXGI_DDI_ARG_BLT1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnOfferResources ) (DXGI_DDI_ARG_OFFERRESOURCES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReclaimResources ) (DXGI_DDI_ARG_RECLAIMRESOURCES*); + // Use IS_DXGI_MULTIPLANE_OVERLAY_FUNCTIONS macro to determine these functions fields are available + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYCAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayFilterRange ) (void*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckMultiplaneOverlaySupport ) (DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYSUPPORT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay ) (DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY*); +}DXGI1_2_DDI_BASE_FUNCTIONS; + +#endif + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // M1 + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI1_3_DDI_BASE_FUNCTIONS +{ + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnResolveSharedResource ) (DXGI_DDI_ARG_RESOLVESHAREDRESOURCE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt1 ) (DXGI_DDI_ARG_BLT1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnOfferResources ) (DXGI_DDI_ARG_OFFERRESOURCES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReclaimResources ) (DXGI_DDI_ARG_RECLAIMRESOURCES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYCAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayGroupCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYGROUPCAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved1 ) (void*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay ) (DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved2 ) (void*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent1 ) (DXGI_DDI_ARG_PRESENT1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckPresentDurationSupport ) (DXGI_DDI_ARG_CHECKPRESENTDURATIONSUPPORT*); +}DXGI1_3_DDI_BASE_FUNCTIONS; + +#endif + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_0) + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI1_4_DDI_BASE_FUNCTIONS +{ + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnResolveSharedResource ) (DXGI_DDI_ARG_RESOLVESHAREDRESOURCE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt1 ) (DXGI_DDI_ARG_BLT1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnOfferResources ) (DXGI_DDI_ARG_OFFERRESOURCES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReclaimResources ) (DXGI_DDI_ARG_RECLAIMRESOURCES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYCAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayGroupCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYGROUPCAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved1 ) (void*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay ) (DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved2 ) (void*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent1 ) (DXGI_DDI_ARG_PRESENT1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckPresentDurationSupport ) (DXGI_DDI_ARG_CHECKPRESENTDURATIONSUPPORT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnTrimResidencySet ) (DXGI_DDI_ARG_TRIMRESIDENCYSET*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckMultiplaneOverlayColorSpaceSupport ) (DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYCOLORSPACESUPPORT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay1 ) (DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY1*); +}DXGI1_4_DDI_BASE_FUNCTIONS; + +#endif + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_1_1) + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI1_5_DDI_BASE_FUNCTIONS +{ + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnResolveSharedResource ) (DXGI_DDI_ARG_RESOLVESHAREDRESOURCE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt1 ) (DXGI_DDI_ARG_BLT1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnOfferResources1 ) (DXGI_DDI_ARG_OFFERRESOURCES1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReclaimResources ) (DXGI_DDI_ARG_RECLAIMRESOURCES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYCAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayGroupCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYGROUPCAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved1 ) (void*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay ) (DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved2 ) (void*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent1 ) (DXGI_DDI_ARG_PRESENT1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckPresentDurationSupport ) (DXGI_DDI_ARG_CHECKPRESENTDURATIONSUPPORT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnTrimResidencySet ) (DXGI_DDI_ARG_TRIMRESIDENCYSET*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckMultiplaneOverlayColorSpaceSupport ) (DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYCOLORSPACESUPPORT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay1 ) (DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReclaimResources1 ) (DXGI_DDI_ARG_RECLAIMRESOURCES1*); +}DXGI1_5_DDI_BASE_FUNCTIONS; + +#endif + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2) + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI1_6_1_DDI_BASE_FUNCTIONS +{ + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnResolveSharedResource ) (DXGI_DDI_ARG_RESOLVESHAREDRESOURCE*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt1 ) (DXGI_DDI_ARG_BLT1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnOfferResources1 ) (DXGI_DDI_ARG_OFFERRESOURCES1*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReclaimResources ) (DXGI_DDI_ARG_RECLAIMRESOURCES*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYCAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayGroupCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYGROUPCAPS*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved1 ) (void*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay ) (DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved2 ) (void*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent1 ) (DXGI1_6_1_DDI_ARG_PRESENT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckPresentDurationSupport ) (DXGI_DDI_ARG_CHECKPRESENTDURATIONSUPPORT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnTrimResidencySet ) (DXGI_DDI_ARG_TRIMRESIDENCYSET*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckMultiplaneOverlayColorSpaceSupport ) (DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYCOLORSPACESUPPORT*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay1 ) (DXGI1_6_1_DDI_ARG_PRESENTMULTIPLANEOVERLAY*); + HRESULT ( __stdcall /*APIENTRY*/ * pfnReclaimResources1 ) (DXGI_DDI_ARG_RECLAIMRESOURCES1*); +}DXGI1_6_1_DDI_BASE_FUNCTIONS; + +#endif + + +//======================================================================================================== +// DXGI callback definitions. +// + + +//-------------------------------------------------------------------------------------------------------- + +typedef struct DXGIDDICB_PRESENT +{ + D3DKMT_HANDLE hSrcAllocation; // in: The allocation of which content will be presented + D3DKMT_HANDLE hDstAllocation; // in: if non-zero, it's the destination allocation of the present + void * pDXGIContext; // opaque: Fill this with the value in DXGI_DDI_ARG_PRESENT.pDXGIContext + HANDLE hContext; // in: Context being submitted to. + UINT BroadcastContextCount; // in: Specifies the number of context + // to broadcast this present operation to. + // Only supported for flip operation. + HANDLE BroadcastContext[D3DDDI_MAX_BROADCAST_CONTEXT]; // in: Specifies the handle of the context to + // broadcast to. +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_0) + _Field_size_(BroadcastContextCount) + D3DKMT_HANDLE* BroadcastSrcAllocation; // in: LDA + _Field_size_opt_(BroadcastContextCount) + D3DKMT_HANDLE* BroadcastDstAllocation; // in: LDA + UINT PrivateDriverDataSize; // in: + _Field_size_bytes_(PrivateDriverDataSize) + PVOID pPrivateDriverData; // in: Private driver data to pass to DdiPresent and DdiSetVidPnSourceAddress + BOOLEAN bOptimizeForComposition; // out: DWM is involved in composition +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_0) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2) + BOOL SyncIntervalOverrideValid; + DXGI_DDI_FLIP_INTERVAL_TYPE SyncIntervalOverride; +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2) +} DXGIDDICB_PRESENT; + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8) +typedef struct DXGIDDI_MULTIPLANE_OVERLAY_ALLOCATION_INFO +{ + D3DKMT_HANDLE PresentAllocation; + UINT SubResourceIndex; +} DXGIDDI_MULTIPLANE_OVERLAY_ALLOCATION_INFO; + +typedef struct DXGIDDICB_PRESENT_MULTIPLANE_OVERLAY +{ + void * pDXGIContext; // opaque: Fill this with the value in DXGI_DDI_ARG_PRESENT.pDXGIContext + HANDLE hContext; + + UINT BroadcastContextCount; + HANDLE BroadcastContext[D3DDDI_MAX_BROADCAST_CONTEXT]; + + DWORD AllocationInfoCount; + DXGIDDI_MULTIPLANE_OVERLAY_ALLOCATION_INFO AllocationInfo[DXGI_DDI_MAX_MULTIPLANE_OVERLAY_ALLOCATIONS]; +} DXGIDDICB_PRESENT_MULTIPLANE_OVERLAY; +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_1) +typedef struct DXGIDDI_MULTIPLANE_OVERLAY_PLANE_INFO +{ + UINT ContextCount; + _Field_size_(ContextCount) + HANDLE* pContextList; + _Field_size_(ContextCount) + D3DKMT_HANDLE* pAllocationList; + + UINT DriverPrivateDataSize; + _Field_size_bytes_(DriverPrivateDataSize) + VOID* pDriverPrivateData; + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2) + BOOL SyncIntervalOverrideValid; + DXGI_DDI_FLIP_INTERVAL_TYPE SyncIntervalOverride; +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2) +} DXGIDDI_MULTIPLANE_OVERLAY_PLANE_INFO; + +typedef struct DXGIDDICB_PRESENT_MULTIPLANE_OVERLAY1 +{ + void * pDXGIContext; // opaque: Fill this with the value in DXGI_DDI_ARG_PRESENT.pDXGIContext + DWORD PresentPlaneCount; + _Field_size_(PresentPlaneCount) + DXGIDDI_MULTIPLANE_OVERLAY_PLANE_INFO** ppPresentPlanes; +} DXGIDDICB_PRESENT_MULTIPLANE_OVERLAY1; +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_1) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_4_2) + +typedef struct DXGIDDICB_SUBMITPRESENTBLTTOHWQUEUE +{ + D3DKMT_HANDLE hSrcAllocation; // in: The allocation of which content will be presented + D3DKMT_HANDLE hDstAllocation; // in: The destination allocation of the present + void * pDXGIContext; // opaque: Fill this with the value in DXGI_DDI_ARG_PRESENT.pDXGIContext + HANDLE hHwQueue; // in: Hardware queue being submitted to. + UINT64 HwQueueProgressFenceId; // Hardware queue progress fence ID that will be signaled when the Present Blt is done on the GPU + + UINT PrivateDriverDataSize; + _Field_size_bytes_(PrivateDriverDataSize) + PVOID pPrivateDriverData; // in: Private driver data to pass to DdiPresent +} DXGIDDICB_SUBMITPRESENTBLTTOHWQUEUE; + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_4_2) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_5_2) + +typedef struct DXGIDDICB_SUBMITPRESENTTOHWQUEUE +{ + void * pDXGIContext; // opaque: Fill this with the value in DXGI_DDI_ARG_PRESENT.pDXGIContext + _Field_size_(BroadcastHwQueueCount) + D3DKMT_HANDLE* BroadcastSrcAllocations; // in: allocations which content will be presented + _Field_size_opt_(BroadcastHwQueueCount) + D3DKMT_HANDLE* BroadcastDstAllocations; // in: if non-zero, it's the destination allocations of the present + HANDLE* hHwQueues; // in: hardware queues being submitted to. + UINT BroadcastHwQueueCount; // in: the number of broadcast hardware queues + UINT PrivateDriverDataSize; // in: private driver data size in bytes + _Field_size_bytes_(PrivateDriverDataSize) + PVOID pPrivateDriverData; // in: private driver data to pass to DdiPresent + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_6_2) + + BOOLEAN bOptimizeForComposition; // out: DWM is involved in composition + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_6_2) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_6_3) + + BOOL SyncIntervalOverrideValid; + DXGI_DDI_FLIP_INTERVAL_TYPE SyncIntervalOverride; + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_6_3) + +} DXGIDDICB_SUBMITPRESENTTOHWQUEUE; + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_5_2) + + + +typedef _Check_return_ HRESULT (APIENTRY CALLBACK *PFNDDXGIDDI_PRESENTCB)( + _In_ HANDLE hDevice, _In_ DXGIDDICB_PRESENT*); + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8) +typedef _Check_return_ HRESULT (APIENTRY CALLBACK *PFNDDXGIDDI_PRESENT_MULTIPLANE_OVERLAYCB)( + _In_ HANDLE hDevice, _In_ CONST DXGIDDICB_PRESENT_MULTIPLANE_OVERLAY*); +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_1) +typedef _Check_return_ HRESULT (APIENTRY CALLBACK *PFNDDXGIDDI_PRESENT_MULTIPLANE_OVERLAY1CB)( + _In_ HANDLE hDevice, _In_ CONST DXGIDDICB_PRESENT_MULTIPLANE_OVERLAY1*); +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_1) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_4_2) + +typedef _Check_return_ HRESULT (APIENTRY CALLBACK *PFNDDXGIDDI_SUBMITPRESENTBLTTOHWQUEUECB)( + _In_ HANDLE hDevice, _In_ DXGIDDICB_SUBMITPRESENTBLTTOHWQUEUE*); + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_4_2) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_5_2) + +typedef _Check_return_ HRESULT (APIENTRY CALLBACK *PFNDDXGIDDI_SUBMITPRESENTTOHWQUEUECB)( + _In_ HANDLE hDevice, _In_ DXGIDDICB_SUBMITPRESENTTOHWQUEUE*); + +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_5_2) + +//-------------------------------------------------------------------------------------------------------- +typedef struct DXGI_DDI_BASE_CALLBACKS +{ + PFNDDXGIDDI_PRESENTCB pfnPresentCb; +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8) + // Use IS_DXGI_MULTIPLANE_OVERLAY_FUNCTIONS macro to check if field is available. + PFNDDXGIDDI_PRESENT_MULTIPLANE_OVERLAYCB pfnPresentMultiplaneOverlayCb; +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8) +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_1) + // Use IS_DXGI1_6_BASE_FUNCTIONS macro to check if field is available. + PFNDDXGIDDI_PRESENT_MULTIPLANE_OVERLAY1CB pfnPresentMultiplaneOverlay1Cb; +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_1) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_4_2) + PFNDDXGIDDI_SUBMITPRESENTBLTTOHWQUEUECB pfnSubmitPresentBltToHwQueueCb; +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_4_2) + +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_5_2) + PFNDDXGIDDI_SUBMITPRESENTTOHWQUEUECB pfnSubmitPresentToHwQueueCb; +#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_5_2) +} DXGI_DDI_BASE_CALLBACKS; + +//======================================================================================================== +// DXGI basic DDI device creation arguments + +typedef struct DXGI_DDI_BASE_ARGS +{ + DXGI_DDI_BASE_CALLBACKS *pDXGIBaseCallbacks; // in: The driver should record this pointer for later use + union + { +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2) + DXGI1_6_1_DDI_BASE_FUNCTIONS *pDXGIDDIBaseFunctions6_1; // in/out: The driver should fill the denoted struct with DXGI base driver entry points +#endif +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_1_1) + DXGI1_5_DDI_BASE_FUNCTIONS *pDXGIDDIBaseFunctions6; // in/out: The driver should fill the denoted struct with DXGI base driver entry points +#endif +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_0) + DXGI1_4_DDI_BASE_FUNCTIONS *pDXGIDDIBaseFunctions5; // in/out: The driver should fill the denoted struct with DXGI base driver entry points +#endif +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // M1 + DXGI1_3_DDI_BASE_FUNCTIONS *pDXGIDDIBaseFunctions4; // in/out: The driver should fill the denoted struct with DXGI base driver entry points +#endif +#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8) + DXGI1_2_DDI_BASE_FUNCTIONS *pDXGIDDIBaseFunctions3; // in/out: The driver should fill the denoted struct with DXGI base driver entry points +#endif + DXGI1_1_DDI_BASE_FUNCTIONS *pDXGIDDIBaseFunctions2; // in/out: The driver should fill the denoted struct with DXGI base driver entry points + DXGI_DDI_BASE_FUNCTIONS *pDXGIDDIBaseFunctions; // in/out: The driver should fill the denoted struct with DXGI base driver entry points + }; +} DXGI_DDI_BASE_ARGS; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* _DXGIDDI_H */ + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxgidebug.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxgidebug.h new file mode 100644 index 0000000000000000000000000000000000000000..1ea27535b9f29020334c8d15300187583d4b079a --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxgidebug.h @@ -0,0 +1,1054 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __dxgidebug_h__ +#define __dxgidebug_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDXGIInfoQueue_FWD_DEFINED__ +#define __IDXGIInfoQueue_FWD_DEFINED__ +typedef interface IDXGIInfoQueue IDXGIInfoQueue; + +#endif /* __IDXGIInfoQueue_FWD_DEFINED__ */ + + +#ifndef __IDXGIDebug_FWD_DEFINED__ +#define __IDXGIDebug_FWD_DEFINED__ +typedef interface IDXGIDebug IDXGIDebug; + +#endif /* __IDXGIDebug_FWD_DEFINED__ */ + + +#ifndef __IDXGIDebug1_FWD_DEFINED__ +#define __IDXGIDebug1_FWD_DEFINED__ +typedef interface IDXGIDebug1 IDXGIDebug1; + +#endif /* __IDXGIDebug1_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_dxgidebug_0000_0000 */ +/* [local] */ + +#include +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) +#define DXGI_DEBUG_BINARY_VERSION ( 1 ) + +typedef +enum DXGI_DEBUG_RLO_FLAGS + { + DXGI_DEBUG_RLO_SUMMARY = 0x1, + DXGI_DEBUG_RLO_DETAIL = 0x2, + DXGI_DEBUG_RLO_IGNORE_INTERNAL = 0x4, + DXGI_DEBUG_RLO_ALL = 0x7 + } DXGI_DEBUG_RLO_FLAGS; + +typedef GUID DXGI_DEBUG_ID; + +DEFINE_GUID(DXGI_DEBUG_ALL, 0xe48ae283, 0xda80, 0x490b, 0x87, 0xe6, 0x43, 0xe9, 0xa9, 0xcf, 0xda, 0x8); +DEFINE_GUID(DXGI_DEBUG_DX, 0x35cdd7fc, 0x13b2, 0x421d, 0xa5, 0xd7, 0x7e, 0x44, 0x51, 0x28, 0x7d, 0x64); +DEFINE_GUID(DXGI_DEBUG_DXGI, 0x25cddaa4, 0xb1c6, 0x47e1, 0xac, 0x3e, 0x98, 0x87, 0x5b, 0x5a, 0x2e, 0x2a); +DEFINE_GUID(DXGI_DEBUG_APP, 0x6cd6e01, 0x4219, 0x4ebd, 0x87, 0x9, 0x27, 0xed, 0x23, 0x36, 0xc, 0x62); +typedef +enum DXGI_INFO_QUEUE_MESSAGE_CATEGORY + { + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_UNKNOWN = 0, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_MISCELLANEOUS = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_UNKNOWN + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_INITIALIZATION = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_MISCELLANEOUS + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_CLEANUP = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_INITIALIZATION + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_COMPILATION = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_CLEANUP + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_CREATION = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_COMPILATION + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_SETTING = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_CREATION + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_GETTING = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_SETTING + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_RESOURCE_MANIPULATION = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_GETTING + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_EXECUTION = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_RESOURCE_MANIPULATION + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_SHADER = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_EXECUTION + 1 ) + } DXGI_INFO_QUEUE_MESSAGE_CATEGORY; + +typedef +enum DXGI_INFO_QUEUE_MESSAGE_SEVERITY + { + DXGI_INFO_QUEUE_MESSAGE_SEVERITY_CORRUPTION = 0, + DXGI_INFO_QUEUE_MESSAGE_SEVERITY_ERROR = ( DXGI_INFO_QUEUE_MESSAGE_SEVERITY_CORRUPTION + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_SEVERITY_WARNING = ( DXGI_INFO_QUEUE_MESSAGE_SEVERITY_ERROR + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_SEVERITY_INFO = ( DXGI_INFO_QUEUE_MESSAGE_SEVERITY_WARNING + 1 ) , + DXGI_INFO_QUEUE_MESSAGE_SEVERITY_MESSAGE = ( DXGI_INFO_QUEUE_MESSAGE_SEVERITY_INFO + 1 ) + } DXGI_INFO_QUEUE_MESSAGE_SEVERITY; + +typedef int DXGI_INFO_QUEUE_MESSAGE_ID; + +#define DXGI_INFO_QUEUE_MESSAGE_ID_STRING_FROM_APPLICATION 0 +typedef struct DXGI_INFO_QUEUE_MESSAGE + { + DXGI_DEBUG_ID Producer; + DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category; + DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity; + DXGI_INFO_QUEUE_MESSAGE_ID ID; + /* [annotation] */ + _Field_size_(DescriptionByteLength) const char *pDescription; + SIZE_T DescriptionByteLength; + } DXGI_INFO_QUEUE_MESSAGE; + +typedef struct DXGI_INFO_QUEUE_FILTER_DESC + { + UINT NumCategories; + /* [annotation] */ + _Field_size_(NumCategories) DXGI_INFO_QUEUE_MESSAGE_CATEGORY *pCategoryList; + UINT NumSeverities; + /* [annotation] */ + _Field_size_(NumSeverities) DXGI_INFO_QUEUE_MESSAGE_SEVERITY *pSeverityList; + UINT NumIDs; + /* [annotation] */ + _Field_size_(NumIDs) DXGI_INFO_QUEUE_MESSAGE_ID *pIDList; + } DXGI_INFO_QUEUE_FILTER_DESC; + +typedef struct DXGI_INFO_QUEUE_FILTER + { + DXGI_INFO_QUEUE_FILTER_DESC AllowList; + DXGI_INFO_QUEUE_FILTER_DESC DenyList; + } DXGI_INFO_QUEUE_FILTER; + +#define DXGI_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT 1024 +HRESULT WINAPI DXGIGetDebugInterface(REFIID riid, void **ppDebug); + + +extern RPC_IF_HANDLE __MIDL_itf_dxgidebug_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dxgidebug_0000_0000_v0_0_s_ifspec; + +#ifndef __IDXGIInfoQueue_INTERFACE_DEFINED__ +#define __IDXGIInfoQueue_INTERFACE_DEFINED__ + +/* interface IDXGIInfoQueue */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_IDXGIInfoQueue; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D67441C7-672A-476f-9E82-CD55B44949CE") + IDXGIInfoQueue : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetMessageCountLimit( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ UINT64 MessageCountLimit) = 0; + + virtual void STDMETHODCALLTYPE ClearStoredMessages( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMessage( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ UINT64 MessageIndex, + /* [annotation] */ + _Out_writes_bytes_opt_(*pMessageByteLength) DXGI_INFO_QUEUE_MESSAGE *pMessage, + /* [annotation] */ + _Inout_ SIZE_T *pMessageByteLength) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumStoredMessagesAllowedByRetrievalFilters( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumStoredMessages( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumMessagesDiscardedByMessageCountLimit( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetMessageCountLimit( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumMessagesAllowedByStorageFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual UINT64 STDMETHODCALLTYPE GetNumMessagesDeniedByStorageFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddStorageFilterEntries( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_FILTER *pFilter) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetStorageFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _Out_writes_bytes_opt_(*pFilterByteLength) DXGI_INFO_QUEUE_FILTER *pFilter, + /* [annotation] */ + _Inout_ SIZE_T *pFilterByteLength) = 0; + + virtual void STDMETHODCALLTYPE ClearStorageFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushEmptyStorageFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushDenyAllStorageFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushCopyOfStorageFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushStorageFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_FILTER *pFilter) = 0; + + virtual void STDMETHODCALLTYPE PopStorageFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual UINT STDMETHODCALLTYPE GetStorageFilterStackSize( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddRetrievalFilterEntries( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_FILTER *pFilter) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetRetrievalFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _Out_writes_bytes_opt_(*pFilterByteLength) DXGI_INFO_QUEUE_FILTER *pFilter, + /* [annotation] */ + _Inout_ SIZE_T *pFilterByteLength) = 0; + + virtual void STDMETHODCALLTYPE ClearRetrievalFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushEmptyRetrievalFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushDenyAllRetrievalFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushCopyOfRetrievalFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE PushRetrievalFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_FILTER *pFilter) = 0; + + virtual void STDMETHODCALLTYPE PopRetrievalFilter( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual UINT STDMETHODCALLTYPE GetRetrievalFilterStackSize( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddMessage( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_ID ID, + /* [annotation] */ + _In_ LPCSTR pDescription) = 0; + + virtual HRESULT STDMETHODCALLTYPE AddApplicationMessage( + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ LPCSTR pDescription) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBreakOnCategory( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category, + /* [annotation] */ + _In_ BOOL bEnable) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBreakOnSeverity( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ BOOL bEnable) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetBreakOnID( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_ID ID, + /* [annotation] */ + _In_ BOOL bEnable) = 0; + + virtual BOOL STDMETHODCALLTYPE GetBreakOnCategory( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category) = 0; + + virtual BOOL STDMETHODCALLTYPE GetBreakOnSeverity( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity) = 0; + + virtual BOOL STDMETHODCALLTYPE GetBreakOnID( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_ID ID) = 0; + + virtual void STDMETHODCALLTYPE SetMuteDebugOutput( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ BOOL bMute) = 0; + + virtual BOOL STDMETHODCALLTYPE GetMuteDebugOutput( + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDXGIInfoQueueVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDXGIInfoQueue * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDXGIInfoQueue * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDXGIInfoQueue * This); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, SetMessageCountLimit) + HRESULT ( STDMETHODCALLTYPE *SetMessageCountLimit )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ UINT64 MessageCountLimit); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, ClearStoredMessages) + void ( STDMETHODCALLTYPE *ClearStoredMessages )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetMessage) + HRESULT ( STDMETHODCALLTYPE *GetMessage )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ UINT64 MessageIndex, + /* [annotation] */ + _Out_writes_bytes_opt_(*pMessageByteLength) DXGI_INFO_QUEUE_MESSAGE *pMessage, + /* [annotation] */ + _Inout_ SIZE_T *pMessageByteLength); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetNumStoredMessagesAllowedByRetrievalFilters) + UINT64 ( STDMETHODCALLTYPE *GetNumStoredMessagesAllowedByRetrievalFilters )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetNumStoredMessages) + UINT64 ( STDMETHODCALLTYPE *GetNumStoredMessages )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetNumMessagesDiscardedByMessageCountLimit) + UINT64 ( STDMETHODCALLTYPE *GetNumMessagesDiscardedByMessageCountLimit )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetMessageCountLimit) + UINT64 ( STDMETHODCALLTYPE *GetMessageCountLimit )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetNumMessagesAllowedByStorageFilter) + UINT64 ( STDMETHODCALLTYPE *GetNumMessagesAllowedByStorageFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetNumMessagesDeniedByStorageFilter) + UINT64 ( STDMETHODCALLTYPE *GetNumMessagesDeniedByStorageFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, AddStorageFilterEntries) + HRESULT ( STDMETHODCALLTYPE *AddStorageFilterEntries )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetStorageFilter) + HRESULT ( STDMETHODCALLTYPE *GetStorageFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _Out_writes_bytes_opt_(*pFilterByteLength) DXGI_INFO_QUEUE_FILTER *pFilter, + /* [annotation] */ + _Inout_ SIZE_T *pFilterByteLength); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, ClearStorageFilter) + void ( STDMETHODCALLTYPE *ClearStorageFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushEmptyStorageFilter) + HRESULT ( STDMETHODCALLTYPE *PushEmptyStorageFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushDenyAllStorageFilter) + HRESULT ( STDMETHODCALLTYPE *PushDenyAllStorageFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushCopyOfStorageFilter) + HRESULT ( STDMETHODCALLTYPE *PushCopyOfStorageFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushStorageFilter) + HRESULT ( STDMETHODCALLTYPE *PushStorageFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, PopStorageFilter) + void ( STDMETHODCALLTYPE *PopStorageFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetStorageFilterStackSize) + UINT ( STDMETHODCALLTYPE *GetStorageFilterStackSize )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, AddRetrievalFilterEntries) + HRESULT ( STDMETHODCALLTYPE *AddRetrievalFilterEntries )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *GetRetrievalFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _Out_writes_bytes_opt_(*pFilterByteLength) DXGI_INFO_QUEUE_FILTER *pFilter, + /* [annotation] */ + _Inout_ SIZE_T *pFilterByteLength); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, ClearRetrievalFilter) + void ( STDMETHODCALLTYPE *ClearRetrievalFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushEmptyRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *PushEmptyRetrievalFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushDenyAllRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *PushDenyAllRetrievalFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushCopyOfRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *PushCopyOfRetrievalFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushRetrievalFilter) + HRESULT ( STDMETHODCALLTYPE *PushRetrievalFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_FILTER *pFilter); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, PopRetrievalFilter) + void ( STDMETHODCALLTYPE *PopRetrievalFilter )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetRetrievalFilterStackSize) + UINT ( STDMETHODCALLTYPE *GetRetrievalFilterStackSize )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, AddMessage) + HRESULT ( STDMETHODCALLTYPE *AddMessage )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_ID ID, + /* [annotation] */ + _In_ LPCSTR pDescription); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, AddApplicationMessage) + HRESULT ( STDMETHODCALLTYPE *AddApplicationMessage )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ LPCSTR pDescription); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, SetBreakOnCategory) + HRESULT ( STDMETHODCALLTYPE *SetBreakOnCategory )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category, + /* [annotation] */ + _In_ BOOL bEnable); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, SetBreakOnSeverity) + HRESULT ( STDMETHODCALLTYPE *SetBreakOnSeverity )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity, + /* [annotation] */ + _In_ BOOL bEnable); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, SetBreakOnID) + HRESULT ( STDMETHODCALLTYPE *SetBreakOnID )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_ID ID, + /* [annotation] */ + _In_ BOOL bEnable); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetBreakOnCategory) + BOOL ( STDMETHODCALLTYPE *GetBreakOnCategory )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetBreakOnSeverity) + BOOL ( STDMETHODCALLTYPE *GetBreakOnSeverity )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetBreakOnID) + BOOL ( STDMETHODCALLTYPE *GetBreakOnID )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ DXGI_INFO_QUEUE_MESSAGE_ID ID); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, SetMuteDebugOutput) + void ( STDMETHODCALLTYPE *SetMuteDebugOutput )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer, + /* [annotation] */ + _In_ BOOL bMute); + + DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetMuteDebugOutput) + BOOL ( STDMETHODCALLTYPE *GetMuteDebugOutput )( + IDXGIInfoQueue * This, + /* [annotation] */ + _In_ DXGI_DEBUG_ID Producer); + + END_INTERFACE + } IDXGIInfoQueueVtbl; + + interface IDXGIInfoQueue + { + CONST_VTBL struct IDXGIInfoQueueVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDXGIInfoQueue_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDXGIInfoQueue_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDXGIInfoQueue_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDXGIInfoQueue_SetMessageCountLimit(This,Producer,MessageCountLimit) \ + ( (This)->lpVtbl -> SetMessageCountLimit(This,Producer,MessageCountLimit) ) + +#define IDXGIInfoQueue_ClearStoredMessages(This,Producer) \ + ( (This)->lpVtbl -> ClearStoredMessages(This,Producer) ) + +#define IDXGIInfoQueue_GetMessage(This,Producer,MessageIndex,pMessage,pMessageByteLength) \ + ( (This)->lpVtbl -> GetMessage(This,Producer,MessageIndex,pMessage,pMessageByteLength) ) + +#define IDXGIInfoQueue_GetNumStoredMessagesAllowedByRetrievalFilters(This,Producer) \ + ( (This)->lpVtbl -> GetNumStoredMessagesAllowedByRetrievalFilters(This,Producer) ) + +#define IDXGIInfoQueue_GetNumStoredMessages(This,Producer) \ + ( (This)->lpVtbl -> GetNumStoredMessages(This,Producer) ) + +#define IDXGIInfoQueue_GetNumMessagesDiscardedByMessageCountLimit(This,Producer) \ + ( (This)->lpVtbl -> GetNumMessagesDiscardedByMessageCountLimit(This,Producer) ) + +#define IDXGIInfoQueue_GetMessageCountLimit(This,Producer) \ + ( (This)->lpVtbl -> GetMessageCountLimit(This,Producer) ) + +#define IDXGIInfoQueue_GetNumMessagesAllowedByStorageFilter(This,Producer) \ + ( (This)->lpVtbl -> GetNumMessagesAllowedByStorageFilter(This,Producer) ) + +#define IDXGIInfoQueue_GetNumMessagesDeniedByStorageFilter(This,Producer) \ + ( (This)->lpVtbl -> GetNumMessagesDeniedByStorageFilter(This,Producer) ) + +#define IDXGIInfoQueue_AddStorageFilterEntries(This,Producer,pFilter) \ + ( (This)->lpVtbl -> AddStorageFilterEntries(This,Producer,pFilter) ) + +#define IDXGIInfoQueue_GetStorageFilter(This,Producer,pFilter,pFilterByteLength) \ + ( (This)->lpVtbl -> GetStorageFilter(This,Producer,pFilter,pFilterByteLength) ) + +#define IDXGIInfoQueue_ClearStorageFilter(This,Producer) \ + ( (This)->lpVtbl -> ClearStorageFilter(This,Producer) ) + +#define IDXGIInfoQueue_PushEmptyStorageFilter(This,Producer) \ + ( (This)->lpVtbl -> PushEmptyStorageFilter(This,Producer) ) + +#define IDXGIInfoQueue_PushDenyAllStorageFilter(This,Producer) \ + ( (This)->lpVtbl -> PushDenyAllStorageFilter(This,Producer) ) + +#define IDXGIInfoQueue_PushCopyOfStorageFilter(This,Producer) \ + ( (This)->lpVtbl -> PushCopyOfStorageFilter(This,Producer) ) + +#define IDXGIInfoQueue_PushStorageFilter(This,Producer,pFilter) \ + ( (This)->lpVtbl -> PushStorageFilter(This,Producer,pFilter) ) + +#define IDXGIInfoQueue_PopStorageFilter(This,Producer) \ + ( (This)->lpVtbl -> PopStorageFilter(This,Producer) ) + +#define IDXGIInfoQueue_GetStorageFilterStackSize(This,Producer) \ + ( (This)->lpVtbl -> GetStorageFilterStackSize(This,Producer) ) + +#define IDXGIInfoQueue_AddRetrievalFilterEntries(This,Producer,pFilter) \ + ( (This)->lpVtbl -> AddRetrievalFilterEntries(This,Producer,pFilter) ) + +#define IDXGIInfoQueue_GetRetrievalFilter(This,Producer,pFilter,pFilterByteLength) \ + ( (This)->lpVtbl -> GetRetrievalFilter(This,Producer,pFilter,pFilterByteLength) ) + +#define IDXGIInfoQueue_ClearRetrievalFilter(This,Producer) \ + ( (This)->lpVtbl -> ClearRetrievalFilter(This,Producer) ) + +#define IDXGIInfoQueue_PushEmptyRetrievalFilter(This,Producer) \ + ( (This)->lpVtbl -> PushEmptyRetrievalFilter(This,Producer) ) + +#define IDXGIInfoQueue_PushDenyAllRetrievalFilter(This,Producer) \ + ( (This)->lpVtbl -> PushDenyAllRetrievalFilter(This,Producer) ) + +#define IDXGIInfoQueue_PushCopyOfRetrievalFilter(This,Producer) \ + ( (This)->lpVtbl -> PushCopyOfRetrievalFilter(This,Producer) ) + +#define IDXGIInfoQueue_PushRetrievalFilter(This,Producer,pFilter) \ + ( (This)->lpVtbl -> PushRetrievalFilter(This,Producer,pFilter) ) + +#define IDXGIInfoQueue_PopRetrievalFilter(This,Producer) \ + ( (This)->lpVtbl -> PopRetrievalFilter(This,Producer) ) + +#define IDXGIInfoQueue_GetRetrievalFilterStackSize(This,Producer) \ + ( (This)->lpVtbl -> GetRetrievalFilterStackSize(This,Producer) ) + +#define IDXGIInfoQueue_AddMessage(This,Producer,Category,Severity,ID,pDescription) \ + ( (This)->lpVtbl -> AddMessage(This,Producer,Category,Severity,ID,pDescription) ) + +#define IDXGIInfoQueue_AddApplicationMessage(This,Severity,pDescription) \ + ( (This)->lpVtbl -> AddApplicationMessage(This,Severity,pDescription) ) + +#define IDXGIInfoQueue_SetBreakOnCategory(This,Producer,Category,bEnable) \ + ( (This)->lpVtbl -> SetBreakOnCategory(This,Producer,Category,bEnable) ) + +#define IDXGIInfoQueue_SetBreakOnSeverity(This,Producer,Severity,bEnable) \ + ( (This)->lpVtbl -> SetBreakOnSeverity(This,Producer,Severity,bEnable) ) + +#define IDXGIInfoQueue_SetBreakOnID(This,Producer,ID,bEnable) \ + ( (This)->lpVtbl -> SetBreakOnID(This,Producer,ID,bEnable) ) + +#define IDXGIInfoQueue_GetBreakOnCategory(This,Producer,Category) \ + ( (This)->lpVtbl -> GetBreakOnCategory(This,Producer,Category) ) + +#define IDXGIInfoQueue_GetBreakOnSeverity(This,Producer,Severity) \ + ( (This)->lpVtbl -> GetBreakOnSeverity(This,Producer,Severity) ) + +#define IDXGIInfoQueue_GetBreakOnID(This,Producer,ID) \ + ( (This)->lpVtbl -> GetBreakOnID(This,Producer,ID) ) + +#define IDXGIInfoQueue_SetMuteDebugOutput(This,Producer,bMute) \ + ( (This)->lpVtbl -> SetMuteDebugOutput(This,Producer,bMute) ) + +#define IDXGIInfoQueue_GetMuteDebugOutput(This,Producer) \ + ( (This)->lpVtbl -> GetMuteDebugOutput(This,Producer) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDXGIInfoQueue_INTERFACE_DEFINED__ */ + + +#ifndef __IDXGIDebug_INTERFACE_DEFINED__ +#define __IDXGIDebug_INTERFACE_DEFINED__ + +/* interface IDXGIDebug */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_IDXGIDebug; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("119E7452-DE9E-40fe-8806-88F90C12B441") + IDXGIDebug : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ReportLiveObjects( + GUID apiid, + DXGI_DEBUG_RLO_FLAGS flags) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDXGIDebugVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDXGIDebug * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDXGIDebug * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDXGIDebug * This); + + DECLSPEC_XFGVIRT(IDXGIDebug, ReportLiveObjects) + HRESULT ( STDMETHODCALLTYPE *ReportLiveObjects )( + IDXGIDebug * This, + GUID apiid, + DXGI_DEBUG_RLO_FLAGS flags); + + END_INTERFACE + } IDXGIDebugVtbl; + + interface IDXGIDebug + { + CONST_VTBL struct IDXGIDebugVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDXGIDebug_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDXGIDebug_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDXGIDebug_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDXGIDebug_ReportLiveObjects(This,apiid,flags) \ + ( (This)->lpVtbl -> ReportLiveObjects(This,apiid,flags) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDXGIDebug_INTERFACE_DEFINED__ */ + + +#ifndef __IDXGIDebug1_INTERFACE_DEFINED__ +#define __IDXGIDebug1_INTERFACE_DEFINED__ + +/* interface IDXGIDebug1 */ +/* [unique][local][object][uuid] */ + + +EXTERN_C const IID IID_IDXGIDebug1; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c5a05f0c-16f2-4adf-9f4d-a8c4d58ac550") + IDXGIDebug1 : public IDXGIDebug + { + public: + virtual void STDMETHODCALLTYPE EnableLeakTrackingForThread( void) = 0; + + virtual void STDMETHODCALLTYPE DisableLeakTrackingForThread( void) = 0; + + virtual BOOL STDMETHODCALLTYPE IsLeakTrackingEnabledForThread( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDXGIDebug1Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDXGIDebug1 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDXGIDebug1 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDXGIDebug1 * This); + + DECLSPEC_XFGVIRT(IDXGIDebug, ReportLiveObjects) + HRESULT ( STDMETHODCALLTYPE *ReportLiveObjects )( + IDXGIDebug1 * This, + GUID apiid, + DXGI_DEBUG_RLO_FLAGS flags); + + DECLSPEC_XFGVIRT(IDXGIDebug1, EnableLeakTrackingForThread) + void ( STDMETHODCALLTYPE *EnableLeakTrackingForThread )( + IDXGIDebug1 * This); + + DECLSPEC_XFGVIRT(IDXGIDebug1, DisableLeakTrackingForThread) + void ( STDMETHODCALLTYPE *DisableLeakTrackingForThread )( + IDXGIDebug1 * This); + + DECLSPEC_XFGVIRT(IDXGIDebug1, IsLeakTrackingEnabledForThread) + BOOL ( STDMETHODCALLTYPE *IsLeakTrackingEnabledForThread )( + IDXGIDebug1 * This); + + END_INTERFACE + } IDXGIDebug1Vtbl; + + interface IDXGIDebug1 + { + CONST_VTBL struct IDXGIDebug1Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDXGIDebug1_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDXGIDebug1_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDXGIDebug1_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDXGIDebug1_ReportLiveObjects(This,apiid,flags) \ + ( (This)->lpVtbl -> ReportLiveObjects(This,apiid,flags) ) + + +#define IDXGIDebug1_EnableLeakTrackingForThread(This) \ + ( (This)->lpVtbl -> EnableLeakTrackingForThread(This) ) + +#define IDXGIDebug1_DisableLeakTrackingForThread(This) \ + ( (This)->lpVtbl -> DisableLeakTrackingForThread(This) ) + +#define IDXGIDebug1_IsLeakTrackingEnabledForThread(This) \ + ( (This)->lpVtbl -> IsLeakTrackingEnabledForThread(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDXGIDebug1_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dxgidebug_0000_0003 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +DEFINE_GUID(IID_IDXGIInfoQueue,0xD67441C7,0x672A,0x476f,0x9E,0x82,0xCD,0x55,0xB4,0x49,0x49,0xCE); +DEFINE_GUID(IID_IDXGIDebug,0x119E7452,0xDE9E,0x40fe,0x88,0x06,0x88,0xF9,0x0C,0x12,0xB4,0x41); +DEFINE_GUID(IID_IDXGIDebug1,0xc5a05f0c,0x16f2,0x4adf,0x9f,0x4d,0xa8,0xc4,0xd5,0x8a,0xc5,0x50); + + +extern RPC_IF_HANDLE __MIDL_itf_dxgidebug_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dxgidebug_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxgidebug.idl b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxgidebug.idl new file mode 100644 index 0000000000000000000000000000000000000000..ad3184d3b5d6cc483a5a413e8859f5e51fc1282e --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxgidebug.idl @@ -0,0 +1,456 @@ +////////////////////////////////////////////////////////////////////////////////////////////// +// // +// DXGIDebug.idl // +// // +// Contains interface definitions for the DXGI Debug Binary. // +// // +// Copyright (c) Microsoft Corporation. // +// // +////////////////////////////////////////////////////////////////////////////////////////////// + +import "oaidl.idl"; +import "ocidl.idl"; + +cpp_quote("#include ") + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES)") + +const UINT DXGI_DEBUG_BINARY_VERSION = 1; + + +typedef enum DXGI_DEBUG_RLO_FLAGS +{ + DXGI_DEBUG_RLO_SUMMARY = 0x1, + DXGI_DEBUG_RLO_DETAIL = 0x2, + DXGI_DEBUG_RLO_IGNORE_INTERNAL = 0x4, + DXGI_DEBUG_RLO_ALL = 0x7, +} DXGI_DEBUG_RLO_FLAGS; + + +//================================================================================================================================== +// +// DXGI Debug Producer GUIDs +// +//================================================================================================================================== +typedef GUID DXGI_DEBUG_ID; +cpp_quote("DEFINE_GUID(DXGI_DEBUG_ALL, 0xe48ae283, 0xda80, 0x490b, 0x87, 0xe6, 0x43, 0xe9, 0xa9, 0xcf, 0xda, 0x8);") +cpp_quote("DEFINE_GUID(DXGI_DEBUG_DX, 0x35cdd7fc, 0x13b2, 0x421d, 0xa5, 0xd7, 0x7e, 0x44, 0x51, 0x28, 0x7d, 0x64);") +cpp_quote("DEFINE_GUID(DXGI_DEBUG_DXGI, 0x25cddaa4, 0xb1c6, 0x47e1, 0xac, 0x3e, 0x98, 0x87, 0x5b, 0x5a, 0x2e, 0x2a);") +cpp_quote("DEFINE_GUID(DXGI_DEBUG_APP, 0x6cd6e01, 0x4219, 0x4ebd, 0x87, 0x9, 0x27, 0xed, 0x23, 0x36, 0xc, 0x62);") + + +//================================================================================================================================== +// +// Info Queue +// +//================================================================================================================================== + +typedef enum DXGI_INFO_QUEUE_MESSAGE_CATEGORY { + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_UNKNOWN, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_MISCELLANEOUS, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_INITIALIZATION, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_CLEANUP, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_COMPILATION, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_CREATION, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_SETTING, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_GETTING, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_RESOURCE_MANIPULATION, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_EXECUTION, + DXGI_INFO_QUEUE_MESSAGE_CATEGORY_SHADER, +} DXGI_INFO_QUEUE_MESSAGE_CATEGORY; + +typedef enum DXGI_INFO_QUEUE_MESSAGE_SEVERITY { + DXGI_INFO_QUEUE_MESSAGE_SEVERITY_CORRUPTION, + DXGI_INFO_QUEUE_MESSAGE_SEVERITY_ERROR, + DXGI_INFO_QUEUE_MESSAGE_SEVERITY_WARNING, + DXGI_INFO_QUEUE_MESSAGE_SEVERITY_INFO, + DXGI_INFO_QUEUE_MESSAGE_SEVERITY_MESSAGE +} DXGI_INFO_QUEUE_MESSAGE_SEVERITY; + +typedef int DXGI_INFO_QUEUE_MESSAGE_ID; +cpp_quote("#define DXGI_INFO_QUEUE_MESSAGE_ID_STRING_FROM_APPLICATION 0") + +typedef struct DXGI_INFO_QUEUE_MESSAGE { + DXGI_DEBUG_ID Producer; + DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category; + DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity; + DXGI_INFO_QUEUE_MESSAGE_ID ID; + [annotation("_Field_size_(DescriptionByteLength)")] const char* pDescription; + SIZE_T DescriptionByteLength; +} DXGI_INFO_QUEUE_MESSAGE; + +typedef struct DXGI_INFO_QUEUE_FILTER_DESC +{ + UINT NumCategories; + [annotation("_Field_size_(NumCategories)")] DXGI_INFO_QUEUE_MESSAGE_CATEGORY* pCategoryList; + + UINT NumSeverities; + [annotation("_Field_size_(NumSeverities)")] DXGI_INFO_QUEUE_MESSAGE_SEVERITY* pSeverityList; + + UINT NumIDs; + [annotation("_Field_size_(NumIDs)")] DXGI_INFO_QUEUE_MESSAGE_ID* pIDList; +} DXGI_INFO_QUEUE_FILTER_DESC; + +// To use, memset to 0, then fill in what you need. +typedef struct DXGI_INFO_QUEUE_FILTER +{ + DXGI_INFO_QUEUE_FILTER_DESC AllowList; + DXGI_INFO_QUEUE_FILTER_DESC DenyList; +} DXGI_INFO_QUEUE_FILTER; + + + +cpp_quote("#define DXGI_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT 1024") + +cpp_quote( "HRESULT WINAPI DXGIGetDebugInterface(REFIID riid, void **ppDebug);" ) + +//============================================================================= +// IDXGIInfoQueue +// +// Logs DX Messages. +// This interface is a singleton per process. Debug DX devices will log messages +// to this object which can be retrieved through its APIs. +// +// +[ uuid( D67441C7-672A-476f-9E82-CD55B44949CE ), object, local, pointer_default( unique ) ] + +interface IDXGIInfoQueue + : IUnknown +{ + //========================================================================= + // Methods for configuring how much data is stored in the queue. + + // SetMessageCountLimit() + // This sets how many messages are stored for a given producer. When the queue + // is full, new messages coming in push old messages out (for that producer). + // Passing -1 to SetMessageCountLimit means the queue has + // unlimited size (go until out of memory or ClearStoredMessages()). + // The default message count size is DXGI_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT + // Returns S_OK or E_INVALIDARG. + HRESULT SetMessageCountLimit( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] UINT64 MessageCountLimit ); + + // ClearStoredMessages + void ClearStoredMessages( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + //========================================================================= + // Methods for retrieving data or statistics from the queue. + + // GetMessage() + // Retrieves messages, one at a time, from the queue which pass any + // retrieval filter currently defined. + // + // Call GetMessage with (DXGI_INFO_QUEUE_PRODUCER_ALL) to get messages + // from all producers. + // + // The MessageIndex parameter is a 0 based index into the results passing + // the filter. The number of results is returned by + // GetNumStoredMessagesAllowedByRetrievalFilter(). + // + // Note this does not remove the message from the queue. + // + // pMessageByteLength inputs the size of the buffer passed in via + // pMessage, and outputs the size of the message. pMessage can be NULL + // when the size of the required buffer is being queried (return S_FALSE). + // + // NOTE: The returned buffer pMessage is NOT just the size of DXGI_INFO_QUEUE_MESSAGE, + // it includes extra memory after the DXGI_INFO_QUEUE_MESSAGE for storing the string + // description, which is pointed to from within DXGI_INFO_QUEUE_MESSAGE. Therefore + // applications should check the size needed for pMessage as described above. + // + // Watch out for thread safety when making consecutive calls first to + // determine the buffer size required and then to pass in the buffer and + // retrieve the message, and also between calling + // GetNumStoredMessagesAllowedByRetrievalFilter() and enumerating through + // the results via GetMessagE(). + // + // Returns: S_OK, S_FALSE, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT GetMessage( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] UINT64 MessageIndex, + [annotation("_Out_writes_bytes_opt_(*pMessageByteLength)")] DXGI_INFO_QUEUE_MESSAGE* pMessage, + [annotation("_Inout_")] SIZE_T* pMessageByteLength ); + + // GetNumStoredMessagesAllowedByRetrievalFilter() + // Returns how many messages that are currently in the queue which + // pass the retrieval filter. + // The MessageIndex parameter to GetMessage() indexes + // an array of this many results. + UINT64 GetNumStoredMessagesAllowedByRetrievalFilters( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // GetNumStoredMessages() + // Returns how many messages are currently stored in the queue for the specified producer. + UINT64 GetNumStoredMessages( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // GetNumMessagesDiscardedByMessageCountLimit() for the specified producer. + UINT64 GetNumMessagesDiscardedByMessageCountLimit( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // GetMessageCountLimit + // This is how many messages can be stored in the queue for the specified producer. + // When the queue is full, new messages coming in push old messages out. + // -1 means there is no limit. + UINT64 GetMessageCountLimit( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // GetNumMessagesAllowedByStorageFilter() + // Returns how many messages sent to the queue passed + // whatever storage filter was active upon receipt of + // the message. + // This can be a larger value than the message count limit, + // returned by GetMessageCountLimit(), since old messages are discarded + // when the queue is full to prevent overflow. + UINT64 GetNumMessagesAllowedByStorageFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // GetNumMessagesDeniedByStorageFilter() + UINT64 GetNumMessagesDeniedByStorageFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + + //========================================================================= + // Methods for filtering what gets stored in the queue + + // AddStorageFilterEntries() + // Adds to the existing entries at top of stack + // Returns: S_OK, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT AddStorageFilterEntries( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_FILTER* pFilter ); + + // GetStorageFilter() + // Gets all entries at top of stack. + // The application must allocate the output buffer. The size required can be + // queried by passing null for pFilter and looking at the returned + // pFilterByteLength (HRESULT is S_FALSE). Note that DXGI_INFO_QUEUE_FILTER contains + // pointers - these will point to locations within the same + // contiguous buffer - *pFilterByteLength is the total storage needed for all + // data. So the application needs to only allocate/free the memory for pFilter. + // Returns S_OK, S_FALSE, E_INVALIDARG or E_OUTOFMEMORY + HRESULT GetStorageFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_Out_writes_bytes_opt_(*pFilterByteLength)")] DXGI_INFO_QUEUE_FILTER* pFilter, + [annotation("_Inout_")] SIZE_T* pFilterByteLength ); + + // ClearStorageFilter() + // Clears filter at the top of the stack (if there is one) + void ClearStorageFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // PushEmptyStorageFilter() + // Push an empty storage filter on the stack to allow local filtering changes. + // For convenience, this is automatically called by SetStorageFilter() + // if the stack is empty. Thus if the stack is not needed, filters can be + // defined without ever bothering to push or pop. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushEmptyStorageFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // PushDenyAllStorageFilter() + // Push a storage filter that denies all messages. This is for convience to + // silence all messages from a given producer. Messages that are not stored + // in the InfoQueue are not displayed to debug output. + // A deny all will be a filter with all of the severities in the deny list. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushDenyAllStorageFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // PushCopyOfStorageFilter() + // Push a copy of the current filter so that local modifications can be made + // starting from what currently exists. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushCopyOfStorageFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + + // PushStorageFilter() + // Push a filter passed as a parameter onto the stack. This is + // just a helper for calling PushEmptyStorageFilter() followed + // by AddStorageFilterEntries() + // Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT PushStorageFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_FILTER* pFilter ); + + // PopStorageFilter() + // Pop the current storage filter off the stack (if there is one) + void PopStorageFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // GetStorageFilterStackSize() + UINT GetStorageFilterStackSize( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + //========================================================================= + // Methods for filtering what gets read out of the queue by GetMessage(). + + // AddRetrievalFilterEntries() + // Adds to the existing entries at top of stack + // Returns: S_OK, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT AddRetrievalFilterEntries( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_FILTER* pFilter ); + + // GetRetrievalFilter() + // Gets all entries at top of stack. + // The application must allocate the output buffer. The size required can be + // queried by passing null for pFilter and looking at the returned + // pFilterByteLength (HRESULT is S_FALSE). Note that DXGI_INFO_QUEUE_FILTER contains + // pointers - these will point to locations within the same + // contiguous buffer - *pFilterByteLength is the total storage needed for all + // data. So the application needs to only allocate/free the memory for pFilter. + // Returns S_OK, S_FALSE, E_INVALIDARG or E_OUTOFMEMORY + HRESULT GetRetrievalFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_Out_writes_bytes_opt_(*pFilterByteLength)")] DXGI_INFO_QUEUE_FILTER* pFilter, + [annotation("_Inout_")] SIZE_T* pFilterByteLength ); + + // ClearRetrievalFilter() + // Clears filter at the top of the stack (if there is one) + void ClearRetrievalFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // PushEmptyRetrievalFilter() + // Push an empty retrieval filter on the stack to allow local filtering changes. + // For convenience, this is automatically called by SetRetrievalFilter() + // if the stack is empty. Thus if the stack is not needed, filters can be + // defined without ever bothering to push or pop. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushEmptyRetrievalFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // PushDenyAllRetrievalFilter() + // Push a retrieval filter that denies all messages. This is for convience to + // ignore all messages from a given producer. + // A deny all will be a filter with all of the severities in the deny list. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushDenyAllRetrievalFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // PushCopyOfRetrievalFilter() + // Push a copy of the current filter so that local modifications can be made + // starting from what currently exists. + // Returns S_OK or E_OUTOFMEMORY + HRESULT PushCopyOfRetrievalFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // PushRetrievalFilter() + // Push a filter passed as a parameter onto the stack. This is + // just a helper for calling PushEmptyRetrievalFilter() followed + // by AddRetrievalFilterEntries() + // Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY. + HRESULT PushRetrievalFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_FILTER* pFilter ); + + // PopRetrievalFilter() + // Pop the current storage filter off the stack (if there is one) + void PopRetrievalFilter( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + // GetRetrievalFilterStackSize() + UINT GetRetrievalFilterStackSize( + [annotation("_In_")] DXGI_DEBUG_ID Producer); + + //========================================================================= + // Methods for adding entries to the queue. + + // AddMessage() + // This is used by DX components to log messages. Nothing stops + // applications from calling this, but it isn't particularly useful. + // If an application wishes to insert custom strings into the queue, + // AddApplicationMessage() below is suggested. See below. + // + // Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY + HRESULT AddMessage( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category, + [annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity, + [annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_ID ID, + [annotation("_In_")] LPCSTR pDescription); + + // AddApplicationMessage() + // This is a convenience for applications that want + // to insert strings of their own into the queue, perhaps to log issues + // of its own, or to mark out points in time in the queue. This + // has the same effect as calling AddMessage() above with the + // following settings: + // Category = DXGI_INFO_QUEUE_MESSAGE_CATEGORY_APPLICATION_DEFINED + // Severity = + // ID = DXGI_INFO_QUEUE_MESSAGE_ID_STRING_FROM_APPLICATION + // pDescription = + // + // Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY + HRESULT AddApplicationMessage( + [annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity, + [annotation("_In_")] LPCSTR pDescription); + + //========================================================================= + // Methods for breaking on errors that pass the storage filter. + HRESULT SetBreakOnCategory( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category, + [annotation("_In_")] BOOL bEnable ); + HRESULT SetBreakOnSeverity( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity, + [annotation("_In_")] BOOL bEnable ); + HRESULT SetBreakOnID( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_ID ID, + [annotation("_In_")] BOOL bEnable ); + + BOOL GetBreakOnCategory( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category ); + BOOL GetBreakOnSeverity( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity ); + BOOL GetBreakOnID( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_ID ID ); + + //========================================================================= + // Methods for muting debug spew from the InfoQueue + void SetMuteDebugOutput( + [annotation("_In_")] DXGI_DEBUG_ID Producer, + [annotation("_In_")] BOOL bMute ); + BOOL GetMuteDebugOutput( + [annotation("_In_")] DXGI_DEBUG_ID Producer); +}; + +[ uuid(119E7452-DE9E-40fe-8806-88F90C12B441), object, local, pointer_default( unique ) ] +interface IDXGIDebug + : IUnknown +{ + HRESULT ReportLiveObjects(GUID apiid, DXGI_DEBUG_RLO_FLAGS flags); +}; + +[ uuid(c5a05f0c-16f2-4adf-9f4d-a8c4d58ac550), object, local, pointer_default( unique ) ] +interface IDXGIDebug1 + : IDXGIDebug +{ + void EnableLeakTrackingForThread(); + void DisableLeakTrackingForThread(); + BOOL IsLeakTrackingEnabledForThread(); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + + +cpp_quote( "DEFINE_GUID(IID_IDXGIInfoQueue,0xD67441C7,0x672A,0x476f,0x9E,0x82,0xCD,0x55,0xB4,0x49,0x49,0xCE);" ) +cpp_quote( "DEFINE_GUID(IID_IDXGIDebug,0x119E7452,0xDE9E,0x40fe,0x88,0x06,0x88,0xF9,0x0C,0x12,0xB4,0x41);" ) +cpp_quote( "DEFINE_GUID(IID_IDXGIDebug1,0xc5a05f0c,0x16f2,0x4adf,0x9f,0x4d,0xa8,0xc4,0xd5,0x8a,0xc5,0x50);" ) diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxmini.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxmini.h new file mode 100644 index 0000000000000000000000000000000000000000..b34a0c74e1729109fb52cce1590464fbff42c11e --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxmini.h @@ -0,0 +1,356 @@ +/*==========================================================================; + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: dxmini.h + * Content: Miniport support for DirectDraw DXAPI. This file is + * analagous to Win95's ddkmmini.h. + * + ***************************************************************************/ + +#include + +#ifndef __DXMINI_INCLUDED__ +#define __DXMINI_INCLUDED__ + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +DEFINE_GUID(GUID_DxApi, 0x8a79bef0, 0xb915, 0x11d0, 0x91, 0x44, 0x08, 0x00, 0x36, 0xd2, 0xef, 0x02); + +#ifndef GUID_DEFS_ONLY +/*============================================================================ + * + * MDL structure for handling pagelocked memory. This is copied from WDM.H + * + *==========================================================================*/ + +#ifndef MDL_MAPPING_FLAGS + + typedef struct _MDL { + struct _MDL *MdlNext; + short MdlSize; + short MdlFlags; + struct _EPROCESS *Process; + ULONG *lpMappedSystemVa; + ULONG *lpStartVa; + ULONG ByteCount; + ULONG ByteOffset; + } MDL; + typedef MDL *PMDL; + + #define MDL_MAPPED_TO_SYSTEM_VA 0x0001 + #define MDL_PAGES_LOCKED 0x0002 + #define MDL_SOURCE_IS_NONPAGED_POOL 0x0004 + #define MDL_ALLOCATED_FIXED_SIZE 0x0008 + #define MDL_PARTIAL 0x0010 + #define MDL_PARTIAL_HAS_BEEN_MAPPED 0x0020 + #define MDL_IO_PAGE_READ 0x0040 + #define MDL_WRITE_OPERATION 0x0080 + #define MDL_PARENT_MAPPED_SYSTEM_VA 0x0100 + #define MDL_LOCK_HELD 0x0200 + #define MDL_SCATTER_GATHER_VA 0x0400 + #define MDL_IO_SPACE 0x0800 + #define MDL_NETWORK_HEADER 0x1000 + #define MDL_MAPPING_CAN_FAIL 0x2000 + #define MDL_ALLOCATED_MUST_SUCCEED 0x4000 + #define MDL_64_BIT_VA 0x8000 + + #define MDL_MAPPING_FLAGS (MDL_MAPPED_TO_SYSTEM_VA | \ + MDL_PAGES_LOCKED | \ + MDL_SOURCE_IS_NONPAGED_POOL | \ + MDL_PARTIAL_HAS_BEEN_MAPPED | \ + MDL_PARENT_MAPPED_SYSTEM_VA | \ + MDL_LOCK_HELD | \ + MDL_SYSTEM_VA | \ + MDL_IO_SPACE ) +#endif + +/*============================================================================ + * + * Error values that may be returned by the miniport + * + *==========================================================================*/ + +#define DX_OK 0x0 +#define DXERR_UNSUPPORTED 0x80004001 +#define DXERR_GENERIC 0x80004005 +#define DXERR_OUTOFCAPS 0x88760168 + +/*============================================================================ + * + * Structures maintained by DirectDraw + * + *==========================================================================*/ + +#define DDOVER_AUTOFLIP 0x00100000l +#define DDOVER_BOB 0x00200000l +#define DDOVER_OVERRIDEBOBWEAVE 0x00400000l +#define DDOVER_INTERLEAVED 0x00800000l + +// +// Data for every DXAPI surface +// + +typedef struct _DDSURFACEDATA { + DWORD ddsCaps; // Ring 3 creation caps + DWORD dwSurfaceOffset; // Offset in frame buffer of surface + ULONG_PTR fpLockPtr; // Surface lock ptr + DWORD dwWidth; // Surface width + DWORD dwHeight; // Surface height + LONG lPitch; // Surface pitch + DWORD dwOverlayFlags; // DDOVER_XX flags + DWORD dwOverlayOffset; // Offset in frame buffer of overlay + DWORD dwOverlaySrcWidth; // Src width of overlay + DWORD dwOverlaySrcHeight; // Src height of overlay + DWORD dwOverlayDestWidth; // Dest width of overlay + DWORD dwOverlayDestHeight; // Dest height of overlay + DWORD dwVideoPortId; // ID of video port (-1 if not connected to a video port) + DWORD dwFormatFlags; + DWORD dwFormatFourCC; + DWORD dwFormatBitCount; + DWORD dwRBitMask; + DWORD dwGBitMask; + DWORD dwBBitMask; + ULONG dwDriverReserved1; // Reserved for the HAL/Miniport + ULONG dwDriverReserved2; // Reserved for the HAL/Miniport + ULONG dwDriverReserved3; // Reserved for the HAL/Miniport + ULONG dwDriverReserved4; // Reserved for the HAL/Miniport +} DDSURFACEDATA, *LPDDSURFACEDATA; + +// +// Data for every DXAPI video port +// + +typedef struct DDVIDEOPORTDATA { + DWORD dwVideoPortId; // ID of video port (0 - MaxVideoPorts-1) + DWORD dwVPFlags; // Video port DDVP_ option flags + DWORD dwOriginOffset; // Start address relative to surface + DWORD dwHeight; // Height of total video region (per field) + DWORD dwVBIHeight; // Height of VBI region (per field) + ULONG dwDriverReserved1; // Reserved for the HAL/Miniport + ULONG dwDriverReserved2; // Reserved for the HAL/Miniport + ULONG dwDriverReserved3; // Reserved for the HAL/Miniport +} DDVIDEOPORTDATA, *LPDDVIDEOPORTDATA; + + +/*============================================================================ + * + * Structures used to communicate with the Miniport + * + *==========================================================================*/ + +typedef struct _DX_IRQDATA { + DWORD dwIrqFlags; // DDIRQ_ flags ORed in by miniport +} DX_IRQDATA, *PDX_IRQDATA; + +typedef VOID (*PDX_IRQCALLBACK)(PDX_IRQDATA pIrqData); + +#define DDIRQ_DISPLAY_VSYNC 0x00000001l +#define DDIRQ_BUSMASTER 0x00000002l +#define DDIRQ_VPORT0_VSYNC 0x00000004l +#define DDIRQ_VPORT0_LINE 0x00000008l +#define DDIRQ_VPORT1_VSYNC 0x00000010l +#define DDIRQ_VPORT1_LINE 0x00000020l +#define DDIRQ_VPORT2_VSYNC 0x00000040l +#define DDIRQ_VPORT2_LINE 0x00000080l +#define DDIRQ_VPORT3_VSYNC 0x00000100l +#define DDIRQ_VPORT3_LINE 0x00000200l +#define DDIRQ_VPORT4_VSYNC 0x00000400l +#define DDIRQ_VPORT4_LINE 0x00000800l +#define DDIRQ_VPORT5_VSYNC 0x00001000l +#define DDIRQ_VPORT5_LINE 0x00002000l +#define DDIRQ_VPORT6_VSYNC 0x00004000l +#define DDIRQ_VPORT6_LINE 0x00008000l +#define DDIRQ_VPORT7_VSYNC 0x00010000l +#define DDIRQ_VPORT7_LINE 0x00020000l +#define DDIRQ_VPORT8_VSYNC 0x00040000l +#define DDIRQ_VPORT8_LINE 0x00080000l +#define DDIRQ_VPORT9_VSYNC 0x00010000l +#define DDIRQ_VPORT9_LINE 0x00020000l + +// output from DxGetIrqInfo +typedef struct _DDGETIRQINFO { + DWORD dwFlags; +} DDGETIRQINFO, *PDDGETIRQINFO; +#define IRQINFO_HANDLED 0x01 // Miniport is managing IRQ +#define IRQINFO_NOTHANDLED 0x02 // Not supported on NT + +// input to DxEnableIrq +typedef struct _DDENABLEIRQINFO { + DWORD dwIRQSources; + DWORD dwLine; // Line for DDIRQ_VPORTx_LINE interrupt + PDX_IRQCALLBACK IRQCallback; // Miniport calls this when IRQ happens + PDX_IRQDATA lpIRQData; // Parameter to be passed to IRQCallback +} DDENABLEIRQINFO, *PDDENABLEIRQINFO; + +// input to DxSkipNextField +typedef struct _DDSKIPNEXTFIELDINFO { + LPDDVIDEOPORTDATA lpVideoPortData; + DWORD dwSkipFlags; +} DDSKIPNEXTFIELDINFO, *PDDSKIPNEXTFIELDINFO; + +#define DDSKIP_SKIPNEXT 1 +#define DDSKIP_ENABLENEXT 2 + +// intput to DxBobNextField +typedef struct _DDBOBNEXTFIELDINFO { + LPDDSURFACEDATA lpSurface; +} DDBOBNEXTFIELDINFO, *PDDBOBNEXTFIELDINFO; + +// intput to DxSetState +typedef struct _DDSETSTATEININFO { + LPDDSURFACEDATA lpSurfaceData; + LPDDVIDEOPORTDATA lpVideoPortData; +} DDSETSTATEININFO, *PDDSETSTATEININFO; + +// output from DxSetState +typedef struct _DDSETSTATEOUTINFO { + BOOL bSoftwareAutoflip; + DWORD dwSurfaceIndex; + DWORD dwVBISurfaceIndex; +} DDSETSTATEOUTINFO, *PDDSETSTATEOUTINFO; + +// input to DxLock +typedef struct _DDLOCKININFO { + LPDDSURFACEDATA lpSurfaceData; +} DDLOCKININFO, *PDDLOCKININFO; + +// output from DxLock +typedef struct _DDLOCKOUTINFO { + ULONG_PTR dwSurfacePtr; +} DDLOCKOUTINFO, *PDDLOCKOUTINFO; + +// input to DxFlipOverlay +typedef struct _DDFLIPOVERLAYINFO { + LPDDSURFACEDATA lpCurrentSurface; + LPDDSURFACEDATA lpTargetSurface; + DWORD dwFlags; +} DDFLIPOVERLAYINFO, *PDDFLIPOVERLAYINFO; + +// intput to DxFlipVideoPort +typedef struct _DDFLIPVIDEOPORTINFO { + LPDDVIDEOPORTDATA lpVideoPortData; + LPDDSURFACEDATA lpCurrentSurface; + LPDDSURFACEDATA lpTargetSurface; + DWORD dwFlipVPFlags; +} DDFLIPVIDEOPORTINFO, *PDDFLIPVIDEOPORTINFO; + +#define DDVPFLIP_VIDEO 0x00000001l +#define DDVPFLIP_VBI 0x00000002l + +// input to DxGetPolarity +typedef struct _DDGETPOLARITYININFO { + LPDDVIDEOPORTDATA lpVideoPortData; +} DDGETPOLARITYININFO, *PDDGETPOLARITYININFO; + +// output from DxGetPolarity +typedef struct _DDGETPOLARITYOUTINFO { + DWORD bPolarity; +} DDGETPOLARITYOUTINFO, *PDDGETPOLARITYOUTINFO; + +// input to DxGetCurrentAutoflipSurface +typedef struct _DDGETCURRENTAUTOFLIPININFO { + LPDDVIDEOPORTDATA lpVideoPortData; +} DDGETCURRENTAUTOFLIPININFO, *PDDGETCURRENTAUTOFLIPININFO; + +// output from DxGetCurrentAutoflipSurface +typedef struct _DDGETCURRENTAUTOFLIPOUTINFO { + DWORD dwSurfaceIndex; + DWORD dwVBISurfaceIndex; +} DDGETCURRENTAUTOFLIPOUTINFO, *PDDGETCURRENTAUTOFLIPOUTINFO; + +// input to DxGetPreviousAutoflipSurface +typedef struct _DDGETPREVIOUSAUTOFLIPININFO { + LPDDVIDEOPORTDATA lpVideoPortData; +} DDGETPREVIOUSAUTOFLIPININFO, *PDDGETPREVIOUSAUTOFLIPININFO; + +// output from DxGetPreviousAutoflipSurface +typedef struct _DDGETPREVIOUSAUTOFLIPOUTINFO { + DWORD dwSurfaceIndex; + DWORD dwVBISurfaceIndex; +} DDGETPREVIOUSAUTOFLIPOUTINFO, *PDDGETPREVIOUSAUTOFLIPOUTINFO; + +// intput to DxTransfer +typedef struct _DDTRANSFERININFO { + LPDDSURFACEDATA lpSurfaceData; + DWORD dwStartLine; + DWORD dwEndLine; + ULONG_PTR dwTransferID; + DWORD dwTransferFlags; + PMDL lpDestMDL; +} DDTRANSFERININFO, *PDDTRANSFERININFO; + +#define DDTRANSFER_SYSTEMMEMORY 0x00000001 +#define DDTRANSFER_NONLOCALVIDMEM 0x00000002 +#define DDTRANSFER_INVERT 0x00000004 +#define DDTRANSFER_CANCEL 0x00000080 +#define DDTRANSFER_HALFLINES 0x00000100 + +// output from DxTransfer +typedef struct _DDTRANSFEROUTINFO { + DWORD dwBufferPolarity; +} DDTRANSFEROUTINFO, *PDDTRANSFEROUTINFO; + +// output from DxGetTransferStatus +typedef struct _DDGETTRANSFERSTATUSOUTINFO { + DWORD_PTR dwTransferID; +} DDGETTRANSFERSTATUSOUTINFO, *PDDGETTRANSFEROUTINFO; + +/*============================================================================ + * + * DXAPI function prototypes + * + *==========================================================================*/ + +typedef DWORD (*PDX_GETIRQINFO)(PVOID,PVOID,PDDGETIRQINFO); +typedef DWORD (*PDX_ENABLEIRQ)(PVOID,PDDENABLEIRQINFO,PVOID); +typedef DWORD (*PDX_SKIPNEXTFIELD)(PVOID,PDDSKIPNEXTFIELDINFO,PVOID); +typedef DWORD (*PDX_BOBNEXTFIELD)(PVOID,PDDBOBNEXTFIELDINFO,PVOID); +typedef DWORD (*PDX_SETSTATE)(PVOID,PDDSETSTATEININFO,PDDSETSTATEOUTINFO); +typedef DWORD (*PDX_LOCK)(PVOID,PDDLOCKININFO,PDDLOCKOUTINFO); +typedef DWORD (*PDX_FLIPOVERLAY)(PVOID,PDDFLIPOVERLAYINFO,PVOID); +typedef DWORD (*PDX_FLIPVIDEOPORT)(PVOID,PDDFLIPVIDEOPORTINFO,PVOID); +typedef DWORD (*PDX_GETPOLARITY)(PVOID,PDDGETPOLARITYININFO,PDDGETPOLARITYOUTINFO); +typedef DWORD (*PDX_GETCURRENTAUTOFLIP)(PVOID,PDDGETCURRENTAUTOFLIPININFO,PDDGETCURRENTAUTOFLIPOUTINFO); +typedef DWORD (*PDX_GETPREVIOUSAUTOFLIP)(PVOID,PDDGETPREVIOUSAUTOFLIPININFO,PDDGETPREVIOUSAUTOFLIPOUTINFO); +typedef DWORD (*PDX_TRANSFER)(PVOID,PDDTRANSFERININFO,PDDTRANSFEROUTINFO); +typedef DWORD (*PDX_GETTRANSFERSTATUS)(PVOID,PVOID,PDDGETTRANSFEROUTINFO); + +/*============================================================================ + * + * HAL table filled in by the miniport and called by DirectDraw + * + *==========================================================================*/ + +#define DXAPI_HALVERSION 0x0001 + +typedef struct _DXAPI_INTERFACE { + + USHORT Size; + USHORT Version; + PVOID Context; + PVOID InterfaceReference; + PVOID InterfaceDereference; + PDX_GETIRQINFO DxGetIrqInfo; + PDX_ENABLEIRQ DxEnableIrq; + PDX_SKIPNEXTFIELD DxSkipNextField; + PDX_BOBNEXTFIELD DxBobNextField; + PDX_SETSTATE DxSetState; + PDX_LOCK DxLock; + PDX_FLIPOVERLAY DxFlipOverlay; + PDX_FLIPVIDEOPORT DxFlipVideoPort; + PDX_GETPOLARITY DxGetPolarity; + PDX_GETCURRENTAUTOFLIP DxGetCurrentAutoflip; + PDX_GETPREVIOUSAUTOFLIP DxGetPreviousAutoflip; + PDX_TRANSFER DxTransfer; + PDX_GETTRANSFERSTATUS DxGetTransferStatus; + +} DXAPI_INTERFACE, *PDXAPI_INTERFACE; + +#endif // GUID_DEFS_ONLY + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxtmpl.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxtmpl.h new file mode 100644 index 0000000000000000000000000000000000000000..81cde355007deea4c9e67715177ded2ac6e98f3a --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxtmpl.h @@ -0,0 +1,1353 @@ +//+--------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation. All Rights Reserved. +// +// File: dxtmpl.h +// +// Description: +// This is the header file contains the DX collection class templates. It +// has been derived from the MFC collection templates for compatibility. +// +//---------------------------------------------------------------------------- + +#ifndef DXTmpl_h +#define DXTmpl_h + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifndef _INC_LIMITS +#include +#endif + +#ifndef _INC_STRING +#include +#endif + +#ifndef _INC_STDLIB +#include +#endif + +#ifndef _INC_SEARCH +#include +#endif + +#define DXASSERT_VALID( pObj ) + +#ifndef PASCAL_INLINE +#ifdef _M_CEE_PURE +#define PASCAL_INLINE __clrcall +#else +#define PASCAL_INLINE PASCAL +#endif +#endif + +///////////////////////////////////////////////////////////////////////////// +typedef void* DXLISTPOS; +typedef DWORD DXLISTHANDLE; + +#define DX_BEFORE_START_POSITION ((void*)-1L) + +inline BOOL DXIsValidAddress(const void* lp, UINT nBytes, BOOL bReadWrite) +{ + // simple version using Win-32 APIs for pointer validation. + return (lp != NULL && !IsBadReadPtr(lp, nBytes) && + (!bReadWrite || !IsBadWritePtr((LPVOID)lp, nBytes))); +} + +///////////////////////////////////////////////////////////////////////////// +// global helpers (can be overridden) +template +inline void DXConstructElements(TYPE* pElements, int nCount) +{ + _ASSERT( nCount == 0 || + DXIsValidAddress( pElements, nCount * sizeof(TYPE), TRUE ) ); + + // default is bit-wise zero initialization + memset((void*)pElements, 0, nCount * sizeof(TYPE)); +} + +template +inline void DXDestructElements(TYPE* pElements, int nCount) +{ + _ASSERT( ( nCount == 0 || + DXIsValidAddress( pElements, nCount * sizeof(TYPE), TRUE ) ) ); + (void)pElements; // not used + (void)nCount; // not used + + // default does nothing +} + +template +inline void DXCopyElements(TYPE* pDest, const TYPE* pSrc, int nCount) +{ + _ASSERT( ( nCount == 0 || + DXIsValidAddress( pDest, nCount * sizeof(TYPE), TRUE )) ); + _ASSERT( ( nCount == 0 || + DXIsValidAddress( pSrc, nCount * sizeof(TYPE), FALSE )) ); + + // default is bit-wise copy + memcpy(pDest, pSrc, nCount * sizeof(TYPE)); +} + +template +BOOL DXCompareElements(const TYPE* pElement1, const ARG_TYPE* pElement2) +{ + _ASSERT( DXIsValidAddress( pElement1, sizeof(TYPE), FALSE ) ); + _ASSERT( DXIsValidAddress( pElement2, sizeof(ARG_TYPE), FALSE ) ); + return *pElement1 == *pElement2; +} + +template +inline UINT DXHashKey(ARG_KEY key) +{ + // default identity hash - works for most primitive values + return ((UINT)(void*)(DWORD)key) >> 4; +} + +///////////////////////////////////////////////////////////////////////////// +// CDXPlex + +struct CDXPlex // warning variable length structure +{ + CDXPlex* pNext; + UINT nMax; + UINT nCur; + /* BYTE data[maxNum*elementSize]; */ + void* data() { return this+1; } + + static CDXPlex* PASCAL_INLINE Create( CDXPlex*& pHead, UINT nMax, UINT cbElement ) + { + if ((SIZE_T)(nMax * cbElement) > (SIZE_MAX - sizeof(CDXPlex))) + return NULL; + CDXPlex* p = (CDXPlex*) new BYTE[sizeof(CDXPlex) + nMax * cbElement]; + if (p == NULL) + return NULL; + p->nMax = nMax; + p->nCur = 0; + p->pNext = pHead; + pHead = p; // change head (adds in reverse order for simplicity) + return p; + } + + void FreeDataChain() + { + CDXPlex* p = this; + while (p != NULL) + { + BYTE* bytes = (BYTE*) p; + CDXPlex* pNext = p->pNext; + delete [] bytes; + p = pNext; + } + } +}; + + +///////////////////////////////////////////////////////////////////////////// +// CDXArray + +template +class CDXArray +{ +public: +// Construction + CDXArray(); + +// Attributes + int GetSize() const; + int GetUpperBound() const; + void SetSize(int nNewSize, int nGrowBy = -1); + +// Operations + // Clean up + void FreeExtra(); + void RemoveAll(); + + // Accessing elements + TYPE GetAt(int nIndex) const; + void SetAt(int nIndex, ARG_TYPE newElement); + TYPE& ElementAt(int nIndex); + + // Direct Access to the element data (may return NULL) + const TYPE* GetData() const; + TYPE* GetData(); + + // Potentially growing the array + void SetAtGrow(int nIndex, ARG_TYPE newElement); + int Add(ARG_TYPE newElement); + int Append(const CDXArray& src); + void Copy(const CDXArray& src); + + // overloaded operator helpers + TYPE operator[](int nIndex) const; + TYPE& operator[](int nIndex); + + // Operations that move elements around + void InsertAt(int nIndex, ARG_TYPE newElement, int nCount = 1); + void RemoveAt(int nIndex, int nCount = 1); + void InsertAt(int nStartIndex, CDXArray* pNewArray); + void Sort(int (__cdecl *compare )(const void *elem1, const void *elem2 )); + +// Implementation +protected: + TYPE* m_pData; // the actual array of data + int m_nSize; // # of elements (upperBound - 1) + int m_nMaxSize; // max allocated + int m_nGrowBy; // grow amount + +public: + ~CDXArray(); +#ifdef _DEBUG +// void Dump(CDumpContext&) const; + void AssertValid() const; +#endif +}; + +///////////////////////////////////////////////////////////////////////////// +// CDXArray inline functions + +template +inline int CDXArray::GetSize() const + { return m_nSize; } +template +inline int CDXArray::GetUpperBound() const + { return m_nSize-1; } +template +inline void CDXArray::RemoveAll() + { SetSize(0, -1); } +template +inline TYPE CDXArray::GetAt(int nIndex) const + { _ASSERT( (nIndex >= 0 && nIndex < m_nSize) ); + return m_pData[nIndex]; } +template +inline void CDXArray::SetAt(int nIndex, ARG_TYPE newElement) + { _ASSERT( (nIndex >= 0 && nIndex < m_nSize) ); + m_pData[nIndex] = newElement; } +template +inline TYPE& CDXArray::ElementAt(int nIndex) + { _ASSERT( (nIndex >= 0 && nIndex < m_nSize) ); + return m_pData[nIndex]; } +template +inline const TYPE* CDXArray::GetData() const + { return (const TYPE*)m_pData; } +template +inline TYPE* CDXArray::GetData() + { return (TYPE*)m_pData; } +template +inline int CDXArray::Add(ARG_TYPE newElement) + { int nIndex = m_nSize; + SetAtGrow(nIndex, newElement); + return nIndex; } +template +inline TYPE CDXArray::operator[](int nIndex) const + { return GetAt(nIndex); } +template +inline TYPE& CDXArray::operator[](int nIndex) + { return ElementAt(nIndex); } + +///////////////////////////////////////////////////////////////////////////// +// CDXArray out-of-line functions + +template +CDXArray::CDXArray() +{ + m_pData = NULL; + m_nSize = m_nMaxSize = m_nGrowBy = 0; +} + +template +CDXArray::~CDXArray() +{ + DXASSERT_VALID( this ); + + if (m_pData != NULL) + { + DXDestructElements(m_pData, m_nSize); + delete[] (BYTE*)m_pData; + } +} + +template +void CDXArray::SetSize(int nNewSize, int nGrowBy) +{ + DXASSERT_VALID( this ); + _ASSERT( nNewSize >= 0 ); + + if (nGrowBy != -1) + m_nGrowBy = nGrowBy; // set new size + + if (nNewSize == 0) + { + // shrink to nothing + if (m_pData != NULL) + { + DXDestructElements(m_pData, m_nSize); + delete[] (BYTE*)m_pData; + m_pData = NULL; + } + m_nSize = m_nMaxSize = 0; + } + else if (m_pData == NULL) + { + // create one with exact size +#ifdef SIZE_T_MAX + _ASSERT( nNewSize <= SIZE_T_MAX/sizeof(TYPE) ); // no overflow +#endif + m_pData = (TYPE*) new BYTE[nNewSize * sizeof(TYPE)]; + DXConstructElements(m_pData, nNewSize); + m_nSize = m_nMaxSize = nNewSize; + } + else if (nNewSize <= m_nMaxSize) + { + // it fits + if (nNewSize > m_nSize) + { + // initialize the new elements + DXConstructElements(&m_pData[m_nSize], nNewSize-m_nSize); + } + else if (m_nSize > nNewSize) + { + // destroy the old elements + DXDestructElements(&m_pData[nNewSize], m_nSize-nNewSize); + } + m_nSize = nNewSize; + } + else + { + // otherwise, grow array + int nGrowBy = m_nGrowBy; + if (nGrowBy == 0) + { + // heuristically determe growth when nGrowBy == 0 + // (this avoids heap fragmentation in many situations) + nGrowBy = min(1024, max(4, m_nSize / 8)); + } + int nNewMax; + if (nNewSize < m_nMaxSize + nGrowBy) + nNewMax = m_nMaxSize + nGrowBy; // granularity + else + nNewMax = nNewSize; // no slush + + _ASSERT( nNewMax >= m_nMaxSize ); // no wrap around +#ifdef SIZE_T_MAX + _ASSERT( nNewMax <= SIZE_T_MAX/sizeof(TYPE) ); // no overflow +#endif + TYPE* pNewData = (TYPE*) new BYTE[nNewMax * sizeof(TYPE)]; + + // oh well, it's better than crashing + if (pNewData == NULL) + return; + + // copy new data from old + memcpy(pNewData, m_pData, m_nSize * sizeof(TYPE)); + + // construct remaining elements + _ASSERT( nNewSize > m_nSize ); + DXConstructElements(&pNewData[m_nSize], nNewSize-m_nSize); + + // get rid of old stuff (note: no destructors called) + delete[] (BYTE*)m_pData; + m_pData = pNewData; + m_nSize = nNewSize; + m_nMaxSize = nNewMax; + } +} + +template +int CDXArray::Append(const CDXArray& src) +{ + DXASSERT_VALID( this ); + _ASSERT( this != &src ); // cannot append to itself + + int nOldSize = m_nSize; + SetSize(m_nSize + src.m_nSize); + DXCopyElements(m_pData + nOldSize, src.m_pData, src.m_nSize); + return nOldSize; +} + +template +void CDXArray::Copy(const CDXArray& src) +{ + DXASSERT_VALID( this ); + _ASSERT( this != &src ); // cannot copy to itself + + SetSize(src.m_nSize); + DXCopyElements(m_pData, src.m_pData, src.m_nSize); +} + +template +void CDXArray::FreeExtra() +{ + DXASSERT_VALID( this ); + + if (m_nSize != m_nMaxSize) + { + // shrink to desired size +#ifdef SIZE_T_MAX + _ASSERT( m_nSize <= SIZE_T_MAX/sizeof(TYPE)); // no overflow +#endif + TYPE* pNewData = NULL; + if (m_nSize != 0) + { + pNewData = (TYPE*) new BYTE[m_nSize * sizeof(TYPE)]; + + // oh well, it's better than crashing + if (pNewData == NULL) + return; + + // copy new data from old + memcpy(pNewData, m_pData, m_nSize * sizeof(TYPE)); + } + + // get rid of old stuff (note: no destructors called) + delete[] (BYTE*)m_pData; + m_pData = pNewData; + m_nMaxSize = m_nSize; + } +} + +template +void CDXArray::SetAtGrow(int nIndex, ARG_TYPE newElement) +{ + DXASSERT_VALID( this ); + _ASSERT( nIndex >= 0 ); + + if (nIndex >= m_nSize) + SetSize(nIndex+1, -1); + m_pData[nIndex] = newElement; +} + +template +void CDXArray::InsertAt(int nIndex, ARG_TYPE newElement, int nCount /*=1*/) +{ + DXASSERT_VALID( this ); + _ASSERT( nIndex >= 0 ); // will expand to meet need + _ASSERT( nCount > 0 ); // zero or negative size not allowed + + if (nIndex >= m_nSize) + { + // adding after the end of the array + SetSize(nIndex + nCount, -1); // grow so nIndex is valid + } + else + { + // inserting in the middle of the array + int nOldSize = m_nSize; + SetSize(m_nSize + nCount, -1); // grow it to new size + // shift old data up to fill gap + memmove(&m_pData[nIndex+nCount], &m_pData[nIndex], + (nOldSize-nIndex) * sizeof(TYPE)); + + // re-init slots we copied from + DXConstructElements(&m_pData[nIndex], nCount); + } + + // insert new value in the gap + _ASSERT( nIndex + nCount <= m_nSize ); + while (nCount--) + m_pData[nIndex++] = newElement; +} + +template +void CDXArray::RemoveAt(int nIndex, int nCount) +{ + DXASSERT_VALID( this ); + _ASSERT( nIndex >= 0 ); + _ASSERT( nCount >= 0 ); + _ASSERT( nIndex + nCount <= m_nSize ); + + // just remove a range + int nMoveCount = m_nSize - (nIndex + nCount); + DXDestructElements(&m_pData[nIndex], nCount); + if (nMoveCount) + memcpy(&m_pData[nIndex], &m_pData[nIndex + nCount], + nMoveCount * sizeof(TYPE)); + m_nSize -= nCount; +} + +template +void CDXArray::InsertAt(int nStartIndex, CDXArray* pNewArray) +{ + DXASSERT_VALID( this ); + DXASSERT_VALID( pNewArray ); + _ASSERT( nStartIndex >= 0 ); + + if (pNewArray->GetSize() > 0) + { + InsertAt(nStartIndex, pNewArray->GetAt(0), pNewArray->GetSize()); + for (int i = 0; i < pNewArray->GetSize(); i++) + SetAt(nStartIndex + i, pNewArray->GetAt(i)); + } +} + +template +void CDXArray::Sort(int (__cdecl *compare )(const void *elem1, const void *elem2 )) +{ + DXASSERT_VALID( this ); + _ASSERT( m_pData != NULL ); + + qsort( m_pData, m_nSize, sizeof(TYPE), compare ); +} + +#ifdef _DEBUG +template +void CDXArray::AssertValid() const +{ + if (m_pData == NULL) + { + _ASSERT( m_nSize == 0 ); + _ASSERT( m_nMaxSize == 0 ); + } + else + { + _ASSERT( m_nSize >= 0 ); + _ASSERT( m_nMaxSize >= 0 ); + _ASSERT( m_nSize <= m_nMaxSize ); + _ASSERT( DXIsValidAddress(m_pData, m_nMaxSize * sizeof(TYPE), TRUE ) ); + } +} +#endif //_DEBUG + +///////////////////////////////////////////////////////////////////////////// +// CDXList + +template +class CDXList +{ +protected: + struct CNode + { + CNode* pNext; + CNode* pPrev; + TYPE data; + }; +public: + +// Construction + CDXList(int nBlockSize = 10); + +// Attributes (head and tail) + // count of elements + int GetCount() const; + BOOL IsEmpty() const; + + // peek at head or tail + TYPE& GetHead(); + TYPE GetHead() const; + TYPE& GetTail(); + TYPE GetTail() const; + +// Operations + // get head or tail (and remove it) - don't call on empty list ! + TYPE RemoveHead(); + TYPE RemoveTail(); + + // add before head or after tail + DXLISTPOS AddHead(ARG_TYPE newElement); + DXLISTPOS AddTail(ARG_TYPE newElement); + + // add another list of elements before head or after tail + void AddHead(CDXList* pNewList); + void AddTail(CDXList* pNewList); + + // remove all elements + void RemoveAll(); + + // iteration + DXLISTPOS GetHeadPosition() const; + DXLISTPOS GetTailPosition() const; + TYPE& GetNext(DXLISTPOS& rPosition); // return *Position++ + TYPE GetNext(DXLISTPOS& rPosition) const; // return *Position++ + TYPE& GetPrev(DXLISTPOS& rPosition); // return *Position-- + TYPE GetPrev(DXLISTPOS& rPosition) const; // return *Position-- + + // getting/modifying an element at a given position + TYPE& GetAt(DXLISTPOS position); + TYPE GetAt(DXLISTPOS position) const; + void SetAt(DXLISTPOS pos, ARG_TYPE newElement); + void RemoveAt(DXLISTPOS position); + + // inserting before or after a given position + DXLISTPOS InsertBefore(DXLISTPOS position, ARG_TYPE newElement); + DXLISTPOS InsertAfter(DXLISTPOS position, ARG_TYPE newElement); + + // helper functions (note: O(n) speed) + DXLISTPOS Find(ARG_TYPE searchValue, DXLISTPOS startAfter = NULL) const; + // defaults to starting at the HEAD, return NULL if not found + DXLISTPOS FindIndex(int nIndex) const; + // get the 'nIndex'th element (may return NULL) + +// Implementation +protected: + CNode* m_pNodeHead; + CNode* m_pNodeTail; + int m_nCount; + CNode* m_pNodeFree; + struct CDXPlex* m_pBlocks; + int m_nBlockSize; + + CNode* NewNode(CNode*, CNode*); + void FreeNode(CNode*); + +public: + ~CDXList(); +#ifdef _DEBUG + void AssertValid() const; +#endif +}; + +///////////////////////////////////////////////////////////////////////////// +// CDXList inline functions + +template +inline int CDXList::GetCount() const + { return m_nCount; } +template +inline BOOL CDXList::IsEmpty() const + { return m_nCount == 0; } +template +inline TYPE& CDXList::GetHead() + { _ASSERT( m_pNodeHead != NULL ); + return m_pNodeHead->data; } +template +inline TYPE CDXList::GetHead() const + { _ASSERT( m_pNodeHead != NULL ); + return m_pNodeHead->data; } +template +inline TYPE& CDXList::GetTail() + { _ASSERT( m_pNodeTail != NULL ); + return m_pNodeTail->data; } +template +inline TYPE CDXList::GetTail() const + { _ASSERT( m_pNodeTail != NULL ); + return m_pNodeTail->data; } +template +inline DXLISTPOS CDXList::GetHeadPosition() const + { return (DXLISTPOS) m_pNodeHead; } +template +inline DXLISTPOS CDXList::GetTailPosition() const + { return (DXLISTPOS) m_pNodeTail; } +template +inline TYPE& CDXList::GetNext(DXLISTPOS& rPosition) // return *Position++ + { CNode* pNode = (CNode*) rPosition; + _ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) ); + rPosition = (DXLISTPOS) pNode->pNext; + return pNode->data; } +template +inline TYPE CDXList::GetNext(DXLISTPOS& rPosition) const // return *Position++ + { CNode* pNode = (CNode*) rPosition; + _ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) ); + rPosition = (DXLISTPOS) pNode->pNext; + return pNode->data; } +template +inline TYPE& CDXList::GetPrev(DXLISTPOS& rPosition) // return *Position-- + { CNode* pNode = (CNode*) rPosition; + _ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) ); + rPosition = (DXLISTPOS) pNode->pPrev; + return pNode->data; } +template +inline TYPE CDXList::GetPrev(DXLISTPOS& rPosition) const // return *Position-- + { CNode* pNode = (CNode*) rPosition; + _ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) ); + rPosition = (DXLISTPOS) pNode->pPrev; + return pNode->data; } +template +inline TYPE& CDXList::GetAt(DXLISTPOS position) + { CNode* pNode = (CNode*) position; + _ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) ); + return pNode->data; } +template +inline TYPE CDXList::GetAt(DXLISTPOS position) const + { CNode* pNode = (CNode*) position; + _ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) ); + return pNode->data; } +template +inline void CDXList::SetAt(DXLISTPOS pos, ARG_TYPE newElement) + { CNode* pNode = (CNode*) pos; + _ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) ); + pNode->data = newElement; } + +///////////////////////////////////////////////////////////////////////////// +// CDXList out-of-line functions + +template +CDXList::CDXList( int nBlockSize ) +{ + _ASSERT( nBlockSize > 0 ); + + m_nCount = 0; + m_pNodeHead = m_pNodeTail = m_pNodeFree = NULL; + m_pBlocks = NULL; + m_nBlockSize = nBlockSize; +} + +template +void CDXList::RemoveAll() +{ + DXASSERT_VALID( this ); + + // destroy elements + CNode* pNode; + for (pNode = m_pNodeHead; pNode != NULL; pNode = pNode->pNext) + DXDestructElements(&pNode->data, 1); + + m_nCount = 0; + m_pNodeHead = m_pNodeTail = m_pNodeFree = NULL; + m_pBlocks->FreeDataChain(); + m_pBlocks = NULL; +} + +template +CDXList::~CDXList() +{ + RemoveAll(); + _ASSERT( m_nCount == 0 ); +} + +///////////////////////////////////////////////////////////////////////////// +// Node helpers +// +// Implementation note: CNode's are stored in CDXPlex blocks and +// chained together. Free blocks are maintained in a singly linked list +// using the 'pNext' member of CNode with 'm_pNodeFree' as the head. +// Used blocks are maintained in a doubly linked list using both 'pNext' +// and 'pPrev' as links and 'm_pNodeHead' and 'm_pNodeTail' +// as the head/tail. +// +// We never free a CDXPlex block unless the List is destroyed or RemoveAll() +// is used - so the total number of CDXPlex blocks may grow large depending +// on the maximum past size of the list. +// + +template +typename CDXList::CNode* +CDXList::NewNode(CNode* pPrev, CNode* pNext) +{ + if (m_pNodeFree == NULL) + { + // add another block + CDXPlex* pNewBlock = CDXPlex::Create(m_pBlocks, m_nBlockSize, + sizeof(CNode)); + + // chain them into free list + CNode* pNode = (CNode*) pNewBlock->data(); + // free in reverse order to make it easier to debug + pNode += m_nBlockSize - 1; + for (int i = m_nBlockSize-1; i >= 0; i--, pNode--) + { + pNode->pNext = m_pNodeFree; + m_pNodeFree = pNode; + } + } + _ASSERT( m_pNodeFree != NULL ); // we must have something + + CDXList::CNode* pNode = m_pNodeFree; + m_pNodeFree = m_pNodeFree->pNext; + pNode->pPrev = pPrev; + pNode->pNext = pNext; + m_nCount++; + _ASSERT( m_nCount > 0 ); // make sure we don't overflow + + DXConstructElements(&pNode->data, 1); + return pNode; +} + +template +void CDXList::FreeNode(CNode* pNode) +{ + DXDestructElements(&pNode->data, 1); + pNode->pNext = m_pNodeFree; + m_pNodeFree = pNode; + m_nCount--; + _ASSERT( m_nCount >= 0 ); // make sure we don't underflow +} + +template +DXLISTPOS CDXList::AddHead(ARG_TYPE newElement) +{ + DXASSERT_VALID( this ); + + CNode* pNewNode = NewNode(NULL, m_pNodeHead); + pNewNode->data = newElement; + if (m_pNodeHead != NULL) + m_pNodeHead->pPrev = pNewNode; + else + m_pNodeTail = pNewNode; + m_pNodeHead = pNewNode; + return (DXLISTPOS) pNewNode; +} + +template +DXLISTPOS CDXList::AddTail(ARG_TYPE newElement) +{ + DXASSERT_VALID( this ); + + CNode* pNewNode = NewNode(m_pNodeTail, NULL); + pNewNode->data = newElement; + if (m_pNodeTail != NULL) + m_pNodeTail->pNext = pNewNode; + else + m_pNodeHead = pNewNode; + m_pNodeTail = pNewNode; + return (DXLISTPOS) pNewNode; +} + +template +void CDXList::AddHead(CDXList* pNewList) +{ + DXASSERT_VALID( this ); + DXASSERT_VALID( pNewList ); + + // add a list of same elements to head (maintain order) + DXLISTPOS pos = pNewList->GetTailPosition(); + while (pos != NULL) + AddHead(pNewList->GetPrev(pos)); +} + +template +void CDXList::AddTail(CDXList* pNewList) +{ + DXASSERT_VALID( this ); + DXASSERT_VALID( pNewList ); + + // add a list of same elements + DXLISTPOS pos = pNewList->GetHeadPosition(); + while (pos != NULL) + AddTail(pNewList->GetNext(pos)); +} + +template +TYPE CDXList::RemoveHead() +{ + DXASSERT_VALID( this ); + _ASSERT( m_pNodeHead != NULL ); // don't call on empty list !!! + _ASSERT( DXIsValidAddress(m_pNodeHead, sizeof(CNode), TRUE ) ); + + CNode* pOldNode = m_pNodeHead; + TYPE returnValue = pOldNode->data; + + m_pNodeHead = pOldNode->pNext; + if (m_pNodeHead != NULL) + m_pNodeHead->pPrev = NULL; + else + m_pNodeTail = NULL; + FreeNode(pOldNode); + return returnValue; +} + +template +TYPE CDXList::RemoveTail() +{ + DXASSERT_VALID( this ); + _ASSERT( m_pNodeTail != NULL ); // don't call on empty list !!! + _ASSERT( DXIsValidAddress(m_pNodeTail, sizeof(CNode), TRUE ) ); + + CNode* pOldNode = m_pNodeTail; + TYPE returnValue = pOldNode->data; + + m_pNodeTail = pOldNode->pPrev; + if (m_pNodeTail != NULL) + m_pNodeTail->pNext = NULL; + else + m_pNodeHead = NULL; + FreeNode(pOldNode); + return returnValue; +} + +template +DXLISTPOS CDXList::InsertBefore(DXLISTPOS position, ARG_TYPE newElement) +{ + DXASSERT_VALID( this ); + + if (position == NULL) + return AddHead(newElement); // insert before nothing -> head of the list + + // Insert it before position + CNode* pOldNode = (CNode*) position; + CNode* pNewNode = NewNode(pOldNode->pPrev, pOldNode); + pNewNode->data = newElement; + + if (pOldNode->pPrev != NULL) + { + _ASSERT( DXIsValidAddress(pOldNode->pPrev, sizeof(CNode), TRUE ) ); + pOldNode->pPrev->pNext = pNewNode; + } + else + { + _ASSERT( pOldNode == m_pNodeHead ); + m_pNodeHead = pNewNode; + } + pOldNode->pPrev = pNewNode; + return (DXLISTPOS) pNewNode; +} + +template +DXLISTPOS CDXList::InsertAfter(DXLISTPOS position, ARG_TYPE newElement) +{ + DXASSERT_VALID( this ); + + if (position == NULL) + return AddTail(newElement); // insert after nothing -> tail of the list + + // Insert it before position + CNode* pOldNode = (CNode*) position; + _ASSERT( DXIsValidAddress(pOldNode, sizeof(CNode), TRUE )); + CNode* pNewNode = NewNode(pOldNode, pOldNode->pNext); + pNewNode->data = newElement; + + if (pOldNode->pNext != NULL) + { + _ASSERT( DXIsValidAddress(pOldNode->pNext, sizeof(CNode), TRUE )); + pOldNode->pNext->pPrev = pNewNode; + } + else + { + _ASSERT( pOldNode == m_pNodeTail ); + m_pNodeTail = pNewNode; + } + pOldNode->pNext = pNewNode; + return (DXLISTPOS) pNewNode; +} + +template +void CDXList::RemoveAt(DXLISTPOS position) +{ + DXASSERT_VALID( this ); + + CNode* pOldNode = (CNode*) position; + _ASSERT( DXIsValidAddress(pOldNode, sizeof(CNode), TRUE ) ); + + // remove pOldNode from list + if (pOldNode == m_pNodeHead) + { + m_pNodeHead = pOldNode->pNext; + } + else + { + _ASSERT( DXIsValidAddress(pOldNode->pPrev, sizeof(CNode), TRUE ) ); + pOldNode->pPrev->pNext = pOldNode->pNext; + } + if (pOldNode == m_pNodeTail) + { + m_pNodeTail = pOldNode->pPrev; + } + else + { + _ASSERT( DXIsValidAddress(pOldNode->pNext, sizeof(CNode), TRUE ) ); + pOldNode->pNext->pPrev = pOldNode->pPrev; + } + FreeNode(pOldNode); +} + +template +DXLISTPOS CDXList::FindIndex(int nIndex) const +{ + DXASSERT_VALID( this ); + _ASSERT( nIndex >= 0 ); + + if (nIndex >= m_nCount) + return NULL; // went too far + + CNode* pNode = m_pNodeHead; + while (nIndex--) + { + _ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE )); + pNode = pNode->pNext; + } + return (DXLISTPOS) pNode; +} + +template +DXLISTPOS CDXList::Find(ARG_TYPE searchValue, DXLISTPOS startAfter) const +{ + DXASSERT_VALID( this ); + + CNode* pNode = (CNode*) startAfter; + if (pNode == NULL) + { + pNode = m_pNodeHead; // start at head + } + else + { + _ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) ); + pNode = pNode->pNext; // start after the one specified + } + + for (; pNode != NULL; pNode = pNode->pNext) + if (DXCompareElements(&pNode->data, &searchValue)) + return (DXLISTPOS)pNode; + return NULL; +} + +#ifdef _DEBUG +template +void CDXList::AssertValid() const +{ + if (m_nCount == 0) + { + // empty list + _ASSERT( m_pNodeHead == NULL ); + _ASSERT( m_pNodeTail == NULL ); + } + else + { + // non-empty list + _ASSERT( DXIsValidAddress(m_pNodeHead, sizeof(CNode), TRUE )); + _ASSERT( DXIsValidAddress(m_pNodeTail, sizeof(CNode), TRUE )); + } +} +#endif //_DEBUG + +///////////////////////////////////////////////////////////////////////////// +// CDXMap + +template +class CDXMap +{ +protected: + // Association + struct CAssoc + { + CAssoc* pNext; + UINT nHashValue; // needed for efficient iteration + KEY key; + VALUE value; + }; +public: +// Construction + CDXMap( int nBlockSize = 10 ); + +// Attributes + // number of elements + int GetCount() const; + BOOL IsEmpty() const; + + // Lookup + BOOL Lookup(ARG_KEY key, VALUE& rValue) const; + +// Operations + // Lookup and add if not there + VALUE& operator[](ARG_KEY key); + + // add a new (key, value) pair + void SetAt(ARG_KEY key, ARG_VALUE newValue); + + // removing existing (key, ?) pair + BOOL RemoveKey(ARG_KEY key); + void RemoveAll(); + + // iterating all (key, value) pairs + DXLISTPOS GetStartPosition() const; + void GetNextAssoc(DXLISTPOS& rNextPosition, KEY& rKey, VALUE& rValue) const; + + // advanced features for derived classes + UINT GetHashTableSize() const; + void InitHashTable(UINT hashSize, BOOL bAllocNow = TRUE); + +// Implementation +protected: + CAssoc** m_pHashTable; + UINT m_nHashTableSize; + int m_nCount; + CAssoc* m_pFreeList; + struct CDXPlex* m_pBlocks; + int m_nBlockSize; + + CAssoc* NewAssoc(); + void FreeAssoc(CAssoc*); + CAssoc* GetAssocAt(ARG_KEY, UINT&) const; + +public: + ~CDXMap(); +#ifdef _DEBUG +// void Dump(CDumpContext&) const; + void AssertValid() const; +#endif +}; + +///////////////////////////////////////////////////////////////////////////// +// CDXMap inline functions + +template +inline int CDXMap::GetCount() const + { return m_nCount; } +template +inline BOOL CDXMap::IsEmpty() const + { return m_nCount == 0; } +template +inline void CDXMap::SetAt(ARG_KEY key, ARG_VALUE newValue) + { (*this)[key] = newValue; } +template +inline DXLISTPOS CDXMap::GetStartPosition() const + { return (m_nCount == 0) ? NULL : DX_BEFORE_START_POSITION; } +template +inline UINT CDXMap::GetHashTableSize() const + { return m_nHashTableSize; } + +///////////////////////////////////////////////////////////////////////////// +// CDXMap out-of-line functions + +template +CDXMap::CDXMap( int nBlockSize ) +{ + _ASSERT( nBlockSize > 0 ); + + m_pHashTable = NULL; + m_nHashTableSize = 17; // default size + m_nCount = 0; + m_pFreeList = NULL; + m_pBlocks = NULL; + m_nBlockSize = nBlockSize; +} + +template +void CDXMap::InitHashTable( + UINT nHashSize, BOOL bAllocNow) +// +// Used to force allocation of a hash table or to override the default +// hash table size of (which is fairly small) +{ + DXASSERT_VALID( this ); + _ASSERT( m_nCount == 0 ); + _ASSERT( nHashSize > 0 ); + + if (m_pHashTable != NULL) + { + // free hash table + delete[] m_pHashTable; + m_pHashTable = NULL; + } + + if (bAllocNow) + { + m_pHashTable = new CAssoc* [nHashSize]; + + // oh well, it's better than crashing + if (m_pHashTable == NULL) + return; + + memset(m_pHashTable, 0, sizeof(CAssoc*) * nHashSize); + } + m_nHashTableSize = nHashSize; +} + +template +void CDXMap::RemoveAll() +{ + DXASSERT_VALID( this ); + + if (m_pHashTable != NULL) + { + // destroy elements (values and keys) + for (UINT nHash = 0; nHash < m_nHashTableSize; nHash++) + { + CAssoc* pAssoc; + for (pAssoc = m_pHashTable[nHash]; pAssoc != NULL; + pAssoc = pAssoc->pNext) + { + DXDestructElements(&pAssoc->value, 1); + DXDestructElements(&pAssoc->key, 1); + } + } + } + + // free hash table + delete[] m_pHashTable; + m_pHashTable = NULL; + + m_nCount = 0; + m_pFreeList = NULL; + m_pBlocks->FreeDataChain(); + m_pBlocks = NULL; +} + +template +CDXMap::~CDXMap() +{ + RemoveAll(); + _ASSERT( m_nCount == 0 ); +} + +template +typename CDXMap::CAssoc* +CDXMap::NewAssoc() +{ + if (m_pFreeList == NULL) + { + // add another block + CDXPlex* newBlock = CDXPlex::Create(m_pBlocks, m_nBlockSize, sizeof(CDXMap::CAssoc)); + // chain them into free list + CDXMap::CAssoc* pAssoc = (CDXMap::CAssoc*) newBlock->data(); + // free in reverse order to make it easier to debug + pAssoc += m_nBlockSize - 1; + for (int i = m_nBlockSize-1; i >= 0; i--, pAssoc--) + { + pAssoc->pNext = m_pFreeList; + m_pFreeList = pAssoc; + } + } + _ASSERT( m_pFreeList != NULL ); // we must have something + + CDXMap::CAssoc* pAssoc = m_pFreeList; + m_pFreeList = m_pFreeList->pNext; + m_nCount++; + _ASSERT( m_nCount > 0 ); // make sure we don't overflow + DXConstructElements(&pAssoc->key, 1); + DXConstructElements(&pAssoc->value, 1); // special construct values + return pAssoc; +} + +template +void CDXMap::FreeAssoc(CAssoc* pAssoc) +{ + DXDestructElements(&pAssoc->value, 1); + DXDestructElements(&pAssoc->key, 1); + pAssoc->pNext = m_pFreeList; + m_pFreeList = pAssoc; + m_nCount--; + _ASSERT( m_nCount >= 0 ); // make sure we don't underflow +} + +template +typename CDXMap::CAssoc* +CDXMap::GetAssocAt(ARG_KEY key, UINT& nHash) const +// find association (or return NULL) +{ + nHash = DXHashKey(key) % m_nHashTableSize; + + if (m_pHashTable == NULL) + return NULL; + + // see if it exists + CAssoc* pAssoc; + for (pAssoc = m_pHashTable[nHash]; pAssoc != NULL; pAssoc = pAssoc->pNext) + { + if (DXCompareElements(&pAssoc->key, &key)) + return pAssoc; + } + return NULL; +} + +template +BOOL CDXMap::Lookup(ARG_KEY key, VALUE& rValue) const +{ + DXASSERT_VALID( this ); + + UINT nHash; + CAssoc* pAssoc = GetAssocAt(key, nHash); + if (pAssoc == NULL) + return FALSE; // not in map + + rValue = pAssoc->value; + return TRUE; +} + +template +VALUE& CDXMap::operator[](ARG_KEY key) +{ + DXASSERT_VALID( this ); + + UINT nHash; + CAssoc* pAssoc; + if ((pAssoc = GetAssocAt(key, nHash)) == NULL) + { + if (m_pHashTable == NULL) + InitHashTable(m_nHashTableSize); + + // it doesn't exist, add a new Association + pAssoc = NewAssoc(); + pAssoc->nHashValue = nHash; + pAssoc->key = key; + // 'pAssoc->value' is a constructed object, nothing more + + // put into hash table + pAssoc->pNext = m_pHashTable[nHash]; + m_pHashTable[nHash] = pAssoc; + } + return pAssoc->value; // return new reference +} + +template +BOOL CDXMap::RemoveKey(ARG_KEY key) +// remove key - return TRUE if removed +{ + DXASSERT_VALID( this ); + + if (m_pHashTable == NULL) + return FALSE; // nothing in the table + + CAssoc** ppAssocPrev; + ppAssocPrev = &m_pHashTable[DXHashKey(key) % m_nHashTableSize]; + + CAssoc* pAssoc; + for (pAssoc = *ppAssocPrev; pAssoc != NULL; pAssoc = pAssoc->pNext) + { + if (DXCompareElements(&pAssoc->key, &key)) + { + // remove it + *ppAssocPrev = pAssoc->pNext; // remove from list + FreeAssoc(pAssoc); + return TRUE; + } + ppAssocPrev = &pAssoc->pNext; + } + return FALSE; // not found +} + +template +void CDXMap::GetNextAssoc(DXLISTPOS& rNextPosition, + KEY& rKey, VALUE& rValue) const +{ + DXASSERT_VALID( this ); + _ASSERT( m_pHashTable != NULL ); // never call on empty map + + CAssoc* pAssocRet = (CAssoc*)rNextPosition; + _ASSERT( pAssocRet != NULL ); + + if (pAssocRet == (CAssoc*) DX_BEFORE_START_POSITION) + { + // find the first association + for (UINT nBucket = 0; nBucket < m_nHashTableSize; nBucket++) + if ((pAssocRet = m_pHashTable[nBucket]) != NULL) + break; + _ASSERT( pAssocRet != NULL ); // must find something + } + + // find next association + _ASSERT( DXIsValidAddress(pAssocRet, sizeof(CAssoc), TRUE )); + CAssoc* pAssocNext; + if ((pAssocNext = pAssocRet->pNext) == NULL) + { + // go to next bucket + for (UINT nBucket = pAssocRet->nHashValue + 1; + nBucket < m_nHashTableSize; nBucket++) + if ((pAssocNext = m_pHashTable[nBucket]) != NULL) + break; + } + + rNextPosition = (DXLISTPOS) pAssocNext; + + // fill in return data + rKey = pAssocRet->key; + rValue = pAssocRet->value; +} + +#ifdef _DEBUG +template +void CDXMap::AssertValid() const +{ + _ASSERT( m_nHashTableSize > 0 ); + _ASSERT( (m_nCount == 0 || m_pHashTable != NULL) ); + // non-empty map should have hash table +} +#endif //_DEBUG + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif //--- This must be the last line in the file diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva.h new file mode 100644 index 0000000000000000000000000000000000000000..a22fa107ed583cc78e592a8be6315b349533b369 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva.h @@ -0,0 +1,2856 @@ +//------------------------------------------------------------------------------ +// File: DXVA.h +// +// Desc: DirectX Video Acceleration header file. +// +// Copyright (c) 1999 - 2002, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#ifndef __DIRECTX_VA__ +#define __DIRECTX_VA__ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#if _MSC_VER >= 1200 +#pragma warning(push) +#endif + +#pragma warning(disable:4201) // named type definition in parentheses + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __DIRECTX_VA_COPP_ONLY +#define __DIRECTX_VA_DECODER__ +#define __DIRECTX_VA_PROCAMPCONTROL__ +#define __DIRECTX_VA_DEINTERLACE__ +#endif + +#ifndef DXVABit +#define DXVABit(__x) (1 << __x) +#endif + +// ------------------------------------------------------------------------- +// +// The definitions that follow describe the DirectX Video Acceleration +// decoding interface. +// This interface is accessable via the IAMVideoAccelerator interface. +// +// ------------------------------------------------------------------------- +// +#ifndef __DIRECTX_VA_DECODER__ +#define __DIRECTX_VA_DECODER__ + +DEFINE_GUID(DXVA_ModeNone, 0x1b81be00, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH261_A, 0x1b81be01, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH261_B, 0x1b81be02, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); + +DEFINE_GUID(DXVA_ModeH263_A, 0x1b81be03, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH263_B, 0x1b81be04, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH263_C, 0x1b81be05, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH263_D, 0x1b81be06, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH263_E, 0x1b81be07, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH263_F, 0x1b81be08, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); + +DEFINE_GUID(DXVA_ModeMPEG1_A, 0x1b81be09, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeMPEG1_VLD, 0x6f3ec719, 0x3735,0x42cc,0x80,0x63,0x65,0xcc,0x3c,0xb3,0x66,0x16); + +DEFINE_GUID(DXVA_ModeMPEG2_A, 0x1b81be0A, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeMPEG2_B, 0x1b81be0B, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeMPEG2_C, 0x1b81be0C, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeMPEG2_D, 0x1b81be0D, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeMPEG2and1_VLD, 0x86695f12, 0x340e,0x4f04,0x9f,0xd3,0x92,0x53,0xdd,0x32,0x74,0x60); + +DEFINE_GUID(DXVA_ModeH264_A, 0x1b81be64, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH264_B, 0x1b81be65, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH264_C, 0x1b81be66, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH264_D, 0x1b81be67, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH264_E, 0x1b81be68, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH264_F, 0x1b81be69, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeH264_VLD_WithFMOASO_NoFGT, 0xd5f04ff9, 0x3418,0x45d8,0x95,0x61,0x32,0xa7,0x6a,0xae,0x2d,0xdd); + +DEFINE_GUID(DXVA_ModeH264_VLD_Stereo_Progressive_NoFGT, 0xd79be8da, 0x0cf1,0x4c81,0xb8,0x2a,0x69,0xa4,0xe2,0x36,0xf4,0x3d); +DEFINE_GUID(DXVA_ModeH264_VLD_Stereo_NoFGT, 0xf9aaccbb, 0xc2b6,0x4cfc,0x87,0x79,0x57,0x07,0xb1,0x76,0x05,0x52); +DEFINE_GUID(DXVA_ModeH264_VLD_Multiview_NoFGT, 0x705b9d82, 0x76cf,0x49d6,0xb7,0xe6,0xac,0x88,0x72,0xdb,0x01,0x3c); + +DEFINE_GUID(DXVA_ModeWMV8_A, 0x1b81be80, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeWMV8_B, 0x1b81be81, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); + +DEFINE_GUID(DXVA_ModeWMV9_A, 0x1b81be90, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeWMV9_B, 0x1b81be91, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeWMV9_C, 0x1b81be94, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); + +DEFINE_GUID(DXVA_ModeVC1_A, 0x1b81beA0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeVC1_B, 0x1b81beA1, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeVC1_C, 0x1b81beA2, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeVC1_D, 0x1b81beA3, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA_ModeVC1_D2010,0x1b81beA4, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); + +DEFINE_GUID(DXVA_ModeMPEG4pt2_VLD_Simple, 0xefd64d74, 0xc9e8,0x41d7,0xa5,0xe9,0xe9,0xb0,0xe3,0x9f,0xa3,0x19); +DEFINE_GUID(DXVA_ModeMPEG4pt2_VLD_AdvSimple_NoGMC, 0xed418a9f, 0x010d,0x4eda,0x9a,0xe3,0x9a,0x65,0x35,0x8d,0x8d,0x2e); +DEFINE_GUID(DXVA_ModeMPEG4pt2_VLD_AdvSimple_GMC, 0xab998b5b, 0x4258,0x44a9,0x9f,0xeb,0x94,0xe5,0x97,0xa6,0xba,0xae); + +DEFINE_GUID(DXVA_ModeHEVC_VLD_Main, 0x5b11d51b, 0x2f4c, 0x4452,0xbc,0xc3,0x09,0xf2,0xa1,0x16,0x0c,0xc0); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Main10, 0x107af0e0, 0xef1a, 0x4d19,0xab,0xa8,0x67,0xa1,0x63,0x07,0x3d,0x13); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Monochrome, 0x0685b993, 0x3d8c, 0x43a0, 0x8b, 0x28, 0xd7, 0x4c, 0x2d, 0x68, 0x99, 0xa4); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Monochrome10, 0x142a1d0f, 0x69dd, 0x4ec9, 0x85, 0x91, 0xb1, 0x2f, 0xfc, 0xb9, 0x1a, 0x29); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Main12, 0x1a72925f, 0x0c2c, 0x4f15, 0x96, 0xfb, 0xb1, 0x7d, 0x14, 0x73, 0x60, 0x3f); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Main10_422, 0x0bac4fe5, 0x1532, 0x4429, 0xa8, 0x54, 0xf8, 0x4d, 0xe0, 0x49, 0x53, 0xdb); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Main12_422, 0x55bcac81, 0xf311, 0x4093, 0xa7, 0xd0, 0x1c, 0xbc, 0x0b, 0x84, 0x9b, 0xee); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Main_444, 0x4008018f, 0xf537, 0x4b36, 0x98, 0xcf, 0x61, 0xaf, 0x8a, 0x2c, 0x1a, 0x33); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Main10_Ext, 0x9cc55490, 0xe37c, 0x4932, 0x86, 0x84, 0x49, 0x20, 0xf9, 0xf6, 0x40, 0x9c); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Main10_444, 0x0dabeffa, 0x4458, 0x4602, 0xbc, 0x03, 0x07, 0x95, 0x65, 0x9d, 0x61, 0x7c); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Main12_444, 0x9798634d, 0xfe9d, 0x48e5, 0xb4, 0xda, 0xdb, 0xec, 0x45, 0xb3, 0xdf, 0x01); +DEFINE_GUID(DXVA_ModeHEVC_VLD_Main16, 0xa4fbdbb0, 0xa113, 0x482b, 0xa2, 0x32, 0x63, 0x5c, 0xc0, 0x69, 0x7f, 0x6d); + +DEFINE_GUID(DXVA_ModeVP9_VLD_Profile0, 0x463707f8, 0xa1d0, 0x4585, 0x87, 0x6d, 0x83, 0xaa, 0x6d, 0x60, 0xb8, 0x9e); +DEFINE_GUID(DXVA_ModeVP9_VLD_10bit_Profile2, 0xa4c749ef, 0x6ecf, 0x48aa, 0x84, 0x48, 0x50, 0xa7, 0xa1, 0x16, 0x5f, 0xf7); +DEFINE_GUID(DXVA_ModeVP8_VLD, 0x90b899ea, 0x3a62, 0x4705, 0x88, 0xb3, 0x8d, 0xf0, 0x4b, 0x27, 0x44, 0xe7); + +DEFINE_GUID(DXVA_ModeAV1_VLD_Profile0, 0xb8be4ccb, 0xcf53, 0x46ba, 0x8d, 0x59, 0xd6, 0xb8, 0xa6, 0xda, 0x5d, 0x2a); +DEFINE_GUID(DXVA_ModeAV1_VLD_Profile1, 0x6936ff0f, 0x45b1, 0x4163, 0x9c, 0xc1, 0x64, 0x6e, 0xf6, 0x94, 0x61, 0x08); +DEFINE_GUID(DXVA_ModeAV1_VLD_Profile2, 0x0c5f2aa1, 0xe541, 0x4089, 0xbb, 0x7b, 0x98, 0x11, 0x0a, 0x19, 0xd7, 0xc8); +DEFINE_GUID(DXVA_ModeAV1_VLD_12bit_Profile2, 0x17127009, 0xa00f, 0x4ce1, 0x99, 0x4e, 0xbf, 0x40, 0x81, 0xf6, 0xf3, 0xf0); +DEFINE_GUID(DXVA_ModeAV1_VLD_12bit_Profile2_420, 0x2d80bed6, 0x9cac, 0x4835, 0x9e, 0x91, 0x32, 0x7b, 0xbc, 0x4f, 0x9e, 0xe8); + +DEFINE_GUID(DXVA_ModeMJPEG_VLD_420, 0x725cb506, 0x0c29, 0x43c4, 0x94, 0x40, 0x8e, 0x93, 0x97, 0x90, 0x3a, 0x04); +DEFINE_GUID(DXVA_ModeMJPEG_VLD_422, 0x5b77b9cd, 0x1a35, 0x4c30, 0x9f, 0xd8, 0xef, 0x4b, 0x60, 0xc0, 0x35, 0xdd); +DEFINE_GUID(DXVA_ModeMJPEG_VLD_444, 0xd95161f9, 0x0d44, 0x47e6, 0xbc, 0xf5, 0x1b, 0xfb, 0xfb, 0x26, 0x8f, 0x97); +DEFINE_GUID(DXVA_ModeMJPEG_VLD_4444, 0xc91748d5, 0xfd18, 0x4aca, 0x9d, 0xb3, 0x3a, 0x66, 0x34, 0xab, 0x54, 0x7d); +DEFINE_GUID(DXVA_ModeJPEG_VLD_420, 0xcf782c83, 0xbef5, 0x4a2c, 0x87, 0xcb, 0x60, 0x19, 0xe7, 0xb1, 0x75, 0xac); +DEFINE_GUID(DXVA_ModeJPEG_VLD_422, 0xf04df417, 0xeee2, 0x4067, 0xa7, 0x78, 0xf3, 0x5c, 0x15, 0xab, 0x97, 0x21); +DEFINE_GUID(DXVA_ModeJPEG_VLD_444, 0x4cd00e17, 0x89ba, 0x48ef, 0xb9, 0xf9, 0xed, 0xcb, 0x82, 0x71, 0x3f, 0x65); + +DEFINE_GUID(DXVA_NoEncrypt, 0x1b81beD0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); + +#define DXVA_ModeWMV8_PostProc DXVA_ModeWMV8_A +#define DXVA_ModeWMV8_MoComp DXVA_ModeWMV8_B + +#define DXVA_ModeWMV9_PostProc DXVA_ModeWMV9_A +#define DXVA_ModeWMV9_MoComp DXVA_ModeWMV9_B +#define DXVA_ModeWMV9_IDCT DXVA_ModeWMV9_C + +#define DXVA_ModeVC1_PostProc DXVA_ModeVC1_A +#define DXVA_ModeVC1_MoComp DXVA_ModeVC1_B +#define DXVA_ModeVC1_IDCT DXVA_ModeVC1_C +#define DXVA_ModeVC1_VLD DXVA_ModeVC1_D + +#define DXVA_ModeH264_MoComp_NoFGT DXVA_ModeH264_A +#define DXVA_ModeH264_MoComp_FGT DXVA_ModeH264_B +#define DXVA_ModeH264_IDCT_NoFGT DXVA_ModeH264_C +#define DXVA_ModeH264_IDCT_FGT DXVA_ModeH264_D +#define DXVA_ModeH264_VLD_NoFGT DXVA_ModeH264_E +#define DXVA_ModeH264_VLD_FGT DXVA_ModeH264_F + +#define DXVA_RESTRICTED_MODE_UNRESTRICTED 0xFFFF +#define DXVA_RESTRICTED_MODE_H261_A 1 +#define DXVA_RESTRICTED_MODE_H261_B 2 + +#define DXVA_RESTRICTED_MODE_H263_A 3 +#define DXVA_RESTRICTED_MODE_H263_B 4 +#define DXVA_RESTRICTED_MODE_H263_C 5 +#define DXVA_RESTRICTED_MODE_H263_D 6 +#define DXVA_RESTRICTED_MODE_H263_E 7 +#define DXVA_RESTRICTED_MODE_H263_F 8 + +#define DXVA_RESTRICTED_MODE_MPEG1_A 9 + +#define DXVA_RESTRICTED_MODE_MPEG2_A 0xA +#define DXVA_RESTRICTED_MODE_MPEG2_B 0xB +#define DXVA_RESTRICTED_MODE_MPEG2_C 0xC +#define DXVA_RESTRICTED_MODE_MPEG2_D 0xD +#define DXVA_RESTRICTED_MODE_MPEG1_VLD 0x10 +#define DXVA_RESTRICTED_MODE_MPEG2and1_VLD 0x11 + +#define DXVA_RESTRICTED_MODE_H264_A 0x64 +#define DXVA_RESTRICTED_MODE_H264_B 0x65 +#define DXVA_RESTRICTED_MODE_H264_C 0x66 +#define DXVA_RESTRICTED_MODE_H264_D 0x67 +#define DXVA_RESTRICTED_MODE_H264_E 0x68 +#define DXVA_RESTRICTED_MODE_H264_F 0x69 + +#define DXVA_RESTRICTED_MODE_H264_VLD_WITHFMOASO_NOFGT 0x70 + +#define DXVA_RESTRICTED_MODE_H264_VLD_STEREO_PROGRESSIVE_NOFGT 0x71 +#define DXVA_RESTRICTED_MODE_H264_VLD_STEREO_NOFGT 0x72 +#define DXVA_RESTRICTED_MODE_H264_VLD_MULTIVIEW_NOFGT 0x73 + +#define DXVA_RESTRICTED_MODE_WMV8_A 0x80 +#define DXVA_RESTRICTED_MODE_WMV8_B 0x81 + +#define DXVA_RESTRICTED_MODE_WMV9_A 0x90 +#define DXVA_RESTRICTED_MODE_WMV9_B 0x91 +#define DXVA_RESTRICTED_MODE_WMV9_C 0x94 + +#define DXVA_RESTRICTED_MODE_VC1_A 0xA0 +#define DXVA_RESTRICTED_MODE_VC1_B 0xA1 +#define DXVA_RESTRICTED_MODE_VC1_C 0xA2 +#define DXVA_RESTRICTED_MODE_VC1_D 0xA3 + +#define DXVA_RESTRICTED_MODE_VC1_D2010 0xA4 + +#define DXVA_RESTRICTED_MODE_MPEG4PT2_VLD_SIMPLE 0xB0 +#define DXVA_RESTRICTED_MODE_MPEG4PT2_VLD_ADV_SIMPLE_NOGMC 0xB1 +#define DXVA_RESTRICTED_MODE_MPEG4PT2_VLD_ADV_SIMPLE_GMC 0xB2 + +#define DXVA_RESTRICTED_MODE_WMV8_POSTPROC DXVA_RESTRICTED_MODE_WMV8_A +#define DXVA_RESTRICTED_MODE_WMV8_MOCOMP DXVA_RESTRICTED_MODE_WMV8_B + +#define DXVA_RESTRICTED_MODE_WMV9_POSTPROC DXVA_RESTRICTED_MODE_WMV9_A +#define DXVA_RESTRICTED_MODE_WMV9_MOCOMP DXVA_RESTRICTED_MODE_WMV9_B +#define DXVA_RESTRICTED_MODE_WMV9_IDCT DXVA_RESTRICTED_MODE_WMV9_C + +#define DXVA_RESTRICTED_MODE_VC1_POSTPROC DXVA_RESTRICTED_MODE_VC1_A +#define DXVA_RESTRICTED_MODE_VC1_MOCOMP DXVA_RESTRICTED_MODE_VC1_B +#define DXVA_RESTRICTED_MODE_VC1_IDCT DXVA_RESTRICTED_MODE_VC1_C +#define DXVA_RESTRICTED_MODE_VC1_VLD DXVA_RESTRICTED_MODE_VC1_D + +#define DXVA_RESTRICTED_MODE_H264_MOCOMP_NOFGT DXVA_RESTRICTED_MODE_H264_A +#define DXVA_RESTRICTED_MODE_H264_MOCOMP_FGT DXVA_RESTRICTED_MODE_H264_B +#define DXVA_RESTRICTED_MODE_H264_IDCT_NOFGT DXVA_RESTRICTED_MODE_H264_C +#define DXVA_RESTRICTED_MODE_H264_IDCT_FGT DXVA_RESTRICTED_MODE_H264_D +#define DXVA_RESTRICTED_MODE_H264_VLD_NOFGT DXVA_RESTRICTED_MODE_H264_E +#define DXVA_RESTRICTED_MODE_H264_VLD_FGT DXVA_RESTRICTED_MODE_H264_F + +#define DXVA_COMPBUFFER_TYPE_THAT_IS_NOT_USED 0 +#define DXVA_PICTURE_DECODE_BUFFER 1 +#define DXVA_MACROBLOCK_CONTROL_BUFFER 2 +#define DXVA_RESIDUAL_DIFFERENCE_BUFFER 3 +#define DXVA_DEBLOCKING_CONTROL_BUFFER 4 +#define DXVA_INVERSE_QUANTIZATION_MATRIX_BUFFER 5 +#define DXVA_SLICE_CONTROL_BUFFER 6 +#define DXVA_BITSTREAM_DATA_BUFFER 7 +#define DXVA_AYUV_BUFFER 8 +#define DXVA_IA44_SURFACE_BUFFER 9 +#define DXVA_DPXD_SURFACE_BUFFER 10 +#define DXVA_HIGHLIGHT_BUFFER 11 +#define DXVA_DCCMD_SURFACE_BUFFER 12 +#define DXVA_ALPHA_BLEND_COMBINATION_BUFFER 13 +#define DXVA_PICTURE_RESAMPLE_BUFFER 14 +#define DXVA_READ_BACK_BUFFER 15 + +/* H.264/AVC Additional buffer types */ +#define DXVA_MOTION_VECTOR_BUFFER 16 +#define DXVA_FILM_GRAIN_BUFFER 17 + +#define DXVA_NUM_TYPES_COMP_BUFFERS 18 + +/* values for bDXVA_Func */ +#define DXVA_PICTURE_DECODING_FUNCTION 1 +#define DXVA_ALPHA_BLEND_DATA_LOAD_FUNCTION 2 +#define DXVA_ALPHA_BLEND_COMBINATION_FUNCTION 3 +#define DXVA_PICTURE_RESAMPLE_FUNCTION 4 +#define DXVA_DEBLOCKING_FILTER_FUNCTION 5 +#define DXVA_FILM_GRAIN_SYNTHESIS_FUNCTION 6 +#define DXVA_STATUS_REPORTING_FUNCTION 7 + +/* values returned from Execute command in absence of read-back */ +#define DXVA_EXECUTE_RETURN_OK 0 +#define DXVA_EXECUTE_RETURN_DATA_ERROR_MINOR 1 +#define DXVA_EXECUTE_RETURN_DATA_ERROR_SIGNIF 2 +#define DXVA_EXECUTE_RETURN_DATA_ERROR_SEVERE 3 +#define DXVA_EXECUTE_RETURN_OTHER_ERROR_SEVERE 4 + + +#pragma pack(push, BeforeDXVApacking, 1) + + +typedef struct _DXVA_ConnectMode { + GUID guidMode; + WORD wRestrictedMode; +} DXVA_ConnectMode, *LPDXVA_ConnectMode; + + +typedef DWORD DXVA_ConfigQueryOrReplyFunc, *LPDXVA_ConfigQueryOrReplyFunc; + +#define DXVA_QUERYORREPLYFUNCFLAG_DECODER_PROBE_QUERY 0xFFFFF1 +#define DXVA_QUERYORREPLYFUNCFLAG_DECODER_LOCK_QUERY 0xFFFFF5 +#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_PROBE_OK_COPY 0xFFFFF8 +#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_PROBE_OK_PLUS 0xFFFFF9 +#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_LOCK_OK_COPY 0xFFFFFC +#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_PROBE_FALSE_PLUS 0xFFFFFB +#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_LOCK_FALSE_PLUS 0xFFFFFF + +#define readDXVA_QueryOrReplyFuncFlag(ptr) ((*(ptr)) >> 8) + +#define readDXVA_QueryOrReplyFuncFlag_ACCEL(ptr) (((*(ptr)) >> 11) & 1) +#define readDXVA_QueryOrReplyFuncFlag_LOCK(ptr) (((*(ptr)) >> 10) & 1) +#define readDXVA_QueryOrReplyFuncFlag_BAD(ptr) (((*(ptr)) >> 9) & 1) +#define readDXVA_QueryOrReplyFuncFlag_PLUS(ptr) (((*(ptr)) >> 8) & 1) + +#define readDXVA_QueryOrReplyFuncFunc(ptr) ((*(ptr)) & 0xFF) + +#define writeDXVA_QueryOrReplyFunc(ptr, flg, fnc) ((*(ptr)) = ((flg) << 8) | (fnc)) + +#define setDXVA_QueryOrReplyFuncFlag(ptr, flg) ((*(ptr)) |= ((flg) << 8)) +#define setDXVA_QueryOrReplyFuncFunc(ptr, fnc) ((*(ptr)) |= (fnc)); + +typedef DWORD DXVA_EncryptProtocolFunc, *LPDXVA_EncryptProtocolFunc; + +#define DXVA_ENCRYPTPROTOCOLFUNCFLAG_HOST 0xFFFF00 +#define DXVA_ENCRYPTPROTOCOLFUNCFLAG_ACCEL 0xFFFF08 + +#define readDXVA_EncryptProtocolFuncFlag(ptr) ((*(ptr)) >> 8) +#define readDXVA_EncryptProtocolFuncFlag_ACCEL(ptr) (((*(ptr)) >> 11) & 1) + +#define readDXVA_EncryptProtocolFuncFunc(ptr) ((*(ptr)) & 0xFF) + +#define writeDXVA_EncryptProtocolFunc(ptr, flg, fnc) ((*(ptr)) = ((flg) << 8) | (fnc)) + +#define setDXVA_EncryptProtocolFuncFlag(ptr, flg) ((*(ptr)) |= ((flg) << 8)) +#define setDXVA_EncryptProtocolFuncFunc(ptr, fnc) ((*(ptr)) |= (fnc)); + +typedef struct _DXVA_EncryptProtocolHeader { + DXVA_EncryptProtocolFunc dwFunction; + DWORD ReservedBits[3]; + GUID guidEncryptProtocol; +} DXVA_EncryptProtocolHeader, *LPDXVA_EncryptProtocolHeader; + +typedef struct _DXVA_ConfigPictureDecode { + + // Operation Indicated + DXVA_ConfigQueryOrReplyFunc dwFunction; + + // Alignment + DWORD dwReservedBits[3]; + + // Encryption GUIDs + GUID guidConfigBitstreamEncryption; + GUID guidConfigMBcontrolEncryption; + GUID guidConfigResidDiffEncryption; + + // Bitstream Processing Indicator + BYTE bConfigBitstreamRaw; + + // Macroblock Control Config + BYTE bConfigMBcontrolRasterOrder; + + // Host Resid Diff Config + BYTE bConfigResidDiffHost; + BYTE bConfigSpatialResid8; + BYTE bConfigResid8Subtraction; + BYTE bConfigSpatialHost8or9Clipping; + BYTE bConfigSpatialResidInterleaved; + BYTE bConfigIntraResidUnsigned; + + // Accelerator Resid Diff Config + BYTE bConfigResidDiffAccelerator; + BYTE bConfigHostInverseScan; + BYTE bConfigSpecificIDCT; + BYTE bConfig4GroupedCoefs; +} DXVA_ConfigPictureDecode, *LPDXVA_ConfigPictureDecode; + + +/* Picture Decoding Parameters */ + +typedef struct _DXVA_PictureParameters { + + WORD wDecodedPictureIndex; + WORD wDeblockedPictureIndex; + + WORD wForwardRefPictureIndex; + WORD wBackwardRefPictureIndex; + + WORD wPicWidthInMBminus1; + WORD wPicHeightInMBminus1; + + BYTE bMacroblockWidthMinus1; + BYTE bMacroblockHeightMinus1; + + BYTE bBlockWidthMinus1; + BYTE bBlockHeightMinus1; + + BYTE bBPPminus1; + + BYTE bPicStructure; + BYTE bSecondField; + BYTE bPicIntra; + BYTE bPicBackwardPrediction; + + BYTE bBidirectionalAveragingMode; + BYTE bMVprecisionAndChromaRelation; + BYTE bChromaFormat; + + BYTE bPicScanFixed; + BYTE bPicScanMethod; + BYTE bPicReadbackRequests; + + BYTE bRcontrol; + BYTE bPicSpatialResid8; + BYTE bPicOverflowBlocks; + BYTE bPicExtrapolation; + + BYTE bPicDeblocked; + BYTE bPicDeblockConfined; + BYTE bPic4MVallowed; + BYTE bPicOBMC; + BYTE bPicBinPB; + BYTE bMV_RPS; + + BYTE bReservedBits; + + WORD wBitstreamFcodes; + WORD wBitstreamPCEelements; + BYTE bBitstreamConcealmentNeed; + BYTE bBitstreamConcealmentMethod; + +} DXVA_PictureParameters, *LPDXVA_PictureParameters; + + + +/* Picture Resampling */ + +typedef struct _DXVA_PicResample { + + WORD wPicResampleSourcePicIndex; + WORD wPicResampleDestPicIndex; + + WORD wPicResampleRcontrol; + BYTE bPicResampleExtrapWidth; + BYTE bPicResampleExtrapHeight; + + DWORD dwPicResampleSourceWidth; + DWORD dwPicResampleSourceHeight; + + DWORD dwPicResampleDestWidth; + DWORD dwPicResampleDestHeight; + + DWORD dwPicResampleFullDestWidth; + DWORD dwPicResampleFullDestHeight; + +} DXVA_PicResample, *LPDXVA_PicResample; + + +#define DXVA_CHROMA_FORMAT_420 1 +#define DXVA_CHROMA_FORMAT_422 2 +#define DXVA_CHROMA_FORMAT_444 3 + +#define DXVA_PICTURE_STRUCTURE_TOP_FIELD 1 +#define DXVA_PICTURE_STRUCTURE_BOTTOM_FIELD 2 +#define DXVA_PICTURE_STRUCTURE_FRAME 3 + +#define DXVA_BIDIRECTIONAL_AVERAGING_MPEG2_ROUND 0 +#define DXVA_BIDIRECTIONAL_AVERAGING_H263_TRUNC 1 + +#define DXVA_MV_PRECISION_AND_CHROMA_RELATION_MPEG2 0 +#define DXVA_MV_PRECISION_AND_CHROMA_RELATION_H263 1 +#define DXVA_MV_PRECISION_AND_CHROMA_RELATION_H261 2 + +#define DXVA_SCAN_METHOD_ZIG_ZAG 0 +#define DXVA_SCAN_METHOD_ALTERNATE_VERTICAL 1 +#define DXVA_SCAN_METHOD_ALTERNATE_HORIZONTAL 2 +#define DXVA_SCAN_METHOD_ARBITRARY 3 + +#define DXVA_BITSTREAM_CONCEALMENT_NEED_UNLIKELY 0 +#define DXVA_BITSTREAM_CONCEALMENT_NEED_MILD 1 +#define DXVA_BITSTREAM_CONCEALMENT_NEED_LIKELY 2 +#define DXVA_BITSTREAM_CONCEALMENT_NEED_SEVERE 3 + +#define DXVA_BITSTREAM_CONCEALMENT_METHOD_UNSPECIFIED 0 +#define DXVA_BITSTREAM_CONCEALMENT_METHOD_INTRA 1 +#define DXVA_BITSTREAM_CONCEALMENT_METHOD_FORWARD 2 +#define DXVA_BITSTREAM_CONCEALMENT_METHOD_BACKWARD 3 + + +/* Buffer Description Data */ + +typedef struct _DXVA_BufferDescription { + DWORD dwTypeIndex; + DWORD dwBufferIndex; + DWORD dwDataOffset; + DWORD dwDataSize; + DWORD dwFirstMBaddress; + DWORD dwNumMBsInBuffer; + DWORD dwWidth; + DWORD dwHeight; + DWORD dwStride; + DWORD dwReservedBits; +} DXVA_BufferDescription, *LPDXVA_BufferDescription; + + +/* Off-Host IDCT Coefficient Data Structures */ + +typedef struct _DXVA_TCoef4Group { + BYTE TCoefIDX[4]; + SHORT TCoefValue[4]; +} DXVA_TCoef4Group, *LPDXVA_TCoef4Group; + +typedef struct _DXVA_TCoefSingle { + WORD wIndexWithEOB; + SHORT TCoefValue; +} DXVA_TCoefSingle, *LPDXVA_TCoefSingle; + +/* Macros for Reading EOB and Index Values */ + +#define readDXVA_TCoefSingleIDX(ptr) ((ptr)->wIndexWithEOB >> 1) +#define readDXVA_TCoefSingleEOB(ptr) ((ptr)->wIndexWithEOB & 1) + +/* Macro for Writing EOB and Index Values */ + +#define writeDXVA_TCoefSingleIndexWithEOB(ptr, idx, eob) ((ptr)->wIndexWithEOB = ((idx) << 1) | (eob)) +#define setDXVA_TCoefSingleIDX(ptr, idx) ((ptr)->wIndexWithEOB |= ((idx) << 1)) +#define setDXVA_TCoefSingleEOB(ptr) ((ptr)->wIndexWithEOB |= 1) + +/* Spatial-Domain Residual Difference Blocks */ + +#define DXVA_USUAL_BLOCK_WIDTH 8 +#define DXVA_USUAL_BLOCK_HEIGHT 8 +#define DXVA_USUAL_BLOCK_SIZE (DXVA_USUAL_BLOCK_WIDTH * DXVA_USUAL_BLOCK_HEIGHT) + +typedef SHORT DXVA_Sample16[DXVA_USUAL_BLOCK_SIZE]; +typedef signed char DXVA_Sample8 [DXVA_USUAL_BLOCK_SIZE]; + +/* Deblocking Filter Control Structure */ + +typedef BYTE DXVA_DeblockingEdgeControl; + +typedef DXVA_DeblockingEdgeControl * LPDXVA_DeblockingEdgeControl; + +/* Macros for Reading STRENGTH and FilterOn */ + +#define readDXVA_EdgeFilterStrength(ptr) ((*(ptr)) >> 1) +#define readDXVA_EdgeFilterOn(ptr) ((*(ptr)) & 1) + +/* Macro for Writing STRENGTH and FilterOn */ + +#define writeDXVA_DeblockingEdgeControl(ptr, str, fon) ((*(ptr)) = ((str) << 1) | (fon)) +#define setDXVA_EdgeFilterStrength(ptr, str) ((*(ptr)) |= ((str) << 1)) +#define setDXVA_EdgeFilterOn(ptr) ((*(ptr)) |= 1) + + +/* Macroblock Control Command Data Structures */ + +typedef struct _DXVA_MVvalue { + SHORT horz, vert; +} DXVA_MVvalue, *LPDXVA_MVvalue; + + +/* Inverse Quantization Matrices */ + +typedef struct _DXVA_QmatrixData { + BYTE bNewQmatrix[4]; /* intra Y, inter Y, intra chroma, inter chroma */ + WORD Qmatrix[4][DXVA_USUAL_BLOCK_WIDTH * DXVA_USUAL_BLOCK_HEIGHT]; +} DXVA_QmatrixData, *LPDXVA_QmatrixData; + + +/* Slice Control Buffer Data */ + +typedef struct _DXVA_SliceInfo { + WORD wHorizontalPosition; + WORD wVerticalPosition; + DWORD dwSliceBitsInBuffer; + DWORD dwSliceDataLocation; + BYTE bStartCodeBitOffset; + BYTE bReservedBits; + WORD wMBbitOffset; + WORD wNumberMBsInSlice; + WORD wQuantizerScaleCode; + WORD wBadSliceChopping; +} DXVA_SliceInfo, *LPDXVA_SliceInfo; + + +#define DXVA_NumMV_OBMC_off_BinPBwith4MV_off 4 +#define DXVA_NumMV_OBMC_off_BinPBwith4MV_on (4+1) +#define DXVA_NumMV_OBMC_on__BinPB_off (10) +#define DXVA_NumMV_OBMC_on__BinPB_on (11) /* not current standards */ + +#define DXVA_NumBlocksPerMB_420 (4+2+0) +#define DXVA_NumBlocksPerMB_422 (4+2+2) +#define DXVA_NumBlocksPerMB_444 (4+4+4) + +/* Basic form for I pictures */ +/* Host Residual Differences */ +typedef struct _DXVA_MBctrl_I_HostResidDiff_1 { + WORD wMBaddress; + WORD wMBtype; + DWORD dwMB_SNL; + WORD wPatternCode; + WORD wPC_Overflow; /* zero if not overflow format */ + DWORD dwReservedBits2; +} DXVA_MBctrl_I_HostResidDiff_1; + +/* Basic form for I pictures */ +/* Off-Host IDCT, 4:2:0 sampling */ +typedef struct _DXVA_MBctrl_I_OffHostIDCT_1 { + WORD wMBaddress; + WORD wMBtype; + DWORD dwMB_SNL; + WORD wPatternCode; + BYTE bNumCoef[DXVA_NumBlocksPerMB_420]; +} DXVA_MBctrl_I_OffHostIDCT_1; + +/* Basic form for P and B pictures */ +/* Should also be used for concealment MVs in MPEG-2 I pictures */ +/* Without OBMC, without BinPB and 4MV together, without MV RPS */ +/* Host Residual Differences */ +typedef struct _DXVA_MBctrl_P_HostResidDiff_1 { + WORD wMBaddress; + WORD wMBtype; + DWORD dwMB_SNL; + WORD wPatternCode; + WORD wPC_Overflow; /* zero if not overflow format */ + DWORD dwReservedBits2; + DXVA_MVvalue MVector[DXVA_NumMV_OBMC_off_BinPBwith4MV_off]; +} DXVA_MBctrl_P_HostResidDiff_1; + +/* Basic form for P and B pictures */ +/* Without OBMC, without BinPB and 4MV together, without MV RPS */ +/* Off-Host IDCT, 4:2:0 sampling */ +typedef struct _DXVA_MBctrl_P_OffHostIDCT_1 { + WORD wMBaddress; + WORD wMBtype; + DWORD dwMB_SNL; + WORD wPatternCode; + BYTE bNumCoef[DXVA_NumBlocksPerMB_420]; + DXVA_MVvalue MVector[DXVA_NumMV_OBMC_off_BinPBwith4MV_off]; +} DXVA_MBctrl_P_OffHostIDCT_1; + +/* How to load alpha blending graphic data */ +typedef struct _DXVA_ConfigAlphaLoad { + + // Operation Indicated + DXVA_ConfigQueryOrReplyFunc dwFunction; + + // Alignment + DWORD dwReservedBits[3]; + + BYTE bConfigDataType; +} DXVA_ConfigAlphaLoad, *LPDXVA_ConfigAlphaLoad; + +#define DXVA_CONFIG_DATA_TYPE_IA44 0 +#define DXVA_CONFIG_DATA_TYPE_AI44 1 +#define DXVA_CONFIG_DATA_TYPE_DPXD 2 +#define DXVA_CONFIG_DATA_TYPE_AYUV 3 + + +/* How to combine alpha blending graphic data */ +typedef struct _DXVA_ConfigAlphaCombine { + + // Operation Indicated + DXVA_ConfigQueryOrReplyFunc dwFunction; + + // Alignment + DWORD dwReservedBits[3]; + + BYTE bConfigBlendType; + BYTE bConfigPictureResizing; + BYTE bConfigOnlyUsePicDestRectArea; + BYTE bConfigGraphicResizing; + BYTE bConfigWholePlaneAlpha; + +} DXVA_ConfigAlphaCombine, *LPDXVA_ConfigAlphaCombine; + +#define DXVA_CONFIG_BLEND_TYPE_FRONT_BUFFER 0 +#define DXVA_CONFIG_BLEND_TYPE_BACK_HARDWARE 1 + + +/* AYUV sample for 16-entry YUV palette or graphic surface */ + +typedef struct _DXVA_AYUVsample2 { + BYTE bCrValue; + BYTE bCbValue; + BYTE bY_Value; + BYTE bSampleAlpha8; +} DXVA_AYUVsample2, *LPDXVA_AYUVsample2; + +/* Macros for IA44 alpha blending surface samples */ + +typedef BYTE DXVA_IA44sample, *LPDXVA_IA44sample; + +#define readDXVA_IA44index(ptr) (((*(ptr)) & 0xF0) >> 4) +#define readDXVA_IA44alpha(ptr) ((*(ptr)) & 0x0F) + +#define writeDXVA_IA44(ptr, idx, alpha) ((*(ptr)) = (((idx) << 4) | (alpha))) + +#define setDXVA_IA44index(ptr, idx) ((*(ptr)) |= ((idx) << 4)) +#define setDXVA_IA44alpha(ptr, alpha) ((*(ptr)) |= (alpha)) + +/* Macros for AI44 alpha blending surface samples */ + +typedef BYTE DXVA_AI44sample, *LPDXVA_AI44sample; + +#define readDXVA_AI44index(ptr) ((*(ptr)) & 0x0F) +#define readDXVA_AI44alpha(ptr) (((*(ptr)) & 0xF0) >> 4) + +#define writeDXVA_AI44(ptr, idx, alpha) ((*(ptr)) = (((alpha) << 4) | (idx))) + +#define setDXVA_AI44index(ptr, idx) ((*(ptr)) |= (idx)) +#define setDXVA_AI44alpha(ptr, alpha) ((*(ptr)) |= ((alpha) << 4)) + + +/* Highlight data structure */ + +typedef struct _DXVA_Highlight { + WORD wHighlightActive; + WORD wHighlightIndices; + WORD wHighlightAlphas; + RECT HighlightRect; +} DXVA_Highlight, *LPDXVA_Highlight; + +typedef BYTE DXVA_DPXD, *LPDXVA_DPXD; +typedef WORD DXVA_DCCMD, *LPDXVA_DCCMD; + +/* Alpha blend combination */ + +typedef struct _DXVA_BlendCombination { + WORD wPictureSourceIndex; + WORD wBlendedDestinationIndex; + RECT PictureSourceRect16thPel; + RECT PictureDestinationRect; + RECT GraphicSourceRect; + RECT GraphicDestinationRect; + WORD wBlendDelay; + BYTE bBlendOn; + BYTE bWholePlaneAlpha; + DXVA_AYUVsample2 OutsideYUVcolor; +} DXVA_BlendCombination, *LPDXVA_BlendCombination; + +/* H.264/AVC-specific structures */ + +/* H.264/AVC picture entry data structure */ +typedef struct _DXVA_PicEntry_H264 { + union { + struct { + UCHAR Index7Bits : 7; + UCHAR AssociatedFlag : 1; + }; + UCHAR bPicEntry; + }; +} DXVA_PicEntry_H264, *LPDXVA_PicEntry_H264; /* 1 byte */ + +/* H.264/AVC picture parameters structure */ +typedef struct _DXVA_PicParams_H264 { + USHORT wFrameWidthInMbsMinus1; + USHORT wFrameHeightInMbsMinus1; + DXVA_PicEntry_H264 CurrPic; /* flag is bot field flag */ + UCHAR num_ref_frames; + + union { + struct { + USHORT field_pic_flag : 1; + USHORT MbaffFrameFlag : 1; + USHORT residual_colour_transform_flag : 1; + USHORT sp_for_switch_flag : 1; + USHORT chroma_format_idc : 2; + USHORT RefPicFlag : 1; + USHORT constrained_intra_pred_flag : 1; + + USHORT weighted_pred_flag : 1; + USHORT weighted_bipred_idc : 2; + USHORT MbsConsecutiveFlag : 1; + USHORT frame_mbs_only_flag : 1; + USHORT transform_8x8_mode_flag : 1; + USHORT MinLumaBipredSize8x8Flag : 1; + USHORT IntraPicFlag : 1; + }; + USHORT wBitFields; + }; + UCHAR bit_depth_luma_minus8; + UCHAR bit_depth_chroma_minus8; + + USHORT Reserved16Bits; + UINT StatusReportFeedbackNumber; + + DXVA_PicEntry_H264 RefFrameList[16]; /* flag LT */ + INT CurrFieldOrderCnt[2]; + INT FieldOrderCntList[16][2]; + + CHAR pic_init_qs_minus26; + CHAR chroma_qp_index_offset; /* also used for QScb */ + CHAR second_chroma_qp_index_offset; /* also for QScr */ + UCHAR ContinuationFlag; + +/* remainder for parsing */ + CHAR pic_init_qp_minus26; + UCHAR num_ref_idx_l0_active_minus1; + UCHAR num_ref_idx_l1_active_minus1; + UCHAR Reserved8BitsA; + + USHORT FrameNumList[16]; + UINT UsedForReferenceFlags; + USHORT NonExistingFrameFlags; + USHORT frame_num; + + UCHAR log2_max_frame_num_minus4; + UCHAR pic_order_cnt_type; + UCHAR log2_max_pic_order_cnt_lsb_minus4; + UCHAR delta_pic_order_always_zero_flag; + + UCHAR direct_8x8_inference_flag; + UCHAR entropy_coding_mode_flag; + UCHAR pic_order_present_flag; + UCHAR num_slice_groups_minus1; + + UCHAR slice_group_map_type; + UCHAR deblocking_filter_control_present_flag; + UCHAR redundant_pic_cnt_present_flag; + UCHAR Reserved8BitsB; + + USHORT slice_group_change_rate_minus1; + + UCHAR SliceGroupMap[810]; /* 4b/sgmu, Size BT.601 */ + +} DXVA_PicParams_H264, *LPDXVA_PicParams_H264; + +/* H.264/AVC quantization weighting matrix data structure */ +typedef struct _DXVA_Qmatrix_H264 { + UCHAR bScalingLists4x4[6][16]; + UCHAR bScalingLists8x8[2][64]; + +} DXVA_Qmatrix_H264, *LPDXVA_Qmatrix_H264; + +/* H.264/AVC slice control data structure - short form */ +typedef struct _DXVA_Slice_H264_Short { + UINT BSNALunitDataLocation; /* type 1..5 */ + UINT SliceBytesInBuffer; /* for off-host parse */ + USHORT wBadSliceChopping; /* for off-host parse */ +} DXVA_Slice_H264_Short, *LPDXVA_Slice_H264_Short; + +/* H.264/AVC picture entry data structure - long form */ +typedef struct _DXVA_Slice_H264_Long { + UINT BSNALunitDataLocation; /* type 1..5 */ + UINT SliceBytesInBuffer; /* for off-host parse */ + USHORT wBadSliceChopping; /* for off-host parse */ + + USHORT first_mb_in_slice; + USHORT NumMbsForSlice; + + USHORT BitOffsetToSliceData; /* after CABAC alignment */ + + UCHAR slice_type; + UCHAR luma_log2_weight_denom; + UCHAR chroma_log2_weight_denom; + UCHAR num_ref_idx_l0_active_minus1; + UCHAR num_ref_idx_l1_active_minus1; + CHAR slice_alpha_c0_offset_div2; + CHAR slice_beta_offset_div2; + UCHAR Reserved8Bits; + DXVA_PicEntry_H264 RefPicList[2][32]; /* L0 & L1 */ + SHORT Weights[2][32][3][2]; /* L0 & L1; Y, Cb, Cr */ + CHAR slice_qs_delta; + /* rest off-host parse */ + CHAR slice_qp_delta; + UCHAR redundant_pic_cnt; + UCHAR direct_spatial_mv_pred_flag; + UCHAR cabac_init_idc; + UCHAR disable_deblocking_filter_idc; + USHORT slice_id; +} DXVA_Slice_H264_Long, *LPDXVA_Slice_H264_Long; + +/* H.264/AVC macroblock control command data structure */ +typedef struct _DXVA_MBctrl_H264 { + union { + struct { + UINT bSliceID : 8; /* 1 byte */ + UINT MbType5Bits : 5; + UINT IntraMbFlag : 1; + UINT mb_field_decoding_flag : 1; + UINT transform_size_8x8_flag : 1; /* 2 bytes */ + UINT HostResidDiff : 1; + UINT DcBlockCodedCrFlag : 1; + UINT DcBlockCodedCbFlag : 1; + UINT DcBlockCodedYFlag : 1; + UINT FilterInternalEdgesFlag : 1; + UINT FilterLeftMbEdgeFlag : 1; + UINT FilterTopMbEdgeFlag : 1; + UINT ReservedBit : 1; + UINT bMvQuantity : 8; /* 4 bytes */ + }; + UINT dwMBtype; /* 4 bytes so far */ + }; + USHORT CurrMbAddr; /* 6 bytes so far */ + USHORT wPatternCode[3];/* YCbCr, 16 4x4 blks, 1b each */ + /* 12 bytes so far */ + UCHAR bQpPrime[3]; /* Y, Cb, Cr, need just 7b QpY */ + UCHAR bMBresidDataQuantity; + ULONG dwMBdataLocation; /* offset into resid buffer */ + /* 20 bytes so far */ + union { + struct { +/* start here for Intra MB's (9 useful bytes in branch) */ + USHORT LumaIntraPredModes[4];/* 16 blocks, 4b each */ + /* 28 bytes so far */ + union { + struct { + UCHAR intra_chroma_pred_mode : 2; + UCHAR IntraPredAvailFlags : 5; + UCHAR ReservedIntraBit : 1; + }; + UCHAR bMbIntraStruct; /* 29 bytes so far */ + }; + UCHAR ReservedIntra24Bits[3]; /* 32 bytes total */ + }; + struct { +/* start here for non-Intra MB's (12 bytes in branch) */ + UCHAR bSubMbShapes; /* 4 subMbs, 2b each */ + UCHAR bSubMbPredModes; /* 4 subMBs, 2b each */ + /* 22 bytes so far */ + USHORT wMvBuffOffset; /* offset into MV buffer */ + UCHAR bRefPicSelect[2][4]; /* 32 bytes total */ + }; + }; +} DXVA_MBctrl_H264, *LPDXVA_MBctrl_H264; + +/* H.264/AVC IndexA and IndexB data structure */ +typedef struct _DXVA_DeblockIndexAB_H264 { + UCHAR bIndexAinternal; /* 6b - could get from MB CC */ + UCHAR bIndexBinternal; /* 6b - could get from MB CC */ + + UCHAR bIndexAleft0; + UCHAR bIndexBleft0; + + UCHAR bIndexAleft1; + UCHAR bIndexBleft1; + + UCHAR bIndexAtop0; + UCHAR bIndexBtop0; + + UCHAR bIndexAtop1; + UCHAR bIndexBtop1; +} DXVA_DeblockIndexAB_H264, *LPDXVA_DeblockIndexAB_H264; + /* 10 bytes in struct */ + +/* H.264/AVC deblocking filter control data structure */ +typedef struct _DXVA_Deblock_H264 { + USHORT CurrMbAddr; /* dup info */ /* 2 bytes so far */ + union { + struct { + UCHAR ReservedBit : 1; + UCHAR FieldModeCurrentMbFlag : 1; /* dup info */ + UCHAR FieldModeLeftMbFlag : 1; + UCHAR FieldModeAboveMbFlag : 1; + UCHAR FilterInternal8x8EdgesFlag : 1; + UCHAR FilterInternal4x4EdgesFlag : 1; + UCHAR FilterLeftMbEdgeFlag : 1; + UCHAR FilterTopMbEdgeFlag : 1; + }; + UCHAR FirstByte; + }; + UCHAR Reserved8Bits; /* 4 bytes so far */ + + UCHAR bbSinternalLeftVert; /* 2 bits per bS */ + UCHAR bbSinternalMidVert; + + UCHAR bbSinternalRightVert; + UCHAR bbSinternalTopHorz; /* 8 bytes so far */ + + UCHAR bbSinternalMidHorz; + UCHAR bbSinternalBotHorz; /* 10 bytes so far */ + + USHORT wbSLeft0; /* 4 bits per bS (1 wasted) */ + USHORT wbSLeft1; /* 4 bits per bS (1 wasted) */ + + USHORT wbSTop0; /* 4 bits per bS (1 wasted) */ + USHORT wbSTop1; /* 4b (2 wasted) 18 bytes so far*/ + + DXVA_DeblockIndexAB_H264 IndexAB[3]; /* Y, Cb, Cr */ + +} DXVA_Deblock_H264, *LPDXVA_Deblock_H264;/* 48 bytes */ + +/* H.264/AVC film grain characteristics data structure */ +typedef struct _DXVA_FilmGrainCharacteristics { + + USHORT wFrameWidthInMbsMinus1; + USHORT wFrameHeightInMbsMinus1; + + DXVA_PicEntry_H264 InPic; /* flag is bot field flag */ + DXVA_PicEntry_H264 OutPic; /* flag is field pic flag */ + + USHORT PicOrderCnt_offset; + INT CurrPicOrderCnt; + UINT StatusReportFeedbackNumber; + + UCHAR model_id; + UCHAR separate_colour_description_present_flag; + UCHAR film_grain_bit_depth_luma_minus8; + UCHAR film_grain_bit_depth_chroma_minus8; + + UCHAR film_grain_full_range_flag; + UCHAR film_grain_colour_primaries; + UCHAR film_grain_transfer_characteristics; + UCHAR film_grain_matrix_coefficients; + + UCHAR blending_mode_id; + UCHAR log2_scale_factor; + + UCHAR comp_model_present_flag[4]; + UCHAR num_intensity_intervals_minus1[4]; + UCHAR num_model_values_minus1[4]; + + UCHAR intensity_interval_lower_bound[3][16]; + UCHAR intensity_interval_upper_bound[3][16]; + SHORT comp_model_value[3][16][8]; +} DXVA_FilmGrainChar_H264, *LPDXVA_FilmGrainChar_H264; + +/* H.264/AVC status reporting data structure */ +typedef struct _DXVA_Status_H264 { + UINT StatusReportFeedbackNumber; + DXVA_PicEntry_H264 CurrPic; /* flag is bot field flag */ + UCHAR field_pic_flag; + UCHAR bDXVA_Func; + UCHAR bBufType; + UCHAR bStatus; + UCHAR bReserved8Bits; + USHORT wNumMbsAffected; +} DXVA_Status_H264, *LPDXVA_Status_H264; + +/* H.264 MVC picture parameters structure */ +typedef struct _DXVA_PicParams_H264_MVC { + USHORT wFrameWidthInMbsMinus1; + USHORT wFrameHeightInMbsMinus1; + DXVA_PicEntry_H264 CurrPic; /* flag is bot field flag */ + UCHAR num_ref_frames; + + union { + struct { + USHORT field_pic_flag : 1; + USHORT MbaffFrameFlag : 1; + USHORT residual_colour_transform_flag : 1; + USHORT sp_for_switch_flag : 1; + USHORT chroma_format_idc : 2; + USHORT RefPicFlag : 1; + USHORT constrained_intra_pred_flag : 1; + + USHORT weighted_pred_flag : 1; + USHORT weighted_bipred_idc : 2; + USHORT MbsConsecutiveFlag : 1; + USHORT frame_mbs_only_flag : 1; + USHORT transform_8x8_mode_flag : 1; + USHORT MinLumaBipredSize8x8Flag : 1; + USHORT IntraPicFlag : 1; + }; + USHORT wBitFields; + }; + UCHAR bit_depth_luma_minus8; + UCHAR bit_depth_chroma_minus8; + + USHORT Reserved16Bits; + UINT StatusReportFeedbackNumber; + + DXVA_PicEntry_H264 RefFrameList[16]; /* flag LT */ + INT CurrFieldOrderCnt[2]; + INT FieldOrderCntList[16][2]; + + CHAR pic_init_qs_minus26; + CHAR chroma_qp_index_offset; /* also used for QScb */ + CHAR second_chroma_qp_index_offset; /* also for QScr */ + UCHAR ContinuationFlag; + +/* remainder for parsing */ + CHAR pic_init_qp_minus26; + UCHAR num_ref_idx_l0_active_minus1; + UCHAR num_ref_idx_l1_active_minus1; + UCHAR Reserved8BitsA; + + USHORT FrameNumList[16]; + UINT UsedForReferenceFlags; + USHORT NonExistingFrameFlags; + USHORT frame_num; + + UCHAR log2_max_frame_num_minus4; + UCHAR pic_order_cnt_type; + UCHAR log2_max_pic_order_cnt_lsb_minus4; + UCHAR delta_pic_order_always_zero_flag; + + UCHAR direct_8x8_inference_flag; + UCHAR entropy_coding_mode_flag; + UCHAR pic_order_present_flag; + UCHAR num_slice_groups_minus1; + + UCHAR slice_group_map_type; + UCHAR deblocking_filter_control_present_flag; + UCHAR redundant_pic_cnt_present_flag; + UCHAR Reserved8BitsB; + + USHORT slice_group_change_rate_minus1; + /* SliceGroupMap is not needed for MVC, as MVC is for high profile only */ + + /* Following are H.264 MVC Specific parameters */ + UCHAR num_views_minus1; + USHORT view_id[16]; + UCHAR num_anchor_refs_l0[16]; + USHORT anchor_ref_l0[16][16]; + UCHAR num_anchor_refs_l1[16]; + USHORT anchor_ref_l1[16][16]; + UCHAR num_non_anchor_refs_l0[16]; + USHORT non_anchor_ref_l0[16][16]; + UCHAR num_non_anchor_refs_l1[16]; + USHORT non_anchor_ref_l1[16][16]; + + USHORT curr_view_id; + UCHAR anchor_pic_flag; + UCHAR inter_view_flag; + USHORT ViewIDList[16]; + +} DXVA_PicParams_H264_MVC, *LPDXVA_PicParams_H264_MVC; + +/* VC-1 status reporting data structure */ +typedef struct _DXVA_Status_VC1 { + USHORT StatusReportFeedbackNumber; + WORD wDecodedPictureIndex; + WORD wDeblockedPictureIndex; + UCHAR bPicStructure; + UCHAR bBufType; + UCHAR bStatus; + UCHAR bReserved8Bits; + USHORT wNumMbsAffected; +} DXVA_Status_VC1, *LPDXVA_Status_VC1; + + +/* MPEG4PT2 Picture Parameter structure */ +typedef struct _DXVA_PicParams_MPEG4_PART2 { + UCHAR short_video_header; + UCHAR vop_coding_type; + UCHAR vop_quant; + WORD wDecodedPictureIndex; + WORD wDeblockedPictureIndex; + WORD wForwardRefPictureIndex; + WORD wBackwardRefPictureIndex; + USHORT vop_time_increment_resolution; + UINT TRB[2]; + UINT TRD[2]; + + union { + struct { + USHORT unPicPostProc : 2; + USHORT interlaced : 1; + USHORT quant_type : 1; + USHORT quarter_sample : 1; + USHORT resync_marker_disable : 1; + USHORT data_partitioned : 1; + USHORT reversible_vlc : 1; + USHORT reduced_resolution_vop_enable : 1; + USHORT vop_coded : 1; + USHORT vop_rounding_type : 1; + USHORT intra_dc_vlc_thr : 3; + USHORT top_field_first : 1; + USHORT alternate_vertical_scan_flag : 1; + }; + USHORT wPicFlagBitFields; + }; + UCHAR profile_and_level_indication; + UCHAR video_object_layer_verid; + WORD vop_width; + WORD vop_height; + union { + struct { + USHORT sprite_enable : 2; + USHORT no_of_sprite_warping_points : 6; + USHORT sprite_warping_accuracy : 2; + }; + USHORT wSpriteBitFields; + }; + SHORT warping_mv[4][2]; + union { + struct { + UCHAR vop_fcode_forward : 3; + UCHAR vop_fcode_backward : 3; + }; + UCHAR wFcodeBitFields; + }; + USHORT StatusReportFeedbackNumber; + USHORT Reserved16BitsA; + USHORT Reserved16BitsB; +} DXVA_PicParams_MPEG4_PART2, *LPDXVA_PicParams_MPEG4_PART2; + + +/* HEVC Picture Entry structure */ +typedef struct _DXVA_PicEntry_HEVC +{ + union + { + struct + { + UCHAR Index7Bits : 7; + UCHAR AssociatedFlag : 1; + }; + UCHAR bPicEntry; + }; +} DXVA_PicEntry_HEVC, *LPDXVA_PicEntry_HEVC; + +/* HEVC Picture Parameter structure */ +typedef struct _DXVA_PicParams_HEVC { + USHORT PicWidthInMinCbsY; + USHORT PicHeightInMinCbsY; + union { + struct { + USHORT chroma_format_idc : 2; + USHORT separate_colour_plane_flag : 1; + USHORT bit_depth_luma_minus8 : 3; + USHORT bit_depth_chroma_minus8 : 3; + USHORT log2_max_pic_order_cnt_lsb_minus4 : 4; + USHORT NoPicReorderingFlag : 1; + USHORT NoBiPredFlag : 1; + USHORT ReservedBits1 : 1; + }; + USHORT wFormatAndSequenceInfoFlags; + }; + DXVA_PicEntry_HEVC CurrPic; + UCHAR sps_max_dec_pic_buffering_minus1; + UCHAR log2_min_luma_coding_block_size_minus3; + UCHAR log2_diff_max_min_luma_coding_block_size; + UCHAR log2_min_transform_block_size_minus2; + UCHAR log2_diff_max_min_transform_block_size; + UCHAR max_transform_hierarchy_depth_inter; + UCHAR max_transform_hierarchy_depth_intra; + UCHAR num_short_term_ref_pic_sets; + UCHAR num_long_term_ref_pics_sps; + UCHAR num_ref_idx_l0_default_active_minus1; + UCHAR num_ref_idx_l1_default_active_minus1; + CHAR init_qp_minus26; + UCHAR ucNumDeltaPocsOfRefRpsIdx; + USHORT wNumBitsForShortTermRPSInSlice; + USHORT ReservedBits2; + + union { + struct { + UINT32 scaling_list_enabled_flag : 1; + UINT32 amp_enabled_flag : 1; + UINT32 sample_adaptive_offset_enabled_flag : 1; + UINT32 pcm_enabled_flag : 1; + UINT32 pcm_sample_bit_depth_luma_minus1 : 4; + UINT32 pcm_sample_bit_depth_chroma_minus1 : 4; + UINT32 log2_min_pcm_luma_coding_block_size_minus3 : 2; + UINT32 log2_diff_max_min_pcm_luma_coding_block_size : 2; + UINT32 pcm_loop_filter_disabled_flag : 1; + UINT32 long_term_ref_pics_present_flag : 1; + UINT32 sps_temporal_mvp_enabled_flag : 1; + UINT32 strong_intra_smoothing_enabled_flag : 1; + UINT32 dependent_slice_segments_enabled_flag : 1; + UINT32 output_flag_present_flag : 1; + UINT32 num_extra_slice_header_bits : 3; + UINT32 sign_data_hiding_enabled_flag : 1; + UINT32 cabac_init_present_flag : 1; + UINT32 ReservedBits3 : 5; + }; + UINT32 dwCodingParamToolFlags; + }; + + union { + struct { + UINT32 constrained_intra_pred_flag : 1; + UINT32 transform_skip_enabled_flag : 1; + UINT32 cu_qp_delta_enabled_flag : 1; + UINT32 pps_slice_chroma_qp_offsets_present_flag : 1; + UINT32 weighted_pred_flag : 1; + UINT32 weighted_bipred_flag : 1; + UINT32 transquant_bypass_enabled_flag : 1; + UINT32 tiles_enabled_flag : 1; + UINT32 entropy_coding_sync_enabled_flag : 1; + UINT32 uniform_spacing_flag : 1; + UINT32 loop_filter_across_tiles_enabled_flag : 1; + UINT32 pps_loop_filter_across_slices_enabled_flag : 1; + UINT32 deblocking_filter_override_enabled_flag : 1; + UINT32 pps_deblocking_filter_disabled_flag : 1; + UINT32 lists_modification_present_flag : 1; + UINT32 slice_segment_header_extension_present_flag : 1; + UINT32 IrapPicFlag : 1; + UINT32 IdrPicFlag : 1; + UINT32 IntraPicFlag : 1; + UINT32 ReservedBits4 : 13; + }; + UINT32 dwCodingSettingPicturePropertyFlags; + }; + CHAR pps_cb_qp_offset; + CHAR pps_cr_qp_offset; + UCHAR num_tile_columns_minus1; + UCHAR num_tile_rows_minus1; + USHORT column_width_minus1[19]; + USHORT row_height_minus1[21]; + UCHAR diff_cu_qp_delta_depth; + CHAR pps_beta_offset_div2; + CHAR pps_tc_offset_div2; + UCHAR log2_parallel_merge_level_minus2; + INT CurrPicOrderCntVal; + DXVA_PicEntry_HEVC RefPicList[15]; + UCHAR ReservedBits5; + INT PicOrderCntValList[15]; + UCHAR RefPicSetStCurrBefore[8]; + UCHAR RefPicSetStCurrAfter[8]; + UCHAR RefPicSetLtCurr[8]; + USHORT ReservedBits6; + USHORT ReservedBits7; + UINT StatusReportFeedbackNumber; +} DXVA_PicParams_HEVC, *LPDXVA_PicParams_HEVC; + +/* HEVC Picture Parameter structure for Range Extensions */ +typedef struct _DXVA_PicParams_HEVC_RangeExt { + DXVA_PicParams_HEVC params; + + union { + struct { + USHORT transform_skip_rotation_enabled_flag : 1; + USHORT transform_skip_context_enabled_flag : 1; + USHORT implicit_rdpcm_enabled_flag : 1; + USHORT explicit_rdpcm_enabled_flag : 1; + USHORT extended_precision_processing_flag : 1; + USHORT intra_smoothing_disabled_flag : 1; + USHORT persistent_rice_adaptation_enabled_flag : 1; + USHORT high_precision_offsets_enabled_flag : 1; + USHORT cabac_bypass_alignment_enabled_flag : 1; + USHORT cross_component_prediction_enabled_flag : 1; + USHORT chroma_qp_offset_list_enabled_flag : 1; + USHORT ReservedBits8 : 5; + }; + USHORT dwRangeExtensionFlags; + }; + + UCHAR diff_cu_chroma_qp_offset_depth; + UCHAR log2_sao_offset_scale_luma; + UCHAR log2_sao_offset_scale_chroma; + UCHAR log2_max_transform_skip_block_size_minus2; + CHAR cb_qp_offset_list[6]; + CHAR cr_qp_offset_list[6]; + UCHAR chroma_qp_offset_list_len_minus1; + USHORT ReservedBits9; + +} DXVA_PicParams_HEVC_RangeExt, *LPDXVA_PicParams_HEVC_RangeExt; + +/* HEVC Quantizatiuon Matrix structure */ +typedef struct _DXVA_Qmatrix_HEVC +{ + UCHAR ucScalingLists0[6][16]; + UCHAR ucScalingLists1[6][64]; + UCHAR ucScalingLists2[6][64]; + UCHAR ucScalingLists3[2][64]; + UCHAR ucScalingListDCCoefSizeID2[6]; + UCHAR ucScalingListDCCoefSizeID3[2]; +} DXVA_Qmatrix_HEVC, *LPDXVA_Qmatrix_HEVC; + + +/* HEVC Slice Control Structure */ +typedef struct _DXVA_Slice_HEVC_Short +{ + UINT BSNALunitDataLocation; + UINT SliceBytesInBuffer; + USHORT wBadSliceChopping; +} DXVA_Slice_HEVC_Short, *LPDXVA_Slice_HEVC_Short; + +/* H.265/HEVC status reporting data structure */ +typedef struct _DXVA_Status_HEVC { + USHORT StatusReportFeedbackNumber; + DXVA_PicEntry_HEVC CurrPic; + UCHAR bBufType; + UCHAR bStatus; + UCHAR bReserved8Bits; + USHORT wNumMbsAffected; +} DXVA_Status_HEVC, *LPDXVA_Status_HEVC; + +#pragma pack(push, 16) + + +typedef DXVA_MBctrl_I_HostResidDiff_1 * + LPDXVA_MBctrl_I_HostResidDiff_1; + +typedef DXVA_MBctrl_I_OffHostIDCT_1 * + LPDXVA_MBctrl_I_OffHostIDCT_1; + +typedef DXVA_MBctrl_P_HostResidDiff_1 * + LPDXVA_MBctrl_P_HostResidDiff_1; + +typedef DXVA_MBctrl_P_OffHostIDCT_1 * + LPDXVA_MBctrl_P_OffHostIDCT_1; + + +#pragma pack(pop) + +/* VPx-specific structures */ + +/* VPx picture entry data structure */ +typedef struct _DXVA_PicEntry_VPx { + union { + struct { + UCHAR Index7Bits : 7; + UCHAR AssociatedFlag : 1; + }; + UCHAR bPicEntry; + }; +} DXVA_PicEntry_VPx, *LPDXVA_PicEntry_VPx; + +/* VP9 segmentation structure */ +typedef struct _segmentation_VP9 { + union { + struct { + UCHAR enabled : 1; + UCHAR update_map : 1; + UCHAR temporal_update : 1; + UCHAR abs_delta : 1; + UCHAR ReservedSegmentFlags4Bits : 4; + }; + UCHAR wSegmentInfoFlags; + }; + UCHAR tree_probs[7]; + UCHAR pred_probs[3]; + SHORT feature_data[8][4]; + UCHAR feature_mask[8]; +} DXVA_segmentation_VP9; + +/* VP9 picture parameters structure */ +typedef struct _DXVA_PicParams_VP9 { + DXVA_PicEntry_VPx CurrPic; + UCHAR profile; + union { + struct { + USHORT frame_type : 1; + USHORT show_frame : 1; + USHORT error_resilient_mode : 1; + USHORT subsampling_x : 1; + USHORT subsampling_y : 1; + USHORT extra_plane : 1; + USHORT refresh_frame_context : 1; + USHORT frame_parallel_decoding_mode : 1; + USHORT intra_only : 1; + USHORT frame_context_idx : 2; + USHORT reset_frame_context : 2; + USHORT allow_high_precision_mv : 1; + USHORT ReservedFormatInfo2Bits : 2; + }; + USHORT wFormatAndPictureInfoFlags; + }; + UINT width; + UINT height; + UCHAR BitDepthMinus8Luma; + UCHAR BitDepthMinus8Chroma; + UCHAR interp_filter; + UCHAR Reserved8Bits; + DXVA_PicEntry_VPx ref_frame_map[8]; + UINT ref_frame_coded_width[8]; + UINT ref_frame_coded_height[8]; + DXVA_PicEntry_VPx frame_refs[3]; + CHAR ref_frame_sign_bias[4]; + CHAR filter_level; + CHAR sharpness_level; + union { + struct { + UCHAR mode_ref_delta_enabled : 1; + UCHAR mode_ref_delta_update : 1; + UCHAR use_prev_in_find_mv_refs : 1; + UCHAR ReservedControlInfo5Bits : 5; + }; + UCHAR wControlInfoFlags; + }; + CHAR ref_deltas[4]; + CHAR mode_deltas[2]; + SHORT base_qindex; + CHAR y_dc_delta_q; + CHAR uv_dc_delta_q; + CHAR uv_ac_delta_q; + DXVA_segmentation_VP9 stVP9Segments; + UCHAR log2_tile_cols; + UCHAR log2_tile_rows; + USHORT uncompressed_header_size_byte_aligned; + USHORT first_partition_size; + USHORT Reserved16Bits; + UINT Reserved32Bits; + UINT StatusReportFeedbackNumber; +} DXVA_PicParams_VP9, *LPDXVA_PicParams_VP9; + +/* VP8 segmentation structure */ +typedef struct _segmentation_VP8 { + union { + struct { + UCHAR segmentation_enabled : 1; + UCHAR update_mb_segmentation_map : 1; + UCHAR update_mb_segmentation_data : 1; + UCHAR mb_segement_abs_delta : 1; + UCHAR ReservedSegmentFlags4Bits : 4; + }; + UCHAR wSegmentFlags; + }; + CHAR segment_feature_data[2][4]; + UCHAR mb_segment_tree_probs[3]; +} DXVA_segmentation_VP8; + +/* VP8 picture parameters structure */ +typedef struct _DXVA_PicParams_VP8 { + UINT first_part_size; + UINT width; + UINT height; + DXVA_PicEntry_VPx CurrPic; + union { + struct { + UCHAR frame_type : 1; + UCHAR version : 3; + UCHAR show_frame : 1; + UCHAR clamp_type : 1; + UCHAR ReservedFrameTag3Bits : 2; + }; + UCHAR wFrameTagFlags; + }; + DXVA_segmentation_VP8 stVP8Segments; + UCHAR filter_type; + UCHAR filter_level; + UCHAR sharpness_level; + UCHAR mode_ref_lf_delta_enabled; + UCHAR mode_ref_lf_delta_update; + CHAR ref_lf_deltas[4]; + CHAR mode_lf_deltas[4]; + UCHAR log2_nbr_of_dct_partitions; + UCHAR base_qindex; + CHAR y1dc_delta_q; + CHAR y2dc_delta_q; + CHAR y2ac_delta_q; + CHAR uvdc_delta_q; + CHAR uvac_delta_q; + DXVA_PicEntry_VPx alt_fb_idx; + DXVA_PicEntry_VPx gld_fb_idx; + DXVA_PicEntry_VPx lst_fb_idx; + UCHAR ref_frame_sign_bias_golden; + UCHAR ref_frame_sign_bias_altref; + UCHAR refresh_entropy_probs; + UCHAR vp8_coef_update_probs[4][8][3][11]; + UCHAR mb_no_coeff_skip; + UCHAR prob_skip_false; + UCHAR prob_intra; + UCHAR prob_last; + UCHAR prob_golden; + UCHAR intra_16x16_prob[4]; + UCHAR intra_chroma_prob[3]; + UCHAR vp8_mv_update_probs[2][19]; + USHORT ReservedBits1; + USHORT ReservedBits2; + USHORT ReservedBits3; + UINT StatusReportFeedbackNumber; +} DXVA_PicParams_VP8, *LPDXVA_PicParams_VP8; + +/* VPx slice control data structure - short form */ +typedef struct _DXVA_Slice_VPx_Short { + UINT BSNALunitDataLocation; + UINT SliceBytesInBuffer; + USHORT wBadSliceChopping; +} DXVA_Slice_VPx_Short, *LPDXVA_Slice_VPx_Short; + +/* VPx status reporting data structure */ +typedef struct _DXVA_Status_VPx { + UINT StatusReportFeedbackNumber; + DXVA_PicEntry_VPx CurrPic; + UCHAR bBufType; + UCHAR bStatus; + UCHAR bReserved8Bits; + USHORT wNumMbsAffected; +} DXVA_Status_VPx, *LPDXVA_Status_VPx; + +/* AV1 specific structures */ + +#ifndef _DIRECTX_AV1_VA_ +#define _DIRECTX_AV1_VA_ + +/* AV1 picture entry data structure */ +typedef struct _DXVA_PicEntry_AV1 { + + UINT width; + UINT height; + + // Global motion parameters + INT wmmat[6]; + union { + struct { + UCHAR wminvalid : 1; + UCHAR wmtype : 2; + UCHAR Reserved : 5; + }; + UCHAR GlobalMotionFlags; + } DUMMYUNIONNAME; + + UCHAR Index; + UINT16 Reserved16Bits; + +} DXVA_PicEntry_AV1, *LPDXVA_PicEntry_AV1; + +/* AV1 picture parameters structure */ +typedef struct _DXVA_PicParams_AV1 { + UINT width; + UINT height; + + UINT max_width; + UINT max_height; + + UCHAR CurrPicTextureIndex; + UCHAR superres_denom; + UCHAR bitdepth; + UCHAR seq_profile; + + // Tiles: + struct { + UCHAR cols; + UCHAR rows; + USHORT context_update_id; + USHORT widths[64]; + USHORT heights[64]; + } tiles; + + // Coding Tools + union { + struct { + UINT use_128x128_superblock : 1; + UINT intra_edge_filter : 1; + UINT interintra_compound : 1; + UINT masked_compound : 1; + UINT warped_motion : 1; + UINT dual_filter : 1; + UINT jnt_comp : 1; + UINT screen_content_tools : 1; + UINT integer_mv : 1; + UINT cdef : 1; + UINT restoration : 1; + UINT film_grain : 1; + UINT intrabc : 1; + UINT high_precision_mv : 1; + UINT switchable_motion_mode : 1; + UINT filter_intra : 1; + UINT disable_frame_end_update_cdf : 1; + UINT disable_cdf_update : 1; + UINT reference_mode : 1; + UINT skip_mode : 1; + UINT reduced_tx_set : 1; + UINT superres : 1; + UINT tx_mode : 2; + UINT use_ref_frame_mvs : 1; + UINT enable_ref_frame_mvs : 1; + UINT reference_frame_update : 1; + UINT Reserved : 5; + }; + UINT32 CodingParamToolFlags; + } coding; + + // Format & Picture Info flags + union { + struct { + UCHAR frame_type : 2; + UCHAR show_frame : 1; + UCHAR showable_frame : 1; + UCHAR subsampling_x : 1; + UCHAR subsampling_y : 1; + UCHAR mono_chrome : 1; + UCHAR Reserved : 1; + }; + UCHAR FormatAndPictureInfoFlags; + } format; + + // References + UCHAR primary_ref_frame; + UCHAR order_hint; + UCHAR order_hint_bits; + + DXVA_PicEntry_AV1 frame_refs[7]; + UCHAR RefFrameMapTextureIndex[8]; + + // Loop filter parameters + struct { + UCHAR filter_level[2]; + UCHAR filter_level_u; + UCHAR filter_level_v; + + UCHAR sharpness_level; + union { + struct { + UCHAR mode_ref_delta_enabled : 1; + UCHAR mode_ref_delta_update : 1; + UCHAR delta_lf_multi : 1; + UCHAR delta_lf_present : 1; + UCHAR Reserved : 4; + }; + UCHAR ControlFlags; + } DUMMYUNIONNAME; + CHAR ref_deltas[8]; + CHAR mode_deltas[2]; + UCHAR delta_lf_res; + UCHAR frame_restoration_type[3]; + USHORT log2_restoration_unit_size[3]; + UINT16 Reserved16Bits; + } loop_filter; + + // Quantization + struct { + union { + struct { + UCHAR delta_q_present : 1; + UCHAR delta_q_res : 2; + UCHAR Reserved : 5; + }; + UCHAR ControlFlags; + } DUMMYUNIONNAME; + + UCHAR base_qindex; + CHAR y_dc_delta_q; + CHAR u_dc_delta_q; + CHAR v_dc_delta_q; + CHAR u_ac_delta_q; + CHAR v_ac_delta_q; + // using_qmatrix: + UCHAR qm_y; + UCHAR qm_u; + UCHAR qm_v; + UINT16 Reserved16Bits; + } quantization; + + // Cdef parameters + struct { + union { + struct { + UCHAR damping : 2; + UCHAR bits : 2; + UCHAR Reserved : 4; + }; + UCHAR ControlFlags; + } DUMMYUNIONNAME; + + union { + struct { + UCHAR primary : 6; + UCHAR secondary : 2; + }; + UCHAR combined; + } y_strengths[8]; + + union { + struct { + UCHAR primary : 6; + UCHAR secondary : 2; + }; + UCHAR combined; + } uv_strengths[8]; + + } cdef; + + UCHAR interp_filter; + + // Segmentation + struct { + union { + struct { + UCHAR enabled : 1; + UCHAR update_map : 1; + UCHAR update_data : 1; + UCHAR temporal_update : 1; + UCHAR Reserved : 4; + }; + UCHAR ControlFlags; + } DUMMYUNIONNAME; + UCHAR Reserved24Bits[3]; + + union { + struct { + UCHAR alt_q : 1; + UCHAR alt_lf_y_v : 1; + UCHAR alt_lf_y_h : 1; + UCHAR alt_lf_u : 1; + UCHAR alt_lf_v : 1; + UCHAR ref_frame : 1; + UCHAR skip : 1; + UCHAR globalmv : 1; + }; + UCHAR mask; + } feature_mask[8]; + + SHORT feature_data[8][8]; + + } segmentation; + + struct { + union { + struct { + USHORT apply_grain : 1; + USHORT scaling_shift_minus8 : 2; + USHORT chroma_scaling_from_luma : 1; + USHORT ar_coeff_lag : 2; + USHORT ar_coeff_shift_minus6 : 2; + USHORT grain_scale_shift : 2; + USHORT overlap_flag : 1; + USHORT clip_to_restricted_range : 1; + USHORT matrix_coeff_is_identity : 1; + USHORT Reserved : 3; + }; + USHORT ControlFlags; + } DUMMYUNIONNAME; + + USHORT grain_seed; + UCHAR scaling_points_y[14][2]; + UCHAR num_y_points; + UCHAR scaling_points_cb[10][2]; + UCHAR num_cb_points; + UCHAR scaling_points_cr[10][2]; + UCHAR num_cr_points; + UCHAR ar_coeffs_y[24]; + UCHAR ar_coeffs_cb[25]; + UCHAR ar_coeffs_cr[25]; + UCHAR cb_mult; + UCHAR cb_luma_mult; + UCHAR cr_mult; + UCHAR cr_luma_mult; + UCHAR Reserved8Bits; + SHORT cb_offset; + SHORT cr_offset; + } film_grain; + + UINT Reserved32Bits; + UINT StatusReportFeedbackNumber; +} DXVA_PicParams_AV1, *LPDXVA_PicParams_AV1; + +/* AV1 tile structure */ +typedef struct _DXVA_Tile_AV1 { + UINT DataOffset; + UINT DataSize; + USHORT row; + USHORT column; + UINT16 Reserved16Bits; + UCHAR anchor_frame; + UCHAR Reserved8Bits; +} DXVA_Tile_AV1, *LPDXVA_Tile_AV1; + +/* AV1 status reporting data structure */ +typedef struct _DXVA_Status_AV1 { + UINT StatusReportFeedbackNumber; + DXVA_PicEntry_AV1 CurrPic; + UCHAR BufType; + UCHAR Status; + UCHAR Reserved8Bits; + USHORT NumMbsAffected; +} DXVA_Status_AV1, *LPDXVA_Status_AV1; + +#endif // _DIRECTX_AV1_VA_ + +/* MJPEG specific structures */ + +#ifndef _DIRECTX_MJPEG_VA_ +#define _DIRECTX_MJPEG_VA_ + +/* MJPEG picture parameters structure */ +typedef struct _DXVA_PicParams_MJPEG { + UINT width; + UINT height; + UCHAR numComponents; + UCHAR bitDepth; + USHORT reserved16Bits; + UCHAR quantizationTableSelector[4]; + UINT scanOffset[4]; + UINT scanSize[4]; + UCHAR componentIdentifier[4]; + USHORT restartInterval; + USHORT reserved16Bits2; + UINT reserved32Bits; + UINT statusReportFeedbackNumber; +} DXVA_PicParams_MJPEG, *LPDXVA_PicParams_MJPEG; + +/* MJPEG quantization table structure */ +typedef struct _DXVA_QMatrix_MJPEG { + + UINT16 quantvals[4][64]; + +} DXVA_QMatrix_MJPEG, *LPDXVA_QMatrix_MJPEG; + +/* MJPEG quantization table structure */ +typedef struct _DXVA_HuffmanTable_MJPEG { + + UINT8 bits_ac[4][16]; + UINT8 table_ac[4][256]; + + UINT8 bits_dc[4][16]; + UINT8 table_dc[4][256]; + +} DXVA_HuffmanTable_MJPEG, *LPDXVA_HuffmanTable_MJPEG; + +#endif // _DIRECTX_MJPEG_VA_ + +/* + * Other forms of pictures are constructed in the obvious way + * from the above by adjusting the number of residual difference + * blocks, the number of motion vectors per macroblock, etc. + */ + +#define readDXVA_MBskipsFollowing(ptr) (((ptr)->dwMB_SNL & 0xFF000000) >> 24) +#define readDXVA_MBdataLocation(ptr) (((ptr)->dwMB_SNL & 0x00FFFFFF)) + +#define writeDXVA_MB_SNL(ptr, skips, dloc) ((ptr)->dwMB_SNL = (((skips) << 24) | (dloc))) +#define setDXVA_MBskipsFollowing(ptr, skips) ((ptr)->dwMB_SNL |= ((skips) << 24)) +#define setDXVA_MBdataLocation(ptr, dloc) ((ptr)->dwMB_SNL |= (dloc)) + +#define readDXVA_MvertFieldSel_3(ptr) (((ptr)->wMBtype & 0x8000) >> 15) +#define readDXVA_MvertFieldSel_2(ptr) (((ptr)->wMBtype & 0x4000) >> 14) +#define readDXVA_MvertFieldSel_1(ptr) (((ptr)->wMBtype & 0x2000) >> 13) +#define readDXVA_MvertFieldSel_0(ptr) (((ptr)->wMBtype & 0x1000) >> 12) +#define readDXVA_ReservedBits(ptr) (((ptr)->wMBtype & 0x0800) >> 11) +#define readDXVA_HostResidDiff(ptr) (((ptr)->wMBtype & 0x0400) >> 10) +#define readDXVA_MotionType(ptr) (((ptr)->wMBtype & 0x0300) >> 8) +#define readDXVA_MBscanMethod(ptr) (((ptr)->wMBtype & 0x00C0) >> 6) +#define readDXVA_FieldResidual(ptr) (((ptr)->wMBtype & 0x0020) >> 5) +#define readDXVA_H261LoopFilter(ptr) (((ptr)->wMBtype & 0x0010) >> 4) +#define readDXVA_Motion4MV(ptr) (((ptr)->wMBtype & 0x0008) >> 3) +#define readDXVA_MotionBackward(ptr) (((ptr)->wMBtype & 0x0004) >> 2) +#define readDXVA_MotionForward(ptr) (((ptr)->wMBtype & 0x0002) >> 1) +#define readDXVA_IntraMacroblock(ptr) (((ptr)->wMBtype & 0x0001)) + +#define setDXVA_MvertFieldSel_3(ptr) ((ptr)->wMBtype |= 0x8000) +#define setDXVA_MvertFieldSel_2(ptr) ((ptr)->wMBtype |= 0x4000) +#define setDXVA_MvertFieldSel_1(ptr) ((ptr)->wMBtype |= 0x2000) +#define setDXVA_MvertFieldSel_0(ptr) ((ptr)->wMBtype |= 0x1000) +#define setDXVA_ReservedBits(ptr) ((ptr)->wMBtype |= 0x0800) +#define setDXVA_HostResidDiff(ptr) ((ptr)->wMBtype |= 0x0400) +#define setDXVA_MotionType(ptr, value) ((ptr)->wMBtype |= ((value) << 8)) +#define setDXVA_MBscanMethod(ptr, value) ((ptr)->wMBtype |= ((value) << 6)) +#define setDXVA_FieldResidual(ptr) ((ptr)->wMBtype |= 0x0020) +#define setDXVA_H261LoopFilter(ptr) ((ptr)->wMBtype |= 0x0010) +#define setDXVA_Motion4MV(ptr) ((ptr)->wMBtype |= 0x0008) +#define setDXVA_MotionBackward(ptr) ((ptr)->wMBtype |= 0x0004) +#define setDXVA_MotionForward(ptr) ((ptr)->wMBtype |= 0x0002) +#define setDXVA_IntraMacroblock(ptr) ((ptr)->wMBtype |= 0x0001) + +#define readDXVA_Y___0coded(ptr) (((ptr)->wPatternCode & 0x0800) >> 11) +#define readDXVA_Y___1coded(ptr) (((ptr)->wPatternCode & 0x0400) >> 10) +#define readDXVA_Y___2coded(ptr) (((ptr)->wPatternCode & 0x0200) >> 9) +#define readDXVA_Y___3coded(ptr) (((ptr)->wPatternCode & 0x0100) >> 8) +#define readDXVA_Cb__4coded(ptr) (((ptr)->wPatternCode & 0x0080) >> 7) +#define readDXVA_Cr__5coded(ptr) (((ptr)->wPatternCode & 0x0040) >> 6) +#define readDXVA_Cb__6coded(ptr) (((ptr)->wPatternCode & 0x0020) >> 5) +#define readDXVA_Cr__7coded(ptr) (((ptr)->wPatternCode & 0x0010) >> 4) +#define readDXVA_Cb__8coded(ptr) (((ptr)->wPatternCode & 0x0008) >> 3) +#define readDXVA_Cb__9coded(ptr) (((ptr)->wPatternCode & 0x0004) >> 2) +#define readDXVA_Cr_10coded(ptr) (((ptr)->wPatternCode & 0x0002) >> 1) +#define readDXVA_Cr_11coded(ptr) (((ptr)->wPatternCode & 0x0001)) + +#define readDXVA_Y___0oflow(ptr) (((ptr)->wPC_Overflow & 0x0800) >> 11) +#define readDXVA_Y___1oflow(ptr) (((ptr)->wPC_Overflow & 0x0400) >> 10) +#define readDXVA_Y___2oflow(ptr) (((ptr)->wPC_Overflow & 0x0200) >> 9) +#define readDXVA_Y___3oflow(ptr) (((ptr)->wPC_Overflow & 0x0100) >> 8) +#define readDXVA_Cb__4oflow(ptr) (((ptr)->wPC_Overflow & 0x0080) >> 7) +#define readDXVA_Cr__5oflow(ptr) (((ptr)->wPC_Overflow & 0x0040) >> 6) +#define readDXVA_Cb__6oflow(ptr) (((ptr)->wPC_Overflow & 0x0020) >> 5) +#define readDXVA_Cr__7oflow(ptr) (((ptr)->wPC_Overflow & 0x0010) >> 4) +#define readDXVA_Cb__8oflow(ptr) (((ptr)->wPC_Overflow & 0x0008) >> 3) +#define readDXVA_Cb__9oflow(ptr) (((ptr)->wPC_Overflow & 0x0004) >> 2) +#define readDXVA_Cr_10oflow(ptr) (((ptr)->wPC_Overflow & 0x0002) >> 1) +#define readDXVA_Cr_11oflow(ptr) (((ptr)->wPC_Overflow & 0x0001)) + +#pragma pack(pop, BeforeDXVApacking) +#endif /* __DIRECTX_VA_DECODER__ */ + + +// ------------------------------------------------------------------------- +// +// D3DFORMAT describes a pixel memory layout, DXVA sample format contains +// additional information that describes how the pixels should be interpreted. +// +// DXVA Extended color data - occupies the SampleFormat DWORD +// data fields. +// ------------------------------------------------------------------------- +#ifndef __DIRECTX_VA_SAMPLEFORMAT__ +#define __DIRECTX_VA_SAMPLEFORMAT__ + +typedef enum _DXVA_SampleFormat { + DXVA_SampleFormatMask = 0xFF, // 8 bits used for DXVA Sample format + DXVA_SampleUnknown = 0, + DXVA_SamplePreviousFrame = 1, + DXVA_SampleProgressiveFrame = 2, + DXVA_SampleFieldInterleavedEvenFirst = 3, + DXVA_SampleFieldInterleavedOddFirst = 4, + DXVA_SampleFieldSingleEven = 5, + DXVA_SampleFieldSingleOdd = 6, + DXVA_SampleSubStream = 7 +} DXVA_SampleFormat; + +#define DXVA_ExtractSampleFormat(_sf) ((_sf) & (DXVA_SampleFormatMask)) + +#define DXVA_ExtractExtColorData(_sf, _Mask, _Shift) \ + (((_sf) & (_Mask)) >> (_Shift)) + +#define DXVABitMask(__n) (~((~0) << __n)) +#define DXVA_ExtColorData_ShiftBase 8 +#define DXVAColorMask(__bits,__base) (DXVABitMask(__bits) << (__base)) + +typedef enum _DXVA_VideoTransferFunction +{ + DXVA_VideoTransFuncShift = (DXVA_ExtColorData_ShiftBase + 19), + DXVA_VideoTransFuncMask = DXVAColorMask(5, DXVA_VideoTransFuncShift), + + DXVA_VideoTransFunc_Unknown = 0, + DXVA_VideoTransFunc_10 = 1, + DXVA_VideoTransFunc_18 = 2, + DXVA_VideoTransFunc_20 = 3, + DXVA_VideoTransFunc_22 = 4, + DXVA_VideoTransFunc_22_709 = 5, + DXVA_VideoTransFunc_22_240M = 6, + DXVA_VideoTransFunc_22_8bit_sRGB = 7, + DXVA_VideoTransFunc_28 = 8 +} DXVA_VideoTransferFunction; + +typedef enum _DXVA_VideoPrimaries +{ + DXVA_VideoPrimariesShift = (DXVA_ExtColorData_ShiftBase + 14), + DXVA_VideoPrimariesMask = DXVAColorMask(5, DXVA_VideoPrimariesShift), + + DXVA_VideoPrimaries_Unknown = 0, + DXVA_VideoPrimaries_reserved = 1, + DXVA_VideoPrimaries_BT709 = 2, + DXVA_VideoPrimaries_BT470_2_SysM = 3, + DXVA_VideoPrimaries_BT470_2_SysBG = 4, + DXVA_VideoPrimaries_SMPTE170M = 5, + DXVA_VideoPrimaries_SMPTE240M = 6, + DXVA_VideoPrimaries_EBU3213 = 7, + DXVA_VideoPrimaries_SMPTE_C = 8 +} DXVA_VideoPrimaries; + +typedef enum _DXVA_VideoLighting +{ + DXVA_VideoLightingShift = (DXVA_ExtColorData_ShiftBase + 10), + DXVA_VideoLightingMask = DXVAColorMask(4, DXVA_VideoLightingShift), + + DXVA_VideoLighting_Unknown = 0, + DXVA_VideoLighting_bright = 1, + DXVA_VideoLighting_office = 2, + DXVA_VideoLighting_dim = 3, + DXVA_VideoLighting_dark = 4 +} DXVA_VideoLighting; + +typedef enum _DXVA_VideoTransferMatrix +{ + DXVA_VideoTransferMatrixShift = (DXVA_ExtColorData_ShiftBase + 7), + DXVA_VideoTransferMatrixMask = DXVAColorMask(3, DXVA_VideoTransferMatrixShift), + + DXVA_VideoTransferMatrix_Unknown = 0, + DXVA_VideoTransferMatrix_BT709 = 1, + DXVA_VideoTransferMatrix_BT601 = 2, + DXVA_VideoTransferMatrix_SMPTE240M = 3 +} DXVA_VideoTransferMatrix; + +typedef enum _DXVA_NominalRange +{ + DXVA_NominalRangeShift = (DXVA_ExtColorData_ShiftBase + 4), + DXVA_NominalRangeMask = DXVAColorMask(3, DXVA_NominalRangeShift), + + DXVA_NominalRange_Unknown = 0, + DXVA_NominalRange_Normal = 1, + DXVA_NominalRange_Wide = 2, + + DXVA_NominalRange_0_255 = 1, + DXVA_NominalRange_16_235 = 2, + DXVA_NominalRange_48_208 = 3 +} DXVA_NominalRange; + + +typedef enum _DXVA_VideoChromaSubsampling +{ + DXVA_VideoChromaSubsamplingShift = (DXVA_ExtColorData_ShiftBase + 0), + DXVA_VideoChromaSubsamplingMask = DXVAColorMask(4, DXVA_VideoChromaSubsamplingShift), + + DXVA_VideoChromaSubsampling_Unknown = 0, + DXVA_VideoChromaSubsampling_ProgressiveChroma = 0x8, + DXVA_VideoChromaSubsampling_Horizontally_Cosited = 0x4, + DXVA_VideoChromaSubsampling_Vertically_Cosited = 0x2, + DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes = 0x1, + + // 4:2:0 variations + DXVA_VideoChromaSubsampling_MPEG2 = DXVA_VideoChromaSubsampling_Horizontally_Cosited | + DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes, + + DXVA_VideoChromaSubsampling_MPEG1 = DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes, + + DXVA_VideoChromaSubsampling_DV_PAL = DXVA_VideoChromaSubsampling_Horizontally_Cosited | + DXVA_VideoChromaSubsampling_Vertically_Cosited, + // 4:4:4, 4:2:2, 4:1:1 + DXVA_VideoChromaSubsampling_Cosited = DXVA_VideoChromaSubsampling_Horizontally_Cosited | + DXVA_VideoChromaSubsampling_Vertically_Cosited | + DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes, +} DXVA_VideoChromaSubsampling; + +typedef struct _DXVA_ExtendedFormat +{ + UINT SampleFormat : 8; // See DXVA_SampleFormat + UINT VideoChromaSubsampling : 4; // See DXVA_VideoChromaSubSampling + DXVA_NominalRange NominalRange : 3; // See DXVA_NominalRange + DXVA_VideoTransferMatrix VideoTransferMatrix : 3; // See DXVA_VideoTransferMatrix + DXVA_VideoLighting VideoLighting : 4; // See DXVA_VideoLighting + DXVA_VideoPrimaries VideoPrimaries : 5; // See DXVA_VideoPrimaries + DXVA_VideoTransferFunction VideoTransferFunction : 5; // See DXVA_VideoTransferFunction +} DXVA_ExtendedFormat; + +#endif + + + +// ------------------------------------------------------------------------- +// +// The definitions that follow describe the video de-interlace interface +// between the VMR and the graphics device driver. This interface is not +// accessable via the IAMVideoAccelerator interface. +// +// ------------------------------------------------------------------------- +// +#ifndef __DIRECTX_VA_DEINTERLACE__ +#define __DIRECTX_VA_DEINTERLACE__ + +typedef LONGLONG REFERENCE_TIME; + +DEFINE_GUID(DXVA_DeinterlaceBobDevice, + 0x335aa36e,0x7884,0x43a4,0x9c,0x91,0x7f,0x87,0xfa,0xf3,0xe3,0x7e); + +DEFINE_GUID(DXVA_DeinterlaceContainerDevice, + 0x0e85cb93,0x3046,0x4ff0,0xae,0xcc,0xd5,0x8c,0xb5,0xf0,0x35,0xfd); + + +#if (DIRECT3D_VERSION < 0x0800) || !defined(DIRECT3D_VERSION) +typedef DWORD D3DFORMAT; +enum { + D3DPOOL_DEFAULT = 0, + D3DPOOL_MANAGED = 1, + D3DPOOL_SYSTEMMEM = 2, + D3DPOOL_SCRATCH = 3, + D3DPOOL_LOCALVIDMEM = 4, + D3DPOOL_NONLOCALVIDMEM = 5, + D3DPOOL_FORCE_DWORD = 0x7fffffff +}; +#endif + + +// ------------------------------------------------------------------------- +// data structures shared by User mode and Kernel mode. +// ------------------------------------------------------------------------- +// + +typedef struct _DXVA_Frequency { + DWORD Numerator; + DWORD Denominator; +} DXVA_Frequency; + +typedef struct _DXVA_VideoDesc { + DWORD Size; + DWORD SampleWidth; + DWORD SampleHeight; + DWORD SampleFormat; // also contains extend color data + D3DFORMAT d3dFormat; + DXVA_Frequency InputSampleFreq; + DXVA_Frequency OutputFrameFreq; +} DXVA_VideoDesc, *LPDXVA_VideoDesc; + +typedef enum _DXVA_VideoProcessCaps { + DXVA_VideoProcess_None = 0x0000, + DXVA_VideoProcess_YUV2RGB = 0x0001, + DXVA_VideoProcess_StretchX = 0x0002, + DXVA_VideoProcess_StretchY = 0x0004, + DXVA_VideoProcess_AlphaBlend = 0x0008, + DXVA_VideoProcess_SubRects = 0x0010, + DXVA_VideoProcess_SubStreams = 0x0020, + DXVA_VideoProcess_SubStreamsExtended = 0x0040, + DXVA_VideoProcess_YUV2RGBExtended = 0x0080, + DXVA_VideoProcess_AlphaBlendExtended = 0x0100 +} DXVA_VideoProcessCaps; + +typedef enum _DXVA_DeinterlaceTech { + + // the algorithm is unknown or proprietary + DXVA_DeinterlaceTech_Unknown = 0x0000, + + // the algorithm creates the missing lines by repeating + // the line either above or below it - this method will look very jaggy and + // isn't recommended + DXVA_DeinterlaceTech_BOBLineReplicate = 0x0001, + + // The algorithm creates the missing lines by vertically stretching each + // video field by a factor of two by averaging two lines + DXVA_DeinterlaceTech_BOBVerticalStretch = 0x0002, + + // or using a [-1, 9, 9, -1]/16 filter across four lines. + DXVA_DeinterlaceTech_BOBVerticalStretch4Tap = 0x0100, + + // the pixels in the missing line are recreated by a median filtering operation + DXVA_DeinterlaceTech_MedianFiltering = 0x0004, + + // the pixels in the missing line are recreated by an edge filter. + // In this process, spatial directional filters are applied to determine + // the orientation of edges in the picture content, and missing + // pixels are created by filtering along (rather than across) the + // detected edges. + DXVA_DeinterlaceTech_EdgeFiltering = 0x0010, + + // the pixels in the missing line are recreated by switching on a field by + // field basis between using either spatial or temporal interpolation + // depending on the amount of motion. + DXVA_DeinterlaceTech_FieldAdaptive = 0x0020, + + // the pixels in the missing line are recreated by switching on a pixel by pixel + // basis between using either spatial or temporal interpolation depending on + // the amount of motion.. + DXVA_DeinterlaceTech_PixelAdaptive = 0x0040, + + // Motion Vector Steering identifies objects within a sequence of video + // fields. The missing pixels are recreated after first aligning the + // movement axes of the individual objects in the scene to make them + // parallel with the time axis. + DXVA_DeinterlaceTech_MotionVectorSteered = 0x0080 + +} DXVA_DeinterlaceTech; + + +typedef struct _DXVA_VideoSample { + REFERENCE_TIME rtStart; + REFERENCE_TIME rtEnd; + DXVA_SampleFormat SampleFormat; // only lower 8 bits used + VOID* lpDDSSrcSurface; +} DXVA_VideoSample, *LPDXVA_VideoSample; + + + +// ------------------------------------------------------------------------- +// DeinterlaceBltEx declarations +// ------------------------------------------------------------------------- +// + +typedef enum _DXVA_SampleFlags { + DXVA_SampleFlagsMask = DXVABit(3)|DXVABit(2)|DXVABit(1)|DXVABit(0), + + DXVA_SampleFlag_Palette_Changed = 0x0001, + DXVA_SampleFlag_SrcRect_Changed = 0x0002, + DXVA_SampleFlag_DstRect_Changed = 0x0004, + DXVA_SampleFlag_ColorData_Changed = 0x0008, +} DXVA_SampleFlags; + +typedef enum _DXVA_DestinationFlags { + DXVA_DestinationFlagMask = DXVABit(3)|DXVABit(2)|DXVABit(1)|DXVABit(0), + + DXVA_DestinationFlag_Background_Changed = 0x0001, + DXVA_DestinationFlag_TargetRect_Changed = 0x0002, + DXVA_DestinationFlag_ColorData_Changed = 0x0004, + DXVA_DestinationFlag_Alpha_Changed = 0x0008 +} DXVA_DestinationFlags; + + + + +typedef struct _DXVA_VideoSample2 { +#ifdef _WIN64 + DWORD Size; + DWORD Reserved; +#endif + REFERENCE_TIME rtStart; + REFERENCE_TIME rtEnd; + DWORD SampleFormat; // cast to DXVA_ExtendedFormat, or use Extract macros + DWORD SampleFlags; + VOID* lpDDSSrcSurface; + RECT rcSrc; + RECT rcDst; + DXVA_AYUVsample2 Palette[16]; +} DXVA_VideoSample2, *LPDXVA_VideoSample2; + +typedef struct _DXVA_DeinterlaceCaps { + DWORD Size; + DWORD NumPreviousOutputFrames; + DWORD InputPool; + DWORD NumForwardRefSamples; + DWORD NumBackwardRefSamples; + D3DFORMAT d3dOutputFormat; + DXVA_VideoProcessCaps VideoProcessingCaps; + DXVA_DeinterlaceTech DeinterlaceTechnology; +} DXVA_DeinterlaceCaps, *LPDXVA_DeinterlaceCaps; + + + + +// ------------------------------------------------------------------------- +// Data types used with RenderMoComp in kernel mode +// ------------------------------------------------------------------------- +// + +// Function codes for RenderMoComp + +#define MAX_DEINTERLACE_SURFACES 32 + +#ifdef _WIN64 +// +// These structures are used for thunking 32 bit DeinterlaceBltEx calls on +// 64 bit drivers. +// +typedef struct _DXVA_VideoSample32 { + REFERENCE_TIME rtStart; + REFERENCE_TIME rtEnd; + DWORD SampleFormat; + DWORD SampleFlags; + DWORD lpDDSSrcSurface; // 32 bit pointer size + RECT rcSrc; + RECT rcDst; + DXVA_AYUVsample2 Palette[16]; + // DWORD Pad; + // 4 bytes of padding added by the compiler to align the struct to 8 bytes. +} DXVA_VideoSample32; + +typedef struct _DXVA_DeinterlaceBltEx32 { + DWORD Size; + DXVA_AYUVsample2 BackgroundColor; + RECT rcTarget; + REFERENCE_TIME rtTarget; + DWORD NumSourceSurfaces; + FLOAT Alpha; + DXVA_VideoSample32 Source[MAX_DEINTERLACE_SURFACES]; + DWORD DestinationFormat; + DWORD DestinationFlags; +} DXVA_DeinterlaceBltEx32; +#endif + + +typedef struct _DXVA_DeinterlaceBlt { + DWORD Size; + DWORD Reserved; + REFERENCE_TIME rtTarget; + RECT DstRect; + RECT SrcRect; + DWORD NumSourceSurfaces; + FLOAT Alpha; + DXVA_VideoSample Source[MAX_DEINTERLACE_SURFACES]; +} DXVA_DeinterlaceBlt; + +#define DXVA_DeinterlaceBltFnCode 0x01 +// lpInput => DXVA_DeinterlaceBlt* +// lpOuput => NULL /* not currently used */ + + +typedef struct _DXVA_DeinterlaceBltEx { + DWORD Size; + DXVA_AYUVsample2 BackgroundColor; + RECT rcTarget; + REFERENCE_TIME rtTarget; + DWORD NumSourceSurfaces; + FLOAT Alpha; + DXVA_VideoSample2 Source[MAX_DEINTERLACE_SURFACES]; + DWORD DestinationFormat; + DWORD DestinationFlags; +} DXVA_DeinterlaceBltEx; + +#define DXVA_DeinterlaceBltExFnCode 0x02 +// lpInput => DXVA_DeinterlaceBltEx* +// lpOuput => NULL /* not currently used */ + + +#define MAX_DEINTERLACE_DEVICE_GUIDS 32 +typedef struct _DXVA_DeinterlaceQueryAvailableModes { + DWORD Size; + DWORD NumGuids; + GUID Guids[MAX_DEINTERLACE_DEVICE_GUIDS]; +} DXVA_DeinterlaceQueryAvailableModes; + +#define DXVA_DeinterlaceQueryAvailableModesFnCode 0x01 +// lpInput => DXVA_VideoDesc* +// lpOuput => DXVA_DeinterlaceQueryAvailableModes* + + +typedef struct _DXVA_DeinterlaceQueryModeCaps { + DWORD Size; + GUID Guid; + DXVA_VideoDesc VideoDesc; +} DXVA_DeinterlaceQueryModeCaps; + +#define DXVA_DeinterlaceQueryModeCapsFnCode 0x02 +// lpInput => DXVA_DeinterlaceQueryModeCaps* +// lpOuput => DXVA_DeinterlaceCaps* + +#endif /* __DIRECTX_VA_DEINTERLACE__ */ + + +// ------------------------------------------------------------------------- +// +// The definitions that follow describe the video ProcAmp interface +// between the VMR and the graphics device driver. This interface is not +// accessable via the IAMVideoAccelerator interface. +// +// ------------------------------------------------------------------------- +// +#ifndef __DIRECTX_VA_PROCAMPCONTROL__ +#define __DIRECTX_VA_PROCAMPCONTROL__ + +DEFINE_GUID(DXVA_ProcAmpControlDevice, + 0x9f200913,0x2ffd,0x4056,0x9f,0x1e,0xe1,0xb5,0x08,0xf2,0x2d,0xcf); + +typedef enum _DXVA_ProcAmpControlProp { + DXVA_ProcAmp_None = 0x0000, + DXVA_ProcAmp_Brightness = 0x0001, + DXVA_ProcAmp_Contrast = 0x0002, + DXVA_ProcAmp_Hue = 0x0004, + DXVA_ProcAmp_Saturation = 0x0008 +} DXVA_ProcAmpControlProp; + + +typedef struct _DXVA_ProcAmpControlCaps { + DWORD Size; + DWORD InputPool; + D3DFORMAT d3dOutputFormat; + DWORD ProcAmpControlProps;// see DXVA_ProcAmpControlProp + DWORD VideoProcessingCaps;// see DXVA_VideoProcessCaps +} DXVA_ProcAmpControlCaps, *LPDXVA_ProcAmpControlCaps; + +#define DXVA_ProcAmpControlQueryCapsFnCode 0x03 +// lpInput => DXVA_VideoDesc* +// lpOuput => DXVA_ProcAmpControlCaps* + + +typedef struct _DXVA_ProcAmpControlQueryRange { + DWORD Size; + DXVA_ProcAmpControlProp ProcAmpControlProp; + DXVA_VideoDesc VideoDesc; +} DXVA_ProcAmpControlQueryRange, *LPDXVA_ProcAmpControlQueryRange; + +typedef struct _DXVA_VideoPropertyRange { + FLOAT MinValue; + FLOAT MaxValue; + FLOAT DefaultValue; + FLOAT StepSize; +} DXVA_VideoPropertyRange, *LPDXVA_VideoPropertyRange; + +#define DXVA_ProcAmpControlQueryRangeFnCode 0x04 +// lpInput => DXVA_ProcAmpControlQueryRange* +// lpOuput => DXVA_VideoPropertyRange* + + +typedef struct _DXVA_ProcAmpControlBlt { + DWORD Size; + RECT DstRect; + RECT SrcRect; + FLOAT Alpha; + FLOAT Brightness; + FLOAT Contrast; + FLOAT Hue; + FLOAT Saturation; +} DXVA_ProcAmpControlBlt; + +#define DXVA_ProcAmpControlBltFnCode 0x01 +// lpInput => DXVA_ProcAmpControlBlt* +// lpOuput => NULL /* not currently used */ + +#endif /* __DIRECTX_VA_PROCAMPCONTROL__ */ + + +// ------------------------------------------------------------------------- +// +// The definitions that follow describe the Certified Output Protection +// Protocol between the VMR and the graphics device driver. This interface +// is not accessable via the IAMVideoAccelerator interface. +// +// ------------------------------------------------------------------------- +// + +#ifndef __DIRECTX_VA_CERTOUTPUTPROTECT__ +#define __DIRECTX_VA_CERTOUTPUTPROTECT__ + + +DEFINE_GUID(DXVA_COPPDevice, + 0xd2457add,0x8999,0x45ed,0x8a,0x8a,0xd1,0xaa,0x04,0x7b,0xa4,0xd5); + + +// ------------------------------------------------------------------------- +// COPPGetCertificateLength +// ------------------------------------------------------------------------- +#define DXVA_COPPGetCertificateLengthFnCode 0x01 +// lpInput => NULL +// lpOuput => DWORD* + + +// ------------------------------------------------------------------------- +// COPPKeyExchange +// ------------------------------------------------------------------------- +#define DXVA_COPPKeyExchangeFnCode 0x02 +// lpInputData => NULL +// lpOuputData => GUID* + + +// ------------------------------------------------------------------------- +// COPPSequenceStart +// ------------------------------------------------------------------------- +typedef struct _DXVA_COPPSignature { + UCHAR Signature[256]; +} DXVA_COPPSignature, *LPDXVA_COPPSignature; + +#define DXVA_COPPSequenceStartFnCode 0x03 +// lpInputData => DXVA_COPPSignature* +// lpOuputData => NULL + + + +// ------------------------------------------------------------------------- +// COPPCommand +// ------------------------------------------------------------------------- +typedef struct _DXVA_COPPCommand { + GUID macKDI; // 16 bytes + GUID guidCommandID; // 16 bytes + ULONG dwSequence; // 4 bytes + ULONG cbSizeData; // 4 bytes + UCHAR CommandData[4056]; // 4056 bytes (4056+4+4+16+16 = 4096) +} DXVA_COPPCommand, *LPDXVA_COPPCommand; + +#define DXVA_COPPCommandFnCode 0x04 +// lpInputData => DXVA_COPPCommand* +// lpOuputData => NULL + + +DEFINE_GUID(DXVA_COPPSetProtectionLevel, + 0x9bb9327c,0x4eb5,0x4727,0x9f,0x00,0xb4,0x2b,0x09,0x19,0xc0,0xda); + +typedef struct _DXVA_COPPSetProtectionLevelCmdData { + ULONG ProtType; + ULONG ProtLevel; + ULONG ExtendedInfoChangeMask; + ULONG ExtendedInfoData; +} DXVA_COPPSetProtectionLevelCmdData; + +typedef enum _COPP_DPCP_Protection_Level { + COPP_DPCP_Level0 = 0, + COPP_DPCP_LevelMin = COPP_DPCP_Level0, + COPP_DPCP_Level1 = 1, + COPP_DPCP_LevelMax = COPP_DPCP_Level1, + COPP_DPCP_ForceDWORD = 0x7fffffff +} COPP_DPCP_Protection_Level; + +// Set the HDCP protection level - (0 - 1 DWORD, 4 bytes) + +typedef enum _COPP_HDCP_Protection_Level { + COPP_HDCP_Level0 = 0, + COPP_HDCP_LevelMin = COPP_HDCP_Level0, + COPP_HDCP_Level1 = 1, + COPP_HDCP_LevelMax = COPP_HDCP_Level1, + COPP_HDCP_ForceDWORD = 0x7fffffff +} COPP_HDCP_Protection_Level; + +typedef enum _COPP_CGMSA_Protection_Level { + COPP_CGMSA_Disabled = 0, + COPP_CGMSA_LevelMin = COPP_CGMSA_Disabled, + COPP_CGMSA_CopyFreely = 1, + COPP_CGMSA_CopyNoMore = 2, + COPP_CGMSA_CopyOneGeneration = 3, + COPP_CGMSA_CopyNever = 4, + COPP_CGMSA_RedistributionControlRequired = 0x08, + COPP_CGMSA_LevelMax = (COPP_CGMSA_RedistributionControlRequired + COPP_CGMSA_CopyNever), + COPP_CGMSA_ForceDWORD = 0x7fffffff +} COPP_CGMSA_Protection_Level; + +typedef enum _COPP_ACP_Protection_Level { + COPP_ACP_Level0 = 0, + COPP_ACP_LevelMin = COPP_ACP_Level0, + COPP_ACP_Level1 = 1, + COPP_ACP_Level2 = 2, + COPP_ACP_Level3 = 3, + COPP_ACP_LevelMax = COPP_ACP_Level3, + COPP_ACP_ForceDWORD = 0x7fffffff +} COPP_ACP_Protection_Level; + +#define COPP_NoProtectionLevelAvailable -1 +#define COPP_DefaultProtectionLevel 0 + + +// +// Bit flags of possible protection types. Note that it is possible to apply +// different protection settings to a single connector. +// +enum { + COPP_ProtectionType_Unknown = 0x80000000, + COPP_ProtectionType_None = 0x00000000, + COPP_ProtectionType_HDCP = 0x00000001, + COPP_ProtectionType_ACP = 0x00000002, + COPP_ProtectionType_CGMSA = 0x00000004, + COPP_ProtectionType_DPCP = 0x00000010, + COPP_ProtectionType_Mask = 0x80000017, + COPP_ProtectionType_Reserved = 0x7FFFFFF8 +}; + +DEFINE_GUID(DXVA_COPPSetSignaling, + 0x9a631a5, 0xd684, 0x4c60, 0x8e, 0x4d, 0xd3, 0xbb, 0xf, 0xb, 0xe3, 0xee); + +typedef struct _DXVA_COPPSetSignalingCmdData { + ULONG ActiveTVProtectionStandard; // See COPP_TVProtectionStandard + ULONG AspectRatioChangeMask1; + ULONG AspectRatioData1; // See COPP_ImageAspectRatio_EN300294 for ETSI EN 300 294 values + ULONG AspectRatioChangeMask2; + ULONG AspectRatioData2; + ULONG AspectRatioChangeMask3; + ULONG AspectRatioData3; + ULONG ExtendedInfoChangeMask[4]; + ULONG ExtendedInfoData[4]; + ULONG Reserved; +} DXVA_COPPSetSignalingCmdData; + +// Add format enum and data enum +typedef enum _COPP_TVProtectionStandard { + COPP_ProtectionStandard_Unknown = 0x80000000, + COPP_ProtectionStandard_None = 0x00000000, + COPP_ProtectionStandard_IEC61880_525i = 0x00000001, + COPP_ProtectionStandard_IEC61880_2_525i = 0x00000002, + COPP_ProtectionStandard_IEC62375_625p = 0x00000004, + COPP_ProtectionStandard_EIA608B_525 = 0x00000008, + COPP_ProtectionStandard_EN300294_625i = 0x00000010, + COPP_ProtectionStandard_CEA805A_TypeA_525p = 0x00000020, + COPP_ProtectionStandard_CEA805A_TypeA_750p = 0x00000040, + COPP_ProtectionStandard_CEA805A_TypeA_1125i = 0x00000080, + COPP_ProtectionStandard_CEA805A_TypeB_525p = 0x00000100, + COPP_ProtectionStandard_CEA805A_TypeB_750p = 0x00000200, + COPP_ProtectionStandard_CEA805A_TypeB_1125i = 0x00000400, + COPP_ProtectionStandard_ARIBTRB15_525i = 0x00000800, + COPP_ProtectionStandard_ARIBTRB15_525p = 0x00001000, + COPP_ProtectionStandard_ARIBTRB15_750p = 0x00002000, + COPP_ProtectionStandard_ARIBTRB15_1125i = 0x00004000, + COPP_ProtectionStandard_Mask = 0x80007FFF, + COPP_ProtectionStandard_Reserved = 0x7FFF8000 +} COPP_TVProtectionStandard; + +#define COPP_ImageAspectRatio_EN300294_Mask 0x00000007 + +typedef enum _COPP_ImageAspectRatio_EN300294 { + COPP_AspectRatio_EN300294_FullFormat4by3 = 0, + COPP_AspectRatio_EN300294_Box14by9Center = 1, + COPP_AspectRatio_EN300294_Box14by9Top = 2, + COPP_AspectRatio_EN300294_Box16by9Center = 3, + COPP_AspectRatio_EN300294_Box16by9Top = 4, + COPP_AspectRatio_EN300294_BoxGT16by9Center = 5, + COPP_AspectRatio_EN300294_FullFormat4by3ProtectedCenter = 6, + COPP_AspectRatio_EN300294_FullFormat16by9Anamorphic = 7, + COPP_AspectRatio_ForceDWORD = 0x7fffffff +} COPP_ImageAspectRatio_EN300294; + + +// ------------------------------------------------------------------------- +// COPPQueryStatus +// ------------------------------------------------------------------------- +typedef struct _DXVA_COPPStatusInput { + GUID rApp; // 16 bytes + GUID guidStatusRequestID;// 16 bytes + ULONG dwSequence; // 4 bytes + ULONG cbSizeData; // 4 bytes + UCHAR StatusData[4056]; // 4056 bytes (4056+4+4+16+16 = 4096) +} DXVA_COPPStatusInput, *LPDXVA_COPPStatusInput; + +typedef struct _DXVA_COPPStatusOutput { + GUID macKDI; // 16 bytes + ULONG cbSizeData; // 4 bytes + UCHAR COPPStatus[4076]; // 4076 bytes (4076+16+4 = 4096) +} DXVA_COPPStatusOutput, *LPDXVA_COPPStatusOutput; + +typedef enum _COPP_StatusFlags { + COPP_StatusNormal = 0x00, + COPP_LinkLost = 0x01, + COPP_RenegotiationRequired = 0x02, + COPP_StatusFlagsReserved = 0xFFFFFFFC +} COPP_StatusFlags; + +typedef struct _DXVA_COPPStatusData { + GUID rApp; + ULONG dwFlags; // See COPP_StatusFlags above + ULONG dwData; + ULONG ExtendedInfoValidMask; + ULONG ExtendedInfoData; +} DXVA_COPPStatusData; + +typedef struct _DXVA_COPPStatusDisplayData { + GUID rApp; + ULONG dwFlags; // See COPP_StatusFlags above + ULONG DisplayWidth; + ULONG DisplayHeight; + ULONG Format; // also contains extended color data + ULONG d3dFormat; + ULONG FreqNumerator; + ULONG FreqDenominator; +} DXVA_COPPStatusDisplayData; + +typedef enum _COPP_StatusHDCPFlags { + COPP_HDCPRepeater = 0x01, + COPP_HDCPFlagsReserved = 0xFFFFFFFE +} COPP_StatusHDCPFlags; + +typedef struct _DXVA_COPPStatusHDCPKeyData { + GUID rApp; + ULONG dwFlags; // See COPP_StatusFlags above + ULONG dwHDCPFlags; // See COPP_StatusHDCPFlags above + GUID BKey; // Lower 40 bits + GUID Reserved1; + GUID Reserved2; +} DXVA_COPPStatusHDCPKeyData; + + +#define DXVA_COPPQueryStatusFnCode 0x05 +// lpInputData => DXVA_COPPStatusInput* +// lpOuputData => DXVA_COPPStatusOutput* + + +// +// Status GUID and enumerations +// +DEFINE_GUID(DXVA_COPPQueryConnectorType, + 0x81d0bfd5,0x6afe,0x48c2,0x99,0xc0,0x95,0xa0,0x8f,0x97,0xc5,0xda); + +typedef enum _COPP_ConnectorType { + COPP_ConnectorType_Unknown = -1, + COPP_ConnectorType_VGA = 0, + COPP_ConnectorType_SVideo = 1, + COPP_ConnectorType_CompositeVideo = 2, + COPP_ConnectorType_ComponentVideo = 3, + COPP_ConnectorType_DVI = 4, + COPP_ConnectorType_HDMI = 5, + COPP_ConnectorType_LVDS = 6, + COPP_ConnectorType_TMDS = 7, + COPP_ConnectorType_D_JPN = 8, + COPP_ConnectorType_SDI = 9, + COPP_ConnectorType_DisplayPortExternal = 10, + COPP_ConnectorType_DisplayPortEmbedded = 11, + COPP_ConnectorType_UDIExternal = 12, + COPP_ConnectorType_UDIEmbedded = 13, + COPP_ConnectorType_Internal = 0x80000000, // can be combined with the other connector types + COPP_ConnectorType_ForceDWORD = 0x7fffffff /* force 32-bit size enum */ +} COPP_ConnectorType; + +DEFINE_GUID(DXVA_COPPQueryProtectionType, + 0x38f2a801,0x9a6c,0x48bb,0x91,0x07,0xb6,0x69,0x6e,0x6f,0x17,0x97); + +DEFINE_GUID(DXVA_COPPQueryLocalProtectionLevel, + 0xb2075857,0x3eda,0x4d5d,0x88,0xdb,0x74,0x8f,0x8c,0x1a,0x05,0x49); + +DEFINE_GUID(DXVA_COPPQueryGlobalProtectionLevel, + 0x1957210a,0x7766,0x452a,0xb9,0x9a,0xd2,0x7a,0xed,0x54,0xf0,0x3a); + +DEFINE_GUID(DXVA_COPPQueryDisplayData, + 0xd7bf1ba3,0xad13,0x4f8e,0xaf,0x98,0x0d,0xcb,0x3c,0xa2,0x04,0xcc); + +DEFINE_GUID(DXVA_COPPQueryHDCPKeyData, + 0xdb59d74, 0xa992, 0x492e, 0xa0, 0xbd, 0xc2, 0x3f, 0xda, 0x56, 0x4e, 0x0); + +DEFINE_GUID(DXVA_COPPQueryBusData, + 0xc6f4d673, 0x6174, 0x4184, 0x8e, 0x35, 0xf6, 0xdb, 0x52, 0x0, 0xbc, 0xba); + +typedef enum _COPP_BusType { + COPP_BusType_Unknown = 0, + COPP_BusType_PCI = 1, + COPP_BusType_PCIX = 2, + COPP_BusType_PCIExpress = 3, + COPP_BusType_AGP = 4, + COPP_BusType_Integrated = 0x80000000, // can be combined with the other bus types + COPP_BusType_ForceDWORD = 0x7fffffff /* force 32-bit size enum */ +} COPP_BusType; + +DEFINE_GUID(DXVA_COPPQuerySignaling, + 0x6629a591, 0x3b79, 0x4cf3, 0x92, 0x4a, 0x11, 0xe8, 0xe7, 0x81, 0x16, 0x71); + +typedef struct _DXVA_COPPStatusSignalingCmdData { + GUID rApp; + ULONG dwFlags; // See COPP_StatusFlags above + ULONG AvailableTVProtectionStandards; // See COPP_TVProtectionStandard + ULONG ActiveTVProtectionStandard; // See COPP_TVProtectionStandard + ULONG TVType; + ULONG AspectRatioValidMask1; + ULONG AspectRatioData1; // See COPP_AspectRatio_EN300294 for ETSI EN 300 294 values + ULONG AspectRatioValidMask2; + ULONG AspectRatioData2; + ULONG AspectRatioValidMask3; + ULONG AspectRatioData3; + ULONG ExtendedInfoValidMask[4]; + ULONG ExtendedInfoData[4]; +} DXVA_COPPStatusSignalingCmdData; + + +#endif /* __DIRECTX_VA_CERTOUTPUTPROTECT__ */ + +#ifdef __cplusplus +} +#endif + +#ifdef __DXVA1_DEPRECATED_INTERFACES__ + +#if !defined(__cplusplus) +#error C++ compiler required. +#endif + +/* IID_IDirect3DVideoDevice9 */ +DEFINE_GUID(IID_IDirect3DVideoDevice9, +0x694036ac, 0x542a, 0x4a3a, 0x9a, 0x32, 0x53, 0xbc, 0x20, 0x0, 0x2c, 0x1b); + +/* IID_IDirect3DDXVADevice9 */ +DEFINE_GUID(IID_IDirect3DDXVADevice9, +0x9f00c3d3, 0x5ab6, 0x465f, 0xb9, 0x55, 0x9f, 0xe, 0xbb, 0x2c, 0x56, 0x6); + +interface IDirect3DVideoDevice9; +interface IDirect3DDXVADevice9; + +typedef struct _DXVAUncompDataInfo +{ + DWORD UncompWidth; /* Width of uncompressed data */ + DWORD UncompHeight; /* Height of uncompressed data */ + D3DFORMAT UncompFormat; /* Format of uncompressed data */ +} DXVAUncompDataInfo; + +typedef struct _DXVACompBufferInfo +{ + DWORD NumCompBuffers; /* Number of buffers reqd for compressed data */ + DWORD WidthToCreate; /* Width of surface to create */ + DWORD HeightToCreate; /* Height of surface to create */ + DWORD BytesToAllocate; /* Total number of bytes used by each surface */ + DWORD Usage; /* Usage used to create the compressed buffer */ + D3DPOOL Pool; /* Pool where the compressed buffer belongs */ + D3DFORMAT Format; /* Format used to create the compressed buffer */ +} DXVACompBufferInfo; + +typedef struct _DXVABufferInfo +{ + VOID* pCompSurface; /* Pointer to buffer containing compressed data */ + DWORD DataOffset; /* Offset of relevant data from the beginning of buffer */ + DWORD DataSize; /* Size of relevant data */ +} DXVABufferInfo; + +#undef INTERFACE +#define INTERFACE IDirect3DVideoDevice9 + +DECLARE_INTERFACE_(IDirect3DVideoDevice9, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DVideoDevice9 methods ***/ + STDMETHOD(CreateSurface)(THIS_ UINT Width,UINT Height,UINT BackBuffers, + D3DFORMAT Format,D3DPOOL Pool,DWORD Usage, + IDirect3DSurface9** ppSurface, + HANDLE* pSharedHandle) PURE; + STDMETHOD(GetDXVACompressedBufferInfo)(THIS_ GUID* pGuid, + DXVAUncompDataInfo* pUncompData, + DWORD* pNumBuffers, + DXVACompBufferInfo* pBufferInfo) PURE; + STDMETHOD(GetDXVAGuids)(THIS_ DWORD* pNumGuids,GUID* pGuids) PURE; + STDMETHOD(GetDXVAInternalInfo)(THIS_ GUID* pGuid, + DXVAUncompDataInfo* pUncompData, + DWORD* pMemoryUsed) PURE; + STDMETHOD(GetUncompressedDXVAFormats)(THIS_ GUID* pGuid, + DWORD* pNumFormats, + D3DFORMAT* pFormats) PURE; + STDMETHOD(CreateDXVADevice)(THIS_ GUID* pGuid, + DXVAUncompDataInfo* pUncompData, + LPVOID pData,DWORD DataSize, + IDirect3DDXVADevice9** ppDXVADevice) PURE; +}; + +#undef INTERFACE +#define INTERFACE IDirect3DDXVADevice9 + +DECLARE_INTERFACE_(IDirect3DDXVADevice9, IUnknown) +{ + /*** IUnknown methods ***/ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE; + STDMETHOD_(ULONG,AddRef)(THIS) PURE; + STDMETHOD_(ULONG,Release)(THIS) PURE; + + /*** IDirect3DDXVADevice9 methods ***/ + STDMETHOD(BeginFrame)(THIS_ IDirect3DSurface9* pDstSurface, + DWORD SizeInputData,VOID* pInputData, + DWORD* pSizeOutputData,VOID* pOutputData) PURE; + STDMETHOD(EndFrame)(THIS_ DWORD SizeMiscData,VOID* pMiscData) PURE; + STDMETHOD(Execute)(THIS_ DWORD FunctionNum,VOID* pInputData, + DWORD InputSize,VOID* OuputData,DWORD OutputSize, + DWORD NumBuffers,DXVABufferInfo* pBufferInfo) PURE; + STDMETHOD(QueryStatus)(THIS_ IDirect3DSurface9* pSurface,DWORD Flags) PURE; +}; + +#endif /* __DXVA1_DEPRECATED_INTERFACES__ */ + +#if _MSC_VER >= 1200 +#pragma warning(pop) +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif /* __DIRECTX_VA__ */ diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva2api.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva2api.h new file mode 100644 index 0000000000000000000000000000000000000000..b1167178b2764d740b680722205ce5ae5224061a --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva2api.h @@ -0,0 +1,2016 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __dxva2api_h__ +#define __dxva2api_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDirect3DDeviceManager9_FWD_DEFINED__ +#define __IDirect3DDeviceManager9_FWD_DEFINED__ +typedef interface IDirect3DDeviceManager9 IDirect3DDeviceManager9; + +#endif /* __IDirect3DDeviceManager9_FWD_DEFINED__ */ + + +#ifndef __IDirectXVideoAccelerationService_FWD_DEFINED__ +#define __IDirectXVideoAccelerationService_FWD_DEFINED__ +typedef interface IDirectXVideoAccelerationService IDirectXVideoAccelerationService; + +#endif /* __IDirectXVideoAccelerationService_FWD_DEFINED__ */ + + +#ifndef __IDirectXVideoDecoderService_FWD_DEFINED__ +#define __IDirectXVideoDecoderService_FWD_DEFINED__ +typedef interface IDirectXVideoDecoderService IDirectXVideoDecoderService; + +#endif /* __IDirectXVideoDecoderService_FWD_DEFINED__ */ + + +#ifndef __IDirectXVideoProcessorService_FWD_DEFINED__ +#define __IDirectXVideoProcessorService_FWD_DEFINED__ +typedef interface IDirectXVideoProcessorService IDirectXVideoProcessorService; + +#endif /* __IDirectXVideoProcessorService_FWD_DEFINED__ */ + + +#ifndef __IDirectXVideoDecoder_FWD_DEFINED__ +#define __IDirectXVideoDecoder_FWD_DEFINED__ +typedef interface IDirectXVideoDecoder IDirectXVideoDecoder; + +#endif /* __IDirectXVideoDecoder_FWD_DEFINED__ */ + + +#ifndef __IDirectXVideoProcessor_FWD_DEFINED__ +#define __IDirectXVideoProcessor_FWD_DEFINED__ +typedef interface IDirectXVideoProcessor IDirectXVideoProcessor; + +#endif /* __IDirectXVideoProcessor_FWD_DEFINED__ */ + + +#ifndef __IDirectXVideoMemoryConfiguration_FWD_DEFINED__ +#define __IDirectXVideoMemoryConfiguration_FWD_DEFINED__ +typedef interface IDirectXVideoMemoryConfiguration IDirectXVideoMemoryConfiguration; + +#endif /* __IDirectXVideoMemoryConfiguration_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_dxva2api_0000_0000 */ +/* [local] */ + +#include +// +// The following declarations within the 'if 0' block are dummy typedefs used to make +// the evr.idl file build. The actual definitions are contained in d3d9.h +// +#if 0 +typedef DWORD IDirect3DDevice9; + +typedef DWORD IDirect3DSurface9; + +typedef DWORD D3DFORMAT; + +typedef DWORD D3DPOOL; + +#endif +#ifndef DXVA2_API_DEFINED +#define DXVA2_API_DEFINED +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +DEFINE_GUID(DXVA2_ModeMPEG2_MoComp, 0xe6a9f44b, 0x61b0, 0x4563,0x9e,0xa4,0x63,0xd2,0xa3,0xc6,0xfe,0x66); +DEFINE_GUID(DXVA2_ModeMPEG2_IDCT, 0xbf22ad00, 0x03ea, 0x4690,0x80,0x77,0x47,0x33,0x46,0x20,0x9b,0x7e); +DEFINE_GUID(DXVA2_ModeMPEG2_VLD, 0xee27417f, 0x5e28, 0x4e65,0xbe,0xea,0x1d,0x26,0xb5,0x08,0xad,0xc9); +DEFINE_GUID(DXVA2_ModeMPEG1_VLD, 0x6f3ec719, 0x3735, 0x42cc,0x80,0x63,0x65,0xcc,0x3c,0xb3,0x66,0x16); +DEFINE_GUID(DXVA2_ModeMPEG2and1_VLD,0x86695f12, 0x340e, 0x4f04,0x9f,0xd3,0x92,0x53,0xdd,0x32,0x74,0x60); +DEFINE_GUID(DXVA2_ModeH264_A, 0x1b81be64, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeH264_B, 0x1b81be65, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeH264_C, 0x1b81be66, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeH264_D, 0x1b81be67, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeH264_E, 0x1b81be68, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeH264_F, 0x1b81be69, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeH264_VLD_WithFMOASO_NoFGT, 0xd5f04ff9, 0x3418,0x45d8,0x95,0x61,0x32,0xa7,0x6a,0xae,0x2d,0xdd); +DEFINE_GUID(DXVA2_ModeH264_VLD_Stereo_Progressive_NoFGT, 0xd79be8da, 0x0cf1,0x4c81,0xb8,0x2a,0x69,0xa4,0xe2,0x36,0xf4,0x3d); +DEFINE_GUID(DXVA2_ModeH264_VLD_Stereo_NoFGT, 0xf9aaccbb, 0xc2b6,0x4cfc,0x87,0x79,0x57,0x07,0xb1,0x76,0x05,0x52); +DEFINE_GUID(DXVA2_ModeH264_VLD_Multiview_NoFGT, 0x705b9d82, 0x76cf,0x49d6,0xb7,0xe6,0xac,0x88,0x72,0xdb,0x01,0x3c); +DEFINE_GUID(DXVA2_ModeWMV8_A, 0x1b81be80, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeWMV8_B, 0x1b81be81, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeWMV9_A, 0x1b81be90, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeWMV9_B, 0x1b81be91, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeWMV9_C, 0x1b81be94, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeVC1_A, 0x1b81beA0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeVC1_B, 0x1b81beA1, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeVC1_C, 0x1b81beA2, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeVC1_D, 0x1b81beA3, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_ModeVC1_D2010,0x1b81beA4, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_NoEncrypt, 0x1b81beD0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVA2_VideoProcProgressiveDevice, 0x5a54a0c9,0xc7ec,0x4bd9,0x8e,0xde,0xf3,0xc7,0x5d,0xc4,0x39,0x3b); +DEFINE_GUID(DXVA2_VideoProcBobDevice, 0x335aa36e,0x7884,0x43a4,0x9c,0x91,0x7f,0x87,0xfa,0xf3,0xe3,0x7e); +DEFINE_GUID(DXVA2_VideoProcSoftwareDevice, 0x4553d47f,0xee7e,0x4e3f,0x94,0x75,0xdb,0xf1,0x37,0x6c,0x48,0x10); +DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_Simple, 0xefd64d74, 0xc9e8,0x41d7,0xa5,0xe9,0xe9,0xb0,0xe3,0x9f,0xa3,0x19); +DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_AdvSimple_NoGMC, 0xed418a9f, 0x010d,0x4eda,0x9a,0xe3,0x9a,0x65,0x35,0x8d,0x8d,0x2e); +DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_AdvSimple_GMC, 0xab998b5b, 0x4258,0x44a9,0x9f,0xeb,0x94,0xe5,0x97,0xa6,0xba,0xae); +DEFINE_GUID(DXVA2_ModeHEVC_VLD_Main, 0x5b11d51b, 0x2f4c,0x4452,0xbc,0xc3,0x09,0xf2,0xa1,0x16,0x0c,0xc0); +DEFINE_GUID(DXVA2_ModeHEVC_VLD_Main10, 0x107af0e0, 0xef1a,0x4d19,0xab,0xa8,0x67,0xa1,0x63,0x07,0x3d,0x13); +DEFINE_GUID(DXVA2_ModeVP9_VLD_Profile0, 0x463707f8, 0xa1d0, 0x4585, 0x87, 0x6d, 0x83, 0xaa, 0x6d, 0x60, 0xb8, 0x9e); +DEFINE_GUID(DXVA2_ModeVP9_VLD_10bit_Profile2, 0xa4c749ef, 0x6ecf, 0x48aa, 0x84, 0x48, 0x50, 0xa7, 0xa1, 0x16, 0x5f, 0xf7); +DEFINE_GUID(DXVA2_ModeVP8_VLD, 0x90b899ea, 0x3a62, 0x4705, 0x88, 0xb3, 0x8d, 0xf0, 0x4b, 0x27, 0x44, 0xe7); +#define DXVA2_ModeMPEG2_MOCOMP DXVA2_ModeMPEG2_MoComp +#define DXVA2_ModeWMV8_PostProc DXVA2_ModeWMV8_A +#define DXVA2_ModeWMV8_MoComp DXVA2_ModeWMV8_B +#define DXVA2_ModeWMV9_PostProc DXVA2_ModeWMV9_A +#define DXVA2_ModeWMV9_MoComp DXVA2_ModeWMV9_B +#define DXVA2_ModeWMV9_IDCT DXVA2_ModeWMV9_C +#define DXVA2_ModeVC1_PostProc DXVA2_ModeVC1_A +#define DXVA2_ModeVC1_MoComp DXVA2_ModeVC1_B +#define DXVA2_ModeVC1_IDCT DXVA2_ModeVC1_C +#define DXVA2_ModeVC1_VLD DXVA2_ModeVC1_D +#define DXVA2_ModeH264_MoComp_NoFGT DXVA2_ModeH264_A +#define DXVA2_ModeH264_MoComp_FGT DXVA2_ModeH264_B +#define DXVA2_ModeH264_IDCT_NoFGT DXVA2_ModeH264_C +#define DXVA2_ModeH264_IDCT_FGT DXVA2_ModeH264_D +#define DXVA2_ModeH264_VLD_NoFGT DXVA2_ModeH264_E +#define DXVA2_ModeH264_VLD_FGT DXVA2_ModeH264_F +#define DXVA2_E_NOT_INITIALIZED ((HRESULT)0x80041000L) +#define DXVA2_E_NEW_VIDEO_DEVICE ((HRESULT)0x80041001L) +#define DXVA2_E_VIDEO_DEVICE_LOCKED ((HRESULT)0x80041002L) +#define DXVA2_E_NOT_AVAILABLE ((HRESULT)0x80041003L) +#if defined(_WIN32) && !defined(_NO_COM) +DEFINE_GUID(IID_IDirect3DDeviceManager9, 0xa0cade0f,0x06d5,0x4cf4,0xa1,0xc7,0xf3,0xcd,0xd7,0x25,0xaa,0x75); +DEFINE_GUID(IID_IDirectXVideoAccelerationService, 0xfc51a550,0xd5e7,0x11d9,0xaf,0x55,0x00,0x05,0x4e,0x43,0xff,0x02); +DEFINE_GUID(IID_IDirectXVideoDecoderService, 0xfc51a551,0xd5e7,0x11d9,0xaf,0x55,0x00,0x05,0x4e,0x43,0xff,0x02); +DEFINE_GUID(IID_IDirectXVideoProcessorService, 0xfc51a552,0xd5e7,0x11d9,0xaf,0x55,0x00,0x05,0x4e,0x43,0xff,0x02); +DEFINE_GUID(IID_IDirectXVideoDecoder, 0xf2b0810a,0xfd00,0x43c9,0x91,0x8c,0xdf,0x94,0xe2,0xd8,0xef,0x7d); +DEFINE_GUID(IID_IDirectXVideoProcessor, 0x8c3a39f0,0x916e,0x4690,0x80,0x4f,0x4c,0x80,0x01,0x35,0x5d,0x25); +DEFINE_GUID(IID_IDirectXVideoMemoryConfiguration, 0xb7f916dd,0xdb3b,0x49c1,0x84,0xd7,0xe4,0x5e,0xf9,0x9e,0xc7,0x26); +#endif +#ifndef MAX_DEINTERLACE_SURFACES +#define MAX_DEINTERLACE_SURFACES 32 +#endif +#ifndef MAX_SUBSTREAMS +#define MAX_SUBSTREAMS 15 +#endif +#pragma warning( push ) +#pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union +typedef struct _DXVA2_ExtendedFormat + { + union + { + struct + { + UINT SampleFormat : 8; + UINT VideoChromaSubsampling : 4; + UINT NominalRange : 3; + UINT VideoTransferMatrix : 3; + UINT VideoLighting : 4; + UINT VideoPrimaries : 5; + UINT VideoTransferFunction : 5; + } ; + UINT value; + } ; + } DXVA2_ExtendedFormat; + +#pragma warning( pop ) +typedef +enum _DXVA2_SampleFormat + { + DXVA2_SampleFormatMask = 0xff, + DXVA2_SampleUnknown = 0, + DXVA2_SampleProgressiveFrame = 2, + DXVA2_SampleFieldInterleavedEvenFirst = 3, + DXVA2_SampleFieldInterleavedOddFirst = 4, + DXVA2_SampleFieldSingleEven = 5, + DXVA2_SampleFieldSingleOdd = 6, + DXVA2_SampleSubStream = 7 + } DXVA2_SampleFormat; + +typedef +enum _DXVA2_VideoChromaSubSampling + { + DXVA2_VideoChromaSubsamplingMask = 0xf, + DXVA2_VideoChromaSubsampling_Unknown = 0, + DXVA2_VideoChromaSubsampling_ProgressiveChroma = 0x8, + DXVA2_VideoChromaSubsampling_Horizontally_Cosited = 0x4, + DXVA2_VideoChromaSubsampling_Vertically_Cosited = 0x2, + DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes = 0x1, + DXVA2_VideoChromaSubsampling_MPEG2 = ( DXVA2_VideoChromaSubsampling_Horizontally_Cosited | DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes ) , + DXVA2_VideoChromaSubsampling_MPEG1 = DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes, + DXVA2_VideoChromaSubsampling_DV_PAL = ( DXVA2_VideoChromaSubsampling_Horizontally_Cosited | DXVA2_VideoChromaSubsampling_Vertically_Cosited ) , + DXVA2_VideoChromaSubsampling_Cosited = ( ( DXVA2_VideoChromaSubsampling_Horizontally_Cosited | DXVA2_VideoChromaSubsampling_Vertically_Cosited ) | DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes ) + } DXVA2_VideoChromaSubSampling; + +typedef +enum _DXVA2_NominalRange + { + DXVA2_NominalRangeMask = 0x7, + DXVA2_NominalRange_Unknown = 0, + DXVA2_NominalRange_Normal = 1, + DXVA2_NominalRange_Wide = 2, + DXVA2_NominalRange_0_255 = 1, + DXVA2_NominalRange_16_235 = 2, + DXVA2_NominalRange_48_208 = 3 + } DXVA2_NominalRange; + +typedef +enum _DXVA2_VideoTransferMatrix + { + DXVA2_VideoTransferMatrixMask = 0x7, + DXVA2_VideoTransferMatrix_Unknown = 0, + DXVA2_VideoTransferMatrix_BT709 = 1, + DXVA2_VideoTransferMatrix_BT601 = 2, + DXVA2_VideoTransferMatrix_SMPTE240M = 3 + } DXVA2_VideoTransferMatrix; + +typedef +enum _DXVA2_VideoLighting + { + DXVA2_VideoLightingMask = 0xf, + DXVA2_VideoLighting_Unknown = 0, + DXVA2_VideoLighting_bright = 1, + DXVA2_VideoLighting_office = 2, + DXVA2_VideoLighting_dim = 3, + DXVA2_VideoLighting_dark = 4 + } DXVA2_VideoLighting; + +typedef +enum _DXVA2_VideoPrimaries + { + DXVA2_VideoPrimariesMask = 0x1f, + DXVA2_VideoPrimaries_Unknown = 0, + DXVA2_VideoPrimaries_reserved = 1, + DXVA2_VideoPrimaries_BT709 = 2, + DXVA2_VideoPrimaries_BT470_2_SysM = 3, + DXVA2_VideoPrimaries_BT470_2_SysBG = 4, + DXVA2_VideoPrimaries_SMPTE170M = 5, + DXVA2_VideoPrimaries_SMPTE240M = 6, + DXVA2_VideoPrimaries_EBU3213 = 7, + DXVA2_VideoPrimaries_SMPTE_C = 8 + } DXVA2_VideoPrimaries; + +typedef +enum _DXVA2_VideoTransferFunction + { + DXVA2_VideoTransFuncMask = 0x1f, + DXVA2_VideoTransFunc_Unknown = 0, + DXVA2_VideoTransFunc_10 = 1, + DXVA2_VideoTransFunc_18 = 2, + DXVA2_VideoTransFunc_20 = 3, + DXVA2_VideoTransFunc_22 = 4, + DXVA2_VideoTransFunc_709 = 5, + DXVA2_VideoTransFunc_240M = 6, + DXVA2_VideoTransFunc_sRGB = 7, + DXVA2_VideoTransFunc_28 = 8 + } DXVA2_VideoTransferFunction; + +// +// Deprecated labels - please use the ones in the DXVA2_VideoTransferFunction enum. +// +#define DXVA2_VideoTransFunc_22_709 DXVA2_VideoTransFunc_709 +#define DXVA2_VideoTransFunc_22_240M DXVA2_VideoTransFunc_240M +#define DXVA2_VideoTransFunc_22_8bit_sRGB DXVA2_VideoTransFunc_sRGB +typedef struct _DXVA2_Frequency + { + UINT Numerator; + UINT Denominator; + } DXVA2_Frequency; + +typedef struct _DXVA2_VideoDesc + { + UINT SampleWidth; + UINT SampleHeight; + DXVA2_ExtendedFormat SampleFormat; + D3DFORMAT Format; + DXVA2_Frequency InputSampleFreq; + DXVA2_Frequency OutputFrameFreq; + UINT UABProtectionLevel; + UINT Reserved; + } DXVA2_VideoDesc; + + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0003 + { + DXVA2_DeinterlaceTech_Unknown = 0, + DXVA2_DeinterlaceTech_BOBLineReplicate = 0x1, + DXVA2_DeinterlaceTech_BOBVerticalStretch = 0x2, + DXVA2_DeinterlaceTech_BOBVerticalStretch4Tap = 0x4, + DXVA2_DeinterlaceTech_MedianFiltering = 0x8, + DXVA2_DeinterlaceTech_EdgeFiltering = 0x10, + DXVA2_DeinterlaceTech_FieldAdaptive = 0x20, + DXVA2_DeinterlaceTech_PixelAdaptive = 0x40, + DXVA2_DeinterlaceTech_MotionVectorSteered = 0x80, + DXVA2_DeinterlaceTech_InverseTelecine = 0x100, + DXVA2_DeinterlaceTech_Mask = 0x1ff + } ; + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0004 + { + DXVA2_NoiseFilterLumaLevel = 1, + DXVA2_NoiseFilterLumaThreshold = 2, + DXVA2_NoiseFilterLumaRadius = 3, + DXVA2_NoiseFilterChromaLevel = 4, + DXVA2_NoiseFilterChromaThreshold = 5, + DXVA2_NoiseFilterChromaRadius = 6, + DXVA2_DetailFilterLumaLevel = 7, + DXVA2_DetailFilterLumaThreshold = 8, + DXVA2_DetailFilterLumaRadius = 9, + DXVA2_DetailFilterChromaLevel = 10, + DXVA2_DetailFilterChromaThreshold = 11, + DXVA2_DetailFilterChromaRadius = 12 + } ; + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0005 + { + DXVA2_NoiseFilterTech_Unsupported = 0, + DXVA2_NoiseFilterTech_Unknown = 0x1, + DXVA2_NoiseFilterTech_Median = 0x2, + DXVA2_NoiseFilterTech_Temporal = 0x4, + DXVA2_NoiseFilterTech_BlockNoise = 0x8, + DXVA2_NoiseFilterTech_MosquitoNoise = 0x10, + DXVA2_NoiseFilterTech_Mask = 0x1f + } ; + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0006 + { + DXVA2_DetailFilterTech_Unsupported = 0, + DXVA2_DetailFilterTech_Unknown = 0x1, + DXVA2_DetailFilterTech_Edge = 0x2, + DXVA2_DetailFilterTech_Sharpening = 0x4, + DXVA2_DetailFilterTech_Mask = 0x7 + } ; + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0007 + { + DXVA2_ProcAmp_None = 0, + DXVA2_ProcAmp_Brightness = 0x1, + DXVA2_ProcAmp_Contrast = 0x2, + DXVA2_ProcAmp_Hue = 0x4, + DXVA2_ProcAmp_Saturation = 0x8, + DXVA2_ProcAmp_Mask = 0xf + } ; + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0008 + { + DXVA2_VideoProcess_None = 0, + DXVA2_VideoProcess_YUV2RGB = 0x1, + DXVA2_VideoProcess_StretchX = 0x2, + DXVA2_VideoProcess_StretchY = 0x4, + DXVA2_VideoProcess_AlphaBlend = 0x8, + DXVA2_VideoProcess_SubRects = 0x10, + DXVA2_VideoProcess_SubStreams = 0x20, + DXVA2_VideoProcess_SubStreamsExtended = 0x40, + DXVA2_VideoProcess_YUV2RGBExtended = 0x80, + DXVA2_VideoProcess_AlphaBlendExtended = 0x100, + DXVA2_VideoProcess_Constriction = 0x200, + DXVA2_VideoProcess_NoiseFilter = 0x400, + DXVA2_VideoProcess_DetailFilter = 0x800, + DXVA2_VideoProcess_PlanarAlpha = 0x1000, + DXVA2_VideoProcess_LinearScaling = 0x2000, + DXVA2_VideoProcess_GammaCompensated = 0x4000, + DXVA2_VideoProcess_MaintainsOriginalFieldData = 0x8000, + DXVA2_VideoProcess_Mask = 0xffff + } ; + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0009 + { + DXVA2_VPDev_HardwareDevice = 0x1, + DXVA2_VPDev_EmulatedDXVA1 = 0x2, + DXVA2_VPDev_SoftwareDevice = 0x4, + DXVA2_VPDev_Mask = 0x7 + } ; + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0010 + { + DXVA2_SampleData_RFF = 0x1, + DXVA2_SampleData_TFF = 0x2, + DXVA2_SampleData_RFF_TFF_Present = 0x4, + DXVA2_SampleData_Mask = 0xffff + } ; + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0011 + { + DXVA2_DestData_RFF = 0x1, + DXVA2_DestData_TFF = 0x2, + DXVA2_DestData_RFF_TFF_Present = 0x4, + DXVA2_DestData_Mask = 0xffff + } ; +typedef struct _DXVA2_VideoProcessorCaps + { + UINT DeviceCaps; + D3DPOOL InputPool; + UINT NumForwardRefSamples; + UINT NumBackwardRefSamples; + UINT Reserved; + UINT DeinterlaceTechnology; + UINT ProcAmpControlCaps; + UINT VideoProcessorOperations; + UINT NoiseFilterTechnology; + UINT DetailFilterTechnology; + } DXVA2_VideoProcessorCaps; + +#ifdef __midl +typedef LONG DXVA2_Fixed32; + +#else +#pragma warning( push ) +#pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union +typedef struct _DXVA2_Fixed32 +{ + union { + struct { + USHORT Fraction; + SHORT Value; + }; + LONG ll; + }; +} DXVA2_Fixed32; +#pragma warning( pop ) +#endif +typedef struct _DXVA2_AYUVSample8 + { + UCHAR Cr; + UCHAR Cb; + UCHAR Y; + UCHAR Alpha; + } DXVA2_AYUVSample8; + +typedef struct _DXVA2_AYUVSample16 + { + USHORT Cr; + USHORT Cb; + USHORT Y; + USHORT Alpha; + } DXVA2_AYUVSample16; + +typedef LONGLONG REFERENCE_TIME; + +#if defined(_D3D9_H_) || defined(_d3d9P_H_) +typedef struct _DXVA2_VideoSample + { + REFERENCE_TIME Start; + REFERENCE_TIME End; + DXVA2_ExtendedFormat SampleFormat; + IDirect3DSurface9 *SrcSurface; + RECT SrcRect; + RECT DstRect; + DXVA2_AYUVSample8 Pal[ 16 ]; + DXVA2_Fixed32 PlanarAlpha; + DWORD SampleData; + } DXVA2_VideoSample; + +#endif // _D3D9_H_ +typedef struct _DXVA2_ValueRange + { + DXVA2_Fixed32 MinValue; + DXVA2_Fixed32 MaxValue; + DXVA2_Fixed32 DefaultValue; + DXVA2_Fixed32 StepSize; + } DXVA2_ValueRange; + +typedef struct _DXVA2_ProcAmpValues + { + DXVA2_Fixed32 Brightness; + DXVA2_Fixed32 Contrast; + DXVA2_Fixed32 Hue; + DXVA2_Fixed32 Saturation; + } DXVA2_ProcAmpValues; + +typedef struct _DXVA2_FilterValues + { + DXVA2_Fixed32 Level; + DXVA2_Fixed32 Threshold; + DXVA2_Fixed32 Radius; + } DXVA2_FilterValues; + +typedef struct _DXVA2_VideoProcessBltParams + { + REFERENCE_TIME TargetFrame; + RECT TargetRect; + SIZE ConstrictionSize; + UINT StreamingFlags; + DXVA2_AYUVSample16 BackgroundColor; + DXVA2_ExtendedFormat DestFormat; + DXVA2_ProcAmpValues ProcAmpValues; + DXVA2_Fixed32 Alpha; + DXVA2_FilterValues NoiseFilterLuma; + DXVA2_FilterValues NoiseFilterChroma; + DXVA2_FilterValues DetailFilterLuma; + DXVA2_FilterValues DetailFilterChroma; + DWORD DestData; + } DXVA2_VideoProcessBltParams; + + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0012 + { + DXVA2_PictureParametersBufferType = 0, + DXVA2_MacroBlockControlBufferType = 1, + DXVA2_ResidualDifferenceBufferType = 2, + DXVA2_DeblockingControlBufferType = 3, + DXVA2_InverseQuantizationMatrixBufferType = 4, + DXVA2_SliceControlBufferType = 5, + DXVA2_BitStreamDateBufferType = 6, + DXVA2_MotionVectorBuffer = 7, + DXVA2_FilmGrainBuffer = 8 + } ; + +enum __MIDL___MIDL_itf_dxva2api_0000_0000_0013 + { + DXVA2_VideoDecoderRenderTarget = 0, + DXVA2_VideoProcessorRenderTarget = 1, + DXVA2_VideoSoftwareRenderTarget = 2 + } ; +typedef struct _DXVA2_ConfigPictureDecode + { + GUID guidConfigBitstreamEncryption; + GUID guidConfigMBcontrolEncryption; + GUID guidConfigResidDiffEncryption; + UINT ConfigBitstreamRaw; + UINT ConfigMBcontrolRasterOrder; + UINT ConfigResidDiffHost; + UINT ConfigSpatialResid8; + UINT ConfigResid8Subtraction; + UINT ConfigSpatialHost8or9Clipping; + UINT ConfigSpatialResidInterleaved; + UINT ConfigIntraResidUnsigned; + UINT ConfigResidDiffAccelerator; + UINT ConfigHostInverseScan; + UINT ConfigSpecificIDCT; + UINT Config4GroupedCoefs; + USHORT ConfigMinRenderTargetBuffCount; + USHORT ConfigDecoderSpecific; + } DXVA2_ConfigPictureDecode; + +typedef struct _DXVA2_DecodeBufferDesc + { + DWORD CompressedBufferType; + UINT BufferIndex; + UINT DataOffset; + UINT DataSize; + UINT FirstMBaddress; + UINT NumMBsInBuffer; + UINT Width; + UINT Height; + UINT Stride; + UINT ReservedBits; + PVOID pvPVPState; + } DXVA2_DecodeBufferDesc; + +// The value in pvPVPState depends on the type of crypo used. For +// D3DCRYPTOTYPE_AES128_CTR, pvPState points to the following structure: + +typedef struct _DXVA2_AES_CTR_IV + { + UINT64 IV; + UINT64 Count; + } DXVA2_AES_CTR_IV; + +typedef struct _DXVA2_DecodeExtensionData + { + UINT Function; + PVOID pPrivateInputData; + UINT PrivateInputDataSize; + PVOID pPrivateOutputData; + UINT PrivateOutputDataSize; + } DXVA2_DecodeExtensionData; + +// DXVA2_DECODE_GET_DRIVER_HANDLE is an extension function that allows the +// driver to return a handle for the DXVA2 decode device that can be used to +// associate it with a IDirect3DCryptoSession9 interface. When this function +// is used: +// pPrivateInputData = NULL +// pPrivateInputDataSize = 0 +// pPrivateOutputData = HANDLE* +// pPrivateOutputDataSize = sizeof(HANDLE) +#define DXVA2_DECODE_GET_DRIVER_HANDLE 0x725 + +// DXVA2_DECODE_SPECIFY_ENCRYPTED_BLOCKS is an extension function that that allows +// the decoder to specify which portions of the compressed buffers are encrypted. +// If this fucntion is not used to specify this information, it is assumed that +// the entire buffer is encrypted. +// pPrivateInputData = D3DENCRYPTED_BLOCK_INFO*; +// PrivateInputDataSize = sizeof(D3DENCRYPTED_BLOCK_INFO); +// pPrivateOutputData = NULL; +// PrivateOutputDataSize = 0; +#define DXVA2_DECODE_SPECIFY_ENCRYPTED_BLOCKS 0x724 + +typedef struct _DXVA2_DecodeExecuteParams + { + UINT NumCompBuffers; + DXVA2_DecodeBufferDesc *pCompressedBuffers; + DXVA2_DecodeExtensionData *pExtensionData; + } DXVA2_DecodeExecuteParams; + +#if defined(_D3D9_H_) || defined(_d3d9P_H_) + + + + + + + + +extern RPC_IF_HANDLE __MIDL_itf_dxva2api_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dxva2api_0000_0000_v0_0_s_ifspec; + +#ifndef __IDirect3DDeviceManager9_INTERFACE_DEFINED__ +#define __IDirect3DDeviceManager9_INTERFACE_DEFINED__ + +/* interface IDirect3DDeviceManager9 */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDirect3DDeviceManager9; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("a0cade0f-06d5-4cf4-a1c7-f3cdd725aa75") + IDirect3DDeviceManager9 : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE ResetDevice( + /* [annotation][in] */ + _In_ IDirect3DDevice9 *pDevice, + /* [annotation][in] */ + _In_ UINT resetToken) = 0; + + virtual HRESULT STDMETHODCALLTYPE OpenDeviceHandle( + /* [annotation][out] */ + _Out_ HANDLE *phDevice) = 0; + + virtual HRESULT STDMETHODCALLTYPE CloseDeviceHandle( + /* [annotation][in] */ + _In_ HANDLE hDevice) = 0; + + virtual HRESULT STDMETHODCALLTYPE TestDevice( + /* [annotation][in] */ + _In_ HANDLE hDevice) = 0; + + virtual HRESULT STDMETHODCALLTYPE LockDevice( + /* [annotation][in] */ + _In_ HANDLE hDevice, + /* [annotation][out] */ + _Outptr_ IDirect3DDevice9 **ppDevice, + /* [annotation][in] */ + _In_ BOOL fBlock) = 0; + + virtual HRESULT STDMETHODCALLTYPE UnlockDevice( + /* [annotation][in] */ + _In_ HANDLE hDevice, + /* [annotation][in] */ + _In_ BOOL fSaveState) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoService( + /* [annotation][in] */ + _In_ HANDLE hDevice, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][out] */ + _Outptr_ void **ppService) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirect3DDeviceManager9Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirect3DDeviceManager9 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirect3DDeviceManager9 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirect3DDeviceManager9 * This); + + DECLSPEC_XFGVIRT(IDirect3DDeviceManager9, ResetDevice) + HRESULT ( STDMETHODCALLTYPE *ResetDevice )( + IDirect3DDeviceManager9 * This, + /* [annotation][in] */ + _In_ IDirect3DDevice9 *pDevice, + /* [annotation][in] */ + _In_ UINT resetToken); + + DECLSPEC_XFGVIRT(IDirect3DDeviceManager9, OpenDeviceHandle) + HRESULT ( STDMETHODCALLTYPE *OpenDeviceHandle )( + IDirect3DDeviceManager9 * This, + /* [annotation][out] */ + _Out_ HANDLE *phDevice); + + DECLSPEC_XFGVIRT(IDirect3DDeviceManager9, CloseDeviceHandle) + HRESULT ( STDMETHODCALLTYPE *CloseDeviceHandle )( + IDirect3DDeviceManager9 * This, + /* [annotation][in] */ + _In_ HANDLE hDevice); + + DECLSPEC_XFGVIRT(IDirect3DDeviceManager9, TestDevice) + HRESULT ( STDMETHODCALLTYPE *TestDevice )( + IDirect3DDeviceManager9 * This, + /* [annotation][in] */ + _In_ HANDLE hDevice); + + DECLSPEC_XFGVIRT(IDirect3DDeviceManager9, LockDevice) + HRESULT ( STDMETHODCALLTYPE *LockDevice )( + IDirect3DDeviceManager9 * This, + /* [annotation][in] */ + _In_ HANDLE hDevice, + /* [annotation][out] */ + _Outptr_ IDirect3DDevice9 **ppDevice, + /* [annotation][in] */ + _In_ BOOL fBlock); + + DECLSPEC_XFGVIRT(IDirect3DDeviceManager9, UnlockDevice) + HRESULT ( STDMETHODCALLTYPE *UnlockDevice )( + IDirect3DDeviceManager9 * This, + /* [annotation][in] */ + _In_ HANDLE hDevice, + /* [annotation][in] */ + _In_ BOOL fSaveState); + + DECLSPEC_XFGVIRT(IDirect3DDeviceManager9, GetVideoService) + HRESULT ( STDMETHODCALLTYPE *GetVideoService )( + IDirect3DDeviceManager9 * This, + /* [annotation][in] */ + _In_ HANDLE hDevice, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][out] */ + _Outptr_ void **ppService); + + END_INTERFACE + } IDirect3DDeviceManager9Vtbl; + + interface IDirect3DDeviceManager9 + { + CONST_VTBL struct IDirect3DDeviceManager9Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirect3DDeviceManager9_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirect3DDeviceManager9_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirect3DDeviceManager9_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirect3DDeviceManager9_ResetDevice(This,pDevice,resetToken) \ + ( (This)->lpVtbl -> ResetDevice(This,pDevice,resetToken) ) + +#define IDirect3DDeviceManager9_OpenDeviceHandle(This,phDevice) \ + ( (This)->lpVtbl -> OpenDeviceHandle(This,phDevice) ) + +#define IDirect3DDeviceManager9_CloseDeviceHandle(This,hDevice) \ + ( (This)->lpVtbl -> CloseDeviceHandle(This,hDevice) ) + +#define IDirect3DDeviceManager9_TestDevice(This,hDevice) \ + ( (This)->lpVtbl -> TestDevice(This,hDevice) ) + +#define IDirect3DDeviceManager9_LockDevice(This,hDevice,ppDevice,fBlock) \ + ( (This)->lpVtbl -> LockDevice(This,hDevice,ppDevice,fBlock) ) + +#define IDirect3DDeviceManager9_UnlockDevice(This,hDevice,fSaveState) \ + ( (This)->lpVtbl -> UnlockDevice(This,hDevice,fSaveState) ) + +#define IDirect3DDeviceManager9_GetVideoService(This,hDevice,riid,ppService) \ + ( (This)->lpVtbl -> GetVideoService(This,hDevice,riid,ppService) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirect3DDeviceManager9_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectXVideoAccelerationService_INTERFACE_DEFINED__ +#define __IDirectXVideoAccelerationService_INTERFACE_DEFINED__ + +/* interface IDirectXVideoAccelerationService */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDirectXVideoAccelerationService; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fc51a550-d5e7-11d9-af55-00054e43ff02") + IDirectXVideoAccelerationService : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateSurface( + /* [annotation][in] */ + _In_ UINT Width, + /* [annotation][in] */ + _In_ UINT Height, + /* [annotation][in] */ + _In_ UINT BackBuffers, + /* [annotation][in] */ + _In_ D3DFORMAT Format, + /* [annotation][in] */ + _In_ D3DPOOL Pool, + /* [annotation][in] */ + _In_ DWORD Usage, + /* [annotation][in] */ + _In_ DWORD DxvaType, + /* [annotation][size_is][out] */ + _Out_writes_(BackBuffers+1) IDirect3DSurface9 **ppSurface, + /* [annotation][out][in] */ + _Inout_opt_ HANDLE *pSharedHandle) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectXVideoAccelerationServiceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectXVideoAccelerationService * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectXVideoAccelerationService * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectXVideoAccelerationService * This); + + DECLSPEC_XFGVIRT(IDirectXVideoAccelerationService, CreateSurface) + HRESULT ( STDMETHODCALLTYPE *CreateSurface )( + IDirectXVideoAccelerationService * This, + /* [annotation][in] */ + _In_ UINT Width, + /* [annotation][in] */ + _In_ UINT Height, + /* [annotation][in] */ + _In_ UINT BackBuffers, + /* [annotation][in] */ + _In_ D3DFORMAT Format, + /* [annotation][in] */ + _In_ D3DPOOL Pool, + /* [annotation][in] */ + _In_ DWORD Usage, + /* [annotation][in] */ + _In_ DWORD DxvaType, + /* [annotation][size_is][out] */ + _Out_writes_(BackBuffers+1) IDirect3DSurface9 **ppSurface, + /* [annotation][out][in] */ + _Inout_opt_ HANDLE *pSharedHandle); + + END_INTERFACE + } IDirectXVideoAccelerationServiceVtbl; + + interface IDirectXVideoAccelerationService + { + CONST_VTBL struct IDirectXVideoAccelerationServiceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectXVideoAccelerationService_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectXVideoAccelerationService_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectXVideoAccelerationService_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectXVideoAccelerationService_CreateSurface(This,Width,Height,BackBuffers,Format,Pool,Usage,DxvaType,ppSurface,pSharedHandle) \ + ( (This)->lpVtbl -> CreateSurface(This,Width,Height,BackBuffers,Format,Pool,Usage,DxvaType,ppSurface,pSharedHandle) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectXVideoAccelerationService_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectXVideoDecoderService_INTERFACE_DEFINED__ +#define __IDirectXVideoDecoderService_INTERFACE_DEFINED__ + +/* interface IDirectXVideoDecoderService */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDirectXVideoDecoderService; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fc51a551-d5e7-11d9-af55-00054e43ff02") + IDirectXVideoDecoderService : public IDirectXVideoAccelerationService + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDecoderDeviceGuids( + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) GUID **pGuids) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDecoderRenderTargets( + /* [annotation][in] */ + _In_ REFGUID Guid, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) D3DFORMAT **pFormats) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDecoderConfigurations( + /* [annotation][in] */ + _In_ REFGUID Guid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _Reserved_ void *pReserved, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) DXVA2_ConfigPictureDecode **ppConfigs) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVideoDecoder( + /* [annotation][in] */ + _In_ REFGUID Guid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ const DXVA2_ConfigPictureDecode *pConfig, + /* [annotation][size_is][in] */ + _In_reads_(NumRenderTargets) IDirect3DSurface9 **ppDecoderRenderTargets, + /* [annotation][in] */ + _In_ UINT NumRenderTargets, + /* [annotation][out] */ + _Outptr_ IDirectXVideoDecoder **ppDecode) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectXVideoDecoderServiceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectXVideoDecoderService * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectXVideoDecoderService * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectXVideoDecoderService * This); + + DECLSPEC_XFGVIRT(IDirectXVideoAccelerationService, CreateSurface) + HRESULT ( STDMETHODCALLTYPE *CreateSurface )( + IDirectXVideoDecoderService * This, + /* [annotation][in] */ + _In_ UINT Width, + /* [annotation][in] */ + _In_ UINT Height, + /* [annotation][in] */ + _In_ UINT BackBuffers, + /* [annotation][in] */ + _In_ D3DFORMAT Format, + /* [annotation][in] */ + _In_ D3DPOOL Pool, + /* [annotation][in] */ + _In_ DWORD Usage, + /* [annotation][in] */ + _In_ DWORD DxvaType, + /* [annotation][size_is][out] */ + _Out_writes_(BackBuffers+1) IDirect3DSurface9 **ppSurface, + /* [annotation][out][in] */ + _Inout_opt_ HANDLE *pSharedHandle); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoderService, GetDecoderDeviceGuids) + HRESULT ( STDMETHODCALLTYPE *GetDecoderDeviceGuids )( + IDirectXVideoDecoderService * This, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) GUID **pGuids); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoderService, GetDecoderRenderTargets) + HRESULT ( STDMETHODCALLTYPE *GetDecoderRenderTargets )( + IDirectXVideoDecoderService * This, + /* [annotation][in] */ + _In_ REFGUID Guid, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) D3DFORMAT **pFormats); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoderService, GetDecoderConfigurations) + HRESULT ( STDMETHODCALLTYPE *GetDecoderConfigurations )( + IDirectXVideoDecoderService * This, + /* [annotation][in] */ + _In_ REFGUID Guid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _Reserved_ void *pReserved, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) DXVA2_ConfigPictureDecode **ppConfigs); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoderService, CreateVideoDecoder) + HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoder )( + IDirectXVideoDecoderService * This, + /* [annotation][in] */ + _In_ REFGUID Guid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ const DXVA2_ConfigPictureDecode *pConfig, + /* [annotation][size_is][in] */ + _In_reads_(NumRenderTargets) IDirect3DSurface9 **ppDecoderRenderTargets, + /* [annotation][in] */ + _In_ UINT NumRenderTargets, + /* [annotation][out] */ + _Outptr_ IDirectXVideoDecoder **ppDecode); + + END_INTERFACE + } IDirectXVideoDecoderServiceVtbl; + + interface IDirectXVideoDecoderService + { + CONST_VTBL struct IDirectXVideoDecoderServiceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectXVideoDecoderService_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectXVideoDecoderService_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectXVideoDecoderService_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectXVideoDecoderService_CreateSurface(This,Width,Height,BackBuffers,Format,Pool,Usage,DxvaType,ppSurface,pSharedHandle) \ + ( (This)->lpVtbl -> CreateSurface(This,Width,Height,BackBuffers,Format,Pool,Usage,DxvaType,ppSurface,pSharedHandle) ) + + +#define IDirectXVideoDecoderService_GetDecoderDeviceGuids(This,pCount,pGuids) \ + ( (This)->lpVtbl -> GetDecoderDeviceGuids(This,pCount,pGuids) ) + +#define IDirectXVideoDecoderService_GetDecoderRenderTargets(This,Guid,pCount,pFormats) \ + ( (This)->lpVtbl -> GetDecoderRenderTargets(This,Guid,pCount,pFormats) ) + +#define IDirectXVideoDecoderService_GetDecoderConfigurations(This,Guid,pVideoDesc,pReserved,pCount,ppConfigs) \ + ( (This)->lpVtbl -> GetDecoderConfigurations(This,Guid,pVideoDesc,pReserved,pCount,ppConfigs) ) + +#define IDirectXVideoDecoderService_CreateVideoDecoder(This,Guid,pVideoDesc,pConfig,ppDecoderRenderTargets,NumRenderTargets,ppDecode) \ + ( (This)->lpVtbl -> CreateVideoDecoder(This,Guid,pVideoDesc,pConfig,ppDecoderRenderTargets,NumRenderTargets,ppDecode) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectXVideoDecoderService_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectXVideoProcessorService_INTERFACE_DEFINED__ +#define __IDirectXVideoProcessorService_INTERFACE_DEFINED__ + +/* interface IDirectXVideoProcessorService */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDirectXVideoProcessorService; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("fc51a552-d5e7-11d9-af55-00054e43ff02") + IDirectXVideoProcessorService : public IDirectXVideoAccelerationService + { + public: + virtual HRESULT STDMETHODCALLTYPE RegisterVideoProcessorSoftwareDevice( + /* [annotation][in] */ + _In_ void *pCallbacks) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorDeviceGuids( + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) GUID **pGuids) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorRenderTargets( + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) D3DFORMAT **pFormats) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorSubStreamFormats( + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ D3DFORMAT RenderTargetFormat, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) D3DFORMAT **pFormats) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorCaps( + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ D3DFORMAT RenderTargetFormat, + /* [annotation][out] */ + _Out_ DXVA2_VideoProcessorCaps *pCaps) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProcAmpRange( + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ D3DFORMAT RenderTargetFormat, + /* [annotation][in] */ + _In_ UINT ProcAmpCap, + /* [annotation][out] */ + _Out_ DXVA2_ValueRange *pRange) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFilterPropertyRange( + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ D3DFORMAT RenderTargetFormat, + /* [annotation][in] */ + _In_ UINT FilterSetting, + /* [annotation][out] */ + _Out_ DXVA2_ValueRange *pRange) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVideoProcessor( + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ D3DFORMAT RenderTargetFormat, + /* [annotation][in] */ + _In_ UINT MaxNumSubStreams, + /* [annotation][out] */ + _Outptr_ IDirectXVideoProcessor **ppVidProcess) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectXVideoProcessorServiceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectXVideoProcessorService * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectXVideoProcessorService * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectXVideoProcessorService * This); + + DECLSPEC_XFGVIRT(IDirectXVideoAccelerationService, CreateSurface) + HRESULT ( STDMETHODCALLTYPE *CreateSurface )( + IDirectXVideoProcessorService * This, + /* [annotation][in] */ + _In_ UINT Width, + /* [annotation][in] */ + _In_ UINT Height, + /* [annotation][in] */ + _In_ UINT BackBuffers, + /* [annotation][in] */ + _In_ D3DFORMAT Format, + /* [annotation][in] */ + _In_ D3DPOOL Pool, + /* [annotation][in] */ + _In_ DWORD Usage, + /* [annotation][in] */ + _In_ DWORD DxvaType, + /* [annotation][size_is][out] */ + _Out_writes_(BackBuffers+1) IDirect3DSurface9 **ppSurface, + /* [annotation][out][in] */ + _Inout_opt_ HANDLE *pSharedHandle); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, RegisterVideoProcessorSoftwareDevice) + HRESULT ( STDMETHODCALLTYPE *RegisterVideoProcessorSoftwareDevice )( + IDirectXVideoProcessorService * This, + /* [annotation][in] */ + _In_ void *pCallbacks); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, GetVideoProcessorDeviceGuids) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorDeviceGuids )( + IDirectXVideoProcessorService * This, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) GUID **pGuids); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, GetVideoProcessorRenderTargets) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorRenderTargets )( + IDirectXVideoProcessorService * This, + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) D3DFORMAT **pFormats); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, GetVideoProcessorSubStreamFormats) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorSubStreamFormats )( + IDirectXVideoProcessorService * This, + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ D3DFORMAT RenderTargetFormat, + /* [annotation][out] */ + _Out_ UINT *pCount, + /* [annotation][size_is][unique][out] */ + _Outptr_result_buffer_maybenull_(*pCount) D3DFORMAT **pFormats); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, GetVideoProcessorCaps) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorCaps )( + IDirectXVideoProcessorService * This, + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ D3DFORMAT RenderTargetFormat, + /* [annotation][out] */ + _Out_ DXVA2_VideoProcessorCaps *pCaps); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, GetProcAmpRange) + HRESULT ( STDMETHODCALLTYPE *GetProcAmpRange )( + IDirectXVideoProcessorService * This, + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ D3DFORMAT RenderTargetFormat, + /* [annotation][in] */ + _In_ UINT ProcAmpCap, + /* [annotation][out] */ + _Out_ DXVA2_ValueRange *pRange); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, GetFilterPropertyRange) + HRESULT ( STDMETHODCALLTYPE *GetFilterPropertyRange )( + IDirectXVideoProcessorService * This, + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ D3DFORMAT RenderTargetFormat, + /* [annotation][in] */ + _In_ UINT FilterSetting, + /* [annotation][out] */ + _Out_ DXVA2_ValueRange *pRange); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, CreateVideoProcessor) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessor )( + IDirectXVideoProcessorService * This, + /* [annotation][in] */ + _In_ REFGUID VideoProcDeviceGuid, + /* [annotation][in] */ + _In_ const DXVA2_VideoDesc *pVideoDesc, + /* [annotation][in] */ + _In_ D3DFORMAT RenderTargetFormat, + /* [annotation][in] */ + _In_ UINT MaxNumSubStreams, + /* [annotation][out] */ + _Outptr_ IDirectXVideoProcessor **ppVidProcess); + + END_INTERFACE + } IDirectXVideoProcessorServiceVtbl; + + interface IDirectXVideoProcessorService + { + CONST_VTBL struct IDirectXVideoProcessorServiceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectXVideoProcessorService_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectXVideoProcessorService_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectXVideoProcessorService_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectXVideoProcessorService_CreateSurface(This,Width,Height,BackBuffers,Format,Pool,Usage,DxvaType,ppSurface,pSharedHandle) \ + ( (This)->lpVtbl -> CreateSurface(This,Width,Height,BackBuffers,Format,Pool,Usage,DxvaType,ppSurface,pSharedHandle) ) + + +#define IDirectXVideoProcessorService_RegisterVideoProcessorSoftwareDevice(This,pCallbacks) \ + ( (This)->lpVtbl -> RegisterVideoProcessorSoftwareDevice(This,pCallbacks) ) + +#define IDirectXVideoProcessorService_GetVideoProcessorDeviceGuids(This,pVideoDesc,pCount,pGuids) \ + ( (This)->lpVtbl -> GetVideoProcessorDeviceGuids(This,pVideoDesc,pCount,pGuids) ) + +#define IDirectXVideoProcessorService_GetVideoProcessorRenderTargets(This,VideoProcDeviceGuid,pVideoDesc,pCount,pFormats) \ + ( (This)->lpVtbl -> GetVideoProcessorRenderTargets(This,VideoProcDeviceGuid,pVideoDesc,pCount,pFormats) ) + +#define IDirectXVideoProcessorService_GetVideoProcessorSubStreamFormats(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,pCount,pFormats) \ + ( (This)->lpVtbl -> GetVideoProcessorSubStreamFormats(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,pCount,pFormats) ) + +#define IDirectXVideoProcessorService_GetVideoProcessorCaps(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,pCaps) \ + ( (This)->lpVtbl -> GetVideoProcessorCaps(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,pCaps) ) + +#define IDirectXVideoProcessorService_GetProcAmpRange(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,ProcAmpCap,pRange) \ + ( (This)->lpVtbl -> GetProcAmpRange(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,ProcAmpCap,pRange) ) + +#define IDirectXVideoProcessorService_GetFilterPropertyRange(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,FilterSetting,pRange) \ + ( (This)->lpVtbl -> GetFilterPropertyRange(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,FilterSetting,pRange) ) + +#define IDirectXVideoProcessorService_CreateVideoProcessor(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,MaxNumSubStreams,ppVidProcess) \ + ( (This)->lpVtbl -> CreateVideoProcessor(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,MaxNumSubStreams,ppVidProcess) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectXVideoProcessorService_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectXVideoDecoder_INTERFACE_DEFINED__ +#define __IDirectXVideoDecoder_INTERFACE_DEFINED__ + +/* interface IDirectXVideoDecoder */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDirectXVideoDecoder; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("f2b0810a-fd00-43c9-918c-df94e2d8ef7d") + IDirectXVideoDecoder : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetVideoDecoderService( + /* [annotation][out] */ + _Outptr_ IDirectXVideoDecoderService **ppService) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCreationParameters( + /* [annotation][out] */ + _Out_opt_ GUID *pDeviceGuid, + /* [annotation][out] */ + _Out_opt_ DXVA2_VideoDesc *pVideoDesc, + /* [annotation][out] */ + _Out_opt_ DXVA2_ConfigPictureDecode *pConfig, + /* [annotation][size_is][unique][out] */ + _Out_writes_(*pNumSurfaces) IDirect3DSurface9 ***pDecoderRenderTargets, + /* [annotation][out] */ + _Out_opt_ UINT *pNumSurfaces) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetBuffer( + /* [annotation][in] */ + _In_ UINT BufferType, + /* [annotation][out] */ + _Out_ void **ppBuffer, + /* [annotation][out] */ + _Out_ UINT *pBufferSize) = 0; + + virtual HRESULT STDMETHODCALLTYPE ReleaseBuffer( + /* [annotation][in] */ + _In_ UINT BufferType) = 0; + + virtual HRESULT STDMETHODCALLTYPE BeginFrame( + /* [annotation][in] */ + _In_ IDirect3DSurface9 *pRenderTarget, + /* [annotation][in] */ + _In_opt_ void *pvPVPData) = 0; + + virtual HRESULT STDMETHODCALLTYPE EndFrame( + /* [annotation][out] */ + _Inout_opt_ HANDLE *pHandleComplete) = 0; + + virtual HRESULT STDMETHODCALLTYPE Execute( + /* [annotation][in] */ + _In_ const DXVA2_DecodeExecuteParams *pExecuteParams) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectXVideoDecoderVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectXVideoDecoder * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectXVideoDecoder * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectXVideoDecoder * This); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoder, GetVideoDecoderService) + HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderService )( + IDirectXVideoDecoder * This, + /* [annotation][out] */ + _Outptr_ IDirectXVideoDecoderService **ppService); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoder, GetCreationParameters) + HRESULT ( STDMETHODCALLTYPE *GetCreationParameters )( + IDirectXVideoDecoder * This, + /* [annotation][out] */ + _Out_opt_ GUID *pDeviceGuid, + /* [annotation][out] */ + _Out_opt_ DXVA2_VideoDesc *pVideoDesc, + /* [annotation][out] */ + _Out_opt_ DXVA2_ConfigPictureDecode *pConfig, + /* [annotation][size_is][unique][out] */ + _Out_writes_(*pNumSurfaces) IDirect3DSurface9 ***pDecoderRenderTargets, + /* [annotation][out] */ + _Out_opt_ UINT *pNumSurfaces); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoder, GetBuffer) + HRESULT ( STDMETHODCALLTYPE *GetBuffer )( + IDirectXVideoDecoder * This, + /* [annotation][in] */ + _In_ UINT BufferType, + /* [annotation][out] */ + _Out_ void **ppBuffer, + /* [annotation][out] */ + _Out_ UINT *pBufferSize); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoder, ReleaseBuffer) + HRESULT ( STDMETHODCALLTYPE *ReleaseBuffer )( + IDirectXVideoDecoder * This, + /* [annotation][in] */ + _In_ UINT BufferType); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoder, BeginFrame) + HRESULT ( STDMETHODCALLTYPE *BeginFrame )( + IDirectXVideoDecoder * This, + /* [annotation][in] */ + _In_ IDirect3DSurface9 *pRenderTarget, + /* [annotation][in] */ + _In_opt_ void *pvPVPData); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoder, EndFrame) + HRESULT ( STDMETHODCALLTYPE *EndFrame )( + IDirectXVideoDecoder * This, + /* [annotation][out] */ + _Inout_opt_ HANDLE *pHandleComplete); + + DECLSPEC_XFGVIRT(IDirectXVideoDecoder, Execute) + HRESULT ( STDMETHODCALLTYPE *Execute )( + IDirectXVideoDecoder * This, + /* [annotation][in] */ + _In_ const DXVA2_DecodeExecuteParams *pExecuteParams); + + END_INTERFACE + } IDirectXVideoDecoderVtbl; + + interface IDirectXVideoDecoder + { + CONST_VTBL struct IDirectXVideoDecoderVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectXVideoDecoder_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectXVideoDecoder_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectXVideoDecoder_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectXVideoDecoder_GetVideoDecoderService(This,ppService) \ + ( (This)->lpVtbl -> GetVideoDecoderService(This,ppService) ) + +#define IDirectXVideoDecoder_GetCreationParameters(This,pDeviceGuid,pVideoDesc,pConfig,pDecoderRenderTargets,pNumSurfaces) \ + ( (This)->lpVtbl -> GetCreationParameters(This,pDeviceGuid,pVideoDesc,pConfig,pDecoderRenderTargets,pNumSurfaces) ) + +#define IDirectXVideoDecoder_GetBuffer(This,BufferType,ppBuffer,pBufferSize) \ + ( (This)->lpVtbl -> GetBuffer(This,BufferType,ppBuffer,pBufferSize) ) + +#define IDirectXVideoDecoder_ReleaseBuffer(This,BufferType) \ + ( (This)->lpVtbl -> ReleaseBuffer(This,BufferType) ) + +#define IDirectXVideoDecoder_BeginFrame(This,pRenderTarget,pvPVPData) \ + ( (This)->lpVtbl -> BeginFrame(This,pRenderTarget,pvPVPData) ) + +#define IDirectXVideoDecoder_EndFrame(This,pHandleComplete) \ + ( (This)->lpVtbl -> EndFrame(This,pHandleComplete) ) + +#define IDirectXVideoDecoder_Execute(This,pExecuteParams) \ + ( (This)->lpVtbl -> Execute(This,pExecuteParams) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectXVideoDecoder_INTERFACE_DEFINED__ */ + + +#ifndef __IDirectXVideoProcessor_INTERFACE_DEFINED__ +#define __IDirectXVideoProcessor_INTERFACE_DEFINED__ + +/* interface IDirectXVideoProcessor */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDirectXVideoProcessor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8c3a39f0-916e-4690-804f-4c8001355d25") + IDirectXVideoProcessor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorService( + /* [annotation][out] */ + _Outptr_ IDirectXVideoProcessorService **ppService) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetCreationParameters( + /* [annotation][out] */ + _Out_opt_ GUID *pDeviceGuid, + /* [annotation][out] */ + _Out_opt_ DXVA2_VideoDesc *pVideoDesc, + /* [annotation][out] */ + _Out_opt_ D3DFORMAT *pRenderTargetFormat, + /* [annotation][out] */ + _Out_opt_ UINT *pMaxNumSubStreams) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorCaps( + /* [annotation][out] */ + _Out_ DXVA2_VideoProcessorCaps *pCaps) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetProcAmpRange( + /* [annotation][in] */ + _In_ UINT ProcAmpCap, + /* [annotation][out] */ + _Out_ DXVA2_ValueRange *pRange) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetFilterPropertyRange( + /* [annotation][in] */ + _In_ UINT FilterSetting, + /* [annotation][out] */ + _Out_ DXVA2_ValueRange *pRange) = 0; + + virtual HRESULT STDMETHODCALLTYPE VideoProcessBlt( + /* [annotation][in] */ + _In_ IDirect3DSurface9 *pRenderTarget, + /* [annotation][in] */ + _In_ const DXVA2_VideoProcessBltParams *pBltParams, + /* [annotation][size_is][in] */ + _In_reads_(NumSamples) const DXVA2_VideoSample *pSamples, + /* [annotation][in] */ + _In_ UINT NumSamples, + /* [annotation][out] */ + _Inout_opt_ HANDLE *pHandleComplete) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectXVideoProcessorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectXVideoProcessor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectXVideoProcessor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectXVideoProcessor * This); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessor, GetVideoProcessorService) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorService )( + IDirectXVideoProcessor * This, + /* [annotation][out] */ + _Outptr_ IDirectXVideoProcessorService **ppService); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessor, GetCreationParameters) + HRESULT ( STDMETHODCALLTYPE *GetCreationParameters )( + IDirectXVideoProcessor * This, + /* [annotation][out] */ + _Out_opt_ GUID *pDeviceGuid, + /* [annotation][out] */ + _Out_opt_ DXVA2_VideoDesc *pVideoDesc, + /* [annotation][out] */ + _Out_opt_ D3DFORMAT *pRenderTargetFormat, + /* [annotation][out] */ + _Out_opt_ UINT *pMaxNumSubStreams); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessor, GetVideoProcessorCaps) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorCaps )( + IDirectXVideoProcessor * This, + /* [annotation][out] */ + _Out_ DXVA2_VideoProcessorCaps *pCaps); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessor, GetProcAmpRange) + HRESULT ( STDMETHODCALLTYPE *GetProcAmpRange )( + IDirectXVideoProcessor * This, + /* [annotation][in] */ + _In_ UINT ProcAmpCap, + /* [annotation][out] */ + _Out_ DXVA2_ValueRange *pRange); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessor, GetFilterPropertyRange) + HRESULT ( STDMETHODCALLTYPE *GetFilterPropertyRange )( + IDirectXVideoProcessor * This, + /* [annotation][in] */ + _In_ UINT FilterSetting, + /* [annotation][out] */ + _Out_ DXVA2_ValueRange *pRange); + + DECLSPEC_XFGVIRT(IDirectXVideoProcessor, VideoProcessBlt) + HRESULT ( STDMETHODCALLTYPE *VideoProcessBlt )( + IDirectXVideoProcessor * This, + /* [annotation][in] */ + _In_ IDirect3DSurface9 *pRenderTarget, + /* [annotation][in] */ + _In_ const DXVA2_VideoProcessBltParams *pBltParams, + /* [annotation][size_is][in] */ + _In_reads_(NumSamples) const DXVA2_VideoSample *pSamples, + /* [annotation][in] */ + _In_ UINT NumSamples, + /* [annotation][out] */ + _Inout_opt_ HANDLE *pHandleComplete); + + END_INTERFACE + } IDirectXVideoProcessorVtbl; + + interface IDirectXVideoProcessor + { + CONST_VTBL struct IDirectXVideoProcessorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectXVideoProcessor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectXVideoProcessor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectXVideoProcessor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectXVideoProcessor_GetVideoProcessorService(This,ppService) \ + ( (This)->lpVtbl -> GetVideoProcessorService(This,ppService) ) + +#define IDirectXVideoProcessor_GetCreationParameters(This,pDeviceGuid,pVideoDesc,pRenderTargetFormat,pMaxNumSubStreams) \ + ( (This)->lpVtbl -> GetCreationParameters(This,pDeviceGuid,pVideoDesc,pRenderTargetFormat,pMaxNumSubStreams) ) + +#define IDirectXVideoProcessor_GetVideoProcessorCaps(This,pCaps) \ + ( (This)->lpVtbl -> GetVideoProcessorCaps(This,pCaps) ) + +#define IDirectXVideoProcessor_GetProcAmpRange(This,ProcAmpCap,pRange) \ + ( (This)->lpVtbl -> GetProcAmpRange(This,ProcAmpCap,pRange) ) + +#define IDirectXVideoProcessor_GetFilterPropertyRange(This,FilterSetting,pRange) \ + ( (This)->lpVtbl -> GetFilterPropertyRange(This,FilterSetting,pRange) ) + +#define IDirectXVideoProcessor_VideoProcessBlt(This,pRenderTarget,pBltParams,pSamples,NumSamples,pHandleComplete) \ + ( (This)->lpVtbl -> VideoProcessBlt(This,pRenderTarget,pBltParams,pSamples,NumSamples,pHandleComplete) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectXVideoProcessor_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dxva2api_0000_0006 */ +/* [local] */ + +typedef /* [public][public][public] */ +enum __MIDL___MIDL_itf_dxva2api_0000_0006_0001 + { + DXVA2_SurfaceType_DecoderRenderTarget = 0, + DXVA2_SurfaceType_ProcessorRenderTarget = 1, + DXVA2_SurfaceType_D3DRenderTargetTexture = 2 + } DXVA2_SurfaceType; + + + +extern RPC_IF_HANDLE __MIDL_itf_dxva2api_0000_0006_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dxva2api_0000_0006_v0_0_s_ifspec; + +#ifndef __IDirectXVideoMemoryConfiguration_INTERFACE_DEFINED__ +#define __IDirectXVideoMemoryConfiguration_INTERFACE_DEFINED__ + +/* interface IDirectXVideoMemoryConfiguration */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDirectXVideoMemoryConfiguration; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b7f916dd-db3b-49c1-84d7-e45ef99ec726") + IDirectXVideoMemoryConfiguration : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetAvailableSurfaceTypeByIndex( + /* [annotation][in] */ + _In_ DWORD dwTypeIndex, + /* [annotation][out] */ + _Out_ DXVA2_SurfaceType *pdwType) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetSurfaceType( + /* [annotation][in] */ + _In_ DXVA2_SurfaceType dwType) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDirectXVideoMemoryConfigurationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDirectXVideoMemoryConfiguration * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDirectXVideoMemoryConfiguration * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDirectXVideoMemoryConfiguration * This); + + DECLSPEC_XFGVIRT(IDirectXVideoMemoryConfiguration, GetAvailableSurfaceTypeByIndex) + HRESULT ( STDMETHODCALLTYPE *GetAvailableSurfaceTypeByIndex )( + IDirectXVideoMemoryConfiguration * This, + /* [annotation][in] */ + _In_ DWORD dwTypeIndex, + /* [annotation][out] */ + _Out_ DXVA2_SurfaceType *pdwType); + + DECLSPEC_XFGVIRT(IDirectXVideoMemoryConfiguration, SetSurfaceType) + HRESULT ( STDMETHODCALLTYPE *SetSurfaceType )( + IDirectXVideoMemoryConfiguration * This, + /* [annotation][in] */ + _In_ DXVA2_SurfaceType dwType); + + END_INTERFACE + } IDirectXVideoMemoryConfigurationVtbl; + + interface IDirectXVideoMemoryConfiguration + { + CONST_VTBL struct IDirectXVideoMemoryConfigurationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDirectXVideoMemoryConfiguration_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDirectXVideoMemoryConfiguration_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDirectXVideoMemoryConfiguration_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDirectXVideoMemoryConfiguration_GetAvailableSurfaceTypeByIndex(This,dwTypeIndex,pdwType) \ + ( (This)->lpVtbl -> GetAvailableSurfaceTypeByIndex(This,dwTypeIndex,pdwType) ) + +#define IDirectXVideoMemoryConfiguration_SetSurfaceType(This,dwType) \ + ( (This)->lpVtbl -> SetSurfaceType(This,dwType) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDirectXVideoMemoryConfiguration_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dxva2api_0000_0007 */ +/* [local] */ + +STDAPI DXVA2CreateDirect3DDeviceManager9( + _Out_ UINT* pResetToken, + _Outptr_ IDirect3DDeviceManager9** ppDeviceManager + ); +STDAPI DXVA2CreateVideoService( + _In_ IDirect3DDevice9* pDD, + _In_ REFIID riid, + _Outptr_ void** ppService + ); +#endif // _D3D9_H_ +__inline DXVA2_Fixed32 DXVA2FloatToFixed(_In_ const float _float_) +{ + DXVA2_Fixed32 _fixed_; + _fixed_.Fraction = LOWORD(_float_ * 0x10000); + _fixed_.Value = HIWORD(_float_ * 0x10000); + return _fixed_; +} +__inline float DXVA2FixedToFloat(_In_ const DXVA2_Fixed32 _fixed_) +{ + return (FLOAT)_fixed_.Value + (FLOAT)_fixed_.Fraction / 0x10000; +} +__inline const DXVA2_Fixed32 DXVA2_Fixed32TransparentAlpha() +{ + DXVA2_Fixed32 _fixed_ = {0, 0}; + return _fixed_; +} +__inline const DXVA2_Fixed32 DXVA2_Fixed32OpaqueAlpha() +{ + DXVA2_Fixed32 _fixed_ = {0, 1}; + return _fixed_; +} +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#endif + + +extern RPC_IF_HANDLE __MIDL_itf_dxva2api_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dxva2api_0000_0007_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva2api.idl b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva2api.idl new file mode 100644 index 0000000000000000000000000000000000000000..5ca7bc2e3ee3b8b2390e1c12903ca71a10473156 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva2api.idl @@ -0,0 +1,1039 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// Public Interfaces for DXVA2 +// +// Copyright (c) 1999 - 2005, Microsoft Corporation. All rights reserved. +/////////////////////////////////////////////////////////////////////////////// + +import "unknwn.idl"; + +cpp_quote("#include ") + +cpp_quote("//") +cpp_quote("// The following declarations within the 'if 0' block are dummy typedefs used to make") +cpp_quote("// the evr.idl file build. The actual definitions are contained in d3d9.h") +cpp_quote("//") +cpp_quote("#if 0") + +typedef DWORD IDirect3DDevice9; +typedef DWORD IDirect3DSurface9; + +typedef DWORD D3DFORMAT; +typedef DWORD D3DPOOL; + +cpp_quote("#endif") + +cpp_quote("#ifndef DXVA2_API_DEFINED") +cpp_quote("#define DXVA2_API_DEFINED") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +//============================================================================= +// Description: +// +// Decode guids potentially supported by the underlying device hardware. +// +cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG2_MoComp, 0xe6a9f44b, 0x61b0, 0x4563,0x9e,0xa4,0x63,0xd2,0xa3,0xc6,0xfe,0x66);") +cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG2_IDCT, 0xbf22ad00, 0x03ea, 0x4690,0x80,0x77,0x47,0x33,0x46,0x20,0x9b,0x7e);") +cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG2_VLD, 0xee27417f, 0x5e28, 0x4e65,0xbe,0xea,0x1d,0x26,0xb5,0x08,0xad,0xc9);") +cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG1_VLD, 0x6f3ec719, 0x3735, 0x42cc,0x80,0x63,0x65,0xcc,0x3c,0xb3,0x66,0x16);") +cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG2and1_VLD,0x86695f12, 0x340e, 0x4f04,0x9f,0xd3,0x92,0x53,0xdd,0x32,0x74,0x60);") + +cpp_quote("DEFINE_GUID(DXVA2_ModeH264_A, 0x1b81be64, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeH264_B, 0x1b81be65, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeH264_C, 0x1b81be66, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeH264_D, 0x1b81be67, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeH264_E, 0x1b81be68, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeH264_F, 0x1b81be69, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeH264_VLD_WithFMOASO_NoFGT, 0xd5f04ff9, 0x3418,0x45d8,0x95,0x61,0x32,0xa7,0x6a,0xae,0x2d,0xdd);") + +cpp_quote("DEFINE_GUID(DXVA2_ModeH264_VLD_Stereo_Progressive_NoFGT, 0xd79be8da, 0x0cf1,0x4c81,0xb8,0x2a,0x69,0xa4,0xe2,0x36,0xf4,0x3d);") +cpp_quote("DEFINE_GUID(DXVA2_ModeH264_VLD_Stereo_NoFGT, 0xf9aaccbb, 0xc2b6,0x4cfc,0x87,0x79,0x57,0x07,0xb1,0x76,0x05,0x52);") +cpp_quote("DEFINE_GUID(DXVA2_ModeH264_VLD_Multiview_NoFGT, 0x705b9d82, 0x76cf,0x49d6,0xb7,0xe6,0xac,0x88,0x72,0xdb,0x01,0x3c);") + +cpp_quote("DEFINE_GUID(DXVA2_ModeWMV8_A, 0x1b81be80, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeWMV8_B, 0x1b81be81, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") + +cpp_quote("DEFINE_GUID(DXVA2_ModeWMV9_A, 0x1b81be90, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeWMV9_B, 0x1b81be91, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeWMV9_C, 0x1b81be94, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") + +cpp_quote("DEFINE_GUID(DXVA2_ModeVC1_A, 0x1b81beA0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeVC1_B, 0x1b81beA1, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeVC1_C, 0x1b81beA2, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeVC1_D, 0x1b81beA3, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") +cpp_quote("DEFINE_GUID(DXVA2_ModeVC1_D2010,0x1b81beA4, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") + +cpp_quote("DEFINE_GUID(DXVA2_NoEncrypt, 0x1b81beD0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);") + +cpp_quote("DEFINE_GUID(DXVA2_VideoProcProgressiveDevice, 0x5a54a0c9,0xc7ec,0x4bd9,0x8e,0xde,0xf3,0xc7,0x5d,0xc4,0x39,0x3b);") +cpp_quote("DEFINE_GUID(DXVA2_VideoProcBobDevice, 0x335aa36e,0x7884,0x43a4,0x9c,0x91,0x7f,0x87,0xfa,0xf3,0xe3,0x7e);") +cpp_quote("DEFINE_GUID(DXVA2_VideoProcSoftwareDevice, 0x4553d47f,0xee7e,0x4e3f,0x94,0x75,0xdb,0xf1,0x37,0x6c,0x48,0x10);") + +cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_Simple, 0xefd64d74, 0xc9e8,0x41d7,0xa5,0xe9,0xe9,0xb0,0xe3,0x9f,0xa3,0x19);") +cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_AdvSimple_NoGMC, 0xed418a9f, 0x010d,0x4eda,0x9a,0xe3,0x9a,0x65,0x35,0x8d,0x8d,0x2e);") +cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_AdvSimple_GMC, 0xab998b5b, 0x4258,0x44a9,0x9f,0xeb,0x94,0xe5,0x97,0xa6,0xba,0xae);") + +cpp_quote("DEFINE_GUID(DXVA2_ModeHEVC_VLD_Main, 0x5b11d51b, 0x2f4c,0x4452,0xbc,0xc3,0x09,0xf2,0xa1,0x16,0x0c,0xc0);") +cpp_quote("DEFINE_GUID(DXVA2_ModeHEVC_VLD_Main10, 0x107af0e0, 0xef1a,0x4d19,0xab,0xa8,0x67,0xa1,0x63,0x07,0x3d,0x13);") + +cpp_quote("DEFINE_GUID(DXVA2_ModeVP9_VLD_Profile0, 0x463707f8, 0xa1d0, 0x4585, 0x87, 0x6d, 0x83, 0xaa, 0x6d, 0x60, 0xb8, 0x9e);") +cpp_quote("DEFINE_GUID(DXVA2_ModeVP9_VLD_10bit_Profile2, 0xa4c749ef, 0x6ecf, 0x48aa, 0x84, 0x48, 0x50, 0xa7, 0xa1, 0x16, 0x5f, 0xf7);") +cpp_quote("DEFINE_GUID(DXVA2_ModeVP8_VLD, 0x90b899ea, 0x3a62, 0x4705, 0x88, 0xb3, 0x8d, 0xf0, 0x4b, 0x27, 0x44, 0xe7);") + +cpp_quote("#define DXVA2_ModeMPEG2_MOCOMP DXVA2_ModeMPEG2_MoComp") + +cpp_quote("#define DXVA2_ModeWMV8_PostProc DXVA2_ModeWMV8_A") +cpp_quote("#define DXVA2_ModeWMV8_MoComp DXVA2_ModeWMV8_B") + +cpp_quote("#define DXVA2_ModeWMV9_PostProc DXVA2_ModeWMV9_A") +cpp_quote("#define DXVA2_ModeWMV9_MoComp DXVA2_ModeWMV9_B") +cpp_quote("#define DXVA2_ModeWMV9_IDCT DXVA2_ModeWMV9_C") + +cpp_quote("#define DXVA2_ModeVC1_PostProc DXVA2_ModeVC1_A") +cpp_quote("#define DXVA2_ModeVC1_MoComp DXVA2_ModeVC1_B") +cpp_quote("#define DXVA2_ModeVC1_IDCT DXVA2_ModeVC1_C") +cpp_quote("#define DXVA2_ModeVC1_VLD DXVA2_ModeVC1_D") + +cpp_quote("#define DXVA2_ModeH264_MoComp_NoFGT DXVA2_ModeH264_A") +cpp_quote("#define DXVA2_ModeH264_MoComp_FGT DXVA2_ModeH264_B") +cpp_quote("#define DXVA2_ModeH264_IDCT_NoFGT DXVA2_ModeH264_C") +cpp_quote("#define DXVA2_ModeH264_IDCT_FGT DXVA2_ModeH264_D") +cpp_quote("#define DXVA2_ModeH264_VLD_NoFGT DXVA2_ModeH264_E") +cpp_quote("#define DXVA2_ModeH264_VLD_FGT DXVA2_ModeH264_F") + +//============================================================================= +// Description: +// +// DXVA2-specific error codes. +// +cpp_quote("#define DXVA2_E_NOT_INITIALIZED ((HRESULT)0x80041000L)") +cpp_quote("#define DXVA2_E_NEW_VIDEO_DEVICE ((HRESULT)0x80041001L)") +cpp_quote("#define DXVA2_E_VIDEO_DEVICE_LOCKED ((HRESULT)0x80041002L)") +cpp_quote("#define DXVA2_E_NOT_AVAILABLE ((HRESULT)0x80041003L)") + +//============================================================================= +// Description: +// +// COM objects. +// +cpp_quote("#if defined(_WIN32) && !defined(_NO_COM)") +cpp_quote("DEFINE_GUID(IID_IDirect3DDeviceManager9, 0xa0cade0f,0x06d5,0x4cf4,0xa1,0xc7,0xf3,0xcd,0xd7,0x25,0xaa,0x75);") + +cpp_quote("DEFINE_GUID(IID_IDirectXVideoAccelerationService, 0xfc51a550,0xd5e7,0x11d9,0xaf,0x55,0x00,0x05,0x4e,0x43,0xff,0x02);") +cpp_quote("DEFINE_GUID(IID_IDirectXVideoDecoderService, 0xfc51a551,0xd5e7,0x11d9,0xaf,0x55,0x00,0x05,0x4e,0x43,0xff,0x02);") +cpp_quote("DEFINE_GUID(IID_IDirectXVideoProcessorService, 0xfc51a552,0xd5e7,0x11d9,0xaf,0x55,0x00,0x05,0x4e,0x43,0xff,0x02);") + +cpp_quote("DEFINE_GUID(IID_IDirectXVideoDecoder, 0xf2b0810a,0xfd00,0x43c9,0x91,0x8c,0xdf,0x94,0xe2,0xd8,0xef,0x7d);") +cpp_quote("DEFINE_GUID(IID_IDirectXVideoProcessor, 0x8c3a39f0,0x916e,0x4690,0x80,0x4f,0x4c,0x80,0x01,0x35,0x5d,0x25);") +cpp_quote("DEFINE_GUID(IID_IDirectXVideoMemoryConfiguration, 0xb7f916dd,0xdb3b,0x49c1,0x84,0xd7,0xe4,0x5e,0xf9,0x9e,0xc7,0x26);") +cpp_quote("#endif") + + +//============================================================================= +// Description: +// +// Structures and enums used by the DXVA2 Video Processor API. +// + +cpp_quote("#ifndef MAX_DEINTERLACE_SURFACES") +cpp_quote("#define MAX_DEINTERLACE_SURFACES 32") +cpp_quote("#endif") + +cpp_quote("#ifndef MAX_SUBSTREAMS") +cpp_quote("#define MAX_SUBSTREAMS 15") +cpp_quote("#endif") + +cpp_quote("#pragma warning( push )") +cpp_quote("#pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union") +typedef struct _DXVA2_ExtendedFormat +{ + union { + struct { + UINT SampleFormat : 8; // See DXVA2_SampleFormat + UINT VideoChromaSubsampling : 4; // See DXVA2_VideoChromaSubSampling + UINT NominalRange : 3; // See DXVA2_NominalRange + UINT VideoTransferMatrix : 3; // See DXVA2_VideoTransferMatrix + UINT VideoLighting : 4; // See DXVA2_VideoLighting + UINT VideoPrimaries : 5; // See DXVA2_VideoPrimaries + UINT VideoTransferFunction : 5; // See DXVA2_VideoTransferFunction + }; + UINT value; + }; +} DXVA2_ExtendedFormat; +cpp_quote("#pragma warning( pop )") + +typedef enum _DXVA2_SampleFormat +{ + DXVA2_SampleFormatMask = 0x00FF, // 8 bits used for DXVA Sample format + DXVA2_SampleUnknown = 0, + DXVA2_SampleProgressiveFrame = 2, + DXVA2_SampleFieldInterleavedEvenFirst = 3, + DXVA2_SampleFieldInterleavedOddFirst = 4, + DXVA2_SampleFieldSingleEven = 5, + DXVA2_SampleFieldSingleOdd = 6, + DXVA2_SampleSubStream = 7 +} DXVA2_SampleFormat; + +typedef enum _DXVA2_VideoChromaSubSampling +{ + DXVA2_VideoChromaSubsamplingMask = 0x0F, + DXVA2_VideoChromaSubsampling_Unknown = 0, + + // base values + DXVA2_VideoChromaSubsampling_ProgressiveChroma = 0x8, + DXVA2_VideoChromaSubsampling_Horizontally_Cosited = 0x4, + DXVA2_VideoChromaSubsampling_Vertically_Cosited = 0x2, + DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes = 0x1, + + // 4:2:0 variations + DXVA2_VideoChromaSubsampling_MPEG2 = DXVA2_VideoChromaSubsampling_Horizontally_Cosited | + DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes, + + DXVA2_VideoChromaSubsampling_MPEG1 = DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes, + + DXVA2_VideoChromaSubsampling_DV_PAL = DXVA2_VideoChromaSubsampling_Horizontally_Cosited | + DXVA2_VideoChromaSubsampling_Vertically_Cosited, + // 4:4:4, 4:2:2, 4:1:1 + DXVA2_VideoChromaSubsampling_Cosited = DXVA2_VideoChromaSubsampling_Horizontally_Cosited | + DXVA2_VideoChromaSubsampling_Vertically_Cosited | + DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes, +} DXVA2_VideoChromaSubSampling; + +typedef enum _DXVA2_NominalRange +{ + DXVA2_NominalRangeMask = 0x07, + DXVA2_NominalRange_Unknown = 0, + // older forms + DXVA2_NominalRange_Normal = 1, + DXVA2_NominalRange_Wide = 2, + /// explicit range forms + DXVA2_NominalRange_0_255 = 1, + DXVA2_NominalRange_16_235 = 2, + DXVA2_NominalRange_48_208 = 3 +} DXVA2_NominalRange; + +typedef enum _DXVA2_VideoTransferMatrix +{ + DXVA2_VideoTransferMatrixMask = 0x07, + DXVA2_VideoTransferMatrix_Unknown = 0, + DXVA2_VideoTransferMatrix_BT709 = 1, + DXVA2_VideoTransferMatrix_BT601 = 2, + DXVA2_VideoTransferMatrix_SMPTE240M = 3 +} DXVA2_VideoTransferMatrix; + +typedef enum _DXVA2_VideoLighting +{ + DXVA2_VideoLightingMask = 0x0F, + DXVA2_VideoLighting_Unknown = 0, + DXVA2_VideoLighting_bright = 1, + DXVA2_VideoLighting_office = 2, + DXVA2_VideoLighting_dim = 3, + DXVA2_VideoLighting_dark = 4 +} DXVA2_VideoLighting; + +typedef enum _DXVA2_VideoPrimaries +{ + DXVA2_VideoPrimariesMask = 0x001f, + DXVA2_VideoPrimaries_Unknown = 0, + DXVA2_VideoPrimaries_reserved = 1, + DXVA2_VideoPrimaries_BT709 = 2, + DXVA2_VideoPrimaries_BT470_2_SysM = 3, + DXVA2_VideoPrimaries_BT470_2_SysBG = 4, + DXVA2_VideoPrimaries_SMPTE170M = 5, + DXVA2_VideoPrimaries_SMPTE240M = 6, + DXVA2_VideoPrimaries_EBU3213 = 7, + DXVA2_VideoPrimaries_SMPTE_C = 8 +} DXVA2_VideoPrimaries; + +typedef enum _DXVA2_VideoTransferFunction +{ + DXVA2_VideoTransFuncMask = 0x001f, + DXVA2_VideoTransFunc_Unknown = 0, + DXVA2_VideoTransFunc_10 = 1, + DXVA2_VideoTransFunc_18 = 2, + DXVA2_VideoTransFunc_20 = 3, + DXVA2_VideoTransFunc_22 = 4, + DXVA2_VideoTransFunc_709 = 5, + DXVA2_VideoTransFunc_240M = 6, + DXVA2_VideoTransFunc_sRGB = 7, + DXVA2_VideoTransFunc_28 = 8 +} DXVA2_VideoTransferFunction; + +cpp_quote("//") +cpp_quote("// Deprecated labels - please use the ones in the DXVA2_VideoTransferFunction enum.") +cpp_quote("//") +cpp_quote("#define DXVA2_VideoTransFunc_22_709 DXVA2_VideoTransFunc_709 ") +cpp_quote("#define DXVA2_VideoTransFunc_22_240M DXVA2_VideoTransFunc_240M ") +cpp_quote("#define DXVA2_VideoTransFunc_22_8bit_sRGB DXVA2_VideoTransFunc_sRGB ") + +typedef struct _DXVA2_Frequency +{ + UINT Numerator; + UINT Denominator; +} DXVA2_Frequency; + +typedef struct _DXVA2_VideoDesc +{ + UINT SampleWidth; + UINT SampleHeight; + DXVA2_ExtendedFormat SampleFormat; + D3DFORMAT Format; + DXVA2_Frequency InputSampleFreq; + DXVA2_Frequency OutputFrameFreq; + UINT UABProtectionLevel; + UINT Reserved; +} DXVA2_VideoDesc; + +enum +{ + DXVA2_DeinterlaceTech_Unknown = 0x0000, + DXVA2_DeinterlaceTech_BOBLineReplicate = 0x0001, + DXVA2_DeinterlaceTech_BOBVerticalStretch = 0x0002, + DXVA2_DeinterlaceTech_BOBVerticalStretch4Tap = 0x0004, + DXVA2_DeinterlaceTech_MedianFiltering = 0x0008, + DXVA2_DeinterlaceTech_EdgeFiltering = 0x0010, + DXVA2_DeinterlaceTech_FieldAdaptive = 0x0020, + DXVA2_DeinterlaceTech_PixelAdaptive = 0x0040, + DXVA2_DeinterlaceTech_MotionVectorSteered = 0x0080, + DXVA2_DeinterlaceTech_InverseTelecine = 0x0100, + DXVA2_DeinterlaceTech_Mask = 0x01FF +}; + +enum +{ + DXVA2_NoiseFilterLumaLevel = 1, + DXVA2_NoiseFilterLumaThreshold = 2, + DXVA2_NoiseFilterLumaRadius = 3, + DXVA2_NoiseFilterChromaLevel = 4, + DXVA2_NoiseFilterChromaThreshold = 5, + DXVA2_NoiseFilterChromaRadius = 6, + DXVA2_DetailFilterLumaLevel = 7, + DXVA2_DetailFilterLumaThreshold = 8, + DXVA2_DetailFilterLumaRadius = 9, + DXVA2_DetailFilterChromaLevel = 10, + DXVA2_DetailFilterChromaThreshold = 11, + DXVA2_DetailFilterChromaRadius = 12 +}; + +enum +{ + DXVA2_NoiseFilterTech_Unsupported = 0, + DXVA2_NoiseFilterTech_Unknown = 0x0001, + DXVA2_NoiseFilterTech_Median = 0x0002, + DXVA2_NoiseFilterTech_Temporal = 0x0004, + DXVA2_NoiseFilterTech_BlockNoise = 0x0008, + DXVA2_NoiseFilterTech_MosquitoNoise = 0x0010, + DXVA2_NoiseFilterTech_Mask = 0x001F +}; + +enum +{ + DXVA2_DetailFilterTech_Unsupported = 0, + DXVA2_DetailFilterTech_Unknown = 0x0001, + DXVA2_DetailFilterTech_Edge = 0x0002, + DXVA2_DetailFilterTech_Sharpening = 0x0004, + DXVA2_DetailFilterTech_Mask = 0x0007 +}; + +enum +{ + DXVA2_ProcAmp_None = 0x0000, + DXVA2_ProcAmp_Brightness = 0x0001, + DXVA2_ProcAmp_Contrast = 0x0002, + DXVA2_ProcAmp_Hue = 0x0004, + DXVA2_ProcAmp_Saturation = 0x0008, + DXVA2_ProcAmp_Mask = 0x000F +}; + +enum +{ + DXVA2_VideoProcess_None = 0x0000, + DXVA2_VideoProcess_YUV2RGB = 0x0001, + DXVA2_VideoProcess_StretchX = 0x0002, + DXVA2_VideoProcess_StretchY = 0x0004, + DXVA2_VideoProcess_AlphaBlend = 0x0008, + DXVA2_VideoProcess_SubRects = 0x0010, + DXVA2_VideoProcess_SubStreams = 0x0020, + DXVA2_VideoProcess_SubStreamsExtended = 0x0040, + DXVA2_VideoProcess_YUV2RGBExtended = 0x0080, + DXVA2_VideoProcess_AlphaBlendExtended = 0x0100, + DXVA2_VideoProcess_Constriction = 0x0200, + DXVA2_VideoProcess_NoiseFilter = 0x0400, + DXVA2_VideoProcess_DetailFilter = 0x0800, + DXVA2_VideoProcess_PlanarAlpha = 0x1000, + DXVA2_VideoProcess_LinearScaling = 0x2000, + DXVA2_VideoProcess_GammaCompensated = 0x4000, + DXVA2_VideoProcess_MaintainsOriginalFieldData = 0x8000, + DXVA2_VideoProcess_Mask = 0xFFFF +}; + +enum +{ + DXVA2_VPDev_HardwareDevice = 0x0001, + DXVA2_VPDev_EmulatedDXVA1 = 0x0002, + DXVA2_VPDev_SoftwareDevice = 0x0004, + DXVA2_VPDev_Mask = 0x0007 +}; + +enum +{ + DXVA2_SampleData_RFF = 0x0001, + DXVA2_SampleData_TFF = 0x0002, + DXVA2_SampleData_RFF_TFF_Present = 0x0004, + DXVA2_SampleData_Mask = 0xFFFF +}; + +enum +{ + DXVA2_DestData_RFF = 0x0001, + DXVA2_DestData_TFF = 0x0002, + DXVA2_DestData_RFF_TFF_Present = 0x0004, + DXVA2_DestData_Mask = 0xFFFF +}; + +typedef struct _DXVA2_VideoProcessorCaps +{ + UINT DeviceCaps; // see DXVA2_VPDev_Xxxx + D3DPOOL InputPool; + UINT NumForwardRefSamples; + UINT NumBackwardRefSamples; + UINT Reserved; + UINT DeinterlaceTechnology; // see DXVA2_DeinterlaceTech_Xxxx + UINT ProcAmpControlCaps; // see DXVA2_ProcAmp_Xxxx + UINT VideoProcessorOperations; // see DXVA2_VideoProcess_Xxxx + UINT NoiseFilterTechnology; // see DXVA2_NoiseFilterTech_Xxxx + UINT DetailFilterTechnology; // see DXVA2_DetailFilterTech_Xxxx +} DXVA2_VideoProcessorCaps; + +cpp_quote("#ifdef __midl") +typedef LONG DXVA2_Fixed32; +cpp_quote("#else") +cpp_quote("#pragma warning( push )") +cpp_quote("#pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union") +cpp_quote("typedef struct _DXVA2_Fixed32") +cpp_quote("{") +cpp_quote(" union {") +cpp_quote(" struct {") +cpp_quote(" USHORT Fraction;") +cpp_quote(" SHORT Value;") +cpp_quote(" };") +cpp_quote(" LONG ll;") +cpp_quote(" };") +cpp_quote("} DXVA2_Fixed32;") +cpp_quote("#pragma warning( pop )") +cpp_quote("#endif") + +typedef struct _DXVA2_AYUVSample8 +{ + UCHAR Cr; // V + UCHAR Cb; // U + UCHAR Y; + UCHAR Alpha; +} DXVA2_AYUVSample8; + +typedef struct _DXVA2_AYUVSample16 +{ + USHORT Cr; // V + USHORT Cb; // U + USHORT Y; + USHORT Alpha; +} DXVA2_AYUVSample16; + +typedef LONGLONG REFERENCE_TIME; + +cpp_quote("#if defined(_D3D9_H_) || defined(_d3d9P_H_)") + +typedef struct _DXVA2_VideoSample +{ + REFERENCE_TIME Start; + REFERENCE_TIME End; + DXVA2_ExtendedFormat SampleFormat; + IDirect3DSurface9* SrcSurface; + RECT SrcRect; + RECT DstRect; + DXVA2_AYUVSample8 Pal[16]; // Palette used with AI44 surface types + DXVA2_Fixed32 PlanarAlpha; + DWORD SampleData; // Sample metadata +} DXVA2_VideoSample; + +cpp_quote("#endif // _D3D9_H_") + +typedef struct _DXVA2_ValueRange +{ + DXVA2_Fixed32 MinValue; + DXVA2_Fixed32 MaxValue; + DXVA2_Fixed32 DefaultValue; + DXVA2_Fixed32 StepSize; +} DXVA2_ValueRange; + +typedef struct _DXVA2_ProcAmpValues +{ + DXVA2_Fixed32 Brightness; + DXVA2_Fixed32 Contrast; + DXVA2_Fixed32 Hue; + DXVA2_Fixed32 Saturation; +} DXVA2_ProcAmpValues; + +typedef struct _DXVA2_FilterValues { + DXVA2_Fixed32 Level; + DXVA2_Fixed32 Threshold; + DXVA2_Fixed32 Radius; +} DXVA2_FilterValues; + +typedef struct _DXVA2_VideoProcessBltParams +{ + REFERENCE_TIME TargetFrame; + RECT TargetRect; + SIZE ConstrictionSize; + UINT StreamingFlags; + DXVA2_AYUVSample16 BackgroundColor; + DXVA2_ExtendedFormat DestFormat; + DXVA2_ProcAmpValues ProcAmpValues; + DXVA2_Fixed32 Alpha; + DXVA2_FilterValues NoiseFilterLuma; + DXVA2_FilterValues NoiseFilterChroma; + DXVA2_FilterValues DetailFilterLuma; + DXVA2_FilterValues DetailFilterChroma; + DWORD DestData; +} DXVA2_VideoProcessBltParams; + + +//============================================================================= +// Description: +// +// Structures and enums used by the DXVA2 Video Decoding API. +// + +// Compressed buffer types. +enum +{ + DXVA2_PictureParametersBufferType = 0, + DXVA2_MacroBlockControlBufferType = 1, + DXVA2_ResidualDifferenceBufferType = 2, + DXVA2_DeblockingControlBufferType = 3, + DXVA2_InverseQuantizationMatrixBufferType = 4, + DXVA2_SliceControlBufferType = 5, + DXVA2_BitStreamDateBufferType = 6, + DXVA2_MotionVectorBuffer = 7, + DXVA2_FilmGrainBuffer = 8 +}; + +// Uncompressed buffer types +enum +{ + DXVA2_VideoDecoderRenderTarget = 0, + DXVA2_VideoProcessorRenderTarget = 1, + DXVA2_VideoSoftwareRenderTarget = 2 +}; + +typedef struct _DXVA2_ConfigPictureDecode +{ + GUID guidConfigBitstreamEncryption; + GUID guidConfigMBcontrolEncryption; + GUID guidConfigResidDiffEncryption; + UINT ConfigBitstreamRaw; + UINT ConfigMBcontrolRasterOrder; + UINT ConfigResidDiffHost; + UINT ConfigSpatialResid8; + UINT ConfigResid8Subtraction; + UINT ConfigSpatialHost8or9Clipping; + UINT ConfigSpatialResidInterleaved; + UINT ConfigIntraResidUnsigned; + UINT ConfigResidDiffAccelerator; + UINT ConfigHostInverseScan; + UINT ConfigSpecificIDCT; + UINT Config4GroupedCoefs; + USHORT ConfigMinRenderTargetBuffCount; + USHORT ConfigDecoderSpecific; +} DXVA2_ConfigPictureDecode; + +typedef struct _DXVA2_DecodeBufferDesc +{ + DWORD CompressedBufferType; + UINT BufferIndex; // reserved + UINT DataOffset; + UINT DataSize; + UINT FirstMBaddress; + UINT NumMBsInBuffer; + UINT Width; // reserved + UINT Height; // reserved + UINT Stride; // reserved + UINT ReservedBits; + PVOID pvPVPState; +} DXVA2_DecodeBufferDesc; + +cpp_quote("// The value in pvPVPState depends on the type of crypo used. For ") +cpp_quote("// D3DCRYPTOTYPE_AES128_CTR, pvPState points to the following structure:") +cpp_quote(" ") + +typedef struct _DXVA2_AES_CTR_IV +{ + UINT64 IV; // Big-Endian IV + UINT64 Count; // Big-Endian Block Count +} DXVA2_AES_CTR_IV; + +typedef struct _DXVA2_DecodeExtensionData +{ + UINT Function; + PVOID pPrivateInputData; + UINT PrivateInputDataSize; + PVOID pPrivateOutputData; + UINT PrivateOutputDataSize; +} DXVA2_DecodeExtensionData; + +cpp_quote("// DXVA2_DECODE_GET_DRIVER_HANDLE is an extension function that allows the ") +cpp_quote("// driver to return a handle for the DXVA2 decode device that can be used to") +cpp_quote("// associate it with a IDirect3DCryptoSession9 interface. When this function") +cpp_quote("// is used:") +cpp_quote("// pPrivateInputData = NULL") +cpp_quote("// pPrivateInputDataSize = 0") +cpp_quote("// pPrivateOutputData = HANDLE*") +cpp_quote("// pPrivateOutputDataSize = sizeof(HANDLE)") +cpp_quote("#define DXVA2_DECODE_GET_DRIVER_HANDLE 0x725") +cpp_quote(" ") +cpp_quote("// DXVA2_DECODE_SPECIFY_ENCRYPTED_BLOCKS is an extension function that that allows ") +cpp_quote("// the decoder to specify which portions of the compressed buffers are encrypted. ") +cpp_quote("// If this fucntion is not used to specify this information, it is assumed that ") +cpp_quote("// the entire buffer is encrypted. ") +cpp_quote("// pPrivateInputData = D3DENCRYPTED_BLOCK_INFO*; ") +cpp_quote("// PrivateInputDataSize = sizeof(D3DENCRYPTED_BLOCK_INFO); ") +cpp_quote("// pPrivateOutputData = NULL; ") +cpp_quote("// PrivateOutputDataSize = 0; ") +cpp_quote("#define DXVA2_DECODE_SPECIFY_ENCRYPTED_BLOCKS 0x724 ") +cpp_quote(" ") + +typedef struct _DXVA2_DecodeExecuteParams +{ + UINT NumCompBuffers; + DXVA2_DecodeBufferDesc* pCompressedBuffers; + DXVA2_DecodeExtensionData* pExtensionData; +} DXVA2_DecodeExecuteParams; + + +cpp_quote("#if defined(_D3D9_H_) || defined(_d3d9P_H_)") + +//============================================================================= +// Description: +// +// Public interfaces supported by the DXVA2 API. +// +interface IDirect3DDeviceManager9; +interface IDirectXVideoAccelerationService; +interface IDirectXVideoDecoderService; +interface IDirectXVideoProcessorService; +interface IDirectXVideoDecoder; +interface IDirectXVideoProcessor; + +//============================================================================= +// Description: +// +// TBD. +// +[ + object, + uuid(a0cade0f-06d5-4cf4-a1c7-f3cdd725aa75), + helpstring("IDirect3DDeviceManager9 Interface"), + local +] +interface IDirect3DDeviceManager9 : IUnknown +{ + HRESULT ResetDevice( + [in, annotation("_In_")] IDirect3DDevice9* pDevice, + [in, annotation("_In_")] UINT resetToken + ); + + HRESULT OpenDeviceHandle( + [out, annotation("_Out_")] HANDLE* phDevice + ); + + HRESULT CloseDeviceHandle( + [in, annotation("_In_")] HANDLE hDevice + ); + + HRESULT TestDevice( + [in, annotation("_In_")] HANDLE hDevice + ); + + HRESULT LockDevice( + [in, annotation("_In_")] HANDLE hDevice, + [out, annotation("_Outptr_")] IDirect3DDevice9** ppDevice, + [in, annotation("_In_")] BOOL fBlock + ); + + HRESULT UnlockDevice( + [in, annotation("_In_")] HANDLE hDevice, + [in, annotation("_In_")] BOOL fSaveState + ); + + HRESULT GetVideoService( + [in, annotation("_In_")] HANDLE hDevice, + [in, annotation("_In_")] REFIID riid, + [out, annotation("_Outptr_")] void** ppService + ); +}; + +//============================================================================= +// Description: +// +// TBD. +// +[ + object, + uuid(fc51a550-d5e7-11d9-af55-00054e43ff02), + helpstring("IDirectXVideoAccelerationService Interface"), + local +] +interface IDirectXVideoAccelerationService : IUnknown +{ + HRESULT CreateSurface( + [in, annotation("_In_")] UINT Width, + [in, annotation("_In_")] UINT Height, + [in, annotation("_In_")] UINT BackBuffers, + [in, annotation("_In_")] D3DFORMAT Format, + [in, annotation("_In_")] D3DPOOL Pool, + [in, annotation("_In_")] DWORD Usage, + [in, annotation("_In_")] DWORD DxvaType, // see DXVA2_VideoXxxxRenderTarget + [out, size_is(BackBuffers+1), annotation("_Out_writes_(BackBuffers+1)")] IDirect3DSurface9** ppSurface, + [in, out, annotation("_Inout_opt_")] HANDLE* pSharedHandle + ); +}; + +//============================================================================= +// Description: +// +// TBD. +// +[ + object, + uuid(fc51a551-d5e7-11d9-af55-00054e43ff02), + helpstring("IDirectXVideoDecoderService Interface"), + local +] +interface IDirectXVideoDecoderService : IDirectXVideoAccelerationService +{ + HRESULT GetDecoderDeviceGuids( + [out, annotation("_Out_")] UINT* pCount, + [out, unique, size_is(*pCount), annotation("_Outptr_result_buffer_maybenull_(*pCount)")] GUID** pGuids + ); + + HRESULT GetDecoderRenderTargets( + [in, annotation("_In_")] REFGUID Guid, + [out, annotation("_Out_")] UINT* pCount, + [out, unique, size_is(*pCount), annotation("_Outptr_result_buffer_maybenull_(*pCount)")] D3DFORMAT** pFormats + ); + + HRESULT GetDecoderConfigurations( + [in, annotation("_In_")] REFGUID Guid, + [in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc, + [in, annotation("_Reserved_")] void* pReserved, + [out, annotation("_Out_")] UINT* pCount, + [out, unique, size_is(*pCount), annotation("_Outptr_result_buffer_maybenull_(*pCount)")] DXVA2_ConfigPictureDecode** ppConfigs + ); + + HRESULT CreateVideoDecoder( + [in, annotation("_In_")] REFGUID Guid, + [in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc, + [in, annotation("_In_")] const DXVA2_ConfigPictureDecode* pConfig, + [in, size_is(NumRenderTargets), annotation("_In_reads_(NumRenderTargets)")] IDirect3DSurface9** ppDecoderRenderTargets, + [in, annotation("_In_")] UINT NumRenderTargets, + [out, annotation("_Outptr_")] IDirectXVideoDecoder** ppDecode + ); +}; + +//============================================================================= +// Description: +// +// TBD. +// +[ + object, + uuid(fc51a552-d5e7-11d9-af55-00054e43ff02), + helpstring("IDirectXVideoProcessorService Interface"), + local +] +interface IDirectXVideoProcessorService : IDirectXVideoAccelerationService +{ + HRESULT RegisterVideoProcessorSoftwareDevice( + [in, annotation("_In_")] void* pCallbacks + ); + + HRESULT GetVideoProcessorDeviceGuids( + [in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc, + [out, annotation("_Out_")] UINT* pCount, + [out, unique, size_is(*pCount), annotation("_Outptr_result_buffer_maybenull_(*pCount)")] GUID** pGuids + ); + + HRESULT GetVideoProcessorRenderTargets( + [in, annotation("_In_")] REFGUID VideoProcDeviceGuid, + [in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc, + [out, annotation("_Out_")] UINT* pCount, + [out, unique, size_is(*pCount), annotation("_Outptr_result_buffer_maybenull_(*pCount)")] D3DFORMAT** pFormats + ); + + HRESULT GetVideoProcessorSubStreamFormats( + [in, annotation("_In_")] REFGUID VideoProcDeviceGuid, + [in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc, + [in, annotation("_In_")] D3DFORMAT RenderTargetFormat, + [out, annotation("_Out_")] UINT* pCount, + [out, unique, size_is(*pCount), annotation("_Outptr_result_buffer_maybenull_(*pCount)")] D3DFORMAT** pFormats + ); + + HRESULT GetVideoProcessorCaps( + [in, annotation("_In_")] REFGUID VideoProcDeviceGuid, + [in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc, + [in, annotation("_In_")] D3DFORMAT RenderTargetFormat, + [out, annotation("_Out_")] DXVA2_VideoProcessorCaps* pCaps + ); + + HRESULT GetProcAmpRange( + [in, annotation("_In_")] REFGUID VideoProcDeviceGuid, + [in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc, + [in, annotation("_In_")] D3DFORMAT RenderTargetFormat, + [in, annotation("_In_")] UINT ProcAmpCap, + [out, annotation("_Out_")] DXVA2_ValueRange* pRange + ); + + HRESULT GetFilterPropertyRange( + [in, annotation("_In_")] REFGUID VideoProcDeviceGuid, + [in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc, + [in, annotation("_In_")] D3DFORMAT RenderTargetFormat, + [in, annotation("_In_")] UINT FilterSetting, + [out, annotation("_Out_")] DXVA2_ValueRange* pRange + ); + + HRESULT CreateVideoProcessor( + [in, annotation("_In_")] REFGUID VideoProcDeviceGuid, + [in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc, + [in, annotation("_In_")] D3DFORMAT RenderTargetFormat, + [in, annotation("_In_")] UINT MaxNumSubStreams, + [out, annotation("_Outptr_")] IDirectXVideoProcessor** ppVidProcess + ); +}; + +//============================================================================= +// Description: +// +// TBD. +// +[ + object, + uuid(f2b0810a-fd00-43c9-918c-df94e2d8ef7d), + helpstring("IDirectXVideoDecoder Interface"), + local +] +interface IDirectXVideoDecoder : IUnknown +{ + HRESULT GetVideoDecoderService( + [out, annotation("_Outptr_")] IDirectXVideoDecoderService** ppService + ); + + HRESULT GetCreationParameters( + [out, annotation("_Out_opt_")] GUID* pDeviceGuid, + [out, annotation("_Out_opt_")] DXVA2_VideoDesc* pVideoDesc, + [out, annotation("_Out_opt_")] DXVA2_ConfigPictureDecode* pConfig, + [out, unique, size_is(*pNumSurfaces), annotation("_Out_writes_(*pNumSurfaces)")] IDirect3DSurface9*** pDecoderRenderTargets, + [out, annotation("_Out_opt_")] UINT* pNumSurfaces + ); + + HRESULT GetBuffer( + [in, annotation("_In_")] UINT BufferType, + [out, annotation("_Out_")] void** ppBuffer, + [out, annotation("_Out_")] UINT* pBufferSize + ); + + HRESULT ReleaseBuffer( + [in, annotation("_In_")] UINT BufferType + ); + + HRESULT BeginFrame( + [in, annotation("_In_")] IDirect3DSurface9* pRenderTarget, + [in, annotation("_In_opt_")] void* pvPVPData + ); + + HRESULT EndFrame( + [out, annotation("_Inout_opt_")] HANDLE* pHandleComplete // reserved + ); + + HRESULT Execute( + [in, annotation("_In_")] const DXVA2_DecodeExecuteParams* pExecuteParams + ); +}; + + +//============================================================================= +// Description: +// +// TBD. +// +[ + object, + uuid(8c3a39f0-916e-4690-804f-4c8001355d25), + helpstring("IDirectXVideoProcessor Interface"), + local +] +interface IDirectXVideoProcessor : IUnknown +{ + HRESULT GetVideoProcessorService( + [out, annotation("_Outptr_")] IDirectXVideoProcessorService** ppService + ); + + HRESULT GetCreationParameters( + [out, annotation("_Out_opt_")] GUID* pDeviceGuid, + [out, annotation("_Out_opt_")] DXVA2_VideoDesc* pVideoDesc, + [out, annotation("_Out_opt_")] D3DFORMAT* pRenderTargetFormat, + [out, annotation("_Out_opt_")] UINT* pMaxNumSubStreams + ); + + HRESULT GetVideoProcessorCaps( + [out, annotation("_Out_")] DXVA2_VideoProcessorCaps* pCaps + ); + + HRESULT GetProcAmpRange( + [in, annotation("_In_")] UINT ProcAmpCap, + [out, annotation("_Out_")] DXVA2_ValueRange* pRange + ); + + HRESULT GetFilterPropertyRange( + [in, annotation("_In_")] UINT FilterSetting, + [out, annotation("_Out_")] DXVA2_ValueRange* pRange + ); + + HRESULT VideoProcessBlt( + [in, annotation("_In_")] IDirect3DSurface9* pRenderTarget, + [in, annotation("_In_")] const DXVA2_VideoProcessBltParams* pBltParams, + [in, size_is(NumSamples), annotation("_In_reads_(NumSamples)")] const DXVA2_VideoSample* pSamples, + [in, annotation("_In_")] UINT NumSamples, + [out, annotation("_Inout_opt_")] HANDLE* pHandleComplete // reserved + ); +}; + +typedef enum +{ + DXVA2_SurfaceType_DecoderRenderTarget = 0, + DXVA2_SurfaceType_ProcessorRenderTarget = 1, + DXVA2_SurfaceType_D3DRenderTargetTexture = 2 +} DXVA2_SurfaceType; + +//============================================================================= +// Description: +// +// IDirectXVideoMemoryConfiguration is used by video decoders +// and transforms to agree the type of video memory to be allocated +// for uncompressed surfaces used as inputs or outputs +// +// For example, a video decoder will acquire a service implementing +// this interface through a service provider such as the Enhanced Video +// renderer. The decoder enumerates the service's preferred surface types +// and chooses the first acceptable one. Then the decoder creates output +// surfaces of this type and passes the results of the decode (often created +// using DirectX Video Acceleration Services) as its output +// +// This interface is used along with other information, for example pixel +// format information and required buffer queue depth to determine the +// surfaces to allocate +// +// There is no way to 'unset' the type of surface to use. Other context +// in the contract between objects may invalidate the type selected. For example +// in DirectShow disconnecting 2 filters invalidates any prior agreement between +// the two filters about the surface type to use for media samples. +// +[ + object, + uuid(b7f916dd-db3b-49c1-84d7-e45ef99ec726), + helpstring("IDirectXVideoMemoryConfiguration Interface"), + local +] +interface IDirectXVideoMemoryConfiguration : IUnknown +{ + //============================================================================= + // Description: + // Returns acceptable surface types in preference order starting at index 0 + // for the most preferred surface type + // + // Parameters: + // dwTypeIndex - 0-based index saying which preferred surface type to + // return + // pdwType - Surface type returned for that index + // + // Return Values: + // + // S_OK - returned valid acceptable type + // Failure code - dwIndex beyond range of acceptable surface type indexes + // + + HRESULT GetAvailableSurfaceTypeByIndex( + [in, annotation("_In_")] DWORD dwTypeIndex, + [out, annotation("_Out_")] DXVA2_SurfaceType *pdwType + ); + + //============================================================================== + // Description: + // Selects the surface type to be used + // + // + // Parameters: + // dwType - Type to be used + // + // Return Values: + // S_OK - surface type accepted + // Failure code - surface type rejected + // + + HRESULT SetSurfaceType( + [in, annotation("_In_")] DXVA2_SurfaceType dwType + ); +}; + +////////////////////////////////////////////////////////////////////////////// +////////////////////////////////////////////////////////////////////////////// + +cpp_quote("STDAPI DXVA2CreateDirect3DDeviceManager9(") +cpp_quote(" _Out_ UINT* pResetToken,") +cpp_quote(" _Outptr_ IDirect3DDeviceManager9** ppDeviceManager") +cpp_quote(" );") + +cpp_quote("STDAPI DXVA2CreateVideoService(") +cpp_quote(" _In_ IDirect3DDevice9* pDD,") +cpp_quote(" _In_ REFIID riid,") +cpp_quote(" _Outptr_ void** ppService") +cpp_quote(" );") + +cpp_quote("#endif // _D3D9_H_") + +//============================================================================= +// Description: +// +// DXVA2_Fixed32 helper inline functions. +// + +cpp_quote("__inline DXVA2_Fixed32 DXVA2FloatToFixed(_In_ const float _float_)") +cpp_quote("{") +cpp_quote(" DXVA2_Fixed32 _fixed_;") +cpp_quote(" _fixed_.Fraction = LOWORD(_float_ * 0x10000);") +cpp_quote(" _fixed_.Value = HIWORD(_float_ * 0x10000);") +cpp_quote(" return _fixed_;") +cpp_quote("}") + +cpp_quote("__inline float DXVA2FixedToFloat(_In_ const DXVA2_Fixed32 _fixed_)") +cpp_quote("{") +cpp_quote(" return (FLOAT)_fixed_.Value + (FLOAT)_fixed_.Fraction / 0x10000;") +cpp_quote("}") + +cpp_quote("__inline const DXVA2_Fixed32 DXVA2_Fixed32TransparentAlpha()") +cpp_quote("{") +cpp_quote(" DXVA2_Fixed32 _fixed_ = {0, 0};") +cpp_quote(" return _fixed_;") +cpp_quote("}") + +cpp_quote("__inline const DXVA2_Fixed32 DXVA2_Fixed32OpaqueAlpha()") +cpp_quote("{") +cpp_quote(" DXVA2_Fixed32 _fixed_ = {0, 1};") +cpp_quote(" return _fixed_;") +cpp_quote("}") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +cpp_quote("#endif") diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva2swdev.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva2swdev.h new file mode 100644 index 0000000000000000000000000000000000000000..3d7d99259195ba2bf31fc90910858d144aabd3c8 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva2swdev.h @@ -0,0 +1,183 @@ +//------------------------------------------------------------------------------ +// File: dxva2SWDev.h +// +// Desc: DirectX Video Acceleration 2 header file for software video +// processing devices +// +// Copyright (c) 1999 - 2002, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + +#ifndef __inc_dxva2SWDev_h +#define __inc_dxva2SWDev_h + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifdef __cplusplus +extern "C" { +#endif + +typedef enum _DXVA2_SampleFlags +{ + DXVA2_SampleFlag_Palette_Changed = 0x00000001, + DXVA2_SampleFlag_SrcRect_Changed = 0x00000002, + DXVA2_SampleFlag_DstRect_Changed = 0x00000004, + DXVA2_SampleFlag_ColorData_Changed = 0x00000008, + DXVA2_SampleFlag_PlanarAlpha_Changed = 0x00000010, + DXVA2_SampleFlag_RFF = 0x00010000, + DXVA2_SampleFlag_TFF = 0x00020000, + DXVA2_SampleFlag_RFF_TFF_Present = 0x00040000, + DXVA2_SampleFlagsMask = 0xFFFF001F +} DXVA2_SampleFlags; + +typedef enum _DXVA2_DestinationFlags +{ + DXVA2_DestinationFlag_Background_Changed = 0x00000001, + DXVA2_DestinationFlag_TargetRect_Changed = 0x00000002, + DXVA2_DestinationFlag_ColorData_Changed = 0x00000004, + DXVA2_DestinationFlag_Alpha_Changed = 0x00000008, + DXVA2_DestinationFlag_RFF = 0x00010000, + DXVA2_DestinationFlag_TFF = 0x00020000, + DXVA2_DestinationFlag_RFF_TFF_Present = 0x00040000, + DXVA2_DestinationFlagMask = 0xFFFF000F +} DXVA2_DestinationFlags; + +typedef struct _DXVA2_VIDEOSAMPLE +{ + REFERENCE_TIME Start; + REFERENCE_TIME End; + DXVA2_ExtendedFormat SampleFormat; + UINT SampleFlags; + VOID* SrcResource; + RECT SrcRect; + RECT DstRect; + DXVA2_AYUVSample8 Pal[16]; + DXVA2_Fixed32 PlanarAlpha; +} DXVA2_VIDEOSAMPLE; + +typedef struct _DXVA2_VIDEOPROCESSBLT +{ + REFERENCE_TIME TargetFrame; + RECT TargetRect; + SIZE ConstrictionSize; + UINT StreamingFlags; + DXVA2_AYUVSample16 BackgroundColor; + DXVA2_ExtendedFormat DestFormat; + UINT DestFlags; + DXVA2_ProcAmpValues ProcAmpValues; + DXVA2_Fixed32 Alpha; + DXVA2_FilterValues NoiseFilterLuma; + DXVA2_FilterValues NoiseFilterChroma; + DXVA2_FilterValues DetailFilterLuma; + DXVA2_FilterValues DetailFilterChroma; + DXVA2_VIDEOSAMPLE* pSrcSurfaces; + UINT NumSrcSurfaces; +} DXVA2_VIDEOPROCESSBLT; + +#if defined(_D3D9_H_) || defined(_d3d9P_H_) + +typedef HRESULT (CALLBACK* PDXVA2SW_GETVIDEOPROCESSORRENDERTARGETCOUNT)( + _In_ const DXVA2_VideoDesc* pVideoDesc, + _Out_ UINT* pCount + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_GETVIDEOPROCESSORRENDERTARGETS)( + _In_ const DXVA2_VideoDesc* pVideoDesc, + _In_ UINT Count, + _Out_writes_(Count) D3DFORMAT* pFormats + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_GETVIDEOPROCESSORCAPS)( + _In_ const DXVA2_VideoDesc* pVideoDesc, + _In_ D3DFORMAT RenderTargetFormat, + _Out_ DXVA2_VideoProcessorCaps* pCaps + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_GETVIDEOPROCESSORSUBSTREAMFORMATCOUNT)( + _In_ const DXVA2_VideoDesc* pVideoDesc, + _In_ D3DFORMAT RenderTargetFormat, + _Out_ UINT* pCount + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_GETVIDEOPROCESSORSUBSTREAMFORMATS)( + _In_ const DXVA2_VideoDesc* pVideoDesc, + _In_ D3DFORMAT RenderTargetFormat, + _In_ UINT Count, + _Out_writes_(Count) D3DFORMAT* pFormats + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_GETPROCAMPRANGE)( + _In_ const DXVA2_VideoDesc* pVideoDesc, + _In_ D3DFORMAT RenderTargetFormat, + _In_ UINT ProcAmpCap, + _Out_ DXVA2_ValueRange* pRange + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_GETFILTERPROPERTYRANGE)( + _In_ const DXVA2_VideoDesc* pVideoDesc, + _In_ D3DFORMAT RenderTargetFormat, + _In_ UINT FilterSetting, + _Out_ DXVA2_ValueRange* pRange + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_CREATEVIDEOPROCESSDEVICE)( + _In_ IDirect3DDevice9* pD3DD9, + _In_ const DXVA2_VideoDesc* pVideoDesc, + _In_ D3DFORMAT RenderTargetFormat, + _In_ UINT MaxSubStreams, + _Out_ HANDLE* phDevice + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_DESTROYVIDEOPROCESSDEVICE)( + _In_ HANDLE hDevice + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_VIDEOPROCESSBEGINFRAME)( + _In_ HANDLE hDevice + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_VIDEOPROCESSENDFRAME)( + _In_ HANDLE hDevice, + _Inout_opt_ HANDLE* pHandleComplete + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_VIDEOPROCESSSETRENDERTARGET)( + _In_ HANDLE hDevice, + _In_ IDirect3DSurface9* pRenderTarget + ); + +typedef HRESULT (CALLBACK* PDXVA2SW_VIDEOPROCESSBLT)( + _In_ HANDLE hDevice, + _In_ const DXVA2_VIDEOPROCESSBLT* pBlt + ); + +typedef struct _DXVA2SW_CALLBACKS +{ + UINT Size; + PDXVA2SW_GETVIDEOPROCESSORRENDERTARGETCOUNT GetVideoProcessorRenderTargetCount; + PDXVA2SW_GETVIDEOPROCESSORRENDERTARGETS GetVideoProcessorRenderTargets; + PDXVA2SW_GETVIDEOPROCESSORCAPS GetVideoProcessorCaps; + PDXVA2SW_GETVIDEOPROCESSORSUBSTREAMFORMATCOUNT GetVideoProcessorSubStreamFormatCount; + PDXVA2SW_GETVIDEOPROCESSORSUBSTREAMFORMATS GetVideoProcessorSubStreamFormats; + PDXVA2SW_GETPROCAMPRANGE GetProcAmpRange; + PDXVA2SW_GETFILTERPROPERTYRANGE GetFilterPropertyRange; + PDXVA2SW_CREATEVIDEOPROCESSDEVICE CreateVideoProcessDevice; + PDXVA2SW_DESTROYVIDEOPROCESSDEVICE DestroyVideoProcessDevice; + PDXVA2SW_VIDEOPROCESSBEGINFRAME VideoProcessBeginFrame; + PDXVA2SW_VIDEOPROCESSENDFRAME VideoProcessEndFrame; + PDXVA2SW_VIDEOPROCESSSETRENDERTARGET VideoProcessSetRenderTarget; + PDXVA2SW_VIDEOPROCESSBLT VideoProcessBlt; +} DXVA2SW_CALLBACKS, *PDXVA2SW_CALLBACKS; + +#endif // _D3D9_H_ + +#ifdef __cplusplus +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva2trace.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva2trace.h new file mode 100644 index 0000000000000000000000000000000000000000..1fd779836778d251699510125f5bf6dabb71f60d --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva2trace.h @@ -0,0 +1,163 @@ +//------------------------------------------------------------------------------ +// File: dxva2Trace.h +// +// Desc: DirectX Video Acceleration 2 header file for ETW data +// +// Copyright (c) 1999 - 2005, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + +#ifndef __inc_dxva2Trace_h +#define __inc_dxva2Trace_h + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifdef __cplusplus +extern "C" { +#endif + +DEFINE_GUID(DXVA2Trace_Control, 0xa0386e75,0xf70c,0x464c, + 0xa9, 0xce, 0x33, 0xc4, 0x4e, 0x09, 0x16, 0x23); + +// ------------------------------------------------------------------------- +// DXVA2 Video Decoder ETW definitions +// +// There are event for: +// Device creation +// Device destruction +// +// When the device is being used there are events for: +// Begin frame +// Begin execute +// End execute +// End frame +// ------------------------------------------------------------------------- +// +typedef struct { +#ifndef DXVA2Trace_PostProcessing + EVENT_TRACE_HEADER wmiHeader; +#endif + ULONGLONG pObject; + ULONGLONG pD3DDevice; + GUID DeviceGuid; + ULONG Width; + ULONG Height; + BOOL Enter; +} DXVA2Trace_DecodeDevCreatedData; + +typedef struct { +#ifndef DXVA2Trace_PostProcessing + EVENT_TRACE_HEADER wmiHeader; +#endif + ULONGLONG pObject; + BOOL Enter; +} DXVA2Trace_DecodeDeviceData; + +typedef DXVA2Trace_DecodeDeviceData DXVA2Trace_DecodeDevDestroyedData; +typedef DXVA2Trace_DecodeDeviceData DXVA2Trace_DecodeDevExecuteData; +typedef DXVA2Trace_DecodeDeviceData DXVA2Trace_DecodeDevEndFrameData; + +typedef struct { +#ifndef DXVA2Trace_PostProcessing + EVENT_TRACE_HEADER wmiHeader; +#endif + ULONGLONG pObject; + ULONGLONG pRenderTarget; + BOOL Enter; +} DXVA2Trace_DecodeDevBeginFrameData; + +typedef struct { +#ifndef DXVA2Trace_PostProcessing + EVENT_TRACE_HEADER wmiHeader; +#endif + ULONGLONG pObject; + UINT BufferType; + BOOL Enter; +} DXVA2Trace_DecodeDevGetBufferData; + +DEFINE_GUID(DXVA2Trace_DecodeDevCreated, 0xb4de17a1,0xc5b2,0x44fe, + 0x86, 0xd5, 0xd9, 0x7a, 0x64, 0x81, 0x14, 0xff); + +DEFINE_GUID(DXVA2Trace_DecodeDevDestroyed, 0x853ebdf2,0x4160,0x421d, + 0x88, 0x93, 0x63, 0xdc, 0xea, 0x4f, 0x18, 0xbb); + +DEFINE_GUID(DXVA2Trace_DecodeDevBeginFrame, 0x9fd1acf6,0x44cb,0x4637, + 0xbc, 0x62, 0x2c, 0x11, 0xa9, 0x60, 0x8f, 0x90); + +DEFINE_GUID(DXVA2Trace_DecodeDevExecute,0x850aeb4c,0xd19a,0x4609, + 0xb3, 0xb4, 0xbc, 0xbf, 0x0e, 0x22, 0x12, 0x1e); + +DEFINE_GUID(DXVA2Trace_DecodeDevGetBuffer,0x57b128fb,0x72cb,0x4137, + 0xa5, 0x75, 0xd9, 0x1f, 0xa3, 0x16, 0x08, 0x97); + +DEFINE_GUID(DXVA2Trace_DecodeDevEndFrame, 0x9fb3cb33,0x47dc,0x4899, + 0x98, 0xc8, 0xc0, 0xc6, 0xcd, 0x7c, 0xd3, 0xcb); + + + +// ------------------------------------------------------------------------- +// DXVA2 Video Processing ETW definitions +// +// There are event for: +// Device creation +// Device destruction +// +// When the device is being used there are events for: +// Begin VideoProcessBlt +// End VideoProcessBlt +// ------------------------------------------------------------------------- +// +typedef struct { +#ifndef DXVA2Trace_PostProcessing + EVENT_TRACE_HEADER wmiHeader; +#endif + ULONGLONG pObject; + ULONGLONG pD3DDevice; + GUID DeviceGuid; + ULONG RTFourCC; + ULONG Width; + ULONG Height; + BOOL Enter; +} DXVA2Trace_VideoProcessDevCreatedData; + +typedef struct { +#ifndef DXVA2Trace_PostProcessing + EVENT_TRACE_HEADER wmiHeader; +#endif + ULONGLONG pObject; + BOOL Enter; +} DXVA2Trace_VideoProcessDeviceData; +typedef DXVA2Trace_VideoProcessDeviceData DXVA2Trace_VideoProcessDevDestroyedData; +typedef DXVA2Trace_VideoProcessDeviceData DXVA2Trace_VideoProcessBltEndData; + +typedef struct { +#ifndef DXVA2Trace_PostProcessing + EVENT_TRACE_HEADER wmiHeader; +#endif + ULONGLONG pObject; + ULONGLONG pRenderTarget; + ULONGLONG TargetFrameTime; + RECT TargetRect; + BOOL Enter; +} DXVA2TraceVideoProcessBltData; +#define DXVA2TraceVideoProcessBltDataData DXVA2TraceVideoProcessBltData; + +DEFINE_GUID(DXVA2Trace_VideoProcessDevCreated, 0x895508c6,0x540d,0x4c87, + 0x98, 0xf8, 0x8d, 0xcb, 0xf2, 0xda, 0xbb, 0x2a); + +DEFINE_GUID(DXVA2Trace_VideoProcessDevDestroyed, 0xf97f30b1,0xfb49,0x42c7, + 0x8e, 0xe8, 0x88, 0xbd, 0xfa, 0x92, 0xd4, 0xe2); + +DEFINE_GUID(DXVA2Trace_VideoProcessBlt, 0x69089cc0,0x71ab,0x42d0, + 0x95, 0x3a, 0x28, 0x87, 0xbf, 0x05, 0xa8, 0xaf); + +#ifdef __cplusplus +} +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva9typ.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva9typ.h new file mode 100644 index 0000000000000000000000000000000000000000..1a9bbcb2fce6b1477b1f6790335d9dea7b0ab243 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva9typ.h @@ -0,0 +1,1009 @@ +/*==========================================================================; + * + * Copyright (C) Microsoft Corporation. All Rights Reserved. + * + * File: dxva9typ.h + * Content: Direct3D include file + * + ****************************************************************************/ + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifndef _DXVA9TYP_H_ +#define _DXVA9TYP_H_ + +#ifndef DIRECT3D_VERSION +#define DIRECT3D_VERSION 0x0900 +#endif //DIRECT3D_VERSION + +// include this file content only if compiling for DX9 interfaces +#if(DIRECT3D_VERSION >= 0x0900) + + +#include + +#define COM_NO_WINDOWS_H +#include + +#include + +#ifdef __DIRECTX_VA_COPP_ONLY +#define __DIRECTX_VA_DECODER__ +#define __DIRECTX_VA_PROCAMPCONTROL__ +#define __DIRECTX_VA_DEINTERLACE__ +#endif + +#ifndef DXVABit +#define DXVABit(__x) (1 << __x) +#endif + + +// ------------------------------------------------------------------------- +// +// The definitions that follow describe the DirectX Video Acceleration +// decoding interface. +// This interface is accessable via the IAMVideoAccelerator interface. +// +// ------------------------------------------------------------------------- +// +#ifndef __DIRECTX_VA_DECODER__ +#define __DIRECTX_VA_DECODER__ + +/* AYUV sample for 16-entry YUV palette or graphic surface */ + +typedef struct _DXVA_AYUVsample2 { + BYTE bCrValue; + BYTE bCbValue; + BYTE bY_Value; + BYTE bSampleAlpha8; +} DXVA_AYUVsample2, *LPDXVA_AYUVsample2; + +DEFINE_GUID(DXVAp_ModeMPEG2_A, 0x1b81be0A, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVAp_ModeMPEG2_C, 0x1b81be0C, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); +DEFINE_GUID(DXVAp_NoEncrypt, 0x1b81beD0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); + +#pragma pack(push, BeforeDXVApacking, 1) + +typedef struct _DXVA_BufferDescription { + DWORD dwTypeIndex; + DWORD dwBufferIndex; + DWORD dwDataOffset; + DWORD dwDataSize; + DWORD dwFirstMBaddress; + DWORD dwNumMBsInBuffer; + DWORD dwWidth; + DWORD dwHeight; + DWORD dwStride; + DWORD dwReservedBits; +} DXVA_BufferDescription, *LPDXVA_BufferDescription; + +typedef DWORD DXVA_ConfigQueryOrReplyFunc, *LPDXVA_ConfigQueryOrReplyFunc; + +#define DXVA_QUERYORREPLYFUNCFLAG_DECODER_PROBE_QUERY 0xFFFFF1 +#define DXVA_QUERYORREPLYFUNCFLAG_DECODER_LOCK_QUERY 0xFFFFF5 +#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_PROBE_OK_COPY 0xFFFFF8 +#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_PROBE_OK_PLUS 0xFFFFF9 +#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_LOCK_OK_COPY 0xFFFFFC +#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_PROBE_FALSE_PLUS 0xFFFFFB +#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_LOCK_FALSE_PLUS 0xFFFFFF + +#define DXVA_PICTURE_DECODE_BUFFER 1 +#define DXVA_MACROBLOCK_CONTROL_BUFFER 2 +#define DXVA_RESIDUAL_DIFFERENCE_BUFFER 3 +#define DXVA_DEBLOCKING_CONTROL_BUFFER 4 +#define DXVA_INVERSE_QUANTIZATION_MATRIX_BUFFER 5 +#define DXVA_SLICE_CONTROL_BUFFER 6 +#define DXVA_BITSTREAM_DATA_BUFFER 7 +#define DXVA_AYUV_BUFFER 8 +#define DXVA_IA44_SURFACE_BUFFER 9 +#define DXVA_DPXD_SURFACE_BUFFER 10 +#define DXVA_HIGHLIGHT_BUFFER 11 +#define DXVA_DCCMD_SURFACE_BUFFER 12 +#define DXVA_ALPHA_BLEND_COMBINATION_BUFFER 13 +#define DXVA_PICTURE_RESAMPLE_BUFFER 14 +#define DXVA_READ_BACK_BUFFER 15 + +typedef struct _DXVA_ConfigPictureDecode { + + // Operation Indicated + DXVA_ConfigQueryOrReplyFunc dwFunction; + + // Alignment + DWORD dwReservedBits[3]; + + // Encryption GUIDs + GUID guidConfigBitstreamEncryption; + GUID guidConfigMBcontrolEncryption; + GUID guidConfigResidDiffEncryption; + + // Bitstream Processing Indicator + BYTE bConfigBitstreamRaw; + + // Macroblock Control Config + BYTE bConfigMBcontrolRasterOrder; + + // Host Resid Diff Config + BYTE bConfigResidDiffHost; + BYTE bConfigSpatialResid8; + BYTE bConfigResid8Subtraction; + BYTE bConfigSpatialHost8or9Clipping; + BYTE bConfigSpatialResidInterleaved; + BYTE bConfigIntraResidUnsigned; + + // Accelerator Resid Diff Config + BYTE bConfigResidDiffAccelerator; + BYTE bConfigHostInverseScan; + BYTE bConfigSpecificIDCT; + BYTE bConfig4GroupedCoefs; +} DXVA_ConfigPictureDecode, *LPDXVA_ConfigPictureDecode; + +typedef struct _DXVA_PictureParameters { + + WORD wDecodedPictureIndex; + WORD wDeblockedPictureIndex; + + WORD wForwardRefPictureIndex; + WORD wBackwardRefPictureIndex; + + WORD wPicWidthInMBminus1; + WORD wPicHeightInMBminus1; + + BYTE bMacroblockWidthMinus1; + BYTE bMacroblockHeightMinus1; + + BYTE bBlockWidthMinus1; + BYTE bBlockHeightMinus1; + + BYTE bBPPminus1; + + BYTE bPicStructure; + BYTE bSecondField; + BYTE bPicIntra; + BYTE bPicBackwardPrediction; + + BYTE bBidirectionalAveragingMode; + BYTE bMVprecisionAndChromaRelation; + BYTE bChromaFormat; + + BYTE bPicScanFixed; + BYTE bPicScanMethod; + BYTE bPicReadbackRequests; + + BYTE bRcontrol; + BYTE bPicSpatialResid8; + BYTE bPicOverflowBlocks; + BYTE bPicExtrapolation; + + BYTE bPicDeblocked; + BYTE bPicDeblockConfined; + BYTE bPic4MVallowed; + BYTE bPicOBMC; + BYTE bPicBinPB; + BYTE bMV_RPS; + + BYTE bReservedBits; + + WORD wBitstreamFcodes; + WORD wBitstreamPCEelements; + BYTE bBitstreamConcealmentNeed; + BYTE bBitstreamConcealmentMethod; + +} DXVA_PictureParameters, *LPDXVA_PictureParameters; + +#pragma pack(pop, BeforeDXVApacking) + +#endif /* __DIRECTX_VA_DECODER__ */ + + +#ifndef __DIRECTX_VA_DECODER9__ +#define __DIRECTX_VA_DECODER9__ +// ------------------------------------------------------------------------- +// Decoding data types used with RenderMoComp +// ------------------------------------------------------------------------- +// + +typedef struct _DXVAUncompDataInfo +{ + DWORD UncompWidth; /* Width of uncompressed data */ + DWORD UncompHeight; /* Height of uncompressed data */ + D3DFORMAT UncompFormat; /* Format of uncompressed data */ +} DXVAUncompDataInfo; + +typedef struct _DXVACompBufferInfo +{ + DWORD NumCompBuffers; /* Number of buffers reqd for compressed data */ + DWORD WidthToCreate; /* Width of surface to create */ + DWORD HeightToCreate; /* Height of surface to create */ + DWORD BytesToAllocate; /* Total number of bytes used by each surface */ + DWORD Usage; /* Usage used to create the compressed buffer */ + D3DPOOL Pool; /* Pool where the compressed buffer belongs */ + D3DFORMAT Format; /* Format used to create the compressed buffer */ +} DXVACompBufferInfo; + +typedef struct _DXVABufferInfo +{ + VOID* pCompSurface; /* Pointer to buffer containing compressed data */ + DWORD DataOffset; /* Offset of relevant data from the beginning of buffer */ + DWORD DataSize; /* Size of relevant data */ +} DXVABufferInfo; + +#endif /* __DIRECTX_VA_DECODER9__ */ + + +// ------------------------------------------------------------------------- +// +// D3DFORMAT describes a pixel memory layout, DXVA sample format contains +// additional information that describes how the pixels should be interpreted. +// +// DXVA Extended color data - occupies the SampleFormat DWORD +// data fields. +// ------------------------------------------------------------------------- +#ifndef __DIRECTX_VA_SAMPLEFORMAT__ +#define __DIRECTX_VA_SAMPLEFORMAT__ + +typedef enum _DXVA_SampleFormat { + DXVA_SampleFormatMask = 0xFF, // 8 bits used for DXVA Sample format + DXVA_SampleUnknown = 0, + DXVA_SamplePreviousFrame = 1, + DXVA_SampleProgressiveFrame = 2, + DXVA_SampleFieldInterleavedEvenFirst = 3, + DXVA_SampleFieldInterleavedOddFirst = 4, + DXVA_SampleFieldSingleEven = 5, + DXVA_SampleFieldSingleOdd = 6, + DXVA_SampleSubStream = 7 +} DXVA_SampleFormat; + +#define DXVA_ExtractSampleFormat(_sf) ((_sf) & (DXVA_SampleFormatMask)) + +#define DXVA_ExtractExtColorData(_sf, _Mask, _Shift) \ + (((_sf) & (_Mask)) >> (_Shift)) + +#define DXVABitMask(__n) (~((~0) << __n)) +#define DXVA_ExtColorData_ShiftBase 8 +#define DXVAColorMask(__bits,__base) (DXVABitMask(__bits) << (__base)) + +typedef enum _DXVA_VideoTransferFunction +{ + DXVA_VideoTransFuncShift = (DXVA_ExtColorData_ShiftBase + 19), + DXVA_VideoTransFuncMask = DXVAColorMask(5, DXVA_VideoTransFuncShift), + + DXVA_VideoTransFunc_Unknown = 0, + DXVA_VideoTransFunc_10 = 1, + DXVA_VideoTransFunc_18 = 2, + DXVA_VideoTransFunc_20 = 3, + DXVA_VideoTransFunc_22 = 4, + DXVA_VideoTransFunc_22_709 = 5, + DXVA_VideoTransFunc_22_240M = 6, + DXVA_VideoTransFunc_22_8bit_sRGB = 7, + DXVA_VideoTransFunc_28 = 8 +} DXVA_VideoTransferFunction; + +typedef enum _DXVA_VideoPrimaries +{ + DXVA_VideoPrimariesShift = (DXVA_ExtColorData_ShiftBase + 14), + DXVA_VideoPrimariesMask = DXVAColorMask(5, DXVA_VideoPrimariesShift), + + DXVA_VideoPrimaries_Unknown = 0, + DXVA_VideoPrimaries_reserved = 1, + DXVA_VideoPrimaries_BT709 = 2, + DXVA_VideoPrimaries_BT470_2_SysM = 3, + DXVA_VideoPrimaries_BT470_2_SysBG = 4, + DXVA_VideoPrimaries_SMPTE170M = 5, + DXVA_VideoPrimaries_SMPTE240M = 6, + DXVA_VideoPrimaries_EBU3213 = 7, + DXVA_VideoPrimaries_SMPTE_C = 8 +} DXVA_VideoPrimaries; + +typedef enum _DXVA_VideoLighting +{ + DXVA_VideoLightingShift = (DXVA_ExtColorData_ShiftBase + 10), + DXVA_VideoLightingMask = DXVAColorMask(4, DXVA_VideoLightingShift), + + DXVA_VideoLighting_Unknown = 0, + DXVA_VideoLighting_bright = 1, + DXVA_VideoLighting_office = 2, + DXVA_VideoLighting_dim = 3, + DXVA_VideoLighting_dark = 4 +} DXVA_VideoLighting; + +typedef enum _DXVA_VideoTransferMatrix +{ + DXVA_VideoTransferMatrixShift = (DXVA_ExtColorData_ShiftBase + 7), + DXVA_VideoTransferMatrixMask = DXVAColorMask(3, DXVA_VideoTransferMatrixShift), + + DXVA_VideoTransferMatrix_Unknown = 0, + DXVA_VideoTransferMatrix_BT709 = 1, + DXVA_VideoTransferMatrix_BT601 = 2, + DXVA_VideoTransferMatrix_SMPTE240M = 3 +} DXVA_VideoTransferMatrix; + +typedef enum _DXVA_NominalRange +{ + DXVA_NominalRangeShift = (DXVA_ExtColorData_ShiftBase + 4), + DXVA_NominalRangeMask = DXVAColorMask(3, DXVA_NominalRangeShift), + + DXVA_NominalRange_Unknown = 0, + DXVA_NominalRange_Normal = 1, + DXVA_NominalRange_Wide = 2, + + DXVA_NominalRange_0_255 = 1, + DXVA_NominalRange_16_235 = 2, + DXVA_NominalRange_48_208 = 3 +} DXVA_NominalRange; + +typedef enum _DXVA_VideoChromaSubsampling +{ + DXVA_VideoChromaSubsamplingShift = (DXVA_ExtColorData_ShiftBase + 0), + DXVA_VideoChromaSubsamplingMask = DXVAColorMask(4, DXVA_VideoChromaSubsamplingShift), + + DXVA_VideoChromaSubsampling_Unknown = 0, + DXVA_VideoChromaSubsampling_ProgressiveChroma = 0x8, + DXVA_VideoChromaSubsampling_Horizontally_Cosited = 0x4, + DXVA_VideoChromaSubsampling_Vertically_Cosited = 0x2, + DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes = 0x1, + // 4:2:0 variations + DXVA_VideoChromaSubsampling_MPEG2 = DXVA_VideoChromaSubsampling_Horizontally_Cosited | + DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes, + + DXVA_VideoChromaSubsampling_MPEG1 = DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes, + + DXVA_VideoChromaSubsampling_DV_PAL = DXVA_VideoChromaSubsampling_Horizontally_Cosited | + DXVA_VideoChromaSubsampling_Vertically_Cosited, + // 4:4:4, 4:2:2, 4:1:1 + DXVA_VideoChromaSubsampling_Cosited = DXVA_VideoChromaSubsampling_Horizontally_Cosited | + DXVA_VideoChromaSubsampling_Vertically_Cosited | + DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes, + +} DXVA_VideoChromaSubsampling; + +typedef struct _DXVA_ExtendedFormat +{ + UINT SampleFormat : 8; // See DXVA_SampleFormat + UINT VideoChromaSubsampling : 4; // See DXVA_VideoChromaSubSampling + DXVA_NominalRange NominalRange : 3; // See DXVA_NominalRange + DXVA_VideoTransferMatrix VideoTransferMatrix : 3; // See DXVA_VideoTransferMatrix + DXVA_VideoLighting VideoLighting : 4; // See DXVA_VideoLighting + DXVA_VideoPrimaries VideoPrimaries : 5; // See DXVA_VideoPrimaries + DXVA_VideoTransferFunction VideoTransferFunction : 5; // See DXVA_VideoTransferFunction +} DXVA_ExtendedFormat; + +#endif /* __DIRECTX_VA_SAMPLEFORMAT__ */ + + +// ------------------------------------------------------------------------- +// +// The definitions that follow describe the video de-interlace interface +// between the VMR and the graphics device driver. This interface is not +// accessable via the IAMVideoAccelerator interface. +// +// ------------------------------------------------------------------------- +// +#ifndef __DIRECTX_VA_DEINTERLACE__ +#define __DIRECTX_VA_DEINTERLACE__ + +#ifndef REFERENCE_TME + typedef LONGLONG REFERENCE_TIME; +#endif + +DEFINE_GUID(DXVAp_DeinterlaceBobDevice, 0x335aa36e,0x7884,0x43a4,0x9c,0x91,0x7f,0x87,0xfa,0xf3,0xe3,0x7e); +DEFINE_GUID(DXVAp_DeinterlaceContainerDevice, 0x0e85cb93,0x3046,0x4ff0,0xae,0xcc,0xd5,0x8c,0xb5,0xf0,0x35,0xfd); + +#define DXVA_DeinterlaceBobDevice DXVAp_DeinterlaceBobDevice +#define DXVA_DeinterlaceContainerDevice DXVAp_DeinterlaceContainerDevice + +#if (DIRECT3D_VERSION < 0x0800) || !defined(DIRECT3D_VERSION) +typedef DWORD D3DFORMAT; +enum { + D3DPOOL_DEFAULT = 0, + D3DPOOL_MANAGED = 1, + D3DPOOL_SYSTEMMEM = 2, + D3DPOOL_SCRATCH = 3, + D3DPOOL_LOCALVIDMEM = 4, + D3DPOOL_NONLOCALVIDMEM = 5, + D3DPOOL_FORCE_DWORD = 0x7fffffff +}; +#endif + +// ------------------------------------------------------------------------- +// data structures shared by User mode and Kernel mode. +// ------------------------------------------------------------------------- +// + +typedef struct _DXVA_Frequency { + DWORD Numerator; + DWORD Denominator; +} DXVA_Frequency; + +typedef struct _DXVA_VideoDesc { + DWORD Size; + DWORD SampleWidth; + DWORD SampleHeight; + DWORD SampleFormat; // also contains extend color data + D3DFORMAT d3dFormat; + DXVA_Frequency InputSampleFreq; + DXVA_Frequency OutputFrameFreq; +} DXVA_VideoDesc, *LPDXVA_VideoDesc; + +typedef enum _DXVA_VideoProcessCaps { + DXVA_VideoProcess_None = 0x0000, + DXVA_VideoProcess_YUV2RGB = 0x0001, + DXVA_VideoProcess_StretchX = 0x0002, + DXVA_VideoProcess_StretchY = 0x0004, + DXVA_VideoProcess_AlphaBlend = 0x0008, + DXVA_VideoProcess_SubRects = 0x0010, + DXVA_VideoProcess_SubStreams = 0x0020, + DXVA_VideoProcess_SubStreamsExtended = 0x0040, + DXVA_VideoProcess_YUV2RGBExtended = 0x0080, + DXVA_VideoProcess_AlphaBlendExtended = 0x0100 +} DXVA_VideoProcessCaps; + +typedef enum _DXVA_DeinterlaceTech { + + // the algorithm is unknown or proprietary + DXVA_DeinterlaceTech_Unknown = 0x0000, + + // the algorithm creates the missing lines by repeating + // the line either above or below it - this method will look very jaggy and + // isn't recommended + DXVA_DeinterlaceTech_BOBLineReplicate = 0x0001, + + // The algorithm creates the missing lines by vertically stretching each + // video field by a factor of two by averaging two lines + DXVA_DeinterlaceTech_BOBVerticalStretch = 0x0002, + + // or using a [-1, 9, 9, -1]/16 filter across four lines. + DXVA_DeinterlaceTech_BOBVerticalStretch4Tap = 0x0100, + + // the pixels in the missing line are recreated by a median filtering operation + DXVA_DeinterlaceTech_MedianFiltering = 0x0004, + + // the pixels in the missing line are recreated by an edge filter. + // In this process, spatial directional filters are applied to determine + // the orientation of edges in the picture content, and missing + // pixels are created by filtering along (rather than across) the + // detected edges. + DXVA_DeinterlaceTech_EdgeFiltering = 0x0010, + + // the pixels in the missing line are recreated by switching on a field by + // field basis between using either spatial or temporal interpolation + // depending on the amount of motion. + DXVA_DeinterlaceTech_FieldAdaptive = 0x0020, + + // the pixels in the missing line are recreated by switching on a pixel by pixel + // basis between using either spatial or temporal interpolation depending on + // the amount of motion.. + DXVA_DeinterlaceTech_PixelAdaptive = 0x0040, + + // Motion Vector Steering identifies objects within a sequence of video + // fields. The missing pixels are recreated after first aligning the + // movement axes of the individual objects in the scene to make them + // parallel with the time axis. + DXVA_DeinterlaceTech_MotionVectorSteered = 0x0080 + +} DXVA_DeinterlaceTech; + +typedef struct _DXVA_VideoSample { + REFERENCE_TIME rtStart; + REFERENCE_TIME rtEnd; + DXVA_SampleFormat SampleFormat; // only lower 8 bits used + VOID* lpDDSSrcSurface; +} DXVA_VideoSample, *LPDXVA_VideoSample; + +// ------------------------------------------------------------------------- +// DeinterlaceBltEx declarations +// ------------------------------------------------------------------------- +// + +typedef enum _DXVA_SampleFlags { + DXVA_SampleFlagsMask = DXVABit(3)|DXVABit(2)|DXVABit(1)|DXVABit(0), + + DXVA_SampleFlag_Palette_Changed = 0x0001, + DXVA_SampleFlag_SrcRect_Changed = 0x0002, + DXVA_SampleFlag_DstRect_Changed = 0x0004, + DXVA_SampleFlag_ColorData_Changed = 0x0008, +} DXVA_SampleFlags; + +typedef enum _DXVA_DestinationFlags { + DXVA_DestinationFlagMask = DXVABit(3)|DXVABit(2)|DXVABit(1)|DXVABit(0), + + DXVA_DestinationFlag_Background_Changed = 0x0001, + DXVA_DestinationFlag_TargetRect_Changed = 0x0002, + DXVA_DestinationFlag_ColorData_Changed = 0x0004, + DXVA_DestinationFlag_Alpha_Changed = 0x0008 +} DXVA_DestinationFlags; + +typedef struct _DXVA_VideoSample2 { +#ifdef _WIN64 + DWORD Size; + DWORD Reserved; +#endif + REFERENCE_TIME rtStart; + REFERENCE_TIME rtEnd; + DWORD SampleFormat; // cast to DXVA_ExtendedFormat, or use Extract macros + DWORD SampleFlags; + VOID* lpDDSSrcSurface; + RECT rcSrc; + RECT rcDst; + DXVA_AYUVsample2 Palette[16]; +} DXVA_VideoSample2, *LPDXVA_VideoSample2; + +typedef struct _DXVA_DeinterlaceCaps { + DWORD Size; + DWORD NumPreviousOutputFrames; + DWORD InputPool; + DWORD NumForwardRefSamples; + DWORD NumBackwardRefSamples; + D3DFORMAT d3dOutputFormat; + DXVA_VideoProcessCaps VideoProcessingCaps; + DXVA_DeinterlaceTech DeinterlaceTechnology; +} DXVA_DeinterlaceCaps, *LPDXVA_DeinterlaceCaps; + +// ------------------------------------------------------------------------- +// Data types used with RenderMoComp in kernel mode +// ------------------------------------------------------------------------- +// + +// Function codes for RenderMoComp + +#define MAX_DEINTERLACE_SURFACES 32 + +#ifdef _WIN64 +// +// These structures are used for thunking 32 bit DeinterlaceBltEx calls on +// 64 bit drivers. +// +typedef struct _DXVA_VideoSample32 { + REFERENCE_TIME rtStart; + REFERENCE_TIME rtEnd; + DWORD SampleFormat; + DWORD SampleFlags; + DWORD lpDDSSrcSurface; // 32 bit pointer size + RECT rcSrc; + RECT rcDst; + DXVA_AYUVsample2 Palette[16]; + // DWORD Pad; + // 4 bytes of padding added by the compiler to align the struct to 8 bytes. +} DXVA_VideoSample32; + +typedef struct _DXVA_DeinterlaceBltEx32 { + DWORD Size; + DXVA_AYUVsample2 BackgroundColor; + RECT rcTarget; + REFERENCE_TIME rtTarget; + DWORD NumSourceSurfaces; + FLOAT Alpha; + DXVA_VideoSample32 Source[MAX_DEINTERLACE_SURFACES]; + DWORD DestinationFormat; + DWORD DestinationFlags; +} DXVA_DeinterlaceBltEx32; +#endif + +typedef struct _DXVA_DeinterlaceBlt { + DWORD Size; + DWORD Reserved; + REFERENCE_TIME rtTarget; + RECT DstRect; + RECT SrcRect; + DWORD NumSourceSurfaces; + FLOAT Alpha; + DXVA_VideoSample Source[MAX_DEINTERLACE_SURFACES]; +} DXVA_DeinterlaceBlt; + +#define DXVA_DeinterlaceBltFnCode 0x01 +// lpInput => DXVA_DeinterlaceBlt* +// lpOuput => NULL /* not currently used */ + +typedef struct _DXVA_DeinterlaceBltEx { + DWORD Size; + DXVA_AYUVsample2 BackgroundColor; + RECT rcTarget; + REFERENCE_TIME rtTarget; + DWORD NumSourceSurfaces; + FLOAT Alpha; + DXVA_VideoSample2 Source[MAX_DEINTERLACE_SURFACES]; + DWORD DestinationFormat; + DWORD DestinationFlags; +} DXVA_DeinterlaceBltEx; + +#define DXVA_DeinterlaceBltExFnCode 0x02 +// lpInput => DXVA_DeinterlaceBltEx* +// lpOuput => NULL /* not currently used */ + +#define MAX_DEINTERLACE_DEVICE_GUIDS 32 +typedef struct _DXVA_DeinterlaceQueryAvailableModes { + DWORD Size; + DWORD NumGuids; + GUID Guids[MAX_DEINTERLACE_DEVICE_GUIDS]; +} DXVA_DeinterlaceQueryAvailableModes; + +#define DXVA_DeinterlaceQueryAvailableModesFnCode 0x01 +// lpInput => DXVA_VideoDesc* +// lpOuput => DXVA_DeinterlaceQueryAvailableModes* + +typedef struct _DXVA_DeinterlaceQueryModeCaps { + DWORD Size; + GUID Guid; + DXVA_VideoDesc VideoDesc; +} DXVA_DeinterlaceQueryModeCaps; + +#define DXVA_DeinterlaceQueryModeCapsFnCode 0x02 +// lpInput => DXVA_DeinterlaceQueryModeCaps* +// lpOuput => DXVA_DeinterlaceCaps* + +#endif /* __DIRECTX_VA_DEINTERLACE__ */ + +// ------------------------------------------------------------------------- +// +// The definitions that follow describe the video ProcAmp interface +// between the VMR and the graphics device driver. This interface is not +// accessable via the IAMVideoAccelerator interface. +// +// ------------------------------------------------------------------------- +// +#ifndef __DIRECTX_VA_PROCAMPCONTROL__ +#define __DIRECTX_VA_PROCAMPCONTROL__ + +DEFINE_GUID(DXVA_ProcAmpControlDevice, + 0x9f200913,0x2ffd,0x4056,0x9f,0x1e,0xe1,0xb5,0x08,0xf2,0x2d,0xcf); + +typedef enum _DXVA_ProcAmpControlProp { + DXVA_ProcAmp_None = 0x0000, + DXVA_ProcAmp_Brightness = 0x0001, + DXVA_ProcAmp_Contrast = 0x0002, + DXVA_ProcAmp_Hue = 0x0004, + DXVA_ProcAmp_Saturation = 0x0008 +} DXVA_ProcAmpControlProp; + +typedef struct _DXVA_ProcAmpControlCaps { + DWORD Size; + DWORD InputPool; + D3DFORMAT d3dOutputFormat; + DWORD ProcAmpControlProps;// see DXVA_ProcAmpControlProp + DWORD VideoProcessingCaps;// see DXVA_VideoProcessCaps +} DXVA_ProcAmpControlCaps, *LPDXVA_ProcAmpControlCaps; + +#define DXVA_ProcAmpControlQueryCapsFnCode 0x03 +// lpInput => DXVA_VideoDesc* +// lpOuput => DXVA_ProcAmpControlCaps* + +typedef struct _DXVA_ProcAmpControlQueryRange { + DWORD Size; + DXVA_ProcAmpControlProp ProcAmpControlProp; + DXVA_VideoDesc VideoDesc; +} DXVA_ProcAmpControlQueryRange, *LPDXVA_ProcAmpControlQueryRange; + +typedef struct _DXVA_VideoPropertyRange { + FLOAT MinValue; + FLOAT MaxValue; + FLOAT DefaultValue; + FLOAT StepSize; +} DXVA_VideoPropertyRange, *LPDXVA_VideoPropertyRange; + +#define DXVA_ProcAmpControlQueryRangeFnCode 0x04 +// lpInput => DXVA_ProcAmpControlQueryRange* +// lpOuput => DXVA_VideoPropertyRange* + +typedef struct _DXVA_ProcAmpControlBlt { + DWORD Size; + RECT DstRect; + RECT SrcRect; + FLOAT Alpha; + FLOAT Brightness; + FLOAT Contrast; + FLOAT Hue; + FLOAT Saturation; +} DXVA_ProcAmpControlBlt; + +#define DXVA_ProcAmpControlBltFnCode 0x01 +// lpInput => DXVA_ProcAmpControlBlt* +// lpOuput => NULL /* not currently used */ + +#endif /* __DIRECTX_VA_PROCAMPCONTROL__ */ + +// ------------------------------------------------------------------------- +// +// The definitions that follow describe the Certified Output Protection +// Protocol between the VMR and the graphics device driver. This interface +// is not accessable via the IAMVideoAccelerator interface. +// +// ------------------------------------------------------------------------- +// +#ifndef __DIRECTX_VA_CERTOUTPUTPROTECT__ +#define __DIRECTX_VA_CERTOUTPUTPROTECT__ + +DEFINE_GUID(DXVA_COPPDevice, + 0xd2457add,0x8999,0x45ed,0x8a,0x8a,0xd1,0xaa,0x04,0x7b,0xa4,0xd5); + +// ------------------------------------------------------------------------- +// COPPGetCertificateLength +// ------------------------------------------------------------------------- +#define DXVA_COPPGetCertificateLengthFnCode 0x01 +// lpInput => NULL +// lpOuput => DWORD* + +// ------------------------------------------------------------------------- +// COPPKeyExchange +// ------------------------------------------------------------------------- +#define DXVA_COPPKeyExchangeFnCode 0x02 +// lpInputData => NULL +// lpOuputData => GUID* + +// ------------------------------------------------------------------------- +// COPPSequenceStart +// ------------------------------------------------------------------------- +typedef struct _DXVA_COPPSignature { + UCHAR Signature[256]; +} DXVA_COPPSignature, *LPDXVA_COPPSignature; + +#define DXVA_COPPSequenceStartFnCode 0x03 +// lpInputData => DXVA_COPPSignature* +// lpOuputData => NULL + +// ------------------------------------------------------------------------- +// COPPCommand +// ------------------------------------------------------------------------- +typedef struct _DXVA_COPPCommand { + GUID macKDI; // 16 bytes + GUID guidCommandID; // 16 bytes + ULONG dwSequence; // 4 bytes + ULONG cbSizeData; // 4 bytes + UCHAR CommandData[4056]; // 4056 bytes (4056+4+4+16+16 = 4096) +} DXVA_COPPCommand, *LPDXVA_COPPCommand; + +#define DXVA_COPPCommandFnCode 0x04 +// lpInputData => DXVA_COPPCommand* +// lpOuputData => NULL + +DEFINE_GUID(DXVA_COPPSetProtectionLevel, + 0x9bb9327c,0x4eb5,0x4727,0x9f,0x00,0xb4,0x2b,0x09,0x19,0xc0,0xda); + +typedef struct _DXVA_COPPSetProtectionLevelCmdData { + ULONG ProtType; + ULONG ProtLevel; + ULONG ExtendedInfoChangeMask; + ULONG ExtendedInfoData; +} DXVA_COPPSetProtectionLevelCmdData; + +// Set the HDCP protection level - (0 - 1 DWORD, 4 bytes) + +typedef enum _COPP_HDCP_Protection_Level { + COPP_HDCP_Level0 = 0, + COPP_HDCP_LevelMin = COPP_HDCP_Level0, + COPP_HDCP_Level1 = 1, + COPP_HDCP_LevelMax = COPP_HDCP_Level1, + COPP_HDCP_ForceDWORD = 0x7fffffff +} COPP_HDCP_Protection_Level; + +typedef enum _COPP_CGMSA_Protection_Level { + COPP_CGMSA_Disabled = 0, + COPP_CGMSA_LevelMin = COPP_CGMSA_Disabled, + COPP_CGMSA_CopyFreely = 1, + COPP_CGMSA_CopyNoMore = 2, + COPP_CGMSA_CopyOneGeneration = 3, + COPP_CGMSA_CopyNever = 4, + COPP_CGMSA_RedistributionControlRequired = 0x08, + COPP_CGMSA_LevelMax = (COPP_CGMSA_RedistributionControlRequired + COPP_CGMSA_CopyNever), + COPP_CGMSA_ForceDWORD = 0x7fffffff +} COPP_CGMSA_Protection_Level; + +typedef enum _COPP_ACP_Protection_Level { + COPP_ACP_Level0 = 0, + COPP_ACP_LevelMin = COPP_ACP_Level0, + COPP_ACP_Level1 = 1, + COPP_ACP_Level2 = 2, + COPP_ACP_Level3 = 3, + COPP_ACP_LevelMax = COPP_ACP_Level3, + COPP_ACP_ForceDWORD = 0x7fffffff +} COPP_ACP_Protection_Level; + +#define COPP_NoProtectionLevelAvailable -1 +#define COPP_DefaultProtectionLevel 0 + +// +// Bit flags of possible protection types. Note that it is possible to apply +// different protection settings to a single connector. +// +enum { + COPP_ProtectionType_Unknown = 0x80000000, + COPP_ProtectionType_None = 0x00000000, + COPP_ProtectionType_HDCP = 0x00000001, + COPP_ProtectionType_ACP = 0x00000002, + COPP_ProtectionType_CGMSA = 0x00000004, + COPP_ProtectionType_Mask = 0x80000007, + COPP_ProtectionType_Reserved = 0x7FFFFFF8 +}; + +DEFINE_GUID(DXVA_COPPSetSignaling, + 0x9a631a5, 0xd684, 0x4c60, 0x8e, 0x4d, 0xd3, 0xbb, 0xf, 0xb, 0xe3, 0xee); + +typedef struct _DXVA_COPPSetSignalingCmdData { + ULONG ActiveTVProtectionStandard; // See COPP_TVProtectionStandard + ULONG AspectRatioChangeMask1; + ULONG AspectRatioData1; // See COPP_ImageAspectRatio_EN300294 for ETSI EN 300 294 values + ULONG AspectRatioChangeMask2; + ULONG AspectRatioData2; + ULONG AspectRatioChangeMask3; + ULONG AspectRatioData3; + ULONG ExtendedInfoChangeMask[4]; + ULONG ExtendedInfoData[4]; + ULONG Reserved; +} DXVA_COPPSetSignalingCmdData; + +// Add format enum and data enum +typedef enum _COPP_TVProtectionStandard { + COPP_ProtectionStandard_Unknown = 0x80000000, + COPP_ProtectionStandard_None = 0x00000000, + COPP_ProtectionStandard_IEC61880_525i = 0x00000001, + COPP_ProtectionStandard_IEC61880_2_525i = 0x00000002, + COPP_ProtectionStandard_IEC62375_625p = 0x00000004, + COPP_ProtectionStandard_EIA608B_525 = 0x00000008, + COPP_ProtectionStandard_EN300294_625i = 0x00000010, + COPP_ProtectionStandard_CEA805A_TypeA_525p = 0x00000020, + COPP_ProtectionStandard_CEA805A_TypeA_750p = 0x00000040, + COPP_ProtectionStandard_CEA805A_TypeA_1125i = 0x00000080, + COPP_ProtectionStandard_CEA805A_TypeB_525p = 0x00000100, + COPP_ProtectionStandard_CEA805A_TypeB_750p = 0x00000200, + COPP_ProtectionStandard_CEA805A_TypeB_1125i = 0x00000400, + COPP_ProtectionStandard_ARIBTRB15_525i = 0x00000800, + COPP_ProtectionStandard_ARIBTRB15_525p = 0x00001000, + COPP_ProtectionStandard_ARIBTRB15_750p = 0x00002000, + COPP_ProtectionStandard_ARIBTRB15_1125i = 0x00004000, + COPP_ProtectionStandard_Mask = 0x80007FFF, + COPP_ProtectionStandard_Reserved = 0x7FFF8000 +} COPP_TVProtectionStandard; + +#define COPP_ImageAspectRatio_EN300294_Mask 0x00000007 + +typedef enum _COPP_ImageAspectRatio_EN300294 { + COPP_AspectRatio_EN300294_FullFormat4by3 = 0, + COPP_AspectRatio_EN300294_Box14by9Center = 1, + COPP_AspectRatio_EN300294_Box14by9Top = 2, + COPP_AspectRatio_EN300294_Box16by9Center = 3, + COPP_AspectRatio_EN300294_Box16by9Top = 4, + COPP_AspectRatio_EN300294_BoxGT16by9Center = 5, + COPP_AspectRatio_EN300294_FullFormat4by3ProtectedCenter = 6, + COPP_AspectRatio_EN300294_FullFormat16by9Anamorphic = 7, + COPP_AspectRatio_ForceDWORD = 0x7fffffff +} COPP_ImageAspectRatio_EN300294; + +// ------------------------------------------------------------------------- +// COPPQueryStatus +// ------------------------------------------------------------------------- +typedef struct _DXVA_COPPStatusInput { + GUID rApp; // 16 bytes + GUID guidStatusRequestID;// 16 bytes + ULONG dwSequence; // 4 bytes + ULONG cbSizeData; // 4 bytes + UCHAR StatusData[4056]; // 4056 bytes (4056+4+4+16+16 = 4096) +} DXVA_COPPStatusInput, *LPDXVA_COPPStatusInput; + +typedef struct _DXVA_COPPStatusOutput { + GUID macKDI; // 16 bytes + ULONG cbSizeData; // 4 bytes + UCHAR COPPStatus[4076]; // 4076 bytes (4076+16+4 = 4096) +} DXVA_COPPStatusOutput, *LPDXVA_COPPStatusOutput; + +typedef enum _COPP_StatusFlags { + COPP_StatusNormal = 0x00, + COPP_LinkLost = 0x01, + COPP_RenegotiationRequired = 0x02, + COPP_StatusFlagsReserved = 0xFFFFFFFC +} COPP_StatusFlags; + +typedef struct _DXVA_COPPStatusData { + GUID rApp; + ULONG dwFlags; // See COPP_StatusFlags above + ULONG dwData; + ULONG ExtendedInfoValidMask; + ULONG ExtendedInfoData; +} DXVA_COPPStatusData; + +typedef struct _DXVA_COPPStatusDisplayData { + GUID rApp; + ULONG dwFlags; // See COPP_StatusFlags above + ULONG DisplayWidth; + ULONG DisplayHeight; + ULONG Format; // also contains extended color data + ULONG d3dFormat; + ULONG FreqNumerator; + ULONG FreqDenominator; +} DXVA_COPPStatusDisplayData; + +typedef enum _COPP_StatusHDCPFlags { + COPP_HDCPRepeater = 0x01, + COPP_HDCPFlagsReserved = 0xFFFFFFFE +} COPP_StatusHDCPFlags; + +typedef struct _DXVA_COPPStatusHDCPKeyData { + GUID rApp; + ULONG dwFlags; // See COPP_StatusFlags above + ULONG dwHDCPFlags; // See COPP_StatusHDCPFlags above + GUID BKey; // Lower 40 bits + GUID Reserved1; + GUID Reserved2; +} DXVA_COPPStatusHDCPKeyData; + +#define DXVA_COPPQueryStatusFnCode 0x05 +// lpInputData => DXVA_COPPStatusInput* +// lpOuputData => DXVA_COPPStatusOutput* + +// +// Status GUID and enumerations +// +DEFINE_GUID(DXVA_COPPQueryConnectorType, + 0x81d0bfd5,0x6afe,0x48c2,0x99,0xc0,0x95,0xa0,0x8f,0x97,0xc5,0xda); + +typedef enum _COPP_ConnectorType { + COPP_ConnectorType_Unknown = -1, + COPP_ConnectorType_VGA = 0, + COPP_ConnectorType_SVideo = 1, + COPP_ConnectorType_CompositeVideo = 2, + COPP_ConnectorType_ComponentVideo = 3, + COPP_ConnectorType_DVI = 4, + COPP_ConnectorType_HDMI = 5, + COPP_ConnectorType_LVDS = 6, + COPP_ConnectorType_TMDS = 7, + COPP_ConnectorType_D_JPN = 8, + COPP_ConnectorType_Internal = 0x80000000, // can be combined with the other connector types + COPP_ConnectorType_ForceDWORD = 0x7fffffff /* force 32-bit size enum */ +} COPP_ConnectorType; + +DEFINE_GUID(DXVA_COPPQueryProtectionType, + 0x38f2a801,0x9a6c,0x48bb,0x91,0x07,0xb6,0x69,0x6e,0x6f,0x17,0x97); + +DEFINE_GUID(DXVA_COPPQueryLocalProtectionLevel, + 0xb2075857,0x3eda,0x4d5d,0x88,0xdb,0x74,0x8f,0x8c,0x1a,0x05,0x49); + +DEFINE_GUID(DXVA_COPPQueryGlobalProtectionLevel, + 0x1957210a,0x7766,0x452a,0xb9,0x9a,0xd2,0x7a,0xed,0x54,0xf0,0x3a); + +DEFINE_GUID(DXVA_COPPQueryDisplayData, + 0xd7bf1ba3,0xad13,0x4f8e,0xaf,0x98,0x0d,0xcb,0x3c,0xa2,0x04,0xcc); + +DEFINE_GUID(DXVA_COPPQueryHDCPKeyData, + 0xdb59d74, 0xa992, 0x492e, 0xa0, 0xbd, 0xc2, 0x3f, 0xda, 0x56, 0x4e, 0x0); + +DEFINE_GUID(DXVA_COPPQueryBusData, + 0xc6f4d673, 0x6174, 0x4184, 0x8e, 0x35, 0xf6, 0xdb, 0x52, 0x0, 0xbc, 0xba); + +typedef enum _COPP_BusType { + COPP_BusType_Unknown = 0, + COPP_BusType_PCI = 1, + COPP_BusType_PCIX = 2, + COPP_BusType_PCIExpress = 3, + COPP_BusType_AGP = 4, + COPP_BusType_Integrated = 0x80000000, // can be combined with the other bus types + COPP_BusType_ForceDWORD = 0x7fffffff /* force 32-bit size enum */ +} COPP_BusType; + +DEFINE_GUID(DXVA_COPPQuerySignaling, + 0x6629a591, 0x3b79, 0x4cf3, 0x92, 0x4a, 0x11, 0xe8, 0xe7, 0x81, 0x16, 0x71); + +typedef struct _DXVA_COPPStatusSignalingCmdData { + GUID rApp; + ULONG dwFlags; // See COPP_StatusFlags above + ULONG AvailableTVProtectionStandards; // See COPP_TVProtectionStandard + ULONG ActiveTVProtectionStandard; // See COPP_TVProtectionStandard + ULONG TVType; + ULONG AspectRatioValidMask1; + ULONG AspectRatioData1; // See COPP_AspectRatio_EN300294 for ETSI EN 300 294 values + ULONG AspectRatioValidMask2; + ULONG AspectRatioData2; + ULONG AspectRatioValidMask3; + ULONG AspectRatioData3; + ULONG ExtendedInfoValidMask[4]; + ULONG ExtendedInfoData[4]; +} DXVA_COPPStatusSignalingCmdData; + +#endif /* __DIRECTX_VA_CERTOUTPUTPROTECT__ */ + +#endif /* (DIRECT3D_VERSION >= 0x0900) */ +#endif /* _DXVA9TYP_H_ */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxvahd.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxvahd.h new file mode 100644 index 0000000000000000000000000000000000000000..aa5003ba1a7f12d74d4b804cb6bc5ea8a2e12e37 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxvahd.h @@ -0,0 +1,1168 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __dxvahd_h__ +#define __dxvahd_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IDXVAHD_Device_FWD_DEFINED__ +#define __IDXVAHD_Device_FWD_DEFINED__ +typedef interface IDXVAHD_Device IDXVAHD_Device; + +#endif /* __IDXVAHD_Device_FWD_DEFINED__ */ + + +#ifndef __IDXVAHD_VideoProcessor_FWD_DEFINED__ +#define __IDXVAHD_VideoProcessor_FWD_DEFINED__ +typedef interface IDXVAHD_VideoProcessor IDXVAHD_VideoProcessor; + +#endif /* __IDXVAHD_VideoProcessor_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_dxvahd_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#if 0 +typedef DWORD IDirect3DDevice9Ex; + +typedef DWORD IDirect3DSurface9; + +typedef DWORD D3DCOLOR; + +typedef DWORD D3DFORMAT; + +typedef DWORD D3DPOOL; + +#endif // 0 +#if defined(_WIN32) && !defined(_NO_COM) + + +DEFINE_GUID(IID_IDXVAHD_Device, 0x95f12dfd,0xd77e,0x49be,0x81,0x5f,0x57,0xd5,0x79,0x63,0x4d,0x6d); +DEFINE_GUID(IID_IDXVAHD_VideoProcessor, 0x95f4edf4,0x6e03,0x4cd7,0xbe,0x1b,0x30,0x75,0xd6,0x65,0xaa,0x52); + + +#endif + + +typedef +enum _DXVAHD_FRAME_FORMAT + { + DXVAHD_FRAME_FORMAT_PROGRESSIVE = 0, + DXVAHD_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1, + DXVAHD_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2 + } DXVAHD_FRAME_FORMAT; + +typedef +enum _DXVAHD_DEVICE_USAGE + { + DXVAHD_DEVICE_USAGE_PLAYBACK_NORMAL = 0, + DXVAHD_DEVICE_USAGE_OPTIMAL_SPEED = 1, + DXVAHD_DEVICE_USAGE_OPTIMAL_QUALITY = 2 + } DXVAHD_DEVICE_USAGE; + +typedef +enum _DXVAHD_SURFACE_TYPE + { + DXVAHD_SURFACE_TYPE_VIDEO_INPUT = 0, + DXVAHD_SURFACE_TYPE_VIDEO_INPUT_PRIVATE = 1, + DXVAHD_SURFACE_TYPE_VIDEO_OUTPUT = 2 + } DXVAHD_SURFACE_TYPE; + +typedef +enum _DXVAHD_DEVICE_TYPE + { + DXVAHD_DEVICE_TYPE_HARDWARE = 0, + DXVAHD_DEVICE_TYPE_SOFTWARE = 1, + DXVAHD_DEVICE_TYPE_REFERENCE = 2, + DXVAHD_DEVICE_TYPE_OTHER = 3 + } DXVAHD_DEVICE_TYPE; + +typedef +enum _DXVAHD_DEVICE_CAPS + { + DXVAHD_DEVICE_CAPS_LINEAR_SPACE = 0x1, + DXVAHD_DEVICE_CAPS_xvYCC = 0x2, + DXVAHD_DEVICE_CAPS_RGB_RANGE_CONVERSION = 0x4, + DXVAHD_DEVICE_CAPS_YCbCr_MATRIX_CONVERSION = 0x8 + } DXVAHD_DEVICE_CAPS; + +typedef +enum _DXVAHD_FEATURE_CAPS + { + DXVAHD_FEATURE_CAPS_ALPHA_FILL = 0x1, + DXVAHD_FEATURE_CAPS_CONSTRICTION = 0x2, + DXVAHD_FEATURE_CAPS_LUMA_KEY = 0x4, + DXVAHD_FEATURE_CAPS_ALPHA_PALETTE = 0x8 + } DXVAHD_FEATURE_CAPS; + +typedef +enum _DXVAHD_FILTER_CAPS + { + DXVAHD_FILTER_CAPS_BRIGHTNESS = 0x1, + DXVAHD_FILTER_CAPS_CONTRAST = 0x2, + DXVAHD_FILTER_CAPS_HUE = 0x4, + DXVAHD_FILTER_CAPS_SATURATION = 0x8, + DXVAHD_FILTER_CAPS_NOISE_REDUCTION = 0x10, + DXVAHD_FILTER_CAPS_EDGE_ENHANCEMENT = 0x20, + DXVAHD_FILTER_CAPS_ANAMORPHIC_SCALING = 0x40 + } DXVAHD_FILTER_CAPS; + +typedef +enum _DXVAHD_INPUT_FORMAT_CAPS + { + DXVAHD_INPUT_FORMAT_CAPS_RGB_INTERLACED = 0x1, + DXVAHD_INPUT_FORMAT_CAPS_RGB_PROCAMP = 0x2, + DXVAHD_INPUT_FORMAT_CAPS_RGB_LUMA_KEY = 0x4, + DXVAHD_INPUT_FORMAT_CAPS_PALETTE_INTERLACED = 0x8 + } DXVAHD_INPUT_FORMAT_CAPS; + +typedef +enum _DXVAHD_PROCESSOR_CAPS + { + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_BLEND = 0x1, + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_BOB = 0x2, + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE = 0x4, + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION = 0x8, + DXVAHD_PROCESSOR_CAPS_INVERSE_TELECINE = 0x10, + DXVAHD_PROCESSOR_CAPS_FRAME_RATE_CONVERSION = 0x20 + } DXVAHD_PROCESSOR_CAPS; + +typedef +enum _DXVAHD_ITELECINE_CAPS + { + DXVAHD_ITELECINE_CAPS_32 = 0x1, + DXVAHD_ITELECINE_CAPS_22 = 0x2, + DXVAHD_ITELECINE_CAPS_2224 = 0x4, + DXVAHD_ITELECINE_CAPS_2332 = 0x8, + DXVAHD_ITELECINE_CAPS_32322 = 0x10, + DXVAHD_ITELECINE_CAPS_55 = 0x20, + DXVAHD_ITELECINE_CAPS_64 = 0x40, + DXVAHD_ITELECINE_CAPS_87 = 0x80, + DXVAHD_ITELECINE_CAPS_222222222223 = 0x100, + DXVAHD_ITELECINE_CAPS_OTHER = 0x80000000 + } DXVAHD_ITELECINE_CAPS; + +typedef +enum _DXVAHD_FILTER + { + DXVAHD_FILTER_BRIGHTNESS = 0, + DXVAHD_FILTER_CONTRAST = 1, + DXVAHD_FILTER_HUE = 2, + DXVAHD_FILTER_SATURATION = 3, + DXVAHD_FILTER_NOISE_REDUCTION = 4, + DXVAHD_FILTER_EDGE_ENHANCEMENT = 5, + DXVAHD_FILTER_ANAMORPHIC_SCALING = 6 + } DXVAHD_FILTER; + +typedef +enum _DXVAHD_BLT_STATE + { + DXVAHD_BLT_STATE_TARGET_RECT = 0, + DXVAHD_BLT_STATE_BACKGROUND_COLOR = 1, + DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE = 2, + DXVAHD_BLT_STATE_ALPHA_FILL = 3, + DXVAHD_BLT_STATE_CONSTRICTION = 4, + DXVAHD_BLT_STATE_PRIVATE = 1000 + } DXVAHD_BLT_STATE; + +typedef +enum _DXVAHD_ALPHA_FILL_MODE + { + DXVAHD_ALPHA_FILL_MODE_OPAQUE = 0, + DXVAHD_ALPHA_FILL_MODE_BACKGROUND = 1, + DXVAHD_ALPHA_FILL_MODE_DESTINATION = 2, + DXVAHD_ALPHA_FILL_MODE_SOURCE_STREAM = 3 + } DXVAHD_ALPHA_FILL_MODE; + +typedef +enum _DXVAHD_STREAM_STATE + { + DXVAHD_STREAM_STATE_D3DFORMAT = 0, + DXVAHD_STREAM_STATE_FRAME_FORMAT = 1, + DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE = 2, + DXVAHD_STREAM_STATE_OUTPUT_RATE = 3, + DXVAHD_STREAM_STATE_SOURCE_RECT = 4, + DXVAHD_STREAM_STATE_DESTINATION_RECT = 5, + DXVAHD_STREAM_STATE_ALPHA = 6, + DXVAHD_STREAM_STATE_PALETTE = 7, + DXVAHD_STREAM_STATE_LUMA_KEY = 8, + DXVAHD_STREAM_STATE_ASPECT_RATIO = 9, + DXVAHD_STREAM_STATE_FILTER_BRIGHTNESS = 100, + DXVAHD_STREAM_STATE_FILTER_CONTRAST = 101, + DXVAHD_STREAM_STATE_FILTER_HUE = 102, + DXVAHD_STREAM_STATE_FILTER_SATURATION = 103, + DXVAHD_STREAM_STATE_FILTER_NOISE_REDUCTION = 104, + DXVAHD_STREAM_STATE_FILTER_EDGE_ENHANCEMENT = 105, + DXVAHD_STREAM_STATE_FILTER_ANAMORPHIC_SCALING = 106, + DXVAHD_STREAM_STATE_PRIVATE = 1000 + } DXVAHD_STREAM_STATE; + +typedef +enum _DXVAHD_OUTPUT_RATE + { + DXVAHD_OUTPUT_RATE_NORMAL = 0, + DXVAHD_OUTPUT_RATE_HALF = 1, + DXVAHD_OUTPUT_RATE_CUSTOM = 2 + } DXVAHD_OUTPUT_RATE; + +typedef struct _DXVAHD_RATIONAL + { + UINT Numerator; + UINT Denominator; + } DXVAHD_RATIONAL; + +typedef struct _DXVAHD_COLOR_RGBA + { + FLOAT R; + FLOAT G; + FLOAT B; + FLOAT A; + } DXVAHD_COLOR_RGBA; + +typedef struct _DXVAHD_COLOR_YCbCrA + { + FLOAT Y; + FLOAT Cb; + FLOAT Cr; + FLOAT A; + } DXVAHD_COLOR_YCbCrA; + +typedef union _DXVAHD_COLOR + { + DXVAHD_COLOR_RGBA RGB; + DXVAHD_COLOR_YCbCrA YCbCr; + } DXVAHD_COLOR; + +typedef struct _DXVAHD_CONTENT_DESC + { + DXVAHD_FRAME_FORMAT InputFrameFormat; + DXVAHD_RATIONAL InputFrameRate; + UINT InputWidth; + UINT InputHeight; + DXVAHD_RATIONAL OutputFrameRate; + UINT OutputWidth; + UINT OutputHeight; + } DXVAHD_CONTENT_DESC; + +typedef struct _DXVAHD_VPDEVCAPS + { + DXVAHD_DEVICE_TYPE DeviceType; + UINT DeviceCaps; + UINT FeatureCaps; + UINT FilterCaps; + UINT InputFormatCaps; + D3DPOOL InputPool; + UINT OutputFormatCount; + UINT InputFormatCount; + UINT VideoProcessorCount; + UINT MaxInputStreams; + UINT MaxStreamStates; + } DXVAHD_VPDEVCAPS; + +typedef struct _DXVAHD_VPCAPS + { + GUID VPGuid; + UINT PastFrames; + UINT FutureFrames; + UINT ProcessorCaps; + UINT ITelecineCaps; + UINT CustomRateCount; + } DXVAHD_VPCAPS; + +typedef struct _DXVAHD_CUSTOM_RATE_DATA + { + DXVAHD_RATIONAL CustomRate; + UINT OutputFrames; + BOOL InputInterlaced; + UINT InputFramesOrFields; + } DXVAHD_CUSTOM_RATE_DATA; + +typedef struct _DXVAHD_FILTER_RANGE_DATA + { + INT Minimum; + INT Maximum; + INT Default; + FLOAT Multiplier; + } DXVAHD_FILTER_RANGE_DATA; + +typedef struct _DXVAHD_BLT_STATE_TARGET_RECT_DATA + { + BOOL Enable; + RECT TargetRect; + } DXVAHD_BLT_STATE_TARGET_RECT_DATA; + +typedef struct _DXVAHD_BLT_STATE_BACKGROUND_COLOR_DATA + { + BOOL YCbCr; + DXVAHD_COLOR BackgroundColor; + } DXVAHD_BLT_STATE_BACKGROUND_COLOR_DATA; + +typedef struct _DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE_DATA + { + union + { + struct + { + UINT Usage : 1; + UINT RGB_Range : 1; + UINT YCbCr_Matrix : 1; + UINT YCbCr_xvYCC : 1; + UINT Reserved : 28; + } ; + UINT Value; + } ; + } DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE_DATA; + +typedef struct _DXVAHD_BLT_STATE_ALPHA_FILL_DATA + { + DXVAHD_ALPHA_FILL_MODE Mode; + UINT StreamNumber; + } DXVAHD_BLT_STATE_ALPHA_FILL_DATA; + +typedef struct _DXVAHD_BLT_STATE_CONSTRICTION_DATA + { + BOOL Enable; + SIZE Size; + } DXVAHD_BLT_STATE_CONSTRICTION_DATA; + +typedef struct _DXVAHD_BLT_STATE_PRIVATE_DATA + { + GUID Guid; + UINT DataSize; + void *pData; + } DXVAHD_BLT_STATE_PRIVATE_DATA; + +typedef struct _DXVAHD_STREAM_STATE_D3DFORMAT_DATA + { + D3DFORMAT Format; + } DXVAHD_STREAM_STATE_D3DFORMAT_DATA; + +typedef struct _DXVAHD_STREAM_STATE_FRAME_FORMAT_DATA + { + DXVAHD_FRAME_FORMAT FrameFormat; + } DXVAHD_STREAM_STATE_FRAME_FORMAT_DATA; + +typedef struct _DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE_DATA + { + union + { + struct + { + UINT Type : 1; + UINT RGB_Range : 1; + UINT YCbCr_Matrix : 1; + UINT YCbCr_xvYCC : 1; + UINT Reserved : 28; + } ; + UINT Value; + } ; + } DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE_DATA; + +typedef struct _DXVAHD_STREAM_STATE_OUTPUT_RATE_DATA + { + BOOL RepeatFrame; + DXVAHD_OUTPUT_RATE OutputRate; + DXVAHD_RATIONAL CustomRate; + } DXVAHD_STREAM_STATE_OUTPUT_RATE_DATA; + +typedef struct _DXVAHD_STREAM_STATE_SOURCE_RECT_DATA + { + BOOL Enable; + RECT SourceRect; + } DXVAHD_STREAM_STATE_SOURCE_RECT_DATA; + +typedef struct _DXVAHD_STREAM_STATE_DESTINATION_RECT_DATA + { + BOOL Enable; + RECT DestinationRect; + } DXVAHD_STREAM_STATE_DESTINATION_RECT_DATA; + +typedef struct _DXVAHD_STREAM_STATE_ALPHA_DATA + { + BOOL Enable; + FLOAT Alpha; + } DXVAHD_STREAM_STATE_ALPHA_DATA; + +typedef struct _DXVAHD_STREAM_STATE_PALETTE_DATA + { + UINT Count; + D3DCOLOR *pEntries; + } DXVAHD_STREAM_STATE_PALETTE_DATA; + +typedef struct _DXVAHD_STREAM_STATE_LUMA_KEY_DATA + { + BOOL Enable; + FLOAT Lower; + FLOAT Upper; + } DXVAHD_STREAM_STATE_LUMA_KEY_DATA; + +typedef struct _DXVAHD_STREAM_STATE_ASPECT_RATIO_DATA + { + BOOL Enable; + DXVAHD_RATIONAL SourceAspectRatio; + DXVAHD_RATIONAL DestinationAspectRatio; + } DXVAHD_STREAM_STATE_ASPECT_RATIO_DATA; + +typedef struct _DXVAHD_STREAM_STATE_FILTER_DATA + { + BOOL Enable; + INT Level; + } DXVAHD_STREAM_STATE_FILTER_DATA; + +typedef struct _DXVAHD_STREAM_STATE_PRIVATE_DATA + { + GUID Guid; + UINT DataSize; + void *pData; + } DXVAHD_STREAM_STATE_PRIVATE_DATA; + +typedef struct _DXVAHD_STREAM_DATA + { + BOOL Enable; + UINT OutputIndex; + UINT InputFrameOrField; + UINT PastFrames; + UINT FutureFrames; + IDirect3DSurface9 **ppPastSurfaces; + IDirect3DSurface9 *pInputSurface; + IDirect3DSurface9 **ppFutureSurfaces; + } DXVAHD_STREAM_DATA; + + + +DEFINE_GUID(DXVAHD_STREAM_STATE_PRIVATE_IVTC, 0x9c601e3c,0x0f33,0x414c,0xa7,0x39,0x99,0x54,0x0e,0xe4,0x2d,0xa5); + + +typedef struct _DXVAHD_STREAM_STATE_PRIVATE_IVTC_DATA + { + BOOL Enable; + UINT ITelecineFlags; + UINT Frames; + UINT InputField; + } DXVAHD_STREAM_STATE_PRIVATE_IVTC_DATA; + + + +extern RPC_IF_HANDLE __MIDL_itf_dxvahd_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dxvahd_0000_0000_v0_0_s_ifspec; + +#ifndef __IDXVAHD_Device_INTERFACE_DEFINED__ +#define __IDXVAHD_Device_INTERFACE_DEFINED__ + +/* interface IDXVAHD_Device */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDXVAHD_Device; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("95f12dfd-d77e-49be-815f-57d579634d6d") + IDXVAHD_Device : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE CreateVideoSurface( + /* [annotation][in] */ + _In_ UINT Width, + /* [annotation][in] */ + _In_ UINT Height, + /* [annotation][in] */ + _In_ D3DFORMAT Format, + /* [annotation][in] */ + _In_ D3DPOOL Pool, + /* [annotation][in] */ + _In_ DWORD Usage, + /* [annotation][in] */ + _In_ DXVAHD_SURFACE_TYPE Type, + /* [annotation][in] */ + _In_ UINT NumSurfaces, + /* [annotation][size_is][out] */ + _Out_writes_(NumSurfaces) IDirect3DSurface9 **ppSurfaces, + /* [annotation][out][in] */ + _Inout_opt_ HANDLE *pSharedHandle) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorDeviceCaps( + /* [annotation][out] */ + _Out_ DXVAHD_VPDEVCAPS *pCaps) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorOutputFormats( + /* [annotation][in] */ + _In_ UINT Count, + /* [annotation][size_is][out] */ + _Out_writes_(Count) D3DFORMAT *pFormats) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorInputFormats( + /* [annotation][in] */ + _In_ UINT Count, + /* [annotation][size_is][out] */ + _Out_writes_(Count) D3DFORMAT *pFormats) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorCaps( + /* [annotation][in] */ + _In_ UINT Count, + /* [annotation][size_is][out] */ + _Out_writes_(Count) DXVAHD_VPCAPS *pCaps) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorCustomRates( + /* [annotation][in] */ + _In_ const GUID *pVPGuid, + /* [annotation][in] */ + _In_ UINT Count, + /* [annotation][size_is][out] */ + _Out_writes_(Count) DXVAHD_CUSTOM_RATE_DATA *pRates) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorFilterRange( + /* [annotation][in] */ + _In_ DXVAHD_FILTER Filter, + /* [annotation][out] */ + _Out_ DXVAHD_FILTER_RANGE_DATA *pRange) = 0; + + virtual HRESULT STDMETHODCALLTYPE CreateVideoProcessor( + /* [annotation][in] */ + _In_ const GUID *pVPGuid, + /* [annotation][out] */ + _Outptr_ IDXVAHD_VideoProcessor **ppVideoProcessor) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDXVAHD_DeviceVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDXVAHD_Device * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDXVAHD_Device * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDXVAHD_Device * This); + + DECLSPEC_XFGVIRT(IDXVAHD_Device, CreateVideoSurface) + HRESULT ( STDMETHODCALLTYPE *CreateVideoSurface )( + IDXVAHD_Device * This, + /* [annotation][in] */ + _In_ UINT Width, + /* [annotation][in] */ + _In_ UINT Height, + /* [annotation][in] */ + _In_ D3DFORMAT Format, + /* [annotation][in] */ + _In_ D3DPOOL Pool, + /* [annotation][in] */ + _In_ DWORD Usage, + /* [annotation][in] */ + _In_ DXVAHD_SURFACE_TYPE Type, + /* [annotation][in] */ + _In_ UINT NumSurfaces, + /* [annotation][size_is][out] */ + _Out_writes_(NumSurfaces) IDirect3DSurface9 **ppSurfaces, + /* [annotation][out][in] */ + _Inout_opt_ HANDLE *pSharedHandle); + + DECLSPEC_XFGVIRT(IDXVAHD_Device, GetVideoProcessorDeviceCaps) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorDeviceCaps )( + IDXVAHD_Device * This, + /* [annotation][out] */ + _Out_ DXVAHD_VPDEVCAPS *pCaps); + + DECLSPEC_XFGVIRT(IDXVAHD_Device, GetVideoProcessorOutputFormats) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorOutputFormats )( + IDXVAHD_Device * This, + /* [annotation][in] */ + _In_ UINT Count, + /* [annotation][size_is][out] */ + _Out_writes_(Count) D3DFORMAT *pFormats); + + DECLSPEC_XFGVIRT(IDXVAHD_Device, GetVideoProcessorInputFormats) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorInputFormats )( + IDXVAHD_Device * This, + /* [annotation][in] */ + _In_ UINT Count, + /* [annotation][size_is][out] */ + _Out_writes_(Count) D3DFORMAT *pFormats); + + DECLSPEC_XFGVIRT(IDXVAHD_Device, GetVideoProcessorCaps) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorCaps )( + IDXVAHD_Device * This, + /* [annotation][in] */ + _In_ UINT Count, + /* [annotation][size_is][out] */ + _Out_writes_(Count) DXVAHD_VPCAPS *pCaps); + + DECLSPEC_XFGVIRT(IDXVAHD_Device, GetVideoProcessorCustomRates) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorCustomRates )( + IDXVAHD_Device * This, + /* [annotation][in] */ + _In_ const GUID *pVPGuid, + /* [annotation][in] */ + _In_ UINT Count, + /* [annotation][size_is][out] */ + _Out_writes_(Count) DXVAHD_CUSTOM_RATE_DATA *pRates); + + DECLSPEC_XFGVIRT(IDXVAHD_Device, GetVideoProcessorFilterRange) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorFilterRange )( + IDXVAHD_Device * This, + /* [annotation][in] */ + _In_ DXVAHD_FILTER Filter, + /* [annotation][out] */ + _Out_ DXVAHD_FILTER_RANGE_DATA *pRange); + + DECLSPEC_XFGVIRT(IDXVAHD_Device, CreateVideoProcessor) + HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessor )( + IDXVAHD_Device * This, + /* [annotation][in] */ + _In_ const GUID *pVPGuid, + /* [annotation][out] */ + _Outptr_ IDXVAHD_VideoProcessor **ppVideoProcessor); + + END_INTERFACE + } IDXVAHD_DeviceVtbl; + + interface IDXVAHD_Device + { + CONST_VTBL struct IDXVAHD_DeviceVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDXVAHD_Device_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDXVAHD_Device_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDXVAHD_Device_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDXVAHD_Device_CreateVideoSurface(This,Width,Height,Format,Pool,Usage,Type,NumSurfaces,ppSurfaces,pSharedHandle) \ + ( (This)->lpVtbl -> CreateVideoSurface(This,Width,Height,Format,Pool,Usage,Type,NumSurfaces,ppSurfaces,pSharedHandle) ) + +#define IDXVAHD_Device_GetVideoProcessorDeviceCaps(This,pCaps) \ + ( (This)->lpVtbl -> GetVideoProcessorDeviceCaps(This,pCaps) ) + +#define IDXVAHD_Device_GetVideoProcessorOutputFormats(This,Count,pFormats) \ + ( (This)->lpVtbl -> GetVideoProcessorOutputFormats(This,Count,pFormats) ) + +#define IDXVAHD_Device_GetVideoProcessorInputFormats(This,Count,pFormats) \ + ( (This)->lpVtbl -> GetVideoProcessorInputFormats(This,Count,pFormats) ) + +#define IDXVAHD_Device_GetVideoProcessorCaps(This,Count,pCaps) \ + ( (This)->lpVtbl -> GetVideoProcessorCaps(This,Count,pCaps) ) + +#define IDXVAHD_Device_GetVideoProcessorCustomRates(This,pVPGuid,Count,pRates) \ + ( (This)->lpVtbl -> GetVideoProcessorCustomRates(This,pVPGuid,Count,pRates) ) + +#define IDXVAHD_Device_GetVideoProcessorFilterRange(This,Filter,pRange) \ + ( (This)->lpVtbl -> GetVideoProcessorFilterRange(This,Filter,pRange) ) + +#define IDXVAHD_Device_CreateVideoProcessor(This,pVPGuid,ppVideoProcessor) \ + ( (This)->lpVtbl -> CreateVideoProcessor(This,pVPGuid,ppVideoProcessor) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDXVAHD_Device_INTERFACE_DEFINED__ */ + + +#ifndef __IDXVAHD_VideoProcessor_INTERFACE_DEFINED__ +#define __IDXVAHD_VideoProcessor_INTERFACE_DEFINED__ + +/* interface IDXVAHD_VideoProcessor */ +/* [local][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDXVAHD_VideoProcessor; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("95f4edf4-6e03-4cd7-be1b-3075d665aa52") + IDXVAHD_VideoProcessor : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE SetVideoProcessBltState( + /* [annotation][in] */ + _In_ DXVAHD_BLT_STATE State, + /* [annotation][in] */ + _In_ UINT DataSize, + /* [annotation][in] */ + _In_reads_bytes_(DataSize) const void *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessBltState( + /* [annotation][in] */ + _In_ DXVAHD_BLT_STATE State, + /* [annotation][in] */ + _In_ UINT DataSize, + /* [annotation][out] */ + _Inout_updates_bytes_(DataSize) void *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE SetVideoProcessStreamState( + /* [annotation][in] */ + _In_ UINT StreamNumber, + /* [annotation][in] */ + _In_ DXVAHD_STREAM_STATE State, + /* [annotation][in] */ + _In_ UINT DataSize, + /* [annotation][in] */ + _In_reads_bytes_(DataSize) const void *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetVideoProcessStreamState( + /* [annotation][in] */ + _In_ UINT StreamNumber, + /* [annotation][in] */ + _In_ DXVAHD_STREAM_STATE State, + /* [annotation][in] */ + _In_ UINT DataSize, + /* [annotation][out] */ + _Inout_updates_bytes_(DataSize) void *pData) = 0; + + virtual HRESULT STDMETHODCALLTYPE VideoProcessBltHD( + /* [annotation][in] */ + _In_ IDirect3DSurface9 *pOutputSurface, + /* [annotation][in] */ + _In_ UINT OutputFrame, + /* [annotation][in] */ + _In_ UINT StreamCount, + /* [annotation][size_is][in] */ + _In_reads_(StreamCount) const DXVAHD_STREAM_DATA *pStreams) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDXVAHD_VideoProcessorVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IDXVAHD_VideoProcessor * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IDXVAHD_VideoProcessor * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IDXVAHD_VideoProcessor * This); + + DECLSPEC_XFGVIRT(IDXVAHD_VideoProcessor, SetVideoProcessBltState) + HRESULT ( STDMETHODCALLTYPE *SetVideoProcessBltState )( + IDXVAHD_VideoProcessor * This, + /* [annotation][in] */ + _In_ DXVAHD_BLT_STATE State, + /* [annotation][in] */ + _In_ UINT DataSize, + /* [annotation][in] */ + _In_reads_bytes_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(IDXVAHD_VideoProcessor, GetVideoProcessBltState) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessBltState )( + IDXVAHD_VideoProcessor * This, + /* [annotation][in] */ + _In_ DXVAHD_BLT_STATE State, + /* [annotation][in] */ + _In_ UINT DataSize, + /* [annotation][out] */ + _Inout_updates_bytes_(DataSize) void *pData); + + DECLSPEC_XFGVIRT(IDXVAHD_VideoProcessor, SetVideoProcessStreamState) + HRESULT ( STDMETHODCALLTYPE *SetVideoProcessStreamState )( + IDXVAHD_VideoProcessor * This, + /* [annotation][in] */ + _In_ UINT StreamNumber, + /* [annotation][in] */ + _In_ DXVAHD_STREAM_STATE State, + /* [annotation][in] */ + _In_ UINT DataSize, + /* [annotation][in] */ + _In_reads_bytes_(DataSize) const void *pData); + + DECLSPEC_XFGVIRT(IDXVAHD_VideoProcessor, GetVideoProcessStreamState) + HRESULT ( STDMETHODCALLTYPE *GetVideoProcessStreamState )( + IDXVAHD_VideoProcessor * This, + /* [annotation][in] */ + _In_ UINT StreamNumber, + /* [annotation][in] */ + _In_ DXVAHD_STREAM_STATE State, + /* [annotation][in] */ + _In_ UINT DataSize, + /* [annotation][out] */ + _Inout_updates_bytes_(DataSize) void *pData); + + DECLSPEC_XFGVIRT(IDXVAHD_VideoProcessor, VideoProcessBltHD) + HRESULT ( STDMETHODCALLTYPE *VideoProcessBltHD )( + IDXVAHD_VideoProcessor * This, + /* [annotation][in] */ + _In_ IDirect3DSurface9 *pOutputSurface, + /* [annotation][in] */ + _In_ UINT OutputFrame, + /* [annotation][in] */ + _In_ UINT StreamCount, + /* [annotation][size_is][in] */ + _In_reads_(StreamCount) const DXVAHD_STREAM_DATA *pStreams); + + END_INTERFACE + } IDXVAHD_VideoProcessorVtbl; + + interface IDXVAHD_VideoProcessor + { + CONST_VTBL struct IDXVAHD_VideoProcessorVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDXVAHD_VideoProcessor_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDXVAHD_VideoProcessor_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDXVAHD_VideoProcessor_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDXVAHD_VideoProcessor_SetVideoProcessBltState(This,State,DataSize,pData) \ + ( (This)->lpVtbl -> SetVideoProcessBltState(This,State,DataSize,pData) ) + +#define IDXVAHD_VideoProcessor_GetVideoProcessBltState(This,State,DataSize,pData) \ + ( (This)->lpVtbl -> GetVideoProcessBltState(This,State,DataSize,pData) ) + +#define IDXVAHD_VideoProcessor_SetVideoProcessStreamState(This,StreamNumber,State,DataSize,pData) \ + ( (This)->lpVtbl -> SetVideoProcessStreamState(This,StreamNumber,State,DataSize,pData) ) + +#define IDXVAHD_VideoProcessor_GetVideoProcessStreamState(This,StreamNumber,State,DataSize,pData) \ + ( (This)->lpVtbl -> GetVideoProcessStreamState(This,StreamNumber,State,DataSize,pData) ) + +#define IDXVAHD_VideoProcessor_VideoProcessBltHD(This,pOutputSurface,OutputFrame,StreamCount,pStreams) \ + ( (This)->lpVtbl -> VideoProcessBltHD(This,pOutputSurface,OutputFrame,StreamCount,pStreams) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDXVAHD_VideoProcessor_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_dxvahd_0000_0002 */ +/* [local] */ + + + +typedef HRESULT (CALLBACK* PDXVAHDSW_CreateDevice)( + _In_ IDirect3DDevice9Ex* pD3DDevice, + _Out_ HANDLE* phDevice + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_ProposeVideoPrivateFormat)( + _In_ HANDLE hDevice, + _Inout_ D3DFORMAT* pFormat + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorDeviceCaps)( + _In_ HANDLE hDevice, + _In_ const DXVAHD_CONTENT_DESC* pContentDesc, + _In_ DXVAHD_DEVICE_USAGE Usage, + _Out_ DXVAHD_VPDEVCAPS* pCaps + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorOutputFormats)( + _In_ HANDLE hDevice, + _In_ const DXVAHD_CONTENT_DESC* pContentDesc, + _In_ DXVAHD_DEVICE_USAGE Usage, + _In_ UINT Count, + _Out_writes_(Count) D3DFORMAT* pFormats + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorInputFormats)( + _In_ HANDLE hDevice, + _In_ const DXVAHD_CONTENT_DESC* pContentDesc, + _In_ DXVAHD_DEVICE_USAGE Usage, + _In_ UINT Count, + _Out_writes_(Count) D3DFORMAT* pFormats + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorCaps)( + _In_ HANDLE hDevice, + _In_ const DXVAHD_CONTENT_DESC* pContentDesc, + _In_ DXVAHD_DEVICE_USAGE Usage, + _In_ UINT Count, + _Out_writes_(Count) DXVAHD_VPCAPS* pCaps + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorCustomRates)( + _In_ HANDLE hDevice, + _In_ const GUID* pVPGuid, + _In_ UINT Count, + _Out_writes_(Count) DXVAHD_CUSTOM_RATE_DATA* pRates + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorFilterRange)( + _In_ HANDLE hDevice, + _In_ DXVAHD_FILTER Filter, + _Out_ DXVAHD_FILTER_RANGE_DATA* pRange + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_DestroyDevice)( + _In_ HANDLE hDevice + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_CreateVideoProcessor)( + _In_ HANDLE hDevice, + _In_ const GUID* pVPGuid, + _Out_ HANDLE* phVideoProcessor + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_SetVideoProcessBltState)( + _In_ HANDLE hVideoProcessor, + _In_ DXVAHD_BLT_STATE State, + _In_ UINT DataSize, + _In_reads_bytes_(DataSize) const void* pData + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessBltStatePrivate)( + _In_ HANDLE hVideoProcessor, + _Inout_ DXVAHD_BLT_STATE_PRIVATE_DATA* pData + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_SetVideoProcessStreamState)( + _In_ HANDLE hVideoProcessor, + _In_ UINT StreamNumber, + _In_ DXVAHD_STREAM_STATE State, + _In_ UINT DataSize, + _In_reads_bytes_(DataSize) const void* pData + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessStreamStatePrivate)( + _In_ HANDLE hVideoProcessor, + _In_ UINT StreamNumber, + _Inout_ DXVAHD_STREAM_STATE_PRIVATE_DATA* pData + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_VideoProcessBltHD)( + _In_ HANDLE hVideoProcessor, + _In_ IDirect3DSurface9* pOutputSurface, + _In_ UINT OutputFrame, + _In_ UINT StreamCount, + _In_reads_(StreamCount) const DXVAHD_STREAM_DATA* pStreams + ); + +typedef HRESULT (CALLBACK* PDXVAHDSW_DestroyVideoProcessor)( + _In_ HANDLE hVideoProcessor + ); + +typedef struct _DXVAHDSW_CALLBACKS +{ + PDXVAHDSW_CreateDevice CreateDevice; + PDXVAHDSW_ProposeVideoPrivateFormat ProposeVideoPrivateFormat; + PDXVAHDSW_GetVideoProcessorDeviceCaps GetVideoProcessorDeviceCaps; + PDXVAHDSW_GetVideoProcessorOutputFormats GetVideoProcessorOutputFormats; + PDXVAHDSW_GetVideoProcessorInputFormats GetVideoProcessorInputFormats; + PDXVAHDSW_GetVideoProcessorCaps GetVideoProcessorCaps; + PDXVAHDSW_GetVideoProcessorCustomRates GetVideoProcessorCustomRates; + PDXVAHDSW_GetVideoProcessorFilterRange GetVideoProcessorFilterRange; + PDXVAHDSW_DestroyDevice DestroyDevice; + PDXVAHDSW_CreateVideoProcessor CreateVideoProcessor; + PDXVAHDSW_SetVideoProcessBltState SetVideoProcessBltState; + PDXVAHDSW_GetVideoProcessBltStatePrivate GetVideoProcessBltStatePrivate; + PDXVAHDSW_SetVideoProcessStreamState SetVideoProcessStreamState; + PDXVAHDSW_GetVideoProcessStreamStatePrivate GetVideoProcessStreamStatePrivate; + PDXVAHDSW_VideoProcessBltHD VideoProcessBltHD; + PDXVAHDSW_DestroyVideoProcessor DestroyVideoProcessor; +} DXVAHDSW_CALLBACKS; + +typedef HRESULT (CALLBACK* PDXVAHDSW_Plugin)( + _In_ UINT Size, + _Out_writes_bytes_(Size) void* pCallbacks + ); + + + + +DEFINE_GUID(DXVAHDControlGuid, 0xa0386e75,0xf70c,0x464c,0xa9,0xce,0x33,0xc4,0x4e,0x09,0x16,0x23); // DXVA2Trace_Control + +DEFINE_GUID(DXVAHDETWGUID_CREATEVIDEOPROCESSOR, 0x681e3d1e,0x5674,0x4fb3,0xa5,0x03,0x2f,0x20,0x55,0xe9,0x1f,0x60); +DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSBLTSTATE, 0x76c94b5a,0x193f,0x4692,0x94,0x84,0xa4,0xd9,0x99,0xda,0x81,0xa8); +DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSSTREAMSTATE, 0x262c0b02,0x209d,0x47ed,0x94,0xd8,0x82,0xae,0x02,0xb8,0x4a,0xa7); +DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSBLTHD, 0xbef3d435,0x78c7,0x4de3,0x97,0x07,0xcd,0x1b,0x08,0x3b,0x16,0x0a); +DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSBLTHD_STREAM, 0x27ae473e,0xa5fc,0x4be5,0xb4,0xe3,0xf2,0x49,0x94,0xd3,0xc4,0x95); +DEFINE_GUID(DXVAHDETWGUID_DESTROYVIDEOPROCESSOR, 0xf943f0a0,0x3f16,0x43e0,0x80,0x93,0x10,0x5a,0x98,0x6a,0xa5,0xf1); + + +typedef struct _DXVAHDETW_CREATEVIDEOPROCESSOR + { + ULONGLONG pObject; + ULONGLONG pD3D9Ex; + GUID VPGuid; + } DXVAHDETW_CREATEVIDEOPROCESSOR; + +typedef struct _DXVAHDETW_VIDEOPROCESSBLTSTATE + { + ULONGLONG pObject; + DXVAHD_BLT_STATE State; + UINT DataSize; + BOOL SetState; + } DXVAHDETW_VIDEOPROCESSBLTSTATE; + +typedef struct _DXVAHDETW_VIDEOPROCESSSTREAMSTATE + { + ULONGLONG pObject; + UINT StreamNumber; + DXVAHD_STREAM_STATE State; + UINT DataSize; + BOOL SetState; + } DXVAHDETW_VIDEOPROCESSSTREAMSTATE; + +typedef struct _DXVAHDETW_VIDEOPROCESSBLTHD + { + ULONGLONG pObject; + ULONGLONG pOutputSurface; + RECT TargetRect; + D3DFORMAT OutputFormat; + UINT ColorSpace; + UINT OutputFrame; + UINT StreamCount; + BOOL Enter; + } DXVAHDETW_VIDEOPROCESSBLTHD; + +typedef struct _DXVAHDETW_VIDEOPROCESSBLTHD_STREAM + { + ULONGLONG pObject; + ULONGLONG pInputSurface; + RECT SourceRect; + RECT DestinationRect; + D3DFORMAT InputFormat; + DXVAHD_FRAME_FORMAT FrameFormat; + UINT ColorSpace; + UINT StreamNumber; + UINT OutputIndex; + UINT InputFrameOrField; + UINT PastFrames; + UINT FutureFrames; + } DXVAHDETW_VIDEOPROCESSBLTHD_STREAM; + +typedef struct _DXVAHDETW_DESTROYVIDEOPROCESSOR + { + ULONGLONG pObject; + } DXVAHDETW_DESTROYVIDEOPROCESSOR; + + + +HRESULT WINAPI +DXVAHD_CreateDevice( + _In_ IDirect3DDevice9Ex* pD3DDevice, + _In_ const DXVAHD_CONTENT_DESC* pContentDesc, + _In_ DXVAHD_DEVICE_USAGE Usage, + _In_opt_ PDXVAHDSW_Plugin pPlugin, + _Outptr_ IDXVAHD_Device** ppDevice + ); + +typedef HRESULT (WINAPI* PDXVAHD_CreateDevice)( + _In_ IDirect3DDevice9Ex* pD3DDevice, + _In_ const DXVAHD_CONTENT_DESC* pContentDesc, + _In_ DXVAHD_DEVICE_USAGE Usage, + _In_opt_ PDXVAHDSW_Plugin pPlugin, + _Outptr_ IDXVAHD_Device** ppDevice + ); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_dxvahd_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_dxvahd_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxvahd.idl b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxvahd.idl new file mode 100644 index 0000000000000000000000000000000000000000..94a932411a61343cf2d0f4766e7fa5ec3515613a --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxvahd.idl @@ -0,0 +1,818 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// DXVA-HD IDL +// +// Contains interface definitions for DirectX Video Acceleration for HD API. +// +// Copyright (C) Microsoft Corporation +// +/////////////////////////////////////////////////////////////////////////////// + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +import "unknwn.idl"; + + +// +// TEMPORARY DECLARATIONS FOR MIDL COMPILER +// + +cpp_quote("#if 0") + +typedef DWORD IDirect3DDevice9Ex; +typedef DWORD IDirect3DSurface9; +typedef DWORD D3DCOLOR; +typedef DWORD D3DFORMAT; +typedef DWORD D3DPOOL; + +cpp_quote("#endif // 0") + + +// +// DXVA-HD COM INTERFACE ID +// + +cpp_quote("#if defined(_WIN32) && !defined(_NO_COM)") + +cpp_quote("") +cpp_quote("") +cpp_quote("DEFINE_GUID(IID_IDXVAHD_Device, 0x95f12dfd,0xd77e,0x49be,0x81,0x5f,0x57,0xd5,0x79,0x63,0x4d,0x6d);") +cpp_quote("DEFINE_GUID(IID_IDXVAHD_VideoProcessor, 0x95f4edf4,0x6e03,0x4cd7,0xbe,0x1b,0x30,0x75,0xd6,0x65,0xaa,0x52);") +cpp_quote("") +cpp_quote("") + +cpp_quote("#endif") + + +// +// FORWARD DECLARATIONS +// + +interface IDXVAHD_Device; +interface IDXVAHD_VideoProcessor; + + +// +// DXVA-HD API ENUMERATIONS +// + +typedef enum _DXVAHD_FRAME_FORMAT +{ + DXVAHD_FRAME_FORMAT_PROGRESSIVE = 0, + DXVAHD_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1, + DXVAHD_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2 +} DXVAHD_FRAME_FORMAT; + +typedef enum _DXVAHD_DEVICE_USAGE +{ + DXVAHD_DEVICE_USAGE_PLAYBACK_NORMAL = 0, + DXVAHD_DEVICE_USAGE_OPTIMAL_SPEED = 1, + DXVAHD_DEVICE_USAGE_OPTIMAL_QUALITY = 2 +} DXVAHD_DEVICE_USAGE; + +typedef enum _DXVAHD_SURFACE_TYPE +{ + DXVAHD_SURFACE_TYPE_VIDEO_INPUT = 0, + DXVAHD_SURFACE_TYPE_VIDEO_INPUT_PRIVATE = 1, + DXVAHD_SURFACE_TYPE_VIDEO_OUTPUT = 2 +} DXVAHD_SURFACE_TYPE; + +typedef enum _DXVAHD_DEVICE_TYPE +{ + DXVAHD_DEVICE_TYPE_HARDWARE = 0, + DXVAHD_DEVICE_TYPE_SOFTWARE = 1, + DXVAHD_DEVICE_TYPE_REFERENCE = 2, + DXVAHD_DEVICE_TYPE_OTHER = 3 +} DXVAHD_DEVICE_TYPE; + +typedef enum _DXVAHD_DEVICE_CAPS +{ + DXVAHD_DEVICE_CAPS_LINEAR_SPACE = 0x1, + DXVAHD_DEVICE_CAPS_xvYCC = 0x2, + DXVAHD_DEVICE_CAPS_RGB_RANGE_CONVERSION = 0x4, + DXVAHD_DEVICE_CAPS_YCbCr_MATRIX_CONVERSION = 0x8 +} DXVAHD_DEVICE_CAPS; + +typedef enum _DXVAHD_FEATURE_CAPS +{ + DXVAHD_FEATURE_CAPS_ALPHA_FILL = 0x1, + DXVAHD_FEATURE_CAPS_CONSTRICTION = 0x2, + DXVAHD_FEATURE_CAPS_LUMA_KEY = 0x4, + DXVAHD_FEATURE_CAPS_ALPHA_PALETTE = 0x8 +} DXVAHD_FEATURE_CAPS; + +typedef enum _DXVAHD_FILTER_CAPS +{ + DXVAHD_FILTER_CAPS_BRIGHTNESS = 0x1, + DXVAHD_FILTER_CAPS_CONTRAST = 0x2, + DXVAHD_FILTER_CAPS_HUE = 0x4, + DXVAHD_FILTER_CAPS_SATURATION = 0x8, + DXVAHD_FILTER_CAPS_NOISE_REDUCTION = 0x10, + DXVAHD_FILTER_CAPS_EDGE_ENHANCEMENT = 0x20, + DXVAHD_FILTER_CAPS_ANAMORPHIC_SCALING = 0x40 +} DXVAHD_FILTER_CAPS; + +typedef enum _DXVAHD_INPUT_FORMAT_CAPS +{ + DXVAHD_INPUT_FORMAT_CAPS_RGB_INTERLACED = 0x1, + DXVAHD_INPUT_FORMAT_CAPS_RGB_PROCAMP = 0x2, + DXVAHD_INPUT_FORMAT_CAPS_RGB_LUMA_KEY = 0x4, + DXVAHD_INPUT_FORMAT_CAPS_PALETTE_INTERLACED = 0x8 +} DXVAHD_INPUT_FORMAT_CAPS; + +typedef enum _DXVAHD_PROCESSOR_CAPS +{ + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_BLEND = 0x1, + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_BOB = 0x2, + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE = 0x4, + DXVAHD_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION = 0x8, + DXVAHD_PROCESSOR_CAPS_INVERSE_TELECINE = 0x10, + DXVAHD_PROCESSOR_CAPS_FRAME_RATE_CONVERSION = 0x20 +} DXVAHD_PROCESSOR_CAPS; + +typedef enum _DXVAHD_ITELECINE_CAPS +{ + DXVAHD_ITELECINE_CAPS_32 = 0x1, + DXVAHD_ITELECINE_CAPS_22 = 0x2, + DXVAHD_ITELECINE_CAPS_2224 = 0x4, + DXVAHD_ITELECINE_CAPS_2332 = 0x8, + DXVAHD_ITELECINE_CAPS_32322 = 0x10, + DXVAHD_ITELECINE_CAPS_55 = 0x20, + DXVAHD_ITELECINE_CAPS_64 = 0x40, + DXVAHD_ITELECINE_CAPS_87 = 0x80, + DXVAHD_ITELECINE_CAPS_222222222223 = 0x100, + DXVAHD_ITELECINE_CAPS_OTHER = 0x80000000 +} DXVAHD_ITELECINE_CAPS; + +typedef enum _DXVAHD_FILTER +{ + DXVAHD_FILTER_BRIGHTNESS = 0, + DXVAHD_FILTER_CONTRAST = 1, + DXVAHD_FILTER_HUE = 2, + DXVAHD_FILTER_SATURATION = 3, + DXVAHD_FILTER_NOISE_REDUCTION = 4, + DXVAHD_FILTER_EDGE_ENHANCEMENT = 5, + DXVAHD_FILTER_ANAMORPHIC_SCALING = 6 +} DXVAHD_FILTER; + +typedef enum _DXVAHD_BLT_STATE +{ + DXVAHD_BLT_STATE_TARGET_RECT = 0, + DXVAHD_BLT_STATE_BACKGROUND_COLOR = 1, + DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE = 2, + DXVAHD_BLT_STATE_ALPHA_FILL = 3, + DXVAHD_BLT_STATE_CONSTRICTION = 4, + DXVAHD_BLT_STATE_PRIVATE = 1000 +} DXVAHD_BLT_STATE; + +typedef enum _DXVAHD_ALPHA_FILL_MODE +{ + DXVAHD_ALPHA_FILL_MODE_OPAQUE = 0, + DXVAHD_ALPHA_FILL_MODE_BACKGROUND = 1, + DXVAHD_ALPHA_FILL_MODE_DESTINATION = 2, + DXVAHD_ALPHA_FILL_MODE_SOURCE_STREAM = 3 +} DXVAHD_ALPHA_FILL_MODE; + +typedef enum _DXVAHD_STREAM_STATE +{ + DXVAHD_STREAM_STATE_D3DFORMAT = 0, + DXVAHD_STREAM_STATE_FRAME_FORMAT = 1, + DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE = 2, + DXVAHD_STREAM_STATE_OUTPUT_RATE = 3, + DXVAHD_STREAM_STATE_SOURCE_RECT = 4, + DXVAHD_STREAM_STATE_DESTINATION_RECT = 5, + DXVAHD_STREAM_STATE_ALPHA = 6, + DXVAHD_STREAM_STATE_PALETTE = 7, + DXVAHD_STREAM_STATE_LUMA_KEY = 8, + DXVAHD_STREAM_STATE_ASPECT_RATIO = 9, + DXVAHD_STREAM_STATE_FILTER_BRIGHTNESS = 100, + DXVAHD_STREAM_STATE_FILTER_CONTRAST = 101, + DXVAHD_STREAM_STATE_FILTER_HUE = 102, + DXVAHD_STREAM_STATE_FILTER_SATURATION = 103, + DXVAHD_STREAM_STATE_FILTER_NOISE_REDUCTION = 104, + DXVAHD_STREAM_STATE_FILTER_EDGE_ENHANCEMENT = 105, + DXVAHD_STREAM_STATE_FILTER_ANAMORPHIC_SCALING = 106, + DXVAHD_STREAM_STATE_PRIVATE = 1000 +} DXVAHD_STREAM_STATE; + +typedef enum _DXVAHD_OUTPUT_RATE +{ + DXVAHD_OUTPUT_RATE_NORMAL = 0, + DXVAHD_OUTPUT_RATE_HALF = 1, + DXVAHD_OUTPUT_RATE_CUSTOM = 2 +} DXVAHD_OUTPUT_RATE; + + +// +// DXVA-HD API STRUCTURES +// + +typedef struct _DXVAHD_RATIONAL +{ + UINT Numerator; + UINT Denominator; +} DXVAHD_RATIONAL; + +typedef struct _DXVAHD_COLOR_RGBA +{ + FLOAT R; + FLOAT G; + FLOAT B; + FLOAT A; +} DXVAHD_COLOR_RGBA; + +typedef struct _DXVAHD_COLOR_YCbCrA +{ + FLOAT Y; + FLOAT Cb; + FLOAT Cr; + FLOAT A; +} DXVAHD_COLOR_YCbCrA; + +typedef union _DXVAHD_COLOR +{ + DXVAHD_COLOR_RGBA RGB; + DXVAHD_COLOR_YCbCrA YCbCr; +} DXVAHD_COLOR; + +typedef struct _DXVAHD_CONTENT_DESC +{ + DXVAHD_FRAME_FORMAT InputFrameFormat; + DXVAHD_RATIONAL InputFrameRate; + UINT InputWidth; + UINT InputHeight; + DXVAHD_RATIONAL OutputFrameRate; + UINT OutputWidth; + UINT OutputHeight; +} DXVAHD_CONTENT_DESC; + +typedef struct _DXVAHD_VPDEVCAPS +{ + DXVAHD_DEVICE_TYPE DeviceType; + UINT DeviceCaps; // DXVAHD_DEVICE_CAPS + UINT FeatureCaps; // DXVAHD_FEATURE_CAPS + UINT FilterCaps; // DXVAHD_FILTER_CAPS + UINT InputFormatCaps; // DXVAHD_INPUT_FORMAT_CAPS + D3DPOOL InputPool; + UINT OutputFormatCount; + UINT InputFormatCount; + UINT VideoProcessorCount; + UINT MaxInputStreams; + UINT MaxStreamStates; +} DXVAHD_VPDEVCAPS; + +typedef struct _DXVAHD_VPCAPS +{ + GUID VPGuid; + UINT PastFrames; + UINT FutureFrames; + UINT ProcessorCaps; // DXVAHD_PROCESSOR_CAPS + UINT ITelecineCaps; // DXVAHD_ITELECINE_CAPS + UINT CustomRateCount; +} DXVAHD_VPCAPS; + +typedef struct _DXVAHD_CUSTOM_RATE_DATA +{ + DXVAHD_RATIONAL CustomRate; + UINT OutputFrames; + BOOL InputInterlaced; + UINT InputFramesOrFields; +} DXVAHD_CUSTOM_RATE_DATA; + +typedef struct _DXVAHD_FILTER_RANGE_DATA +{ + INT Minimum; + INT Maximum; + INT Default; + FLOAT Multiplier; +} DXVAHD_FILTER_RANGE_DATA; + +typedef struct _DXVAHD_BLT_STATE_TARGET_RECT_DATA +{ + BOOL Enable; + RECT TargetRect; +} DXVAHD_BLT_STATE_TARGET_RECT_DATA; + +typedef struct _DXVAHD_BLT_STATE_BACKGROUND_COLOR_DATA +{ + BOOL YCbCr; + DXVAHD_COLOR BackgroundColor; +} DXVAHD_BLT_STATE_BACKGROUND_COLOR_DATA; + +typedef struct _DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE_DATA +{ + union + { + struct + { + UINT Usage : 1; // 0:Playback, 1:Processing + UINT RGB_Range : 1; // 0:Full(0-255), 1:Limited(16-235) + UINT YCbCr_Matrix : 1; // 0:BT.601(SDTV), 1:BT.709(HDTV) + UINT YCbCr_xvYCC : 1; // 0:Conventional, 1:Extended(xvYCC) + UINT Reserved : 28; + }; + + UINT Value; + }; +} DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE_DATA; + +typedef struct _DXVAHD_BLT_STATE_ALPHA_FILL_DATA +{ + DXVAHD_ALPHA_FILL_MODE Mode; + UINT StreamNumber; +} DXVAHD_BLT_STATE_ALPHA_FILL_DATA; + +typedef struct _DXVAHD_BLT_STATE_CONSTRICTION_DATA +{ + BOOL Enable; + SIZE Size; +} DXVAHD_BLT_STATE_CONSTRICTION_DATA; + +typedef struct _DXVAHD_BLT_STATE_PRIVATE_DATA +{ + GUID Guid; + UINT DataSize; + void* pData; +} DXVAHD_BLT_STATE_PRIVATE_DATA; + +typedef struct _DXVAHD_STREAM_STATE_D3DFORMAT_DATA +{ + D3DFORMAT Format; +} DXVAHD_STREAM_STATE_D3DFORMAT_DATA; + +typedef struct _DXVAHD_STREAM_STATE_FRAME_FORMAT_DATA +{ + DXVAHD_FRAME_FORMAT FrameFormat; +} DXVAHD_STREAM_STATE_FRAME_FORMAT_DATA; + +typedef struct _DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE_DATA +{ + union + { + struct + { + UINT Type : 1; // 0:Video, 1:Graphics + UINT RGB_Range : 1; // 0:Full(0-255), 1:Limited(16-235) + UINT YCbCr_Matrix : 1; // 0:BT.601(SDTV), 1:BT.709(HDTV) + UINT YCbCr_xvYCC : 1; // 0:Conventional, 1:Extended(xvYCC) + UINT Reserved : 28; + }; + + UINT Value; + }; +} DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE_DATA; + +typedef struct _DXVAHD_STREAM_STATE_OUTPUT_RATE_DATA +{ + BOOL RepeatFrame; + DXVAHD_OUTPUT_RATE OutputRate; + DXVAHD_RATIONAL CustomRate; +} DXVAHD_STREAM_STATE_OUTPUT_RATE_DATA; + +typedef struct _DXVAHD_STREAM_STATE_SOURCE_RECT_DATA +{ + BOOL Enable; + RECT SourceRect; +} DXVAHD_STREAM_STATE_SOURCE_RECT_DATA; + +typedef struct _DXVAHD_STREAM_STATE_DESTINATION_RECT_DATA +{ + BOOL Enable; + RECT DestinationRect; +} DXVAHD_STREAM_STATE_DESTINATION_RECT_DATA; + +typedef struct _DXVAHD_STREAM_STATE_ALPHA_DATA +{ + BOOL Enable; + FLOAT Alpha; +} DXVAHD_STREAM_STATE_ALPHA_DATA; + +typedef struct _DXVAHD_STREAM_STATE_PALETTE_DATA +{ + UINT Count; + D3DCOLOR* pEntries; +} DXVAHD_STREAM_STATE_PALETTE_DATA; + +typedef struct _DXVAHD_STREAM_STATE_LUMA_KEY_DATA +{ + BOOL Enable; + FLOAT Lower; + FLOAT Upper; +} DXVAHD_STREAM_STATE_LUMA_KEY_DATA; + +typedef struct _DXVAHD_STREAM_STATE_ASPECT_RATIO_DATA +{ + BOOL Enable; + DXVAHD_RATIONAL SourceAspectRatio; + DXVAHD_RATIONAL DestinationAspectRatio; +} DXVAHD_STREAM_STATE_ASPECT_RATIO_DATA; + +typedef struct _DXVAHD_STREAM_STATE_FILTER_DATA +{ + BOOL Enable; + INT Level; +} DXVAHD_STREAM_STATE_FILTER_DATA; + +typedef struct _DXVAHD_STREAM_STATE_PRIVATE_DATA +{ + GUID Guid; + UINT DataSize; + void* pData; +} DXVAHD_STREAM_STATE_PRIVATE_DATA; + +typedef struct _DXVAHD_STREAM_DATA +{ + BOOL Enable; + UINT OutputIndex; + UINT InputFrameOrField; + UINT PastFrames; + UINT FutureFrames; + IDirect3DSurface9** ppPastSurfaces; + IDirect3DSurface9* pInputSurface; + IDirect3DSurface9** ppFutureSurfaces; +} DXVAHD_STREAM_DATA; + + +// +// PRIVATE STATES +// + +cpp_quote("") +cpp_quote("") +cpp_quote("DEFINE_GUID(DXVAHD_STREAM_STATE_PRIVATE_IVTC, 0x9c601e3c,0x0f33,0x414c,0xa7,0x39,0x99,0x54,0x0e,0xe4,0x2d,0xa5);") +cpp_quote("") +cpp_quote("") + +typedef struct _DXVAHD_STREAM_STATE_PRIVATE_IVTC_DATA +{ + BOOL Enable; + UINT ITelecineFlags; // DXVAHD_ITELECINE_CAPS + UINT Frames; + UINT InputField; +} DXVAHD_STREAM_STATE_PRIVATE_IVTC_DATA; + + +// +// IDXVAHD_Device INTERFACE +// + +[ + object, + uuid(95f12dfd-d77e-49be-815f-57d579634d6d), + helpstring("DXVA-HD Device Interface"), + local +] +interface IDXVAHD_Device : IUnknown +{ + HRESULT + CreateVideoSurface( + [in, annotation("_In_")] UINT Width, + [in, annotation("_In_")] UINT Height, + [in, annotation("_In_")] D3DFORMAT Format, + [in, annotation("_In_")] D3DPOOL Pool, + [in, annotation("_In_")] DWORD Usage, + [in, annotation("_In_")] DXVAHD_SURFACE_TYPE Type, + [in, annotation("_In_")] UINT NumSurfaces, + [out, size_is(NumSurfaces), annotation("_Out_writes_(NumSurfaces)")] IDirect3DSurface9** ppSurfaces, + [in, out, annotation("_Inout_opt_")] HANDLE* pSharedHandle + ); + + HRESULT + GetVideoProcessorDeviceCaps( + [out, annotation("_Out_")] DXVAHD_VPDEVCAPS* pCaps + ); + + HRESULT + GetVideoProcessorOutputFormats( + [in, annotation("_In_")] UINT Count, + [out, size_is(Count), annotation("_Out_writes_(Count)")] D3DFORMAT* pFormats + ); + + HRESULT + GetVideoProcessorInputFormats( + [in, annotation("_In_")] UINT Count, + [out, size_is(Count), annotation("_Out_writes_(Count)")] D3DFORMAT* pFormats + ); + + HRESULT + GetVideoProcessorCaps( + [in, annotation("_In_")] UINT Count, + [out, size_is(Count), annotation("_Out_writes_(Count)")] DXVAHD_VPCAPS* pCaps + ); + + HRESULT + GetVideoProcessorCustomRates( + [in, annotation("_In_")] const GUID* pVPGuid, + [in, annotation("_In_")] UINT Count, + [out, size_is(Count), annotation("_Out_writes_(Count)")] DXVAHD_CUSTOM_RATE_DATA* pRates + ); + + HRESULT + GetVideoProcessorFilterRange( + [in, annotation("_In_")] DXVAHD_FILTER Filter, + [out, annotation("_Out_")] DXVAHD_FILTER_RANGE_DATA* pRange + ); + + HRESULT + CreateVideoProcessor( + [in, annotation("_In_")] const GUID* pVPGuid, + [out, annotation("_Outptr_")] IDXVAHD_VideoProcessor** ppVideoProcessor + ); +}; + + +// +// IDXVAHD_VideoProcessor INTERFACE +// + +[ + object, + uuid(95f4edf4-6e03-4cd7-be1b-3075d665aa52), + helpstring("DXVA-HD Video Processor Interface"), + local +] +interface IDXVAHD_VideoProcessor : IUnknown +{ + HRESULT + SetVideoProcessBltState( + [in, annotation("_In_")] DXVAHD_BLT_STATE State, + [in, annotation("_In_")] UINT DataSize, + [in, annotation("_In_reads_bytes_(DataSize)")] const void* pData + ); + + HRESULT + GetVideoProcessBltState( + [in, annotation("_In_")] DXVAHD_BLT_STATE State, + [in, annotation("_In_")] UINT DataSize, + [out, annotation("_Inout_updates_bytes_(DataSize)")] void* pData + ); + + HRESULT + SetVideoProcessStreamState( + [in, annotation("_In_")] UINT StreamNumber, + [in, annotation("_In_")] DXVAHD_STREAM_STATE State, + [in, annotation("_In_")] UINT DataSize, + [in, annotation("_In_reads_bytes_(DataSize)")] const void* pData + ); + + HRESULT + GetVideoProcessStreamState( + [in, annotation("_In_")] UINT StreamNumber, + [in, annotation("_In_")] DXVAHD_STREAM_STATE State, + [in, annotation("_In_")] UINT DataSize, + [out, annotation("_Inout_updates_bytes_(DataSize)")] void* pData + ); + + HRESULT + VideoProcessBltHD( + [in, annotation("_In_")] IDirect3DSurface9* pOutputSurface, + [in, annotation("_In_")] UINT OutputFrame, + [in, annotation("_In_")] UINT StreamCount, + [in, size_is(StreamCount), annotation("_In_reads_(StreamCount)")] const DXVAHD_STREAM_DATA* pStreams + ); +}; + + +// +// DXVA-HD SOFTWARE PLUGIN +// + +cpp_quote("") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_CreateDevice)(") +cpp_quote(" _In_ IDirect3DDevice9Ex* pD3DDevice,") +cpp_quote(" _Out_ HANDLE* phDevice") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_ProposeVideoPrivateFormat)(") +cpp_quote(" _In_ HANDLE hDevice,") +cpp_quote(" _Inout_ D3DFORMAT* pFormat") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorDeviceCaps)(") +cpp_quote(" _In_ HANDLE hDevice,") +cpp_quote(" _In_ const DXVAHD_CONTENT_DESC* pContentDesc,") +cpp_quote(" _In_ DXVAHD_DEVICE_USAGE Usage,") +cpp_quote(" _Out_ DXVAHD_VPDEVCAPS* pCaps") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorOutputFormats)(") +cpp_quote(" _In_ HANDLE hDevice,") +cpp_quote(" _In_ const DXVAHD_CONTENT_DESC* pContentDesc,") +cpp_quote(" _In_ DXVAHD_DEVICE_USAGE Usage,") +cpp_quote(" _In_ UINT Count,") +cpp_quote(" _Out_writes_(Count) D3DFORMAT* pFormats") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorInputFormats)(") +cpp_quote(" _In_ HANDLE hDevice,") +cpp_quote(" _In_ const DXVAHD_CONTENT_DESC* pContentDesc,") +cpp_quote(" _In_ DXVAHD_DEVICE_USAGE Usage,") +cpp_quote(" _In_ UINT Count,") +cpp_quote(" _Out_writes_(Count) D3DFORMAT* pFormats") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorCaps)(") +cpp_quote(" _In_ HANDLE hDevice,") +cpp_quote(" _In_ const DXVAHD_CONTENT_DESC* pContentDesc,") +cpp_quote(" _In_ DXVAHD_DEVICE_USAGE Usage,") +cpp_quote(" _In_ UINT Count,") +cpp_quote(" _Out_writes_(Count) DXVAHD_VPCAPS* pCaps") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorCustomRates)(") +cpp_quote(" _In_ HANDLE hDevice,") +cpp_quote(" _In_ const GUID* pVPGuid,") +cpp_quote(" _In_ UINT Count,") +cpp_quote(" _Out_writes_(Count) DXVAHD_CUSTOM_RATE_DATA* pRates") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorFilterRange)(") +cpp_quote(" _In_ HANDLE hDevice,") +cpp_quote(" _In_ DXVAHD_FILTER Filter,") +cpp_quote(" _Out_ DXVAHD_FILTER_RANGE_DATA* pRange") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_DestroyDevice)(") +cpp_quote(" _In_ HANDLE hDevice") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_CreateVideoProcessor)(") +cpp_quote(" _In_ HANDLE hDevice,") +cpp_quote(" _In_ const GUID* pVPGuid,") +cpp_quote(" _Out_ HANDLE* phVideoProcessor") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_SetVideoProcessBltState)(") +cpp_quote(" _In_ HANDLE hVideoProcessor,") +cpp_quote(" _In_ DXVAHD_BLT_STATE State,") +cpp_quote(" _In_ UINT DataSize,") +cpp_quote(" _In_reads_bytes_(DataSize) const void* pData") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessBltStatePrivate)(") +cpp_quote(" _In_ HANDLE hVideoProcessor,") +cpp_quote(" _Inout_ DXVAHD_BLT_STATE_PRIVATE_DATA* pData") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_SetVideoProcessStreamState)(") +cpp_quote(" _In_ HANDLE hVideoProcessor,") +cpp_quote(" _In_ UINT StreamNumber,") +cpp_quote(" _In_ DXVAHD_STREAM_STATE State,") +cpp_quote(" _In_ UINT DataSize,") +cpp_quote(" _In_reads_bytes_(DataSize) const void* pData") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessStreamStatePrivate)(") +cpp_quote(" _In_ HANDLE hVideoProcessor,") +cpp_quote(" _In_ UINT StreamNumber,") +cpp_quote(" _Inout_ DXVAHD_STREAM_STATE_PRIVATE_DATA* pData") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_VideoProcessBltHD)(") +cpp_quote(" _In_ HANDLE hVideoProcessor,") +cpp_quote(" _In_ IDirect3DSurface9* pOutputSurface,") +cpp_quote(" _In_ UINT OutputFrame,") +cpp_quote(" _In_ UINT StreamCount,") +cpp_quote(" _In_reads_(StreamCount) const DXVAHD_STREAM_DATA* pStreams") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_DestroyVideoProcessor)(") +cpp_quote(" _In_ HANDLE hVideoProcessor") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef struct _DXVAHDSW_CALLBACKS") +cpp_quote("{") +cpp_quote(" PDXVAHDSW_CreateDevice CreateDevice;") +cpp_quote(" PDXVAHDSW_ProposeVideoPrivateFormat ProposeVideoPrivateFormat;") +cpp_quote(" PDXVAHDSW_GetVideoProcessorDeviceCaps GetVideoProcessorDeviceCaps;") +cpp_quote(" PDXVAHDSW_GetVideoProcessorOutputFormats GetVideoProcessorOutputFormats;") +cpp_quote(" PDXVAHDSW_GetVideoProcessorInputFormats GetVideoProcessorInputFormats;") +cpp_quote(" PDXVAHDSW_GetVideoProcessorCaps GetVideoProcessorCaps;") +cpp_quote(" PDXVAHDSW_GetVideoProcessorCustomRates GetVideoProcessorCustomRates;") +cpp_quote(" PDXVAHDSW_GetVideoProcessorFilterRange GetVideoProcessorFilterRange;") +cpp_quote(" PDXVAHDSW_DestroyDevice DestroyDevice;") +cpp_quote(" PDXVAHDSW_CreateVideoProcessor CreateVideoProcessor;") +cpp_quote(" PDXVAHDSW_SetVideoProcessBltState SetVideoProcessBltState;") +cpp_quote(" PDXVAHDSW_GetVideoProcessBltStatePrivate GetVideoProcessBltStatePrivate;") +cpp_quote(" PDXVAHDSW_SetVideoProcessStreamState SetVideoProcessStreamState;") +cpp_quote(" PDXVAHDSW_GetVideoProcessStreamStatePrivate GetVideoProcessStreamStatePrivate;") +cpp_quote(" PDXVAHDSW_VideoProcessBltHD VideoProcessBltHD;") +cpp_quote(" PDXVAHDSW_DestroyVideoProcessor DestroyVideoProcessor;") +cpp_quote("} DXVAHDSW_CALLBACKS;") +cpp_quote("") +cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_Plugin)(") +cpp_quote(" _In_ UINT Size,") +cpp_quote(" _Out_writes_bytes_(Size) void* pCallbacks") +cpp_quote(" );") +cpp_quote("") +cpp_quote("") + + +// +// DXVA-HD API ETW +// + +cpp_quote("") +cpp_quote("") +cpp_quote("DEFINE_GUID(DXVAHDControlGuid, 0xa0386e75,0xf70c,0x464c,0xa9,0xce,0x33,0xc4,0x4e,0x09,0x16,0x23); // DXVA2Trace_Control") +cpp_quote("") +cpp_quote("DEFINE_GUID(DXVAHDETWGUID_CREATEVIDEOPROCESSOR, 0x681e3d1e,0x5674,0x4fb3,0xa5,0x03,0x2f,0x20,0x55,0xe9,0x1f,0x60);") +cpp_quote("DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSBLTSTATE, 0x76c94b5a,0x193f,0x4692,0x94,0x84,0xa4,0xd9,0x99,0xda,0x81,0xa8);") +cpp_quote("DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSSTREAMSTATE, 0x262c0b02,0x209d,0x47ed,0x94,0xd8,0x82,0xae,0x02,0xb8,0x4a,0xa7);") +cpp_quote("DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSBLTHD, 0xbef3d435,0x78c7,0x4de3,0x97,0x07,0xcd,0x1b,0x08,0x3b,0x16,0x0a);") +cpp_quote("DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSBLTHD_STREAM, 0x27ae473e,0xa5fc,0x4be5,0xb4,0xe3,0xf2,0x49,0x94,0xd3,0xc4,0x95);") +cpp_quote("DEFINE_GUID(DXVAHDETWGUID_DESTROYVIDEOPROCESSOR, 0xf943f0a0,0x3f16,0x43e0,0x80,0x93,0x10,0x5a,0x98,0x6a,0xa5,0xf1);") +cpp_quote("") +cpp_quote("") + +typedef struct _DXVAHDETW_CREATEVIDEOPROCESSOR +{ + ULONGLONG pObject; + ULONGLONG pD3D9Ex; + GUID VPGuid; +} DXVAHDETW_CREATEVIDEOPROCESSOR; + +typedef struct _DXVAHDETW_VIDEOPROCESSBLTSTATE +{ + ULONGLONG pObject; + DXVAHD_BLT_STATE State; + UINT DataSize; + BOOL SetState; +} DXVAHDETW_VIDEOPROCESSBLTSTATE; + +typedef struct _DXVAHDETW_VIDEOPROCESSSTREAMSTATE +{ + ULONGLONG pObject; + UINT StreamNumber; + DXVAHD_STREAM_STATE State; + UINT DataSize; + BOOL SetState; +} DXVAHDETW_VIDEOPROCESSSTREAMSTATE; + +typedef struct _DXVAHDETW_VIDEOPROCESSBLTHD +{ + ULONGLONG pObject; + ULONGLONG pOutputSurface; + RECT TargetRect; + D3DFORMAT OutputFormat; + UINT ColorSpace; + UINT OutputFrame; + UINT StreamCount; + BOOL Enter; +} DXVAHDETW_VIDEOPROCESSBLTHD; + +typedef struct _DXVAHDETW_VIDEOPROCESSBLTHD_STREAM +{ + ULONGLONG pObject; + ULONGLONG pInputSurface; + RECT SourceRect; + RECT DestinationRect; + D3DFORMAT InputFormat; + DXVAHD_FRAME_FORMAT FrameFormat; + UINT ColorSpace; + UINT StreamNumber; + UINT OutputIndex; + UINT InputFrameOrField; + UINT PastFrames; + UINT FutureFrames; +} DXVAHDETW_VIDEOPROCESSBLTHD_STREAM; + +typedef struct _DXVAHDETW_DESTROYVIDEOPROCESSOR +{ + ULONGLONG pObject; +} DXVAHDETW_DESTROYVIDEOPROCESSOR; + + +// +// DXVA-HD API FUNCTIONS +// + +cpp_quote("") +cpp_quote("") +cpp_quote("HRESULT WINAPI") +cpp_quote("DXVAHD_CreateDevice(") +cpp_quote(" _In_ IDirect3DDevice9Ex* pD3DDevice,") +cpp_quote(" _In_ const DXVAHD_CONTENT_DESC* pContentDesc,") +cpp_quote(" _In_ DXVAHD_DEVICE_USAGE Usage,") +cpp_quote(" _In_opt_ PDXVAHDSW_Plugin pPlugin,") +cpp_quote(" _Outptr_ IDXVAHD_Device** ppDevice") +cpp_quote(" );") +cpp_quote("") +cpp_quote("typedef HRESULT (WINAPI* PDXVAHD_CreateDevice)(") +cpp_quote(" _In_ IDirect3DDevice9Ex* pD3DDevice,") +cpp_quote(" _In_ const DXVAHD_CONTENT_DESC* pContentDesc,") +cpp_quote(" _In_ DXVAHD_DEVICE_USAGE Usage,") +cpp_quote(" _In_opt_ PDXVAHDSW_Plugin pPlugin,") +cpp_quote(" _Outptr_ IDXVAHD_Device** ppDevice") +cpp_quote(" );") +cpp_quote("") +cpp_quote("") + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dyngraph.idl b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dyngraph.idl new file mode 100644 index 0000000000000000000000000000000000000000..016f37bf47818efbcf99fed483bd3ee006e9da1a --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dyngraph.idl @@ -0,0 +1,327 @@ +//------------------------------------------------------------------------------ +// File: DynGraph.idl +// +// Desc: Dynamic graph interfaces +// +// Copyright (c) 1999-2002, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +interface IPinConnection; +interface IPinFlowControl; +interface IGraphConfig; +interface IGraphConfigCallback; + +//-------------------------------------------------------------------- +// +// IPinConnection - supported by input pins +// +//-------------------------------------------------------------------- +[ + local, + object, + uuid(4a9a62d3-27d4-403d-91e9-89f540e55534), + pointer_default(unique) +] +interface IPinConnection : IUnknown { + + // Do you accept this type chane in your current state? + HRESULT DynamicQueryAccept([in] const AM_MEDIA_TYPE *pmt); + + // Set event when EndOfStream receive - do NOT pass it on + // This condition is cancelled by a flush or Stop + HRESULT NotifyEndOfStream([in] HANDLE hNotifyEvent); + + // Are you an 'end pin' + HRESULT IsEndPin(); + + HRESULT DynamicDisconnect(); +}; + +//-------------------------------------------------------------------- +// +// IPinFlowControl - supported by output pins +// +//-------------------------------------------------------------------- +[ + local, + object, + uuid(c56e9858-dbf3-4f6b-8119-384af2060deb), + pointer_default(unique) +] +interface IPinFlowControl : IUnknown { + // Block processing on this pin + HRESULT Block([in] DWORD dwBlockFlags, [in] HANDLE hEvent); +} + +// block flags +enum _AM_PIN_FLOW_CONTROL_BLOCK_FLAGS { + AM_PIN_FLOW_CONTROL_BLOCK = 0x00000001, // 0 means unblock +}; + + +// Reconnect flags +typedef enum _AM_GRAPH_CONFIG_RECONNECT_FLAGS { + AM_GRAPH_CONFIG_RECONNECT_DIRECTCONNECT = 0x00000001, + AM_GRAPH_CONFIG_RECONNECT_CACHE_REMOVED_FILTERS = 0x00000002, + AM_GRAPH_CONFIG_RECONNECT_USE_ONLY_CACHED_FILTERS = 0x00000004 +} AM_GRAPH_CONFIG_RECONNECT_FLAGS; + +// RemoveFilterEx flags +enum _REM_FILTER_FLAGS { + REMFILTERF_LEAVECONNECTED = 0x00000001 +}; + +typedef enum _AM_FILTER_FLAGS { + AM_FILTER_FLAGS_REMOVABLE = 0x00000001 + } AM_FILTER_FLAGS; + + +//-------------------------------------------------------------------- +// +// IGraphConfig +// +//-------------------------------------------------------------------- + +[ + local, + object, + uuid(03A1EB8E-32BF-4245-8502-114D08A9CB88), + pointer_default(unique) +] +interface IGraphConfig : IUnknown { + HRESULT Reconnect([in] IPin *pOutputPin, + [in] IPin *pInputPin, + [in] const AM_MEDIA_TYPE *pmtFirstConnection, + [in] IBaseFilter *pUsingFilter, // can be NULL + [in] HANDLE hAbortEvent, + [in] DWORD dwFlags); + + HRESULT Reconfigure([in] IGraphConfigCallback *pCallback, + [in] PVOID pvContext, + [in] DWORD dwFlags, + [in] HANDLE hAbortEvent); + + + HRESULT AddFilterToCache([in] IBaseFilter *pFilter); + HRESULT EnumCacheFilter([out] IEnumFilters **pEnum); + HRESULT RemoveFilterFromCache([in]IBaseFilter *pFilter); + + // Get the start time associated with the last Run() call + // If the graph is not running returns VFW_E_WRONG_STATE + HRESULT GetStartTime([out] REFERENCE_TIME *prtStart); + + HRESULT PushThroughData( + [in] IPin *pOutputPin, + [in] IPinConnection *pConnection, + [in] HANDLE hEventAbort); + + HRESULT SetFilterFlags([in] IBaseFilter *pFilter, [in] DWORD dwFlags); + HRESULT GetFilterFlags([in] IBaseFilter *pFilter, [out] DWORD *pdwFlags); + + HRESULT RemoveFilterEx( [in] IBaseFilter *pFilter, DWORD Flags ); +} + +//-------------------------------------------------------------------- +// +// IGraphConfigCallback +// +//-------------------------------------------------------------------- + +[ + local, + object, + uuid(ade0fd60-d19d-11d2-abf6-00a0c905f375), + pointer_default(unique) +] +interface IGraphConfigCallback : IUnknown +{ + HRESULT Reconfigure(PVOID pvContext, DWORD dwFlags); +} + +// Filter Chain Definition +// +// Filter chains have the following properties: +// +// - Each filter chain has one or more filters. +// +// - Each filter in a filter chain has at most one connected input pin and one +// connected output pin. For example, filters A, C, D, F, G, H, I, J and K +// (see the diagram below) can be in a filter chain because each one has at +// most one connected input pin and one connected output pin. +// +// - Any filter in a chain is reachable by any other filter in the chain. +// For example, in the filter chain F-G-H, F can reach H by following the F- +// G connection to G and then following the G-H connection to H. Filters F +// and J cannot be in the same filter chain because J is not reachable from +// F. Anotherwords, there no sequence of connected filters between F and J. +// +// - The start filter is the only filter in the filter chain who's input +// pin is not connected to another filter in the chain. For instance, F is +// the start filter in F-G-H because F's input pin is connected to E and E +// is not in the filter chain. G's input pin is connected to F and H's is +// connected to G. Both F and G are in the filter chain. +// +// - The end filter is the only filter in the filter chain who's output pin +// is not connected to another filter in the chain. For example, in the +// filter chain J-K, K is the end filter because K's output pin is +// connected to L. J's output pin is connected to K and K is in the J-K +// filter chain. +// +// +// --->|---| |---|---> +// | C |--->| D | +// |---| |---|--->|---| |---|--->|---| |---| |---| |---| +// | A |--->| B | | E |--->| F |--->| G |--->| H | +// |---| |---|--->|---|------------>|---| |---| |---| |---| +// | I |---> +// --->|---|---> +// +// |---| |---| |---| +// | J |--->| K |--->| L | +// |---| |---| |---| +// +// Example Filter Graph +// +// +// +// IFilterChain Methods Documentation +// +// HRESULT StartChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter ); +// +// StartChain() switches all the filters in the chain into the running state +// If one of the filters will not switch to the running state, then all the filters +// in the chain are stopped. This method can only be called if the filter graph is +// running. +// +// Parameters: +// - pStartFilter [in] +// The first filter in the filter chain. Note that this can be the same +// filter as pEndFilter . +// +// - pEndFilter [in] +// The last filter in the filter chain. Note that this can be the same +// filter as pStartFilter. If pEndFilter is NULL then the filter chain extends +// from pStartFilter to the last downstream filter which can be in a filter chain. +// For example, IFilterChain::StartChain( A, NULL ) would start filter A. +// IFilterChain::StartChain( G, NULL ) would start filters G and H. +// IFilterChain::StartChain( C, NULL ) would start filters C and D. Finally, +// IFilterChain::StartChain( E, NULL ) would fail because E cannot be in a +// filter chain (see the Filter Chain Definition section for more information). +// +// Return Value: +// An HRESULT. See the Direct Show SDK and COM SDK documentation for more +// information on interpreting HRESULTs. +// +// +// +// +// HRESULT PauseChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter ); +// +// PauseChain() switches all the filters in a chain to the paused state. If it cannot +// switch one of the filtres into the paused state, all the filters in the chain are +// stopped. This method can only be called if the filter graph is paused. +// +// Parameters: +// - pStartFilter [in] +// The first filter in the filter chain. Note that this can be the same +// filter as pEndFilter . +// +// - pEndFilter [in] +// The last filter in the filter chain. Note that this can be the same +// filter as pStartFilter. If pEndFilter is NULL then the filter chain extends +// from pStartFilter to the last downstream filter which can be in a filter chain. +// For example, IFilterChain::StopChain( A, NULL ) would stop filter A. +// IFilterChain::StopChain( G, NULL ) would stop filters G and H. +// IFilterChain::StopChain( C, NULL ) would stop filters C and D. Finally, +// IFilterChain::StopChain( E, NULL ) would fail because E cannot be in a filter +// chain (see the Filter Chain Definition section for more information). +// +// +// Return Value: +// An HRESULT. See the Direct Show SDK and COM SDK documentation for more +// information on interpreting HRESULTs. +// +// +// +// HRESULT StopChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter ); +// +// StopChain() switches all the filters in chain to the stopped state. +// +// Parameters: +// - pStartFilter [in] +// The first filter in the filter chain. Note that this can be the same +// filter as pEndFilter . +// +// - pEndFilter [in] +// The last filter in the filter chain. Note that this can be the same +// filter as pStartFilter. If pEndFilter is NULL then the filter chain extends +// from pStartFilter to the last downstream filter which can be in a filter chain. +// For example, IFilterChain::StopChain( A, NULL ) would stop filter A. +// IFilterChain::StopChain( G, NULL ) would stop filters G and H. +// IFilterChain::StopChain( C, NULL ) would stop filters C and D. Finally, +// IFilterChain::StopChain( E, NULL ) would fail because E cannot be in a filter +// chain (see the Filter Chain Definition section for more information). +// +// +// Return Value: +// An HRESULT. See the Direct Show SDK and COM SDK documentation for more +// information on interpreting HRESULTs. +// +// +// +// +// +// HRESULT RemoveChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter ); +// +// RemoveChain() removes every filter in a chain from the filter graph. +// The filters can be removed while the graph is running. +// +// Parameters: +// - pStartFilter [in] +// The first filter in the filter chain. Note that this can be the same +// filter as pEndFilter . +// +// - pEndFilter [in] +// The last filter in the filter chain. Note that this can be the same +// filter as pStartFilter. If pEndFilter is NULL then the filter chain +// extends from pStartFilter to the last downstream filter which can be in a +// filter chain. For example, IFilterChain::RemoveChain( A, NULL ) would remove +// filter A from the filter graph. IFilterChain::RemoveChain( G, NULL ) would +// remove filters G and H. IFilterChain::RemoveChain( C, NULL ) would remove +// filters C and D. Finally, IFilterChain::RemoveChain( E, NULL ) would fail +// because E cannot be in a filter chain (see the Filter Chain Definition +// section for more information). +// +// +// Return Value: +// An HRESULT. See the Direct Show SDK and COM SDK documentation for more +// information on interpreting HRESULTs. +// +// +[ + local, + object, + uuid(DCFBDCF6-0DC2-45f5-9AB2-7C330EA09C29), + pointer_default(unique) +] +interface IFilterChain : IUnknown +{ + HRESULT StartChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter ); + HRESULT PauseChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter ); + HRESULT StopChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter ); + HRESULT RemoveChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter ); +} + + + + + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eapauthenticatortypes.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eapauthenticatortypes.h new file mode 100644 index 0000000000000000000000000000000000000000..9dc7ee3ca3a252b7dfd2d8c053a4d2d9262a46ab --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eapauthenticatortypes.h @@ -0,0 +1,82 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + + +#ifndef __eapauthenticatortypes_h__ +#define __eapauthenticatortypes_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_eapauthenticatortypes_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +typedef /* [v1_enum] */ +enum _EAP_AUTHENTICATOR_SEND_TIMEOUT + { + EAP_AUTHENTICATOR_SEND_TIMEOUT_NONE = 0, + EAP_AUTHENTICATOR_SEND_TIMEOUT_BASIC = ( EAP_AUTHENTICATOR_SEND_TIMEOUT_NONE + 1 ) , + EAP_AUTHENTICATOR_SEND_TIMEOUT_INTERACTIVE = ( EAP_AUTHENTICATOR_SEND_TIMEOUT_BASIC + 1 ) + } EAP_AUTHENTICATOR_SEND_TIMEOUT; + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_eapauthenticatortypes_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_eapauthenticatortypes_0000_0000_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eaphostpeerconfigapis.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eaphostpeerconfigapis.h new file mode 100644 index 0000000000000000000000000000000000000000..d6c09a9ee8bd29baa0c52987f9cbf241c96f870b --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eaphostpeerconfigapis.h @@ -0,0 +1,332 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation +// +// SYNOPSIS +// +// Declares methods that are used to configure EAP methods. +// +/////////////////////////////////////////////////////////////////////////////// + +#ifndef EAPHOSTPEERCONFIGAPIS_H +#define EAPHOSTPEERCONFIGAPIS_H +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include "objbase.h" //Required by msxml2.h +#include "msxml6.h" + +#include "EapTypes.h" + +#ifdef __cplusplus +extern "C" { +#endif + + +// This API is used to enumerate all the EAP Methods installed and available for use; this +// includes legacy EAP Methods too. Returns non zero return code up on error. +DWORD WINAPI EapHostPeerGetMethods( + // API fills the structure to have installed EAP Methods. Caller should free the inner pointers + // using EapHostPeerFreeMemory starting at the inner most pointer. + OUT EAP_METHOD_INFO_ARRAY* pEapMethodInfoArray, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory + OUT EAP_ERROR** ppEapError + ); + + +// This API is used to retrieve the method properties for a specific configuration +// It returns non zero return code upon error. +DWORD WINAPI EapHostPeerGetMethodProperties( + // The version number of the API. + IN DWORD dwVersion, + // A combination of EAP flags that describe the EAP authentication session behavior. + IN DWORD dwFlags, + // An EAP_METHOD_TYPE structure that identifies the EAP method the supplicant is to use. + IN EAP_METHOD_TYPE eapMethodType, + // A handle to the user impersonation token to use in this session. + IN HANDLE hUserImpersonationToken, + // The size, in bytes, of the connection data buffer provided in pbEapConnData. + IN DWORD dwEapConnDataSize, + // Connection data used for the EAP method. + IN _In_reads_(dwEapConnDataSize) const BYTE* pbEapConnData, + // The size in bytes of the user data buffer provided in pbUserData. + IN DWORD dwUserDataSize, + // A pointer to a byte buffer that contains the opaque user data BLOB. + IN _In_reads_(dwUserDataSize) const BYTE* pbUserData, + // A pointer to the method properties array. Caller should free the inner pointers using EapHostPeerFreeMemory starting + // at the inner most pointer. The caller should free empvString value only when the type is empvtString. + OUT EAP_METHOD_PROPERTY_ARRAY* pMethodPropertyArray, + // A pointer to a pointer to an EAP_ERROR structure that contains any errors raised by EAPHost + // during the execution of this function call. + OUT EAP_ERROR** ppEapError + ); + + +// This API is used to invoke configure UI of the specified EAP Method. +// API Returns non zero return code up on error. +DWORD WINAPI EapHostPeerInvokeConfigUI( + // window handle of the parent window under which configuration dialog will show up + IN HWND hwndParent, + // Flags to control the behavior of the EAP Method. + IN DWORD dwFlags, + // Identifies the EAP Method to configure + IN EAP_METHOD_TYPE eapMethodType, + // Size of input configuration; this could be 0 when there is no configuration + IN DWORD dwSizeOfConfigIn, + // input configuration, this couldb NULL when there is no configuration + IN _In_reads_opt_(dwSizeOfConfigIn) const BYTE* pConfigIn, + // pointer to DWORD that receives configuration after user updated using UI + OUT DWORD* pdwSizeOfConfigOut, + // buffer that receives updated configuration after user updated using UI. + // Caller should free the memory using EapHostPeerFreeMemory. + OUT BYTE** ppConfigOut, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory + OUT EAP_ERROR** ppEapError + ); + +// This API is used to obtain the fields to be shown in Single Sign On scenario for +// showing UI in long screen. The structures returned have details on how to show the fields. +// API Returns non zero return code up on error. +DWORD WINAPI EapHostPeerQueryCredentialInputFields( + // handle to the impersonation token that is used while signle sign on. + IN HANDLE hUserImpersonationToken, + // identifies the EAP Method supplicant wants to use + IN EAP_METHOD_TYPE eapMethodType, + // control the behavior of the EAP Methods + IN DWORD dwFlags, + // size of input configuration data + IN DWORD dwEapConnDataSize, + // configuration data that is used for the EAP method + IN _In_reads_(dwEapConnDataSize) const BYTE* pbEapConnData, + // structure that gets filled with fields and how they should be shown to the user. + // Caller should free the inner pointers using EapHostPeerFreeMemory starting + // at the inner most pointer. + OUT EAP_CONFIG_INPUT_FIELD_ARRAY *pEapConfigInputFieldArray, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory + OUT EAP_ERROR** ppEapError + ); + + +// Supplicant up on receiving user inputs from Single Sign On UI, calls this API to obtain +// credential blob that could used start authentication +// API Returns non zero return code up on error. +DWORD WINAPI EapHostPeerQueryUserBlobFromCredentialInputFields( + // handle to the impersonation token that is used while signle sign on. + IN HANDLE hUserImpersonationToken, + // identifies the EAP Method supplicant wants to use + IN EAP_METHOD_TYPE eapMethodType, + // control the behavior of the EAP Methods + IN DWORD dwFlags, + // size of input configuration data + IN DWORD dwEapConnDataSize, + // configuration data that is used for the EAP method + IN _In_reads_(dwEapConnDataSize) const BYTE* pbEapConnData, + // structure containing the data entered by the user in Single Sign On UI + IN const EAP_CONFIG_INPUT_FIELD_ARRAY *pEapConfigInputFieldArray, + // pointer to DWORD that receives the size of credential blob, if supplicant passes in + // non-zero size and non-NULL data below, EAPHost will just attempt to Update + // the blob with passed in values (if method supports) instead of creating a new one. + _Inout_ DWORD *pdwUserBlobSize, + // Pointer that receives the credential blob that can be used in authentication. + // For incoming data caller should always allocate this memory using LocalAlloc() + // Caller should free the memory using EapHostPeerFreeMemory. + _Inout_ + _At_(*ppbUserBlob, + _When_(*ppbUserBlob != NULL, _Pre_writable_size_(*pdwUserBlobSize)) + _Post_readable_size_(*pdwUserBlobSize)) + BYTE **ppbUserBlob, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory + OUT EAP_ERROR** ppEapError + ); + + +// Tunnel Methods call this function to invoke Identity UI of the inner Methods. +// This function returns the identity as well as the credentials to use to start the authentication. +DWORD WINAPI EapHostPeerInvokeIdentityUI ( + // API's version number for ease of interoperability. It must be 0. + IN DWORD dwVersion, + // identifies the EAP Method supplicant wants to use + IN EAP_METHOD_TYPE eapMethodType, + // EAP_FLAG_xxx defined in eaptypes.w + IN DWORD dwFlags, + // window handle of the parent window under which configuration dialog will show up + IN HWND hwndParent, + // size of the buffer (pConnectionData) in bytes + IN DWORD dwSizeofConnectionData, + // configuration data that is used for the EAP method + IN _In_reads_(dwSizeofConnectionData) const BYTE* pConnectionData, + // size of the ubuffer pUserData + IN DWORD dwSizeofUserData, + // user credential information pertinent to this auth + IN _In_reads_opt_(dwSizeofUserData) const BYTE* pUserData, + // size of the buffer pUserDataOut. + IN OUT DWORD* pdwSizeOfUserDataOut, + // user data information returned by method. + // Caller should release this using EapHostPeerFreeMemory + OUT _Outptr_result_buffer_(*pdwSizeOfUserDataOut)BYTE** ppUserDataOut, + // identity returned by method. Caller should release this using EapHostPeerFreeMemory + OUT _Outptr_ LPWSTR* ppwszIdentity, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError + // using EapHostPeerFreeErrorMemory + OUT EAP_ERROR** ppEapError, + // Reserved for future usage. It must be NULL. + IN OUT LPVOID *ppvReserved + ); + + +// While doing authentication with EapHost, when supplicant receives action code of EapHostPeerResponseInvokeUi +// supplicant should call EapHostPeerGetUIContext to get UI context data. After that. it then should call this +// API from a process where UI can be brought up. +// API Returns non zero return code up on error. +DWORD WINAPI EapHostPeerInvokeInteractiveUI( + // window handle of the parent window under which dialog will show up + IN HWND hwndParent, + // size of UIcontext data received from EapHostPeerGetUIContext call + IN DWORD dwSizeofUIContextData, + // UIcontext data received from EapHostPeerGetUIContext call + IN _In_reads_opt_(dwSizeofUIContextData) const BYTE* pUIContextData, + // pointer to DWORD that receives data from interactive UI that is used for authentication + // to continue + OUT DWORD* pdwSizeOfDataFromInteractiveUI, + // pointer that receives buffer filled with interactive UI that is used for authentication + // to continue. Caller should free the memory using EapHostPeerFreeMemory. + OUT _Outptr_result_buffer_(*pdwSizeOfDataFromInteractiveUI) BYTE** ppDataFromInteractiveUI, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory + OUT EAP_ERROR** ppEapError + ); + +// This API will enable supplicants to collect necessary information from EAPHost to raise interactive UI and collect user information +// supplicant should call EapHostPeerQueryInteractiveUIInputFields() API first after it receives +// EapHostPeerResponseInvokeUi actionCode from EAPHost. If the return value from this API +// is EAP_E_EAPHOST_METHOD_OPERATION_NOT_SUPPORTED, then supplicant should fall back to +// traditional model of invoking method interactive UI, i.e. by calling EapHostPeerInvokeInteractiveUI() +// API Returns non zero return code up on error. +DWORD WINAPI EapHostPeerQueryInteractiveUIInputFields ( + // API's version number for ease of interoperability. It must be 0. + IN DWORD dwVersion, + // control the behavior of the EAP Methods + IN DWORD dwFlags, + // size of UIcontext data EAPHost runtime + IN DWORD dwSizeofUIContextData, + // UIContext data received from EAPHost runtime + IN _In_reads_(dwSizeofUIContextData) const BYTE* pUIContextData, + // structure that gets filled with fields and how they should be shown to the user. + // Caller should free the inner pointers using EapHostPeerFreeMemory starting at the inner most pointer. + OUT EAP_INTERACTIVE_UI_DATA *pEapInteractiveUIData, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory + OUT EAP_ERROR** ppEapError, + // Reserved for future usage. It must be NULL. + IN OUT LPVOID *ppvReserved + ); + +// This API will enable supplicants to convert user information into a user-blob which can be consumed by EAPHost runtime APIs +// API Returns non zero return code up on error. +DWORD WINAPI EapHostPeerQueryUIBlobFromInteractiveUIInputFields( + // API's version number for ease of interoperability. It must be 0. + IN DWORD dwVersion, + // control the behavior of the EAP Methods + IN DWORD dwFlags, + // size of UIcontext data EAPHost runtime + IN DWORD dwSizeofUIContextData, + // UIContext data received from EAPHost runtime + IN _In_reads_(dwSizeofUIContextData) const BYTE* pUIContextData, + // structure that carries data provided by user + IN const EAP_INTERACTIVE_UI_DATA *pEapInteractiveUIData, + // pointer to DWORD that receives size of credential blob, if supplicant passes in + // non-zero size and non-NULL data below, EAPHost will just attempt to Update + // the blob with passed in values (if method supports) instead of creating a new one. + IN OUT DWORD * pdwSizeOfDataFromInteractiveUI, + // Pointer that receives the credential blob that can be used in authentication. + // Caller should free the memory using EapHostPeerFreeMemory. + IN OUT _Outptr_result_buffer_(*pdwSizeOfDataFromInteractiveUI) BYTE ** ppDataFromInteractiveUI, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory + OUT EAP_ERROR** ppEapError, + // Reserved for future usage. It must be NULL. + IN OUT LPVOID *ppvReserved + ); + + +// Supplicant can utilize XML based EAP configuration storing, managing, editing. When it wants to call EapHostPeerConfigureUI +// or when it has to start authentication, it calls this API to convert XML configuration into blob. +// API Returns non zero return code up on error. +DWORD WINAPI EapHostPeerConfigXml2Blob( + // controls the behavior of the EAP Method + IN DWORD dwFlags, + // a node containing EAP XML configuration inside it + IN IXMLDOMNode* pConfigDoc, + // pointer to DWORD that receives the configuration blob size + OUT DWORD* pdwSizeOfConfigOut, + // pointer that receives configuration blob. Caller should free the memory using EapHostPeerFreeMemory. + OUT _Outptr_result_buffer_(*pdwSizeOfConfigOut) BYTE** ppConfigOut, + // pointer that receives the EAP Method specified in the XML configuration + OUT EAP_METHOD_TYPE* pEapMethodType, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory + OUT EAP_ERROR** ppEapError + ); + + +// Supplicant can utilize XML based EAP credentials storing, managing, editing. When it wants to start +// authentication, it calls this API to convert XML based credentials into blob. +// API Returns non zero return code up on error. +DWORD WINAPI EapHostPeerCredentialsXml2Blob( + // controls the behavior of the EAP Method + IN DWORD dwFlags, + // XML node that contains credentials + IN IXMLDOMNode* pCredentialsDoc, + // size of configuration blob that the credentials are configured for + IN DWORD dwSizeOfConfigIn, + // configuration blob that the credentials are configured for + IN _In_reads_(dwSizeOfConfigIn) BYTE* pConfigIn, + // pointer to DWORD that receives size of the credentials blob. + OUT DWORD* pdwSizeOfCredentialsOut, + // pointer that receives credential blob buffer. Caller should free the memory using + // EapHostPeerFreeMemory. + OUT _Outptr_result_buffer_(*pdwSizeOfCredentialsOut) BYTE** ppCredentialsOut, + // pointer that receives the EAP Method specified in the XML configuration + OUT EAP_METHOD_TYPE* pEapMethodType, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory + OUT EAP_ERROR** ppEapError + ); + + +// Supplicant can utilize XML based EAP credentials storing, managing, editing. When it wants to start +// convert configuration blob to XML, it can call this API. +// API Returns non zero return code up on error. +DWORD WINAPI EapHostPeerConfigBlob2Xml( + // controls the behavior of the EAP Method + IN DWORD dwFlags, + // identifies the EAP Method + IN EAP_METHOD_TYPE eapMethodType, + // Size of configuration blob that supplicant wants to convert + IN DWORD dwSizeOfConfigIn, + // Configuration blob that supplicant wants to convert + IN _In_reads_(dwSizeOfConfigIn) BYTE* pConfigIn, + // XML document that contains XML form of the blob. If the EAP Method does not support + // EapPeerConfigBlob2Xml function, the XML contains ConfigBlob node with blob in string form + OUT IXMLDOMDocument2** ppConfigDoc, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory + OUT EAP_ERROR** ppEapError + ); + +// Supplicant calls this API to free memory returned by Config APIs. Supplicant should not use this API +// for freeing EAP_ERROR structure. +VOID WINAPI EapHostPeerFreeMemory(BYTE* pData); + +// Supplicant calls this API to free EAP_ERROR memory, which will get filled when an API fails. +VOID WINAPI EapHostPeerFreeErrorMemory(EAP_ERROR* pEapError); + + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // EAPHOSTPEERCONFIGAPIS_H + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eapmethodauthenticatorapis.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eapmethodauthenticatorapis.h new file mode 100644 index 0000000000000000000000000000000000000000..fb80dcefe88a7650e1673f10fbbc71c21420cac2 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eapmethodauthenticatorapis.h @@ -0,0 +1,448 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation +// +// SYNOPSIS +// +// Declares datastructures that are needed by eap methods on the Peer. +// +/////////////////////////////////////////////////////////////////////////////// + +#ifndef EAP_METHOD_AUTHENTICATOR_APIS_H +#define EAP_METHOD_AUTHENTICATOR_APIS_H +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifndef __eapauthenticatortypes_h__ +#include "EapAuthenticatorTypes.h" +#endif + +#ifndef EAPAUTHENTICATORACTIONDEFINE_H +#include "EapAuthenticatorActionDefine.h" +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +// +// Defines used for installation of EAP DLL +// HKLM\System\CCS\Services\Eaphost\Methods\[AuthorId]\[EapTypeId]) +// +// Custom EAP DLL registry installation example: +// Name = Sample.dll, +// AuthorId = 311(Microsoft), +// EapTypeId = (decimal 40) +// HKLM\System\CCS\Services\Eaphost\Methods\311\40 +// +// AuthenticatorDllPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll +// AuthenticatorFriendlyName (REG_SZ) Sample EAP Protocol + +// +// Defines used for installation of EAP DLL +// HKLM\System\CCS\Services\Eaphost\Methods\[AuthorId]\254\[VendorId]\[EapTypeId]) +// +// Custom Expanded EAP DLL registry installation example: +// Name = Sample.dll, +// AuthorId = 311(Microsoft), +// VendorId = 311(Microsoft), +// EapTypeId = (decimal 40) +// HKLM\System\CCS\Services\Eaphost\Methods\311\254\311\40 +// +// AuthenticatorDllPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll +// AuthenticatorFriendlyName (REG_SZ) Sample EAP Protocol + + +// ConfigCLSID (REG_SZ) {0000031A-0000-0000-C000-000000000046} +// StandaloneSupported (REG_DWORD) 1 +// + + +#define EAP_REGISTRY_LOCATION \ + TEXT("System\\CurrentControlSet\\Services\\EapHost\\Methods") + +#define EAP_AUTHENTICATOR_VALUENAME_DLL_PATH TEXT("AuthenticatorDllPath") +#define EAP_AUTHENTICATOR_VALUENAME_FRIENDLY_NAME TEXT("AuthenticatorFriendlyName") +#define EAP_AUTHENTICATOR_VALUENAME_PROPERTIES TEXT("Properties") +#define EAP_AUTHENTICATOR_VALUENAME_CONFIGUI TEXT("AuthenticatorConfigUIPath") + +//For authenticator +// Are these needed any more? Or are we going to define better ways of +// encapsulating them. +//#define EAP_AUTHENTICATOR_VALUENAME_CONFIG_CLSID TEXT("ConfigCLSID") +//#define EAP_AUTHENTICATOR_VALUENAME_PER_POLICY_CONFIG TEXT("PerPolicyConfig") + + +// Structures used by EAP methods on the peer to communicate with the host. + +// List of functions corresponding to the particular EAP method +typedef struct _EAP_AUTHENTICATOR_METHOD_ROUTINES +{ + // FIXME: Why is the size needed? + DWORD dwSizeInBytes; + EAP_METHOD_TYPE* pEapType; + + + DWORD (APIENTRY * EapMethodAuthenticatorInitialize) ( + IN EAP_METHOD_TYPE* pEapType, + OUT EAP_ERROR** ppEapError + ); + + DWORD (APIENTRY * EapMethodAuthenticatorBeginSession) ( + // Flags to qualify the authentication process. + IN DWORD dwFlags, + // Identity of the user being authenticated + IN LPCWSTR pwszIdentity, + // Pointer to an array of attributes. This array contains attributes that + // describe the entity being authenticated. + IN const EapAttributes* const pAttributeArray, + // Specifies the size in bytes of the data pointed to by pConnectionData. + // If pConnectionData is NULL, this member is zero. + IN DWORD dwSizeofConnectionData, + // Pointer to connection data received from the authentication protocol's + // configuration user interface. + IN const BYTE* const pConnectionData, + // This is the maximum size of an eap packet that the authenticator can send. + IN DWORD dwMaxSendPacketSize, + // The session handle that identifies the current authentication session. + OUT EAP_SESSION_HANDLE* pSessionHandle, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + OUT EAP_ERROR** ppEapError + ); + + DWORD (APIENTRY * EapMethodAuthenticatorUpdateInnerMethodParams)( + // context handle as returned from a successful call to + // EapAuthenticatorBeginSession + IN EAP_SESSION_HANDLE sessionHandle, + IN DWORD dwFlags, + IN CONST WCHAR* pwszIdentity, + // Pointer to an array of attributes. This array contains attributes that + // describe the entity being authenticated. + IN const EapAttributes* const pAttributeArray, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + OUT EAP_ERROR** ppEapError + ); + + // The authenticator calls this any time it receives a packet that the eaphost + // needs to process. This should be called only after a successful call to + // EapAuthenticatorBeginSession. + DWORD (APIENTRY * EapMethodAuthenticatorReceivePacket) ( + // context handle as returned from a successful call to + // EapAuthenticatorBeginSession + IN EAP_SESSION_HANDLE sessionHandle, + // Specifies the size, in bytes, of the buffer pointed to by + // pReceivePacket + IN DWORD cbReceivePacket, + // Pointer to a buffer that contains the incoming EAP data received by + // the supplicant. + IN const EapPacket* const pReceivePacket, + // This enumeration tells the supplicant to take an appropriate action. + // The supplicant will typically look at this action and either call + // another method on eaphost or do something else on its own. + OUT EAP_METHOD_AUTHENTICATOR_RESPONSE_ACTION* pEapOutput, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + OUT EAP_ERROR** ppEapError + ); + + + DWORD (APIENTRY * EapMethodAuthenticatorSendPacket) ( + // context handle as returned from a successful call to + // EapHostAuthenticatorBeginSession + IN EAP_SESSION_HANDLE sessionHandle, + // Id to use when constructing the SendPacket + IN BYTE bPacketId, + // Specifies the limit on the size, in bytes, on the packet generated + // by eaphost. On a successful return, this will contain the size of the + // data added by the eap module. + OUT DWORD* pcbSendPacket, + // Pointer to a buffer that is allocated by the client and populated + // by the eap module. The value of the incoming buffer is ignored and + // the method populates it from the beginning of the buffer. + OUT EapPacket* pSendPacket, + // Timeout option for sending the packet + OUT EAP_AUTHENTICATOR_SEND_TIMEOUT* pTimeout, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + OUT EAP_ERROR** ppEapError + ); + + + // Returns an array of attributes that the caller needs to act on. + // The supplicant will call this when a call to + // EapHostAuthenticatorProcessRequestPacket returns EapHostAuthenticatorResponseRespond. + DWORD (APIENTRY * EapMethodAuthenticatorGetAttributes) ( + // context handle as returned from a successful call to + // EapHostAuthenticatorBeginSession + IN EAP_SESSION_HANDLE sessionHandle, + // Array of attributes that the caller needs to act on. + OUT EapAttributes* pAttribs, + OUT EAP_ERROR** ppEapError + ); + + + // Sets an array of attributes that the caller wants the eap method to act + // on. + DWORD (APIENTRY * EapMethodAuthenticatorSetAttributes) ( + // context handle as returned from a successful call to + // EapHostAuthenticatorBeginSession + IN EAP_SESSION_HANDLE sessionHandle, + IN const EapAttributes* const pAttribs, + // This enumeration tells the supplicant to take an appropriate action. + // The supplicant will typically look at this action and either call + // another method on eaphost or do something else on its own. + OUT EAP_METHOD_AUTHENTICATOR_RESPONSE_ACTION* pEapOutput, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + OUT EAP_ERROR** ppEapError + ); + + + // The authenticator will call this on completion of an authentication. This + // can happen in any of the following scenarios: + // 1. A call to EapHostAuthenticatorReceivePacket returned + // EAP_HOST_AUTHENTICATOR_RESPONSE_SUCCESS or EAP_HOST_AUTHENTICATOR_RESPONSE_FAILURE + // Even if the action returned above was a success, the authenticator can choose to call + // this method with a failure. + // 2. The server can choose to terminate an authentication with a failure in the middle of + // an authentication. + DWORD (APIENTRY * EapMethodAuthenticatorGetResult) ( + // context handle as returned from a successful call to + // EapHostPeerBeginSession + IN EAP_SESSION_HANDLE sessionHandle, + // A structure that indicates the result and any state that the + // supplicant needs to save for future authentications. + OUT EAP_METHOD_AUTHENTICATOR_RESULT* pResult, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + OUT EAP_ERROR** ppEapError + ); + + + // Ends the authentication session. This cleans up any state that the eap + // method or eaphost might be keeping. + DWORD (APIENTRY * EapMethodAuthenticatorEndSession) ( + // context handle as returned from a successful call to + // EapHostPeerBeginSession. This will be set to NULL on a successful call. + IN EAP_SESSION_HANDLE sessionHandle, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + OUT EAP_ERROR** ppEapError + ); + + + DWORD (APIENTRY * EapMethodAuthenticatorShutdown) ( + IN EAP_METHOD_TYPE* pEapType, + OUT EAP_ERROR** ppEapError + ); + +} EAP_AUTHENTICATOR_METHOD_ROUTINES, *PEAP_AUTHENTICATOR_METHOD_ROUTINES; + + +// +// EAP Functions +// +void WINAPI EapMethodAuthenticatorFreeErrorMemory(IN EAP_ERROR* pEapError); +void WINAPI EapMethodAuthenticatorFreeMemory( + IN void* pUIContextData + ); + +DWORD EapMethodAuthenticatorGetInfo( + IN EAP_METHOD_TYPE* pEapType, + OUT EAP_AUTHENTICATOR_METHOD_ROUTINES* pEapInfo, + OUT EAP_ERROR** ppEapError + ); + +DWORD EapMethodAuthenticatorInitialize( + IN EAP_METHOD_TYPE* pEapType, + OUT EAP_ERROR** ppEapError + ); + +DWORD EapMethodAuthenticatorBeginSession( + // Flags to qualify the authentication process. + IN DWORD dwFlags, + // Initial Id + IN BYTE bInitialId, + // Identity of the user being authenticated + IN LPCWSTR pwszIdentity, + // Pointer to an array of attributes. This array contains attributes that + // describe the entity being authenticated. + IN const EapAttributes* const pAttributeArray, + // Specifies the size in bytes of the data pointed to by pConnectionData. + // If pConnectionData is NULL, this member is zero. + IN DWORD dwSizeofConnectionData, + // Pointer to connection data received from the authentication protocol's + // configuration user interface. + IN const BYTE* const pConnectionData, + // This is the maximum size of an eap packet that the authenticator can send. + IN DWORD dwMaxSendPacketSize, + // The session handle that identifies the current authentication session. + OUT EAP_SESSION_HANDLE* pSessionHandle, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + OUT EAP_ERROR** ppEapError + ); + +DWORD EapMethodAuthenticatorUpdateInnerMethodParams( + // context handle as returned from a successful call to + // EapAuthenticatorBeginSession + IN EAP_SESSION_HANDLE sessionHandle, + IN DWORD dwFlags, + IN CONST WCHAR* pwszIdentity, + // Pointer to an array of attributes. This array contains attributes that + // describe the entity being authenticated. + IN const EapAttributes* const pAttributeArray, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + OUT EAP_ERROR** ppEapError + ); + + + // The authenticator calls this any time it receives a packet that the eaphost + // needs to process. This should be called only after a successful call to + // EapAuthenticatorBeginSession. +DWORD EapMethodAuthenticatorReceivePacket( + // context handle as returned from a successful call to + // EapAuthenticatorBeginSession + IN EAP_SESSION_HANDLE sessionHandle, + // Specifies the size, in bytes, of the buffer pointed to by + // pReceivePacket + IN DWORD cbReceivePacket, + // Pointer to a buffer that contains the incoming EAP data received by + // the supplicant. + IN const EapPacket* const pReceivePacket, + // This enumeration tells the supplicant to take an appropriate action. + // The supplicant will typically look at this action and either call + // another method on eaphost or do something else on its own. + OUT EAP_METHOD_AUTHENTICATOR_RESPONSE_ACTION* pEapOutput, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + OUT EAP_ERROR** ppEapError + ); + + +DWORD EapMethodAuthenticatorSendPacket( + // context handle as returned from a successful call to + // EapHostAuthenticatorBeginSession + IN EAP_SESSION_HANDLE sessionHandle, + // Id to use when constructing the SendPacket + IN BYTE bPacketId, + // Specifies the limit on the size, in bytes, on the packet generated + // by eaphost. On a successful return, this will contain the size of the + // data added by the eap module. + IN OUT DWORD* pcbSendPacket, + // Pointer to a buffer that is allocated by the client and populated + // by the eap module. The value of the incoming buffer is ignored and + // the method populates it from the beginning of the buffer. + OUT EapPacket* pSendPacket, + // Timeout option for sending the packet + OUT EAP_AUTHENTICATOR_SEND_TIMEOUT* pTimeout, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + OUT EAP_ERROR** ppEapError + ); + + + // Returns an array of attributes that the caller needs to act on. + // The supplicant will call this when a call to + // EapHostAuthenticatorProcessRequestPacket returns EapHostAuthenticatorResponseRespond. +DWORD EapMethodAuthenticatorGetAttributes( + // context handle as returned from a successful call to + // EapHostAuthenticatorBeginSession + IN EAP_SESSION_HANDLE sessionHandle, + // Array of attributes that the caller needs to act on. + OUT EapAttributes* pAttribs, + OUT EAP_ERROR** ppEapError + ); + + + + // Sets an array of attributes that the caller wants the eap method to act + // on. +DWORD EapMethodAuthenticatorSetAttributes( + // context handle as returned from a successful call to + // EapHostAuthenticatorBeginSession + IN EAP_SESSION_HANDLE sessionHandle, + IN const EapAttributes* const pAttribs, + // This enumeration tells the supplicant to take an appropriate action. + // The supplicant will typically look at this action and either call + // another method on eaphost or do something else on its own. + OUT EAP_METHOD_AUTHENTICATOR_RESPONSE_ACTION* pEapOutput, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + OUT EAP_ERROR** ppEapError + ); + + + + // The authenticator will call this on completion of an authentication. This + // can happen in any of the following scenarios: + // 1. A call to EapHostAuthenticatorReceivePacket returned + // EAP_HOST_AUTHENTICATOR_RESPONSE_SUCCESS or EAP_HOST_AUTHENTICATOR_RESPONSE_FAILURE + // Even if the action returned above was a success, the authenticator can choose to call + // this method with a failure. + // 2. The server can choose to terminate an authentication with a failure in the middle of + // an authentication. +DWORD EapMethodAuthenticatorGetResult( + // context handle as returned from a successful call to + // EapHostPeerBeginSession + IN EAP_SESSION_HANDLE sessionHandle, + // A structure that indicates the result and any state that the + // supplicant needs to save for future authentications. + OUT EAP_METHOD_AUTHENTICATOR_RESULT* pResult, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + OUT EAP_ERROR** ppEapError + ); + + + // Ends the authentication session. This cleans up any state that the eap + // method or eaphost might be keeping. +DWORD EapMethodAuthenticatorEndSession( + // context handle as returned from a successful call to + // EapHostPeerBeginSession. This will be set to NULL on a successful call. + IN EAP_SESSION_HANDLE sessionHandle, + // On an unsuccessful call, this will contain any error information about + // the failure. This will be null on a successful call. + OUT EAP_ERROR** ppEapError + ); + + +DWORD EapMethodAuthenticatorShutdown( + IN EAP_METHOD_TYPE* pEapType, + OUT EAP_ERROR** ppEapError + ); + + +/// Config API + +#define EAP_METHOD_AUTHENTICATOR_CONFIG_IS_IDENTITY_PRIVACY 0x1 + +DWORD WINAPI EapMethodAuthenticatorInvokeConfigUI( + IN EAP_METHOD_TYPE* pEapMethodType, + IN HWND hwndParent, + IN DWORD dwFlags, + IN LPCWSTR pwszMachineName, + IN DWORD dwSizeOfConfigIn, + IN BYTE* pConfigIn, + OUT DWORD* pdwSizeOfConfigOut, + OUT BYTE** ppConfigOut, + OUT EAP_ERROR** ppEapError + ); + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // EAP_METHOD_AUTHENTICATOR_APIS_H + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eapmethodpeerapis.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eapmethodpeerapis.h new file mode 100644 index 0000000000000000000000000000000000000000..8cf7389bba8ab3207d75333528225798eeed6135 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eapmethodpeerapis.h @@ -0,0 +1,1028 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation +// +// SYNOPSIS +// +// Declares datastructures that are needed by eap methods on the Peer. +// +/////////////////////////////////////////////////////////////////////////////// + +#ifndef EAPPEERMETHODAPIS_H +#define EAPPEERMETHODAPIS_H +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include "objbase.h" +#include "msxml6.h" +#include "EapMethodTypes.h" + +#ifndef EAPAUTHENTICATORACTIONDEFINE_H +#include "EapAuthenticatorActionDefine.h" +#endif + +#ifndef _NGCTICKETCONTEXT_ +#define _NGCTICKETCONTEXT_ +// The NCRYPT_PIN_CACHE_PIN_PROPERTY and NCRYPT_PIN_CACHE_APPLICATION_TICKET_PROPERTY properties +// return a 32 byte random unique ID encoded as a null terminated base64 Unicode string. The string length +// is 32 * 4/3 + 1 characters = 45 characters, 90 bytes +#define NCRYPT_PIN_CACHE_PIN_BYTE_LENGTH 90 + +#define NGC_TICKET_PROPERTY_STRING_LENGTH (NCRYPT_PIN_CACHE_PIN_BYTE_LENGTH/sizeof(WCHAR)) + +typedef ULONG_PTR NCRYPT_KEY_HANDLE; + +typedef struct _NgcTicketContext +{ + WCHAR wszTicket[NGC_TICKET_PROPERTY_STRING_LENGTH]; + NCRYPT_KEY_HANDLE hKey; + HANDLE hImpersonateToken; +} NgcTicketContext; + +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +// +// Defines used for installation of EAP DLL +// HKLM\System\CCS\Services\Eaphost\Methods\[AuthorId]\[EapTypeId]) +// +// Custom EAP DLL registry installation example: +// Name = Sample.dll, +// AuthorId = 311(Microsoft), +// EapTypeId = (decimal 40) +// HKLM\System\CCS\Services\Eaphost\Methods\311\40 +// +// PeerDllPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll +// PeerConfigUIPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll +// PeerInteractiveUIPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll +// PeerIdentityPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll +// PeerFriendlyName (REG_SZ) Sample EAP Protocol +// PeerRequireConfigUI (REG_DWORD) 1 + +// +// Defines used for installation of EAP DLL +// HKLM\System\CCS\Services\Eaphost\Methods\[AuthorId]\254\[VendorId]\[EapTypeId]) +// +// Custom Expanded EAP DLL registry installation example: +// Name = Sample.dll, +// AuthorId = 311(Microsoft), +// VendorId = 311(Microsoft), +// EapTypeId = (decimal 40) +// HKLM\System\CCS\Services\Eaphost\Methods\311\254\311\40 +// +// PeerDllPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll +// PeerConfigUIPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll +// PeerInteractiveUIPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll +// PeerIdentityPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll +// PeerFriendlyName (REG_SZ) Sample EAP Protocol +// PeerRequireConfigUI (REG_DWORD) 1 + + +#define EAP_REGISTRY_LOCATION \ + TEXT("System\\CurrentControlSet\\Services\\EapHost\\Methods") + +#define EAP_PEER_VALUENAME_DLL_PATH TEXT("PeerDllPath") +#define EAP_PEER_VALUENAME_FRIENDLY_NAME TEXT("PeerFriendlyName") +#define EAP_PEER_VALUENAME_CONFIGUI TEXT("PeerConfigUIPath") +#define EAP_PEER_VALUENAME_REQUIRE_CONFIGUI TEXT("PeerRequireConfigUI") +#define EAP_PEER_VALUENAME_IDENTITY TEXT("PeerIdentityPath") +#define EAP_PEER_VALUENAME_INTERACTIVEUI TEXT("PeerInteractiveUIPath") +#define EAP_PEER_VALUENAME_INVOKE_NAMEDLG TEXT("PeerInvokeUsernameDialog") +#define EAP_PEER_VALUENAME_INVOKE_PWDDLG TEXT("PeerInvokePasswordDialog") +#define EAP_PEER_VALUENAME_PROPERTIES TEXT("Properties") + +// This structure is used in EapPeerGetResult API to convey the authentication result and pass +// additional information to the EapHost and Supplicant. +typedef struct tagEapPeerMethodResult +{ + BOOL fIsSuccess; + DWORD dwFailureReasonCode; + BOOL fSaveConnectionData; + DWORD dwSizeofConnectionData; + _Field_size_bytes_(dwSizeofConnectionData) BYTE* pConnectionData; + BOOL fSaveUserData; + DWORD dwSizeofUserData; + _Field_size_bytes_(dwSizeofUserData) BYTE* pUserData; + EAP_ATTRIBUTES* pAttribArray; + EAP_ERROR* pEapError; + NgcTicketContext* pNgcKerbTicket; + BOOL fSaveToCredMan; +} EapPeerMethodResult; + + + +// List of functions corresponding to the particular EAP method +typedef struct _EAP_PEER_METHOD_ROUTINES +{ + DWORD dwVersion; + EAP_TYPE* pEapType; + + DWORD (APIENTRY * EapPeerInitialize) (EAP_ERROR** ppEapError); + + DWORD (APIENTRY * EapPeerGetIdentity) ( + IN DWORD flags, + IN DWORD dwSizeofConnectionData, + IN const BYTE* pConnectionData, + IN DWORD dwSizeofUserData, + IN const BYTE* pUserData, + IN HANDLE hTokenImpersonateUser, + OUT BOOL* pfInvokeUI, + IN OUT DWORD* pdwSizeOfUserDataOut, + OUT BYTE** ppUserDataOut, + OUT WCHAR** ppwszIdentity, + OUT EAP_ERROR** ppEapError + ); + + DWORD (APIENTRY * EapPeerBeginSession) ( + IN DWORD dwFlags, + IN const EapAttributes* const pAttributeArray, + IN HANDLE hTokenImpersonateUser, + IN DWORD dwSizeofConnectionData, + IN BYTE* pConnectionData, + IN DWORD dwSizeofUserData, + IN BYTE* pUserData, + IN DWORD dwMaxSendPacketSize, + OUT EAP_SESSION_HANDLE* pSessionHandle, + OUT EAP_ERROR** ppEapError + ); + + DWORD (APIENTRY * EapPeerSetCredentials) ( + IN EAP_SESSION_HANDLE sessionHandle, + IN WCHAR* pwszIdentity, + IN WCHAR* pwszPassword, + OUT EAP_ERROR** ppEapError + ); + DWORD (APIENTRY * EapPeerProcessRequestPacket) ( + IN EAP_SESSION_HANDLE sessionHandle, + IN DWORD cbReceivePacket, + IN EapPacket* pReceivePacket, + OUT EapPeerMethodOutput* pEapOutput, + OUT EAP_ERROR** ppEapError + ); + + DWORD (APIENTRY * EapPeerGetResponsePacket) ( + IN EAP_SESSION_HANDLE sessionHandle, + IN OUT DWORD* pcbSendPacket, + OUT EapPacket* pSendPacket, + OUT EAP_ERROR** ppEapError + ); + + DWORD (APIENTRY * EapPeerGetResult) ( + IN EAP_SESSION_HANDLE sessionHandle, + IN EapPeerMethodResultReason reason, + OUT EapPeerMethodResult* ppResult, + OUT EAP_ERROR** ppEapError + ); + + DWORD (APIENTRY * EapPeerGetUIContext) ( + IN EAP_SESSION_HANDLE sessionHandle, + OUT DWORD* dwSizeOfUIContextData, + OUT BYTE** pUIContextData, + OUT EAP_ERROR** ppEapError + ); + + DWORD (APIENTRY * EapPeerSetUIContext) ( + IN EAP_SESSION_HANDLE sessionHandle, + IN DWORD dwSizeOfUIContextData, + IN const BYTE* pUIContextData, + OUT EapPeerMethodOutput* pEapOutput, + OUT EAP_ERROR** ppEapError + ); + + DWORD (APIENTRY * EapPeerGetResponseAttributes) ( + IN EAP_SESSION_HANDLE sessionHandle, + OUT EapAttributes* pAttribs, + OUT EAP_ERROR** ppEapError + ); + + DWORD (APIENTRY * EapPeerSetResponseAttributes) ( + IN EAP_SESSION_HANDLE sessionHandle, + IN EapAttributes* pAttribs, + OUT EapPeerMethodOutput* pEapOutput, + OUT EAP_ERROR** ppEapError + ); + + DWORD (APIENTRY * EapPeerEndSession) ( + IN EAP_SESSION_HANDLE sessionHandle, + OUT EAP_ERROR** ppEapError + ); + + DWORD (APIENTRY * EapPeerShutdown) (OUT EAP_ERROR** ppEapError); +} EAP_PEER_METHOD_ROUTINES; + + + +// +// EAP Functions +// + +// General comment regarding all APIs defined in this file: +// +// If the function succeeds, it returns ERROR_SUCCESS. Otherwise, it is +// considered failure. +// +// If an error code is returned, the out parameter ppEapError will contain +// related error information. The caller is expected to look into it to +// find out the error informations. +// However, there are some situation that it may not be possible to fill +// out information for ppEapError. For example, in out of memory situation, +// the method implementation may not be able to allocate memory for +// ppEapError as well. If for any reason it is not possible to fill ppEapError, +// *ppEapError should be set to NULL. + + +// This function should be an exported function from the DLL +// +// If any other APIs in this file returns EAP_ERROR, use this +// function to free the memory allocated for it +VOID WINAPI EapPeerFreeErrorMemory(_In_ EAP_ERROR* pEapError); + + +// This function should be an exported function from the DLL +// +// Returns information related to a given EAP type. +// Parameters: +// - pEapType: +// the EAP type for this EAP method. Implementation should check this input +// to make sure that it is the same as the method being implemented. +// +// - pEapInfo: +// returns all the information related for pEapType. +DWORD WINAPI EapPeerGetInfo( + _In_ EAP_TYPE* pEapType, + _Out_ EAP_PEER_METHOD_ROUTINES* pEapInfo, + _Out_opt_ EAP_ERROR** ppEapError + ); + + +// This is the first function that EAPHost should call on this method. +// The only exception is EapPeerFreeErrorMemory() and EapPeerGetInfo(), +// which can be called at any time. +// This function should be called only once and it should initialize +// everything needed for this method work properly. +DWORD WINAPI EapPeerInitialize(OUT EAP_ERROR** ppEapError); + + +// EAPHost will call this function, and it would return user data +// and user identity. +// Parameters: +// - dwFlags: +// EAP_FLAG_xxx defined in eaptypes.w +// +// - dwSizeofConnectionData: +// size of the buffer (pConnectionData) in bytes +// +// - pConnectionData: +// connection data specific to this method. It will be used to decide +// the user data returned from this API, when the user data depends on +// certain connection data configuration. The method implementation should +// have default values for connection data, and when this parameter +// is NULL, the default connection data should be used. +// +// - dwSizeofUserData: +// size of the buffer (pUserData) in bytes. +// +// - pUserData: +// the user data specific to this authentication. It will be used to +// pre-populate the user data. +// When this API is called for the first time, or when it needs to start +// a fresh authentication sessin, this parameter will be NULL. +// When it is not NULL, its content should be the user data returned +// from EapPeerGetResult() (*ppResult)->pUserData from previous successful +// authentication session, if that session indicated that user data should be +// saved. +// +// - pfInvokeUI: +// should return true if the user identity and user data blob can not be +// returned successfully and the method decides that it has to collect the +// information from the user through UI. +// +// - pdwSizeOfUserDataOut: +// *pdwSizeOfUserDataOut is the size of buffer *ppUserDataOut +// +// - ppUserDataOut: +// returned user data. The data will be passed to EapPeerBeginSession() +// as input pUserData +// +// - ppwszIdentity: +// returned user identity. It will be included in the identity response packet +// and returned to the server. +DWORD WINAPI EapPeerGetIdentity ( + IN DWORD dwFlags, + IN DWORD dwSizeofConnectionData, + IN const BYTE* pConnectionData, + IN DWORD dwSizeofUserData, + IN const BYTE* pUserData, + IN HANDLE hTokenImpersonateUser, + OUT BOOL* pfInvokeUI, + IN OUT DWORD* pdwSizeOfUserDataOut, + OUT BYTE** ppUserDataOut, + OUT _Out_ LPWSTR* ppwszIdentity, + OUT EAP_ERROR** ppEapError + ); + + +// Start an authentication session. +// Parameters: +// - dwFlags: +// EAP_FLAG_xxx defined in eaptypes.w +// +// - pAttributeArray: +// attributes passed to the method. +// +// - hTokenImpersonateUser: +// Impersonation token for the user to be authenticated. +// +// - dwSizeofConnectionData: +// size of the buffer (pConnectionData) in bytes +// +// - pConnectionData: +// See the comment for pConnectionData for EapPeerGetIdentity() +// +// - dwSizeofUserData: +// size of the buffer (pUserData) in bytes +// +// - pUserData: +// user data returned from EapPeerGetIdentity() +// +// - dwMaxSendPacketSize: +// maximum packet size that the method can send. If the method needs to +// send a message larger than this size, the method has to handle fragmentation +// and resembling. +// +// - pSessionHandle: +// This is an "identifier" of the authentication session. +// When other EapPeerXxxx() functions with a sessionHandle parameter +// being called, *pSessionHandle will be passed as the session handle. +// The method should be able to use this to find the information related +// the authentication session. +DWORD WINAPI EapPeerBeginSession( + IN DWORD dwFlags, + IN const EapAttributes* const pAttributeArray, + IN HANDLE hTokenImpersonateUser, + IN DWORD dwSizeofConnectionData, + IN BYTE* pConnectionData, + IN DWORD dwSizeofUserData, + IN BYTE* pUserData, + IN DWORD dwMaxSendPacketSize, + OUT EAP_SESSION_HANDLE* pSessionHandle, + OUT EAP_ERROR** ppEapError + ); + + +// A method exports either EapPeerGetIdentity (and EapPeerInvokeIdentityUI) or +// exports EapPeerSetCredentials (and sets the InvokeUserNameDlg regkey). The +// registry key controls which of the two apis will get called. +DWORD WINAPI EapPeerSetCredentials( + IN EAP_SESSION_HANDLE sessionHandle, + IN _In_ LPWSTR pwszIdentity, + IN _In_ LPWSTR pwszPassword, + OUT EAP_ERROR** ppEapError + ); + + +// EAPHost will pass the packet to the method for processing. +// Parameters: +// - sessionHandle: +// the value returned through *pSessionHandle from EapPeerBeginSession() +// +// - cbRecevedPacket: +// buffer size of (pReceivePacket) in bytes +// +// - pReceivedPacket: +// pointer to received packet +// +// - pEapOutput: +// the method should fill this struct to tell the supplicant what to do. +DWORD WINAPI EapPeerProcessRequestPacket( + IN EAP_SESSION_HANDLE sessionHandle, + IN DWORD cbReceivedPacket, + IN EapPacket* pReceivedPacket, + OUT EapPeerMethodOutput* pEapOutput, + OUT EAP_ERROR** ppEapError + ); + + +// This function returns the packet to be sent to the server. +// Parameters: +// - sessionHandle: +// the value returned through *pSessionHandle from EapPeerBeginSession() +// +// - pcbSendPacket: +// *pcbSendPacket is the size of the buffer for (pSendPacket) when passed in. +// Upon return, *pcbSendPacket is the sizeof the actual content in pSendPacket +// +// - pSendPacket: +// pointer to a buffer that contains the packet to send upon return +DWORD WINAPI EapPeerGetResponsePacket( + IN EAP_SESSION_HANDLE sessionHandle, + IN OUT DWORD* pcbSendPacket, + OUT EapPacket* pSendPacket, + OUT EAP_ERROR** ppEapError + ); + + +// This will get called either when a method says that it has completed auth. +// or when the lower layer receives an alternative result. +// parameters: +// - sessionHandle: +// the value returned through *pSessionHandle from EapPeerBeginSession() +// +// - reason: +// one of the reason enum defined above in this file. +// +// - ppResult: +// Method should fill this struct with related information as defined +// by EapPeerMethodResult +DWORD WINAPI EapPeerGetResult( + IN EAP_SESSION_HANDLE sessionHandle, + IN EapPeerMethodResultReason reason, + OUT EapPeerMethodResult* ppResult, + OUT EAP_ERROR** ppEapError + ); + +// This will get called if UI should be raised during authentication session. +// This function will always be followed by EapPeerInvokeInteractiveUI() and +// then followed by EapPeerSetUIContext() +// parameters: +// - sessionHandle: +// the value returned through *pSessionHandle from EapPeerBeginSession() +// +// - pdwSizeOfUIContextData: +// *pdwSizeOfUIContextData is the size of *ppUIContextData in bytes. +// +// - ppUIContextData: +// It will be passed to EapPeerInvokeInteractiveUI() as IN parameter +// pUIContextData +DWORD WINAPI EapPeerGetUIContext( + IN EAP_SESSION_HANDLE sessionHandle, + OUT DWORD* pdwSizeOfUIContextData, + OUT BYTE** ppUIContextData, + OUT EAP_ERROR** ppEapError + ); + + +// It will be called after UI has been raised. Refer to EapPeerGetUIContext() +// for more information. +// parameters: +// - sessionHandle: +// the value returned through *pSessionHandle from EapPeerBeginSession() +// +// - dwSizeOfUIContextData: +// size of pUIContextData in bytes. +// +// - pUIContextData: +// This is the data returned from EapPeerInvokeInteractiveUI() OUT parameter +// *ppDataFromInteractiveUI +// +// - pEapOutput: +// the method should fill this struct to tell the supplicant what to do. +DWORD WINAPI EapPeerSetUIContext( + IN EAP_SESSION_HANDLE sessionHandle, + IN DWORD dwSizeOfUIContextData, + IN const BYTE* pUIContextData, + OUT EapPeerMethodOutput* pEapOutput, + OUT EAP_ERROR** ppEapError + ); + + +// If EAPHost calls any of the EapPeerXxxx() function, and that function has +// pEapOutput as a OUT parameter, and the action code in it is +// EapPeerMethodResponseActionRespond, this function will be the next function +// that EAPHost will call. +// And it will be follow by a call to EapPeerSetResponseAttributes() +// parameters: +// - sessionHandle: +// the value returned through *pSessionHandle from EapPeerBeginSession() +// +// - pAttributes: +// method should fill this with the attributes it need to return. +DWORD WINAPI EapPeerGetResponseAttributes( + IN EAP_SESSION_HANDLE sessionHandle, + OUT EapAttributes* pAttribs, + OUT EAP_ERROR** ppEapError + ); + + +// See EapPeerGetResponseAttributes() for when this function will be called. +// parameters: +// - sessionHandle: +// the value returned through *pSessionHandle from EapPeerBeginSession() +// +// - pAttributes: +// attributes passed to this method. +// +// - pEapOutput: +// the method should fill this struct to tell the supplicant what to do. +DWORD WINAPI EapPeerSetResponseAttributes( + IN EAP_SESSION_HANDLE sessionHandle, + IN EapAttributes* pAttribs, + OUT EapPeerMethodOutput* pEapOutput, + OUT EAP_ERROR** ppEapError + ); + +// The last function that will be called for this authentication session. +// - sessionHandle: +// the value returned through *pSessionHandle from EapPeerBeginSession() +// +DWORD WINAPI EapPeerEndSession( + IN EAP_SESSION_HANDLE sessionHandle, + OUT EAP_ERROR** ppEapError + ); + +// This is the last function that EAPHost should call on this method. +// The only exception is EapPeerFreeErrorMemory() and EapPeerGetInfo(), +// which can be called at any time. +// This function should be called only once and it should un-initialize +// everything for this method. +DWORD WINAPI EapPeerShutdown(OUT EAP_ERROR** ppEapError); + + +// It should raise a configuration UI so that the user can configure the method +// parameters: +// - pEapType: +// method type for this method +// +// - hwndParent: +// The parent window for the UI to be raised by this function. +// +// - dwFlags: +// EAP_FLAG_xxx defined in eaptypes.w +// +// - dwSizeOfConnectionDataIn: +// size of pConnectionDataIn in bytes +// +// - pConnectionDataIn: +// Used to pre-populate the configuration UI. The first time this function +// is called, or if it is desired to start from scratch, it will be NULL, +// otherwise, it will be the data returned from previous +// EapPeerInvokeConfigUI() ppConnectionDataOut OUT parameter +// +// - pdwSizeOfConnectionDataOut: +// *pdwSizeOfConnectionDataOut is the size of *ppConnectionDataOut +// +// - ppConnectionDataOut: +// *ppConnectionDataOut is configuration data returned from this functioin. +// It will be used to pass to next EapPeerInvokeConfigUI() call. +DWORD WINAPI EapPeerInvokeConfigUI( + IN EAP_METHOD_TYPE* pEapType, + IN HWND hwndParent, + IN DWORD dwFlags, + IN DWORD dwSizeOfConnectionDataIn, + IN BYTE* pConnectionDataIn, + OUT DWORD* pdwSizeOfConnectionDataOut, + OUT BYTE** ppConnectionDataOut, + OUT EAP_ERROR** ppEapError + ); + +// This function should raise interactive UI for the Method. What UI to be raised and how to raise +// is Method specific information that is embedded in pUIContextData. +// +// Parameters: +// - pEapType: +// method type for this method +// +// - hwndParent: +// The parent window for the UI to be raised by this function. +// +// - dwFlags: +// EAP_FLAG_xxx defined in eaptypes.w +// - dwSizeofUIContextData: +// Number of bytes of UIContext data referred by pUIContextData. +// - pUIContextData: +// A blob that conveys the state of the authentication and describes what and how to show the UI +// to the user. +// - pdwSizeOfDataFromInteractiveUI +// Number of bytes of blob referred by *ppDataFromInteractiveUI. +// - ppDataFromInteractiveUI +// A UI context blob that captures the result of UI interaction +// - pEapError +// Pointer to pointer to EAP_ERROR that will be filled by the Method in the case of error. In some cases +// the structure might not be filled. +DWORD WINAPI EapPeerInvokeInteractiveUI( + IN EAP_METHOD_TYPE* pEapType, + IN HWND hwndParent, + IN DWORD dwSizeofUIContextData, + IN BYTE* pUIContextData, + OUT DWORD* pdwSizeOfDataFromInteractiveUI, + OUT BYTE** ppDataFromInteractiveUI, + OUT EAP_ERROR** ppEapError + ); + + +// This function should raise credential UI for the Method. Method can use the configuration passed in to +// decide what kind of UI should be shown to the user. +// +// Parameters: +// - pEapType: +// method type for this method +// +// - dwFlags: +// EAP_FLAG_xxx defined in eaptypes.w +// +// - hwndParent: +// The parent window for the UI to be raised by this function. +// +// - dwSizeOfConnectionData: +// Number of bytes of pConnectionData. +// +// - pConnectionData: +// Configuration blob for the Method. +// +// - dwSizeOfUserData +// Number of bytes of pUserData. +// +// - pUserData +// Cached credential blob. This would be NULL if this is the first time successful authentication is being done. +// +// - ppwszIdentity +// Pointer to unicode string that receives the identity that EapHost should use as part of EAP Identity reponse. +// +// - pEapError +// Pointer to pointer to EAP_ERROR that will be filled by the Method in the case of error. In some cases +// the structure might not be filled. +DWORD WINAPI EapPeerInvokeIdentityUI( + IN EAP_METHOD_TYPE* pEapType, + IN DWORD dwFlags, + IN HWND hwndParent, + IN DWORD dwSizeOfConnectionData, + IN const BYTE* pConnectionData, + IN DWORD dwSizeOfUserData, + IN const BYTE* pUserData, + OUT DWORD* pdwSizeOfUserDataOut, + OUT BYTE** ppUserDataOut, + OUT _Outptr_ LPWSTR* ppwszIdentity, + OUT EAP_ERROR** ppEapError + ); + + +// This function returns credential fields to be shown to the user for the authentication. As part of this function +// Method should not bring up UI instead it should describe what credentials are to be obtained. Based on the +// return values, Supplicant draws the UI to the user and obtains the requested credentials. +// +// Parameters: +// - hUserImpersonationToken: +// Impersonation token of the user/machine who is being authenticated. +// +// - eapMethodType +// method type for this method +// +// - dwFlags: +// EAP_FLAG_xxx defined in eaptypes.w +// + // - dwEapConnDataSize: +// Number of bytes of pbEapConnData. +// +// - pbEapConnData: +// Configuration blob for the Method. +// +// - dwSizeOfUserData +// Number of bytes of pUserData. +// +// - pEapConfigFieldsArray +// Pointer to EAP_CONFIG_INPUT_FIELD_ARRAY that receives array of credential fields. +// +// - pEapError +// Pointer to pointer to EAP_ERROR that will be filled by the Method in the case of error. In some cases +// the structure might not be filled. +DWORD WINAPI EapPeerQueryCredentialInputFields( + IN HANDLE hUserImpersonationToken, + IN EAP_METHOD_TYPE eapMethodType, + IN DWORD dwFlags, + IN DWORD dwEapConnDataSize, + IN _In_reads_(dwEapConnDataSize) BYTE* pbEapConnData, + OUT EAP_CONFIG_INPUT_FIELD_ARRAY* pEapConfigFieldsArray, + OUT EAP_ERROR** ppEapError + ); + + +// This function returns credential blob based on the credentials passed in the credential array structure. +// Method should not bring up UI. It should convert the credentials in to a blob that could be passed to +// EapPeerBeginSession. +// +// Parameters: +// - hUserImpersonationToken: +// Impersonation token of the user/machine who is being authenticated. +// +// - eapMethodType +// method type for this method +// +// - dwFlags: +// EAP_FLAG_xxx defined in eaptypes.w +// + // - dwEapConnDataSize: +// Number of bytes of pbEapConnData. +// +// - pbEapConnData: +// Configuration blob for the Method. +// +// - dwSizeOfUserData +// Number of bytes of pUserData. +// +// - pEapConfigFieldsArray +// Pointer to EAP_CONFIG_INPUT_FIELD_ARRAY that contains array of credential fields filled by supplicant. +// +// - pdwUserBlobSize: +// Pointer to DWORD that receives the size of the ppbUserBlob. +// +// - ppbUserBlob +// Pointer to buffer that receives credential blob. +// +// - pEapError +// Pointer to pointer to EAP_ERROR that will be filled by the Method in the case of error. In some cases +// the structure might not be filled. +DWORD WINAPI EapPeerQueryUserBlobFromCredentialInputFields( + IN HANDLE hUserImpersonationToken, + IN EAP_METHOD_TYPE eapMethodType, + IN DWORD dwFlags, + IN DWORD dwEapConnDataSize, + IN _In_reads_(dwEapConnDataSize) BYTE* pbEapConnData, + IN const EAP_CONFIG_INPUT_FIELD_ARRAY *pEapConfigInputFieldArray, + // pointer to DWORD that receives size of credential blob, if EAPHost passes in + // non-zero size and non-NULL data below, EAP-method will just attempt to Update + // the blob with passed in values (if supported) instead of creating a new one. EAP-method + // is not expected to release the passed in buffer, EAPHost will release it after API completion.. + IN OUT DWORD *pdwUserBlobSize, + IN OUT _Outptr_result_buffer_(*pdwUserBlobSize) BYTE **ppbUserBlob, + OUT EAP_ERROR** ppEapError + ); + +// This function returns fields to be displayed during interactive time when alternative UI is used. +// Method should not bring up UI in this function. +// +DWORD WINAPI EapPeerQueryInteractiveUIInputFields( + // API's version number for ease of interoperability. It must be 0. + IN DWORD dwVersion, + // control the behavior of the EAP Methods + IN DWORD dwFlags, + // size of UIcontext data EAPHost runtime + IN DWORD dwSizeofUIContextData, + // UIContext data received from EAPHost runtime + IN _In_reads_(dwSizeofUIContextData) const BYTE* pUIContextData, + //structure that gets filled with fields and how they should be shown to the user. + // Caller (EapHost) should free the memory using EapPeerFreeMemory. + OUT EAP_INTERACTIVE_UI_DATA* pEapInteractiveUIData, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapPeerFreeErrorMemory + OUT EAP_ERROR** ppEapError, + // Reserved for future usage. It must be NULL. + IN OUT LPVOID *ppvReserved + ); + +// This function returns interactive UI blob from the UI fields filled by the user +// +DWORD WINAPI EapPeerQueryUIBlobFromInteractiveUIInputFields( + // API's version number for ease of interoperability. It must be 0. + IN DWORD dwVersion, + // control the behavior of the EAP Methods + IN DWORD dwFlags, + // size of UIcontext data EAPHost runtime + IN DWORD dwSizeofUIContextData, + // UIContext data received from EAPHost runtime + IN _In_reads_(dwSizeofUIContextData) const BYTE* pUIContextData, + // structure that carries data provided by user + IN const EAP_INTERACTIVE_UI_DATA *pEapInteractiveUIData, + // pointer to DWORD that receives size of credential blob + OUT DWORD * pdwSizeOfDataFromInteractiveUI, + // Pointer that receives the credential blob that can be used in authentication. + // Caller (EapHost) should free the memory using EapPeerFreeMemory. + OUT _Outptr_result_buffer_(*pdwSizeOfDataFromInteractiveUI) BYTE ** ppDataFromInteractiveUI, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapPeerFreeErrorMemory + OUT EAP_ERROR** ppEapError, + // Reserved for future usage. It must be NULL. + IN OUT LPVOID *ppvReserved + ); + + +// This function converts XML document containing configuration information into a blob that could be passed to other +// APIs that expect configuration blob. +// +// Parameters: +// - dwFlags: +// EAP_FLAG_xxx defined in eaptypes.w +// +// - eapMethodType +// method type for this method +// + // - dwEapConnDataSize: +// Number of bytes of pbEapConnData. +// +// - pConfigDoc: +// Pointer to XMLDOMDocument2 that refers to the XML document containg the configuration XML +// +// - ppConfigOut +// Pointer to buffer that receives configuration blob. +// +// - pdwSizeOfConfigOut +// Pointer to DWORD that receives size of ppConfigOut. +// +// - pEapError +// Pointer to pointer to EAP_ERROR that will be filled by the Method in the case of error. In some cases +// the structure might not be filled. +DWORD WINAPI EapPeerConfigXml2Blob( + IN DWORD dwFlags, + IN EAP_METHOD_TYPE eapMethodType, + IN IXMLDOMDocument2* pConfigDoc, + OUT _Out_writes_(*pdwSizeOfConfigOut) BYTE** ppConfigOut, + OUT DWORD* pdwSizeOfConfigOut, + OUT EAP_ERROR** ppEapError + ); + + +// This function converts XML document containing credential information into a blob that could be passed to other +// APIs that expect credential blob. +// +// Parameters: +// - dwFlags: +// EAP_FLAG_xxx defined in eaptypes.w +// +// - eapMethodType +// method type for this method +// +// - pCredentialsDoc: +// Pointer to XMLDOMDocument2 that refers to the XML document containg the credential XML +// +// - pConfigIn +// Pointer to buffer that contains configuration blob. +// +// - dwSizeOfConfigIn +// Size of pConfigIn +// +// - ppCredentialsOut +// Pointer to buffer that receives the credential blob +// +// - pdwSizeOfCredentialsOut +// Pointer to DWORD that receives size of ppCredentialsOut +// +// - pEapError +// Pointer to pointer to EAP_ERROR that will be filled by the Method in the case of error. In some cases +// the structure might not be filled. +DWORD WINAPI EapPeerCredentialsXml2Blob( + IN DWORD dwFlags, + IN EAP_METHOD_TYPE eapMethodType, + IN IXMLDOMDocument2* pCredentialsDoc, + IN _In_reads_(dwSizeOfConfigIn) const BYTE* pConfigIn, + IN DWORD dwSizeOfConfigIn, + OUT _Out_writes_(*pdwSizeOfCredentialsOut) BYTE** ppCredentialsOut, + OUT DWORD* pdwSizeOfCredentialsOut, + OUT EAP_ERROR** ppEapError + ); + + +// This function converts configuration blob into configuration XML document. Methods exporting this API +// will be supporting exporting of and importing of configuration with out problem. It also helps administrators +// modify the configuration. +// +// Parameters: +// - dwFlags: +// EAP_FLAG_xxx defined in eaptypes.w +// +// - eapMethodType +// method type for this method +// +// - pConfigIn: +// Configuration blob +// +// - dwSizeOfConfigIn +// Size of pConfigIn +// +// - ppConfigDoc +// Pointer to IXMLDOMDocument2 that receives configuration XML for the given configuration blob. +// +// - pEapError +// Pointer to pointer to EAP_ERROR that will be filled by the Method in the case of error. In some cases +// the structure might not be filled. +DWORD WINAPI EapPeerConfigBlob2Xml( + IN DWORD dwFlags, + IN EAP_METHOD_TYPE eapMethodType, + IN _In_reads_(dwSizeOfConfigIn) const BYTE* pConfigIn, + IN DWORD dwSizeOfConfigIn, + OUT IXMLDOMDocument2** ppConfigDoc, + OUT EAP_ERROR** ppEapError + ); + + +// This function retrieves the method properties for a specific configuration data. The method properties +// returned by the API will be a subset of the properties value in the registry. +// +// Parameters: +// - dwVersion: +// The version number of the API. +// +// - dwFlags +// A combination of EAP flags that describe the EAP authentication session behavior. +// +// - hUserImpersonationToken +// An impersonation token for the user whose credentials are to be requested and obtained. +// +// - eapMethodType +// An EAP_METHOD_TYPE structure that contains vendor and author information about the +// EAP method used for authenticating the connection. +// +// - dwSizeOfConnectionDataIn +// The size, in bytes, of the connection data buffer provided in pConnectionDataIn +// +// - pConnectionDataIn +// Connection data used for the EAP method +// +// - dwSizeOfUserDataIn +// The size in bytes of the user data buffer provided in pUserDataIn +// +// - pUserDataIn +// A pointer to a byte buffer that contains the opaque user data BLOB +// +// - pMethodPropertyArray +// A pointer to the method properties array. +// +// - ppEapError +// A pointer to a pointer to an EAP_ERROR structure that contains any errors raised by +// EAPHost during the execution of this function call. +DWORD WINAPI EapPeerGetMethodProperties( + _In_ DWORD dwVersion, + _In_ DWORD dwFlags, + _In_ EAP_METHOD_TYPE eapMethodType, + _In_ HANDLE hUserImpersonationToken, + _In_ DWORD dwSizeOfConnectionDataIn, + _In_ BYTE* pConnectionDataIn, + _In_ DWORD dwSizeOfUserDataIn, + _In_ BYTE* pUserDataIn, + _Out_ EAP_METHOD_PROPERTY_ARRAY* pMethodPropertyArray, + _Out_ EAP_ERROR** ppEapError + ); + + +// This function allows the EAP method developers to provide the various +// connection properties and user properties supported by the method. EAPHost +// will invoke this function to create the connection property and user +// property of the EAP method. +// +// Parameters: +// - dwFlags +// A combination of EAP flags that describe the EAP authentication session +// behavior. +// +// - eapMethodType +// An EAP_METHOD_TYPE structure that contains vendor and author information +// about the EAP method used for authenticating the connection. +// +// - eapCredential +// An EapCredential structure that contains the credential type and the +// appropriate credentials. +// +// - pdwConfigBlobSize +// Receives a pointer to the size, in bytes, of the ppConfigBlob parameter. +// +// - ppConfigBlob +// Receives a pointer to a pointer that contains a byte buffer with +// configured connection data. +// +// - pdwUserBlobSize +// Receives a pointer to the size in byte of the ppUserBlob parameter. +// +// - ppUserBlobp +// Receives a pointer to a pointer that contains a byte buffer with the +// methods user data. +// +// - ppEapError +// A pointer to the address of an EAP_ERROR structure that contains any +// errors raised during the execution of this function call. After consuming +// the error data this memory will be freed by calling EapPeerFreeErrorMemory +DWORD WINAPI EapPeerGetConfigBlobAndUserBlob( + IN DWORD dwFlags, + IN EAP_METHOD_TYPE eapMethodType, + IN EapCredential eapCredential, + OUT DWORD* pdwConfigBlobSize, + OUT BYTE** ppConfigBlob, + OUT DWORD* pdwUserBlobSize, + OUT BYTE** ppUserBlob, + OUT EAP_ERROR** ppEapError + ); + + +// This function frees memory returned by the configuration APIs. This function is called by EapHost when +// it is done with the memory returned by the Method. +// +// Parameters: +// - pUIContextData: +// Any memory returned by configuration APIs. +// +VOID WINAPI EapPeerFreeMemory( + _In_ void* pUIContextData + ); + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // EAP_PEER_METHOD_APIS_H + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eapmethodtypes.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eapmethodtypes.h new file mode 100644 index 0000000000000000000000000000000000000000..710f1e8684a61116ff30099ba28ef9f2a3f02e62 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eapmethodtypes.h @@ -0,0 +1,67 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation +// +// SYNOPSIS +// +// Declares datastructures that executes the peer eap state machine. +// +/////////////////////////////////////////////////////////////////////////////// + +#ifndef EAPMETHODAPIS_H +#define EAPMETHODAPIS_H +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +// structure that represents EAP packet on the wire +typedef struct tagEapPacket +{ + BYTE Code; + BYTE Id; + BYTE Length[2]; + BYTE Data[1]; + // Any additional data following the first byte. The length of + // the data can be deduced by the length fields. +} EapPacket; + +// +// EAP packet codes from EAP spec. +// +typedef +#ifdef __midl + [v1_enum] +#endif + +// possible values for 'code' in EAPPacket +enum tagEapCode +{ + EapCodeMinimum = 1, + EapCodeRequest = 1, + EapCodeResponse, + EapCodeSuccess, + EapCodeFailure, + EapCodeMaximum = EapCodeFailure +} EapCode; + +// This is a handle to an eap session owned by the individual eap methods. +typedef VOID* EAP_SESSION_HANDLE; + + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // EAPMETHODAPIS_H + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eappapis.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eappapis.h new file mode 100644 index 0000000000000000000000000000000000000000..670412cbc7da3eb4e665ad42e6b64dbd48e03823 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eappapis.h @@ -0,0 +1,451 @@ +////////////////////////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation +// +// SYNOPSIS +// +// Declares apis to invoke peer apis on eaphost. +// +/////////////////////////////////////////////////////////////////////////////// + +#ifndef EAPPAPIS_H +#define EAPPAPIS_H +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif + +typedef void (CALLBACK *NotificationHandler) ( + IN GUID connectionId, + IN void* pContextData + ); + + +// General note about the memory allocated for the OUT parameters: +// +// If memory is dynamically allocated for the OUT parameters, the memory +// will be available until the caller makes the next call. If the caller +// want to keep the content cross multiple calls, the caller must keep its +// own copy. +// To have all the allocated memory (allocated by this DLL) reclaimed, +// the caller finally must call either EapHostPeerEndSession() or +// EapHostPeerClearConnection(). +// +// EAP_ERROR** OUT parameter is an exception. The caller must call +// EapHostPeerFreeEapError() to free the memory. +// +// +// Thread safety: +// EapHostPeerInitialize() and EapHostPeerUninitialize() are always thread +// safe. +// +// EapHostPeerFreeEapError() is not thread safe. There should be only one +// thread being called to free the same EAP_ERROR*. And obviously it should +// not be called more than once for the same EAP_ERROR*. +// +// For all the other functions, there should only be one thread calling them +// for the same session. However, it is safe for multiple threads to call them +// for different sessions. +// +// If the functions succeed, they return ERROR_SUCCESS. Otherwise, it is +// considered failure. +// +// If an error code is returned, the out parameter ppEapError will contain +// related error information. The caller is expected to look into it to +// find out the error informations. +// However, there are some situation that it may not be possible to fill +// out information for ppEapError. For example, in out of memory situation, +// the method implementation may not be able to allocate memory for +// ppEapError as well. If for any reason it is not possible to fill ppEapError, +// *ppEapError should be set to NULL. + + +// Must call this before it starts to call any other fucntion. +// If this function fails, no other EapHostPeer... functions can be called. +// +// Inside this function, it calls CoInitializeEx(NULL, COINIT_MULTITHREADED) +// So the client should not initialize a conflicting COM environment. +// If the client really needs a different COM environment, it should use the +// COM APIs directly instead of using this C style APIs. +DWORD APIENTRY EapHostPeerInitialize(); + +// Must call this after it is done calling any other EapHostPeer... +// functions. +// Inside this function it calls CoUninitialize(). +void APIENTRY EapHostPeerUninitialize(); + +// If this function succeeds, no matter the calls to other functions +// succeed or fail, the caller MUST call EapHostPeerEndSession() to end +// the authentication session. if EapHostPeerBeginSession() provides a +// valid GUID to register the connectionand, then EapHostPeerClearConnection() +// must be called at the very end (i.e. there will be no more authentication +// on this GUID) to remove the connection. The connection GUID +// is valid cross multiple authentications. +// +// However, if this function fails, the caller can not proceed with +// other calls. It should NOT call EapHostPeerEndSession() or +// EapHostPeerClearConnection() if this function fails. +// +// For the same pConnectionId, EapHostPeerEndSession() must be called +// before EapHostPeerBeginSession() can be called again. +// +// Parameters: +// - dwFlags: +// EAP_FLAG_xxx defined in eaptypes.w +// +// - eapType: +// the EAP method type to be used for the authentication. +// +// - pAttributeArray: +// attributes passed to the method. +// +// - hTokenImpersonateUser: +// Impersonation token for the user to be authenticated. +// +// - dwSizeofConnectionData: +// size of the buffer (pConnectionData) in bytes +// +// - pConnectionData: +// See the comment for pConnectionData for EapPeerGetIdentity() +// +// - dwSizeofUserData: +// size of the buffer (pUserData) in bytes +// +// - pUserData: +// user data returned from EapPeerGetIdentity() +// +// - dwMaxSendPacketSize: +// maximum packet size that the method can send. If the method needs to +// send a message larger than this size, the method has to handle fragmentation +// and resembling. +// +// - pConnectionId: +// It can be NULL. Otherwise, it should point to a valid GUID which respresent +// the connection. When re-authentication is needed due to system health change, +// the callback function func will be called and this GUID pointer will +// be passed as an IN parameter to indicate which connection the callback +// is for. +// +// - func: +// callback function pointer used for re-authentication. This function +// will be called when system health changes and a re-authentication is needed. +// if the function handler is NULL, pContextData will be ignored, +// and it means the caller is not interested in system health change +// notification +// +// - pSessionId: +// Return session ID in it. This is used to identify the authentication session. +DWORD APIENTRY +EapHostPeerBeginSession( + IN DWORD dwFlags, + IN EAP_METHOD_TYPE eapType, + IN const EapAttributes* const pAttributeArray, + IN HANDLE hTokenImpersonateUser, + IN DWORD dwSizeofConnectionData, + IN const BYTE* const pConnectionData, + IN DWORD dwSizeofUserData, + IN const BYTE* const pUserData, + IN DWORD dwMaxSendPacketSize, + // If the supplicant is intrested in re-auth caused by NAP health change, + // it should provide a unique GUID. + // When this function is called by PEAP inner method, it will be NULL. + // + // When pConnectionId is NULL, func and pContextData will be ignored. + IN const GUID* const pConnectionId, + // if the function handler is NULL, pContextData will be ignored, + // and it means the caller is not interested in SoH change notification + // from EapQec. + IN NotificationHandler func, + // a pointer to some data that the supplicant want to associate with + // the connection when NotificationHandler call back is called. + // When NotificationHandler is called, it will be called as: + // func(*pCOnnectionId, pContextData). + IN void* pContextData, + OUT EAP_SESSIONID* pSessionId, + OUT EAP_ERROR** ppEapError + ); + + + +// Supplicant will pass the packet to EAPHost for processing. +// Parameters: +// - sessionHandle: +// the value returned through *pSessionId from EapHostPeerBeginSession() +// +// - cbReceivePacket: +// buffer size of (pReceivePacket) in bytes +// +// - pReceivePacket: +// pointer to received packet +// +// - pEapOutput: +// It will tell the supplicant what's the next EAPHost API that it should call. +DWORD APIENTRY +EapHostPeerProcessReceivedPacket( + IN EAP_SESSIONID sessionHandle, + IN DWORD cbReceivePacket, + IN const BYTE* const pReceivePacket, + OUT EapHostPeerResponseAction* pEapOutput, + OUT EAP_ERROR** ppEapError + ); + + +// This function returns the packet to be sent. Supplicant should send the +// returned packet to server. +// +// Parameters: +// - sessionHandle: +// the value returned through *pSessionId from EapHostPeerBeginSession() +// +// - pcbSendPacket: +// Upon return, *pcbSendPacket is the sizeof the actual content in pSendPacket +// +// - ppSendPacket: +// pointer to a buffer that contains the packet to send upon return +DWORD APIENTRY +EapHostPeerGetSendPacket( + IN EAP_SESSIONID sessionHandle, + OUT DWORD* pcbSendPacket, + OUT BYTE** ppSendPacket, + OUT EAP_ERROR** ppEapError + ); + + +// Supplicant calls this function to retrieve authentication result. +// Parameters: +// - sessionHandle: +// the value returned through *pSessionId from EapHostPeerBeginSession() +// +// - reason: +// One of the reason code defined in eaphostPeerTypes.h +// +// - ppResult: +// EAPHost will fill this struct with related information as defined +// by EapHostPeerMethodResult +DWORD APIENTRY +EapHostPeerGetResult( + IN EAP_SESSIONID sessionHandle, + IN EapHostPeerMethodResultReason reason, + OUT EapHostPeerMethodResult* ppResult, + OUT EAP_ERROR** ppEapError + ); + + +// This will get called if UI should be raised during authentication session. +// This function will always be followed by EapHostPeerInvokeInteractiveUI() +// and then followed by EapHostPeerSetUIContext() +// Parameters: +// - sessionHandle: +// the value returned through *pSessionId from EapHostPeerBeginSession() +// +// - pdwSizeOfUIContextData: +// *pdwSizeOfUIContextData is the size of *ppUIContextData in bytes. +// +// - ppUIContextData: +// It will be passed to EapHostPeerInvokeInteractiveUI() as IN parameter +// pUIContextData +DWORD APIENTRY +EapHostPeerGetUIContext( + IN EAP_SESSIONID sessionHandle, + OUT DWORD* pdwSizeOfUIContextData, + OUT BYTE** ppUIContextData, + OUT EAP_ERROR** ppEapError + ); + + +// It will be called after UI has been raised. Refer to EapHostPeerGetUIContext() +// for more information. +// +// Parameters: +// - sessionHandle: +// the value returned through *pSessionId from EapHostPeerBeginSession() +// +// - dwSizeOfUIContextData: +// size of pUIContextData in bytes. +// +// - pUIContextData: +// This is the data returned from EapHostPeerInvokeInteractiveUI() OUT +// parameter +// *ppDataFromInteractiveUI +// +// - pEapOutput: +// It will tell the supplicant what's the next EAPHost API that it should call. +DWORD APIENTRY +EapHostPeerSetUIContext( + IN EAP_SESSIONID sessionHandle, + IN DWORD dwSizeOfUIContextData, + IN const BYTE* const pUIContextData, + OUT EapHostPeerResponseAction* pEapOutput, + OUT EAP_ERROR** ppEapError + ); + + +// Return EAP attributes to supplicant. Supplicant should call +// EapHostPeerSetResponseAttributes() after it calls this function and finishes +// processing of the EAP attributes. +// +// Parameters: +// - sessionHandle: +// the value returned through *pSessionId from EapHostPeerBeginSession() +// +// - pAttributes: +// EAP attributes returned to supplicant. +DWORD APIENTRY +EapHostPeerGetResponseAttributes( + IN EAP_SESSIONID sessionHandle, + OUT EapAttributes* pAttribs, + OUT EAP_ERROR** ppEapError + ); + + +// See EapHostPeerGetResponseAttributes() for when this function will be called. +// Even if supplicant doesn't care about or doesn't understand the attributes +// returned from EapHostPeerGetResponseAttributes(), it should still call +// this function and pass a valid EapAttributes* which contains 0 EapAttribute +// +// Parameters: +// - sessionHandle: +// the value returned through *pSessionId from EapHostPeerBeginSession() +// +// - pAttribs: +// EAP attributes that the supplicant passes to EAPHost +DWORD APIENTRY +EapHostPeerSetResponseAttributes( + IN EAP_SESSIONID sessionHandle, + IN const EapAttributes* const pAttribs, + OUT EapHostPeerResponseAction* pEapOutput, + OUT EAP_ERROR** ppEapError + ); + + +// Supplicant calls it to retrieve authentication status. +// +// Parameters: +// - sessionHandle: +// the value returned through *pSessionId from EapHostPeerBeginSession() +// +// - authParam: +// one of the EapHostPeerAuthParams values defined in Eaphostpeertypes.h +// +// - pcbAuthData: +// *pcbAuthData is the size of *ppAuthData in bytes +// +// - ppAuthData: +// contains the returned authentication data. Interpretation of the data +// depends on the "authParam" passed in +DWORD APIENTRY +EapHostPeerGetAuthStatus( + IN EAP_SESSIONID sessionHandle, + IN EapHostPeerAuthParams authParam, + OUT DWORD* pcbAuthData, + OUT BYTE** ppAuthData, + OUT EAP_ERROR** ppEapError + ); + + +// Authentication has finished so clear up the data stored for this session. +// After this call, the session will no longer be valid. +// +// Parameters: +// - sessionHandle: +// the value returned through *pSessionId from EapHostPeerBeginSession() +DWORD APIENTRY +EapHostPeerEndSession( + IN EAP_SESSIONID sessionHandle, + OUT EAP_ERROR** ppEapError + ); + +DWORD APIENTRY +EapHostPeerGetDataToUnplumbCredentials( +OUT GUID * pConnectionIdThatLastSavedCreds, +OUT __int3264 * phCredentialImpersonationToken, +IN EAP_SESSIONID sessionHandle, +OUT EAP_ERROR** ppEapError, +OUT BOOL * fSaveToCredMan +); + + +// Clear up the connection. After this call, all states associated with this +// pConnectionId will be deleted, and no re-authentication will be triggered +// for connection associated with this GUID. +// +// Parameters: +// - pConnectionId: +// the same connection GUID passed into EapHostPeerBeginSession(). If +// a NULL is passed to EapHostPeerBeginSession() as the connection id, +// then there is no need to call this API. +DWORD APIENTRY +EapHostPeerClearConnection( + IN GUID* pConnectionId, + OUT EAP_ERROR** ppEapError + ); + + +// If any of the previous function is called, and an EAP_ERROR is returned, +// this function must be called to free the memory. +void APIENTRY EapHostPeerFreeEapError(IN EAP_ERROR* pEapError); + +// EAPHost will call this function, and it would return user data and user identity. + +DWORD APIENTRY +EapHostPeerGetIdentity ( + // API's version number for ease of interoperability. It must be 0. + IN DWORD dwVersion, + // EAP_FLAG_xxx defined in eaptypes.w + IN DWORD dwFlags, + // Eap method type + IN EAP_METHOD_TYPE eapMethodType, + // size of the buffer (pConnectionData) in bytes + IN DWORD dwSizeofConnectionData, + // configuration data that is used for the EAP method + IN _In_reads_(dwSizeofConnectionData) const BYTE* pConnectionData, + // size of the ubuffer pUserData + IN DWORD dwSizeofUserData, + // user credential information pertinent to this auth + IN _In_reads_opt_(dwSizeofUserData) const BYTE* pUserData, + // impersonation token for logged on user, to obtain user-related information + IN HANDLE hTokenImpersonateUser, + // should return true if the user identity and user data blob can not be returned + // successfully and in needs to be collected through UI + OUT BOOL* pfInvokeUI, + // size of the buffer pUserDataOut. caller should free this using EapHostPeerFreeRuntimeMemory + IN OUT DWORD* pdwSizeOfUserDataOut, + // user data information returned by method. + OUT _Outptr_result_buffer_(*pdwSizeOfUserDataOut) BYTE** ppUserDataOut, + // identity returned by method. caller should free this using EapHostPeerFreeRuntimeMemory + OUT _Outptr_ LPWSTR* ppwszIdentity, + // In case of error, API fills ppEapError if possible. Caller should free ppEapError + // using EapHostPeerFreeErrorMemory + OUT EAP_ERROR** ppEapError, + // Reserved for future usage. It must be NULL. + IN OUT BYTE **ppvReserved + ); + +DWORD APIENTRY +EapHostPeerGetEncryptedPassword( + IN DWORD dwSizeofPassword, + IN __in_bcount(dwSizeofPassword) LPWSTR szPassword, + OUT _Outptr_ LPWSTR* ppszEncPassword + ); + +// In case of GetInentity returned memory needs to be released using this API +void APIENTRY EapHostPeerFreeRuntimeMemory (IN BYTE* pData); + + +#ifdef __cplusplus +} +#endif + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // EAPPAPIS_H + + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eaptypes.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eaptypes.h new file mode 100644 index 0000000000000000000000000000000000000000..268b6c131c877cb38bcdea4ea3bdfe34cf6c9972 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eaptypes.h @@ -0,0 +1,770 @@ +//////////////////////////////////////////////////////////// +// +// Copyright (c) Microsoft Corporation. +// +// SYNOPSIS +// +// IDL source for interaction with EAPHost supplicants. +// +//////////////////////////////////////////////////////////// + +#ifndef EAPTYPES_H +#define EAPTYPES_H +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include // Used by EAP_ERROR structure. + + +// Properties that EAP Methods support +#define eapPropCipherSuiteNegotiation 0x00000001 +#define eapPropMutualAuth 0x00000002 +#define eapPropIntegrity 0x00000004 +#define eapPropReplayProtection 0x00000008 +#define eapPropConfidentiality 0x00000010 +#define eapPropKeyDerivation 0x00000020 +#define eapPropKeyStrength64 0x00000040 +#define eapPropKeyStrength128 0x00000080 +#define eapPropKeyStrength256 0x00000100 +#define eapPropKeyStrength512 0x00000200 +#define eapPropKeyStrength1024 0x00000400 +#define eapPropDictionaryAttackResistance 0x00000800 +#define eapPropFastReconnect 0x00001000 +#define eapPropCryptoBinding 0x00002000 +#define eapPropSessionIndependence 0x00004000 +#define eapPropFragmentation 0x00008000 +#define eapPropChannelBinding 0x00010000 +#define eapPropNap 0x00020000 +#define eapPropStandalone 0x00040000 +#define eapPropMppeEncryption 0x00080000 +#define eapPropTunnelMethod 0x00100000 +#define eapPropSupportsConfig 0x00200000 +#define eapPropCertifiedMethod 0x00400000 +#define eapPropHiddenMethod 0x00800000 +#define eapPropMachineAuth 0x01000000 +#define eapPropUserAuth 0x02000000 +#define eapPropIdentityPrivacy 0x04000000 +#define eapPropMethodChaining 0x08000000 +#define eapPropSharedStateEquivalence 0x10000000 +#define eapPropReserved 0x80000000 + +// Registry NameValue that stores Properties supported by EAP Method +#define EAP_VALUENAME_PROPERTIES L"Properties" + +typedef DWORD EAP_SESSIONID; + +typedef struct _EAP_TYPE +{ + BYTE type; + DWORD dwVendorId; + DWORD dwVendorType; +} EAP_TYPE; + + +// definition of EAP_METHOD_TYPE used for describing an EAP method +typedef struct _EAP_METHOD_TYPE +{ + EAP_TYPE eapType; + DWORD dwAuthorId; +} EAP_METHOD_TYPE; + + +// Information pertaining to each EAP method is populated in this structure format +typedef struct _EAP_METHOD_INFO +{ + EAP_METHOD_TYPE eaptype; + LPWSTR pwszAuthorName; + LPWSTR pwszFriendlyName; + DWORD eapProperties; + struct _EAP_METHOD_INFO* pInnerMethodInfo; +} EAP_METHOD_INFO; + + +// EAPHost populates this array with the information for all the eap-methods installed +// on machine and passes it to a supplicant +struct _EAP_METHOD_INFO_ARRAY_EX; + + +typedef struct _EAP_METHOD_INFO_EX +{ + EAP_METHOD_TYPE eaptype; + LPWSTR pwszAuthorName; + LPWSTR pwszFriendlyName; + DWORD eapProperties; + struct _EAP_METHOD_INFO_ARRAY_EX* pInnerMethodInfoArray; +} EAP_METHOD_INFO_EX; + + +typedef struct _EAP_METHOD_INFO_ARRAY +{ + DWORD dwNumberOfMethods; + EAP_METHOD_INFO* pEapMethods; +} EAP_METHOD_INFO_ARRAY; + +// EAPHost populates this error structs with appropriate information and passes it to +// supplicant, which can use this information for error reporting and troubleshooting +typedef struct _EAP_METHOD_INFO_ARRAY_EX +{ + DWORD dwNumberOfMethods; + EAP_METHOD_INFO_EX* pEapMethods; +} EAP_METHOD_INFO_ARRAY_EX; + +typedef struct _EAP_ERROR +{ + DWORD dwWinError; + EAP_METHOD_TYPE type; + DWORD dwReasonCode; + + GUID rootCauseGuid; + GUID repairGuid; + GUID helpLinkGuid; + + LPWSTR pRootCauseString; + LPWSTR pRepairString; +} EAP_ERROR; + + +EXTERN_C const CLSID GUID_EapHost_Default; + +EXTERN_C const CLSID GUID_EapHost_Cause_MethodDLLNotFound; +EXTERN_C const CLSID GUID_EapHost_Cause_EapNegotiationFailed; //*!* +EXTERN_C const CLSID GUID_EapHost_Cause_ThirdPartyMethod_Host_Reset; +EXTERN_C const CLSID GUID_EapHost_Cause_XmlMalformed; +EXTERN_C const CLSID GUID_EapHost_Cause_MethodDoesNotSupportOperation; +EXTERN_C const CLSID GUID_EapHost_Cause_EapQecInaccessible; //*!* + +EXTERN_C const CLSID GUID_EapHost_Cause_Generic_AuthFailure; +EXTERN_C const CLSID GUID_EapHost_Cause_IdentityUnknown; +EXTERN_C const CLSID GUID_EapHost_Cause_SimNotValid; +EXTERN_C const CLSID GUID_EapHost_Cause_CertStoreInaccessible; + +EXTERN_C const CLSID GUID_EapHost_Cause_User_CertExpired; +EXTERN_C const CLSID GUID_EapHost_Cause_User_CertInvalid; +EXTERN_C const CLSID GUID_EapHost_Cause_User_CertNotFound; +EXTERN_C const CLSID GUID_EapHost_Cause_User_CertOtherError; +EXTERN_C const CLSID GUID_EapHost_Cause_User_CertRejected; +EXTERN_C const CLSID GUID_EapHost_Cause_User_CertRevoked; +EXTERN_C const CLSID GUID_EapHost_Cause_User_Account_OtherProblem; +EXTERN_C const CLSID GUID_EapHost_Cause_User_CredsRejected; + +EXTERN_C const CLSID GUID_EapHost_Cause_Server_CertExpired; +EXTERN_C const CLSID GUID_EapHost_Cause_Server_CertInvalid; +EXTERN_C const CLSID GUID_EapHost_Cause_Server_CertNotFound; +EXTERN_C const CLSID GUID_EapHost_Cause_Server_CertOtherError; +EXTERN_C const CLSID GUID_EapHost_Cause_Server_CertRevoked; + +EXTERN_C const CLSID GUID_EapHost_Cause_User_Root_CertExpired; +EXTERN_C const CLSID GUID_EapHost_Cause_User_Root_CertInvalid; +EXTERN_C const CLSID GUID_EapHost_Cause_User_Root_CertNotFound; + +EXTERN_C const CLSID GUID_EapHost_Cause_Server_Root_CertNotFound; +EXTERN_C const CLSID GUID_EapHost_Cause_Server_Root_CertNameRequired; +EXTERN_C const CLSID GUID_EapHost_Cause_No_SmartCardReader_Found; + +EXTERN_C const CLSID GUID_EapHost_Repair_ContactSysadmin; +EXTERN_C const CLSID GUID_EapHost_Repair_Retry_Authentication; + +EXTERN_C const CLSID GUID_EapHost_Repair_User_AuthFailure; +EXTERN_C const CLSID GUID_EapHost_Repair_User_GetNewCert; +EXTERN_C const CLSID GUID_EapHost_Repair_User_SelectValidCert; + +EXTERN_C const CLSID GUID_EapHost_Repair_Server_ClientSelectServerCert; + +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_AuthFailure; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_IdentityUnknown; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_NegotiationFailed; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_MethodNotFound; +EXTERN_C const CLSID GUID_EapHost_Repair_RestartNap; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_CertStoreInaccessible; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_InvalidUserAccount; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_InvalidUserCert; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_RootCertInvalid; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_RootCertNotFound; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_RootExpired; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_CertNameAbsent; +EXTERN_C const CLSID GUID_EapHost_Repair_ContactAdmin_NoSmartCardReader; +EXTERN_C const CLSID GUID_EapHost_Repair_Method_Not_Support_Sso; +EXTERN_C const CLSID GUID_EapHost_Repair_No_ValidSim_Found; + +EXTERN_C const CLSID GUID_EapHost_Help_ObtainingCerts; +EXTERN_C const CLSID GUID_EapHost_Help_Troubleshooting; +EXTERN_C const CLSID GUID_EapHost_Cause_Method_Config_Does_Not_Support_Sso; + +//-------------------------- + + +typedef +#ifdef __midl + [v1_enum] +#endif + +// Attributes that EAP Methods support +enum _EAP_ATTRIBUTE_TYPE +{ + eatMinimum = 0, // Undefined + eatUserName, // Value field is a Pointer + eatUserPassword, // Value field is a Pointer + eatMD5CHAPPassword, // Value field is a Pointer + eatNASIPAddress, // Value field is a 32 bit integral value + eatNASPort, // Value field is a 32 bit integral value + eatServiceType, // Value field is a 32 bit integral value + eatFramedProtocol, // Value field is a 32 bit integral value + eatFramedIPAddress, // Value field is a 32 bit integral value + eatFramedIPNetmask, // Value field is a 32 bit integral value + eatFramedRouting = 10, // Value field is a 32 bit integral value + eatFilterId, // Value field is a Pointer + eatFramedMTU, // Value field is a 32 bit integral value + eatFramedCompression, // Value field is a 32 bit integral value + eatLoginIPHost, // Value field is a 32 bit integral value + eatLoginService, // Value field is a 32 bit integral value + eatLoginTCPPort, // Value field is a 32 bit integral value + eatUnassigned17, // Undefined + eatReplyMessage, // Value field is a Pointer + eatCallbackNumber, // Value field is a Pointer + eatCallbackId =20, // Value field is a Pointer + eatUnassigned21, // Undefined + eatFramedRoute, // Value field is a Pointer + eatFramedIPXNetwork, // Value field is a 32 bit integral value + eatState, // Value field is a Pointer + eatClass, // Value field is a Pointer + eatVendorSpecific, // Value field is a Pointer + eatSessionTimeout, // Value field is a 32 bit integral value + eatIdleTimeout, // Value field is a 32 bit integral value + eatTerminationAction, // Value field is a 32 bit integral value + eatCalledStationId = 30, // Value field is a Pointer + eatCallingStationId, // Value field is a Pointer + eatNASIdentifier, // Value field is a Pointer + eatProxyState, // Value field is a Pointer + eatLoginLATService, // Value field is a Pointer + eatLoginLATNode, // Value field is a Pointer + eatLoginLATGroup, // Value field is a Pointer + eatFramedAppleTalkLink, // Value field is a 32 bit integral value + eatFramedAppleTalkNetwork, // Value field is a 32 bit integral value + eatFramedAppleTalkZone, // Value field is a Pointer + eatAcctStatusType = 40, // Value field is a 32 bit integral value + eatAcctDelayTime, // Value field is a 32 bit integral value + eatAcctInputOctets, // Value field is a 32 bit integral value + eatAcctOutputOctets, // Value field is a 32 bit integral value + eatAcctSessionId, // Value field is a Pointer + eatAcctAuthentic, // Value field is a 32 bit integral value + eatAcctSessionTime, // Value field is a 32 bit integral value + eatAcctInputPackets, // Value field is a 32 bit integral value + eatAcctOutputPackets, // Value field is a 32 bit integral value + eatAcctTerminateCause, // Value field is a 32 bit integral value + eatAcctMultiSessionId = 50, // Value field is a Pointer + eatAcctLinkCount, // Value field is a 32 bit integral value + eatAcctEventTimeStamp = 55, // Value field is a 32 bit integral value + eatMD5CHAPChallenge = 60, // Value field is a Pointer + eatNASPortType, // Value field is a 32 bit integral value + eatPortLimit, // Value field is a 32 bit integral value + eatLoginLATPort, // Value field is a Pointer + eatTunnelType, // Value field is a 32 bit integral value + eatTunnelMediumType, // Value field is a 32 bit integral value + eatTunnelClientEndpoint, // Value field is a Pointer + eatTunnelServerEndpoint, // Value field is a Pointer + eatARAPPassword = 70, // Value field is a Pointer + eatARAPFeatures, // Value field is a Pointer + eatARAPZoneAccess, // Value field is a 32 bit integral value + eatARAPSecurity, // Value field is a 32 bit integral value + eatARAPSecurityData, // Value field is a Pointer + eatPasswordRetry, // Value field is a 32 bit integral value + eatPrompt, // Value field is a 32 bit integral value + eatConnectInfo, // Value field is a Pointer + eatConfigurationToken, // Value field is a Pointer + eatEAPMessage, // Value field is a Pointer + eatSignature = 80, // Value field is a Pointer + eatARAPChallengeResponse = 84, // Value field is a Pointer + eatAcctInterimInterval = 85, // Value field is a 32 bit integral value + eatNASIPv6Address = 95, // Value field is a Pointer + eatFramedInterfaceId, // Value field is a Pointer + eatFramedIPv6Prefix, // Value field is a Pointer + eatLoginIPv6Host, // Value field is a Pointer + eatFramedIPv6Route, // Value field is a Pointer + eatFramedIPv6Pool, // Value field is a Pointer + eatARAPGuestLogon = 8096, // Value field is a 32 bit integral value + eatCertificateOID, // Value field is a Pointer + eatEAPConfiguration, // Value field is a Pointer + eatPEAPEmbeddedEAPTypeId, // Value field is a 32 bit integral value + eatPEAPFastRoamedSession = 8100, // Value field is a 32 bit integral value + eatFastRoamedSession = 8100, // Value field is a 32 bit integral value + eatEAPTLV = 8102, // Value field is a Pointer + eatCredentialsChanged, // Value field is a Integer with boolean + // semantics + eatInnerEapMethodType, // Value field is a pointer + // EapMethodType of the inner method in + // case of Tunnelled method + eatClearTextPassword = 8107, // Value field is a pointer + // Clear text password that can be used + // by certain password based eap methods + // to authenticate a user. + eatQuarantineSoH = 8150, // Value field is a pointer + eatCertificateThumbprint = 8250, // Value field is a pointer + eatPeerId = 9000, // Value field is a pointer + eatServerId, // Value field is a pointer + eatMethodId, // Value field is a pointer + eatEMSK, // Value field is a pointer + eatSessionId, // Value field is a pointer + eatReserved = 0xFFFFFFFF // Undefined +} EAP_ATTRIBUTE_TYPE, EapAttributeType; + + +// format for carrying EAP attribute TLV (type, length and value) +typedef struct _EAP_ATTRIBUTE +{ + EAP_ATTRIBUTE_TYPE eaType; + DWORD dwLength; +#ifdef __midl + [size_is(dwLength)] BYTE* pValue; +#else + BYTE *pValue; +#endif +} EAP_ATTRIBUTE, EapAttribute; + + +// List of EAP-attributes +typedef struct _EAP_ATTRIBUTES +{ + DWORD dwNumberOfAttributes; +#ifdef __midl + [size_is(dwNumberOfAttributes)] EAP_ATTRIBUTE* pAttribs; +#else + EAP_ATTRIBUTE *pAttribs; +#endif +} EAP_ATTRIBUTES, EapAttributes; + + +// No UI should be displayed +#define EAP_FLAG_Reserved1 0x00000001 +#define EAP_FLAG_NON_INTERACTIVE 0x00000002 + +// The user data was obtained from Winlogon +#define EAP_FLAG_LOGON 0x00000004 + +// Show the Credentails UI before authenticating even if cached creds are present +#define EAP_FLAG_PREVIEW 0x00000008 + +#define EAP_FLAG_Reserved2 0x00000010 + +// Authentication is for machine, i.e. not for user. Not setting this flag means +// it is user authentication. +#define EAP_FLAG_MACHINE_AUTH 0x00000020 + +// Request to provide guest access +#define EAP_FLAG_GUEST_ACCESS 0x00000040 + +#define EAP_FLAG_Reserved3 0x00000080 + +#define EAP_FLAG_Reserved4 0x00000100 + +// Indicates this is the first call after m/c resumed from hibernation. +#define EAP_FLAG_RESUME_FROM_HIBERNATE 0x00000200 + +#define EAP_FLAG_Reserved5 0x00000400 + +#define EAP_FLAG_Reserved6 0x00000800 + +// Should have this or make it reserved? +#define EAP_FLAG_FULL_AUTH 0x00001000 + +/// New EapHost Flags + +// Prefer Credentails passed in BeginSession instead of other form of +// credentials, even if config says use certain way of cred retrieval. If this fails, fallback to +// Method specific credentail retrieval +#define EAP_FLAG_PREFER_ALT_CREDENTIALS 0x00002000 + +#define EAP_FLAG_Reserved7 0x00004000 + +// To inform the cause of reauth is a NAP callback +#define EAP_PEER_FLAG_HEALTH_STATE_CHANGE 0x00008000 + +// Continue authentication with information available. If can not proceed, fail +// the authentication +#define EAP_FLAG_SUPRESS_UI 0x00010000 + +// Pre logon scenario like PLAP +#define EAP_FLAG_PRE_LOGON 0x00020000 + +// User Authentication. For legacy Methods not setting EAP_FLAG_MACHINE_AUTH +// also means user authentication. +#define EAP_FLAG_USER_AUTH 0x00040000 + +// Config can be viewed but not updated +#define EAP_FLAG_CONFG_READONLY 0x00080000 + +#define EAP_FLAG_Reserved8 0x00100000 + +#define EAP_FLAG_Reserved9 0x00400000 + +#define EAP_FLAG_VPN 0x00800000 + +#define EAP_FLAG_ONLY_EAP_TLS 0x01000000 + +#define EAP_FLAG_SERVER_VALIDATION_REQUIRED 0x02000000 + +// the various states of the input fields +#define EAP_CONFIG_INPUT_FIELD_PROPS_DEFAULT 0X00000000 +#define EAP_CONFIG_INPUT_FIELD_PROPS_NON_DISPLAYABLE 0X00000001 + +// This specifies that supplicant should cache this field data +#define EAP_CONFIG_INPUT_FIELD_PROPS_NON_PERSIST 0X00000002 + + +// default property value for entries field to be shown in UI +#define EAP_UI_INPUT_FIELD_PROPS_DEFAULT EAP_CONFIG_INPUT_FIELD_PROPS_DEFAULT +// To qualify certain entry data on UI is non-displayable (e.g. password) +#define EAP_UI_INPUT_FIELD_PROPS_NON_DISPLAYABLE EAP_CONFIG_INPUT_FIELD_PROPS_NON_DISPLAYABLE +// This specifies that supplicant should cache this field data +#define EAP_UI_INPUT_FIELD_PROPS_NON_PERSIST 0X00000002 +// This specifies that following field is read only (non-editable) +#define EAP_UI_INPUT_FIELD_PROPS_READ_ONLY 0X00000004 + + +// the types of fields that eap can request to show +typedef enum _EAP_CONFIG_INPUT_FIELD_TYPE { + EapConfigInputUsername, + EapConfigInputPassword, + EapConfigInputNetworkUsername, + EapConfigInputNetworkPassword, + EapConfigInputPin, + EapConfigInputPSK, + EapConfigInputEdit, + EapConfigSmartCardUsername, + EapConfigSmartCardError +} EAP_CONFIG_INPUT_FIELD_TYPE, *PEAP_CONFIG_INPUT_FIELD_TYPE; + +#define EAP_CREDENTIAL_VERSION 1 +#define EAP_INTERACTIVE_UI_DATA_VERSION 1 +#define EAPHOST_PEER_API_VERSION 1 +#define EAPHOST_METHOD_API_VERSION 1 +#define MAX_EAP_CONFIG_INPUT_FIELD_LENGTH 256 +#define MAX_EAP_CONFIG_INPUT_FIELD_VALUE_LENGTH 1024 + + +// structure for carrying EAP input field +typedef struct _EAP_CONFIG_INPUT_FIELD_DATA { + DWORD dwSize; + EAP_CONFIG_INPUT_FIELD_TYPE Type; + DWORD dwFlagProps; + LPWSTR pwszLabel; + LPWSTR pwszData; + DWORD dwMinDataLength; + DWORD dwMaxDataLength; +} EAP_CONFIG_INPUT_FIELD_DATA, *PEAP_CONFIG_INPUT_FIELD_DATA; + + +// List of EAP input fields +typedef struct _EAP_CONFIG_INPUT_FIELD_ARRAY { + DWORD dwVersion; // used for versioning + DWORD dwNumberOfFields; +#ifdef __midl + [size_is(dwNumberOfFields)] EAP_CONFIG_INPUT_FIELD_DATA* pFields; +#else + EAP_CONFIG_INPUT_FIELD_DATA* pFields; +#endif +} EAP_CONFIG_INPUT_FIELD_ARRAY, *PEAP_CONFIG_INPUT_FIELD_ARRAY; + + +// provides type of data, EAP_INTERACTIVE_UI_DATA can carry +typedef enum _EAP_INTERACTIVE_UI_DATA_TYPE { + EapCredReq, // Credential request during retry + EapCredResp, // Credential response during retry + EapCredExpiryReq, // Credential request during cred expiry + EapCredExpiryResp, // Credential response during cred expiry + EapCredLogonReq, // Initial credential request during auth + EapCredLogonResp, // Initial credential response during auth +} EAP_INTERACTIVE_UI_DATA_TYPE; + + +// following determine type of data blob that can be pointed by +// pbUiData member of EAP_INTERACTIVE_UI_DATA +typedef EAP_CONFIG_INPUT_FIELD_ARRAY EAP_CRED_REQ; +typedef EAP_CONFIG_INPUT_FIELD_ARRAY EAP_CRED_RESP; +typedef EAP_CONFIG_INPUT_FIELD_ARRAY EAP_CRED_LOGON_REQ; +typedef EAP_CONFIG_INPUT_FIELD_ARRAY EAP_CRED_LOGON_RESP; + +// pNewCreds can be NULL in case of EAP_CRED_EXPIRY_REQ +// in case of REQ, pNewCreds can be empty (will not be looked at) +typedef struct _EAP_CRED_EXPIRY_REQ { + EAP_CONFIG_INPUT_FIELD_ARRAY curCreds; + EAP_CONFIG_INPUT_FIELD_ARRAY newCreds; +} EAP_CRED_EXPIRY_REQ, EAP_CRED_EXPIRY_RESP; + +#ifdef __midl + typedef [switch_type(EAP_INTERACTIVE_UI_DATA_TYPE)] + union { + [case(EapCredReq, EapCredResp)] EAP_CRED_REQ* credData; + [case(EapCredExpiryReq,EapCredExpiryResp)] EAP_CRED_EXPIRY_REQ* credExpiryData; + [case(EapCredLogonReq,EapCredLogonResp)] EAP_CRED_LOGON_REQ* credLogonData; + [default] ; + } EAP_UI_DATA_FORMAT; +#else + typedef union { + EAP_CRED_REQ* credData; + EAP_CRED_EXPIRY_REQ* credExpiryData; + EAP_CRED_LOGON_REQ* credLogonData; + } EAP_UI_DATA_FORMAT; +#endif + + +// Data carried from EAP-method to supplicant for interactive UI to raised +typedef struct _EAP_INTERACTIVE_UI_DATA { + //specifies version of data structure. It must be 0. + DWORD dwVersion; + //specifies size of the entire structure. + DWORD dwSize; + // this determines what kind of interactive data is passed. + EAP_INTERACTIVE_UI_DATA_TYPE dwDataType; + // specifies size of the data pointed by pbUiByte. + DWORD cbUiData; + // pointer to a data blob of a type determined by dwDataType above. + // This can be of type EAP_CRED_REQ/EAP_CRED_RESP or + // EAP_CRED_EXPIRY_REQ/EAP_CRED_EXPIRY_RESP or + // EAP_CRED_LOGON_REQ/EAP_CRED_LOGON_RESP depending on uiDataType above +#ifdef __midl + [switch_is (dwDataType)] EAP_UI_DATA_FORMAT pbUiData; +#else + EAP_UI_DATA_FORMAT pbUiData; +#endif +} EAP_INTERACTIVE_UI_DATA ; + +typedef +#ifdef __midl + [v1_enum] +#endif +// Property types that EAP methods support +enum _EAP_METHOD_PROPERTY_TYPE +{ + emptPropCipherSuiteNegotiation = 0, // value field is boolean + emptPropMutualAuth, // value field is boolean + emptPropIntegrity, // value field is boolean + emptPropReplayProtection, // value field is boolean + emptPropConfidentiality, // value field is boolean + emptPropKeyDerivation, // value field is boolean + emptPropKeyStrength64, // value field is boolean + emptPropKeyStrength128, // value field is boolean + emptPropKeyStrength256, // value field is boolean + emptPropKeyStrength512, // value field is boolean + emptPropKeyStrength1024, // value field is boolean + emptPropDictionaryAttackResistance, // value field is boolean + emptPropFastReconnect, // value field is boolean + emptPropCryptoBinding, // value field is boolean + emptPropSessionIndependence, // value field is boolean + emptPropFragmentation, // value field is boolean + emptPropChannelBinding, // value field is boolean + emptPropNap, // value field is boolean + emptPropStandalone, // value field is boolean + emptPropMppeEncryption, // value field is boolean + emptPropTunnelMethod, // value field is boolean + emptPropSupportsConfig, // value field is boolean + emptPropCertifiedMethod, // value field is boolean + emptPropHiddenMethod, // value field is boolean + emptPropMachineAuth, // value field is boolean + emptPropUserAuth, // value field is boolean + emptPropIdentityPrivacy, // value field is boolean + emptPropMethodChaining, // value field is boolean + emptPropSharedStateEquivalence, // value field is boolean + emptLegacyMethodPropertyFlag = 31, // value field is dword + emptPropVendorSpecific = 255 // value field is string +} EAP_METHOD_PROPERTY_TYPE; + +typedef +#ifdef __midl + [v1_enum] +#endif +// Method property value types that EAP methods support +enum _EAP_METHOD_PROPERTY_VALUE_TYPE +{ + empvtBool = 0, // value type is boolean + empvtDword, // value type is dword + empvtString // value type is string +} EAP_METHOD_PROPERTY_VALUE_TYPE; + +typedef struct _EAP_METHOD_PROPERTY_VALUE_BOOL +{ + DWORD length; + BOOL value; +} EAP_METHOD_PROPERTY_VALUE_BOOL; + +typedef struct _EAP_METHOD_PROPERTY_VALUE_DWORD +{ + DWORD length; + DWORD value; +} EAP_METHOD_PROPERTY_VALUE_DWORD; + +typedef struct _EAP_METHOD_PROPERTY_VALUE_STRING +{ + DWORD length; +#ifdef __midl + [size_is(length)] BYTE* value; +#else + BYTE* value; +#endif +} EAP_METHOD_PROPERTY_VALUE_STRING; + +#ifdef __midl +typedef [switch_type(EAP_METHOD_PROPERTY_VALUE_TYPE)] +union { + [case(empvtBool)] + EAP_METHOD_PROPERTY_VALUE_BOOL empvBool; // value is boolean type + + [case(empvtDword)] + EAP_METHOD_PROPERTY_VALUE_DWORD empvDword; // value is dword type + + [case(empvtString)] + EAP_METHOD_PROPERTY_VALUE_STRING empvString; // value is string type +} EAP_METHOD_PROPERTY_VALUE; +#else +typedef union _EAP_METHOD_PROPERTY_VALUE { + EAP_METHOD_PROPERTY_VALUE_BOOL empvBool; // value is boolean type + EAP_METHOD_PROPERTY_VALUE_DWORD empvDword; // value is dword type + EAP_METHOD_PROPERTY_VALUE_STRING empvString; // value is string type +} EAP_METHOD_PROPERTY_VALUE; +#endif + +// Structure to represent a method property +typedef struct _EAP_METHOD_PROPERTY { + // specifies the method property type + EAP_METHOD_PROPERTY_TYPE eapMethodPropertyType; + + // specifies the data type of value + EAP_METHOD_PROPERTY_VALUE_TYPE eapMethodPropertyValueType; +#ifdef __midl + [switch_is(eapMethodPropertyValueType)] EAP_METHOD_PROPERTY_VALUE eapMethodPropertyValue; +#else + // specifies the value of the method property + EAP_METHOD_PROPERTY_VALUE eapMethodPropertyValue; +#endif +} EAP_METHOD_PROPERTY; + +// Structure to represent an array of method properties +typedef struct _EAP_METHOD_PROPERTY_ARRAY { + // specifies the number of method properties in array + DWORD dwNumberOfProperties; + + // specifies the array of method property +#ifdef __midl + [size_is(dwNumberOfProperties)] EAP_METHOD_PROPERTY* pFields; +#else + EAP_METHOD_PROPERTY* pMethodProperty; +#endif +} EAP_METHOD_PROPERTY_ARRAY; + +// +// structure representing the parameters that needs to be passed +// to EAPHost for raising identity ui +// +typedef struct _EAPHOST_IDENTITY_UI_PARAMS { + // The following parameters are passed by supplicant to eaphost + EAP_METHOD_TYPE eapMethodType; + DWORD dwFlags; + DWORD dwSizeofConnectionData; +#ifdef __midl + [size_is(dwSizeofConnectionData)] BYTE* pConnectionData; +#else + BYTE* pConnectionData; +#endif + DWORD dwSizeofUserData; +#ifdef __midl + [size_is(dwSizeofUserData)] BYTE* pUserData; +#else + BYTE* pUserData; +#endif + // The following parameters are returned by eaphost to supplicant + DWORD dwSizeofUserDataOut; +#ifdef __midl + [size_is(dwSizeofUserDataOut)] BYTE* pUserDataOut; +#else + BYTE* pUserDataOut; +#endif + LPWSTR pwszIdentity; + DWORD dwError; + EAP_ERROR* pEapError; +} EAPHOST_IDENTITY_UI_PARAMS; + +// +// structure representing the parameters that needs to be passed +// to EAPHost for raising interactive ui +// +typedef struct _EAPHOST_INTERACTIVE_UI_PARAMS { + // The following parameters are passed by supplicant to eaphost + DWORD dwSizeofContextData; +#ifdef __midl + [size_is(dwSizeofContextData)] BYTE* pContextData; +#else + BYTE* pContextData; +#endif + // The following parameters are returned by eaphost to supplicant + DWORD dwSizeofInteractiveUIData; +#ifdef __midl + [size_is(dwSizeofInteractiveUIData)] BYTE* pInteractiveUIData; +#else + BYTE* pInteractiveUIData; +#endif + DWORD dwError; + EAP_ERROR* pEapError; +} EAPHOST_INTERACTIVE_UI_PARAMS; + +typedef enum _EapCredentialType +{ + EAP_EMPTY_CREDENTIAL=0, + EAP_USERNAME_PASSWORD_CREDENTIAL, + EAP_WINLOGON_CREDENTIAL, + EAP_CERTIFICATE_CREDENTIAL, + EAP_SIM_CREDENTIAL +} EapCredentialType; + +typedef struct _EapUsernamePasswordCredential +{ + LPWSTR username; + LPWSTR password; +} EapUsernamePasswordCredential; + +#define CERTIFICATE_HASH_LENGTH 20 + +typedef struct _EapCertificateCredential +{ + BYTE certHash[CERTIFICATE_HASH_LENGTH]; + LPWSTR password; +} EapCertificateCredential; + +typedef struct _EapSimCredential +{ + LPWSTR iccID; +} EapSimCredential; + +#ifdef __midl + typedef [switch_type(EapCredentialType)] + union { + [case(EAP_USERNAME_PASSWORD_CREDENTIAL)] EapUsernamePasswordCredential username_password; + [case(EAP_CERTIFICATE_CREDENTIAL)] EapCertificateCredential certificate; + [case(EAP_SIM_CREDENTIAL)] EapSimCredential sim; + [default] ; + } EapCredentialTypeData; +#else + typedef union { + EapUsernamePasswordCredential username_password; + EapCertificateCredential certificate; + EapSimCredential sim; + } EapCredentialTypeData; +#endif + +typedef struct _EapCredential +{ + EapCredentialType credType; +#ifdef __midl + [switch_is(credType)] EapCredentialTypeData credData; +#else + EapCredentialTypeData credData; +#endif +} EapCredential; + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif //EAPTYPES_H diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/easencryptprov.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/easencryptprov.h new file mode 100644 index 0000000000000000000000000000000000000000..d2d4cf22709df1124a91846bdb6ba5b2cf3641f3 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/easencryptprov.h @@ -0,0 +1,138 @@ +/*++ + +Copyright (c) Microsoft Corporation + +Module Name: + + EasEncryptProv.h + +Abstract: + + This file contains structures, function signatures for 3rd Party + Encryption providers that intend to support EAS + +Environment: + + User Mode - Win32 + +Notes: + +--*/ + +// +// User Class +// + +#if NTDDI_VERSION >= NTDDI_WINBLUE + +#ifndef _EAS_ENCRYPT_PROV_ +#define _EAS_ENCRYPT_PROV_ + +#ifdef _MSC_VER +#pragma once +#endif + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifdef __cplusplus +extern "C" { +#endif + +typedef enum _EasEncryptProvProtectionStatus_ +{ + EasEncryptProvDeviceStatusUnknown, + EasEncryptProvDeviceNotProtected, + EasEncryptProvDeviceProtected +} EasEncryptProvProtectionStatus; + +typedef +HRESULT +(WINAPI *PFEnCrypQueryProtectionStatus) ( + _Out_ EasEncryptProvProtectionStatus *pDeviceStatus, + _Out_ HRESULT *phrExtendedStatus + ); + +typedef +HRESULT +(WINAPI *PFEncryptProvIsDeviceLockable) (); + +typedef +HRESULT +(WINAPI *PFEncryptProvLockDevice) (); + +typedef +HRESULT +(WINAPI *PFEncryptProvValidateDeviceLockoutState) (); + +typedef +HRESULT +(WINAPI *pFEncryptProvDisableDeviceLockoutState) (); + +typedef +HRESULT +(WINAPI *PFEncryptProvGetDeviceLockoutData) ( + _Out_writes_bytes_opt_(*pPerUserSize) PBYTE pPerUserData, + _Inout_ ULONG *pPerUserSize + ); + +typedef +HRESULT +(WINAPI *PFEncryptProvUpdateDeviceLockoutState) ( + _In_reads_bytes_(PerUserSize) PBYTE PerUserData, + _In_ ULONG PerUserSize + ); + +HRESULT +WINAPI +EasEncryptProvQueryProtectionStatus ( + _Out_ EasEncryptProvProtectionStatus *pDeviceStatus, + _Out_ HRESULT *phrExtendedStatus + ); + +HRESULT +WINAPI +EasEncryptProvIsDeviceLockable ( + ); + +HRESULT +WINAPI +EasEncryptProvLockDevice ( + ); + +HRESULT +WINAPI +EasEncryptProvGetDeviceLockoutData ( + _Out_writes_bytes_opt_(*pPerUserSize) PBYTE pPerUserData, + _Inout_ ULONG *pPerUserSize + ); + +HRESULT +WINAPI +EasEncryptProvValidateDeviceLockoutState ( + ); + +HRESULT +WINAPI +EasEncryptProvUpdateDeviceLockoutState ( + _In_reads_bytes_(PerUserSize) PBYTE PerUserData, + _In_ ULONG PerUserSize + ); + +HRESULT +WINAPI +EasEncryptProvDisableDeviceLockoutState ( + ); + +#ifdef __cplusplus +} +#endif + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma endregion + +#endif // _EAS_ENCRYPT_PROV_ + +#endif // NTDDI_VERSION >= NTDDI_WINBLUE diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/easregprov.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/easregprov.h new file mode 100644 index 0000000000000000000000000000000000000000..26d18f8ccdebdfb336c2edc03d003ab74328ed0a --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/easregprov.h @@ -0,0 +1,64 @@ +/*++ + +Copyright (c) Microsoft Corporation + +Module Name: + + easregprov.h + +Abstract: + + This file contains the function which a 3rd Party Encryption software installation + package calls to register & unregister their provider that supports EAS. + +Environment: + + User Mode - Win32 + +Notes: + +--*/ + +// +// User Function +// + +#if NTDDI_VERSION >= NTDDI_WINBLUE + +#ifndef _EASREGPROV_ +#define _EASREGPROV_ + +#ifdef _MSC_VER +#pragma once +#endif + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#ifdef __cplusplus +extern "C" { +#endif + +HRESULT +WINAPI +EasRegisterEncryptionProvider( + _In_ LPCWSTR pcwzDllPath + ); + +HRESULT +WINAPI +EasUnRegisterEncryptionProvider( + ); + +#ifdef __cplusplus +} +#endif + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma endregion + +#endif // _EASREGPROV_ + +#endif // NTDDI_VERSION >= NTDDI_WINBLUE \ No newline at end of file diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/edevdefs.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/edevdefs.h new file mode 100644 index 0000000000000000000000000000000000000000..0dbbf8670eb05c10f7a5531d6537ffa51ad630a3 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/edevdefs.h @@ -0,0 +1,540 @@ +//------------------------------------------------------------------------------ +// File: EDevDefs.h +// +// Desc: External Device (such as a VCR) control interface parameter and +// value definitions. +// +// Note: new constants added: ED_BASE+800L -> ED_BASE+811L +// +// Copyright (c) 1992 - 2002, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#ifndef __EDEVDEFS__ +#define __EDEVDEFS__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + + +#define ED_BASE 0x1000L + +// this is used to tell the device communications object which +// physical communications port to use. +#define DEV_PORT_SIM 1 +#define DEV_PORT_COM1 2 // standard serial ports +#define DEV_PORT_COM2 3 +#define DEV_PORT_COM3 4 +#define DEV_PORT_COM4 5 +#define DEV_PORT_DIAQ 6 // Diaquest driver +#define DEV_PORT_ARTI 7 // ARTI driver +#define DEV_PORT_1394 8 // IEEE 1394 Serial Bus +#define DEV_PORT_USB 9 // Universal Serial Bus +#define DEV_PORT_MIN DEV_PORT_SIM +#define DEV_PORT_MAX DEV_PORT_USB + + +// IAMExtDevice Capability Items: unless otherwise specified, these items return +// OATRUE or OAFALSE. All return values are in pdwValue unless otherwise specified: + +#define ED_DEVCAP_CAN_RECORD ED_BASE+1L +#define ED_DEVCAP_CAN_RECORD_STROBE ED_BASE+2L // for multitrack devices: + // switches currently recording tracks off + // and selected non-recording tracks into record +#define ED_DEVCAP_HAS_AUDIO ED_BASE+3L +#define ED_DEVCAP_HAS_VIDEO ED_BASE+4L +#define ED_DEVCAP_USES_FILES ED_BASE+5L +#define ED_DEVCAP_CAN_SAVE ED_BASE+6L + +#define ED_DEVCAP_DEVICE_TYPE ED_BASE+7L // returns one of the following: +#define ED_DEVTYPE_VCR ED_BASE+8L +#define ED_DEVTYPE_LASERDISK ED_BASE+9L +#define ED_DEVTYPE_ATR ED_BASE+10L +#define ED_DEVTYPE_DDR ED_BASE+11L +#define ED_DEVTYPE_ROUTER ED_BASE+12L +#define ED_DEVTYPE_KEYER ED_BASE+13L +#define ED_DEVTYPE_MIXER_VIDEO ED_BASE+14L +#define ED_DEVTYPE_DVE ED_BASE+15L +#define ED_DEVTYPE_WIPEGEN ED_BASE+16L +#define ED_DEVTYPE_MIXER_AUDIO ED_BASE+17L +#define ED_DEVTYPE_CG ED_BASE+18L +#define ED_DEVTYPE_TBC ED_BASE+19L +#define ED_DEVTYPE_TCG ED_BASE+20L +#define ED_DEVTYPE_GPI ED_BASE+21L +#define ED_DEVTYPE_JOYSTICK ED_BASE+22L +#define ED_DEVTYPE_KEYBOARD ED_BASE+23L + +// returns mfr-specific ID from external device. +#define ED_DEVCAP_EXTERNAL_DEVICE_ID ED_BASE+24L + +#define ED_DEVCAP_TIMECODE_READ ED_BASE+25L +#define ED_DEVCAP_TIMECODE_WRITE ED_BASE+26L +// used for seekable non-timecode enabled devices +#define ED_DEVCAP_CTLTRK_READ ED_BASE+27L +// used for seekable non-timecode enabled devices +#define ED_DEVCAP_INDEX_READ ED_BASE+28L + +// returns device preroll time in current time format +#define ED_DEVCAP_PREROLL ED_BASE+29L +// returns device postroll time in current time format +#define ED_DEVCAP_POSTROLL ED_BASE+30L + +// returns indication of device's synchronization accuracy. +#define ED_DEVCAP_SYNC_ACCURACY ED_BASE+31L // returns one of the following: +#define ED_SYNCACC_PRECISE ED_BASE+32L +#define ED_SYNCACC_FRAME ED_BASE+33L +#define ED_SYNCACC_ROUGH ED_BASE+34L + +// returns device's normal framerate. +#define ED_DEVCAP_NORMAL_RATE ED_BASE+35L // returns one of the following: +#define ED_RATE_24 ED_BASE+36L +#define ED_RATE_25 ED_BASE+37L +#define ED_RATE_2997 ED_BASE+38L +#define ED_RATE_30 ED_BASE+39L + +#define ED_DEVCAP_CAN_PREVIEW ED_BASE+40L +#define ED_DEVCAP_CAN_MONITOR_SOURCES ED_BASE+41L + +// indicates implementation allows testing of methods/parameters by +// setting the hi bit of a parm that makes sense - see individual methods +// for details. +#define ED_DEVCAP_CAN_TEST ED_BASE+42L + +// indicates device accepts video as an input. +#define ED_DEVCAP_VIDEO_INPUTS ED_BASE+43L + +// indicates device accepts audio as an input. +#define ED_DEVCAP_AUDIO_INPUTS ED_BASE+44L + +#define ED_DEVCAP_NEEDS_CALIBRATING ED_BASE+45L + +#define ED_DEVCAP_SEEK_TYPE ED_BASE+46L // returns one of the following: +#define ED_SEEK_PERFECT ED_BASE+47L // indicates device can execute seek + // within 1 video frames without signal + // break (like a DDR) +#define ED_SEEK_FAST ED_BASE+48L // indicates device can move pretty quick + // with short break in signal +#define ED_SEEK_SLOW ED_BASE+49L // seeks like a tape transport + +#define ED_POWER_ON ED_BASE+50L +#define ED_POWER_OFF ED_BASE+51L +#define ED_POWER_STANDBY ED_BASE+52L + +#define ED_ACTIVE ED_BASE+53L +#define ED_INACTIVE ED_BASE+54L +#define ED_ALL ED_BASE+55L +#define ED_TEST ED_BASE+56L + +// IAMExtTransport Capability Items: unless otherwise specified, these items return +// OATRUE or OAFALSE. All return values are in pdwValue unless otherwise specified: + +#define ED_TRANSCAP_CAN_EJECT ED_BASE+100L +#define ED_TRANSCAP_CAN_BUMP_PLAY ED_BASE+101L // variable speed for synchronizing +#define ED_TRANSCAP_CAN_PLAY_BACKWARDS ED_BASE+102L // servo locked for use during an edit +#define ED_TRANSCAP_CAN_SET_EE ED_BASE+103L // show device's input on its output +#define ED_TRANSCAP_CAN_SET_PB ED_BASE+104L // show media playback on device's output +#define ED_TRANSCAP_CAN_DELAY_VIDEO_IN ED_BASE+105L // transport can do delayed-in video edits +#define ED_TRANSCAP_CAN_DELAY_VIDEO_OUT ED_BASE+106L // transport can do delayed-out video edits +#define ED_TRANSCAP_CAN_DELAY_AUDIO_IN ED_BASE+107L // transport can do delayed-in audio edits +#define ED_TRANSCAP_CAN_DELAY_AUDIO_OUT ED_BASE+108L // transport can do delayed-out audio edits +#define ED_TRANSCAP_FWD_VARIABLE_MAX ED_BASE+109L // max forward speed (multiple of play speed) + // in pdblValue +#define ED_TRANSCAP_FWD_VARIABLE_MIN ED_BASE+800L // min forward speed (multiple of play speed) + // in pdblValue +#define ED_TRANSCAP_REV_VARIABLE_MAX ED_BASE+110L // max reverse speed (multiple of play speed) in + // pdblValue +#define ED_TRANSCAP_REV_VARIABLE_MIN ED_BASE+801L // min reverse speed (multiple of play speed) + // in pdblValue +#define ED_TRANSCAP_FWD_SHUTTLE_MAX ED_BASE+802L // max forward speed in Shuttle mode (multiple + // of play speed) in pdblValue +#define ED_TRANSCAP_FWD_SHUTTLE_MIN ED_BASE+803L // min forward speed in Shuttle mode (multiple + // of play speed) in pdblValue +#define ED_TRANSCAP_REV_SHUTTLE_MAX ED_BASE+804L // max reverse speed in Shuttle mode (multiple + // of play speed) in pdblValue +#define ED_TRANSCAP_REV_SHUTTLE_MIN ED_BASE+805L // min reverse speed in Shuttle mode (multiple + // of play speed) in pdblValue +#define ED_TRANSCAP_NUM_AUDIO_TRACKS ED_BASE+111L // returns number of audio tracks +#define ED_TRANSCAP_LTC_TRACK ED_BASE+112L // returns track number of LTC timecode track. + // ED_ALL means no dedicated timecode track +#define ED_TRANSCAP_NEEDS_TBC ED_BASE+113L // device's output not stable +#define ED_TRANSCAP_NEEDS_CUEING ED_BASE+114L // device must be cued prior to performing edit +#define ED_TRANSCAP_CAN_INSERT ED_BASE+115L +#define ED_TRANSCAP_CAN_ASSEMBLE ED_BASE+116L +#define ED_TRANSCAP_FIELD_STEP ED_BASE+117L // device responds to Frame Advance command by + // advancing one field +#define ED_TRANSCAP_CLOCK_INC_RATE ED_BASE+118L // VISCA command - keep for compatibility +#define ED_TRANSCAP_CAN_DETECT_LENGTH ED_BASE+119L +#define ED_TRANSCAP_CAN_FREEZE ED_BASE+120L +#define ED_TRANSCAP_HAS_TUNER ED_BASE+121L +#define ED_TRANSCAP_HAS_TIMER ED_BASE+122L +#define ED_TRANSCAP_HAS_CLOCK ED_BASE+123L +#define ED_TRANSCAP_MULTIPLE_EDITS ED_BASE+806L // OATRUE means device/filter can support + // multiple edit events +#define ED_TRANSCAP_IS_MASTER ED_BASE+807L // OATRUE means device is the master clock + // for synchronizing (this sets timecode-to- + // reference clock offset for editing) +#define ED_TRANSCAP_HAS_DT ED_BASE+814L // OATRUE means device has Dynamic Tracking + +// IAMExtTransport Media States +#define ED_MEDIA_SPIN_UP ED_BASE+130L +#define ED_MEDIA_SPIN_DOWN ED_BASE+131L +#define ED_MEDIA_UNLOAD ED_BASE+132L + +// IAMExtTransport Modes +#define ED_MODE_PLAY ED_BASE+200L +#define ED_MODE_STOP ED_BASE+201L +#define ED_MODE_FREEZE ED_BASE+202L // really "pause" +#define ED_MODE_THAW ED_BASE+203L +#define ED_MODE_FF ED_BASE+204L +#define ED_MODE_REW ED_BASE+205L +#define ED_MODE_RECORD ED_BASE+206L +#define ED_MODE_RECORD_STROBE ED_BASE+207L +#define ED_MODE_RECORD_FREEZE ED_BASE+808L // pause recording +#define ED_MODE_STEP ED_BASE+208L // same as "jog" +#define ED_MODE_STEP_FWD ED_BASE+208L // same as ED_MODE_STEP +#define ED_MODE_STEP_REV ED_BASE+809L +#define ED_MODE_SHUTTLE ED_BASE+209L +#define ED_MODE_EDIT_CUE ED_BASE+210L +#define ED_MODE_VAR_SPEED ED_BASE+211L +#define ED_MODE_PERFORM ED_BASE+212L // returned status only +#define ED_MODE_LINK_ON ED_BASE+280L +#define ED_MODE_LINK_OFF ED_BASE+281L +#define ED_MODE_NOTIFY_ENABLE ED_BASE+810L +#define ED_MODE_NOTIFY_DISABLE ED_BASE+811L +#define ED_MODE_SHOT_SEARCH ED_BASE+812L + +// IAMTimecodeReader/Generator/Display defines +// +// Timecode Generator Mode params and values: +// +#define ED_TCG_TIMECODE_TYPE ED_BASE+400L // can be one of the following: +#define ED_TCG_SMPTE_LTC ED_BASE+401L +#define ED_TCG_SMPTE_VITC ED_BASE+402L +#define ED_TCG_MIDI_QF ED_BASE+403L +#define ED_TCG_MIDI_FULL ED_BASE+404L + +#define ED_TCG_FRAMERATE ED_BASE+405L // can be one of the following: +#define ED_FORMAT_SMPTE_30 ED_BASE+406L +#define ED_FORMAT_SMPTE_30DROP ED_BASE+407L +#define ED_FORMAT_SMPTE_25 ED_BASE+408L +#define ED_FORMAT_SMPTE_24 ED_BASE+409L + +#define ED_TCG_SYNC_SOURCE ED_BASE+410L // can be one of the following: +#define ED_TCG_VIDEO ED_BASE+411L +#define ED_TCG_READER ED_BASE+412L +#define ED_TCG_FREE ED_BASE+413L + +#define ED_TCG_REFERENCE_SOURCE ED_BASE+414L // can have one these values: + // ED_TCG_FREE || ED_TCG_READER + // (for regen/jamsync) + +// TimeCodeReader Mode params and values: +#define ED_TCR_SOURCE ED_BASE+416L // can be one of the following: +// ED_TCG (already defined) +#define ED_TCR_LTC ED_BASE+417L +#define ED_TCR_VITC ED_BASE+418L +#define ED_TCR_CT ED_BASE+419L // Control Track +#define ED_TCR_FTC ED_BASE+420L // File TimeCode - for file-based devices + // that wish they were transports +// ED_MODE_NOTIFY_ENABLE can be OATRUE or OAFALSE (defined in transport mode +// section of this file). +#define ED_TCR_LAST_VALUE ED_BASE+421L // for notification mode - + // successive calls to GetTimecode + // return the last read value +// TimeCode Display Mode params and values: +// +#define ED_TCD_SOURCE ED_BASE+422L // can be one of the following: +#define ED_TCR ED_BASE+423L +#define ED_TCG ED_BASE+424L + +#define ED_TCD_SIZE ED_BASE+425L // can be one of the following: +#define ED_SMALL ED_BASE+426L +#define ED_MED ED_BASE+427L +#define ED_LARGE ED_BASE+428L + +#define ED_TCD_POSITION ED_BASE+429L // can be one of the following: +#define ED_TOP 0x0001 +#define ED_MIDDLE 0x0002 +#define ED_BOTTOM 0x0004 // or'd with +#define ED_LEFT 0x0100 +#define ED_CENTER 0x0200 +#define ED_RIGHT 0x0400 + +#define ED_TCD_INTENSITY ED_BASE+436L // can be one of the following: +#define ED_HIGH ED_BASE+437L +#define ED_LOW ED_BASE+438L + +#define ED_TCD_TRANSPARENCY ED_BASE+439L // 0-4, 0 is opaque + +#define ED_TCD_INVERT ED_BASE+440L // OATRUE=black on white + // OAFALSE=white on black +// IAMExtTransport defines +// +// Transport status, params and values +// + +// IAMExtTransport Status items and and values: +#define ED_MODE ED_BASE+500L // see ED_MODE_xxx values above +#define ED_ERROR ED_BASE+501L +#define ED_LOCAL ED_BASE+502L +#define ED_RECORD_INHIBIT ED_BASE+503L +#define ED_SERVO_LOCK ED_BASE+504L +#define ED_MEDIA_PRESENT ED_BASE+505L +#define ED_MEDIA_LENGTH ED_BASE+506L +#define ED_MEDIA_SIZE ED_BASE+507L +#define ED_MEDIA_TRACK_COUNT ED_BASE+508L +#define ED_MEDIA_TRACK_LENGTH ED_BASE+509L +#define ED_MEDIA_SIDE ED_BASE+510L + +#define ED_MEDIA_TYPE ED_BASE+511L // can be one of the following: +#define ED_MEDIA_VHS ED_BASE+512L +#define ED_MEDIA_SVHS ED_BASE+513L +#define ED_MEDIA_HI8 ED_BASE+514L +#define ED_MEDIA_UMATIC ED_BASE+515L +#define ED_MEDIA_DVC ED_BASE+516L +#define ED_MEDIA_1_INCH ED_BASE+517L +#define ED_MEDIA_D1 ED_BASE+518L +#define ED_MEDIA_D2 ED_BASE+519L +#define ED_MEDIA_D3 ED_BASE+520L +#define ED_MEDIA_D5 ED_BASE+521L +#define ED_MEDIA_DBETA ED_BASE+522L +#define ED_MEDIA_BETA ED_BASE+523L +#define ED_MEDIA_8MM ED_BASE+524L +#define ED_MEDIA_DDR ED_BASE+525L +#define ED_MEDIA_SX ED_BASE+813L +#define ED_MEDIA_OTHER ED_BASE+526L +#define ED_MEDIA_CLV ED_BASE+527L +#define ED_MEDIA_CAV ED_BASE+528L +#define ED_MEDIA_POSITION ED_BASE+529L + +#define ED_LINK_MODE ED_BASE+530L // OATRUE if transport controls + // are linked to graph's RUN, + // STOP, and PAUSE methods + +// IAMExtTransport Basic Parms +#define ED_TRANSBASIC_TIME_FORMAT ED_BASE+540L // can be one of the following: +#define ED_FORMAT_MILLISECONDS ED_BASE+541L +#define ED_FORMAT_FRAMES ED_BASE+542L +#define ED_FORMAT_REFERENCE_TIME ED_BASE+543L + +#define ED_FORMAT_HMSF ED_BASE+547L +#define ED_FORMAT_TMSF ED_BASE+548L + +#define ED_TRANSBASIC_TIME_REFERENCE ED_BASE+549L // can be one of the following: +#define ED_TIMEREF_TIMECODE ED_BASE+550L +#define ED_TIMEREF_CONTROL_TRACK ED_BASE+551L +#define ED_TIMEREF_INDEX ED_BASE+552L + +#define ED_TRANSBASIC_SUPERIMPOSE ED_BASE+553L // enable/disable onscreen display +#define ED_TRANSBASIC_END_STOP_ACTION ED_BASE+554L // can be one of: ED_MODE_STOP | + // ED_MODE_REWIND | ED_MODE_FREEZE +#define ED_TRANSBASIC_RECORD_FORMAT ED_BASE+555L // can be one of the following: +#define ED_RECORD_FORMAT_SP ED_BASE+556L +#define ED_RECORD_FORMAT_LP ED_BASE+557L +#define ED_RECORD_FORMAT_EP ED_BASE+558L + +#define ED_TRANSBASIC_STEP_COUNT ED_BASE+559L +#define ED_TRANSBASIC_STEP_UNIT ED_BASE+560L // can be one of the following: +#define ED_STEP_FIELD ED_BASE+561L +#define ED_STEP_FRAME ED_BASE+562L +#define ED_STEP_3_2 ED_BASE+563L + +#define ED_TRANSBASIC_PREROLL ED_BASE+564L +#define ED_TRANSBASIC_RECPREROLL ED_BASE+565L +#define ED_TRANSBASIC_POSTROLL ED_BASE+566L +#define ED_TRANSBASIC_EDIT_DELAY ED_BASE+567L +#define ED_TRANSBASIC_PLAYTC_DELAY ED_BASE+568L +#define ED_TRANSBASIC_RECTC_DELAY ED_BASE+569L +#define ED_TRANSBASIC_EDIT_FIELD ED_BASE+570L +#define ED_TRANSBASIC_FRAME_SERVO ED_BASE+571L +#define ED_TRANSBASIC_CF_SERVO ED_BASE+572L +#define ED_TRANSBASIC_SERVO_REF ED_BASE+573L // can be one of the following: +#define ED_REF_EXTERNAL ED_BASE+574L +#define ED_REF_INPUT ED_BASE+575L +#define ED_REF_INTERNAL ED_BASE+576L +#define ED_REF_AUTO ED_BASE+577L + +#define ED_TRANSBASIC_WARN_GL ED_BASE+578L +#define ED_TRANSBASIC_SET_TRACKING ED_BASE+579L // can be one of the following: +#define ED_TRACKING_PLUS ED_BASE+580L +#define ED_TRACKING_MINUS ED_BASE+581L +#define ED_TRACKING_RESET ED_BASE+582L + +#define ED_TRANSBASIC_SET_FREEZE_TIMEOUT ED_BASE+583L +#define ED_TRANSBASIC_VOLUME_NAME ED_BASE+584L +#define ED_TRANSBASIC_BALLISTIC_1 ED_BASE+585L // space for proprietary data +#define ED_TRANSBASIC_BALLISTIC_2 ED_BASE+586L +#define ED_TRANSBASIC_BALLISTIC_3 ED_BASE+587L +#define ED_TRANSBASIC_BALLISTIC_4 ED_BASE+588L +#define ED_TRANSBASIC_BALLISTIC_5 ED_BASE+589L +#define ED_TRANSBASIC_BALLISTIC_6 ED_BASE+590L +#define ED_TRANSBASIC_BALLISTIC_7 ED_BASE+591L +#define ED_TRANSBASIC_BALLISTIC_8 ED_BASE+592L +#define ED_TRANSBASIC_BALLISTIC_9 ED_BASE+593L +#define ED_TRANSBASIC_BALLISTIC_10 ED_BASE+594L +#define ED_TRANSBASIC_BALLISTIC_11 ED_BASE+595L +#define ED_TRANSBASIC_BALLISTIC_12 ED_BASE+596L +#define ED_TRANSBASIC_BALLISTIC_13 ED_BASE+597L +#define ED_TRANSBASIC_BALLISTIC_14 ED_BASE+598L +#define ED_TRANSBASIC_BALLISTIC_15 ED_BASE+599L +#define ED_TRANSBASIC_BALLISTIC_16 ED_BASE+600L +#define ED_TRANSBASIC_BALLISTIC_17 ED_BASE+601L +#define ED_TRANSBASIC_BALLISTIC_18 ED_BASE+602L +#define ED_TRANSBASIC_BALLISTIC_19 ED_BASE+603L +#define ED_TRANSBASIC_BALLISTIC_20 ED_BASE+604L + +// consumer VCR items +#define ED_TRANSBASIC_SETCLOCK ED_BASE+605L +#define ED_TRANSBASIC_SET_COUNTER_FORMAT ED_BASE+606L // uses time format flags +#define ED_TRANSBASIC_SET_COUNTER_VALUE ED_BASE+607L + +#define ED_TRANSBASIC_SETTUNER_CH_UP ED_BASE+608L +#define ED_TRANSBASIC_SETTUNER_CH_DN ED_BASE+609L +#define ED_TRANSBASIC_SETTUNER_SK_UP ED_BASE+610L +#define ED_TRANSBASIC_SETTUNER_SK_DN ED_BASE+611L +#define ED_TRANSBASIC_SETTUNER_CH ED_BASE+612L +#define ED_TRANSBASIC_SETTUNER_NUM ED_BASE+613L + +#define ED_TRANSBASIC_SETTIMER_EVENT ED_BASE+614L +#define ED_TRANSBASIC_SETTIMER_STARTDAY ED_BASE+615L +#define ED_TRANSBASIC_SETTIMER_STARTTIME ED_BASE+616L +#define ED_TRANSBASIC_SETTIMER_STOPDAY ED_BASE+617L +#define ED_TRANSBASIC_SETTIMER_STOPTIME ED_BASE+618L + +// IAMExtTransport video parameters +#define ED_TRANSVIDEO_SET_OUTPUT ED_BASE+630L // can be one of the following: +#define ED_E2E ED_BASE+631L +#define ED_PLAYBACK ED_BASE+632L +#define ED_OFF ED_BASE+633L + +#define ED_TRANSVIDEO_SET_SOURCE ED_BASE+634L + +// IAMExtTransport audio parameters +#define ED_TRANSAUDIO_ENABLE_OUTPUT ED_BASE+640L // can be the following: +#define ED_AUDIO_ALL 0x10000000 // or any of the following OR'd together +#define ED_AUDIO_1 0x0000001L +#define ED_AUDIO_2 0x0000002L +#define ED_AUDIO_3 0x0000004L +#define ED_AUDIO_4 0x0000008L +#define ED_AUDIO_5 0x0000010L +#define ED_AUDIO_6 0x0000020L +#define ED_AUDIO_7 0x0000040L +#define ED_AUDIO_8 0x0000080L +#define ED_AUDIO_9 0x0000100L +#define ED_AUDIO_10 0x0000200L +#define ED_AUDIO_11 0x0000400L +#define ED_AUDIO_12 0x0000800L +#define ED_AUDIO_13 0x0001000L +#define ED_AUDIO_14 0x0002000L +#define ED_AUDIO_15 0x0004000L +#define ED_AUDIO_16 0x0008000L +#define ED_AUDIO_17 0x0010000L +#define ED_AUDIO_18 0x0020000L +#define ED_AUDIO_19 0x0040000L +#define ED_AUDIO_20 0x0080000L +#define ED_AUDIO_21 0x0100000L +#define ED_AUDIO_22 0x0200000L +#define ED_AUDIO_23 0x0400000L +#define ED_AUDIO_24 0x0800000L +#define ED_VIDEO 0x2000000L // for Edit props below + +#define ED_TRANSAUDIO_ENABLE_RECORD ED_BASE+642L +#define ED_TRANSAUDIO_ENABLE_SELSYNC ED_BASE+643L +#define ED_TRANSAUDIO_SET_SOURCE ED_BASE+644L +#define ED_TRANSAUDIO_SET_MONITOR ED_BASE+645L + + +// Edit Property Set-related defs + +// The following values reflect (and control) the state of an +// edit property set +#define ED_INVALID ED_BASE+652L +#define ED_EXECUTING ED_BASE+653L +#define ED_REGISTER ED_BASE+654L +#define ED_DELETE ED_BASE+655L + +// Edit property set parameters and values +#define ED_EDIT_HEVENT ED_BASE+656L // event handle to signal event + // completion +#define ED_EDIT_TEST ED_BASE+657L // returns OAFALSE if filter thinks + // edit can be done, OATRUE if not +#define ED_EDIT_IMMEDIATE ED_BASE+658L // OATRUE means start put the + // device into edit mode (editing + // "on the fly") immediately upon + // execution of Mode(ED_MODE_EDIT_CUE) +#define ED_EDIT_MODE ED_BASE+659L +// can be one of the following values: +#define ED_EDIT_MODE_ASSEMBLE ED_BASE+660L +#define ED_EDIT_MODE_INSERT ED_BASE+661L +#define ED_EDIT_MODE_CRASH_RECORD ED_BASE+662L +#define ED_EDIT_MODE_BOOKMARK_TIME ED_BASE+663L // these two are for +#define ED_EDIT_MODE_BOOKMARK_CHAPTER ED_BASE+664L // laserdisks + +#define ED_EDIT_MASTER ED_BASE+666L // OATRUE causes device + // not to synchronize + +#define ED_EDIT_TRACK ED_BASE+667L +// can be one of the following possible OR'd values: +// ED_VIDEO, ED_AUDIO_1 thru ED_AUDIO_24 (or ED_AUDIO_ALL) + +#define ED_EDIT_SRC_INPOINT ED_BASE+668L // in current time format +#define ED_EDIT_SRC_OUTPOINT ED_BASE+669L // in current time format +#define ED_EDIT_REC_INPOINT ED_BASE+670L // in current time format +#define ED_EDIT_REC_OUTPOINT ED_BASE+671L // in current time format + +#define ED_EDIT_REHEARSE_MODE ED_BASE+672L +// can be one of the following possible values: +#define ED_EDIT_BVB ED_BASE+673L // means rehearse the edit with + // "black-video-black" +#define ED_EDIT_VBV ED_BASE+674L +#define ED_EDIT_VVV ED_BASE+675L +#define ED_EDIT_PERFORM ED_BASE+676L // means perform the edit with no + // rehearsal. + +// Set this property to OATRUE to kill the edit if in progress +#define ED_EDIT_ABORT ED_BASE+677L +// how long to wait for edit to complete +#define ED_EDIT_TIMEOUT ED_BASE+678L // in current time format + +// This property causes the device to seek to a point specified by +// ED_EDIT_SEEK_MODE (see below). NOTE: Only one event at a time can seek. +#define ED_EDIT_SEEK ED_BASE+679L // OATRUE means do it now. +#define ED_EDIT_SEEK_MODE ED_BASE+680L +//possible values: +#define ED_EDIT_SEEK_EDIT_IN ED_BASE+681L // seek to edit's inpoint +#define ED_EDIT_SEEK_EDIT_OUT ED_BASE+682L // seek to edit's outpoint +#define ED_EDIT_SEEK_PREROLL ED_BASE+683L // seek to edit's + // inpoint-preroll +#define ED_EDIT_SEEK_PREROLL_CT ED_BASE+684L // seek to preroll point + // using control track (used for tapes with + // discontinuoustimecode before edit point: seek + // to inpoint using timecode, then backup to + // preroll point using control track) +#define ED_EDIT_SEEK_BOOKMARK ED_BASE+685L // seek to bookmark (just like + // timecode search) +// This property is used for multiple-VCR systems where each machine must +// cue to a different location relative to the graph's reference clock. The +// basic idea is that an edit event is setup with an ED_EDIT_OFFSET property +// that tells the VCR what offset to maintain between it's timecode (converted +// to reference clock units) and the reference clock. +#define ED_EDIT_OFFSET ED_BASE+686L // in current time format + +#define ED_EDIT_PREREAD ED_BASE+815L // OATRUE means device supports + // pre-read (recorder can also be + // player + +// +// Some error codes: +// +// device could be in local mode +#define ED_ERR_DEVICE_NOT_READY ED_BASE+700L + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __EDEVDEFS__ + +// eof edevdefs.h diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/edpwin32.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/edpwin32.h new file mode 100644 index 0000000000000000000000000000000000000000..fedec64c5bec6c609b7942cafc59d45c837a9251 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/edpwin32.h @@ -0,0 +1,51 @@ +//+----------------------------------------------------------------------- +// +// Microsoft Windows +// +// Copyright (c) Microsoft Corporation +// +// Description: Enterprise Data Protection Win32 APIs +// +//------------------------------------------------------------------------ + +#ifdef _MSC_VER +#pragma once +#endif + +#ifndef _EDPWIN32_H_ +#define _EDPWIN32_H_ + +#ifndef NT_INCLUDED +#include +#endif /* NT_INCLUDED */ + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PC_APP) + +#if NTDDI_VERSION >= NTDDI_WIN10_TH2 + +STDAPI ProtectFileToEnterpriseIdentity( + _In_ PCWSTR fileOrFolderPath, + _In_ PCWSTR identity + ); + +#endif + +#if NTDDI_VERSION >= NTDDI_WIN10_RS2 + +typedef struct +{ + bool audit; +}FILE_UNPROTECT_OPTIONS; + +STDAPI UnprotectFile( + _In_ PCWSTR fileOrFolderPath, + _In_opt_ const FILE_UNPROTECT_OPTIONS* options + ); + +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PC_APP) */ +#pragma endregion + +#endif // _EDPWIN32_H_ \ No newline at end of file diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/effects.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/effects.h new file mode 100644 index 0000000000000000000000000000000000000000..0554a28a4f088d0bbf92fe569f8178c5516ec28a --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/effects.h @@ -0,0 +1,604 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + +#pragma warning( disable: 4049 ) /* more than 64k source lines */ + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 475 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __effectspri_h__ +#define __effectspri_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IWMPEffects_FWD_DEFINED__ +#define __IWMPEffects_FWD_DEFINED__ +typedef interface IWMPEffects IWMPEffects; + +#endif /* __IWMPEffects_FWD_DEFINED__ */ + + +#ifndef __IWMPEffects2_FWD_DEFINED__ +#define __IWMPEffects2_FWD_DEFINED__ +typedef interface IWMPEffects2 IWMPEffects2; + +#endif /* __IWMPEffects2_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" +#include "wmp.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_effectspri_0000_0000 */ +/* [local] */ + +//========================================================================= +// +// Microsoft Windows Media Technologies +// Copyright (C) Microsoft Corporation. All rights reserved. +// +//========================================================================= +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#define EFFECT_CANGOFULLSCREEN ( 0x1 ) + +#define EFFECT_HASPROPERTYPAGE ( 0x2 ) + +#define EFFECT_VARIABLEFREQSTEP ( 0x4 ) + +#define EFFECT_WINDOWEDONLY ( 0x8 ) + +#define EFFECT2_FULLSCREENEXCLUSIVE ( 0x10 ) + +#define SA_BUFFER_SIZE ( 1024 ) + + +enum PlayerState + { + stop_state = 0, + pause_state = 1, + play_state = 2 + } ; + +//********************************************************************** +// Define the minimum and maximum frequency ranges returned in our +// TimedLevel frequency array (i.e. first index in TimedLevel.frequency +// is at 20Hz and last is at 22050Hz). +//********************************************************************** +static const float kfltTimedLevelMaximumFrequency = 22050.0F; +static const float kfltTimedLevelMinimumFrequency = 20.0F; + +/* + * FREQUENCY_INDEX() returns the index into TimedLevel.frequency[] where + * the specified frequency is located in the power spectrum + */ +#define FREQUENCY_INDEX(FREQ)\ + (int)(((FREQ) - kfltTimedLevelMinimumFrequency) /\ + (((kfltTimedLevelMaximumFrequency - kfltTimedLevelMinimumFrequency) / SA_BUFFER_SIZE))) + +typedef struct tagTimedLevel + { + unsigned char frequency[ 2 ][ 1024 ]; + unsigned char waveform[ 2 ][ 1024 ]; + int state; + hyper timeStamp; + } TimedLevel; + + + +extern RPC_IF_HANDLE __MIDL_itf_effectspri_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_effectspri_0000_0000_v0_0_s_ifspec; + +#ifndef __IWMPEffects_INTERFACE_DEFINED__ +#define __IWMPEffects_INTERFACE_DEFINED__ + +/* interface IWMPEffects */ +/* [oleautomation][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IWMPEffects; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("D3984C13-C3CB-48e2-8BE5-5168340B4F35") + IWMPEffects : public IUnknown + { + public: + virtual /* [helpstring][local] */ HRESULT STDMETHODCALLTYPE Render( + /* [in] */ TimedLevel *pLevels, + /* [in] */ HDC hdc, + /* [in] */ RECT *prc) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE MediaInfo( + /* [in] */ LONG lChannelCount, + /* [in] */ LONG lSampleRate, + /* [in] */ BSTR bstrTitle) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetCapabilities( + /* [out] */ DWORD *pdwCapabilities) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetTitle( + /* [out] */ BSTR *bstrTitle) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPresetTitle( + /* [in] */ LONG nPreset, + /* [out] */ BSTR *bstrPresetTitle) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPresetCount( + /* [out] */ LONG *pnPresetCount) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetCurrentPreset( + /* [in] */ LONG nPreset) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetCurrentPreset( + /* [out] */ LONG *pnPreset) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE DisplayPropertyPage( + /* [in] */ HWND hwndOwner) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GoFullscreen( + /* [in] */ BOOL fFullScreen) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RenderFullScreen( + /* [in] */ TimedLevel *pLevels) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWMPEffectsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IWMPEffects * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IWMPEffects * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IWMPEffects * This); + + DECLSPEC_XFGVIRT(IWMPEffects, Render) + /* [helpstring][local] */ HRESULT ( STDMETHODCALLTYPE *Render )( + IWMPEffects * This, + /* [in] */ TimedLevel *pLevels, + /* [in] */ HDC hdc, + /* [in] */ RECT *prc); + + DECLSPEC_XFGVIRT(IWMPEffects, MediaInfo) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *MediaInfo )( + IWMPEffects * This, + /* [in] */ LONG lChannelCount, + /* [in] */ LONG lSampleRate, + /* [in] */ BSTR bstrTitle); + + DECLSPEC_XFGVIRT(IWMPEffects, GetCapabilities) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetCapabilities )( + IWMPEffects * This, + /* [out] */ DWORD *pdwCapabilities); + + DECLSPEC_XFGVIRT(IWMPEffects, GetTitle) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetTitle )( + IWMPEffects * This, + /* [out] */ BSTR *bstrTitle); + + DECLSPEC_XFGVIRT(IWMPEffects, GetPresetTitle) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPresetTitle )( + IWMPEffects * This, + /* [in] */ LONG nPreset, + /* [out] */ BSTR *bstrPresetTitle); + + DECLSPEC_XFGVIRT(IWMPEffects, GetPresetCount) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPresetCount )( + IWMPEffects * This, + /* [out] */ LONG *pnPresetCount); + + DECLSPEC_XFGVIRT(IWMPEffects, SetCurrentPreset) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetCurrentPreset )( + IWMPEffects * This, + /* [in] */ LONG nPreset); + + DECLSPEC_XFGVIRT(IWMPEffects, GetCurrentPreset) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetCurrentPreset )( + IWMPEffects * This, + /* [out] */ LONG *pnPreset); + + DECLSPEC_XFGVIRT(IWMPEffects, DisplayPropertyPage) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *DisplayPropertyPage )( + IWMPEffects * This, + /* [in] */ HWND hwndOwner); + + DECLSPEC_XFGVIRT(IWMPEffects, GoFullscreen) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GoFullscreen )( + IWMPEffects * This, + /* [in] */ BOOL fFullScreen); + + DECLSPEC_XFGVIRT(IWMPEffects, RenderFullScreen) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RenderFullScreen )( + IWMPEffects * This, + /* [in] */ TimedLevel *pLevels); + + END_INTERFACE + } IWMPEffectsVtbl; + + interface IWMPEffects + { + CONST_VTBL struct IWMPEffectsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWMPEffects_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWMPEffects_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWMPEffects_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWMPEffects_Render(This,pLevels,hdc,prc) \ + ( (This)->lpVtbl -> Render(This,pLevels,hdc,prc) ) + +#define IWMPEffects_MediaInfo(This,lChannelCount,lSampleRate,bstrTitle) \ + ( (This)->lpVtbl -> MediaInfo(This,lChannelCount,lSampleRate,bstrTitle) ) + +#define IWMPEffects_GetCapabilities(This,pdwCapabilities) \ + ( (This)->lpVtbl -> GetCapabilities(This,pdwCapabilities) ) + +#define IWMPEffects_GetTitle(This,bstrTitle) \ + ( (This)->lpVtbl -> GetTitle(This,bstrTitle) ) + +#define IWMPEffects_GetPresetTitle(This,nPreset,bstrPresetTitle) \ + ( (This)->lpVtbl -> GetPresetTitle(This,nPreset,bstrPresetTitle) ) + +#define IWMPEffects_GetPresetCount(This,pnPresetCount) \ + ( (This)->lpVtbl -> GetPresetCount(This,pnPresetCount) ) + +#define IWMPEffects_SetCurrentPreset(This,nPreset) \ + ( (This)->lpVtbl -> SetCurrentPreset(This,nPreset) ) + +#define IWMPEffects_GetCurrentPreset(This,pnPreset) \ + ( (This)->lpVtbl -> GetCurrentPreset(This,pnPreset) ) + +#define IWMPEffects_DisplayPropertyPage(This,hwndOwner) \ + ( (This)->lpVtbl -> DisplayPropertyPage(This,hwndOwner) ) + +#define IWMPEffects_GoFullscreen(This,fFullScreen) \ + ( (This)->lpVtbl -> GoFullscreen(This,fFullScreen) ) + +#define IWMPEffects_RenderFullScreen(This,pLevels) \ + ( (This)->lpVtbl -> RenderFullScreen(This,pLevels) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWMPEffects_INTERFACE_DEFINED__ */ + + +#ifndef __IWMPEffects2_INTERFACE_DEFINED__ +#define __IWMPEffects2_INTERFACE_DEFINED__ + +/* interface IWMPEffects2 */ +/* [oleautomation][unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IWMPEffects2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("695386EC-AA3C-4618-A5E1-DD9A8B987632") + IWMPEffects2 : public IWMPEffects + { + public: + virtual HRESULT STDMETHODCALLTYPE SetCore( + /* [in] */ IWMPCore *pPlayer) = 0; + + virtual HRESULT STDMETHODCALLTYPE Create( + /* [in] */ HWND hwndParent) = 0; + + virtual HRESULT STDMETHODCALLTYPE Destroy( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE NotifyNewMedia( + /* [in] */ IWMPMedia *pMedia) = 0; + + virtual HRESULT STDMETHODCALLTYPE OnWindowMessage( + /* [in] */ UINT msg, + /* [in] */ WPARAM WParam, + /* [in] */ LPARAM LParam, + /* [in] */ LRESULT *plResultParam) = 0; + + virtual HRESULT STDMETHODCALLTYPE RenderWindowed( + /* [in] */ TimedLevel *pData, + /* [in] */ BOOL fRequiredRender) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IWMPEffects2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IWMPEffects2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IWMPEffects2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IWMPEffects2 * This); + + DECLSPEC_XFGVIRT(IWMPEffects, Render) + /* [helpstring][local] */ HRESULT ( STDMETHODCALLTYPE *Render )( + IWMPEffects2 * This, + /* [in] */ TimedLevel *pLevels, + /* [in] */ HDC hdc, + /* [in] */ RECT *prc); + + DECLSPEC_XFGVIRT(IWMPEffects, MediaInfo) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *MediaInfo )( + IWMPEffects2 * This, + /* [in] */ LONG lChannelCount, + /* [in] */ LONG lSampleRate, + /* [in] */ BSTR bstrTitle); + + DECLSPEC_XFGVIRT(IWMPEffects, GetCapabilities) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetCapabilities )( + IWMPEffects2 * This, + /* [out] */ DWORD *pdwCapabilities); + + DECLSPEC_XFGVIRT(IWMPEffects, GetTitle) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetTitle )( + IWMPEffects2 * This, + /* [out] */ BSTR *bstrTitle); + + DECLSPEC_XFGVIRT(IWMPEffects, GetPresetTitle) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPresetTitle )( + IWMPEffects2 * This, + /* [in] */ LONG nPreset, + /* [out] */ BSTR *bstrPresetTitle); + + DECLSPEC_XFGVIRT(IWMPEffects, GetPresetCount) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPresetCount )( + IWMPEffects2 * This, + /* [out] */ LONG *pnPresetCount); + + DECLSPEC_XFGVIRT(IWMPEffects, SetCurrentPreset) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetCurrentPreset )( + IWMPEffects2 * This, + /* [in] */ LONG nPreset); + + DECLSPEC_XFGVIRT(IWMPEffects, GetCurrentPreset) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetCurrentPreset )( + IWMPEffects2 * This, + /* [out] */ LONG *pnPreset); + + DECLSPEC_XFGVIRT(IWMPEffects, DisplayPropertyPage) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *DisplayPropertyPage )( + IWMPEffects2 * This, + /* [in] */ HWND hwndOwner); + + DECLSPEC_XFGVIRT(IWMPEffects, GoFullscreen) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GoFullscreen )( + IWMPEffects2 * This, + /* [in] */ BOOL fFullScreen); + + DECLSPEC_XFGVIRT(IWMPEffects, RenderFullScreen) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RenderFullScreen )( + IWMPEffects2 * This, + /* [in] */ TimedLevel *pLevels); + + DECLSPEC_XFGVIRT(IWMPEffects2, SetCore) + HRESULT ( STDMETHODCALLTYPE *SetCore )( + IWMPEffects2 * This, + /* [in] */ IWMPCore *pPlayer); + + DECLSPEC_XFGVIRT(IWMPEffects2, Create) + HRESULT ( STDMETHODCALLTYPE *Create )( + IWMPEffects2 * This, + /* [in] */ HWND hwndParent); + + DECLSPEC_XFGVIRT(IWMPEffects2, Destroy) + HRESULT ( STDMETHODCALLTYPE *Destroy )( + IWMPEffects2 * This); + + DECLSPEC_XFGVIRT(IWMPEffects2, NotifyNewMedia) + HRESULT ( STDMETHODCALLTYPE *NotifyNewMedia )( + IWMPEffects2 * This, + /* [in] */ IWMPMedia *pMedia); + + DECLSPEC_XFGVIRT(IWMPEffects2, OnWindowMessage) + HRESULT ( STDMETHODCALLTYPE *OnWindowMessage )( + IWMPEffects2 * This, + /* [in] */ UINT msg, + /* [in] */ WPARAM WParam, + /* [in] */ LPARAM LParam, + /* [in] */ LRESULT *plResultParam); + + DECLSPEC_XFGVIRT(IWMPEffects2, RenderWindowed) + HRESULT ( STDMETHODCALLTYPE *RenderWindowed )( + IWMPEffects2 * This, + /* [in] */ TimedLevel *pData, + /* [in] */ BOOL fRequiredRender); + + END_INTERFACE + } IWMPEffects2Vtbl; + + interface IWMPEffects2 + { + CONST_VTBL struct IWMPEffects2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IWMPEffects2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IWMPEffects2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IWMPEffects2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IWMPEffects2_Render(This,pLevels,hdc,prc) \ + ( (This)->lpVtbl -> Render(This,pLevels,hdc,prc) ) + +#define IWMPEffects2_MediaInfo(This,lChannelCount,lSampleRate,bstrTitle) \ + ( (This)->lpVtbl -> MediaInfo(This,lChannelCount,lSampleRate,bstrTitle) ) + +#define IWMPEffects2_GetCapabilities(This,pdwCapabilities) \ + ( (This)->lpVtbl -> GetCapabilities(This,pdwCapabilities) ) + +#define IWMPEffects2_GetTitle(This,bstrTitle) \ + ( (This)->lpVtbl -> GetTitle(This,bstrTitle) ) + +#define IWMPEffects2_GetPresetTitle(This,nPreset,bstrPresetTitle) \ + ( (This)->lpVtbl -> GetPresetTitle(This,nPreset,bstrPresetTitle) ) + +#define IWMPEffects2_GetPresetCount(This,pnPresetCount) \ + ( (This)->lpVtbl -> GetPresetCount(This,pnPresetCount) ) + +#define IWMPEffects2_SetCurrentPreset(This,nPreset) \ + ( (This)->lpVtbl -> SetCurrentPreset(This,nPreset) ) + +#define IWMPEffects2_GetCurrentPreset(This,pnPreset) \ + ( (This)->lpVtbl -> GetCurrentPreset(This,pnPreset) ) + +#define IWMPEffects2_DisplayPropertyPage(This,hwndOwner) \ + ( (This)->lpVtbl -> DisplayPropertyPage(This,hwndOwner) ) + +#define IWMPEffects2_GoFullscreen(This,fFullScreen) \ + ( (This)->lpVtbl -> GoFullscreen(This,fFullScreen) ) + +#define IWMPEffects2_RenderFullScreen(This,pLevels) \ + ( (This)->lpVtbl -> RenderFullScreen(This,pLevels) ) + + +#define IWMPEffects2_SetCore(This,pPlayer) \ + ( (This)->lpVtbl -> SetCore(This,pPlayer) ) + +#define IWMPEffects2_Create(This,hwndParent) \ + ( (This)->lpVtbl -> Create(This,hwndParent) ) + +#define IWMPEffects2_Destroy(This) \ + ( (This)->lpVtbl -> Destroy(This) ) + +#define IWMPEffects2_NotifyNewMedia(This,pMedia) \ + ( (This)->lpVtbl -> NotifyNewMedia(This,pMedia) ) + +#define IWMPEffects2_OnWindowMessage(This,msg,WParam,LParam,plResultParam) \ + ( (This)->lpVtbl -> OnWindowMessage(This,msg,WParam,LParam,plResultParam) ) + +#define IWMPEffects2_RenderWindowed(This,pData,fRequiredRender) \ + ( (This)->lpVtbl -> RenderWindowed(This,pData,fRequiredRender) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IWMPEffects2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_effectspri_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_effectspri_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_effectspri_0000_0002_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER BSTR_UserSize( unsigned long *, unsigned long , BSTR * ); +unsigned char * __RPC_USER BSTR_UserMarshal( unsigned long *, unsigned char *, BSTR * ); +unsigned char * __RPC_USER BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * ); +void __RPC_USER BSTR_UserFree( unsigned long *, BSTR * ); + +unsigned long __RPC_USER HWND_UserSize( unsigned long *, unsigned long , HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal( unsigned long *, unsigned char *, HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal(unsigned long *, unsigned char *, HWND * ); +void __RPC_USER HWND_UserFree( unsigned long *, HWND * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/efswrtinterop.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/efswrtinterop.h new file mode 100644 index 0000000000000000000000000000000000000000..c5d9f07b4484bd14e05b27409150741d390ec7fd --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/efswrtinterop.h @@ -0,0 +1,713 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __efswrtinterop_h__ +#define __efswrtinterop_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IProtectionPolicyManagerInterop_FWD_DEFINED__ +#define __IProtectionPolicyManagerInterop_FWD_DEFINED__ +typedef interface IProtectionPolicyManagerInterop IProtectionPolicyManagerInterop; + +#endif /* __IProtectionPolicyManagerInterop_FWD_DEFINED__ */ + + +#ifndef __IProtectionPolicyManagerInterop2_FWD_DEFINED__ +#define __IProtectionPolicyManagerInterop2_FWD_DEFINED__ +typedef interface IProtectionPolicyManagerInterop2 IProtectionPolicyManagerInterop2; + +#endif /* __IProtectionPolicyManagerInterop2_FWD_DEFINED__ */ + + +#ifndef __IProtectionPolicyManagerInterop3_FWD_DEFINED__ +#define __IProtectionPolicyManagerInterop3_FWD_DEFINED__ +typedef interface IProtectionPolicyManagerInterop3 IProtectionPolicyManagerInterop3; + +#endif /* __IProtectionPolicyManagerInterop3_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "inspectable.h" +#include "asyncinfo.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_efswrtinterop_0000_0000 */ +/* [local] */ + +#include +#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD) +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_efswrtinterop_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_efswrtinterop_0000_0000_v0_0_s_ifspec; + +#ifndef __IProtectionPolicyManagerInterop_INTERFACE_DEFINED__ +#define __IProtectionPolicyManagerInterop_INTERFACE_DEFINED__ + +/* interface IProtectionPolicyManagerInterop */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IProtectionPolicyManagerInterop; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4652651d-c1fe-4ba1-9F0a-c0f56596f721") + IProtectionPolicyManagerInterop : public IInspectable + { + public: + virtual HRESULT STDMETHODCALLTYPE RequestAccessForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING targetIdentity, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetForWindow( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **result) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IProtectionPolicyManagerInteropVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IProtectionPolicyManagerInterop * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IProtectionPolicyManagerInterop * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IProtectionPolicyManagerInterop * This); + + DECLSPEC_XFGVIRT(IInspectable, GetIids) + HRESULT ( STDMETHODCALLTYPE *GetIids )( + __RPC__in IProtectionPolicyManagerInterop * This, + /* [out] */ __RPC__out ULONG *iidCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*iidCount) IID **iids); + + DECLSPEC_XFGVIRT(IInspectable, GetRuntimeClassName) + HRESULT ( STDMETHODCALLTYPE *GetRuntimeClassName )( + __RPC__in IProtectionPolicyManagerInterop * This, + /* [out] */ __RPC__deref_out_opt HSTRING *className); + + DECLSPEC_XFGVIRT(IInspectable, GetTrustLevel) + HRESULT ( STDMETHODCALLTYPE *GetTrustLevel )( + __RPC__in IProtectionPolicyManagerInterop * This, + /* [out] */ __RPC__out TrustLevel *trustLevel); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop, RequestAccessForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING targetIdentity, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop, GetForWindow) + HRESULT ( STDMETHODCALLTYPE *GetForWindow )( + __RPC__in IProtectionPolicyManagerInterop * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **result); + + END_INTERFACE + } IProtectionPolicyManagerInteropVtbl; + + interface IProtectionPolicyManagerInterop + { + CONST_VTBL struct IProtectionPolicyManagerInteropVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IProtectionPolicyManagerInterop_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IProtectionPolicyManagerInterop_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IProtectionPolicyManagerInterop_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IProtectionPolicyManagerInterop_GetIids(This,iidCount,iids) \ + ( (This)->lpVtbl -> GetIids(This,iidCount,iids) ) + +#define IProtectionPolicyManagerInterop_GetRuntimeClassName(This,className) \ + ( (This)->lpVtbl -> GetRuntimeClassName(This,className) ) + +#define IProtectionPolicyManagerInterop_GetTrustLevel(This,trustLevel) \ + ( (This)->lpVtbl -> GetTrustLevel(This,trustLevel) ) + + +#define IProtectionPolicyManagerInterop_RequestAccessForWindowAsync(This,appWindow,sourceIdentity,targetIdentity,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessForWindowAsync(This,appWindow,sourceIdentity,targetIdentity,riid,asyncOperation) ) + +#define IProtectionPolicyManagerInterop_GetForWindow(This,appWindow,riid,result) \ + ( (This)->lpVtbl -> GetForWindow(This,appWindow,riid,result) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IProtectionPolicyManagerInterop_INTERFACE_DEFINED__ */ + + +#ifndef __IProtectionPolicyManagerInterop2_INTERFACE_DEFINED__ +#define __IProtectionPolicyManagerInterop2_INTERFACE_DEFINED__ + +/* interface IProtectionPolicyManagerInterop2 */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IProtectionPolicyManagerInterop2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("157cfbe4-a78d-4156-b384-61fdac41e686") + IProtectionPolicyManagerInterop2 : public IInspectable + { + public: + virtual HRESULT STDMETHODCALLTYPE RequestAccessForAppWithWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestAccessWithAuditingInfoForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING targetIdentity, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestAccessWithMessageForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING targetIdentity, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestAccessForAppWithAuditingInfoForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestAccessForAppWithMessageForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IProtectionPolicyManagerInterop2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IProtectionPolicyManagerInterop2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IProtectionPolicyManagerInterop2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IProtectionPolicyManagerInterop2 * This); + + DECLSPEC_XFGVIRT(IInspectable, GetIids) + HRESULT ( STDMETHODCALLTYPE *GetIids )( + __RPC__in IProtectionPolicyManagerInterop2 * This, + /* [out] */ __RPC__out ULONG *iidCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*iidCount) IID **iids); + + DECLSPEC_XFGVIRT(IInspectable, GetRuntimeClassName) + HRESULT ( STDMETHODCALLTYPE *GetRuntimeClassName )( + __RPC__in IProtectionPolicyManagerInterop2 * This, + /* [out] */ __RPC__deref_out_opt HSTRING *className); + + DECLSPEC_XFGVIRT(IInspectable, GetTrustLevel) + HRESULT ( STDMETHODCALLTYPE *GetTrustLevel )( + __RPC__in IProtectionPolicyManagerInterop2 * This, + /* [out] */ __RPC__out TrustLevel *trustLevel); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop2, RequestAccessForAppWithWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessForAppWithWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop2 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop2, RequestAccessWithAuditingInfoForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessWithAuditingInfoForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop2 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING targetIdentity, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop2, RequestAccessWithMessageForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessWithMessageForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop2 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING targetIdentity, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop2, RequestAccessForAppWithAuditingInfoForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessForAppWithAuditingInfoForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop2 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop2, RequestAccessForAppWithMessageForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessForAppWithMessageForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop2 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + END_INTERFACE + } IProtectionPolicyManagerInterop2Vtbl; + + interface IProtectionPolicyManagerInterop2 + { + CONST_VTBL struct IProtectionPolicyManagerInterop2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IProtectionPolicyManagerInterop2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IProtectionPolicyManagerInterop2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IProtectionPolicyManagerInterop2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IProtectionPolicyManagerInterop2_GetIids(This,iidCount,iids) \ + ( (This)->lpVtbl -> GetIids(This,iidCount,iids) ) + +#define IProtectionPolicyManagerInterop2_GetRuntimeClassName(This,className) \ + ( (This)->lpVtbl -> GetRuntimeClassName(This,className) ) + +#define IProtectionPolicyManagerInterop2_GetTrustLevel(This,trustLevel) \ + ( (This)->lpVtbl -> GetTrustLevel(This,trustLevel) ) + + +#define IProtectionPolicyManagerInterop2_RequestAccessForAppWithWindowAsync(This,appWindow,sourceIdentity,appPackageFamilyName,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessForAppWithWindowAsync(This,appWindow,sourceIdentity,appPackageFamilyName,riid,asyncOperation) ) + +#define IProtectionPolicyManagerInterop2_RequestAccessWithAuditingInfoForWindowAsync(This,appWindow,sourceIdentity,targetIdentity,auditInfoUnk,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessWithAuditingInfoForWindowAsync(This,appWindow,sourceIdentity,targetIdentity,auditInfoUnk,riid,asyncOperation) ) + +#define IProtectionPolicyManagerInterop2_RequestAccessWithMessageForWindowAsync(This,appWindow,sourceIdentity,targetIdentity,auditInfoUnk,messageFromApp,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessWithMessageForWindowAsync(This,appWindow,sourceIdentity,targetIdentity,auditInfoUnk,messageFromApp,riid,asyncOperation) ) + +#define IProtectionPolicyManagerInterop2_RequestAccessForAppWithAuditingInfoForWindowAsync(This,appWindow,sourceIdentity,appPackageFamilyName,auditInfoUnk,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessForAppWithAuditingInfoForWindowAsync(This,appWindow,sourceIdentity,appPackageFamilyName,auditInfoUnk,riid,asyncOperation) ) + +#define IProtectionPolicyManagerInterop2_RequestAccessForAppWithMessageForWindowAsync(This,appWindow,sourceIdentity,appPackageFamilyName,auditInfoUnk,messageFromApp,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessForAppWithMessageForWindowAsync(This,appWindow,sourceIdentity,appPackageFamilyName,auditInfoUnk,messageFromApp,riid,asyncOperation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IProtectionPolicyManagerInterop2_INTERFACE_DEFINED__ */ + + +#ifndef __IProtectionPolicyManagerInterop3_INTERFACE_DEFINED__ +#define __IProtectionPolicyManagerInterop3_INTERFACE_DEFINED__ + +/* interface IProtectionPolicyManagerInterop3 */ +/* [object][uuid] */ + + +EXTERN_C const IID IID_IProtectionPolicyManagerInterop3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("c1c03933-b398-4d93-b0fd-2972adf802c2") + IProtectionPolicyManagerInterop3 : public IInspectable + { + public: + virtual HRESULT STDMETHODCALLTYPE RequestAccessWithBehaviorForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING targetIdentity, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ UINT32 behavior, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestAccessForAppWithBehaviorForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ UINT32 behavior, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestAccessToFilesForAppForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in_opt IUnknown *sourceItemListUnk, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestAccessToFilesForAppWithMessageAndBehaviorForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in_opt IUnknown *sourceItemListUnk, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ UINT32 behavior, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestAccessToFilesForProcessForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in_opt IUnknown *sourceItemListUnk, + /* [in] */ UINT32 processId, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + virtual HRESULT STDMETHODCALLTYPE RequestAccessToFilesForProcessWithMessageAndBehaviorForWindowAsync( + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in_opt IUnknown *sourceItemListUnk, + /* [in] */ UINT32 processId, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ UINT32 behavior, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IProtectionPolicyManagerInterop3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IProtectionPolicyManagerInterop3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IProtectionPolicyManagerInterop3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IProtectionPolicyManagerInterop3 * This); + + DECLSPEC_XFGVIRT(IInspectable, GetIids) + HRESULT ( STDMETHODCALLTYPE *GetIids )( + __RPC__in IProtectionPolicyManagerInterop3 * This, + /* [out] */ __RPC__out ULONG *iidCount, + /* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*iidCount) IID **iids); + + DECLSPEC_XFGVIRT(IInspectable, GetRuntimeClassName) + HRESULT ( STDMETHODCALLTYPE *GetRuntimeClassName )( + __RPC__in IProtectionPolicyManagerInterop3 * This, + /* [out] */ __RPC__deref_out_opt HSTRING *className); + + DECLSPEC_XFGVIRT(IInspectable, GetTrustLevel) + HRESULT ( STDMETHODCALLTYPE *GetTrustLevel )( + __RPC__in IProtectionPolicyManagerInterop3 * This, + /* [out] */ __RPC__out TrustLevel *trustLevel); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop3, RequestAccessWithBehaviorForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessWithBehaviorForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop3 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING targetIdentity, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ UINT32 behavior, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop3, RequestAccessForAppWithBehaviorForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessForAppWithBehaviorForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop3 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in HSTRING sourceIdentity, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ UINT32 behavior, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop3, RequestAccessToFilesForAppForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessToFilesForAppForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop3 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in_opt IUnknown *sourceItemListUnk, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop3, RequestAccessToFilesForAppWithMessageAndBehaviorForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessToFilesForAppWithMessageAndBehaviorForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop3 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in_opt IUnknown *sourceItemListUnk, + /* [in] */ __RPC__in HSTRING appPackageFamilyName, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ UINT32 behavior, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop3, RequestAccessToFilesForProcessForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessToFilesForProcessForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop3 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in_opt IUnknown *sourceItemListUnk, + /* [in] */ UINT32 processId, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + DECLSPEC_XFGVIRT(IProtectionPolicyManagerInterop3, RequestAccessToFilesForProcessWithMessageAndBehaviorForWindowAsync) + HRESULT ( STDMETHODCALLTYPE *RequestAccessToFilesForProcessWithMessageAndBehaviorForWindowAsync )( + __RPC__in IProtectionPolicyManagerInterop3 * This, + /* [in] */ __RPC__in HWND appWindow, + /* [in] */ __RPC__in_opt IUnknown *sourceItemListUnk, + /* [in] */ UINT32 processId, + /* [in] */ __RPC__in_opt IUnknown *auditInfoUnk, + /* [in] */ __RPC__in HSTRING messageFromApp, + /* [in] */ UINT32 behavior, + /* [in] */ __RPC__in REFIID riid, + /* [iid_is][retval][out] */ __RPC__deref_out_opt void **asyncOperation); + + END_INTERFACE + } IProtectionPolicyManagerInterop3Vtbl; + + interface IProtectionPolicyManagerInterop3 + { + CONST_VTBL struct IProtectionPolicyManagerInterop3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IProtectionPolicyManagerInterop3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IProtectionPolicyManagerInterop3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IProtectionPolicyManagerInterop3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IProtectionPolicyManagerInterop3_GetIids(This,iidCount,iids) \ + ( (This)->lpVtbl -> GetIids(This,iidCount,iids) ) + +#define IProtectionPolicyManagerInterop3_GetRuntimeClassName(This,className) \ + ( (This)->lpVtbl -> GetRuntimeClassName(This,className) ) + +#define IProtectionPolicyManagerInterop3_GetTrustLevel(This,trustLevel) \ + ( (This)->lpVtbl -> GetTrustLevel(This,trustLevel) ) + + +#define IProtectionPolicyManagerInterop3_RequestAccessWithBehaviorForWindowAsync(This,appWindow,sourceIdentity,targetIdentity,auditInfoUnk,messageFromApp,behavior,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessWithBehaviorForWindowAsync(This,appWindow,sourceIdentity,targetIdentity,auditInfoUnk,messageFromApp,behavior,riid,asyncOperation) ) + +#define IProtectionPolicyManagerInterop3_RequestAccessForAppWithBehaviorForWindowAsync(This,appWindow,sourceIdentity,appPackageFamilyName,auditInfoUnk,messageFromApp,behavior,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessForAppWithBehaviorForWindowAsync(This,appWindow,sourceIdentity,appPackageFamilyName,auditInfoUnk,messageFromApp,behavior,riid,asyncOperation) ) + +#define IProtectionPolicyManagerInterop3_RequestAccessToFilesForAppForWindowAsync(This,appWindow,sourceItemListUnk,appPackageFamilyName,auditInfoUnk,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessToFilesForAppForWindowAsync(This,appWindow,sourceItemListUnk,appPackageFamilyName,auditInfoUnk,riid,asyncOperation) ) + +#define IProtectionPolicyManagerInterop3_RequestAccessToFilesForAppWithMessageAndBehaviorForWindowAsync(This,appWindow,sourceItemListUnk,appPackageFamilyName,auditInfoUnk,messageFromApp,behavior,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessToFilesForAppWithMessageAndBehaviorForWindowAsync(This,appWindow,sourceItemListUnk,appPackageFamilyName,auditInfoUnk,messageFromApp,behavior,riid,asyncOperation) ) + +#define IProtectionPolicyManagerInterop3_RequestAccessToFilesForProcessForWindowAsync(This,appWindow,sourceItemListUnk,processId,auditInfoUnk,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessToFilesForProcessForWindowAsync(This,appWindow,sourceItemListUnk,processId,auditInfoUnk,riid,asyncOperation) ) + +#define IProtectionPolicyManagerInterop3_RequestAccessToFilesForProcessWithMessageAndBehaviorForWindowAsync(This,appWindow,sourceItemListUnk,processId,auditInfoUnk,messageFromApp,behavior,riid,asyncOperation) \ + ( (This)->lpVtbl -> RequestAccessToFilesForProcessWithMessageAndBehaviorForWindowAsync(This,appWindow,sourceItemListUnk,processId,auditInfoUnk,messageFromApp,behavior,riid,asyncOperation) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IProtectionPolicyManagerInterop3_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_efswrtinterop_0000_0003 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#endif //(NTDDI_VERSION >= NTDDI_WINTHRESHOLD) + + +extern RPC_IF_HANDLE __MIDL_itf_efswrtinterop_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_efswrtinterop_0000_0003_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +unsigned long __RPC_USER HSTRING_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HSTRING * ); +unsigned char * __RPC_USER HSTRING_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HSTRING * ); +unsigned char * __RPC_USER HSTRING_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HSTRING * ); +void __RPC_USER HSTRING_UserFree( __RPC__in unsigned long *, __RPC__in HSTRING * ); + +unsigned long __RPC_USER HWND_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree( __RPC__in unsigned long *, __RPC__in HWND * ); + +unsigned long __RPC_USER HSTRING_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HSTRING * ); +unsigned char * __RPC_USER HSTRING_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HSTRING * ); +unsigned char * __RPC_USER HSTRING_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HSTRING * ); +void __RPC_USER HSTRING_UserFree64( __RPC__in unsigned long *, __RPC__in HSTRING * ); + +unsigned long __RPC_USER HWND_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * ); +unsigned char * __RPC_USER HWND_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * ); +void __RPC_USER HWND_UserFree64( __RPC__in unsigned long *, __RPC__in HWND * ); + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/efswrtinterop.idl b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/efswrtinterop.idl new file mode 100644 index 0000000000000000000000000000000000000000..61716aa5e12d1276b486a2e71f41e571877c08dd --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/efswrtinterop.idl @@ -0,0 +1,149 @@ +/* efswrtinterop.idl + * + * IDL defines for COM APIs to support interop with Windows.Security.EnterpriseData.ProtectionPolicyManager + * + * Copyright (c) Microsoft Corporation. All rights reserved + */ + +import "inspectable.idl"; +import "asyncinfo.idl"; + +cpp_quote("#include ") + +cpp_quote("#if (NTDDI_VERSION >= NTDDI_WINTHRESHOLD)") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + + [uuid(4652651d-c1fe-4ba1-9F0a-c0f56596f721)] + interface IProtectionPolicyManagerInterop : IInspectable + { + // Returns IAsyncOperation + HRESULT RequestAccessForWindowAsync( + [in] HWND appWindow, + [in] HSTRING sourceIdentity, + [in] HSTRING targetIdentity, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + + // Returns IProtectionPolicyManager + HRESULT GetForWindow( + [in] HWND appWindow, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** result); + } + + [uuid(157cfbe4-a78d-4156-b384-61fdac41e686)] + interface IProtectionPolicyManagerInterop2 : IInspectable + { + // Returns IAsyncOperation + HRESULT RequestAccessForAppWithWindowAsync( + [in] HWND appWindow, + [in] HSTRING sourceIdentity, + [in] HSTRING appPackageFamilyName, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + + HRESULT RequestAccessWithAuditingInfoForWindowAsync( + [in] HWND appWindow, + [in] HSTRING sourceIdentity, + [in] HSTRING targetIdentity, + [in] IUnknown* auditInfoUnk, // ProtectionPolicyAuditInfo + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + + HRESULT RequestAccessWithMessageForWindowAsync( + [in] HWND appWindow, + [in] HSTRING sourceIdentity, + [in] HSTRING targetIdentity, + [in] IUnknown* auditInfoUnk, // ProtectionPolicyAuditInfo + [in] HSTRING messageFromApp, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + + HRESULT RequestAccessForAppWithAuditingInfoForWindowAsync( + [in] HWND appWindow, + [in] HSTRING sourceIdentity, + [in] HSTRING appPackageFamilyName, + [in] IUnknown* auditInfoUnk, // ProtectionPolicyAuditInfo + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + + HRESULT RequestAccessForAppWithMessageForWindowAsync( + [in] HWND appWindow, + [in] HSTRING sourceIdentity, + [in] HSTRING appPackageFamilyName, + [in] IUnknown* auditInfoUnk, // ProtectionPolicyAuditInfo + [in] HSTRING messageFromApp, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + } + + [uuid(c1c03933-b398-4d93-b0fd-2972adf802c2)] + interface IProtectionPolicyManagerInterop3 : IInspectable + { + HRESULT RequestAccessWithBehaviorForWindowAsync( + [in] HWND appWindow, + [in] HSTRING sourceIdentity, + [in] HSTRING targetIdentity, + [in] IUnknown* auditInfoUnk, // ProtectionPolicyAuditInfo + [in] HSTRING messageFromApp, + [in] UINT32 behavior, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + + HRESULT RequestAccessForAppWithBehaviorForWindowAsync( + [in] HWND appWindow, + [in] HSTRING sourceIdentity, + [in] HSTRING appPackageFamilyName, + [in] IUnknown* auditInfoUnk, // ProtectionPolicyAuditInfo + [in] HSTRING messageFromApp, + [in] UINT32 behavior, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + + // + // StorageItem access variants below. + // + + HRESULT RequestAccessToFilesForAppForWindowAsync( + [in] HWND appWindow, + [in] IUnknown* sourceItemListUnk, // IIterable* sourceItemList + [in] HSTRING appPackageFamilyName, + [in] IUnknown* auditInfoUnk, // ProtectionPolicyAuditInfo + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + + HRESULT RequestAccessToFilesForAppWithMessageAndBehaviorForWindowAsync( + [in] HWND appWindow, + [in] IUnknown* sourceItemListUnk, // IIterable* sourceItemList + [in] HSTRING appPackageFamilyName, + [in] IUnknown* auditInfoUnk, // ProtectionPolicyAuditInfo + [in] HSTRING messageFromApp, + [in] UINT32 behavior, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + + HRESULT RequestAccessToFilesForProcessForWindowAsync( + [in] HWND appWindow, + [in] IUnknown* sourceItemListUnk, // IIterable* sourceItemList + [in] UINT32 processId, + [in] IUnknown* auditInfoUnk, // ProtectionPolicyAuditInfo + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + + HRESULT RequestAccessToFilesForProcessWithMessageAndBehaviorForWindowAsync( + [in] HWND appWindow, + [in] IUnknown* sourceItemListUnk, // IIterable* sourceItemList + [in] UINT32 processId, + [in] IUnknown* auditInfoUnk, // ProtectionPolicyAuditInfo + [in] HSTRING messageFromApp, + [in] UINT32 behavior, + [in] REFIID riid, + [out, retval, iid_is(riid)] void** asyncOperation); + } + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +cpp_quote("#endif //(NTDDI_VERSION >= NTDDI_WINTHRESHOLD)") \ No newline at end of file diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ehstorapi.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ehstorapi.h new file mode 100644 index 0000000000000000000000000000000000000000..07ebb9afb265e4091196d631908384d7c71e89ce --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ehstorapi.h @@ -0,0 +1,1079 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __EhStorAPI_h__ +#define __EhStorAPI_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IEnumEnhancedStorageACT_FWD_DEFINED__ +#define __IEnumEnhancedStorageACT_FWD_DEFINED__ +typedef interface IEnumEnhancedStorageACT IEnumEnhancedStorageACT; + +#endif /* __IEnumEnhancedStorageACT_FWD_DEFINED__ */ + + +#ifndef __IEnhancedStorageACT_FWD_DEFINED__ +#define __IEnhancedStorageACT_FWD_DEFINED__ +typedef interface IEnhancedStorageACT IEnhancedStorageACT; + +#endif /* __IEnhancedStorageACT_FWD_DEFINED__ */ + + +#ifndef __IEnhancedStorageACT2_FWD_DEFINED__ +#define __IEnhancedStorageACT2_FWD_DEFINED__ +typedef interface IEnhancedStorageACT2 IEnhancedStorageACT2; + +#endif /* __IEnhancedStorageACT2_FWD_DEFINED__ */ + + +#ifndef __IEnhancedStorageACT3_FWD_DEFINED__ +#define __IEnhancedStorageACT3_FWD_DEFINED__ +typedef interface IEnhancedStorageACT3 IEnhancedStorageACT3; + +#endif /* __IEnhancedStorageACT3_FWD_DEFINED__ */ + + +#ifndef __IEnhancedStorageSilo_FWD_DEFINED__ +#define __IEnhancedStorageSilo_FWD_DEFINED__ +typedef interface IEnhancedStorageSilo IEnhancedStorageSilo; + +#endif /* __IEnhancedStorageSilo_FWD_DEFINED__ */ + + +#ifndef __IEnhancedStorageSiloAction_FWD_DEFINED__ +#define __IEnhancedStorageSiloAction_FWD_DEFINED__ +typedef interface IEnhancedStorageSiloAction IEnhancedStorageSiloAction; + +#endif /* __IEnhancedStorageSiloAction_FWD_DEFINED__ */ + + +#ifndef __EnumEnhancedStorageACT_FWD_DEFINED__ +#define __EnumEnhancedStorageACT_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class EnumEnhancedStorageACT EnumEnhancedStorageACT; +#else +typedef struct EnumEnhancedStorageACT EnumEnhancedStorageACT; +#endif /* __cplusplus */ + +#endif /* __EnumEnhancedStorageACT_FWD_DEFINED__ */ + + +#ifndef __EnhancedStorageACT_FWD_DEFINED__ +#define __EnhancedStorageACT_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class EnhancedStorageACT EnhancedStorageACT; +#else +typedef struct EnhancedStorageACT EnhancedStorageACT; +#endif /* __cplusplus */ + +#endif /* __EnhancedStorageACT_FWD_DEFINED__ */ + + +#ifndef __EnhancedStorageSilo_FWD_DEFINED__ +#define __EnhancedStorageSilo_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class EnhancedStorageSilo EnhancedStorageSilo; +#else +typedef struct EnhancedStorageSilo EnhancedStorageSilo; +#endif /* __cplusplus */ + +#endif /* __EnhancedStorageSilo_FWD_DEFINED__ */ + + +#ifndef __EnhancedStorageSiloAction_FWD_DEFINED__ +#define __EnhancedStorageSiloAction_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class EnhancedStorageSiloAction EnhancedStorageSiloAction; +#else +typedef struct EnhancedStorageSiloAction EnhancedStorageSiloAction; +#endif /* __cplusplus */ + +#endif /* __EnhancedStorageSiloAction_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "objidl.h" +#include "ocidl.h" +#include "propidl.h" +#include "portabledeviceapi.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_EhStorAPI_0000_0000 */ +/* [local] */ + +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#if (_WIN32_WINNT >= 0x0501) // XP and later + + + + + + +typedef struct _ACT_AUTHORIZATION_STATE + { + ULONG ulState; + } ACT_AUTHORIZATION_STATE; + +typedef struct _SILO_INFO + { + ULONG ulSTID; + UCHAR SpecificationMajor; + UCHAR SpecificationMinor; + UCHAR ImplementationMajor; + UCHAR ImplementationMinor; + UCHAR type; + UCHAR capabilities; + } SILO_INFO; + +typedef /* [public][helpstring][v1_enum] */ +enum _ACT_AUTHORIZATION_STATE_VALUE + { + ACT_UNAUTHORIZED = 0, + ACT_AUTHORIZED = 0x1 + } ACT_AUTHORIZATION_STATE_VALUE; + +typedef /* [public][helpstring][v1_enum] */ enum _ACT_AUTHORIZATION_STATE_VALUE *PACT_AUTHORIZATION_STATE_VALUE; + + + +extern RPC_IF_HANDLE __MIDL_itf_EhStorAPI_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_EhStorAPI_0000_0000_v0_0_s_ifspec; + +#ifndef __IEnumEnhancedStorageACT_INTERFACE_DEFINED__ +#define __IEnumEnhancedStorageACT_INTERFACE_DEFINED__ + +/* interface IEnumEnhancedStorageACT */ +/* [unique][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IEnumEnhancedStorageACT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("09b224bd-1335-4631-a7ff-cfd3a92646d7") + IEnumEnhancedStorageACT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetACTs( + /* [size_is][size_is][out] */ IEnhancedStorageACT ***pppIEnhancedStorageACTs, + /* [out] */ ULONG *pcEnhancedStorageACTs) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMatchingACT( + /* [in] */ LPCWSTR szVolume, + /* [out] */ IEnhancedStorageACT **ppIEnhancedStorageACT) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnumEnhancedStorageACTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnumEnhancedStorageACT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnumEnhancedStorageACT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnumEnhancedStorageACT * This); + + DECLSPEC_XFGVIRT(IEnumEnhancedStorageACT, GetACTs) + HRESULT ( STDMETHODCALLTYPE *GetACTs )( + IEnumEnhancedStorageACT * This, + /* [size_is][size_is][out] */ IEnhancedStorageACT ***pppIEnhancedStorageACTs, + /* [out] */ ULONG *pcEnhancedStorageACTs); + + DECLSPEC_XFGVIRT(IEnumEnhancedStorageACT, GetMatchingACT) + HRESULT ( STDMETHODCALLTYPE *GetMatchingACT )( + IEnumEnhancedStorageACT * This, + /* [in] */ LPCWSTR szVolume, + /* [out] */ IEnhancedStorageACT **ppIEnhancedStorageACT); + + END_INTERFACE + } IEnumEnhancedStorageACTVtbl; + + interface IEnumEnhancedStorageACT + { + CONST_VTBL struct IEnumEnhancedStorageACTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnumEnhancedStorageACT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnumEnhancedStorageACT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnumEnhancedStorageACT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnumEnhancedStorageACT_GetACTs(This,pppIEnhancedStorageACTs,pcEnhancedStorageACTs) \ + ( (This)->lpVtbl -> GetACTs(This,pppIEnhancedStorageACTs,pcEnhancedStorageACTs) ) + +#define IEnumEnhancedStorageACT_GetMatchingACT(This,szVolume,ppIEnhancedStorageACT) \ + ( (This)->lpVtbl -> GetMatchingACT(This,szVolume,ppIEnhancedStorageACT) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnumEnhancedStorageACT_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_EhStorAPI_0000_0001 */ +/* [local] */ + +#define ACT_AUTHORIZE_ON_RESUME 0x00000001 +#define ACT_AUTHORIZE_ON_SESSION_UNLOCK 0x00000002 + + +extern RPC_IF_HANDLE __MIDL_itf_EhStorAPI_0000_0001_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_EhStorAPI_0000_0001_v0_0_s_ifspec; + +#ifndef __IEnhancedStorageACT_INTERFACE_DEFINED__ +#define __IEnhancedStorageACT_INTERFACE_DEFINED__ + +/* interface IEnhancedStorageACT */ +/* [unique][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IEnhancedStorageACT; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("6e7781f4-e0f2-4239-b976-a01abab52930") + IEnhancedStorageACT : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE Authorize( + /* [in] */ DWORD hwndParent, + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE Unauthorize( void) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetAuthorizationState( + /* [out] */ ACT_AUTHORIZATION_STATE *pState) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetMatchingVolume( + /* [out] */ LPWSTR *ppwszVolume) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetUniqueIdentity( + /* [out] */ LPWSTR *ppwszIdentity) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetSilos( + /* [size_is][size_is][size_is][out] */ IEnhancedStorageSilo ***pppIEnhancedStorageSilos, + /* [out] */ ULONG *pcEnhancedStorageSilos) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnhancedStorageACTVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnhancedStorageACT * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnhancedStorageACT * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnhancedStorageACT * This); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, Authorize) + HRESULT ( STDMETHODCALLTYPE *Authorize )( + IEnhancedStorageACT * This, + /* [in] */ DWORD hwndParent, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, Unauthorize) + HRESULT ( STDMETHODCALLTYPE *Unauthorize )( + IEnhancedStorageACT * This); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetAuthorizationState) + HRESULT ( STDMETHODCALLTYPE *GetAuthorizationState )( + IEnhancedStorageACT * This, + /* [out] */ ACT_AUTHORIZATION_STATE *pState); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetMatchingVolume) + HRESULT ( STDMETHODCALLTYPE *GetMatchingVolume )( + IEnhancedStorageACT * This, + /* [out] */ LPWSTR *ppwszVolume); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetUniqueIdentity) + HRESULT ( STDMETHODCALLTYPE *GetUniqueIdentity )( + IEnhancedStorageACT * This, + /* [out] */ LPWSTR *ppwszIdentity); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetSilos) + HRESULT ( STDMETHODCALLTYPE *GetSilos )( + IEnhancedStorageACT * This, + /* [size_is][size_is][size_is][out] */ IEnhancedStorageSilo ***pppIEnhancedStorageSilos, + /* [out] */ ULONG *pcEnhancedStorageSilos); + + END_INTERFACE + } IEnhancedStorageACTVtbl; + + interface IEnhancedStorageACT + { + CONST_VTBL struct IEnhancedStorageACTVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnhancedStorageACT_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnhancedStorageACT_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnhancedStorageACT_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnhancedStorageACT_Authorize(This,hwndParent,dwFlags) \ + ( (This)->lpVtbl -> Authorize(This,hwndParent,dwFlags) ) + +#define IEnhancedStorageACT_Unauthorize(This) \ + ( (This)->lpVtbl -> Unauthorize(This) ) + +#define IEnhancedStorageACT_GetAuthorizationState(This,pState) \ + ( (This)->lpVtbl -> GetAuthorizationState(This,pState) ) + +#define IEnhancedStorageACT_GetMatchingVolume(This,ppwszVolume) \ + ( (This)->lpVtbl -> GetMatchingVolume(This,ppwszVolume) ) + +#define IEnhancedStorageACT_GetUniqueIdentity(This,ppwszIdentity) \ + ( (This)->lpVtbl -> GetUniqueIdentity(This,ppwszIdentity) ) + +#define IEnhancedStorageACT_GetSilos(This,pppIEnhancedStorageSilos,pcEnhancedStorageSilos) \ + ( (This)->lpVtbl -> GetSilos(This,pppIEnhancedStorageSilos,pcEnhancedStorageSilos) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnhancedStorageACT_INTERFACE_DEFINED__ */ + + +#ifndef __IEnhancedStorageACT2_INTERFACE_DEFINED__ +#define __IEnhancedStorageACT2_INTERFACE_DEFINED__ + +/* interface IEnhancedStorageACT2 */ +/* [unique][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IEnhancedStorageACT2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("4DA57D2E-8EB3-41f6-A07E-98B52B88242B") + IEnhancedStorageACT2 : public IEnhancedStorageACT + { + public: + virtual HRESULT STDMETHODCALLTYPE GetDeviceName( + /* [out] */ LPWSTR *ppwszDeviceName) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsDeviceRemovable( + /* [out] */ BOOL *pIsDeviceRemovable) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnhancedStorageACT2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnhancedStorageACT2 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnhancedStorageACT2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnhancedStorageACT2 * This); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, Authorize) + HRESULT ( STDMETHODCALLTYPE *Authorize )( + IEnhancedStorageACT2 * This, + /* [in] */ DWORD hwndParent, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, Unauthorize) + HRESULT ( STDMETHODCALLTYPE *Unauthorize )( + IEnhancedStorageACT2 * This); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetAuthorizationState) + HRESULT ( STDMETHODCALLTYPE *GetAuthorizationState )( + IEnhancedStorageACT2 * This, + /* [out] */ ACT_AUTHORIZATION_STATE *pState); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetMatchingVolume) + HRESULT ( STDMETHODCALLTYPE *GetMatchingVolume )( + IEnhancedStorageACT2 * This, + /* [out] */ LPWSTR *ppwszVolume); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetUniqueIdentity) + HRESULT ( STDMETHODCALLTYPE *GetUniqueIdentity )( + IEnhancedStorageACT2 * This, + /* [out] */ LPWSTR *ppwszIdentity); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetSilos) + HRESULT ( STDMETHODCALLTYPE *GetSilos )( + IEnhancedStorageACT2 * This, + /* [size_is][size_is][size_is][out] */ IEnhancedStorageSilo ***pppIEnhancedStorageSilos, + /* [out] */ ULONG *pcEnhancedStorageSilos); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT2, GetDeviceName) + HRESULT ( STDMETHODCALLTYPE *GetDeviceName )( + IEnhancedStorageACT2 * This, + /* [out] */ LPWSTR *ppwszDeviceName); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT2, IsDeviceRemovable) + HRESULT ( STDMETHODCALLTYPE *IsDeviceRemovable )( + IEnhancedStorageACT2 * This, + /* [out] */ BOOL *pIsDeviceRemovable); + + END_INTERFACE + } IEnhancedStorageACT2Vtbl; + + interface IEnhancedStorageACT2 + { + CONST_VTBL struct IEnhancedStorageACT2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnhancedStorageACT2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnhancedStorageACT2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnhancedStorageACT2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnhancedStorageACT2_Authorize(This,hwndParent,dwFlags) \ + ( (This)->lpVtbl -> Authorize(This,hwndParent,dwFlags) ) + +#define IEnhancedStorageACT2_Unauthorize(This) \ + ( (This)->lpVtbl -> Unauthorize(This) ) + +#define IEnhancedStorageACT2_GetAuthorizationState(This,pState) \ + ( (This)->lpVtbl -> GetAuthorizationState(This,pState) ) + +#define IEnhancedStorageACT2_GetMatchingVolume(This,ppwszVolume) \ + ( (This)->lpVtbl -> GetMatchingVolume(This,ppwszVolume) ) + +#define IEnhancedStorageACT2_GetUniqueIdentity(This,ppwszIdentity) \ + ( (This)->lpVtbl -> GetUniqueIdentity(This,ppwszIdentity) ) + +#define IEnhancedStorageACT2_GetSilos(This,pppIEnhancedStorageSilos,pcEnhancedStorageSilos) \ + ( (This)->lpVtbl -> GetSilos(This,pppIEnhancedStorageSilos,pcEnhancedStorageSilos) ) + + +#define IEnhancedStorageACT2_GetDeviceName(This,ppwszDeviceName) \ + ( (This)->lpVtbl -> GetDeviceName(This,ppwszDeviceName) ) + +#define IEnhancedStorageACT2_IsDeviceRemovable(This,pIsDeviceRemovable) \ + ( (This)->lpVtbl -> IsDeviceRemovable(This,pIsDeviceRemovable) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnhancedStorageACT2_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_EhStorAPI_0000_0003 */ +/* [local] */ + +#define ACT_UNAUTHORIZE_ON_SUSPEND 0x00000001 +#define ACT_UNAUTHORIZE_ON_SESSION_LOCK 0x00000002 + + +extern RPC_IF_HANDLE __MIDL_itf_EhStorAPI_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_EhStorAPI_0000_0003_v0_0_s_ifspec; + +#ifndef __IEnhancedStorageACT3_INTERFACE_DEFINED__ +#define __IEnhancedStorageACT3_INTERFACE_DEFINED__ + +/* interface IEnhancedStorageACT3 */ +/* [unique][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IEnhancedStorageACT3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("022150A1-113D-11DF-BB61-001AA01BBC58") + IEnhancedStorageACT3 : public IEnhancedStorageACT2 + { + public: + virtual HRESULT STDMETHODCALLTYPE UnauthorizeEx( + /* [in] */ DWORD dwFlags) = 0; + + virtual HRESULT STDMETHODCALLTYPE IsQueueFrozen( + /* [out] */ BOOL *pIsQueueFrozen) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetShellExtSupport( + /* [out] */ BOOL *pShellExtSupport) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnhancedStorageACT3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnhancedStorageACT3 * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnhancedStorageACT3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnhancedStorageACT3 * This); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, Authorize) + HRESULT ( STDMETHODCALLTYPE *Authorize )( + IEnhancedStorageACT3 * This, + /* [in] */ DWORD hwndParent, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, Unauthorize) + HRESULT ( STDMETHODCALLTYPE *Unauthorize )( + IEnhancedStorageACT3 * This); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetAuthorizationState) + HRESULT ( STDMETHODCALLTYPE *GetAuthorizationState )( + IEnhancedStorageACT3 * This, + /* [out] */ ACT_AUTHORIZATION_STATE *pState); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetMatchingVolume) + HRESULT ( STDMETHODCALLTYPE *GetMatchingVolume )( + IEnhancedStorageACT3 * This, + /* [out] */ LPWSTR *ppwszVolume); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetUniqueIdentity) + HRESULT ( STDMETHODCALLTYPE *GetUniqueIdentity )( + IEnhancedStorageACT3 * This, + /* [out] */ LPWSTR *ppwszIdentity); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT, GetSilos) + HRESULT ( STDMETHODCALLTYPE *GetSilos )( + IEnhancedStorageACT3 * This, + /* [size_is][size_is][size_is][out] */ IEnhancedStorageSilo ***pppIEnhancedStorageSilos, + /* [out] */ ULONG *pcEnhancedStorageSilos); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT2, GetDeviceName) + HRESULT ( STDMETHODCALLTYPE *GetDeviceName )( + IEnhancedStorageACT3 * This, + /* [out] */ LPWSTR *ppwszDeviceName); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT2, IsDeviceRemovable) + HRESULT ( STDMETHODCALLTYPE *IsDeviceRemovable )( + IEnhancedStorageACT3 * This, + /* [out] */ BOOL *pIsDeviceRemovable); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT3, UnauthorizeEx) + HRESULT ( STDMETHODCALLTYPE *UnauthorizeEx )( + IEnhancedStorageACT3 * This, + /* [in] */ DWORD dwFlags); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT3, IsQueueFrozen) + HRESULT ( STDMETHODCALLTYPE *IsQueueFrozen )( + IEnhancedStorageACT3 * This, + /* [out] */ BOOL *pIsQueueFrozen); + + DECLSPEC_XFGVIRT(IEnhancedStorageACT3, GetShellExtSupport) + HRESULT ( STDMETHODCALLTYPE *GetShellExtSupport )( + IEnhancedStorageACT3 * This, + /* [out] */ BOOL *pShellExtSupport); + + END_INTERFACE + } IEnhancedStorageACT3Vtbl; + + interface IEnhancedStorageACT3 + { + CONST_VTBL struct IEnhancedStorageACT3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnhancedStorageACT3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnhancedStorageACT3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnhancedStorageACT3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnhancedStorageACT3_Authorize(This,hwndParent,dwFlags) \ + ( (This)->lpVtbl -> Authorize(This,hwndParent,dwFlags) ) + +#define IEnhancedStorageACT3_Unauthorize(This) \ + ( (This)->lpVtbl -> Unauthorize(This) ) + +#define IEnhancedStorageACT3_GetAuthorizationState(This,pState) \ + ( (This)->lpVtbl -> GetAuthorizationState(This,pState) ) + +#define IEnhancedStorageACT3_GetMatchingVolume(This,ppwszVolume) \ + ( (This)->lpVtbl -> GetMatchingVolume(This,ppwszVolume) ) + +#define IEnhancedStorageACT3_GetUniqueIdentity(This,ppwszIdentity) \ + ( (This)->lpVtbl -> GetUniqueIdentity(This,ppwszIdentity) ) + +#define IEnhancedStorageACT3_GetSilos(This,pppIEnhancedStorageSilos,pcEnhancedStorageSilos) \ + ( (This)->lpVtbl -> GetSilos(This,pppIEnhancedStorageSilos,pcEnhancedStorageSilos) ) + + +#define IEnhancedStorageACT3_GetDeviceName(This,ppwszDeviceName) \ + ( (This)->lpVtbl -> GetDeviceName(This,ppwszDeviceName) ) + +#define IEnhancedStorageACT3_IsDeviceRemovable(This,pIsDeviceRemovable) \ + ( (This)->lpVtbl -> IsDeviceRemovable(This,pIsDeviceRemovable) ) + + +#define IEnhancedStorageACT3_UnauthorizeEx(This,dwFlags) \ + ( (This)->lpVtbl -> UnauthorizeEx(This,dwFlags) ) + +#define IEnhancedStorageACT3_IsQueueFrozen(This,pIsQueueFrozen) \ + ( (This)->lpVtbl -> IsQueueFrozen(This,pIsQueueFrozen) ) + +#define IEnhancedStorageACT3_GetShellExtSupport(This,pShellExtSupport) \ + ( (This)->lpVtbl -> GetShellExtSupport(This,pShellExtSupport) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnhancedStorageACT3_INTERFACE_DEFINED__ */ + + +#ifndef __IEnhancedStorageSilo_INTERFACE_DEFINED__ +#define __IEnhancedStorageSilo_INTERFACE_DEFINED__ + +/* interface IEnhancedStorageSilo */ +/* [unique][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IEnhancedStorageSilo; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5aef78c6-2242-4703-bf49-44b29357a359") + IEnhancedStorageSilo : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetInfo( + /* [out] */ SILO_INFO *pSiloInfo) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetActions( + /* [size_is][size_is][out] */ IEnhancedStorageSiloAction ***pppIEnhancedStorageSiloActions, + /* [out] */ ULONG *pcEnhancedStorageSiloActions) = 0; + + virtual HRESULT STDMETHODCALLTYPE SendCommand( + /* [in] */ UCHAR Command, + /* [size_is][in] */ BYTE *pbCommandBuffer, + /* [in] */ ULONG cbCommandBuffer, + /* [size_is][out] */ BYTE *pbResponseBuffer, + /* [out][in] */ ULONG *pcbResponseBuffer) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetPortableDevice( + /* [out] */ IPortableDevice **ppIPortableDevice) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDevicePath( + /* [out] */ LPWSTR *ppwszSiloDevicePath) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnhancedStorageSiloVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnhancedStorageSilo * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnhancedStorageSilo * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnhancedStorageSilo * This); + + DECLSPEC_XFGVIRT(IEnhancedStorageSilo, GetInfo) + HRESULT ( STDMETHODCALLTYPE *GetInfo )( + IEnhancedStorageSilo * This, + /* [out] */ SILO_INFO *pSiloInfo); + + DECLSPEC_XFGVIRT(IEnhancedStorageSilo, GetActions) + HRESULT ( STDMETHODCALLTYPE *GetActions )( + IEnhancedStorageSilo * This, + /* [size_is][size_is][out] */ IEnhancedStorageSiloAction ***pppIEnhancedStorageSiloActions, + /* [out] */ ULONG *pcEnhancedStorageSiloActions); + + DECLSPEC_XFGVIRT(IEnhancedStorageSilo, SendCommand) + HRESULT ( STDMETHODCALLTYPE *SendCommand )( + IEnhancedStorageSilo * This, + /* [in] */ UCHAR Command, + /* [size_is][in] */ BYTE *pbCommandBuffer, + /* [in] */ ULONG cbCommandBuffer, + /* [size_is][out] */ BYTE *pbResponseBuffer, + /* [out][in] */ ULONG *pcbResponseBuffer); + + DECLSPEC_XFGVIRT(IEnhancedStorageSilo, GetPortableDevice) + HRESULT ( STDMETHODCALLTYPE *GetPortableDevice )( + IEnhancedStorageSilo * This, + /* [out] */ IPortableDevice **ppIPortableDevice); + + DECLSPEC_XFGVIRT(IEnhancedStorageSilo, GetDevicePath) + HRESULT ( STDMETHODCALLTYPE *GetDevicePath )( + IEnhancedStorageSilo * This, + /* [out] */ LPWSTR *ppwszSiloDevicePath); + + END_INTERFACE + } IEnhancedStorageSiloVtbl; + + interface IEnhancedStorageSilo + { + CONST_VTBL struct IEnhancedStorageSiloVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnhancedStorageSilo_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnhancedStorageSilo_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnhancedStorageSilo_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnhancedStorageSilo_GetInfo(This,pSiloInfo) \ + ( (This)->lpVtbl -> GetInfo(This,pSiloInfo) ) + +#define IEnhancedStorageSilo_GetActions(This,pppIEnhancedStorageSiloActions,pcEnhancedStorageSiloActions) \ + ( (This)->lpVtbl -> GetActions(This,pppIEnhancedStorageSiloActions,pcEnhancedStorageSiloActions) ) + +#define IEnhancedStorageSilo_SendCommand(This,Command,pbCommandBuffer,cbCommandBuffer,pbResponseBuffer,pcbResponseBuffer) \ + ( (This)->lpVtbl -> SendCommand(This,Command,pbCommandBuffer,cbCommandBuffer,pbResponseBuffer,pcbResponseBuffer) ) + +#define IEnhancedStorageSilo_GetPortableDevice(This,ppIPortableDevice) \ + ( (This)->lpVtbl -> GetPortableDevice(This,ppIPortableDevice) ) + +#define IEnhancedStorageSilo_GetDevicePath(This,ppwszSiloDevicePath) \ + ( (This)->lpVtbl -> GetDevicePath(This,ppwszSiloDevicePath) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnhancedStorageSilo_INTERFACE_DEFINED__ */ + + +#ifndef __IEnhancedStorageSiloAction_INTERFACE_DEFINED__ +#define __IEnhancedStorageSiloAction_INTERFACE_DEFINED__ + +/* interface IEnhancedStorageSiloAction */ +/* [unique][helpstring][local][uuid][object] */ + + +EXTERN_C const IID IID_IEnhancedStorageSiloAction; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("b6f7f311-206f-4ff8-9c4b-27efee77a86f") + IEnhancedStorageSiloAction : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetName( + /* [out] */ LPWSTR *ppwszActionName) = 0; + + virtual HRESULT STDMETHODCALLTYPE GetDescription( + /* [out] */ LPWSTR *ppwszActionDescription) = 0; + + virtual HRESULT STDMETHODCALLTYPE Invoke( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IEnhancedStorageSiloActionVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IEnhancedStorageSiloAction * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IEnhancedStorageSiloAction * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IEnhancedStorageSiloAction * This); + + DECLSPEC_XFGVIRT(IEnhancedStorageSiloAction, GetName) + HRESULT ( STDMETHODCALLTYPE *GetName )( + IEnhancedStorageSiloAction * This, + /* [out] */ LPWSTR *ppwszActionName); + + DECLSPEC_XFGVIRT(IEnhancedStorageSiloAction, GetDescription) + HRESULT ( STDMETHODCALLTYPE *GetDescription )( + IEnhancedStorageSiloAction * This, + /* [out] */ LPWSTR *ppwszActionDescription); + + DECLSPEC_XFGVIRT(IEnhancedStorageSiloAction, Invoke) + HRESULT ( STDMETHODCALLTYPE *Invoke )( + IEnhancedStorageSiloAction * This); + + END_INTERFACE + } IEnhancedStorageSiloActionVtbl; + + interface IEnhancedStorageSiloAction + { + CONST_VTBL struct IEnhancedStorageSiloActionVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IEnhancedStorageSiloAction_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IEnhancedStorageSiloAction_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IEnhancedStorageSiloAction_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IEnhancedStorageSiloAction_GetName(This,ppwszActionName) \ + ( (This)->lpVtbl -> GetName(This,ppwszActionName) ) + +#define IEnhancedStorageSiloAction_GetDescription(This,ppwszActionDescription) \ + ( (This)->lpVtbl -> GetDescription(This,ppwszActionDescription) ) + +#define IEnhancedStorageSiloAction_Invoke(This) \ + ( (This)->lpVtbl -> Invoke(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IEnhancedStorageSiloAction_INTERFACE_DEFINED__ */ + + + +#ifndef __EnhancedStorageAPILib_LIBRARY_DEFINED__ +#define __EnhancedStorageAPILib_LIBRARY_DEFINED__ + +/* library EnhancedStorageAPILib */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_EnhancedStorageAPILib; + +EXTERN_C const CLSID CLSID_EnumEnhancedStorageACT; + +#ifdef __cplusplus + +class DECLSPEC_UUID("fe841493-835c-4fa3-b6cc-b4b2d4719848") +EnumEnhancedStorageACT; +#endif + +EXTERN_C const CLSID CLSID_EnhancedStorageACT; + +#ifdef __cplusplus + +class DECLSPEC_UUID("af076a15-2ece-4ad4-bb21-29f040e176d8") +EnhancedStorageACT; +#endif + +EXTERN_C const CLSID CLSID_EnhancedStorageSilo; + +#ifdef __cplusplus + +class DECLSPEC_UUID("cb25220c-76c7-4fee-842b-f3383cd022bc") +EnhancedStorageSilo; +#endif + +EXTERN_C const CLSID CLSID_EnhancedStorageSiloAction; + +#ifdef __cplusplus + +class DECLSPEC_UUID("886D29DD-B506-466B-9FBF-B44FF383FB3F") +EnhancedStorageSiloAction; +#endif +#endif /* __EnhancedStorageAPILib_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_EhStorAPI_0000_0007 */ +/* [local] */ + +#endif +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_EhStorAPI_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_EhStorAPI_0000_0007_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ehstorapi.idl b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ehstorapi.idl new file mode 100644 index 0000000000000000000000000000000000000000..12f1c3717e02aaed378073992ef099f2a1bb761b --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ehstorapi.idl @@ -0,0 +1,269 @@ +//----------------------------------------------------------------------------- +// +// This file contains interface description for EnhancedStorage API which +// provides access to IEEE 1667 compatible devices for client applications. +// +// (C) COPYRIGHT MICROSOFT CORPORATION +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#if (_WIN32_WINNT >= 0x0501) // XP and later") + +import "unknwn.idl"; +import "objidl.idl"; +import "ocidl.idl"; +import "wtypes.idl"; +import "propidl.idl"; +import "portabledeviceapi.idl"; + +interface IEnumEnhancedStorageACT; +interface IEnhancedStorageACT; +interface IEnhancedStorageACT2; +interface IEnhancedStorageACT3; +interface IEnhancedStorageSilo; +interface IEnhancedStorageSiloAction; + +typedef struct _ACT_AUTHORIZATION_STATE { + ULONG ulState; +} ACT_AUTHORIZATION_STATE; + +typedef struct _SILO_INFO { + ULONG ulSTID; + UCHAR SpecificationMajor; + UCHAR SpecificationMinor; + UCHAR ImplementationMajor; + UCHAR ImplementationMinor; + UCHAR type; + UCHAR capabilities; +} SILO_INFO; + +[ + v1_enum, + //uuid(022150a0-113d-11df-bb61-001aa01bbc58), + helpstring( "Authorization states of Enhanced Storage ACTs" ), + public +] +typedef enum _ACT_AUTHORIZATION_STATE_VALUE +{ + ACT_UNAUTHORIZED = 0x0000, + ACT_AUTHORIZED = 0x0001 +} ACT_AUTHORIZATION_STATE_VALUE, *PACT_AUTHORIZATION_STATE_VALUE; + +//--------------------------------------------------------- +// This interface is used to enumerate available +// addressable command targets (ACTs). +//--------------------------------------------------------- +[ + object, + uuid(09b224bd-1335-4631-a7ff-cfd3a92646d7), + local, + helpstring("IEnumEnhancedStorageACT Interface"), + pointer_default(unique) +] +interface IEnumEnhancedStorageACT : IUnknown +{ + HRESULT GetACTs( + [out, size_is( , *pcEnhancedStorageACTs)] IEnhancedStorageACT*** pppIEnhancedStorageACTs, + [out] ULONG* pcEnhancedStorageACTs); + + HRESULT GetMatchingACT( + [in] LPCWSTR szVolume, + [out] IEnhancedStorageACT** ppIEnhancedStorageACT); +}; + +//--------------------------------------------------------- +// This interface is used to access an ACT. +//--------------------------------------------------------- +cpp_quote("#define ACT_AUTHORIZE_ON_RESUME 0x00000001") +cpp_quote("#define ACT_AUTHORIZE_ON_SESSION_UNLOCK 0x00000002") + +[ + object, + uuid(6e7781f4-e0f2-4239-b976-a01abab52930), + local, + helpstring("IEnhancedStorageACT Interface"), + pointer_default(unique) +] +interface IEnhancedStorageACT : IUnknown +{ + HRESULT Authorize( + [in] DWORD hwndParent, + [in] DWORD dwFlags); + + HRESULT Unauthorize(); + + HRESULT GetAuthorizationState( + [out] ACT_AUTHORIZATION_STATE* pState); + + HRESULT GetMatchingVolume( + [out] LPWSTR* ppwszVolume); + + HRESULT GetUniqueIdentity( + [out] LPWSTR* ppwszIdentity); + + HRESULT GetSilos( + [out, size_is( , *pcEnhancedStorageSilos, )] IEnhancedStorageSilo*** pppIEnhancedStorageSilos, + [out] ULONG* pcEnhancedStorageSilos); + +}; + +//--------------------------------------------------------- +// This is the extension of IEnhancedStorageACT interface. +//--------------------------------------------------------- +[ + object, + uuid(4DA57D2E-8EB3-41f6-A07E-98B52B88242B), + local, + helpstring("IEnhancedStorageACT2 Interface"), + pointer_default(unique) +] +interface IEnhancedStorageACT2 : IEnhancedStorageACT +{ + HRESULT GetDeviceName( + [out] LPWSTR* ppwszDeviceName); + + HRESULT IsDeviceRemovable( + [out] BOOL* pIsDeviceRemovable); +}; + +//--------------------------------------------------------- +// This is the extension of IEnhancedStorageACT2 interface. +//--------------------------------------------------------- +cpp_quote("#define ACT_UNAUTHORIZE_ON_SUSPEND 0x00000001") +cpp_quote("#define ACT_UNAUTHORIZE_ON_SESSION_LOCK 0x00000002") + +[ + object, + uuid(022150A1-113D-11DF-BB61-001AA01BBC58), + local, + helpstring("IEnhancedStorageACT3 Interface"), + pointer_default(unique) +] +interface IEnhancedStorageACT3 : IEnhancedStorageACT2 +{ + HRESULT UnauthorizeEx( + [in] DWORD dwFlags); + + HRESULT IsQueueFrozen( + [out] BOOL* pIsQueueFrozen); + + HRESULT GetShellExtSupport( + [out] BOOL* pShellExtSupport); +}; + +//--------------------------------------------------------- +// This interface is used to access a silo. +//--------------------------------------------------------- +[ + object, + uuid(5aef78c6-2242-4703-bf49-44b29357a359), + local, + helpstring("IEnhancedStorageSilo Interface"), + pointer_default(unique) +] +interface IEnhancedStorageSilo : IUnknown +{ + HRESULT GetInfo( + [out] SILO_INFO* pSiloInfo); + + HRESULT GetActions( + [out, size_is( , *pcEnhancedStorageSiloActions)] IEnhancedStorageSiloAction*** pppIEnhancedStorageSiloActions, + [out] ULONG* pcEnhancedStorageSiloActions); + + HRESULT SendCommand( + [in] UCHAR Command, + [in, size_is(cbCommandBuffer)] BYTE* pbCommandBuffer, + [in] ULONG cbCommandBuffer, + [out, size_is(*pcbResponseBuffer)] BYTE* pbResponseBuffer, + [in, out] ULONG* pcbResponseBuffer); + + HRESULT GetPortableDevice( + [out] IPortableDevice** ppIPortableDevice); + + HRESULT GetDevicePath( + [out] LPWSTR* ppwszSiloDevicePath); +}; + +//--------------------------------------------------------- +// This interface is used to access a silo action. +//--------------------------------------------------------- +[ + object, + uuid(b6f7f311-206f-4ff8-9c4b-27efee77a86f), + local, + helpstring("IEnhancedStorageSiloAction Interface"), + pointer_default(unique) +] +interface IEnhancedStorageSiloAction : IUnknown +{ + HRESULT GetName( + [out] LPWSTR* ppwszActionName); + + HRESULT GetDescription( + [out] LPWSTR* ppwszActionDescription); + + HRESULT Invoke(); +}; + +//--------------------------------------------------------- +// Library definition. +//--------------------------------------------------------- +[ + uuid(ff9d683b-b90a-49b4-9649-f93756bad71f), + version(1.0), + helpstring("EnhancedStorageAPI 1.0 Type Library") +] +library EnhancedStorageAPILib +{ + importlib("stdole32.tlb"); + importlib("stdole2.tlb"); + + [ + uuid(fe841493-835c-4fa3-b6cc-b4b2d4719848), + helpstring("EnumEnhancedStorageACT Class") + ] + coclass EnumEnhancedStorageACT + { + [default] interface IEnumEnhancedStorageACT; + }; + + + [ + uuid(af076a15-2ece-4ad4-bb21-29f040e176d8), + helpstring("EnhancedStorageACT Class") + ] + coclass EnhancedStorageACT + { + [default] interface IEnhancedStorageACT; + }; + + + [ + uuid(cb25220c-76c7-4fee-842b-f3383cd022bc), + helpstring("EnhancedStorageSilo Class") + ] + coclass EnhancedStorageSilo + { + [default] interface IEnhancedStorageSilo; + }; + + + [ + uuid(886D29DD-B506-466B-9FBF-B44FF383FB3F), + helpstring("EnhancedStorageSiloAction Class") + ] + coclass EnhancedStorageSiloAction + { + [default] interface IEnhancedStorageSiloAction; + }; +}; +cpp_quote("#endif") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ehstorextensions.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ehstorextensions.h new file mode 100644 index 0000000000000000000000000000000000000000..5a80bae6f0af21e745afb0178fe1a61ecc0afb72 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ehstorextensions.h @@ -0,0 +1,1062 @@ +/*++ + +Copyright (c) 2008 Microsoft Corporation + +Module Name: + + EhStorExtensions.h + +Abstract: + + This module defines the Enhanced Storage WPD interfaces for silo drivers. + +Environment: + + User mode only. + +--*/ + +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include +#include + +// --------------------------------------------------------------------------- +// +// This section defines the device interfaces for Enhanced Storage devices. +// +// --------------------------------------------------------------------------- + +// +// {3897F6A4-FD35-4bc8-A0B7-5DBBA36ADAFA} +// + +DEFINE_GUID( + GUID_DEVINTERFACE_ENHANCED_STORAGE_SILO, + 0x3897f6a4, 0xfd35, 0x4bc8, 0xa0, 0xb7, 0x5d, 0xbb, 0xa3, 0x6a, 0xda, 0xfa); + + +// --------------------------------------------------------------------------- +// +// This section defines all Commands, Parameters and Options essociated with: +// WPD_CATEGORY_ENHANCED_STORAGE +// +// This category is for commands and parameters for storage functional objects. +// +// --------------------------------------------------------------------------- + +DEFINE_GUID( + WPD_CATEGORY_ENHANCED_STORAGE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c); + + +// --------------------------------------------------------------------------- +// +// Authentication specific commands +// +// --------------------------------------------------------------------------- + +// +// ENHANCED_STORAGE_COMMAND_SILO_IS_AUTHENTICATION_SILO +// This command will return whether or not the silo is an authentication silo. +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// None. +// Results: +// WPD_PROPERTY_COMMON_HRESULT - The last status code for Authentication or UnAuthentication +// ENHANCED_STORAGE_PROPERTY_IS_AUTHENTICATION_SILO [VT_BOOLEAN] - TRUE if an Auth-C silo, FALSE otherwise +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_SILO_IS_AUTHENTICATION_SILO, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 6); + + +// +// ENHANCED_STORAGE_COMMAND_SILO_GET_AUTHENTICATION_STATE +// This command will return the authentication state for the silo. +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// None. +// Results: +// WPD_PROPERTY_COMMON_HRESULT - The last status code for Authentication or UnAuthentication +// ENHANCED_STORAGE_PROPERTY_AUTHENTICATION_STATE [VT_UI4] +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_SILO_GET_AUTHENTICATION_STATE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 7); + +// +// ENHANCED_STORAGE_COMMAND_SILO_ENUMERATE_SILOS +// This command will enumerate the silo information for the specified silo type +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// [ Required ] ENHANCED_STORAGE_PROPERTY_QUERY_SILO_TYPE +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_SILO_ENUMERATE_SILOS, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 11); + +// --------------------------------------------------------------------------- +// +// Certificate specific commands +// +// --------------------------------------------------------------------------- + + +// +// ENHANCED_STORAGE_COMMAND_CERT_HOST_CERTIFICATE_AUTHENTICATION +// This command will attempt to do a host authentication based on an HCh +// (or XCh) from the device. If an index or certificate is specified, it +// will use that certificate. +// The default behavior is to authenticate any of the HCh certs present on +// the device if possible (or XCh.) +// Access: +// (FILE_READ_ACCESS) +// Parameters: +// [ Optional ] ENHANCED_STORAGE_PROPERTY_CERTIFICATE_INDEX [VT_UINT] +// [ Optional ] ENHANCED_STORAGE_PROPERTY_CERTIFICATE [VT_VECTOR | VT_UI1] +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_HOST_CERTIFICATE_AUTHENTICATION, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 101); + +// +// DEVICE_AUTHENTICATION +// ENHANCED_STORAGE_COMMAND_CERT_DEVICE_CERTIFICATE_AUTHENTICATION +// This command will attempt to do a device authentication operation. If +// an index or certificate is specified, it will use that certificate. It +// must be ASCm or ASCh. +// The default behavior is to authenticate ASCm. +// Access: +// (FILE_READ_ACCESS) +// Parameters: +// [ Optional ] ENHANCED_STORAGE_PROPERTY_CERTIFICATE_INDEX [VT_UINT] +// [ Optional ] ENHANCED_STORAGE_PROPERTY_CERTIFICATE [VT_VECTOR | VT_UI1] +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_DEVICE_CERTIFICATE_AUTHENTICATION, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 102); + +// +// ENHANCED_STORAGE_COMMAND_CERT_ADMIN_CERTIFICATE_AUTHENTICATION +// This command will attempt to do an admin authentication based on the PCp +// (or XCp) from the device. +// This is an admin command - it requires both read and write access. +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// None +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_ADMIN_CERTIFICATE_AUTHENTICATION, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 103); + +// +// ENHANCED_STORAGE_COMMAND_CERT_INITIALIZE_TO_MANUFACTURER_STATE +// This command will attempt to initialized to the manufacturer state. +// Requires PCp authentication. +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// None. +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_INITIALIZE_TO_MANUFACTURER_STATE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 104); + +// +// ENHANCED_STORAGE_COMMAND_CERT_GET_CERTIFICATE_COUNT +// This command will get the number of certificate slots on the device. +// Access: +// (FILE_READ_ACCESS) +// Parameters: +// none. +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// ENHANCED_STORAGE_PROPERTY_MAX_CERTIFICATE_COUNT [VT_UINT] +// ENHANCED_STORAGE_PROPERTY_STORED_CERTIFICATE_COUNT [VT_UINT] +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_GET_CERTIFICATE_COUNT, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 105); + +// +// ENHANCED_STORAGE_COMMAND_CERT_GET_CERTIFICATE +// This command will return the certificate at the certificate index location. +// Index 0 is a special location that returns the ASCm chain in PKCS7 format. +// Access: +// (FILE_READ_ACCESS) +// Parameters: +// [ Required ] ENHANCED_STORAGE_PROPERTY_CERTIFICATE_INDEX [VT_UINT] +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_TYPE [VT_UINT] +// ENHANCED_STORAGE_PROPERTY_VALIDATION_POLICY [VT_UINT] +// ENHANCED_STORAGE_PROPERTY_SIGNER_CERTIFICATE_INDEX [VT_UINT] +// ENHANCED_STORAGE_PROPERTY_NEXT_CERTIFICATE_INDEX [VT_UINT] +// ENHANCED_STORAGE_PROPERTY_NEXT_CERTIFICATE_OF_TYPE_INDEX [VT_UINT] +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_LENGTH [VT_UINT] +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE [VT_VECTOR | VT_UI1] + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_GET_CERTIFICATE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 106); + +// +// ENHANCED_STORAGE_COMMAND_CERT_SET_CERTIFICATE +// This command will set a certificate to the certificate index location. +// Requires admin authentication. +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// [ Required ] ENHANCED_STORAGE_PROPERTY_CERTIFICATE_INDEX [VT_UINT] +// [ Required ] ENHANCED_STORAGE_PROPERTY_CERTIFICATE_TYPE [VT_UINT] +// [ Required ] ENHANCED_STORAGE_PROPERTY_VALIDATION_POLICY [VT_UINT] +// [ Required ] ENHANCED_STORAGE_PROPERTY_SIGNER_CERTIFICATE_INDEX [VT_UINT] +// [ Required ] ENHANCED_STORAGE_PROPERTY_CERTIFICATE [VT_VECTOR | VT_UI1] +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_SET_CERTIFICATE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 107); + +// +// ENHANCED_STORAGE_COMMAND_CERT_CREATE_CERTIFICATE_REQUEST +// This command will esk the device to create a certificate request. +// This will then be signed by the application's chosen CA. +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// None. +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_REQUEST [VT_VECTOR | VT_UI1] +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_CREATE_CERTIFICATE_REQUEST, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 108); + +// +// ENHANCED_STORAGE_COMMAND_CERT_UNAUTHENTICATION +// This command will issue a command to set the cert silo to the +// initialized state. +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// [ Optional ] ENHANCED_STORAGE_PROPERTY_TEMPORARY_UNAUTHENTICATION +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_UNAUTHENTICATION, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 110); + +// +// ENHANCED_STORAGE_COMMAND_CERT_GET_SILO_CAPABILITY +// This command will issue a command to get a silo capability from the +// silo. Data returned is in the format returned from the silo. +// Access: +// (FILE_READ_ACCESS) +// Parameters: +// [ Required ] ENHANCED_STORAGE_PROPERTY_CERTIFICATE_CAPABILITY_TYPE [VT_UINT] +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_SILO_CAPABILITY [VT_VECTOR | VT_UI1] +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_GET_SILO_CAPABILITY, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 111); + +// +// ENHANCED_STORAGE_COMMAND_CERT_GET_SILO_CAPABILITIES +// This command will return the silo capabilities as a collection of +// capabilities. +// Access: +// (FILE_READ_ACCESS) +// Parameters: +// None. +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_SILO_CAPABILITIES [VT_UNKNOWN] +// - ENHANCED_STORAGE_CAPABILITY_HASH_ALGS [VT_LPWSTR - semi-colon delimited] +// - ENHANCED_STORAGE_CAPABILITY_ASYMMETRIC_KEY_CRYPTOGRAPHY [VT_LPWSTR - semi-colon delimited] +// - ENHANCED_STORAGE_CAPABILITY_SIGNING_ALGS [VT_LPWSTR - semi-colon delimited] +// - ENHANCED_STORAGE_CAPABILITY_RENDER_USER_DATA_UNUSABLE [ VT_BOOL ] +// - ENHANCED_STORAGE_CAPABILITY_CERTIFICATE_EXTENSION_PARSING [ VT_BOOL ] +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_GET_SILO_CAPABILITIES, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 112); + +// +// ENHANCED_STORAGE_COMMAND_CERT_GET_ACT_FRIENDLY_NAME +// This command will return the friendly name of the ACT containing the silo. +// Access: +// (FILE_READ_ACCESS) +// Parameters: +// None. +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// [optional] ENHANCED_STORAGE_PROPERTY_CERTIFICATE_ACT_FRIENDLY_NAME [VT_LPWSTR] +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_GET_ACT_FRIENDLY_NAME, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 113); + +// +// ENHANCED_STORAGE_COMMAND_CERT_GET_SILO_GUID +// This command will return the silo's GUID. +// Access: +// (FILE_READ_ACCESS) +// Parameters: +// None. +// Results: +// WPD_PROPERTY_COMMON_HRESULT +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_SILO_GUID [VT_LPWSTR] +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_CERT_GET_SILO_GUID, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 114); + + +// --------------------------------------------------------------------------- +// +// Password specific commands +// +// --------------------------------------------------------------------------- + + +// +// ENHANCED_STORAGE_COMMAND_PASSWORD_AUTHORIZE_ACT_ACCESS +// This command attempts to authenticate to the silo for ACT's data access +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// [ Required ] ENHANCED_STORAGE_PROPERTY_PASSWORD +// [ Required ] ENHANCED_STORAGE_PROPERTY_PASSWORD_INDICATOR +// Results: +// WPD_PROPERTY_COMMON_HRESULT - status code for the operation +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_PASSWORD_AUTHORIZE_ACT_ACCESS, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 203); + +// +// ENHANCED_STORAGE_COMMAND_PASSWORD_UNAUTHORIZE_ACT_ACCESS +// This command attempts to un-authenticate to the silo for ACT's data +// access. +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// [ Optional ] ENHANCED_STORAGE_PROPERTY_PASSWORD +// [ Optional ] ENHANCED_STORAGE_PROPERTY_PASSWORD_INDICATOR +// [ Optional ] ENHANCED_STORAGE_PROPERTY_TEMPORARY_UNAUTHENTICATION +// Results: +// WPD_PROPERTY_COMMON_HRESULT - status code for the operation +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_PASSWORD_UNAUTHORIZE_ACT_ACCESS, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 204); + +// +// ENHANCED_STORAGE_COMMAND_PASSWORD_QUERY_INFORMATION +// This command queries the current password silo information +// Access: +// (FILE_READ_ACCESS) +// Parameters: +// none +// Results: +// ENHANCED_STORAGE_PROPERTY_AUTHENTICATION_STATE +// ENHANCED_STORAGE_PROPERTY_PASSWORD_SILO_INFO +// ENHANCED_STORAGE_PROPERTY_ADMIN_HINT +// ENHANCED_STORAGE_PROPERTY_USER_HINT +// ENHANCED_STORAGE_PROPERTY_USER_NAME +// WPD_PROPERTY_COMMON_HRESULT - status code for the operation +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_PASSWORD_QUERY_INFORMATION, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 205); + +// +// ENHANCED_STORAGE_COMMAND_PASSWORD_CONFIG_ADMINISTRATOR +// This command configures the administrator account +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// [ Optional ] ENHANCED_STORAGE_PROPERTY_MAX_AUTH_FAILURES +// [ Optional ] ENHANCED_STORAGE_PROPERTY_AUTH_REQUIRED_FOR_INITIALIZE +// Results: +// WPD_PROPERTY_COMMON_HRESULT - status code for the operation +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_PASSWORD_CONFIG_ADMINISTRATOR, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 206); + +// +// ENHANCED_STORAGE_COMMAND_PASSWORD_CREATE_USER +// This command creates a user account +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// [ Required ] ENHANCED_STORAGE_PROPERTY_PASSWORD +// [ Required ] ENHANCED_STORAGE_PROPERTY_NEW_PASSWORD +// [ Required ] ENHANCED_STORAGE_PROPERTY_USER_HINT +// [ Required ] ENHANCED_STORAGE_PROPERTY_USER_NAME +// [ Optional ] ENHANCED_STORAGE_PROPERTY_MAX_AUTH_FAILURES +// Results: +// WPD_PROPERTY_COMMON_HRESULT - status code for the operation +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_PASSWORD_CREATE_USER, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 207); + +// +// ENHANCED_STORAGE_COMMAND_PASSWORD_DELETE_USER +// This command deletes the existing user account +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// none +// Results: +// WPD_PROPERTY_COMMON_HRESULT - status code for the operation +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_PASSWORD_DELETE_USER, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 208); + + +// +// ENHANCED_STORAGE_COMMAND_PASSWORD_CHANGE_PASSWORD +// This command changes the password for adminstritor or user account +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// [ Required ] ENHANCED_STORAGE_PROPERTY_PASSWORD_INDICATOR +// [ Required ] ENHANCED_STORAGE_PROPERTY_PASSWORD +// [ Required ] ENHANCED_STORAGE_PROPERTY_NEW_PASSWORD +// [ Required ] ENHANCED_STORAGE_PROPERTY_NEW_HINT +// [ Required ] ENHANCED_STORAGE_PROPERTY_NEW_PASSWORD_INDICATOR +// [ Optional ] ENHANCED_STORAGE_PROPERTY_SECURITY_IDENTIFIER +// Results: +// WPD_PROPERTY_COMMON_HRESULT - status code for the operation +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_PASSWORD_CHANGE_PASSWORD, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 209); + +// +// ENHANCED_STORAGE_COMMAND_PASSWORD_INITIALIZE_USER_PASSWORD +// This command initializes the existing user password +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// [ Required ] ENHANCED_STORAGE_PROPERTY_PASSWORD +// [ Required ] ENHANCED_STORAGE_PROPERTY_NEW_PASSWORD +// [ Required ] ENHANCED_STORAGE_PROPERTY_NEW_HINT +// Results: +// WPD_PROPERTY_COMMON_HRESULT - status code for the operation +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_PASSWORD_INITIALIZE_USER_PASSWORD, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 210); + +// +// ENHANCED_STORAGE_COMMAND_PASSWORD_START_INITIALIZE_TO_MANUFACTURER_STATE +// This command starts the initialization process +// Access: +// (FILE_READ_ACCESS | FILE_WRITE_ACCESS) +// Parameters: +// [ Optional ] ENHANCED_STORAGE_PROPERTY_SECURITY_IDENTIFIER +// Results: +// WPD_PROPERTY_COMMON_HRESULT - status code for the operation +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_COMMAND_PASSWORD_START_INITIALIZE_TO_MANUFACTURER_STATE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 211); + + +// --------------------------------------------------------------------------- +// +// This section defines all WPD Enhanced Storage Properties +// +// --------------------------------------------------------------------------- + +// +// ENHANCED_STORAGE_PROPERTY_AUTHENTICATION_STATE +// [ VT_UI4 ] Authentication status of the Enhanced Storage Silo +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_AUTHENTICATION_STATE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 1006); + +// State definitions for ENHANCED_STORAGE_PROPERTY_AUTHENTICATION_STATE +#define ENHANCED_STORAGE_AUTHN_STATE_UNKNOWN 0x00000000 // Initial setting before PnP entry and the silo state is unknow. +#define ENHANCED_STORAGE_AUTHN_STATE_NO_AUTHENTICATION_REQUIRED 0x00000001 // The silo has not been provisioned +#define ENHANCED_STORAGE_AUTHN_STATE_NOT_AUTHENTICATED 0x00000002 // The silo is not authenticated +#define ENHANCED_STORAGE_AUTHN_STATE_AUTHENTICATED 0x00000003 // The silo is authenticated +#define ENHANCED_STORAGE_AUTHN_STATE_AUTHENTICATION_DENIED 0x80000001 // Authentication was denied. +#define ENHANCED_STORAGE_AUTHN_STATE_DEVICE_ERROR 0x80000002 // The silo timed out or another device error happened + +// +// ENHANCED_STORAGE_PROPERTY_IS_AUTHENTICATION_SILO +// [ VT_BOOL ] Is this silo an authentication silo? +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_IS_AUTHENTICATION_SILO, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 1009); + +// +// ENHANCED_STORAGE_PROPERTY_TEMPORARY_UNAUTHENTICATION +// [ VT_BOOL ] TRUE: temporary, FALSE: persistent +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_TEMPORARY_UNAUTHENTICATION, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 1010); + +// --------------------------------------------------------------------------- +// +// Password silo specific properties +// +// --------------------------------------------------------------------------- + +// +// ENHANCED_STORAGE_PROPERTY_MAX_AUTH_FAILURES +// [ VT_UI4 ] Maximum number of password authentication failures +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_MAX_AUTH_FAILURES, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2001); + +// +// ENHANCED_STORAGE_PROPERTY_PASSWORD +// [ VT_BLOB ] The password to send or set +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_PASSWORD, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2004); + +// +// ENHANCED_STORAGE_PROPERTY_OLD_PASSWORD +// [ VT_BLOB ] The password used for changing password. +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_OLD_PASSWORD, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2005); + +// +// ENHANCED_STORAGE_PROPERTY_PASSWORD_INDICATOR +// [ VT_BOOL ] TRUE: user, FALSE: admin +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_PASSWORD_INDICATOR, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2006); + +// +// ENHANCED_STORAGE_PROPERTY_NEW_PASSWORD_INDICATOR +// [ VT_BOOL ] TRUE: user, FALSE: admin +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_NEW_PASSWORD_INDICATOR, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2007); + +// +// ENHANCED_STORAGE_PROPERTY_NEW_PASSWORD +// [ VT_BLOB ] The new password. Used to re-set the password +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_NEW_PASSWORD, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2008); + +// +// ENHANCED_STORAGE_PROPERTY_USER_HINT +// [ VT_LPCSTR ] The user hint +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_USER_HINT, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2009); + +// +// ENHANCED_STORAGE_PROPERTY_USER_NAME +// [ VT_LPCSTR ] The friendly user name +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_USER_NAME, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2010); + +// +// ENHANCED_STORAGE_PROPERTY_ADMIN_HINT +// [ VT_LPCSTR ] The admin hint +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_ADMIN_HINT, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2011); + +// +// ENHANCED_STORAGE_PROPERTY_SILO_NAME +// [ VT_LPCSTR ] The friendly name for the silo +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_SILO_NAME, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2012); + +// +// ENHANCED_STORAGE_PROPERTY_SILO_FRIENDLYNAME_SPECIFIED +// [ VT_BOOL ] Flag to indicate if silo friendly name is given +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_SILO_FRIENDLYNAME_SPECIFIED, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2013); + +// +// ENHANCED_STORAGE_PROPERTY_PASSWORD_SILO_INFO +// [ VT_BLOB ] The password silo information +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_PASSWORD_SILO_INFO, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2014); + +// +// ENHANCED_STORAGE_PROPERTY_SECURITY_IDENTIFIER +// [ VT_BLOB ] Security Identifier for the password silo device +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_SECURITY_IDENTIFIER, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2015); + +// +// ENHANCED_STORAGE_PROPERTY_QUERY_SILO_TYPE +// [ VT_UINT ] Query Silo Type +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_QUERY_SILO_TYPE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2016); + +// +// ENHANCED_STORAGE_PROPERTY_QUERY_SILO_RESULTS +// [ VT_BLOB ] Query Silo Properties result +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_QUERY_SILO_RESULTS, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 2017); + +// +// Data format used for the password silo information property +// + +typedef struct _ENHANCED_STORAGE_PASSWORD_SILO_INFORMATION { + + BYTE CurrentAdminFailures; + BYTE CurrentUserFailures; + DWORD TotalUserAuthenticationCount; + DWORD TotalAdminAuthenticationCount; + + BOOL FipsCompliant; + BOOL SecurityIDAvailable; + BOOL InitializeInProgress; + BOOL ITMSArmed; + BOOL ITMSArmable; + BOOL UserCreated; + BOOL ResetOnPORDefault; + BOOL ResetOnPORCurrent; + + BYTE MaxAdminFailures; + BYTE MaxUserFailures; + + DWORD TimeToCompleteInitialization; + DWORD TimeRemainingToCompleteInitialization; + DWORD MinTimeToAuthenticate; + + // + // Capabilities (never changed) + // + + BYTE MaxAdminPasswordSize; + BYTE MinAdminPasswordSize; + BYTE MaxAdminHintSize; + BYTE MaxUserPasswordSize; + BYTE MinUserPasswordSize; + BYTE MaxUserHintSize; + BYTE MaxUserNameSize; + BYTE MaxSiloNameSize; + WORD MaxChallengeSize; + +} ENHANCED_STORAGE_PASSWORD_SILO_INFORMATION, *PENHANCED_STORAGE_PASSWORD_SILO_INFORMATION; + +// --------------------------------------------------------------------------- +// +// Certificate silo specific properties. +// +// --------------------------------------------------------------------------- + +// +// ENHANCED_STORAGE_PROPERTY_MAX_CERTIFICATE_COUNT +// [ VT_UINT ] The number of certificate slots available on the device +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_MAX_CERTIFICATE_COUNT, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3001); + +// +// ENHANCED_STORAGE_PROPERTY_STORED_CERTIFICATE_COUNT +// [ VT_UINT ] The number of certificate slots in use on the device +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_STORED_CERTIFICATE_COUNT, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3002); + +// +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_INDEX +// [ VT_UINT ] The index for the certificate slot on the device +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_CERTIFICATE_INDEX, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3003); + +// +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_TYPE +// [ VT_UINT ] The type of certificate +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_CERTIFICATE_TYPE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3004); + +// +// Certificate Types defines +// +#define CERT_TYPE_EMPTY 0x00 // No certificate +#define CERT_TYPE_ASCm 0x01 // Manufacturer's certificate (ASCm) +#define CERT_TYPE_PCp 0x02 // Provisioning Certificate (PCp) +#define CERT_TYPE_ASCh 0x03 // Authentication Silo Certificate (ASCh) +#define CERT_TYPE_HCh 0x04 // Host certificate (HCh) +#define CERT_TYPE_SIGNER 0x06 // Signer certificate (SCh) + +// +// ENHANCED_STORAGE_PROPERTY_VALIDATION_POLICY +// [ VT_UINT ] The validation policy for the certificate +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_VALIDATION_POLICY, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3005); + +// +// Validation Policy values +// - None: the corresponding private key of the stored certificate shall be used +// for authentication. +// - Basic: the certificate and certificate chain conforms to the basic validation +// policy. +// - Extended: the certificate chain conforms to the extended validation policy. +// The use of this validation policy must result in an error condition +// of the Authentication Silo if it does not support parsing of certificate +// extensions. +// +#define CERT_VALIDATION_POLICY_RESERVED 0x00 +#define CERT_VALIDATION_POLICY_NONE 0x01 +#define CERT_VALIDATION_POLICY_BASIC 0x02 +#define CERT_VALIDATION_POLICY_EXTENDED 0x03 + +// +// ENHANCED_STORAGE_PROPERTY_NEXT_CERTIFICATE_INDEX +// [ VT_UINT ] The index of the next valid cert +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_NEXT_CERTIFICATE_INDEX, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3006); + +// +// ENHANCED_STORAGE_PROPERTY_NEXT_CERTIFICATE_OF_TYPE_INDEX +// [ VT_UINT ] The index of the next valid cert of same type +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_NEXT_CERTIFICATE_OF_TYPE_INDEX, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3007); + +// +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_LENGTH +// [ VT_UINT ] Length of the certificate in bytes +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_CERTIFICATE_LENGTH, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3008); + +// +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE +// [ VT_VECTOR | VT_UI1 ] The certificate buffer in X.509 format +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_CERTIFICATE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3009); + +// +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_REQUEST +// [ VT_VECTOR | VT_UI1 ] The certificate request buffer +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_CERTIFICATE_REQUEST, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3010); + +// +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_CAPABILITY_TYPE +// [ VT_UINT ] Silo capability type +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_CERTIFICATE_CAPABILITY_TYPE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3011); + +// +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_SILO_CAPABILITY +// [ VT_VECTOR | VT_UINT ] The "raw" capability data return from the silo +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_CERTIFICATE_SILO_CAPABILITY, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3012); + +// +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_SILO_CAPABILITIES +// [ VT_UNKNOWN ] The certificate silo capabilities returned in a collection +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_CERTIFICATE_SILO_CAPABILITIES, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3013); + +// +// Cert Silo Capability Types +// +#define CERT_CAPABILITY_HASH_ALG 0x1 +#define CERT_CAPABILITY_ASYMMETRIC_KEY_CRYPTOGRAPHY 0x2 +#define CERT_CAPABILITY_SIGNATURE_ALG 0x3 +#define CERT_CAPABILITY_CERTIFICATE_SUPPORT 0x4 +#define CERT_CAPABILITY_OPTIONAL_FEATURES 0x5 +#define CERT_MAX_CAPABILITY 0xFF // Maximum capability value + +// +// Supported identifiers defined in 1667 spec +// +#define CERT_RSA_1024_OID "1.2.840.113549.1.1.1,1024" +#define CERT_RSA_2048_OID "1.2.840.113549.1.1.1,2048" +#define CERT_RSA_3072_OID "1.2.840.113549.1.1.1,3072" +#define CERT_RSASSA_PSS_SHA1_OID "1.2.840.113549.1.1.10,1.3.14.3.2.26" +#define CERT_RSASSA_PSS_SHA256_OID "1.2.840.113549.1.1.10,2.16.840.1.101.3.4.2.1" +#define CERT_RSASSA_PSS_SHA384_OID "1.2.840.113549.1.1.10,2.16.840.1.101.3.4.2.2" +#define CERT_RSASSA_PSS_SHA512_OID "1.2.840.113549.1.1.10,2.16.840.1.101.3.4.2.3" + +// +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_ACT_FRIENDLY_NAME +// [ VT_LPWSTR ] The certificate silo's ACT friendly name +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_CERTIFICATE_ACT_FRIENDLY_NAME, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3014); + +// +// ENHANCED_STORAGE_PROPERTY_CERTIFICATE_SILO_GUID +// [ VT_LPWSTR ] The certificate silo GUID +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_CERTIFICATE_SILO_GUID, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3015); + +// +// ENHANCED_STORAGE_PROPERTY_SIGNER CERTIFICATE_INDEX +// [ VT_UINT ] The index for the signer certificate slot on the device +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_PROPERTY_SIGNER_CERTIFICATE_INDEX, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 3016); + + +// --------------------------------------------------------------------------- +// +// Silo capability specific properties. +// +// --------------------------------------------------------------------------- + + +// +// ENHANCED_STORAGE_CAPABILITY_HASH_ALGS +// [VT_LPWSTR] Semi-colon delimited string of hash algorithm identifiers +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_CAPABILITY_HASH_ALGS, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 4001); + +// +// ENHANCED_STORAGE_CAPABILITY_ASYMMETRIC_KEY_CRYPTOGRAPHY +// [VT_LPWSTR] Semi-colon delimited string of asymmetric key cryptography supported +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_CAPABILITY_ASYMMETRIC_KEY_CRYPTOGRAPHY, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 4002); + +// +// ENHANCED_STORAGE_CAPABILITY_SIGNING_ALGS +// [VT_LPWSTR] Semi-colon delimited string of signing algorithm identifiers +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_CAPABILITY_SIGNING_ALGS, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 4003); + +// +// ENHANCED_STORAGE_CAPABILITY_RENDER_USER_DATA_UNUSABLE +// [ VT_BOOL ] Boolean indicating whether silo can render user data unusable +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_CAPABILITY_RENDER_USER_DATA_UNUSABLE, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 4004); + +// +// ENHANCED_STORAGE_CAPABILITY_CERTIFICATE_EXTENSION_PARSING +// [ VT_BOOL ] Boolean indicating whether certificate extension fields are supported +// + +DEFINE_PROPERTYKEY( + ENHANCED_STORAGE_CAPABILITY_CERTIFICATE_EXTENSION_PARSING, + 0x91248166, 0xb832, 0x4ad4, 0xba, 0xa4, 0x7c, 0xa0, 0xb6, 0xb2, 0x79, 0x8c, + 4005); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ehstormsg.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ehstormsg.h new file mode 100644 index 0000000000000000000000000000000000000000..88e62420025c1c54628cd283003a7260570cd523 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ehstormsg.h @@ -0,0 +1,375 @@ +/*-- + +Copyright (c) 2008 Microsoft Corporation + +Module Name: + + EhStorMsg.h + +Abstract: + + This file contains the message definitions for Enhanced Storage APIs. + +Revision History: + +--*/ + +#pragma once + +// +// -------------------------------------------------------------------------- +// Enhanced Storage error codes will use FACILITY_ITF. According to MSDN doc, +// it is recommended that code values start at 0x0200 as COM FACILITY_ITF +// will use the code values from 0x0000 - 0x01FF. +// +// The code value range is partition based on the following scheme: +// +// 0x0200 - 0x03FF: general error codes +// 0x0400 - 0x04FF: authentication related error codes +// 0x0500 - 0x0FFF: reserved for other high level feature related error codes +// 0x1100 - 0x11FF: password silo related error codes +// 0x1200 - 0xBFFF: reserved for other silo specific error codes +// 0xC000 - 0xFFFF: reserved for 3rd party silo specific error codes +// +// -------------------------------------------------------------------------- +// + +#define ES_RESERVED_COM_ERROR_START 0x0000 +#define ES_RESERVED_COM_ERROR_END 0x01FF +#define ES_GENERAL_ERROR_START 0x0200 +#define ES_GENERAL_ERROR_END 0x03FF +#define ES_AUTHN_ERROR_START 0x0400 +#define ES_AUTHN_ERROR_END 0x04FF +#define ES_RESERVED_SILO_ERROR_START 0x0500 +#define ES_RESERVED_SILO_ERROR_END 0x0FFF +#define ES_PW_SILO_ERROR_START 0x1100 +#define ES_PW_SILO_ERROR_END 0x11FF +#define ES_RESERVED_SILO_SPECIFIC_ERROR_START 0x1200 +#define ES_RESERVED_SILO_SPECIFIC_ERROR_END 0xBFFF +#define ES_VENDOR_ERROR_START 0xC000 +#define ES_VENDOR_ERROR_END 0xFFFF + +// ----------------------------------- +// Error code related macros +// ----------------------------------- + +#define IS_ENHANCED_STORAGE_GENERAL_ERROR(x) ((x) >= ES_GENERAL_ERROR_START && \ + (x) <= ES_GENERAL_ERROR_END) + +#define IS_ENHANCED_STORAGE_AUTHN_ERROR(x) ((x) >= ES_AUTHN_ERROR_START && \ + (x) <= ES_AUTHN_ERROR_END) + +#define IS_ENHANCED_STORAGE_PW_SILO_ERROR(x) ((x) >= ES_PW_SILO_ERROR_START && \ + (x) <= ES_PW_SILO_ERROR_END) + +#define IS_ENHANCED_STORAGE_VENDOR_ERROR(x) ((x) >= ES_VENDOR_ERROR_START && \ + (x) <= ES_VENDOR_ERROR_END) + +#define IS_ENHANCED_STORAGE_RESERVED_ERROR(x) (((x) >= ES_RESERVED_SILO_ERROR_START && \ + (x) <= ES_RESERVED_SILO_ERROR_END) || \ + ((x) >= ES_RESERVED_SILO_SPECIFIC_ERROR_START && \ + (x) <= ES_RESERVED_SILO_SPECIFIC_ERROR_END) || \ + ((x) >= ES_RESERVED_COM_ERROR_START && \ + (x) <= ES_RESERVED_COM_ERROR_END)) + +// +// Values are 32 bit values laid out as follows: +// +// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 +// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 +// +-+-+-+-+-+---------------------+-------------------------------+ +// |S|R|C|N|r| Facility | Code | +// +-+-+-+-+-+---------------------+-------------------------------+ +// +// where +// +// S - Severity - indicates success/fail +// +// 0 - Success +// 1 - Fail (COERROR) +// +// R - reserved portion of the facility code, corresponds to NT's +// second severity bit. +// +// C - reserved portion of the facility code, corresponds to NT's +// C field. +// +// N - reserved portion of the facility code. Used to indicate a +// mapped NT status value. +// +// r - reserved portion of the facility code. Reserved for internal +// use. Used to indicate HRESULT values that are not status +// values, but are instead message ids for display strings. +// +// Facility - is the facility code +// +// Code - is the facility's status code +// +// +// Define the facility codes +// +#define FACILITY_ENHANCED_STORAGE 0x4 + + +// +// Define the severity codes +// +#define STATUS_SEVERITY_SUCCESS 0x0 +#define STATUS_SEVERITY_INFORMATIONAL 0x1 +#define STATUS_SEVERITY_WARNING 0x2 +#define STATUS_SEVERITY_ERROR 0x3 + + +// +// MessageId: ES_E_INVALID_RESPONSE +// +// MessageText: +// +// Hardware return invalid response. +// +#define ES_E_INVALID_RESPONSE ((DWORD)0xC0040200L) + +// +// MessageId: ES_E_UNPROVISIONED_HARDWARE +// +// MessageText: +// +// Hardware is not provision. +// +#define ES_E_UNPROVISIONED_HARDWARE ((DWORD)0xC0040204L) + +// +// MessageId: ES_E_UNSUPPORTED_HARDWARE +// +// MessageText: +// +// Hardware is not supported. +// +#define ES_E_UNSUPPORTED_HARDWARE ((DWORD)0xC0040205L) + +// +// MessageId: ES_E_INCOMPLETE_COMMAND +// +// MessageText: +// +// An incomplete command was received. +// +#define ES_E_INCOMPLETE_COMMAND ((DWORD)0xC0040206L) + +// +// MessageId: ES_E_BAD_SEQUENCE +// +// MessageText: +// +// Command rejected for being out of sequence. +// +#define ES_E_BAD_SEQUENCE ((DWORD)0xC0040207L) + +// +// MessageId: ES_E_NO_PROBE +// +// MessageText: +// +// Non-Probe command received before Probe command. +// +#define ES_E_NO_PROBE ((DWORD)0xC0040208L) + +// +// MessageId: ES_E_INVALID_SILO +// +// MessageText: +// +// Invalid silo specified. +// +#define ES_E_INVALID_SILO ((DWORD)0xC0040209L) + +// +// MessageId: ES_E_INVALID_CAPABILITY +// +// MessageText: +// +// Invalid capability requested. +// +#define ES_E_INVALID_CAPABILITY ((DWORD)0xC004020AL) + +// +// MessageId: ES_E_GROUP_POLICY_FORBIDDEN_USE +// +// MessageText: +// +// Group policy setting forbids use. +// +#define ES_E_GROUP_POLICY_FORBIDDEN_USE ((DWORD)0xC004020BL) + +// +// MessageId: ES_E_GROUP_POLICY_FORBIDDEN_OPERATION +// +// MessageText: +// +// Group policy setting forbids operation. +// +#define ES_E_GROUP_POLICY_FORBIDDEN_OPERATION ((DWORD)0xC004020CL) + +// +// MessageId: ES_E_INVALID_PARAM_COMBINATION +// +// MessageText: +// +// Invalid combination of parameters specified in input data. +// +#define ES_E_INVALID_PARAM_COMBINATION ((DWORD)0xC004020DL) + +// +// MessageId: ES_E_INVALID_PARAM_LENGTH +// +// MessageText: +// +// Parameter Byte Length specified in the payload is invalid. +// +#define ES_E_INVALID_PARAM_LENGTH ((DWORD)0xC004020EL) + +// +// MessageId: ES_E_INCONSISTENT_PARAM_LENGTH +// +// MessageText: +// +// Parameter Byte Length specified in the payload is not consistent with the number of bytes transferred. +// +#define ES_E_INCONSISTENT_PARAM_LENGTH ((DWORD)0xC004020FL) + + +// ----------------------------------------- +// Authentication silo related error codes +// ----------------------------------------- + +// +// MessageId: ES_E_NO_AUTHENTICATION_REQUIRED +// +// MessageText: +// +// Hardware does not require authentication. +// +#define ES_E_NO_AUTHENTICATION_REQUIRED ((DWORD)0xC0040400L) + + +// ----------------------------------- +// Password silo related error codes +// ----------------------------------- + +// +// MessageId: ES_E_INVALID_FIELD_IDENTIFIER +// +// MessageText: +// +// An invalid field identifier was found in the data provided by the device. +// +#define ES_E_INVALID_FIELD_IDENTIFIER ((DWORD)0xC0041100L) + +// +// MessageId: ES_E_CHALLENGE_MISMATCH +// +// MessageText: +// +// The challenge provided by the device does not match the one provided in an earlier step in the authentication sequence. +// +#define ES_E_CHALLENGE_MISMATCH ((DWORD)0xC0041101L) + +// +// MessageId: ES_E_CHALLENGE_SIZE_MISMATCH +// +// MessageText: +// +// The size of the challenge specified by the device does not match the choice of the digest algorithm. +// +#define ES_E_CHALLENGE_SIZE_MISMATCH ((DWORD)0xC0041102L) + +// +// MessageId: ES_E_FRIENDLY_NAME_TOO_LONG +// +// MessageText: +// +// The friendly name specified for User is too long. +// +#define ES_E_FRIENDLY_NAME_TOO_LONG ((DWORD)0xC0041103L) + +// +// MessageId: ES_E_SILO_NAME_TOO_LONG +// +// MessageText: +// +// The silo name specified is too long. +// +#define ES_E_SILO_NAME_TOO_LONG ((DWORD)0xC0041104L) + +// +// MessageId: ES_E_PASSWORD_TOO_LONG +// +// MessageText: +// +// The password specified is too long. +// +#define ES_E_PASSWORD_TOO_LONG ((DWORD)0xC0041105L) + +// +// MessageId: ES_E_PASSWORD_HINT_TOO_LONG +// +// MessageText: +// +// The password hint specified is too long. +// +#define ES_E_PASSWORD_HINT_TOO_LONG ((DWORD)0xC0041106L) + +// +// MessageId: ES_E_OTHER_SECURITY_PROTOCOL_ACTIVE +// +// MessageText: +// +// Cannot enable IEEE 1667 password security since another security protocol is still active on the device. +// +#define ES_E_OTHER_SECURITY_PROTOCOL_ACTIVE ((DWORD)0xC0041107L) + +// +// MessageId: ES_E_DEVICE_DIGEST_MISSING +// +// MessageText: +// +// Device digest was expected but was not found in the payload. +// +#define ES_E_DEVICE_DIGEST_MISSING ((DWORD)0xC0041108L) + +// +// MessageId: ES_E_NOT_AUTHORIZED_UNEXPECTED +// +// MessageText: +// +// Expected the silo to be in Authorized state, but it was not. +// +#define ES_E_NOT_AUTHORIZED_UNEXPECTED ((DWORD)0xC0041109L) + +// +// MessageId: ES_E_AUTHORIZED_UNEXPECTED +// +// MessageText: +// +// Expected the silo to be in Not Authorized state, but it was not. +// +#define ES_E_AUTHORIZED_UNEXPECTED ((DWORD)0xC004110AL) + +// +// MessageId: ES_E_PROVISIONED_UNEXPECTED +// +// MessageText: +// +// Expected the silo to be in Not Provisioned state, but it was not. +// +#define ES_E_PROVISIONED_UNEXPECTED ((DWORD)0xC004110BL) + +// +// MessageId: ES_E_UNKNOWN_DIGEST_ALGORITHM +// +// MessageText: +// +// The digest algorithm supported by the device is not supported in Windows. +// +#define ES_E_UNKNOWN_DIGEST_ALGORITHM ((DWORD)0xC004110CL) + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/emptyvc.idl b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/emptyvc.idl new file mode 100644 index 0000000000000000000000000000000000000000..5fb131c4a0f60c3b50947f55aec81d143afa94f1 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/emptyvc.idl @@ -0,0 +1,170 @@ +//+--------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Contents: Empty Volume Cache Interfaces +// +//---------------------------------------------------------------------------- + +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// emptyvc.h") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("// Copyright (c) Microsoft Corporation. All rights reserved.") +cpp_quote("//") +cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") +cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") +cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") +cpp_quote("// PARTICULAR PURPOSE.") +cpp_quote("//=--------------------------------------------------------------------------=") +cpp_quote("") +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +cpp_quote("#pragma comment(lib,\"uuid.lib\")") +cpp_quote("") +cpp_quote("//---------------------------------------------------------------------------=") +cpp_quote("// Empty Volume Cache Interfaces.") +cpp_quote("") + +import "objidl.idl"; +import "oleidl.idl"; +import "oaidl.idl"; + +interface IEmptyVolumeCache; +interface IEmptyVolumeCache2; + +cpp_quote("// IEmptyVolumeCache Flags") +#pragma midl_echo("#define EVCF_HASSETTINGS 0x0001") +#pragma midl_echo("#define EVCF_ENABLEBYDEFAULT 0x0002") +#pragma midl_echo("#define EVCF_REMOVEFROMLIST 0x0004") +#pragma midl_echo("#define EVCF_ENABLEBYDEFAULT_AUTO 0x0008") +#pragma midl_echo("#define EVCF_DONTSHOWIFZERO 0x0010") +#pragma midl_echo("#define EVCF_SETTINGSMODE 0x0020") +#pragma midl_echo("#define EVCF_OUTOFDISKSPACE 0x0040") +#pragma midl_echo("#define EVCF_USERCONSENTOBTAINED 0x0080") +#pragma midl_echo("#define EVCF_SYSTEMAUTORUN 0x0100") + +cpp_quote("") +cpp_quote("// IEmptyVolumeCacheCallBack Flags") +#pragma midl_echo("#define EVCCBF_LASTNOTIFICATION 0x0001") + +cpp_quote("") +cpp_quote("////////////////////////////////////////////////////////////////////////////") +cpp_quote("// Interface Definitions") + +//+--------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Contents: IEmptyVolumeCacheCallBack interface definition +// +//---------------------------------------------------------------------------- +cpp_quote("#ifndef _LPEMPTYVOLUMECACHECALLBACK_DEFINED") +cpp_quote("#define _LPEMPTYVOLUMECACHECALLBACK_DEFINED") +[ + object, + uuid(6E793361-73C6-11D0-8469-00AA00442901), + pointer_default(unique) +] +interface IEmptyVolumeCacheCallBack : IUnknown +{ + typedef [unique] IEmptyVolumeCacheCallBack* LPEMPTYVOLUMECACHECALLBACK; + + HRESULT ScanProgress( + [in] DWORDLONG dwlSpaceUsed, + [in] DWORD dwFlags, + [in, unique] LPCWSTR pcwszStatus + ); + + HRESULT PurgeProgress( + [in] DWORDLONG dwlSpaceFreed, + [in] DWORDLONG dwlSpaceToFree, + [in] DWORD dwFlags, + [in, unique] LPCWSTR pcwszStatus + ); +} +cpp_quote("#endif") + +//+--------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Contents: IEmptyVolumeCache interface definition +// +//---------------------------------------------------------------------------- +cpp_quote("#ifndef _LPEMPTYVOLUMECACHE_DEFINED") +cpp_quote("#define _LPEMPTYVOLUMECACHE_DEFINED") +[ + object, + uuid(8FCE5227-04DA-11d1-A004-00805F8ABE06), + pointer_default(unique) +] +interface IEmptyVolumeCache : IUnknown +{ + typedef [unique] IEmptyVolumeCache* LPEMPTYVOLUMECACHE; + + [local] + HRESULT Initialize( + [in] HKEY hkRegKey, + [in] LPCWSTR pcwszVolume, + [out] LPWSTR *ppwszDisplayName, + [out] LPWSTR *ppwszDescription, + [out] DWORD *pdwFlags + ); + + HRESULT GetSpaceUsed( + [out] DWORDLONG *pdwlSpaceUsed, + [in] IEmptyVolumeCacheCallBack *picb + ); + + HRESULT Purge( + [in] DWORDLONG dwlSpaceToFree, + [in] IEmptyVolumeCacheCallBack *picb + ); + + HRESULT ShowProperties( + [in] HWND hwnd + ); + + HRESULT Deactivate( + [out] DWORD *pdwFlags + ); +} +cpp_quote("#endif") + +//+--------------------------------------------------------------------------- +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// +// Contents: IEmptyVolumeCache2 interface definition +// +//---------------------------------------------------------------------------- +cpp_quote("#ifndef _LPEMPTYVOLUMECACHE2_DEFINED") +cpp_quote("#define _LPEMPTYVOLUMECACHE2_DEFINED") +[ + object, + uuid(02b7e3ba-4db3-11d2-b2d9-00c04f8eec8c), + pointer_default(unique) +] +interface IEmptyVolumeCache2 : IEmptyVolumeCache +{ + typedef [unique] IEmptyVolumeCache2* LPEMPTYVOLUMECACHE2; + + [local] + HRESULT InitializeEx( + [in] HKEY hkRegKey, + [in] LPCWSTR pcwszVolume, + [in] LPCWSTR pcwszKeyName, + [out] LPWSTR *ppwszDisplayName, + [out] LPWSTR *ppwszDescription, + [out] LPWSTR *ppwszBtnText, + [out] DWORD *pdwFlags + ); +} +cpp_quote("#endif") + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/encdec.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/encdec.h new file mode 100644 index 0000000000000000000000000000000000000000..4fc7c0b25a86e9fca2a2421e3045bda2b2d7d520 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/encdec.h @@ -0,0 +1,2457 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __encdec_h__ +#define __encdec_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IETFilterConfig_FWD_DEFINED__ +#define __IETFilterConfig_FWD_DEFINED__ +typedef interface IETFilterConfig IETFilterConfig; + +#endif /* __IETFilterConfig_FWD_DEFINED__ */ + + +#ifndef __IDTFilterConfig_FWD_DEFINED__ +#define __IDTFilterConfig_FWD_DEFINED__ +typedef interface IDTFilterConfig IDTFilterConfig; + +#endif /* __IDTFilterConfig_FWD_DEFINED__ */ + + +#ifndef __IXDSCodecConfig_FWD_DEFINED__ +#define __IXDSCodecConfig_FWD_DEFINED__ +typedef interface IXDSCodecConfig IXDSCodecConfig; + +#endif /* __IXDSCodecConfig_FWD_DEFINED__ */ + + +#ifndef __IDTFilterLicenseRenewal_FWD_DEFINED__ +#define __IDTFilterLicenseRenewal_FWD_DEFINED__ +typedef interface IDTFilterLicenseRenewal IDTFilterLicenseRenewal; + +#endif /* __IDTFilterLicenseRenewal_FWD_DEFINED__ */ + + +#ifndef __IPTFilterLicenseRenewal_FWD_DEFINED__ +#define __IPTFilterLicenseRenewal_FWD_DEFINED__ +typedef interface IPTFilterLicenseRenewal IPTFilterLicenseRenewal; + +#endif /* __IPTFilterLicenseRenewal_FWD_DEFINED__ */ + + +#ifndef __IMceBurnerControl_FWD_DEFINED__ +#define __IMceBurnerControl_FWD_DEFINED__ +typedef interface IMceBurnerControl IMceBurnerControl; + +#endif /* __IMceBurnerControl_FWD_DEFINED__ */ + + +#ifndef __IETFilter_FWD_DEFINED__ +#define __IETFilter_FWD_DEFINED__ +typedef interface IETFilter IETFilter; + +#endif /* __IETFilter_FWD_DEFINED__ */ + + +#ifndef __IETFilterEvents_FWD_DEFINED__ +#define __IETFilterEvents_FWD_DEFINED__ +typedef interface IETFilterEvents IETFilterEvents; + +#endif /* __IETFilterEvents_FWD_DEFINED__ */ + + +#ifndef __ETFilter_FWD_DEFINED__ +#define __ETFilter_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class ETFilter ETFilter; +#else +typedef struct ETFilter ETFilter; +#endif /* __cplusplus */ + +#endif /* __ETFilter_FWD_DEFINED__ */ + + +#ifndef __IDTFilter_FWD_DEFINED__ +#define __IDTFilter_FWD_DEFINED__ +typedef interface IDTFilter IDTFilter; + +#endif /* __IDTFilter_FWD_DEFINED__ */ + + +#ifndef __IDTFilter2_FWD_DEFINED__ +#define __IDTFilter2_FWD_DEFINED__ +typedef interface IDTFilter2 IDTFilter2; + +#endif /* __IDTFilter2_FWD_DEFINED__ */ + + +#ifndef __IDTFilter3_FWD_DEFINED__ +#define __IDTFilter3_FWD_DEFINED__ +typedef interface IDTFilter3 IDTFilter3; + +#endif /* __IDTFilter3_FWD_DEFINED__ */ + + +#ifndef __IDTFilterEvents_FWD_DEFINED__ +#define __IDTFilterEvents_FWD_DEFINED__ +typedef interface IDTFilterEvents IDTFilterEvents; + +#endif /* __IDTFilterEvents_FWD_DEFINED__ */ + + +#ifndef __DTFilter_FWD_DEFINED__ +#define __DTFilter_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class DTFilter DTFilter; +#else +typedef struct DTFilter DTFilter; +#endif /* __cplusplus */ + +#endif /* __DTFilter_FWD_DEFINED__ */ + + +#ifndef __IXDSCodec_FWD_DEFINED__ +#define __IXDSCodec_FWD_DEFINED__ +typedef interface IXDSCodec IXDSCodec; + +#endif /* __IXDSCodec_FWD_DEFINED__ */ + + +#ifndef __IXDSCodecEvents_FWD_DEFINED__ +#define __IXDSCodecEvents_FWD_DEFINED__ +typedef interface IXDSCodecEvents IXDSCodecEvents; + +#endif /* __IXDSCodecEvents_FWD_DEFINED__ */ + + +#ifndef __XDSCodec_FWD_DEFINED__ +#define __XDSCodec_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class XDSCodec XDSCodec; +#else +typedef struct XDSCodec XDSCodec; +#endif /* __cplusplus */ + +#endif /* __XDSCodec_FWD_DEFINED__ */ + + +#ifndef __CXDSData_FWD_DEFINED__ +#define __CXDSData_FWD_DEFINED__ + +#ifdef __cplusplus +typedef class CXDSData CXDSData; +#else +typedef struct CXDSData CXDSData; +#endif /* __cplusplus */ + +#endif /* __CXDSData_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "oaidl.h" +#include "ocidl.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_encdec_0000_0000 */ +/* [local] */ + +//+------------------------------------------------------------------------- +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation, 2002. +// +//-------------------------------------------------------------------------- +#pragma once +#include +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#pragma warning(push) +#pragma warning(disable:4001) +#pragma once +#pragma warning(push) +#pragma warning(disable:4001) +#pragma once +#pragma warning(pop) +#pragma warning(pop) +#pragma region Desktop Family +#pragma region Desktop Family +#pragma endregion +typedef +enum EnTvRat_System + { + MPAA = 0, + US_TV = 1, + Canadian_English = 2, + Canadian_French = 3, + Reserved4 = 4, + System5 = 5, + System6 = 6, + Reserved7 = 7, + PBDA = 8, + AgeBased = 9, + TvRat_kSystems = 10, + TvRat_SystemDontKnow = 255 + } EnTvRat_System; + +typedef +enum EnTvRat_GenericLevel + { + TvRat_0 = 0, + TvRat_1 = 1, + TvRat_2 = 2, + TvRat_3 = 3, + TvRat_4 = 4, + TvRat_5 = 5, + TvRat_6 = 6, + TvRat_7 = 7, + TvRat_8 = 8, + TvRat_9 = 9, + TvRat_10 = 10, + TvRat_11 = 11, + TvRat_12 = 12, + TvRat_13 = 13, + TvRat_14 = 14, + TvRat_15 = 15, + TvRat_16 = 16, + TvRat_17 = 17, + TvRat_18 = 18, + TvRat_19 = 19, + TvRat_20 = 20, + TvRat_21 = 21, + TvRat_kLevels = 22, + TvRat_Unblock = -1, + TvRat_LevelDontKnow = 255 + } EnTvRat_GenericLevel; + +typedef +enum EnTvRat_MPAA + { + MPAA_NotApplicable = TvRat_0, + MPAA_G = TvRat_1, + MPAA_PG = TvRat_2, + MPAA_PG13 = TvRat_3, + MPAA_R = TvRat_4, + MPAA_NC17 = TvRat_5, + MPAA_X = TvRat_6, + MPAA_NotRated = TvRat_7 + } EnTvRat_MPAA; + +typedef +enum EnTvRat_US_TV + { + US_TV_None = TvRat_0, + US_TV_Y = TvRat_1, + US_TV_Y7 = TvRat_2, + US_TV_G = TvRat_3, + US_TV_PG = TvRat_4, + US_TV_14 = TvRat_5, + US_TV_MA = TvRat_6, + US_TV_None7 = TvRat_7 + } EnTvRat_US_TV; + +typedef +enum EnTvRat_CAE_TV + { + CAE_TV_Exempt = TvRat_0, + CAE_TV_C = TvRat_1, + CAE_TV_C8 = TvRat_2, + CAE_TV_G = TvRat_3, + CAE_TV_PG = TvRat_4, + CAE_TV_14 = TvRat_5, + CAE_TV_18 = TvRat_6, + CAE_TV_Reserved = TvRat_7 + } EnTvRat_CAE_TV; + +typedef +enum EnTvRat_CAF_TV + { + CAF_TV_Exempt = TvRat_0, + CAF_TV_G = TvRat_1, + CAF_TV_8 = TvRat_2, + CAF_TV_13 = TvRat_3, + CAF_TV_16 = TvRat_4, + CAF_TV_18 = TvRat_5, + CAF_TV_Reserved6 = TvRat_6, + CAF_TV_Reserved = TvRat_7 + } EnTvRat_CAF_TV; + +typedef +enum BfEnTvRat_GenericAttributes + { + BfAttrNone = 0, + BfIsBlocked = 1, + BfIsAttr_1 = 2, + BfIsAttr_2 = 4, + BfIsAttr_3 = 8, + BfIsAttr_4 = 16, + BfIsAttr_5 = 32, + BfIsAttr_6 = 64, + BfIsAttr_7 = 128, + BfValidAttrSubmask = 255 + } BfEnTvRat_GenericAttributes; + +typedef +enum BfEnTvRat_Attributes_US_TV + { + US_TV_IsBlocked = BfIsBlocked, + US_TV_IsViolent = BfIsAttr_1, + US_TV_IsSexualSituation = BfIsAttr_2, + US_TV_IsAdultLanguage = BfIsAttr_3, + US_TV_IsSexuallySuggestiveDialog = BfIsAttr_4, + US_TV_ValidAttrSubmask = 31 + } BfEnTvRat_Attributes_US_TV; + +typedef +enum BfEnTvRat_Attributes_MPAA + { + MPAA_IsBlocked = BfIsBlocked, + MPAA_ValidAttrSubmask = 1 + } BfEnTvRat_Attributes_MPAA; + +typedef +enum BfEnTvRat_Attributes_CAE_TV + { + CAE_IsBlocked = BfIsBlocked, + CAE_ValidAttrSubmask = 1 + } BfEnTvRat_Attributes_CAE_TV; + +typedef +enum BfEnTvRat_Attributes_CAF_TV + { + CAF_IsBlocked = BfIsBlocked, + CAF_ValidAttrSubmask = 1 + } BfEnTvRat_Attributes_CAF_TV; + +#pragma region Desktop Family +#pragma endregion +#pragma endregion +// {C4C4C4C4-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(SID_DRMSecureServiceChannel, +0xC4C4C4C4, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C481-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(CLSID_ETFilterEncProperties, +0xC4C4C481, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C491-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(CLSID_ETFilterTagProperties, +0xC4C4C491, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {9CD31617-B303-4f96-8330-2EB173EA4DC6} +DEFINE_GUID(CLSID_PTFilter, +0x9cd31617, 0xb303, 0x4f96, 0x83, 0x30, 0x2e, 0xb1, 0x73, 0xea, 0x4d, 0xc6); +// {C4C4C482-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(CLSID_DTFilterEncProperties, +0xC4C4C482, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C492-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(CLSID_DTFilterTagProperties, +0xC4C4C492, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C483-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(CLSID_XDSCodecProperties, +0xC4C4C483, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C493-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(CLSID_XDSCodecTagProperties, +0xC4C4C493, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4FC-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(CLSID_CPCAFiltersCategory, +0xC4C4C4FC, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4E0-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_XDSCodecNewXDSRating, +0xC4C4C4E0, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4DF-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_XDSCodecDuplicateXDSRating, +0xC4C4C4DF, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4E1-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_XDSCodecNewXDSPacket, +0xC4C4C4E1, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4E2-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_DTFilterRatingChange, +0xC4C4C4E2, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4E3-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_DTFilterRatingsBlock, +0xC4C4C4E3, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4E4-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_DTFilterRatingsUnblock, +0xC4C4C4E4, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4E5-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_DTFilterXDSPacket, +0xC4C4C4E5, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4E6-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_ETFilterEncryptionOn, +0xC4C4C4E6, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4E7-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_ETFilterEncryptionOff, +0xC4C4C4E7, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4E8-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_DTFilterCOPPUnblock, +0xC4C4C4E8, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4E9-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_EncDecFilterError, +0xC4C4C4E9, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4EA-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_DTFilterCOPPBlock , +0xC4C4C4EA, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4EB-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_ETFilterCopyOnce, +0xC4C4C4EB, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4F0-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_ETFilterCopyNever, +0xC4C4C4F0, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4EC-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_DTFilterDataFormatOK, +0xC4C4C4EC, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4ED-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_DTFilterDataFormatFailure, +0xC4C4C4ED, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4EE-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_ETDTFilterLicenseOK, +0xC4C4C4EE, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4EF-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(EVENTID_ETDTFilterLicenseFailure, +0xC4C4C4EF, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4D0-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(MEDIASUBTYPE_ETDTFilter_Tagged, +0xC4C4C4D0, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {C4C4C4D1-0049-4E2B-98FB-9537F6CE516D} +DEFINE_GUID(FORMATTYPE_ETDTFilter_Tagged, +0xC4C4C4D1, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D); +// {46adbd28-6fd0-4796-93b2-155c51dc048d} +DEFINE_GUID( MEDIASUBTYPE_CPFilters_Processed, 0x46adbd28, 0x6fd0, 0x4796, 0x93, 0xb2, 0x15, 0x5c, 0x51, 0xdc, 0x4, 0x8d ); +// {6739b36f-1d5f-4ac2-8192-28bb0e73d16a} +DEFINE_GUID( FORMATTYPE_CPFilters_Processed, 0x6739b36f, 0x1d5f, 0x4ac2, 0x81, 0x92, 0x28, 0xbb, 0xe, 0x73, 0xd1, 0x6a ); +// {4A1B465B-0FB9-4159-AFBD-E33006A0F9F4} +DEFINE_GUID(EVENTID_EncDecFilterEvent, +0x4a1b465b, 0xfb9, 0x4159, 0xaf, 0xbd, 0xe3, 0x30, 0x6, 0xa0, 0xf9, 0xf4); + +enum FormatNotSupportedEvents + { + FORMATNOTSUPPORTED_CLEAR = 0, + FORMATNOTSUPPORTED_NOTSUPPORTED = 1 + } ; +// {24B2280A-B2AA-4777-BF65-63F35E7B024A} +DEFINE_GUID(EVENTID_FormatNotSupportedEvent, +0x24b2280a, 0xb2aa, 0x4777, 0xbf, 0x65, 0x63, 0xf3, 0x5e, 0x7b, 0x2, 0x4a); +// {16155770-AED5-475c-BB98-95A33070DF0C} +DEFINE_GUID(EVENTID_DemultiplexerFilterDiscontinuity, +0x16155770, 0xaed5, 0x475c, 0xbb, 0x98, 0x95, 0xa3, 0x30, 0x70, 0xdf, 0xc); +// {40749583-6b9d-4eec-b43c-67a1801e1a9b} +DEFINE_GUID( DSATTRIB_WMDRMProtectionInfo, 0x40749583, 0x6b9d, 0x4eec, 0xb4, 0x3c, 0x67, 0xa1, 0x80, 0x1e, 0x1a, 0x9b ); +// {e4846dda-5838-42b4-b897-6f7e5faa2f2f} +DEFINE_GUID( DSATTRIB_BadSampleInfo, 0xe4846dda, 0x5838, 0x42b4, 0xb8, 0x97, 0x6f, 0x7e, 0x5f, 0xaa, 0x2f, 0x2f ); + +#pragma pack(push, 1) +typedef /* [public] */ struct __MIDL___MIDL_itf_encdec_0000_0000_0001 + { + unsigned short wszKID[ 25 ]; + unsigned __int64 qwCounter; + unsigned __int64 qwIndex; + unsigned char bOffset; + } WMDRMProtectionInfo; + +typedef /* [public] */ struct __MIDL___MIDL_itf_encdec_0000_0000_0002 + { + HRESULT hrReason; + } BadSampleInfo; + + +#pragma pack(pop) +typedef LONGLONG REFERENCE_TIME; + +typedef LONG PackedTvRating; + +#pragma region Desktop Family +#pragma region Desktop Family +#pragma endregion +typedef /* [v1_enum][uuid] */ DECLSPEC_UUID("25AEE876-3D61-4486-917E-7C0CB3D9983C") +enum ProtType + { + PROT_COPY_FREE = 1, + PROT_COPY_ONCE = 2, + PROT_COPY_NEVER = 3, + PROT_COPY_NEVER_REALLY = 4, + PROT_COPY_NO_MORE = 5, + PROT_COPY_FREE_CIT = 6, + PROT_COPY_BF = 7, + PROT_COPY_CN_RECORDING_STOP = 8, + PROT_COPY_FREE_SECURE = 9, + PROT_COPY_INVALID = 50 + } ProtType; + +typedef /* [v1_enum] */ +enum EncDecEvents + { + ENCDEC_CPEVENT = 0, + ENCDEC_RECORDING_STATUS = ( ENCDEC_CPEVENT + 1 ) + } EncDecEvents; + +typedef /* [v1_enum] */ +enum CPRecordingStatus + { + RECORDING_STOPPED = 0, + RECORDING_STARTED = 1 + } CPRecordingStatus; + +typedef /* [v1_enum] */ +enum CPEventBitShift + { + CPEVENT_BITSHIFT_RATINGS = 0, + CPEVENT_BITSHIFT_COPP = ( CPEVENT_BITSHIFT_RATINGS + 1 ) , + CPEVENT_BITSHIFT_LICENSE = ( CPEVENT_BITSHIFT_COPP + 1 ) , + CPEVENT_BITSHIFT_ROLLBACK = ( CPEVENT_BITSHIFT_LICENSE + 1 ) , + CPEVENT_BITSHIFT_SAC = ( CPEVENT_BITSHIFT_ROLLBACK + 1 ) , + CPEVENT_BITSHIFT_DOWNRES = ( CPEVENT_BITSHIFT_SAC + 1 ) , + CPEVENT_BITSHIFT_STUBLIB = ( CPEVENT_BITSHIFT_DOWNRES + 1 ) , + CPEVENT_BITSHIFT_UNTRUSTEDGRAPH = ( CPEVENT_BITSHIFT_STUBLIB + 1 ) , + CPEVENT_BITSHIFT_PENDING_CERTIFICATE = ( CPEVENT_BITSHIFT_UNTRUSTEDGRAPH + 1 ) , + CPEVENT_BITSHIFT_NO_PLAYREADY = ( CPEVENT_BITSHIFT_PENDING_CERTIFICATE + 1 ) + } CPEventBitShift; + +typedef /* [v1_enum] */ +enum CPEvents + { + CPEVENT_NONE = 0, + CPEVENT_RATINGS = ( CPEVENT_NONE + 1 ) , + CPEVENT_COPP = ( CPEVENT_RATINGS + 1 ) , + CPEVENT_LICENSE = ( CPEVENT_COPP + 1 ) , + CPEVENT_ROLLBACK = ( CPEVENT_LICENSE + 1 ) , + CPEVENT_SAC = ( CPEVENT_ROLLBACK + 1 ) , + CPEVENT_DOWNRES = ( CPEVENT_SAC + 1 ) , + CPEVENT_STUBLIB = ( CPEVENT_DOWNRES + 1 ) , + CPEVENT_UNTRUSTEDGRAPH = ( CPEVENT_STUBLIB + 1 ) , + CPEVENT_PROTECTWINDOWED = ( CPEVENT_UNTRUSTEDGRAPH + 1 ) + } CPEvents; + +typedef /* [v1_enum] */ +enum RevokedComponent + { + REVOKED_COPP = 0, + REVOKED_SAC = ( REVOKED_COPP + 1 ) , + REVOKED_APP_STUB = ( REVOKED_SAC + 1 ) , + REVOKED_SECURE_PIPELINE = ( REVOKED_APP_STUB + 1 ) , + REVOKED_MAX_TYPES = ( REVOKED_SECURE_PIPELINE + 1 ) + } RevokedComponent; + +typedef /* [v1_enum] */ +enum EnTag_Mode + { + EnTag_Remove = 0, + EnTag_Once = 0x1, + EnTag_Repeat = 0x2 + } EnTag_Mode; + +typedef /* [v1_enum][uuid] */ DECLSPEC_UUID("6F8C2442-2BFB-4180-9EE5-EA1FB47AE35C") +enum COPPEventBlockReason + { + COPP_Unknown = -1, + COPP_BadDriver = 0, + COPP_NoCardHDCPSupport = 1, + COPP_NoMonitorHDCPSupport = 2, + COPP_BadCertificate = 3, + COPP_InvalidBusProtection = 4, + COPP_AeroGlassOff = 5, + COPP_RogueApp = 6, + COPP_ForbiddenVideo = 7, + COPP_Activate = 8, + COPP_DigitalAudioUnprotected = 9 + } COPPEventBlockReason; + +typedef /* [v1_enum][uuid] */ DECLSPEC_UUID("57BCA1BE-DF7A-434e-8B89-26D6A0541FDA") +enum LicenseEventBlockReason + { + LIC_BadLicense = 0, + LIC_NeedIndiv = 1, + LIC_Expired = 2, + LIC_NeedActivation = 3, + LIC_ExtenderBlocked = 4 + } LicenseEventBlockReason; + +typedef /* [v1_enum][uuid] */ DECLSPEC_UUID("D5CC1CDC-EF31-48dc-95B8-AFD34C08036B") +enum DownResEventParam + { + DOWNRES_Always = 0, + DOWNRES_InWindowOnly = 1, + DOWNRES_Undefined = 2 + } DownResEventParam; + +#pragma region Desktop Family +#pragma endregion +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_encdec_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_encdec_0000_0000_v0_0_s_ifspec; + +#ifndef __IETFilterConfig_INTERFACE_DEFINED__ +#define __IETFilterConfig_INTERFACE_DEFINED__ + +/* interface IETFilterConfig */ +/* [unique][helpstring][uuid][object][restricted] */ + + +EXTERN_C const IID IID_IETFilterConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C4C4C4D1-0049-4E2B-98FB-9537F6CE516D") + IETFilterConfig : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InitLicense( + /* [in] */ int LicenseId) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSecureChannelObject( + /* [out] */ __RPC__deref_out_opt IUnknown **ppUnkDRMSecureChannel) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IETFilterConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IETFilterConfig * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IETFilterConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IETFilterConfig * This); + + DECLSPEC_XFGVIRT(IETFilterConfig, InitLicense) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *InitLicense )( + __RPC__in IETFilterConfig * This, + /* [in] */ int LicenseId); + + DECLSPEC_XFGVIRT(IETFilterConfig, GetSecureChannelObject) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSecureChannelObject )( + __RPC__in IETFilterConfig * This, + /* [out] */ __RPC__deref_out_opt IUnknown **ppUnkDRMSecureChannel); + + END_INTERFACE + } IETFilterConfigVtbl; + + interface IETFilterConfig + { + CONST_VTBL struct IETFilterConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IETFilterConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IETFilterConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IETFilterConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IETFilterConfig_InitLicense(This,LicenseId) \ + ( (This)->lpVtbl -> InitLicense(This,LicenseId) ) + +#define IETFilterConfig_GetSecureChannelObject(This,ppUnkDRMSecureChannel) \ + ( (This)->lpVtbl -> GetSecureChannelObject(This,ppUnkDRMSecureChannel) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IETFilterConfig_INTERFACE_DEFINED__ */ + + +#ifndef __IDTFilterConfig_INTERFACE_DEFINED__ +#define __IDTFilterConfig_INTERFACE_DEFINED__ + +/* interface IDTFilterConfig */ +/* [unique][helpstring][uuid][object][restricted] */ + + +EXTERN_C const IID IID_IDTFilterConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C4C4C4D2-0049-4E2B-98FB-9537F6CE516D") + IDTFilterConfig : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSecureChannelObject( + /* [out] */ __RPC__deref_out_opt IUnknown **ppUnkDRMSecureChannel) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDTFilterConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDTFilterConfig * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDTFilterConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDTFilterConfig * This); + + DECLSPEC_XFGVIRT(IDTFilterConfig, GetSecureChannelObject) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSecureChannelObject )( + __RPC__in IDTFilterConfig * This, + /* [out] */ __RPC__deref_out_opt IUnknown **ppUnkDRMSecureChannel); + + END_INTERFACE + } IDTFilterConfigVtbl; + + interface IDTFilterConfig + { + CONST_VTBL struct IDTFilterConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDTFilterConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDTFilterConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDTFilterConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDTFilterConfig_GetSecureChannelObject(This,ppUnkDRMSecureChannel) \ + ( (This)->lpVtbl -> GetSecureChannelObject(This,ppUnkDRMSecureChannel) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDTFilterConfig_INTERFACE_DEFINED__ */ + + +#ifndef __IXDSCodecConfig_INTERFACE_DEFINED__ +#define __IXDSCodecConfig_INTERFACE_DEFINED__ + +/* interface IXDSCodecConfig */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IXDSCodecConfig; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C4C4C4D3-0049-4E2B-98FB-9537F6CE516D") + IXDSCodecConfig : public IUnknown + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetSecureChannelObject( + /* [out] */ __RPC__deref_out_opt IUnknown **ppUnkDRMSecureChannel) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetPauseBufferTime( + /* [in] */ DWORD dwPauseBufferTime) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IXDSCodecConfigVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IXDSCodecConfig * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IXDSCodecConfig * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IXDSCodecConfig * This); + + DECLSPEC_XFGVIRT(IXDSCodecConfig, GetSecureChannelObject) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetSecureChannelObject )( + __RPC__in IXDSCodecConfig * This, + /* [out] */ __RPC__deref_out_opt IUnknown **ppUnkDRMSecureChannel); + + DECLSPEC_XFGVIRT(IXDSCodecConfig, SetPauseBufferTime) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetPauseBufferTime )( + __RPC__in IXDSCodecConfig * This, + /* [in] */ DWORD dwPauseBufferTime); + + END_INTERFACE + } IXDSCodecConfigVtbl; + + interface IXDSCodecConfig + { + CONST_VTBL struct IXDSCodecConfigVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IXDSCodecConfig_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IXDSCodecConfig_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IXDSCodecConfig_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IXDSCodecConfig_GetSecureChannelObject(This,ppUnkDRMSecureChannel) \ + ( (This)->lpVtbl -> GetSecureChannelObject(This,ppUnkDRMSecureChannel) ) + +#define IXDSCodecConfig_SetPauseBufferTime(This,dwPauseBufferTime) \ + ( (This)->lpVtbl -> SetPauseBufferTime(This,dwPauseBufferTime) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IXDSCodecConfig_INTERFACE_DEFINED__ */ + + +#ifndef __IDTFilterLicenseRenewal_INTERFACE_DEFINED__ +#define __IDTFilterLicenseRenewal_INTERFACE_DEFINED__ + +/* interface IDTFilterLicenseRenewal */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDTFilterLicenseRenewal; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("8A78B317-E405-4a43-994A-620D8F5CE25E") + IDTFilterLicenseRenewal : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetLicenseRenewalData( + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwszFileName, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwszExpiredKid, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwszTunerId) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDTFilterLicenseRenewalVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDTFilterLicenseRenewal * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDTFilterLicenseRenewal * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDTFilterLicenseRenewal * This); + + DECLSPEC_XFGVIRT(IDTFilterLicenseRenewal, GetLicenseRenewalData) + HRESULT ( STDMETHODCALLTYPE *GetLicenseRenewalData )( + __RPC__in IDTFilterLicenseRenewal * This, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwszFileName, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwszExpiredKid, + /* [out] */ __RPC__deref_out_opt LPWSTR *ppwszTunerId); + + END_INTERFACE + } IDTFilterLicenseRenewalVtbl; + + interface IDTFilterLicenseRenewal + { + CONST_VTBL struct IDTFilterLicenseRenewalVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDTFilterLicenseRenewal_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDTFilterLicenseRenewal_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDTFilterLicenseRenewal_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDTFilterLicenseRenewal_GetLicenseRenewalData(This,ppwszFileName,ppwszExpiredKid,ppwszTunerId) \ + ( (This)->lpVtbl -> GetLicenseRenewalData(This,ppwszFileName,ppwszExpiredKid,ppwszTunerId) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDTFilterLicenseRenewal_INTERFACE_DEFINED__ */ + + +#ifndef __IPTFilterLicenseRenewal_INTERFACE_DEFINED__ +#define __IPTFilterLicenseRenewal_INTERFACE_DEFINED__ + +/* interface IPTFilterLicenseRenewal */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IPTFilterLicenseRenewal; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("26D836A5-0C15-44c7-AC59-B0DA8728F240") + IPTFilterLicenseRenewal : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE RenewLicenses( + /* [in] */ __RPC__in WCHAR *wszFileName, + /* [in] */ __RPC__in WCHAR *wszExpiredKid, + /* [in] */ DWORD dwCallersId, + /* [in] */ BOOL bHighPriority) = 0; + + virtual HRESULT STDMETHODCALLTYPE CancelLicenseRenewal( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IPTFilterLicenseRenewalVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IPTFilterLicenseRenewal * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IPTFilterLicenseRenewal * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IPTFilterLicenseRenewal * This); + + DECLSPEC_XFGVIRT(IPTFilterLicenseRenewal, RenewLicenses) + HRESULT ( STDMETHODCALLTYPE *RenewLicenses )( + __RPC__in IPTFilterLicenseRenewal * This, + /* [in] */ __RPC__in WCHAR *wszFileName, + /* [in] */ __RPC__in WCHAR *wszExpiredKid, + /* [in] */ DWORD dwCallersId, + /* [in] */ BOOL bHighPriority); + + DECLSPEC_XFGVIRT(IPTFilterLicenseRenewal, CancelLicenseRenewal) + HRESULT ( STDMETHODCALLTYPE *CancelLicenseRenewal )( + __RPC__in IPTFilterLicenseRenewal * This); + + END_INTERFACE + } IPTFilterLicenseRenewalVtbl; + + interface IPTFilterLicenseRenewal + { + CONST_VTBL struct IPTFilterLicenseRenewalVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IPTFilterLicenseRenewal_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IPTFilterLicenseRenewal_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IPTFilterLicenseRenewal_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IPTFilterLicenseRenewal_RenewLicenses(This,wszFileName,wszExpiredKid,dwCallersId,bHighPriority) \ + ( (This)->lpVtbl -> RenewLicenses(This,wszFileName,wszExpiredKid,dwCallersId,bHighPriority) ) + +#define IPTFilterLicenseRenewal_CancelLicenseRenewal(This) \ + ( (This)->lpVtbl -> CancelLicenseRenewal(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IPTFilterLicenseRenewal_INTERFACE_DEFINED__ */ + + +#ifndef __IMceBurnerControl_INTERFACE_DEFINED__ +#define __IMceBurnerControl_INTERFACE_DEFINED__ + +/* interface IMceBurnerControl */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IMceBurnerControl; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5A86B91A-E71E-46c1-88A9-9BB338710552") + IMceBurnerControl : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE GetBurnerNoDecryption( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IMceBurnerControlVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IMceBurnerControl * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IMceBurnerControl * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IMceBurnerControl * This); + + DECLSPEC_XFGVIRT(IMceBurnerControl, GetBurnerNoDecryption) + HRESULT ( STDMETHODCALLTYPE *GetBurnerNoDecryption )( + __RPC__in IMceBurnerControl * This); + + END_INTERFACE + } IMceBurnerControlVtbl; + + interface IMceBurnerControl + { + CONST_VTBL struct IMceBurnerControlVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IMceBurnerControl_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IMceBurnerControl_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IMceBurnerControl_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IMceBurnerControl_GetBurnerNoDecryption(This) \ + ( (This)->lpVtbl -> GetBurnerNoDecryption(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IMceBurnerControl_INTERFACE_DEFINED__ */ + + + +#ifndef __EncDec_LIBRARY_DEFINED__ +#define __EncDec_LIBRARY_DEFINED__ + +/* library EncDec */ +/* [helpstring][version][uuid] */ + + +EXTERN_C const IID LIBID_EncDec; + +#ifndef __IETFilter_INTERFACE_DEFINED__ +#define __IETFilter_INTERFACE_DEFINED__ + +/* interface IETFilter */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IETFilter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C4C4C4B1-0049-4E2B-98FB-9537F6CE516D") + IETFilter : public IUnknown + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EvalRatObjOK( + /* [retval][out] */ __RPC__out HRESULT *pHrCoCreateRetVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetCurrRating( + /* [out] */ __RPC__out EnTvRat_System *pEnSystem, + /* [out] */ __RPC__out EnTvRat_GenericLevel *pEnRating, + /* [out] */ __RPC__out LONG *plbfEnAttr) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetCurrLicenseExpDate( + /* [in] */ __RPC__in ProtType *protType, + /* [out] */ __RPC__out long *lpDateTime) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetLastErrorCode( void) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetRecordingOn( + BOOL fRecState) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IETFilterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IETFilter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IETFilter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IETFilter * This); + + DECLSPEC_XFGVIRT(IETFilter, get_EvalRatObjOK) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EvalRatObjOK )( + __RPC__in IETFilter * This, + /* [retval][out] */ __RPC__out HRESULT *pHrCoCreateRetVal); + + DECLSPEC_XFGVIRT(IETFilter, GetCurrRating) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCurrRating )( + __RPC__in IETFilter * This, + /* [out] */ __RPC__out EnTvRat_System *pEnSystem, + /* [out] */ __RPC__out EnTvRat_GenericLevel *pEnRating, + /* [out] */ __RPC__out LONG *plbfEnAttr); + + DECLSPEC_XFGVIRT(IETFilter, GetCurrLicenseExpDate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCurrLicenseExpDate )( + __RPC__in IETFilter * This, + /* [in] */ __RPC__in ProtType *protType, + /* [out] */ __RPC__out long *lpDateTime); + + DECLSPEC_XFGVIRT(IETFilter, GetLastErrorCode) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLastErrorCode )( + __RPC__in IETFilter * This); + + DECLSPEC_XFGVIRT(IETFilter, SetRecordingOn) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetRecordingOn )( + __RPC__in IETFilter * This, + BOOL fRecState); + + END_INTERFACE + } IETFilterVtbl; + + interface IETFilter + { + CONST_VTBL struct IETFilterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IETFilter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IETFilter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IETFilter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IETFilter_get_EvalRatObjOK(This,pHrCoCreateRetVal) \ + ( (This)->lpVtbl -> get_EvalRatObjOK(This,pHrCoCreateRetVal) ) + +#define IETFilter_GetCurrRating(This,pEnSystem,pEnRating,plbfEnAttr) \ + ( (This)->lpVtbl -> GetCurrRating(This,pEnSystem,pEnRating,plbfEnAttr) ) + +#define IETFilter_GetCurrLicenseExpDate(This,protType,lpDateTime) \ + ( (This)->lpVtbl -> GetCurrLicenseExpDate(This,protType,lpDateTime) ) + +#define IETFilter_GetLastErrorCode(This) \ + ( (This)->lpVtbl -> GetLastErrorCode(This) ) + +#define IETFilter_SetRecordingOn(This,fRecState) \ + ( (This)->lpVtbl -> SetRecordingOn(This,fRecState) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IETFilter_INTERFACE_DEFINED__ */ + + +#ifndef __IETFilterEvents_DISPINTERFACE_DEFINED__ +#define __IETFilterEvents_DISPINTERFACE_DEFINED__ + +/* dispinterface IETFilterEvents */ +/* [helpstring][uuid] */ + + +EXTERN_C const IID DIID_IETFilterEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C4C4C4C1-0049-4E2B-98FB-9537F6CE516D") + IETFilterEvents : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct IETFilterEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IETFilterEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IETFilterEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IETFilterEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IETFilterEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IETFilterEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IETFilterEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IETFilterEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } IETFilterEventsVtbl; + + interface IETFilterEvents + { + CONST_VTBL struct IETFilterEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IETFilterEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IETFilterEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IETFilterEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IETFilterEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IETFilterEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IETFilterEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IETFilterEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* __IETFilterEvents_DISPINTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_ETFilter; + +#ifdef __cplusplus + +class DECLSPEC_UUID("C4C4C4F1-0049-4E2B-98FB-9537F6CE516D") +ETFilter; +#endif + +#ifndef __IDTFilter_INTERFACE_DEFINED__ +#define __IDTFilter_INTERFACE_DEFINED__ + +/* interface IDTFilter */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDTFilter; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C4C4C4B2-0049-4E2B-98FB-9537F6CE516D") + IDTFilter : public IUnknown + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_EvalRatObjOK( + /* [retval][out] */ __RPC__out HRESULT *pHrCoCreateRetVal) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetCurrRating( + /* [out] */ __RPC__out EnTvRat_System *pEnSystem, + /* [out] */ __RPC__out EnTvRat_GenericLevel *pEnRating, + /* [out] */ __RPC__out LONG *plbfEnAttr) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BlockedRatingAttributes( + /* [in] */ EnTvRat_System enSystem, + /* [in] */ EnTvRat_GenericLevel enLevel, + /* [retval][out] */ __RPC__out LONG *plbfEnAttr) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BlockedRatingAttributes( + /* [in] */ EnTvRat_System enSystem, + /* [in] */ EnTvRat_GenericLevel enLevel, + /* [in] */ LONG lbfAttrs) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BlockUnRated( + /* [retval][out] */ __RPC__out BOOL *pfBlockUnRatedShows) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BlockUnRated( + /* [in] */ BOOL fBlockUnRatedShows) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_BlockUnRatedDelay( + /* [retval][out] */ __RPC__out LONG *pmsecsDelayBeforeBlock) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_BlockUnRatedDelay( + /* [in] */ LONG msecsDelayBeforeBlock) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDTFilterVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDTFilter * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDTFilter * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDTFilter * This); + + DECLSPEC_XFGVIRT(IDTFilter, get_EvalRatObjOK) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EvalRatObjOK )( + __RPC__in IDTFilter * This, + /* [retval][out] */ __RPC__out HRESULT *pHrCoCreateRetVal); + + DECLSPEC_XFGVIRT(IDTFilter, GetCurrRating) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCurrRating )( + __RPC__in IDTFilter * This, + /* [out] */ __RPC__out EnTvRat_System *pEnSystem, + /* [out] */ __RPC__out EnTvRat_GenericLevel *pEnRating, + /* [out] */ __RPC__out LONG *plbfEnAttr); + + DECLSPEC_XFGVIRT(IDTFilter, get_BlockedRatingAttributes) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockedRatingAttributes )( + __RPC__in IDTFilter * This, + /* [in] */ EnTvRat_System enSystem, + /* [in] */ EnTvRat_GenericLevel enLevel, + /* [retval][out] */ __RPC__out LONG *plbfEnAttr); + + DECLSPEC_XFGVIRT(IDTFilter, put_BlockedRatingAttributes) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockedRatingAttributes )( + __RPC__in IDTFilter * This, + /* [in] */ EnTvRat_System enSystem, + /* [in] */ EnTvRat_GenericLevel enLevel, + /* [in] */ LONG lbfAttrs); + + DECLSPEC_XFGVIRT(IDTFilter, get_BlockUnRated) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockUnRated )( + __RPC__in IDTFilter * This, + /* [retval][out] */ __RPC__out BOOL *pfBlockUnRatedShows); + + DECLSPEC_XFGVIRT(IDTFilter, put_BlockUnRated) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockUnRated )( + __RPC__in IDTFilter * This, + /* [in] */ BOOL fBlockUnRatedShows); + + DECLSPEC_XFGVIRT(IDTFilter, get_BlockUnRatedDelay) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockUnRatedDelay )( + __RPC__in IDTFilter * This, + /* [retval][out] */ __RPC__out LONG *pmsecsDelayBeforeBlock); + + DECLSPEC_XFGVIRT(IDTFilter, put_BlockUnRatedDelay) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockUnRatedDelay )( + __RPC__in IDTFilter * This, + /* [in] */ LONG msecsDelayBeforeBlock); + + END_INTERFACE + } IDTFilterVtbl; + + interface IDTFilter + { + CONST_VTBL struct IDTFilterVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDTFilter_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDTFilter_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDTFilter_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDTFilter_get_EvalRatObjOK(This,pHrCoCreateRetVal) \ + ( (This)->lpVtbl -> get_EvalRatObjOK(This,pHrCoCreateRetVal) ) + +#define IDTFilter_GetCurrRating(This,pEnSystem,pEnRating,plbfEnAttr) \ + ( (This)->lpVtbl -> GetCurrRating(This,pEnSystem,pEnRating,plbfEnAttr) ) + +#define IDTFilter_get_BlockedRatingAttributes(This,enSystem,enLevel,plbfEnAttr) \ + ( (This)->lpVtbl -> get_BlockedRatingAttributes(This,enSystem,enLevel,plbfEnAttr) ) + +#define IDTFilter_put_BlockedRatingAttributes(This,enSystem,enLevel,lbfAttrs) \ + ( (This)->lpVtbl -> put_BlockedRatingAttributes(This,enSystem,enLevel,lbfAttrs) ) + +#define IDTFilter_get_BlockUnRated(This,pfBlockUnRatedShows) \ + ( (This)->lpVtbl -> get_BlockUnRated(This,pfBlockUnRatedShows) ) + +#define IDTFilter_put_BlockUnRated(This,fBlockUnRatedShows) \ + ( (This)->lpVtbl -> put_BlockUnRated(This,fBlockUnRatedShows) ) + +#define IDTFilter_get_BlockUnRatedDelay(This,pmsecsDelayBeforeBlock) \ + ( (This)->lpVtbl -> get_BlockUnRatedDelay(This,pmsecsDelayBeforeBlock) ) + +#define IDTFilter_put_BlockUnRatedDelay(This,msecsDelayBeforeBlock) \ + ( (This)->lpVtbl -> put_BlockUnRatedDelay(This,msecsDelayBeforeBlock) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDTFilter_INTERFACE_DEFINED__ */ + + +#ifndef __IDTFilter2_INTERFACE_DEFINED__ +#define __IDTFilter2_INTERFACE_DEFINED__ + +/* interface IDTFilter2 */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDTFilter2; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C4C4C4B4-0049-4E2B-98FB-9537F6CE516D") + IDTFilter2 : public IDTFilter + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ChallengeUrl( + /* [out] */ __RPC__deref_out_opt BSTR *pbstrChallengeUrl) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetCurrLicenseExpDate( + /* [in] */ __RPC__in ProtType *protType, + /* [out] */ __RPC__out long *lpDateTime) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetLastErrorCode( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDTFilter2Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDTFilter2 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDTFilter2 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDTFilter2 * This); + + DECLSPEC_XFGVIRT(IDTFilter, get_EvalRatObjOK) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EvalRatObjOK )( + __RPC__in IDTFilter2 * This, + /* [retval][out] */ __RPC__out HRESULT *pHrCoCreateRetVal); + + DECLSPEC_XFGVIRT(IDTFilter, GetCurrRating) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCurrRating )( + __RPC__in IDTFilter2 * This, + /* [out] */ __RPC__out EnTvRat_System *pEnSystem, + /* [out] */ __RPC__out EnTvRat_GenericLevel *pEnRating, + /* [out] */ __RPC__out LONG *plbfEnAttr); + + DECLSPEC_XFGVIRT(IDTFilter, get_BlockedRatingAttributes) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockedRatingAttributes )( + __RPC__in IDTFilter2 * This, + /* [in] */ EnTvRat_System enSystem, + /* [in] */ EnTvRat_GenericLevel enLevel, + /* [retval][out] */ __RPC__out LONG *plbfEnAttr); + + DECLSPEC_XFGVIRT(IDTFilter, put_BlockedRatingAttributes) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockedRatingAttributes )( + __RPC__in IDTFilter2 * This, + /* [in] */ EnTvRat_System enSystem, + /* [in] */ EnTvRat_GenericLevel enLevel, + /* [in] */ LONG lbfAttrs); + + DECLSPEC_XFGVIRT(IDTFilter, get_BlockUnRated) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockUnRated )( + __RPC__in IDTFilter2 * This, + /* [retval][out] */ __RPC__out BOOL *pfBlockUnRatedShows); + + DECLSPEC_XFGVIRT(IDTFilter, put_BlockUnRated) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockUnRated )( + __RPC__in IDTFilter2 * This, + /* [in] */ BOOL fBlockUnRatedShows); + + DECLSPEC_XFGVIRT(IDTFilter, get_BlockUnRatedDelay) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockUnRatedDelay )( + __RPC__in IDTFilter2 * This, + /* [retval][out] */ __RPC__out LONG *pmsecsDelayBeforeBlock); + + DECLSPEC_XFGVIRT(IDTFilter, put_BlockUnRatedDelay) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockUnRatedDelay )( + __RPC__in IDTFilter2 * This, + /* [in] */ LONG msecsDelayBeforeBlock); + + DECLSPEC_XFGVIRT(IDTFilter2, get_ChallengeUrl) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ChallengeUrl )( + __RPC__in IDTFilter2 * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrChallengeUrl); + + DECLSPEC_XFGVIRT(IDTFilter2, GetCurrLicenseExpDate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCurrLicenseExpDate )( + __RPC__in IDTFilter2 * This, + /* [in] */ __RPC__in ProtType *protType, + /* [out] */ __RPC__out long *lpDateTime); + + DECLSPEC_XFGVIRT(IDTFilter2, GetLastErrorCode) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLastErrorCode )( + __RPC__in IDTFilter2 * This); + + END_INTERFACE + } IDTFilter2Vtbl; + + interface IDTFilter2 + { + CONST_VTBL struct IDTFilter2Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDTFilter2_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDTFilter2_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDTFilter2_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDTFilter2_get_EvalRatObjOK(This,pHrCoCreateRetVal) \ + ( (This)->lpVtbl -> get_EvalRatObjOK(This,pHrCoCreateRetVal) ) + +#define IDTFilter2_GetCurrRating(This,pEnSystem,pEnRating,plbfEnAttr) \ + ( (This)->lpVtbl -> GetCurrRating(This,pEnSystem,pEnRating,plbfEnAttr) ) + +#define IDTFilter2_get_BlockedRatingAttributes(This,enSystem,enLevel,plbfEnAttr) \ + ( (This)->lpVtbl -> get_BlockedRatingAttributes(This,enSystem,enLevel,plbfEnAttr) ) + +#define IDTFilter2_put_BlockedRatingAttributes(This,enSystem,enLevel,lbfAttrs) \ + ( (This)->lpVtbl -> put_BlockedRatingAttributes(This,enSystem,enLevel,lbfAttrs) ) + +#define IDTFilter2_get_BlockUnRated(This,pfBlockUnRatedShows) \ + ( (This)->lpVtbl -> get_BlockUnRated(This,pfBlockUnRatedShows) ) + +#define IDTFilter2_put_BlockUnRated(This,fBlockUnRatedShows) \ + ( (This)->lpVtbl -> put_BlockUnRated(This,fBlockUnRatedShows) ) + +#define IDTFilter2_get_BlockUnRatedDelay(This,pmsecsDelayBeforeBlock) \ + ( (This)->lpVtbl -> get_BlockUnRatedDelay(This,pmsecsDelayBeforeBlock) ) + +#define IDTFilter2_put_BlockUnRatedDelay(This,msecsDelayBeforeBlock) \ + ( (This)->lpVtbl -> put_BlockUnRatedDelay(This,msecsDelayBeforeBlock) ) + + +#define IDTFilter2_get_ChallengeUrl(This,pbstrChallengeUrl) \ + ( (This)->lpVtbl -> get_ChallengeUrl(This,pbstrChallengeUrl) ) + +#define IDTFilter2_GetCurrLicenseExpDate(This,protType,lpDateTime) \ + ( (This)->lpVtbl -> GetCurrLicenseExpDate(This,protType,lpDateTime) ) + +#define IDTFilter2_GetLastErrorCode(This) \ + ( (This)->lpVtbl -> GetLastErrorCode(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDTFilter2_INTERFACE_DEFINED__ */ + + +#ifndef __IDTFilter3_INTERFACE_DEFINED__ +#define __IDTFilter3_INTERFACE_DEFINED__ + +/* interface IDTFilter3 */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IDTFilter3; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("513998cc-e929-4cdf-9fbd-bad1e0314866") + IDTFilter3 : public IDTFilter2 + { + public: + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetProtectionType( + /* [out] */ __RPC__out ProtType *pProtectionType) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE LicenseHasExpirationDate( + /* [out] */ __RPC__out BOOL *pfLicenseHasExpirationDate) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetRights( + /* [in] */ __RPC__in BSTR bstrRights) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IDTFilter3Vtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDTFilter3 * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDTFilter3 * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDTFilter3 * This); + + DECLSPEC_XFGVIRT(IDTFilter, get_EvalRatObjOK) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_EvalRatObjOK )( + __RPC__in IDTFilter3 * This, + /* [retval][out] */ __RPC__out HRESULT *pHrCoCreateRetVal); + + DECLSPEC_XFGVIRT(IDTFilter, GetCurrRating) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCurrRating )( + __RPC__in IDTFilter3 * This, + /* [out] */ __RPC__out EnTvRat_System *pEnSystem, + /* [out] */ __RPC__out EnTvRat_GenericLevel *pEnRating, + /* [out] */ __RPC__out LONG *plbfEnAttr); + + DECLSPEC_XFGVIRT(IDTFilter, get_BlockedRatingAttributes) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockedRatingAttributes )( + __RPC__in IDTFilter3 * This, + /* [in] */ EnTvRat_System enSystem, + /* [in] */ EnTvRat_GenericLevel enLevel, + /* [retval][out] */ __RPC__out LONG *plbfEnAttr); + + DECLSPEC_XFGVIRT(IDTFilter, put_BlockedRatingAttributes) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockedRatingAttributes )( + __RPC__in IDTFilter3 * This, + /* [in] */ EnTvRat_System enSystem, + /* [in] */ EnTvRat_GenericLevel enLevel, + /* [in] */ LONG lbfAttrs); + + DECLSPEC_XFGVIRT(IDTFilter, get_BlockUnRated) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockUnRated )( + __RPC__in IDTFilter3 * This, + /* [retval][out] */ __RPC__out BOOL *pfBlockUnRatedShows); + + DECLSPEC_XFGVIRT(IDTFilter, put_BlockUnRated) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockUnRated )( + __RPC__in IDTFilter3 * This, + /* [in] */ BOOL fBlockUnRatedShows); + + DECLSPEC_XFGVIRT(IDTFilter, get_BlockUnRatedDelay) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_BlockUnRatedDelay )( + __RPC__in IDTFilter3 * This, + /* [retval][out] */ __RPC__out LONG *pmsecsDelayBeforeBlock); + + DECLSPEC_XFGVIRT(IDTFilter, put_BlockUnRatedDelay) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_BlockUnRatedDelay )( + __RPC__in IDTFilter3 * This, + /* [in] */ LONG msecsDelayBeforeBlock); + + DECLSPEC_XFGVIRT(IDTFilter2, get_ChallengeUrl) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ChallengeUrl )( + __RPC__in IDTFilter3 * This, + /* [out] */ __RPC__deref_out_opt BSTR *pbstrChallengeUrl); + + DECLSPEC_XFGVIRT(IDTFilter2, GetCurrLicenseExpDate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCurrLicenseExpDate )( + __RPC__in IDTFilter3 * This, + /* [in] */ __RPC__in ProtType *protType, + /* [out] */ __RPC__out long *lpDateTime); + + DECLSPEC_XFGVIRT(IDTFilter2, GetLastErrorCode) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLastErrorCode )( + __RPC__in IDTFilter3 * This); + + DECLSPEC_XFGVIRT(IDTFilter3, GetProtectionType) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetProtectionType )( + __RPC__in IDTFilter3 * This, + /* [out] */ __RPC__out ProtType *pProtectionType); + + DECLSPEC_XFGVIRT(IDTFilter3, LicenseHasExpirationDate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *LicenseHasExpirationDate )( + __RPC__in IDTFilter3 * This, + /* [out] */ __RPC__out BOOL *pfLicenseHasExpirationDate); + + DECLSPEC_XFGVIRT(IDTFilter3, SetRights) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *SetRights )( + __RPC__in IDTFilter3 * This, + /* [in] */ __RPC__in BSTR bstrRights); + + END_INTERFACE + } IDTFilter3Vtbl; + + interface IDTFilter3 + { + CONST_VTBL struct IDTFilter3Vtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDTFilter3_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDTFilter3_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDTFilter3_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDTFilter3_get_EvalRatObjOK(This,pHrCoCreateRetVal) \ + ( (This)->lpVtbl -> get_EvalRatObjOK(This,pHrCoCreateRetVal) ) + +#define IDTFilter3_GetCurrRating(This,pEnSystem,pEnRating,plbfEnAttr) \ + ( (This)->lpVtbl -> GetCurrRating(This,pEnSystem,pEnRating,plbfEnAttr) ) + +#define IDTFilter3_get_BlockedRatingAttributes(This,enSystem,enLevel,plbfEnAttr) \ + ( (This)->lpVtbl -> get_BlockedRatingAttributes(This,enSystem,enLevel,plbfEnAttr) ) + +#define IDTFilter3_put_BlockedRatingAttributes(This,enSystem,enLevel,lbfAttrs) \ + ( (This)->lpVtbl -> put_BlockedRatingAttributes(This,enSystem,enLevel,lbfAttrs) ) + +#define IDTFilter3_get_BlockUnRated(This,pfBlockUnRatedShows) \ + ( (This)->lpVtbl -> get_BlockUnRated(This,pfBlockUnRatedShows) ) + +#define IDTFilter3_put_BlockUnRated(This,fBlockUnRatedShows) \ + ( (This)->lpVtbl -> put_BlockUnRated(This,fBlockUnRatedShows) ) + +#define IDTFilter3_get_BlockUnRatedDelay(This,pmsecsDelayBeforeBlock) \ + ( (This)->lpVtbl -> get_BlockUnRatedDelay(This,pmsecsDelayBeforeBlock) ) + +#define IDTFilter3_put_BlockUnRatedDelay(This,msecsDelayBeforeBlock) \ + ( (This)->lpVtbl -> put_BlockUnRatedDelay(This,msecsDelayBeforeBlock) ) + + +#define IDTFilter3_get_ChallengeUrl(This,pbstrChallengeUrl) \ + ( (This)->lpVtbl -> get_ChallengeUrl(This,pbstrChallengeUrl) ) + +#define IDTFilter3_GetCurrLicenseExpDate(This,protType,lpDateTime) \ + ( (This)->lpVtbl -> GetCurrLicenseExpDate(This,protType,lpDateTime) ) + +#define IDTFilter3_GetLastErrorCode(This) \ + ( (This)->lpVtbl -> GetLastErrorCode(This) ) + + +#define IDTFilter3_GetProtectionType(This,pProtectionType) \ + ( (This)->lpVtbl -> GetProtectionType(This,pProtectionType) ) + +#define IDTFilter3_LicenseHasExpirationDate(This,pfLicenseHasExpirationDate) \ + ( (This)->lpVtbl -> LicenseHasExpirationDate(This,pfLicenseHasExpirationDate) ) + +#define IDTFilter3_SetRights(This,bstrRights) \ + ( (This)->lpVtbl -> SetRights(This,bstrRights) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IDTFilter3_INTERFACE_DEFINED__ */ + + +#ifndef __IDTFilterEvents_DISPINTERFACE_DEFINED__ +#define __IDTFilterEvents_DISPINTERFACE_DEFINED__ + +/* dispinterface IDTFilterEvents */ +/* [helpstring][uuid] */ + + +EXTERN_C const IID DIID_IDTFilterEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C4C4C4C2-0049-4E2B-98FB-9537F6CE516D") + IDTFilterEvents : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct IDTFilterEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IDTFilterEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IDTFilterEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IDTFilterEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IDTFilterEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IDTFilterEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IDTFilterEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IDTFilterEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } IDTFilterEventsVtbl; + + interface IDTFilterEvents + { + CONST_VTBL struct IDTFilterEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IDTFilterEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IDTFilterEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IDTFilterEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IDTFilterEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IDTFilterEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IDTFilterEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IDTFilterEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* __IDTFilterEvents_DISPINTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_DTFilter; + +#ifdef __cplusplus + +class DECLSPEC_UUID("C4C4C4F2-0049-4E2B-98FB-9537F6CE516D") +DTFilter; +#endif + +#ifndef __IXDSCodec_INTERFACE_DEFINED__ +#define __IXDSCodec_INTERFACE_DEFINED__ + +/* interface IXDSCodec */ +/* [unique][helpstring][uuid][object] */ + + +EXTERN_C const IID IID_IXDSCodec; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C4C4C4B3-0049-4E2B-98FB-9537F6CE516D") + IXDSCodec : public IUnknown + { + public: + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_XDSToRatObjOK( + /* [retval][out] */ __RPC__out HRESULT *pHrCoCreateRetVal) = 0; + + virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_CCSubstreamService( + /* [in] */ long SubstreamMask) = 0; + + virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_CCSubstreamService( + /* [retval][out] */ __RPC__out long *pSubstreamMask) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetContentAdvisoryRating( + /* [out] */ __RPC__out PackedTvRating *pRat, + /* [out] */ __RPC__out long *pPktSeqID, + /* [out] */ __RPC__out long *pCallSeqID, + /* [out] */ __RPC__out REFERENCE_TIME *pTimeStart, + /* [out] */ __RPC__out REFERENCE_TIME *pTimeEnd) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetXDSPacket( + /* [out] */ __RPC__out long *pXDSClassPkt, + /* [out] */ __RPC__out long *pXDSTypePkt, + /* [out] */ __RPC__deref_out_opt BSTR *pBstrXDSPkt, + /* [out] */ __RPC__out long *pPktSeqID, + /* [out] */ __RPC__out long *pCallSeqID, + /* [out] */ __RPC__out REFERENCE_TIME *pTimeStart, + /* [out] */ __RPC__out REFERENCE_TIME *pTimeEnd) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetCurrLicenseExpDate( + /* [in] */ __RPC__in ProtType *protType, + /* [out] */ __RPC__out long *lpDateTime) = 0; + + virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetLastErrorCode( void) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IXDSCodecVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IXDSCodec * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IXDSCodec * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IXDSCodec * This); + + DECLSPEC_XFGVIRT(IXDSCodec, get_XDSToRatObjOK) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_XDSToRatObjOK )( + __RPC__in IXDSCodec * This, + /* [retval][out] */ __RPC__out HRESULT *pHrCoCreateRetVal); + + DECLSPEC_XFGVIRT(IXDSCodec, put_CCSubstreamService) + /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_CCSubstreamService )( + __RPC__in IXDSCodec * This, + /* [in] */ long SubstreamMask); + + DECLSPEC_XFGVIRT(IXDSCodec, get_CCSubstreamService) + /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_CCSubstreamService )( + __RPC__in IXDSCodec * This, + /* [retval][out] */ __RPC__out long *pSubstreamMask); + + DECLSPEC_XFGVIRT(IXDSCodec, GetContentAdvisoryRating) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetContentAdvisoryRating )( + __RPC__in IXDSCodec * This, + /* [out] */ __RPC__out PackedTvRating *pRat, + /* [out] */ __RPC__out long *pPktSeqID, + /* [out] */ __RPC__out long *pCallSeqID, + /* [out] */ __RPC__out REFERENCE_TIME *pTimeStart, + /* [out] */ __RPC__out REFERENCE_TIME *pTimeEnd); + + DECLSPEC_XFGVIRT(IXDSCodec, GetXDSPacket) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetXDSPacket )( + __RPC__in IXDSCodec * This, + /* [out] */ __RPC__out long *pXDSClassPkt, + /* [out] */ __RPC__out long *pXDSTypePkt, + /* [out] */ __RPC__deref_out_opt BSTR *pBstrXDSPkt, + /* [out] */ __RPC__out long *pPktSeqID, + /* [out] */ __RPC__out long *pCallSeqID, + /* [out] */ __RPC__out REFERENCE_TIME *pTimeStart, + /* [out] */ __RPC__out REFERENCE_TIME *pTimeEnd); + + DECLSPEC_XFGVIRT(IXDSCodec, GetCurrLicenseExpDate) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetCurrLicenseExpDate )( + __RPC__in IXDSCodec * This, + /* [in] */ __RPC__in ProtType *protType, + /* [out] */ __RPC__out long *lpDateTime); + + DECLSPEC_XFGVIRT(IXDSCodec, GetLastErrorCode) + /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetLastErrorCode )( + __RPC__in IXDSCodec * This); + + END_INTERFACE + } IXDSCodecVtbl; + + interface IXDSCodec + { + CONST_VTBL struct IXDSCodecVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IXDSCodec_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IXDSCodec_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IXDSCodec_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IXDSCodec_get_XDSToRatObjOK(This,pHrCoCreateRetVal) \ + ( (This)->lpVtbl -> get_XDSToRatObjOK(This,pHrCoCreateRetVal) ) + +#define IXDSCodec_put_CCSubstreamService(This,SubstreamMask) \ + ( (This)->lpVtbl -> put_CCSubstreamService(This,SubstreamMask) ) + +#define IXDSCodec_get_CCSubstreamService(This,pSubstreamMask) \ + ( (This)->lpVtbl -> get_CCSubstreamService(This,pSubstreamMask) ) + +#define IXDSCodec_GetContentAdvisoryRating(This,pRat,pPktSeqID,pCallSeqID,pTimeStart,pTimeEnd) \ + ( (This)->lpVtbl -> GetContentAdvisoryRating(This,pRat,pPktSeqID,pCallSeqID,pTimeStart,pTimeEnd) ) + +#define IXDSCodec_GetXDSPacket(This,pXDSClassPkt,pXDSTypePkt,pBstrXDSPkt,pPktSeqID,pCallSeqID,pTimeStart,pTimeEnd) \ + ( (This)->lpVtbl -> GetXDSPacket(This,pXDSClassPkt,pXDSTypePkt,pBstrXDSPkt,pPktSeqID,pCallSeqID,pTimeStart,pTimeEnd) ) + +#define IXDSCodec_GetCurrLicenseExpDate(This,protType,lpDateTime) \ + ( (This)->lpVtbl -> GetCurrLicenseExpDate(This,protType,lpDateTime) ) + +#define IXDSCodec_GetLastErrorCode(This) \ + ( (This)->lpVtbl -> GetLastErrorCode(This) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IXDSCodec_INTERFACE_DEFINED__ */ + + +#ifndef __IXDSCodecEvents_DISPINTERFACE_DEFINED__ +#define __IXDSCodecEvents_DISPINTERFACE_DEFINED__ + +/* dispinterface IXDSCodecEvents */ +/* [helpstring][uuid] */ + + +EXTERN_C const IID DIID_IXDSCodecEvents; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C4C4C4C3-0049-4E2B-98FB-9537F6CE516D") + IXDSCodecEvents : public IDispatch + { + }; + +#else /* C style interface */ + + typedef struct IXDSCodecEventsVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + __RPC__in IXDSCodecEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + __RPC__in IXDSCodecEvents * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + __RPC__in IXDSCodecEvents * This); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfoCount) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( + __RPC__in IXDSCodecEvents * This, + /* [out] */ __RPC__out UINT *pctinfo); + + DECLSPEC_XFGVIRT(IDispatch, GetTypeInfo) + HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( + __RPC__in IXDSCodecEvents * This, + /* [in] */ UINT iTInfo, + /* [in] */ LCID lcid, + /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); + + DECLSPEC_XFGVIRT(IDispatch, GetIDsOfNames) + HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( + __RPC__in IXDSCodecEvents * This, + /* [in] */ __RPC__in REFIID riid, + /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, + /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, + /* [in] */ LCID lcid, + /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); + + DECLSPEC_XFGVIRT(IDispatch, Invoke) + /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( + IXDSCodecEvents * This, + /* [annotation][in] */ + _In_ DISPID dispIdMember, + /* [annotation][in] */ + _In_ REFIID riid, + /* [annotation][in] */ + _In_ LCID lcid, + /* [annotation][in] */ + _In_ WORD wFlags, + /* [annotation][out][in] */ + _In_ DISPPARAMS *pDispParams, + /* [annotation][out] */ + _Out_opt_ VARIANT *pVarResult, + /* [annotation][out] */ + _Out_opt_ EXCEPINFO *pExcepInfo, + /* [annotation][out] */ + _Out_opt_ UINT *puArgErr); + + END_INTERFACE + } IXDSCodecEventsVtbl; + + interface IXDSCodecEvents + { + CONST_VTBL struct IXDSCodecEventsVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IXDSCodecEvents_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IXDSCodecEvents_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IXDSCodecEvents_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IXDSCodecEvents_GetTypeInfoCount(This,pctinfo) \ + ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) + +#define IXDSCodecEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ + ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) + +#define IXDSCodecEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ + ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) + +#define IXDSCodecEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ + ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + +#endif /* __IXDSCodecEvents_DISPINTERFACE_DEFINED__ */ + + +EXTERN_C const CLSID CLSID_XDSCodec; + +#ifdef __cplusplus + +class DECLSPEC_UUID("C4C4C4F3-0049-4E2B-98FB-9537F6CE516D") +XDSCodec; +#endif + +EXTERN_C const CLSID CLSID_CXDSData; + +#ifdef __cplusplus + +class DECLSPEC_UUID("C4C4C4F4-0049-4E2B-98FB-9537F6CE516D") +CXDSData; +#endif +#endif /* __EncDec_LIBRARY_DEFINED__ */ + +/* interface __MIDL_itf_encdec_0000_0007 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_encdec_0000_0007_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_encdec_0000_0007_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/encdec.idl b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/encdec.idl new file mode 100644 index 0000000000000000000000000000000000000000..2e70e0c59dd6e7644c3a2a743085c0146326602f --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/encdec.idl @@ -0,0 +1,668 @@ +// -------------------------------------------------------- +// EncDecTag.idl +// +// +// Encrypter-Tagger/DeCrypter-Detagger filter definitions +// +// +// Copyright (c) Microsoft, 2002 +// --------------------------------------------------------- +// +// Guide to CLSIDS: +// +// -- 8x Enc/dec Properties +// -- 9x Tag Properties +// -- Ax +// -- Bx IFilter +// -- Cx IFilterEvents +// -- Dx IFilterConfig +// -- Ex +// -- Fx CFilter (coclass) +// +// x = 1 - Encrypter-Tagger +// x = 2 - Decrypter-Detagger + +cpp_quote("//+-------------------------------------------------------------------------") +cpp_quote("//") +cpp_quote("// Microsoft Windows") +cpp_quote("// Copyright (C) Microsoft Corporation, 2002.") +cpp_quote("//") +cpp_quote("//--------------------------------------------------------------------------") +cpp_quote("#pragma once") +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + + +import "oaidl.idl"; +import "ocidl.idl"; + +#include "tvratings_enum.h" + +cpp_quote ("// {C4C4C4C4-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(SID_DRMSecureServiceChannel,") +cpp_quote ("0xC4C4C4C4, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + +// ----------------- +// filter ClassID's + +cpp_quote ("// {C4C4C481-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(CLSID_ETFilterEncProperties,") +cpp_quote ("0xC4C4C481, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + +cpp_quote ("// {C4C4C491-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(CLSID_ETFilterTagProperties,") +cpp_quote ("0xC4C4C491, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + +/* CLSID defined in coclass below +cpp_quote ("// {C4C4C4F1-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(CLSID_ETFilter,") +cpp_quote ("0xC4C4C4F1, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") +*/ + +cpp_quote ("// {9CD31617-B303-4f96-8330-2EB173EA4DC6}") +cpp_quote ("DEFINE_GUID(CLSID_PTFilter,") +cpp_quote ("0x9cd31617, 0xb303, 0x4f96, 0x83, 0x30, 0x2e, 0xb1, 0x73, 0xea, 0x4d, 0xc6);") + + + + +cpp_quote ("// {C4C4C482-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(CLSID_DTFilterEncProperties,") +cpp_quote ("0xC4C4C482, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + +cpp_quote ("// {C4C4C492-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(CLSID_DTFilterTagProperties,") +cpp_quote ("0xC4C4C492, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + +/* +cpp_quote ("// {C4C4C4F2-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(CLSID_DTFilter,") +cpp_quote ("0xC4C4C4F2, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") +*/ + +cpp_quote ("// {C4C4C483-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(CLSID_XDSCodecProperties,") +cpp_quote ("0xC4C4C483, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + +cpp_quote ("// {C4C4C493-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(CLSID_XDSCodecTagProperties,") +cpp_quote ("0xC4C4C493, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + +/* +cpp_quote ("// {C4C4C4F3-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(CLSID_XDSCodec,") +cpp_quote ("0xC4C4C4F3, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") +*/ + +cpp_quote ("// {C4C4C4FC-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(CLSID_CPCAFiltersCategory,") +cpp_quote ("0xC4C4C4FC, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + +// broadcast eventID's + // sent by XDSCodec when get a new rating +cpp_quote ("// {C4C4C4E0-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_XDSCodecNewXDSRating,") +cpp_quote ("0xC4C4C4E0, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by XDSCodec when get a duplicate to a current non DontKnow rating +cpp_quote ("// {C4C4C4DF-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_XDSCodecDuplicateXDSRating,") +cpp_quote ("0xC4C4C4DF, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by XDS Codec when get some other XDS packet +cpp_quote ("// {C4C4C4E1-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_XDSCodecNewXDSPacket,") +cpp_quote ("0xC4C4C4E1, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Decrypter/Detagger when rating changes +cpp_quote ("// {C4C4C4E2-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_DTFilterRatingChange,") +cpp_quote ("0xC4C4C4E2, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Decrypter/DeTagger when show rating exceeds max allowable +cpp_quote ("// {C4C4C4E3-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_DTFilterRatingsBlock,") +cpp_quote ("0xC4C4C4E3, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Decrypter/DeTagger when show rating drops below max allowable +cpp_quote ("// {C4C4C4E4-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_DTFilterRatingsUnblock,") +cpp_quote ("0xC4C4C4E4, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + + // sent by Decrypter/DeTagger when get new XDS packet +cpp_quote ("// {C4C4C4E5-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_DTFilterXDSPacket,") +cpp_quote ("0xC4C4C4E5, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Encrypter/Tagger when start to encrypt content +cpp_quote ("// {C4C4C4E6-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_ETFilterEncryptionOn,") +cpp_quote ("0xC4C4C4E6, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Encrypter/Tagger when stop encrypting content content +cpp_quote ("// {C4C4C4E7-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_ETFilterEncryptionOff,") +cpp_quote ("0xC4C4C4E7, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Decryptor/Tagger when unblocking COPP block +cpp_quote ("// {C4C4C4E8-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_DTFilterCOPPUnblock,") +cpp_quote ("0xC4C4C4E8, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Decrypter when bad COPP driver is encountered)... +cpp_quote ("// {C4C4C4E9-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_EncDecFilterError,") +cpp_quote ("0xC4C4C4E9, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Decrypter when data block due to COPP status... +cpp_quote ("// {C4C4C4EA-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_DTFilterCOPPBlock ,") +cpp_quote ("0xC4C4C4EA, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Encrypter/Tagger when receiving copy once content +cpp_quote ("// {C4C4C4EB-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_ETFilterCopyOnce,") +cpp_quote ("0xC4C4C4EB, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + + // sent by Encrypter/Tagger when receiving copy never really for macrovision content +cpp_quote ("// {C4C4C4F0-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_ETFilterCopyNever,") +cpp_quote ("0xC4C4C4F0, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + // for now, Format errors are exactly the same as License errors... + + // sent by Decrypter when data format is OK again (only after a failure)... +cpp_quote ("// {C4C4C4EC-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_DTFilterDataFormatOK,") +cpp_quote ("0xC4C4C4EC, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Decrypter when data format is corrupt (old file?) +cpp_quote ("// {C4C4C4ED-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_DTFilterDataFormatFailure,") +cpp_quote ("0xC4C4C4ED, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Encrypter or Decrypter when DRM license is OK again (only after a failure)... +cpp_quote ("// {C4C4C4EE-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_ETDTFilterLicenseOK,") +cpp_quote ("0xC4C4C4EE, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // sent by Encrypter or Decrypter when fail to get DRM license +cpp_quote ("// {C4C4C4EF-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(EVENTID_ETDTFilterLicenseFailure,") +cpp_quote ("0xC4C4C4EF, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // Other Guids + // media subtype sent out of encrypter filter +cpp_quote ("// {C4C4C4D0-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(MEDIASUBTYPE_ETDTFilter_Tagged,") +cpp_quote ("0xC4C4C4D0, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + // format block type sent out of encrypter filter + // only used if no format block currently avaiable +cpp_quote ("// {C4C4C4D1-0049-4E2B-98FB-9537F6CE516D}") +cpp_quote ("DEFINE_GUID(FORMATTYPE_ETDTFilter_Tagged,") +cpp_quote ("0xC4C4C4D1, 0x0049, 0x4E2B, 0x98, 0xFB, 0x95, 0x37, 0xF6, 0xCE, 0x51, 0x6D);") + + +cpp_quote ("// {46adbd28-6fd0-4796-93b2-155c51dc048d}") +cpp_quote ("DEFINE_GUID( MEDIASUBTYPE_CPFilters_Processed, 0x46adbd28, 0x6fd0, 0x4796, 0x93, 0xb2, 0x15, 0x5c, 0x51, 0xdc, 0x4, 0x8d );") + +cpp_quote ("// {6739b36f-1d5f-4ac2-8192-28bb0e73d16a}") +cpp_quote ("DEFINE_GUID( FORMATTYPE_CPFilters_Processed, 0x6739b36f, 0x1d5f, 0x4ac2, 0x81, 0x92, 0x28, 0xbb, 0xe, 0x73, 0xd1, 0x6a );") + + // Generic event from EncDec fileter. See FireEx +cpp_quote ("// {4A1B465B-0FB9-4159-AFBD-E33006A0F9F4}") +cpp_quote ("DEFINE_GUID(EVENTID_EncDecFilterEvent, ") +cpp_quote ("0x4a1b465b, 0xfb9, 0x4159, 0xaf, 0xbd, 0xe3, 0x30, 0x6, 0xa0, 0xf9, 0xf4);") + +// Dynamic format not supported events... +enum FormatNotSupportedEvents +{ + FORMATNOTSUPPORTED_CLEAR = 0, + FORMATNOTSUPPORTED_NOTSUPPORTED = 1 +}; + +// Generic event for tv format not supported, fired when +// an unsupported video or audio format is attempted to be played +cpp_quote ("// {24B2280A-B2AA-4777-BF65-63F35E7B024A}") +cpp_quote ("DEFINE_GUID(EVENTID_FormatNotSupportedEvent, ") +cpp_quote ("0x24b2280a, 0xb2aa, 0x4777, 0xbf, 0x65, 0x63, 0xf3, 0x5e, 0x7b, 0x2, 0x4a);") + +// broadcast event from the demultiplexer on a discontinuity; fired on input +// discontinuities and in-band discontinuities e.g. continuity_counter skips +// and timestamp discontinuities +cpp_quote ("// {16155770-AED5-475c-BB98-95A33070DF0C}") +cpp_quote ("DEFINE_GUID(EVENTID_DemultiplexerFilterDiscontinuity, ") +cpp_quote ("0x16155770, 0xaed5, 0x475c, 0xbb, 0x98, 0x95, 0xa3, 0x30, 0x70, 0xdf, 0xc);") + +// attributes that are carried as media sample attributes + +cpp_quote ("// {40749583-6b9d-4eec-b43c-67a1801e1a9b}") +cpp_quote ("DEFINE_GUID( DSATTRIB_WMDRMProtectionInfo, 0x40749583, 0x6b9d, 0x4eec, 0xb4, 0x3c, 0x67, 0xa1, 0x80, 0x1e, 0x1a, 0x9b );") + +cpp_quote ("// {e4846dda-5838-42b4-b897-6f7e5faa2f2f}") +cpp_quote ("DEFINE_GUID( DSATTRIB_BadSampleInfo, 0xe4846dda, 0x5838, 0x42b4, 0xb8, 0x97, 0x6f, 0x7e, 0x5f, 0xaa, 0x2f, 0x2f );") + +#pragma pack(push,1) +typedef struct +{ + unsigned short wszKID [25]; + unsigned __int64 qwCounter; + unsigned __int64 qwIndex; + unsigned char bOffset; +} +WMDRMProtectionInfo; + +typedef struct +{ + HRESULT hrReason; +} +BadSampleInfo; + +#pragma pack(pop) + +//------------------------------------------------------ + +#ifndef REFERENCE_TIME +typedef LONGLONG REFERENCE_TIME; +#endif + +typedef LONG PackedTvRating; + +//------------------------------------------------------ + +#include + +[ + restricted, + object, + uuid (C4C4C4D1-0049-4E2B-98FB-9537F6CE516D), +// dual + helpstring("IETFilterConfig Interface"), + pointer_default(unique) +] +interface IETFilterConfig : IUnknown +{ + [ id(10), helpstring("method InitLicense")] + HRESULT InitLicense( + [in] int LicenseId // which license (0-N to use) + ); + [ id(11), helpstring("method GetSecureChannelObject")] + HRESULT GetSecureChannelObject( + [out] IUnknown **ppUnkDRMSecureChannel // an IDRMSecureChannel + ); +}; + +[ + restricted, + object, + uuid (C4C4C4D2-0049-4E2B-98FB-9537F6CE516D), +// dual + helpstring("IDTFilterConfig Interface"), + pointer_default(unique) +] +interface IDTFilterConfig : IUnknown +{ + [ id(11), helpstring("method GetSecureChannelObject")] + HRESULT GetSecureChannelObject( + [out] IUnknown **ppUnkDRMSecureChannel // an IDRMSecureChannel + ); +}; + +[ + object, + uuid (C4C4C4D3-0049-4E2B-98FB-9537F6CE516D), +// dual + helpstring("IXDSCodecConfig Interface"), + pointer_default(unique) +] +interface IXDSCodecConfig : IUnknown +{ + // [propget, id(1), helpstring("property CCMode")] HRESULT CCMode([out, retval] int *pCCMode); + [ id(11), helpstring("method GetSecureChannelObject")] + HRESULT GetSecureChannelObject( + [out] IUnknown **ppUnkDRMSecureChannel // an IDRMSecureChannel + ); + + [ id(12), helpstring("method SetPauseBufferTime")] + HRESULT SetPauseBufferTime([in] DWORD dwPauseBufferTime); +}; + +// Interface: IDTFilterLicenseRenewal +// ------------------------------------ +// This interface is implemented by DTFilter to expose the necessry information for renewing a license. +// This interface will be registed with the vidctrl so that the player can call it. +// The player is indicated thru an event (FireEx) about an expired license. +// The player turns around and calls this interface to get more information about the expired license so that +// it can be renewed. +// +[ + object, + uuid(8A78B317-E405-4a43-994A-620D8F5CE25E), + helpstring("IDTFilterLicenseRenewal Interface"), + pointer_default(unique) +] +interface IDTFilterLicenseRenewal: IUnknown +{ + HRESULT GetLicenseRenewalData ( [out] LPWSTR *ppwszFileName, [out] LPWSTR *ppwszExpiredKid, [out] LPWSTR *ppwszTunerId); +}; + + + +// Interface: IPTFilterLicenseRenewal +// ------------------------------------ +// This interface is implemented by PTFilter to enable renewing of licenses. This interface will be registed with vidctl. +// Player will call this interface to start license renewal. +// +[ + object, + uuid(26D836A5-0C15-44c7-AC59-B0DA8728F240), + helpstring("IPTFilterLicenseRenewal Interface"), + pointer_default(unique) +] +interface IPTFilterLicenseRenewal: IUnknown +{ + HRESULT RenewLicenses ([in] WCHAR* wszFileName, [in] WCHAR* wszExpiredKid, [in] DWORD dwCallersId, [in] BOOL bHighPriority); + HRESULT CancelLicenseRenewal (); +}; + + +// Interface: IID_IMceBurnerControl +// ------------------------------------ +// This interface is implemented by third party MCE DVD burner software to turn on or off DTFilter decryption. +// If it is detected in the filter graph during OnConnectComplete data will pass thru DTFilter. +// +[ + object, + uuid(5A86B91A-E71E-46c1-88A9-9BB338710552), + helpstring("IID_IMceBurnerControl Interface"), + pointer_default(unique) +] +interface IMceBurnerControl: IUnknown +{ + HRESULT GetBurnerNoDecryption(); +}; + + + // -------------------------------- + +[ + uuid(C4C4C400-0049-4E2B-98FB-9537F6CE516D), + version(1.0), + helpstring("Microsoft Encypter-Tagger/Decrypter-Detagger Filters") +] +library EncDec +{ + importlib("stdole32.tlb"); + importlib("stdole2.tlb"); + + [ + object, + uuid (C4C4C4B1-0049-4E2B-98FB-9537F6CE516D), + // dual + helpstring("IETFilter Interface"), + pointer_default(unique) + ] + interface IETFilter : IUnknown + { + [propget, id(1), helpstring("property EvalRatObjOK")] + HRESULT EvalRatObjOK([out, retval] HRESULT *pHrCoCreateRetVal); + + [ id(2), helpstring("method GetCurrRating")] + HRESULT GetCurrRating( + [out] EnTvRat_System *pEnSystem, + [out] EnTvRat_GenericLevel *pEnRating, + [out] LONG *plbfEnAttr // bitfield of BfEnTvRat_GenericAttributes + ); + [ id(3), helpstring("method GetCurrLicenseExpDate")] + HRESULT GetCurrLicenseExpDate( + [in] ProtType *protType, + [out] long *lpDateTime + ); + [ id(4), helpstring("method GetLastErrorCode")] + HRESULT GetLastErrorCode(); + + [ id(5), helpstring("method SetRecordingOn")] + HRESULT SetRecordingOn(BOOL fRecState); + + + }; + + [ + uuid(C4C4C4C1-0049-4E2B-98FB-9537F6CE516D), + helpstring("IETFilterEvents") + ] + dispinterface IETFilterEvents + { + properties: + methods: + }; + + [ + uuid(C4C4C4F1-0049-4E2B-98FB-9537F6CE516D), + helpstring("ETFilter Class") + ] + coclass ETFilter + { + [default] interface IETFilter; + interface IETFilterConfig; + + [default, source] dispinterface IETFilterEvents; + }; + + // --------------------------------------------------- + + + [ + object, + uuid (C4C4C4B2-0049-4E2B-98FB-9537F6CE516D), + // dual + helpstring("IDTFilter Interface"), + pointer_default(unique) + ] + interface IDTFilter : IUnknown + { + [propget, id(1), helpstring("property EvalRatObjOK")] + HRESULT EvalRatObjOK([out, retval] HRESULT *pHrCoCreateRetVal); + + [ id(2), helpstring("method GetCurrRating")] + HRESULT GetCurrRating( + [out] EnTvRat_System *pEnSystem, + [out] EnTvRat_GenericLevel *pEnRating, + [out] LONG *plbfEnAttr // bitfield of BfEnTvRat_GenericAttributes + ); + + [propget, id(3), helpstring("property BlockedRatingAttributes")] + HRESULT BlockedRatingAttributes( + [in] EnTvRat_System enSystem, + [in] EnTvRat_GenericLevel enLevel, + [out, retval] LONG *plbfEnAttr + ); + + [propput, id(3), helpstring("property BlockedRatingAttributes")] + HRESULT BlockedRatingAttributes( + [in] EnTvRat_System enSystem, + [in] EnTvRat_GenericLevel enLevel, + [in] LONG lbfAttrs // bitfield of BfEnTvRat_GenericAttributes + ); + + [propget, id(4), helpstring("property BlockUnRated")] + HRESULT BlockUnRated( + [out, retval] BOOL *pfBlockUnRatedShows + ); + + [propput, id(4), helpstring("property BlockUnRated")] + HRESULT BlockUnRated( + [in] BOOL fBlockUnRatedShows + ); + + [propget, id(5), helpstring("property BlockUnRatedDelay")] + HRESULT BlockUnRatedDelay( + [out, retval] LONG *pmsecsDelayBeforeBlock + ); + + [propput, id(5), helpstring("property BlockUnRatedDelay")] + HRESULT BlockUnRatedDelay( + [in] LONG msecsDelayBeforeBlock + ); + + }; + + [ + object, + uuid (C4C4C4B4-0049-4E2B-98FB-9537F6CE516D), + helpstring("IDTFilter2 Interface"), + pointer_default(unique) + ] + interface IDTFilter2 : IDTFilter + { + [propget, id(6), helpstring("property ChallengeUrl")] + HRESULT ChallengeUrl([out] BSTR *pbstrChallengeUrl); + + [ id(7), helpstring("method GetCurrLicenseExpDate")] + HRESULT GetCurrLicenseExpDate( + [in] ProtType *protType, + [out] long *lpDateTime + ); + [ id(8), helpstring("method GetLastErrorCode")] + HRESULT GetLastErrorCode(); + }; + + [ + object, + uuid (513998cc-e929-4cdf-9fbd-bad1e0314866), + helpstring("IDTFilter3 Interface"), + pointer_default(unique) + ] + interface IDTFilter3 : IDTFilter2 + { + [ id(9), helpstring("method GetProtectionType")] + HRESULT GetProtectionType( + [out] ProtType *pProtectionType + ); + + [ id(10), helpstring("method LicenseHasExpirationDate")] + HRESULT LicenseHasExpirationDate( + [out] BOOL *pfLicenseHasExpirationDate + ); + + [ id(11), helpstring("method SetRights")] + HRESULT SetRights( + [in] BSTR bstrRights + ); + }; + + [ + uuid(C4C4C4C2-0049-4E2B-98FB-9537F6CE516D), + helpstring("IDTFilterEvents") + ] + dispinterface IDTFilterEvents + { + properties: + methods: + }; + + [ + uuid(C4C4C4F2-0049-4E2B-98FB-9537F6CE516D), + helpstring("CDTFilter Class") + ] + coclass DTFilter + { + [default] interface IDTFilter; + interface IDTFilterConfig; + + [default, source] dispinterface IDTFilterEvents; + }; + + // --------------------------------------------------- + [ + object, + uuid (C4C4C4B3-0049-4E2B-98FB-9537F6CE516D), + // dual + helpstring("IXDSCodec Interface"), + pointer_default(unique) + ] + interface IXDSCodec : IUnknown + { + [propget, id(1), helpstring("property XDSToRatObjOK")] + HRESULT XDSToRatObjOK([out, retval] HRESULT *pHrCoCreateRetVal); + + [propput, id(2), helpstring("property CCSubstreamService")] + HRESULT CCSubstreamService([in] long SubstreamMask); + + [propget, id(2), helpstring("property CCSubstreamService")] + HRESULT CCSubstreamService([out, retval] long *pSubstreamMask); + + [ id(3), helpstring("method GetContentAdvisoryRating") ] + HRESULT GetContentAdvisoryRating( + [out] PackedTvRating *pRat, // TvRating + [out] long *pPktSeqID, + [out] long *pCallSeqID, + [out] REFERENCE_TIME *pTimeStart, // time this sample started + [out] REFERENCE_TIME *pTimeEnd + ); + + [ id(4), helpstring("method GetXDSPacket") ] + HRESULT GetXDSPacket( + [out] long *pXDSClassPkt, // ENUM EnXDSClass + [out] long *pXDSTypePkt, + [out] BSTR *pBstrXDSPkt, + [out] long *pPktSeqID, + [out] long *pCallSeqID, + [out] REFERENCE_TIME *pTimeStart, // time this sample started + [out] REFERENCE_TIME *pTimeEnd + ); + + [ id(5), helpstring("method GetCurrLicenseExpDate")] + HRESULT GetCurrLicenseExpDate( + [in] ProtType *protType, + [out] long *lpDateTime + ); + [ id(6), helpstring("method GetLastErrorCode")] + HRESULT GetLastErrorCode(); + + }; + + [ + uuid(C4C4C4C3-0049-4E2B-98FB-9537F6CE516D), + helpstring("IXDSCodecEvents") + ] + dispinterface IXDSCodecEvents + { + properties: + methods: + }; + + [ + uuid(C4C4C4F3-0049-4E2B-98FB-9537F6CE516D), + helpstring("CXDSCodec Class") + ] + coclass XDSCodec + { + [default] interface IXDSCodec; + interface IXDSCodecConfig; + + [default, source] dispinterface IXDSCodecEvents; + }; + + [ + uuid(C4C4C4F4-0049-4E2B-98FB-9537F6CE516D), + helpstring("CXDSCodec Class") + ] + coclass CXDSData + { + [default] interface IXDSCodec; + interface IXDSCodecConfig; + + [default, source] dispinterface IXDSCodecEvents; + }; + +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/encdec_enums.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/encdec_enums.h new file mode 100644 index 0000000000000000000000000000000000000000..3aec6347e2d5d9186e737bca0c865733c52e43bb --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/encdec_enums.h @@ -0,0 +1,128 @@ +// +// copyright (c) Microsoft Corp. +// + +#ifndef ENCDEC_ENUMS_H +#define ENCDEC_ENUMS_H + +// !!!! do not #pragma once, we use this file twice(once for native and once for mgd) in managed interop +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#include "exposeenums2managed.h" + +ENUMG(25AEE876-3D61-4486-917E-7C0CB3D9983C) ProtType +{ + PROT_COPY_FREE = 1, + PROT_COPY_ONCE = 2, + PROT_COPY_NEVER = 3, + PROT_COPY_NEVER_REALLY = 4, + PROT_COPY_NO_MORE = 5, + PROT_COPY_FREE_CIT = 6, + PROT_COPY_BF = 7, + PROT_COPY_CN_RECORDING_STOP = 8, + PROT_COPY_FREE_SECURE = 9, + PROT_COPY_INVALID = 50 +} ProtType; + +// Types of EncDec Events +ENUM EncDecEvents +{ + ENCDEC_CPEVENT = 0, + ENCDEC_RECORDING_STATUS +} EncDecEvents; + +ENUM CPRecordingStatus +{ + RECORDING_STOPPED = 0, + RECORDING_STARTED = 1 +} CPRecordingStatus; + +ENUM CPEventBitShift +{ + CPEVENT_BITSHIFT_RATINGS = 0, + CPEVENT_BITSHIFT_COPP, + CPEVENT_BITSHIFT_LICENSE, + CPEVENT_BITSHIFT_ROLLBACK, + CPEVENT_BITSHIFT_SAC, + CPEVENT_BITSHIFT_DOWNRES, + CPEVENT_BITSHIFT_STUBLIB, + CPEVENT_BITSHIFT_UNTRUSTEDGRAPH, + CPEVENT_BITSHIFT_PENDING_CERTIFICATE, + CPEVENT_BITSHIFT_NO_PLAYREADY +} CPEventBitShift; + +ENUM CPEvents +{ + CPEVENT_NONE = 0, + CPEVENT_RATINGS, + CPEVENT_COPP, + CPEVENT_LICENSE, + CPEVENT_ROLLBACK, + CPEVENT_SAC, + CPEVENT_DOWNRES, + CPEVENT_STUBLIB, + CPEVENT_UNTRUSTEDGRAPH, + CPEVENT_PROTECTWINDOWED, +} CPEvents; + +ENUM RevokedComponent +{ + REVOKED_COPP = 0, + REVOKED_SAC, + REVOKED_APP_STUB, + REVOKED_SECURE_PIPELINE, + REVOKED_MAX_TYPES +} RevokedComponent; + +ENUM EnTag_Mode +{ + EnTag_Remove = 0x0, + EnTag_Once = 0x1, + EnTag_Repeat = 0x2, +} EnTag_Mode; + +ENUMG(6F8C2442-2BFB-4180-9EE5-EA1FB47AE35C) COPPEventBlockReason +{ + COPP_Unknown = -1, + COPP_BadDriver = 0, + COPP_NoCardHDCPSupport = 1, + COPP_NoMonitorHDCPSupport = 2, + COPP_BadCertificate = 3, + COPP_InvalidBusProtection = 4, + COPP_AeroGlassOff = 5, + COPP_RogueApp = 6, + COPP_ForbiddenVideo = 7, + COPP_Activate = 8, + COPP_DigitalAudioUnprotected= 9 +} COPPEventBlockReason; + +ENUMG(57BCA1BE-DF7A-434e-8B89-26D6A0541FDA) LicenseEventBlockReason +{ + LIC_BadLicense = 0, + LIC_NeedIndiv = 1, + LIC_Expired = 2, + LIC_NeedActivation = 3, + LIC_ExtenderBlocked = 4 +} LicenseEventBlockReason; + +ENUMG(D5CC1CDC-EF31-48dc-95B8-AFD34C08036B) DownResEventParam +{ + DOWNRES_Always = 0, + DOWNRES_InWindowOnly = 1, + DOWNRES_Undefined = 2 +} DownResEventParam; + +#include "unexposeenums2managed.h" + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // ENCDEC_ENUMS_H + +// end of file + + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/enclaveapi.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/enclaveapi.h new file mode 100644 index 0000000000000000000000000000000000000000..e9d8eb7aa6d53a362e783d285b7d6e5f75f77ea5 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/enclaveapi.h @@ -0,0 +1,144 @@ +/******************************************************************************** +* * +* enclaveapi.h -- ApiSet Contract for api-ms-win-core-enclave-l1-1-0 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _ENCLAVEAPI_H_ +#define _ENCLAVEAPI_H_ + +#include +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Desktop Family or OneCore Or App Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_APP) + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +IsEnclaveTypeSupported( + _In_ DWORD flEnclaveType + ); + +WINBASEAPI +_Ret_maybenull_ +_Post_writable_byte_size_(dwSize) +LPVOID +WINAPI +CreateEnclave( + _In_ HANDLE hProcess, + _In_opt_ LPVOID lpAddress, + _In_ SIZE_T dwSize, + _In_ SIZE_T dwInitialCommitment, + _In_ DWORD flEnclaveType, + _In_reads_bytes_(dwInfoLength) LPCVOID lpEnclaveInformation, + _In_ DWORD dwInfoLength, + _Out_opt_ LPDWORD lpEnclaveError + ); + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +LoadEnclaveData( + _In_ HANDLE hProcess, + _In_ LPVOID lpAddress, + _In_reads_bytes_(nSize) LPCVOID lpBuffer, + _In_ SIZE_T nSize, + _In_ DWORD flProtect, + _In_reads_bytes_(dwInfoLength) LPCVOID lpPageInformation, + _In_ DWORD dwInfoLength, + _Out_ PSIZE_T lpNumberOfBytesWritten, + _Out_opt_ LPDWORD lpEnclaveError + ); + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +InitializeEnclave( + _In_ HANDLE hProcess, + _In_ LPVOID lpAddress, + _In_reads_bytes_(dwInfoLength) LPCVOID lpEnclaveInformation, + _In_ DWORD dwInfoLength, + _Out_opt_ LPDWORD lpEnclaveError + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_APP) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +LoadEnclaveImageA( + _In_ LPVOID lpEnclaveAddress, + _In_ LPCSTR lpImageName + ); + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +LoadEnclaveImageW( + _In_ LPVOID lpEnclaveAddress, + _In_ LPCWSTR lpImageName + ); +#ifdef UNICODE +#define LoadEnclaveImage LoadEnclaveImageW +#else +#define LoadEnclaveImage LoadEnclaveImageA +#endif // !UNICODE + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +CallEnclave( + _In_ LPENCLAVE_ROUTINE lpRoutine, + _In_ LPVOID lpParameter, + _In_ BOOL fWaitForThread, + _Out_ LPVOID* lpReturnValue + ); + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +TerminateEnclave( + _In_ LPVOID lpAddress, + _In_ BOOL fWait + ); + +WINBASEAPI +_Success_(return != FALSE) +BOOL +WINAPI +DeleteEnclave( + _In_ LPVOID lpAddress + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) */ +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _ENCLAVEAPI_H_ diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/endpointvolume.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/endpointvolume.h new file mode 100644 index 0000000000000000000000000000000000000000..4169d85c2dd2998fa8fef887d7444e980a147de9 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/endpointvolume.h @@ -0,0 +1,974 @@ + + +/* this ALWAYS GENERATED file contains the definitions for the interfaces */ + + + /* File created by MIDL compiler version 8.01.0628 */ +/* @@MIDL_FILE_HEADING( ) */ + + + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCNDR_H_VERSION__ +#define __REQUIRED_RPCNDR_H_VERSION__ 501 +#endif + +/* verify that the version is high enough to compile this file*/ +#ifndef __REQUIRED_RPCSAL_H_VERSION__ +#define __REQUIRED_RPCSAL_H_VERSION__ 100 +#endif + +#include "rpc.h" +#include "rpcndr.h" + +#ifndef __RPCNDR_H_VERSION__ +#error this stub requires an updated version of +#endif /* __RPCNDR_H_VERSION__ */ + +#ifndef COM_NO_WINDOWS_H +#include "windows.h" +#include "ole2.h" +#endif /*COM_NO_WINDOWS_H*/ + +#ifndef __endpointvolume_h__ +#define __endpointvolume_h__ + +#if defined(_MSC_VER) && (_MSC_VER >= 1020) +#pragma once +#endif + +#ifndef DECLSPEC_XFGVIRT +#if defined(_CONTROL_FLOW_GUARD_XFG) +#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func)) +#else +#define DECLSPEC_XFGVIRT(base, func) +#endif +#endif + +/* Forward Declarations */ + +#ifndef __IAudioEndpointVolumeCallback_FWD_DEFINED__ +#define __IAudioEndpointVolumeCallback_FWD_DEFINED__ +typedef interface IAudioEndpointVolumeCallback IAudioEndpointVolumeCallback; + +#endif /* __IAudioEndpointVolumeCallback_FWD_DEFINED__ */ + + +#ifndef __IAudioEndpointVolume_FWD_DEFINED__ +#define __IAudioEndpointVolume_FWD_DEFINED__ +typedef interface IAudioEndpointVolume IAudioEndpointVolume; + +#endif /* __IAudioEndpointVolume_FWD_DEFINED__ */ + + +#ifndef __IAudioEndpointVolumeEx_FWD_DEFINED__ +#define __IAudioEndpointVolumeEx_FWD_DEFINED__ +typedef interface IAudioEndpointVolumeEx IAudioEndpointVolumeEx; + +#endif /* __IAudioEndpointVolumeEx_FWD_DEFINED__ */ + + +#ifndef __IAudioMeterInformation_FWD_DEFINED__ +#define __IAudioMeterInformation_FWD_DEFINED__ +typedef interface IAudioMeterInformation IAudioMeterInformation; + +#endif /* __IAudioMeterInformation_FWD_DEFINED__ */ + + +/* header files for imported files */ +#include "unknwn.h" +#include "devicetopology.h" + +#ifdef __cplusplus +extern "C"{ +#endif + + +/* interface __MIDL_itf_endpointvolume_0000_0000 */ +/* [local] */ + +#include +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) +typedef struct AUDIO_VOLUME_NOTIFICATION_DATA + { + GUID guidEventContext; + BOOL bMuted; + float fMasterVolume; + UINT nChannels; + float afChannelVolumes[ 1 ]; + } AUDIO_VOLUME_NOTIFICATION_DATA; + +typedef struct AUDIO_VOLUME_NOTIFICATION_DATA *PAUDIO_VOLUME_NOTIFICATION_DATA; + +#define ENDPOINT_HARDWARE_SUPPORT_VOLUME 0x00000001 +#define ENDPOINT_HARDWARE_SUPPORT_MUTE 0x00000002 +#define ENDPOINT_HARDWARE_SUPPORT_METER 0x00000004 + + +extern RPC_IF_HANDLE __MIDL_itf_endpointvolume_0000_0000_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_endpointvolume_0000_0000_v0_0_s_ifspec; + +#ifndef __IAudioEndpointVolumeCallback_INTERFACE_DEFINED__ +#define __IAudioEndpointVolumeCallback_INTERFACE_DEFINED__ + +/* interface IAudioEndpointVolumeCallback */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioEndpointVolumeCallback; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("657804FA-D6AD-4496-8A60-352752AF4F89") + IAudioEndpointVolumeCallback : public IUnknown + { + public: + virtual HRESULT STDMETHODCALLTYPE OnNotify( + PAUDIO_VOLUME_NOTIFICATION_DATA pNotify) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioEndpointVolumeCallbackVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioEndpointVolumeCallback * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioEndpointVolumeCallback * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioEndpointVolumeCallback * This); + + DECLSPEC_XFGVIRT(IAudioEndpointVolumeCallback, OnNotify) + HRESULT ( STDMETHODCALLTYPE *OnNotify )( + IAudioEndpointVolumeCallback * This, + PAUDIO_VOLUME_NOTIFICATION_DATA pNotify); + + END_INTERFACE + } IAudioEndpointVolumeCallbackVtbl; + + interface IAudioEndpointVolumeCallback + { + CONST_VTBL struct IAudioEndpointVolumeCallbackVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioEndpointVolumeCallback_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioEndpointVolumeCallback_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioEndpointVolumeCallback_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioEndpointVolumeCallback_OnNotify(This,pNotify) \ + ( (This)->lpVtbl -> OnNotify(This,pNotify) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioEndpointVolumeCallback_INTERFACE_DEFINED__ */ + + +#ifndef __IAudioEndpointVolume_INTERFACE_DEFINED__ +#define __IAudioEndpointVolume_INTERFACE_DEFINED__ + +/* interface IAudioEndpointVolume */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioEndpointVolume; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("5CDF2C82-841E-4546-9722-0CF74078229A") + IAudioEndpointVolume : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE RegisterControlChangeNotify( + /* [annotation][in] */ + _In_ IAudioEndpointVolumeCallback *pNotify) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE UnregisterControlChangeNotify( + /* [annotation][in] */ + _In_ IAudioEndpointVolumeCallback *pNotify) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetChannelCount( + /* [annotation][out] */ + _Out_ UINT *pnChannelCount) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetMasterVolumeLevel( + /* [annotation][in] */ + _In_ float fLevelDB, + /* [unique][in] */ LPCGUID pguidEventContext) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetMasterVolumeLevelScalar( + /* [annotation][in] */ + _In_ float fLevel, + /* [unique][in] */ LPCGUID pguidEventContext) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMasterVolumeLevel( + /* [annotation][out] */ + _Out_ float *pfLevelDB) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMasterVolumeLevelScalar( + /* [annotation][out] */ + _Out_ float *pfLevel) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetChannelVolumeLevel( + /* [annotation][in] */ + _In_ UINT nChannel, + float fLevelDB, + /* [unique][in] */ LPCGUID pguidEventContext) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetChannelVolumeLevelScalar( + /* [annotation][in] */ + _In_ UINT nChannel, + float fLevel, + /* [unique][in] */ LPCGUID pguidEventContext) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetChannelVolumeLevel( + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfLevelDB) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetChannelVolumeLevelScalar( + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfLevel) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE SetMute( + /* [annotation][in] */ + _In_ BOOL bMute, + /* [unique][in] */ LPCGUID pguidEventContext) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMute( + /* [annotation][out] */ + _Out_ BOOL *pbMute) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetVolumeStepInfo( + /* [annotation][out] */ + _Out_ UINT *pnStep, + /* [annotation][out] */ + _Out_ UINT *pnStepCount) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE VolumeStepUp( + /* [unique][in] */ LPCGUID pguidEventContext) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE VolumeStepDown( + /* [unique][in] */ LPCGUID pguidEventContext) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QueryHardwareSupport( + /* [annotation][out] */ + _Out_ DWORD *pdwHardwareSupportMask) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetVolumeRange( + /* [annotation][out] */ + _Out_ float *pflVolumeMindB, + /* [annotation][out] */ + _Out_ float *pflVolumeMaxdB, + /* [annotation][out] */ + _Out_ float *pflVolumeIncrementdB) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioEndpointVolumeVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioEndpointVolume * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioEndpointVolume * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioEndpointVolume * This); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, RegisterControlChangeNotify) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RegisterControlChangeNotify )( + IAudioEndpointVolume * This, + /* [annotation][in] */ + _In_ IAudioEndpointVolumeCallback *pNotify); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, UnregisterControlChangeNotify) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UnregisterControlChangeNotify )( + IAudioEndpointVolume * This, + /* [annotation][in] */ + _In_ IAudioEndpointVolumeCallback *pNotify); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetChannelCount) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetChannelCount )( + IAudioEndpointVolume * This, + /* [annotation][out] */ + _Out_ UINT *pnChannelCount); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, SetMasterVolumeLevel) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetMasterVolumeLevel )( + IAudioEndpointVolume * This, + /* [annotation][in] */ + _In_ float fLevelDB, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, SetMasterVolumeLevelScalar) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetMasterVolumeLevelScalar )( + IAudioEndpointVolume * This, + /* [annotation][in] */ + _In_ float fLevel, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetMasterVolumeLevel) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMasterVolumeLevel )( + IAudioEndpointVolume * This, + /* [annotation][out] */ + _Out_ float *pfLevelDB); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetMasterVolumeLevelScalar) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMasterVolumeLevelScalar )( + IAudioEndpointVolume * This, + /* [annotation][out] */ + _Out_ float *pfLevel); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, SetChannelVolumeLevel) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetChannelVolumeLevel )( + IAudioEndpointVolume * This, + /* [annotation][in] */ + _In_ UINT nChannel, + float fLevelDB, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, SetChannelVolumeLevelScalar) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetChannelVolumeLevelScalar )( + IAudioEndpointVolume * This, + /* [annotation][in] */ + _In_ UINT nChannel, + float fLevel, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetChannelVolumeLevel) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetChannelVolumeLevel )( + IAudioEndpointVolume * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfLevelDB); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetChannelVolumeLevelScalar) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetChannelVolumeLevelScalar )( + IAudioEndpointVolume * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfLevel); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, SetMute) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetMute )( + IAudioEndpointVolume * This, + /* [annotation][in] */ + _In_ BOOL bMute, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetMute) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMute )( + IAudioEndpointVolume * This, + /* [annotation][out] */ + _Out_ BOOL *pbMute); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetVolumeStepInfo) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetVolumeStepInfo )( + IAudioEndpointVolume * This, + /* [annotation][out] */ + _Out_ UINT *pnStep, + /* [annotation][out] */ + _Out_ UINT *pnStepCount); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, VolumeStepUp) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *VolumeStepUp )( + IAudioEndpointVolume * This, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, VolumeStepDown) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *VolumeStepDown )( + IAudioEndpointVolume * This, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, QueryHardwareSupport) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *QueryHardwareSupport )( + IAudioEndpointVolume * This, + /* [annotation][out] */ + _Out_ DWORD *pdwHardwareSupportMask); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetVolumeRange) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetVolumeRange )( + IAudioEndpointVolume * This, + /* [annotation][out] */ + _Out_ float *pflVolumeMindB, + /* [annotation][out] */ + _Out_ float *pflVolumeMaxdB, + /* [annotation][out] */ + _Out_ float *pflVolumeIncrementdB); + + END_INTERFACE + } IAudioEndpointVolumeVtbl; + + interface IAudioEndpointVolume + { + CONST_VTBL struct IAudioEndpointVolumeVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioEndpointVolume_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioEndpointVolume_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioEndpointVolume_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioEndpointVolume_RegisterControlChangeNotify(This,pNotify) \ + ( (This)->lpVtbl -> RegisterControlChangeNotify(This,pNotify) ) + +#define IAudioEndpointVolume_UnregisterControlChangeNotify(This,pNotify) \ + ( (This)->lpVtbl -> UnregisterControlChangeNotify(This,pNotify) ) + +#define IAudioEndpointVolume_GetChannelCount(This,pnChannelCount) \ + ( (This)->lpVtbl -> GetChannelCount(This,pnChannelCount) ) + +#define IAudioEndpointVolume_SetMasterVolumeLevel(This,fLevelDB,pguidEventContext) \ + ( (This)->lpVtbl -> SetMasterVolumeLevel(This,fLevelDB,pguidEventContext) ) + +#define IAudioEndpointVolume_SetMasterVolumeLevelScalar(This,fLevel,pguidEventContext) \ + ( (This)->lpVtbl -> SetMasterVolumeLevelScalar(This,fLevel,pguidEventContext) ) + +#define IAudioEndpointVolume_GetMasterVolumeLevel(This,pfLevelDB) \ + ( (This)->lpVtbl -> GetMasterVolumeLevel(This,pfLevelDB) ) + +#define IAudioEndpointVolume_GetMasterVolumeLevelScalar(This,pfLevel) \ + ( (This)->lpVtbl -> GetMasterVolumeLevelScalar(This,pfLevel) ) + +#define IAudioEndpointVolume_SetChannelVolumeLevel(This,nChannel,fLevelDB,pguidEventContext) \ + ( (This)->lpVtbl -> SetChannelVolumeLevel(This,nChannel,fLevelDB,pguidEventContext) ) + +#define IAudioEndpointVolume_SetChannelVolumeLevelScalar(This,nChannel,fLevel,pguidEventContext) \ + ( (This)->lpVtbl -> SetChannelVolumeLevelScalar(This,nChannel,fLevel,pguidEventContext) ) + +#define IAudioEndpointVolume_GetChannelVolumeLevel(This,nChannel,pfLevelDB) \ + ( (This)->lpVtbl -> GetChannelVolumeLevel(This,nChannel,pfLevelDB) ) + +#define IAudioEndpointVolume_GetChannelVolumeLevelScalar(This,nChannel,pfLevel) \ + ( (This)->lpVtbl -> GetChannelVolumeLevelScalar(This,nChannel,pfLevel) ) + +#define IAudioEndpointVolume_SetMute(This,bMute,pguidEventContext) \ + ( (This)->lpVtbl -> SetMute(This,bMute,pguidEventContext) ) + +#define IAudioEndpointVolume_GetMute(This,pbMute) \ + ( (This)->lpVtbl -> GetMute(This,pbMute) ) + +#define IAudioEndpointVolume_GetVolumeStepInfo(This,pnStep,pnStepCount) \ + ( (This)->lpVtbl -> GetVolumeStepInfo(This,pnStep,pnStepCount) ) + +#define IAudioEndpointVolume_VolumeStepUp(This,pguidEventContext) \ + ( (This)->lpVtbl -> VolumeStepUp(This,pguidEventContext) ) + +#define IAudioEndpointVolume_VolumeStepDown(This,pguidEventContext) \ + ( (This)->lpVtbl -> VolumeStepDown(This,pguidEventContext) ) + +#define IAudioEndpointVolume_QueryHardwareSupport(This,pdwHardwareSupportMask) \ + ( (This)->lpVtbl -> QueryHardwareSupport(This,pdwHardwareSupportMask) ) + +#define IAudioEndpointVolume_GetVolumeRange(This,pflVolumeMindB,pflVolumeMaxdB,pflVolumeIncrementdB) \ + ( (This)->lpVtbl -> GetVolumeRange(This,pflVolumeMindB,pflVolumeMaxdB,pflVolumeIncrementdB) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioEndpointVolume_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_endpointvolume_0000_0002 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +extern RPC_IF_HANDLE __MIDL_itf_endpointvolume_0000_0002_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_endpointvolume_0000_0002_v0_0_s_ifspec; + +#ifndef __IAudioEndpointVolumeEx_INTERFACE_DEFINED__ +#define __IAudioEndpointVolumeEx_INTERFACE_DEFINED__ + +/* interface IAudioEndpointVolumeEx */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioEndpointVolumeEx; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("66E11784-F695-4F28-A505-A7080081A78F") + IAudioEndpointVolumeEx : public IAudioEndpointVolume + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetVolumeRangeChannel( + /* [in] */ UINT iChannel, + /* [annotation][out] */ + _Out_ float *pflVolumeMindB, + /* [annotation][out] */ + _Out_ float *pflVolumeMaxdB, + /* [annotation][out] */ + _Out_ float *pflVolumeIncrementdB) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioEndpointVolumeExVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioEndpointVolumeEx * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioEndpointVolumeEx * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioEndpointVolumeEx * This); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, RegisterControlChangeNotify) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *RegisterControlChangeNotify )( + IAudioEndpointVolumeEx * This, + /* [annotation][in] */ + _In_ IAudioEndpointVolumeCallback *pNotify); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, UnregisterControlChangeNotify) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *UnregisterControlChangeNotify )( + IAudioEndpointVolumeEx * This, + /* [annotation][in] */ + _In_ IAudioEndpointVolumeCallback *pNotify); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetChannelCount) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetChannelCount )( + IAudioEndpointVolumeEx * This, + /* [annotation][out] */ + _Out_ UINT *pnChannelCount); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, SetMasterVolumeLevel) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetMasterVolumeLevel )( + IAudioEndpointVolumeEx * This, + /* [annotation][in] */ + _In_ float fLevelDB, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, SetMasterVolumeLevelScalar) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetMasterVolumeLevelScalar )( + IAudioEndpointVolumeEx * This, + /* [annotation][in] */ + _In_ float fLevel, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetMasterVolumeLevel) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMasterVolumeLevel )( + IAudioEndpointVolumeEx * This, + /* [annotation][out] */ + _Out_ float *pfLevelDB); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetMasterVolumeLevelScalar) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMasterVolumeLevelScalar )( + IAudioEndpointVolumeEx * This, + /* [annotation][out] */ + _Out_ float *pfLevel); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, SetChannelVolumeLevel) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetChannelVolumeLevel )( + IAudioEndpointVolumeEx * This, + /* [annotation][in] */ + _In_ UINT nChannel, + float fLevelDB, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, SetChannelVolumeLevelScalar) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetChannelVolumeLevelScalar )( + IAudioEndpointVolumeEx * This, + /* [annotation][in] */ + _In_ UINT nChannel, + float fLevel, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetChannelVolumeLevel) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetChannelVolumeLevel )( + IAudioEndpointVolumeEx * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfLevelDB); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetChannelVolumeLevelScalar) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetChannelVolumeLevelScalar )( + IAudioEndpointVolumeEx * This, + /* [annotation][in] */ + _In_ UINT nChannel, + /* [annotation][out] */ + _Out_ float *pfLevel); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, SetMute) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *SetMute )( + IAudioEndpointVolumeEx * This, + /* [annotation][in] */ + _In_ BOOL bMute, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetMute) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMute )( + IAudioEndpointVolumeEx * This, + /* [annotation][out] */ + _Out_ BOOL *pbMute); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetVolumeStepInfo) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetVolumeStepInfo )( + IAudioEndpointVolumeEx * This, + /* [annotation][out] */ + _Out_ UINT *pnStep, + /* [annotation][out] */ + _Out_ UINT *pnStepCount); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, VolumeStepUp) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *VolumeStepUp )( + IAudioEndpointVolumeEx * This, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, VolumeStepDown) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *VolumeStepDown )( + IAudioEndpointVolumeEx * This, + /* [unique][in] */ LPCGUID pguidEventContext); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, QueryHardwareSupport) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *QueryHardwareSupport )( + IAudioEndpointVolumeEx * This, + /* [annotation][out] */ + _Out_ DWORD *pdwHardwareSupportMask); + + DECLSPEC_XFGVIRT(IAudioEndpointVolume, GetVolumeRange) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetVolumeRange )( + IAudioEndpointVolumeEx * This, + /* [annotation][out] */ + _Out_ float *pflVolumeMindB, + /* [annotation][out] */ + _Out_ float *pflVolumeMaxdB, + /* [annotation][out] */ + _Out_ float *pflVolumeIncrementdB); + + DECLSPEC_XFGVIRT(IAudioEndpointVolumeEx, GetVolumeRangeChannel) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetVolumeRangeChannel )( + IAudioEndpointVolumeEx * This, + /* [in] */ UINT iChannel, + /* [annotation][out] */ + _Out_ float *pflVolumeMindB, + /* [annotation][out] */ + _Out_ float *pflVolumeMaxdB, + /* [annotation][out] */ + _Out_ float *pflVolumeIncrementdB); + + END_INTERFACE + } IAudioEndpointVolumeExVtbl; + + interface IAudioEndpointVolumeEx + { + CONST_VTBL struct IAudioEndpointVolumeExVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioEndpointVolumeEx_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioEndpointVolumeEx_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioEndpointVolumeEx_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioEndpointVolumeEx_RegisterControlChangeNotify(This,pNotify) \ + ( (This)->lpVtbl -> RegisterControlChangeNotify(This,pNotify) ) + +#define IAudioEndpointVolumeEx_UnregisterControlChangeNotify(This,pNotify) \ + ( (This)->lpVtbl -> UnregisterControlChangeNotify(This,pNotify) ) + +#define IAudioEndpointVolumeEx_GetChannelCount(This,pnChannelCount) \ + ( (This)->lpVtbl -> GetChannelCount(This,pnChannelCount) ) + +#define IAudioEndpointVolumeEx_SetMasterVolumeLevel(This,fLevelDB,pguidEventContext) \ + ( (This)->lpVtbl -> SetMasterVolumeLevel(This,fLevelDB,pguidEventContext) ) + +#define IAudioEndpointVolumeEx_SetMasterVolumeLevelScalar(This,fLevel,pguidEventContext) \ + ( (This)->lpVtbl -> SetMasterVolumeLevelScalar(This,fLevel,pguidEventContext) ) + +#define IAudioEndpointVolumeEx_GetMasterVolumeLevel(This,pfLevelDB) \ + ( (This)->lpVtbl -> GetMasterVolumeLevel(This,pfLevelDB) ) + +#define IAudioEndpointVolumeEx_GetMasterVolumeLevelScalar(This,pfLevel) \ + ( (This)->lpVtbl -> GetMasterVolumeLevelScalar(This,pfLevel) ) + +#define IAudioEndpointVolumeEx_SetChannelVolumeLevel(This,nChannel,fLevelDB,pguidEventContext) \ + ( (This)->lpVtbl -> SetChannelVolumeLevel(This,nChannel,fLevelDB,pguidEventContext) ) + +#define IAudioEndpointVolumeEx_SetChannelVolumeLevelScalar(This,nChannel,fLevel,pguidEventContext) \ + ( (This)->lpVtbl -> SetChannelVolumeLevelScalar(This,nChannel,fLevel,pguidEventContext) ) + +#define IAudioEndpointVolumeEx_GetChannelVolumeLevel(This,nChannel,pfLevelDB) \ + ( (This)->lpVtbl -> GetChannelVolumeLevel(This,nChannel,pfLevelDB) ) + +#define IAudioEndpointVolumeEx_GetChannelVolumeLevelScalar(This,nChannel,pfLevel) \ + ( (This)->lpVtbl -> GetChannelVolumeLevelScalar(This,nChannel,pfLevel) ) + +#define IAudioEndpointVolumeEx_SetMute(This,bMute,pguidEventContext) \ + ( (This)->lpVtbl -> SetMute(This,bMute,pguidEventContext) ) + +#define IAudioEndpointVolumeEx_GetMute(This,pbMute) \ + ( (This)->lpVtbl -> GetMute(This,pbMute) ) + +#define IAudioEndpointVolumeEx_GetVolumeStepInfo(This,pnStep,pnStepCount) \ + ( (This)->lpVtbl -> GetVolumeStepInfo(This,pnStep,pnStepCount) ) + +#define IAudioEndpointVolumeEx_VolumeStepUp(This,pguidEventContext) \ + ( (This)->lpVtbl -> VolumeStepUp(This,pguidEventContext) ) + +#define IAudioEndpointVolumeEx_VolumeStepDown(This,pguidEventContext) \ + ( (This)->lpVtbl -> VolumeStepDown(This,pguidEventContext) ) + +#define IAudioEndpointVolumeEx_QueryHardwareSupport(This,pdwHardwareSupportMask) \ + ( (This)->lpVtbl -> QueryHardwareSupport(This,pdwHardwareSupportMask) ) + +#define IAudioEndpointVolumeEx_GetVolumeRange(This,pflVolumeMindB,pflVolumeMaxdB,pflVolumeIncrementdB) \ + ( (This)->lpVtbl -> GetVolumeRange(This,pflVolumeMindB,pflVolumeMaxdB,pflVolumeIncrementdB) ) + + +#define IAudioEndpointVolumeEx_GetVolumeRangeChannel(This,iChannel,pflVolumeMindB,pflVolumeMaxdB,pflVolumeIncrementdB) \ + ( (This)->lpVtbl -> GetVolumeRangeChannel(This,iChannel,pflVolumeMindB,pflVolumeMaxdB,pflVolumeIncrementdB) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioEndpointVolumeEx_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_endpointvolume_0000_0003 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +#pragma region Application Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) + + +extern RPC_IF_HANDLE __MIDL_itf_endpointvolume_0000_0003_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_endpointvolume_0000_0003_v0_0_s_ifspec; + +#ifndef __IAudioMeterInformation_INTERFACE_DEFINED__ +#define __IAudioMeterInformation_INTERFACE_DEFINED__ + +/* interface IAudioMeterInformation */ +/* [unique][helpstring][nonextensible][uuid][local][object] */ + + +EXTERN_C const IID IID_IAudioMeterInformation; + +#if defined(__cplusplus) && !defined(CINTERFACE) + + MIDL_INTERFACE("C02216F6-8C67-4B5B-9D00-D008E73E0064") + IAudioMeterInformation : public IUnknown + { + public: + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetPeakValue( + /* [out] */ float *pfPeak) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetMeteringChannelCount( + /* [annotation][out] */ + _Out_ UINT *pnChannelCount) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetChannelsPeakValues( + /* [in] */ UINT32 u32ChannelCount, + /* [size_is][out] */ float *afPeakValues) = 0; + + virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE QueryHardwareSupport( + /* [annotation][out] */ + _Out_ DWORD *pdwHardwareSupportMask) = 0; + + }; + + +#else /* C style interface */ + + typedef struct IAudioMeterInformationVtbl + { + BEGIN_INTERFACE + + DECLSPEC_XFGVIRT(IUnknown, QueryInterface) + HRESULT ( STDMETHODCALLTYPE *QueryInterface )( + IAudioMeterInformation * This, + /* [in] */ REFIID riid, + /* [annotation][iid_is][out] */ + _COM_Outptr_ void **ppvObject); + + DECLSPEC_XFGVIRT(IUnknown, AddRef) + ULONG ( STDMETHODCALLTYPE *AddRef )( + IAudioMeterInformation * This); + + DECLSPEC_XFGVIRT(IUnknown, Release) + ULONG ( STDMETHODCALLTYPE *Release )( + IAudioMeterInformation * This); + + DECLSPEC_XFGVIRT(IAudioMeterInformation, GetPeakValue) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetPeakValue )( + IAudioMeterInformation * This, + /* [out] */ float *pfPeak); + + DECLSPEC_XFGVIRT(IAudioMeterInformation, GetMeteringChannelCount) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetMeteringChannelCount )( + IAudioMeterInformation * This, + /* [annotation][out] */ + _Out_ UINT *pnChannelCount); + + DECLSPEC_XFGVIRT(IAudioMeterInformation, GetChannelsPeakValues) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetChannelsPeakValues )( + IAudioMeterInformation * This, + /* [in] */ UINT32 u32ChannelCount, + /* [size_is][out] */ float *afPeakValues); + + DECLSPEC_XFGVIRT(IAudioMeterInformation, QueryHardwareSupport) + /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *QueryHardwareSupport )( + IAudioMeterInformation * This, + /* [annotation][out] */ + _Out_ DWORD *pdwHardwareSupportMask); + + END_INTERFACE + } IAudioMeterInformationVtbl; + + interface IAudioMeterInformation + { + CONST_VTBL struct IAudioMeterInformationVtbl *lpVtbl; + }; + + + +#ifdef COBJMACROS + + +#define IAudioMeterInformation_QueryInterface(This,riid,ppvObject) \ + ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) + +#define IAudioMeterInformation_AddRef(This) \ + ( (This)->lpVtbl -> AddRef(This) ) + +#define IAudioMeterInformation_Release(This) \ + ( (This)->lpVtbl -> Release(This) ) + + +#define IAudioMeterInformation_GetPeakValue(This,pfPeak) \ + ( (This)->lpVtbl -> GetPeakValue(This,pfPeak) ) + +#define IAudioMeterInformation_GetMeteringChannelCount(This,pnChannelCount) \ + ( (This)->lpVtbl -> GetMeteringChannelCount(This,pnChannelCount) ) + +#define IAudioMeterInformation_GetChannelsPeakValues(This,u32ChannelCount,afPeakValues) \ + ( (This)->lpVtbl -> GetChannelsPeakValues(This,u32ChannelCount,afPeakValues) ) + +#define IAudioMeterInformation_QueryHardwareSupport(This,pdwHardwareSupportMask) \ + ( (This)->lpVtbl -> QueryHardwareSupport(This,pdwHardwareSupportMask) ) + +#endif /* COBJMACROS */ + + +#endif /* C style interface */ + + + + +#endif /* __IAudioMeterInformation_INTERFACE_DEFINED__ */ + + +/* interface __MIDL_itf_endpointvolume_0000_0004 */ +/* [local] */ + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */ +#pragma endregion + + +extern RPC_IF_HANDLE __MIDL_itf_endpointvolume_0000_0004_v0_0_c_ifspec; +extern RPC_IF_HANDLE __MIDL_itf_endpointvolume_0000_0004_v0_0_s_ifspec; + +/* Additional Prototypes for ALL interfaces */ + +/* end of Additional Prototypes */ + +#ifdef __cplusplus +} +#endif + +#endif + + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/endpointvolume.idl b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/endpointvolume.idl new file mode 100644 index 0000000000000000000000000000000000000000..3f5b3627a320eb9a0ca0d355401ff9f65364d6ea --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/endpointvolume.idl @@ -0,0 +1,605 @@ +cpp_quote("#include ") + +//**@@@*@@@**************************************************** +// +// Microsoft Windows +// Copyright (C) Microsoft Corporation. All rights reserved. +// +//**@@@*@@@**************************************************** + +// +// FileName: EndpointVolume.idl +// +// Abstract: Audio Endpoint Volume API +// Provides Volume and muting control for an audio endpoint, either per-channel or total volume. +// +// Author: StephSm +// +// Created: 2005/5/10 +// -------------------------------------------------------------------------------- + +import "unknwn.idl"; +import "devicetopology.idl"; + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +typedef struct AUDIO_VOLUME_NOTIFICATION_DATA +{ + GUID guidEventContext; // Context associated with the originator of the event. + BOOL bMuted; + float fMasterVolume; + UINT nChannels; + float afChannelVolumes[1]; +} AUDIO_VOLUME_NOTIFICATION_DATA, *PAUDIO_VOLUME_NOTIFICATION_DATA; + +// +// Hardware support mask - if the endpoint provides hardware support +// for volume/mute/meter, this bit will be on in the +// DWORD returned by the IAudioEndpointVolume QueryHardwareSupport and +// the IAudioEndpointMeter QueryHardwareSupport API +// +cpp_quote("#define ENDPOINT_HARDWARE_SUPPORT_VOLUME 0x00000001") +cpp_quote("#define ENDPOINT_HARDWARE_SUPPORT_MUTE 0x00000002") +cpp_quote("#define ENDPOINT_HARDWARE_SUPPORT_METER 0x00000004") + + +// ---------------------------------------------------------------------- +// Interfaces +// ---------------------------------------------------------------------- + +// ---------------------------------------------------------------------- +// IAudioEndpointVolumeCallback +// +// Description +// +// Callback interface to be implemented by clients to respond to changes in the volume/mute +// state of an endpoint. +// +[ + object, + local, + uuid(657804FA-D6AD-4496-8A60-352752AF4F89), + nonextensible, + helpstring("AudioEndpointVolumeCallback interface"), + pointer_default(unique) +] +interface IAudioEndpointVolumeCallback : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Called when the endpoint volume changes. + // + // Parameters: + // + // pNotify - [in] Structure containing information about the new + // endpoint volume. + // + // Return values: + // S_OK if successful + // If registration for notification failed. + // + // Remarks: + // Please note: The caller of this function ignores all return + // codes from the OnNotify method. + // + HRESULT OnNotify(PAUDIO_VOLUME_NOTIFICATION_DATA pNotify); +}; + +// ---------------------------------------------------------------------- +// IAudioEndpointVolume +// +// Description: +// +// Volume control interface for a device endpoint. +// +[ + object, + local, + uuid(5CDF2C82-841E-4546-9722-0CF74078229A), + nonextensible, + helpstring("IAudioEndpointVolume interface"), + pointer_default(unique) +] +interface IAudioEndpointVolume : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Registers the client for change notifications on this volume control. + // + // Parameters: + // + // pNotify - [in] Notification interface that gets called when volume changes. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If registration for notification failed. + // + [helpstring("method RegisterControlChangeNotify")] + HRESULT RegisterControlChangeNotify([in, annotation("_In_")] IAudioEndpointVolumeCallback *pNotify); + + //------------------------------------------------------------------------- + // Description: + // + // Unregisters the client for change notifications on this volume control. + // + // Parameters: + // + // pNotify - [in] Notification interface instance to unregister. + // + // Remarks: + // Please note: There are no valid failure modes for this + // function IF the pNotify parameter has previously been + // registered for notifications. + // + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method UnregisterControlChangeNotify")] + HRESULT UnregisterControlChangeNotify([in, annotation("_In_")] IAudioEndpointVolumeCallback *pNotify); + + //------------------------------------------------------------------------- + // Description: + // + // Gets the number of channels on the endpoint for which volume can be changed. + // + // Parameters: + // + // pnChannelCount - [out] Number of channels. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetChannelCount")] + HRESULT GetChannelCount([out, annotation("_Out_")] UINT *pnChannelCount); + + //------------------------------------------------------------------------- + // Description: + // + // Sets the master volume level, using decibels. + // + // Parameters: + // + // fLevelDB - [in] The new volume level, in DB (decibels) + // EventContext - [in] Context passed to IAudioEndpointVolumeCallback::OnNotify routine. + // + // Remarks: + // + // All channel volumes are adjusted proportionately based on this new level. + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method SetMasterVolumeLevel")] + HRESULT SetMasterVolumeLevel([in, annotation("_In_")] float fLevelDB, [in, unique] LPCGUID pguidEventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Sets the master volume level, using a uniform scaling factor. + // + // Parameters: + // + // fLevel - [in] The new volume level, a uniform scaling factor + // valued (0 to 1.0) + // EventContext - [in] Context passed to IAudioEndpointVolumeCallback::OnNotify routine. + // + // Remarks: + // + // All channel volumes are adjusted proportionately based on this new level. + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method SetMasterVolumeLevelScalar")] + HRESULT SetMasterVolumeLevelScalar([in, annotation("_In_")] float fLevel, [in, unique] LPCGUID pguidEventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Get's the master volume level as a decibel (DB) value. + // + // Parameters: + // + // pfLevelDB - [out] Current master volume level, in DB. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetMasterVolumeLevel")] + HRESULT GetMasterVolumeLevel([out, annotation("_Out_")] float *pfLevelDB); + + //------------------------------------------------------------------------- + // Description: + // + // Get's the master volume level as a uniform scaling factor. + // + // Parameters: + // + // pfLevel - [out] Current master volume level as a uniform + // scaling factor (0 to 1.0 valid range). + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetMasterVolumeLevelScalar")] + HRESULT GetMasterVolumeLevelScalar([out, annotation("_Out_")] float *pfLevel); + + //------------------------------------------------------------------------- + // Description: + // + // Sets the volume level for the specified channel, using a decibel (DB) value. + // + // Parameters: + // + // nChannel - [in] Channel to adjust. + // fLevelDB - [in] Volume to set for channel. + // EventContext - [in] Context passed to IAudioEndpointVolumeCallback::OnNotify routine. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method SetChannelVolumeLevel")] + HRESULT SetChannelVolumeLevel([in, annotation("_In_")] UINT nChannel, float fLevelDB, [in, unique] LPCGUID pguidEventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Sets the volume level for the specified channel, using a uniform scaling value. + // + // Parameters: + // + // nChannel - [in] Channel to adjust. + // fLevel - [in] Volume to set for channel (uniform scaling factor). + // EventContext - [in] Context passed to IAudioEndpointVolumeCallback::OnNotify routine. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method SetChannelVolumeLevelScalar")] + HRESULT SetChannelVolumeLevelScalar([in, annotation("_In_")] UINT nChannel, float fLevel, [in, unique] LPCGUID pguidEventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Get the volume level for the specified channel using the DB scale. + // + // Parameters: + // + // nChannel - [in] Channel to adjust. + // pfLevelDB - [out] Current level (in DB) for the channel. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetChannelVolumeLevel")] + HRESULT GetChannelVolumeLevel([in, annotation("_In_")] UINT nChannel, [out, annotation("_Out_")] float *pfLevelDB); + + //------------------------------------------------------------------------- + // Description: + // + // Get the volume level for the specified channel as a uniform + // scaling factor (0 to 1 linear range). + // + // Parameters: + // + // nChannel - [in] Channel. + // pfLevel - [out] Current level (as a uniform scaling factor) for the channel. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetChannelVolumeLevelScalar")] + HRESULT GetChannelVolumeLevelScalar([in, annotation("_In_")] UINT nChannel, [out, annotation("_Out_")] float *pfLevel); + + //------------------------------------------------------------------------- + // Description: + // + // Set the mute state. + // + // Parameters: + // + // bMute - [in] TRUE to mute this endpoint, FALSE to un-mute it. + // EventContext - [in] Context passed to IAudioEndpointVolumeCallback::OnNotify routine. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method SetMute")] + HRESULT SetMute([in, annotation("_In_")] BOOL bMute, [in, unique] LPCGUID pguidEventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Get the mute state for this endpoint. + // + // Parameters: + // + // pbMute - [out] The current mute state (TRUE = muted, FALSE = not muted). + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetMute")] + HRESULT GetMute([out, annotation("_Out_")] BOOL *pbMute); + + //------------------------------------------------------------------------- + // Description: + // + // Get the current discrete step the volume is set to. + // + // Parameters: + // + // pnStep - [out] The current step + // pnStepCount - [out] Total number of steps. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetVolumeStepInfo")] + HRESULT GetVolumeStepInfo([out, annotation("_Out_")] UINT *pnStep, [out, annotation("_Out_")] UINT *pnStepCount); + + //------------------------------------------------------------------------- + // Description: + // + // Increase master volume by one step. + // + // Parameters: + // + // EventContext - [in] Context passed to IAudioEndpointVolumeCallback::OnNotify routine. + // + // Remarks: + // + // Return values: + // S_OK if successful + // S_FALSE if volume already maxed out. + // If failed. + // + [helpstring("method VolumeStepUp")] + HRESULT VolumeStepUp([in, unique] LPCGUID pguidEventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Decrease master volume by one step. + // + // Parameters: + // + // EventContext - [in] Context passed to IAudioEndpointVolumeCallback::OnNotify routine. + // + // Remarks: + // + // Return values: + // S_OK if successful + // S_FALSE if already at minimum volume. + // If failed. + // + [helpstring("method VolumeStepDown")] + HRESULT VolumeStepDown([in, unique] LPCGUID pguidEventContext); + + //------------------------------------------------------------------------- + // Description: + // + // Returns if the endpoint volume is controled by a hardware + // control or software control. + // + // Parameters: + // + // pdwHardwareSupportMask - [out] bitmask describing the level of hardware + // support + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method QueryHardwareSupport")] + HRESULT QueryHardwareSupport([out, annotation("_Out_")] DWORD *pdwHardwareSupportMask); + + //------------------------------------------------------------------------- + // Description: + // + // Gets the volume range for the reference channel (the channel + // with the highest volume). + // + // + // Parameters: + // pflVolumeMinDB - [out] Minimum dB for the channel. + // pflVolumeMaxDB - [out] Maximum dB for the channel. + // pflVolumeIncrementDB - [out] dB step for the channel. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetVolumeRange")] + HRESULT GetVolumeRange([out, annotation("_Out_")] float *pflVolumeMindB, [out, annotation("_Out_")] float *pflVolumeMaxdB, [out, annotation("_Out_")] float *pflVolumeIncrementdB); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +// ---------------------------------------------------------------------- +// IAudioEndpointVolume +// +// Description: +// +// Volume control interface for a device endpoint. +// +[ +object, +local, +uuid(66E11784-F695-4F28-A505-A7080081A78F), +nonextensible, +helpstring("IAudioEndpointVolumeEx interface"), +pointer_default(unique) +] +interface IAudioEndpointVolumeEx : IAudioEndpointVolume +{ + //------------------------------------------------------------------------- + // Description: + // + // Gets the volume range for a particular channel + // + // Parameters: + // iChannel - [in] Channel number + // pflVolumeMinDB - [out] Minimum dB for the channel. + // pflVolumeMaxDB - [out] Maximum dB for the channel. + // pflVolumeIncrementDB - [out] dB step for the channel. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetVolumeRangeChannel")] + HRESULT GetVolumeRangeChannel([in] UINT iChannel, [out, annotation("_Out_")] float *pflVolumeMindB, [out, annotation("_Out_")] float *pflVolumeMaxdB, [out, annotation("_Out_")] float *pflVolumeIncrementdB); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + +#pragma region Application Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)") + +// ---------------------------------------------------------------------- +// IAudioMeterInformation +// +// Description: +// +// Volume control interface for a device endpoint. +// +[ + object, + local, + uuid(C02216F6-8C67-4B5B-9D00-D008E73E0064), + nonextensible, + helpstring("IAudioMeterInformation interface"), + pointer_default(unique) +] +interface IAudioMeterInformation : IUnknown +{ + //------------------------------------------------------------------------- + // Description: + // + // Get peak value across all channels. + // + // Parameters: + // + // pfPeak - [out] highest peak across all channels in range [0.0f, 1.0f] + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetPeakValue")] + HRESULT GetPeakValue([out] float *pfPeak); + + //------------------------------------------------------------------------- + // Description: + // + // Gets the number of channels for which metering information is available. + // + // Parameters: + // + // pnChannelCount - [out] Number of channels. + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetChannelCount")] + HRESULT GetMeteringChannelCount([out, annotation("_Out_")] UINT *pnChannelCount); + + //------------------------------------------------------------------------- + // Description: + // + // Get peak values for all channels. + // + // Parameters: + // + // u32ChannelCount - [in] Number of channels to get levels for + // afPeakValues - [out] array of peak values in range [0.0f, 1.0f] + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method GetChannelsPeakValue")] + HRESULT GetChannelsPeakValues([in] UINT32 u32ChannelCount, [out, size_is(u32ChannelCount)] float *afPeakValues); + + //------------------------------------------------------------------------- + // Description: + // + // Returns if the endpoint volume is controled by a hardware + // control or software control. + // + // Parameters: + // + // pdwHardwareSupportMask - [out] bitmask describing the level of hardware + // support + // + // Remarks: + // + // Return values: + // S_OK if successful + // If failed. + // + [helpstring("method QueryHardwareSupport")] + HRESULT QueryHardwareSupport([out, annotation("_Out_")] DWORD *pdwHardwareSupportMask); +}; + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */") +#pragma endregion + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/errhandlingapi.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/errhandlingapi.h new file mode 100644 index 0000000000000000000000000000000000000000..9cb5ada15760887e0c047aac0126214df8a77656 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/errhandlingapi.h @@ -0,0 +1,267 @@ +/******************************************************************************** +* * +* errhandlingapi.h - ApiSet Contract for api-ms-win-core-errorhandling-l1 * +* * +* Copyright (c) Microsoft Corporation. All rights reserved. * +* * +********************************************************************************/ + +#ifdef _MSC_VER +#pragma once +#endif // _MSC_VER + +#ifndef _ERRHANDLING_H_ +#define _ERRHANDLING_H_ + +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +// +// Typedefs +// + +typedef LONG (WINAPI *PTOP_LEVEL_EXCEPTION_FILTER)( + _In_ struct _EXCEPTION_POINTERS *ExceptionInfo + ); + +typedef PTOP_LEVEL_EXCEPTION_FILTER LPTOP_LEVEL_EXCEPTION_FILTER; + +// +// Prototypes +// + +WINBASEAPI +VOID +WINAPI +RaiseException( + _In_ DWORD dwExceptionCode, + _In_ DWORD dwExceptionFlags, + _In_ DWORD nNumberOfArguments, + _In_reads_opt_(nNumberOfArguments) CONST ULONG_PTR* lpArguments + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +__callback +WINBASEAPI +LONG +WINAPI +UnhandledExceptionFilter( + _In_ struct _EXCEPTION_POINTERS* ExceptionInfo + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +LPTOP_LEVEL_EXCEPTION_FILTER +WINAPI +SetUnhandledExceptionFilter( + _In_opt_ LPTOP_LEVEL_EXCEPTION_FILTER lpTopLevelExceptionFilter + ); + +#ifndef _M_CEE_PURE + +WINBASEAPI +_Check_return_ +_Post_equals_last_error_ +DWORD +WINAPI +GetLastError( + VOID + ); + +#endif + +WINBASEAPI +VOID +WINAPI +SetLastError( + _In_ DWORD dwErrCode + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#if (_WIN32_WINNT >= 0x0600) + +WINBASEAPI +UINT +WINAPI +GetErrorMode( + VOID + ); + +#endif // (_WIN32_WINNT >= 0x0600) + +WINBASEAPI +UINT +WINAPI +SetErrorMode( + _In_ UINT uMode + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +#if (_WIN32_WINNT >= 0x0501) + +WINBASEAPI +_Ret_maybenull_ +PVOID +WINAPI +AddVectoredExceptionHandler( + _In_ ULONG First, + _In_ PVECTORED_EXCEPTION_HANDLER Handler + ); + +WINBASEAPI +ULONG +WINAPI +RemoveVectoredExceptionHandler( + _In_ PVOID Handle + ); + +WINBASEAPI +_Ret_maybenull_ +PVOID +WINAPI +AddVectoredContinueHandler( + _In_ ULONG First, + _In_ PVECTORED_EXCEPTION_HANDLER Handler + ); + +WINBASEAPI +ULONG +WINAPI +RemoveVectoredContinueHandler( + _In_ PVOID Handle + ); + +#endif // (_WIN32_WINNT >= 0x0501) + +// RC warns because "WINBASE_DECLARE_RESTORE_LAST_ERROR" is a bit long. +#if !defined(RC_INVOKED) +//#if _WIN32_WINNT >= 0x0501 || defined(WINBASE_DECLARE_RESTORE_LAST_ERROR) +#if defined(WINBASE_DECLARE_RESTORE_LAST_ERROR) + +WINBASEAPI +VOID +WINAPI +RestoreLastError( + _In_ DWORD dwErrCode + ); + +typedef VOID (WINAPI* PRESTORE_LAST_ERROR)(DWORD); +#define RESTORE_LAST_ERROR_NAME_A "RestoreLastError" +#define RESTORE_LAST_ERROR_NAME_W L"RestoreLastError" +#define RESTORE_LAST_ERROR_NAME TEXT("RestoreLastError") + +#endif +#endif + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Application Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +VOID +WINAPI +RaiseFailFastException( + _In_opt_ PEXCEPTION_RECORD pExceptionRecord, + _In_opt_ PCONTEXT pContextRecord, + _In_ DWORD dwFlags + ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) */ +#pragma endregion + +#pragma region Desktop Family or OneCore Family or Games Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) + +WINBASEAPI +VOID +WINAPI +FatalAppExitA( + _In_ UINT uAction, + _In_ LPCSTR lpMessageText + ); + +WINBASEAPI +VOID +WINAPI +FatalAppExitW( + _In_ UINT uAction, + _In_ LPCWSTR lpMessageText + ); +#ifdef UNICODE +#define FatalAppExit FatalAppExitW +#else +#define FatalAppExit FatalAppExitA +#endif // !UNICODE + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES) +#pragma endregion + +#pragma region Application Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +DWORD +WINAPI +GetThreadErrorMode( + VOID + ); + +WINBASEAPI +BOOL +WINAPI +SetThreadErrorMode( + _In_ DWORD dwNewMode, + _In_opt_ LPDWORD lpOldMode + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#pragma region Desktop Family or OneCore Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) + +WINBASEAPI +VOID +WINAPI +TerminateProcessOnMemoryExhaustion( + _In_ SIZE_T FailedAllocationSize + ); + +#endif // WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM) +#pragma endregion + +#ifdef __cplusplus +} +#endif + +#endif // _ERRHANDLING_H_ diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/errlup.idl b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/errlup.idl new file mode 100644 index 0000000000000000000000000000000000000000..a0bbddf7c43a0a0daff18b1ac040bd32156507ca --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/errlup.idl @@ -0,0 +1,85 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: errlup.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a66-2a1c-11ce-ade5-00aa0044773d) + + +interface IErrorLookup : IUnknown { + + [local] + HRESULT GetErrorDescription( + [in] HRESULT hrError, + [in] DWORD dwLookupID, + [in, annotation("_In_")] DISPPARAMS * pdispparams, + [in] LCID lcid, + [out, annotation("_Outptr_result_maybenull_z_")] BSTR * pbstrSource, + [out, annotation("_Outptr_result_maybenull_z_")] BSTR * pbstrDescription + ); + + [call_as(GetErrorDescription)] + HRESULT RemoteGetErrorDescription( + [in] HRESULT hrError, + [in] DWORD dwLookupID, + [in] DISPPARAMS * pdispparams, + [in] LCID lcid, + [out] BSTR * pbstrSource, + [out] BSTR * pbstrDescription, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT GetHelpInfo( + [in] HRESULT hrError, + [in] DWORD dwLookupID, + [in] LCID lcid, + [out, annotation("_Outptr_result_maybenull_")] BSTR * pbstrHelpFile, + [out, annotation("_Out_")] DWORD * pdwHelpContext + ); + + [call_as(GetHelpInfo)] + HRESULT RemoteGetHelpInfo( + [in] HRESULT hrError, + [in] DWORD dwLookupID, + [in] LCID lcid, + [out] BSTR * pbstrHelpFile, + [out] DWORD * pdwHelpContext, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT ReleaseErrors( + [in] const DWORD dwDynamicErrorID + ); + + [call_as(ReleaseErrors)] + HRESULT RemoteReleaseErrors( + [in] const DWORD dwDynamicErrorID, + [out] IErrorInfo ** ppErrorInfoRem + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/errors.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/errors.h new file mode 100644 index 0000000000000000000000000000000000000000..ddab29159417becded17e9f3aa0d6c3bc47a3f16 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/errors.h @@ -0,0 +1,56 @@ +//------------------------------------------------------------------------------ +// File: Errors.h +// +// Desc: ActiveMovie error defines. +// +// Copyright (c) 1992 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +#ifndef __ERRORS__ +#define __ERRORS__ +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + +#ifndef _AMOVIE_ +#define AMOVIEAPI DECLSPEC_IMPORT +#else +#define AMOVIEAPI +#endif + +// codes 0-01ff are reserved for OLE +#define VFW_FIRST_CODE 0x200 +#define MAX_ERROR_TEXT_LEN 160 + +#include // includes all message definitions + +typedef BOOL (WINAPI* AMGETERRORTEXTPROCA)(HRESULT, char *, DWORD); +typedef BOOL (WINAPI* AMGETERRORTEXTPROCW)(HRESULT, WCHAR *, DWORD); + +AMOVIEAPI DWORD WINAPI AMGetErrorTextA( HRESULT hr , _Out_writes_(MaxLen) LPSTR pbuffer , DWORD MaxLen); +AMOVIEAPI DWORD WINAPI AMGetErrorTextW( HRESULT hr , _Out_writes_(MaxLen) LPWSTR pbuffer , DWORD MaxLen); + + +#ifdef UNICODE +#define AMGetErrorText AMGetErrorTextW +typedef AMGETERRORTEXTPROCW AMGETERRORTEXTPROC; +#else +#define AMGetErrorText AMGetErrorTextA +typedef AMGETERRORTEXTPROCA AMGETERRORTEXTPROC; +#endif + +#ifdef __cplusplus +} +#endif // __cplusplus + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + +#endif // __ERRORS__ diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/errrec.idl b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/errrec.idl new file mode 100644 index 0000000000000000000000000000000000000000..029026aac078d78232d384fc0a013a9bed2ece35 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/errrec.idl @@ -0,0 +1,131 @@ +/******************************************************** +* * +* Copyright (C) Microsoft. All rights reserved. * +* * +********************************************************/ + + +//----------------------------------------------------------------------------- +// File: errrec.idl +// +// Contents: OLE DB interface definition +// +// Comments: +// +//----------------------------------------------------------------------------- + +cpp_quote("#include ") + +#pragma region Desktop Family +cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)") + +#include "idlmulti.h" +// + + REMOTED_INTERFACE(0c733a67-2a1c-11ce-ade5-00aa0044773d) + + +interface IErrorRecords : IUnknown { + +cpp_quote("#define IDENTIFIER_SDK_MASK 0xF0000000") +cpp_quote("#define IDENTIFIER_SDK_ERROR 0x10000000") + +typedef struct tagERRORINFO { + HRESULT hrError; + DWORD dwMinor; + CLSID clsid; + IID iid; + DISPID dispid; +} ERRORINFO; + + [local] + HRESULT AddErrorRecord( + [in, annotation("_In_")] ERRORINFO * pErrorInfo, + [in] DWORD dwLookupID, + [in, annotation("_In_opt_")] DISPPARAMS * pdispparams, + [in, annotation("_In_opt_")] IUnknown * punkCustomError, + [in] DWORD dwDynamicErrorID + ); + + [call_as(AddErrorRecord)] + HRESULT RemoteAddErrorRecord( + [in] ERRORINFO * pErrorInfo, + [in] DWORD dwLookupID, + [in] DISPPARAMS * pdispparams, + [in] IUnknown * punkCustomError, + [in] DWORD dwDynamicErrorID, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT GetBasicErrorInfo( + [in] ULONG ulRecordNum, + [out, annotation("_Out_")] ERRORINFO * pErrorInfo + ); + + [call_as(GetBasicErrorInfo)] + HRESULT RemoteGetBasicErrorInfo( + [in] ULONG ulRecordNum, + [out] ERRORINFO * pErrorInfo, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT GetCustomErrorObject( + [in] ULONG ulRecordNum, + [in, annotation("_In_")] REFIID riid, + [out, iid_is(riid), annotation("_Outptr_result_maybenull_")] IUnknown ** ppObject + ); + + [call_as(GetCustomErrorObject)] + HRESULT RemoteGetCustomErrorObject( + [in] ULONG ulRecordNum, + [in] REFIID riid, + [out, iid_is(riid)] IUnknown ** ppObject, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT GetErrorInfo( + [in] ULONG ulRecordNum, + [in] LCID lcid, + [out, annotation("_Outptr_")] IErrorInfo ** ppErrorInfo + ); + + [call_as(GetErrorInfo)] + HRESULT RemoteGetErrorInfo( + [in] ULONG ulRecordNum, + [in] LCID lcid, + [out] IErrorInfo ** ppErrorInfo, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT GetErrorParameters( + [in] ULONG ulRecordNum, + [out, annotation("_Out_")] DISPPARAMS * pdispparams + ); + + [call_as(GetErrorParameters)] + HRESULT RemoteGetErrorParameters( + [in] ULONG ulRecordNum, + [out] DISPPARAMS * pdispparams, + [out] IErrorInfo ** ppErrorInfoRem + ); + + [local] + HRESULT GetRecordCount( + [out, annotation("_Out_")] ULONG * pcRecords + ); + + [call_as(GetRecordCount)] + HRESULT RemoteGetRecordCount( + [out] ULONG * pcRecords, + [out] IErrorInfo ** ppErrorInfoRem + ); + +} + +cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */") +#pragma endregion + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/esent.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/esent.h new file mode 100644 index 0000000000000000000000000000000000000000..56a8a639db4705910b6239c4b6fa8bb3b4415b12 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/esent.h @@ -0,0 +1,7669 @@ +/*++ BUILD Version: 0000 Increment this if a change has global effects + +Copyright (c) Microsoft Corporation. All rights reserved. + +Module Name: + + esent.h + +Abstract: + + This module defines the types and constants that are + exposed through the ESE API. + +--*/ + +#pragma once + +#if !defined(_JET_INCLUDED) +#define _JET_INCLUDED + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#include + + +// JET_VERSION is similar to WINVER. It allows the most recent header to be used +// against older targets. Supported versions are: +// 0x0500 - Windows 2000 +// 0x0501 - Windows XP +// 0x0502 - Windows Server 2003 +// 0x0600 - Windows Vista / Windows Server 2008 +// 0x0601 - Windows 7 / Windows Server 2008 R2 +// 0x0602 - Windows 8 / Windows Server 2012 +// 0x0603 - Windows 8.1 / Windows Server 2012 R2 +// 0x0A00 - Windows 10 + + +#ifndef JET_VERSION +# ifdef WINVER +# define JET_VERSION WINVER +# else + // JET_VERSION has not been specified. Assume all functions are available. +# define JET_VERSION 0x0A00 +# endif +#endif + + + +#if defined(_WIN64) +#pragma pack(push,8) +#else +#pragma pack(push,4) +#endif + + +#pragma warning(push) +#pragma warning(disable: 4201) // nonstandard extension used : nameless struct/union + + +#define JET_API __stdcall +#define JET_NODSAPI __stdcall + +#ifndef _JET_BASE_TYPES_DEFINED +#define _JET_BASE_TYPES_DEFINED +// Do we define the basic JET integral types from stdint.h, or do we use the +// historical definitions? +#ifdef _JET_API_USE_STDINT + +#include + +typedef int8_t JET_INT8; +typedef uint8_t JET_UINT8; +typedef int16_t JET_INT16; +typedef uint16_t JET_UINT16; +typedef int32_t JET_INT32; +typedef uint32_t JET_UINT32; +typedef int64_t JET_INT64; +typedef uint64_t JET_UINT64; +typedef uint8_t JET_BYTE; + +#else + +// Note the use of "long" rather than "int" for JET_INT32/JET_UINT32. +// The JET_API has historically used the base type "long" for 32bit integral +// types. While "int" and "long" are both 32bit integral types and coerce +// back and forth and so may be used interchangably, "int *" and "long *" do +// not. If the base type of the 32bit integral types were to change to +// "int", existing client code could break and require casts for the pointer types. +typedef char JET_INT8; +typedef unsigned char JET_UINT8; +typedef short JET_INT16; +typedef unsigned short JET_UINT16; +typedef long JET_INT32; +typedef unsigned long JET_UINT32; +typedef long long JET_INT64; +typedef unsigned long long JET_UINT64; +typedef unsigned char JET_BYTE; + +#endif + +typedef void JET_VOID; +typedef void * JET_PVOID; +typedef const void * JET_PCVOID; +typedef char JET_CHAR; +#if !defined(_NATIVE_WCHAR_T_DEFINED) +typedef unsigned short JET_WCHAR; +#else +typedef wchar_t JET_WCHAR; +#endif +#endif // _JET_BASE_TYPES_DEFINED +// After this point, use only JET_type style types. That is, don't use base types like +// long, int, short, etc, use JET_INT32, JET_INT16, etc. + + +#if defined(_WIN64) + typedef JET_UINT64 JET_API_PTR; +#else + typedef JET_UINT32 JET_API_PTR; +#endif + +typedef _Return_type_success_( return >= 0 ) JET_INT32 JET_ERR; + +typedef JET_UINT32 JET_LCID; +typedef JET_UINT16 JET_LANGID; +typedef JET_UINT16 JET_CP; + + +typedef JET_API_PTR JET_HANDLE; // backup file handle +typedef JET_API_PTR JET_INSTANCE; // Instance Identifier +typedef JET_API_PTR JET_SESID; // Session Identifier +typedef JET_API_PTR JET_TABLEID; // Table Identifier +#if ( JET_VERSION >= 0x0501 ) +typedef JET_API_PTR JET_LS; // Local Storage +#endif // JET_VERSION >= 0x0501 + +typedef JET_UINT32 JET_COLUMNID; // Column Identifier + +typedef struct tagJET_INDEXID +{ + JET_UINT32 cbStruct; + JET_BYTE rgbIndexId[sizeof(JET_API_PTR)+sizeof(JET_UINT32)+sizeof(JET_UINT32)]; +} JET_INDEXID; + +typedef JET_UINT32 JET_DBID; // Database Identifier +typedef JET_UINT32 JET_OBJTYP; // Object Type +typedef JET_UINT32 JET_COLTYP; // Column Type +typedef JET_UINT32 JET_GRBIT; // Group of Bits + +typedef JET_UINT32 JET_SNP; // Status Notification Process +typedef JET_UINT32 JET_SNT; // Status Notification Type +typedef double JET_DATESERIAL; // JET_coltypDateTime format +#if ( JET_VERSION >= 0x0501 ) +typedef JET_UINT32 JET_CBTYP; // Callback Types +#endif // JET_VERSION >= 0x0501 + +typedef JET_ERR (JET_API * JET_PFNSTATUS)( + _In_ JET_SESID sesid, + _In_ JET_SNP snp, + _In_ JET_SNT snt, + _In_opt_ JET_PVOID pv ); + + +typedef _Null_terminated_ JET_CHAR * JET_PSTR; // ASCII string (char *) null terminated +typedef _Null_terminated_ const JET_CHAR * JET_PCSTR; // const ASCII string (char *) null terminated +typedef _Null_terminated_ JET_WCHAR * JET_PWSTR; // Unicode string (wchar_t *) null terminated +typedef _Null_terminated_ const JET_WCHAR * JET_PCWSTR; // const Unicode string (wchar_t *) null terminated + + +typedef struct +{ + JET_PSTR szDatabaseName; + JET_PSTR szNewDatabaseName; +} JET_RSTMAP_A; // restore map + +typedef struct +{ + JET_PWSTR szDatabaseName; + JET_PWSTR szNewDatabaseName; +} JET_RSTMAP_W; // restore map + +#ifdef JET_UNICODE +#define JET_RSTMAP JET_RSTMAP_W +#else +#define JET_RSTMAP JET_RSTMAP_A +#endif + + +// For edbutil convert and JetConvert() only. + +typedef struct tagCONVERT_A +{ + JET_PSTR szOldDll; + union + { + JET_UINT32 fFlags; + struct + { + JET_UINT32 fSchemaChangesOnly:1; + }; + }; +} JET_CONVERT_A; + +typedef struct tagCONVERT_W +{ + JET_PWSTR szOldDll; + union + { + JET_UINT32 fFlags; + struct + { + JET_UINT32 fSchemaChangesOnly:1; + }; + }; +} JET_CONVERT_W; + +#ifdef JET_UNICODE +#define JET_CONVERT JET_CONVERT_W +#else +#define JET_CONVERT JET_CONVERT_A +#endif + + +// Configuration Store +// +// ESE has the ability to use an external config store for ESE database engine and instance +// settings. +// +// Using the registry this might look something like setting the JET param to this: +// +// JET_paramConfigStoreSpec "reg:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PopServer(Inst1)" +// +// where "PopServer(Inst1)" is just an exaple name, you should pick a different name or +// even a different part of the registry if appropriate. You are limited however to +// beginning under: HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER. +// +// And configuring the registry thusly: +// +//Windows Registry Editor Version 5.00 +// +//[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PopServer(Inst1)] +// +//[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PopServer(Inst1)\SysParamDefault] +//"JET_paramDatabasePageSize"="8192" +//"JET_paramEnableFileCache"="1" +// +// All values should be set as a string version of a decimal of hex values (such as "0x2000"). +// + + +// +// The security settings / [D]ACL of the registry key provided to JET_paramConfigStoreSpec +// should be locked down to the same security context as the client application that uses ESE +// and opens the database, otherwise there is a possible Escalation of Privilege attack. +// + +// The JET_wszConfigStoreReadControl in the registry are registry values under the root +// registry key passed to JET_paramConfigStoreSpec. + +#define JET_wszConfigStoreReadControl L"CsReadControl" +#define JET_bitConfigStoreReadControlInhibitRead 0x1 // Will stop reading from the registry config store, and pause reading until flag is removed (this will stall some JET initialization APIs). +#define JET_bitConfigStoreReadControlDisableAll 0x2 // Simply disables the registry config store from being read or used. +#define JET_bitConfigStoreReadControlDefault 0x0 // Use default ESE behavior. + + +// The JET_wszConfigStoreRelPathSysParamDefault and JET_wszConfigStoreRelPathSysParamOverride in +// the registry are registry sub-keys under the root registry key passed to JET_paramConfigStoreSpec. +#define JET_wszConfigStoreRelPathSysParamDefault L"SysParamDefault" +#define JET_wszConfigStoreRelPathSysParamOverride L"SysParamOverride" + + + +// Special format specifiers here +#define JET_efvUseEngineDefault (0x40000001) // Instructs the engine to use the maximal default supported Engine Format Version. (default) +#define JET_efvUsePersistedFormat (0x40000002) // Instructs the engine to use the minimal Engine Format Version of all loaded log and DB files. +#define JET_efvAllowHigherPersistedFormat (0x41000000) // Can be combined with a specific EngineFormatVersion but will not fail if persisted files are ahead of the specified EngineFormatVersion. Will still fail if the persisted version is ahead of what the engine actually can read/understand. + +#define JET_efvWindows19H1Rtm 8920 // Last pre-efv version, shipped in Windows 10 until 19H1 release. +#define JET_efvWindows10v2004 9180 // Efv shipped with Windows "Vibranium", first shipped with Windows 10 version 2004 (and all subsequent Windows 10 releases). +#define JET_efvWindowsServer2022 9360 // Efv shipped with Windows Server 2022. +#define JET_efvWindows11v21H2 9400 // Efv shipped with Windows 11 21H2 release. +#define JET_efvWindows11v22H2 9480 // Efv shipped with Windows 11 22H2 release. +#define JET_efvWindows11v23H2 9600 // Efv shipped with Windows 11 23H2 release. + + +// Online defragmentation (JetDefragment/JetDefragment2) options +#define JET_bitDefragmentBatchStart 0x00000001 +#define JET_bitDefragmentBatchStop 0x00000002 + +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitDefragmentAvailSpaceTreesOnly 0x00000040 /* only defrag AvailExt trees */ +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0601 ) +#define JET_bitDefragmentNoPartialMerges 0x00000080 /* don't do partial merges during OLD */ + +#define JET_bitDefragmentBTree 0x00000100 /* defrag one B-Tree */ + + +#endif // JET_VERSION >= 0x0601 + +#if ( JET_VERSION >= 0x0501 ) + /* Callback-function types */ + +#define JET_cbtypNull 0x00000000 +#define JET_cbtypFinalize 0x00000001 /* DEPRECATED: a finalizable column has gone to zero */ +#define JET_cbtypBeforeInsert 0x00000002 /* about to insert a record */ +#define JET_cbtypAfterInsert 0x00000004 /* finished inserting a record */ +#define JET_cbtypBeforeReplace 0x00000008 /* about to modify a record */ +#define JET_cbtypAfterReplace 0x00000010 /* finished modifying a record */ +#define JET_cbtypBeforeDelete 0x00000020 /* about to delete a record */ +#define JET_cbtypAfterDelete 0x00000040 /* finished deleting the record */ +#define JET_cbtypUserDefinedDefaultValue 0x00000080 /* calculating a user-defined default */ +#define JET_cbtypOnlineDefragCompleted 0x00000100 /* a call to JetDefragment2 has completed */ +#define JET_cbtypFreeCursorLS 0x00000200 /* the Local Storage associated with a cursor must be freed */ +#define JET_cbtypFreeTableLS 0x00000400 /* the Local Storage associated with a table must be freed */ + + /* Callback-function prototype */ + +typedef JET_ERR (JET_API * JET_CALLBACK)( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_TABLEID tableid, + _In_ JET_CBTYP cbtyp, + _Inout_opt_ JET_PVOID pvArg1, + _Inout_opt_ JET_PVOID pvArg2, + _In_opt_ JET_PVOID pvContext, + _In_ JET_API_PTR ulUnused ); +#endif // JET_VERSION >= 0x0501 + + /* Status Notification Structures */ + +typedef struct // Status Notification Progress +{ + JET_UINT32 cbStruct; // Size of this structure + JET_UINT32 cunitDone; // Number of units of work completed + JET_UINT32 cunitTotal; // Total number of units of work +} JET_SNPROG; + +typedef struct +{ + JET_UINT32 cbStruct; + + JET_UINT32 cbFilesizeLow; // file's current size (low DWORD) + JET_UINT32 cbFilesizeHigh; // file's current size (high DWORD) + + JET_UINT32 cbFreeSpaceRequiredLow; // estimate of free disk space required for in-place upgrade (low DWORD) + JET_UINT32 cbFreeSpaceRequiredHigh;// estimate of free disk space required for in-place upgrade (high DWORD) + + JET_UINT32 csecToUpgrade; // estimate of time required, in seconds, for upgrade + + union + { + JET_UINT32 ulFlags; + struct + { + JET_UINT32 fUpgradable:1; + JET_UINT32 fAlreadyUpgraded:1; + }; + }; +} JET_DBINFOUPGRADE; + +typedef struct +{ + JET_UINT32 cbStruct; + JET_OBJTYP objtyp; + JET_DATESERIAL dtCreate; // Deprecated. + JET_DATESERIAL dtUpdate; // Deprecated. + JET_GRBIT grbit; + JET_UINT32 flags; + JET_UINT32 cRecord; + JET_UINT32 cPage; +} JET_OBJECTINFO; + + /* The following flags appear in the grbit field above */ + +#define JET_bitTableInfoUpdatable 0x00000001 +#define JET_bitTableInfoBookmark 0x00000002 +#define JET_bitTableInfoRollback 0x00000004 + + /* The following flags occur in the flags field above */ + +#define JET_bitObjectSystem 0x80000000 // Internal use only +#define JET_bitObjectTableFixedDDL 0x40000000 // Table's DDL is fixed +#define JET_bitObjectTableTemplate 0x20000000 // Table's DDL is inheritable (implies FixedDDL) +#define JET_bitObjectTableDerived 0x10000000 // Table's DDL is inherited from a template table +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitObjectTableNoFixedVarColumnsInDerivedTables 0x04000000 // used in conjunction with JET_bitObjectTableTemplate + // to disallow fixed/var columns in derived tables (so that + // fixed/var columns may be added to the template in the future) +#endif // JET_VERSION >= 0x0501 + + +typedef struct +{ + JET_UINT32 cbStruct; + JET_TABLEID tableid; + JET_UINT32 cRecord; + JET_COLUMNID columnidcontainername; + JET_COLUMNID columnidobjectname; + JET_COLUMNID columnidobjtyp; + JET_COLUMNID columniddtCreate; // XXX -- to be deleted + JET_COLUMNID columniddtUpdate; // XXX -- to be deleted + JET_COLUMNID columnidgrbit; + JET_COLUMNID columnidflags; + JET_COLUMNID columnidcRecord; // Level 2 info + JET_COLUMNID columnidcPage; // Level 2 info +} JET_OBJECTLIST; + +#define cObjectInfoCols 9 + +typedef struct +{ + JET_UINT32 cbStruct; + JET_TABLEID tableid; + JET_UINT32 cRecord; + JET_COLUMNID columnidPresentationOrder; + JET_COLUMNID columnidcolumnname; + JET_COLUMNID columnidcolumnid; + JET_COLUMNID columnidcoltyp; + JET_COLUMNID columnidCountry; // specifies the columnid for the country/region field + JET_COLUMNID columnidLangid; + JET_COLUMNID columnidCp; + JET_COLUMNID columnidCollate; + JET_COLUMNID columnidcbMax; + JET_COLUMNID columnidgrbit; + JET_COLUMNID columnidDefault; + JET_COLUMNID columnidBaseTableName; + JET_COLUMNID columnidBaseColumnName; + JET_COLUMNID columnidDefinitionName; +} JET_COLUMNLIST; + +#define cColumnInfoCols 14 + +typedef struct +{ + JET_UINT32 cbStruct; + JET_COLUMNID columnid; + JET_COLTYP coltyp; + JET_UINT16 wCountry; // sepcifies the country/region for the column definition + JET_LANGID langid; + JET_CP cp; + JET_UINT16 wCollate; // Must be 0 + JET_UINT32 cbMax; + JET_GRBIT grbit; +} JET_COLUMNDEF; + + +typedef struct +{ + JET_UINT32 cbStruct; + JET_COLUMNID columnid; + JET_COLTYP coltyp; + JET_UINT16 wCountry; // specifies the columnid for the country/region field + JET_LANGID langid; + JET_CP cp; + JET_UINT16 wFiller; // Must be 0 + JET_UINT32 cbMax; + JET_GRBIT grbit; + JET_CHAR szBaseTableName[256]; + JET_CHAR szBaseColumnName[256]; +} JET_COLUMNBASE_A; + + +typedef struct +{ + JET_UINT32 cbStruct; + JET_COLUMNID columnid; + JET_COLTYP coltyp; + JET_UINT16 wCountry; // specifies the columnid for the country/region field + JET_LANGID langid; + JET_CP cp; + JET_UINT16 wFiller; // Must be 0 + JET_UINT32 cbMax; + JET_GRBIT grbit; + JET_WCHAR szBaseTableName[256]; + JET_WCHAR szBaseColumnName[256]; +} JET_COLUMNBASE_W; + + +#ifdef JET_UNICODE +#define JET_COLUMNBASE JET_COLUMNBASE_W +#else +#define JET_COLUMNBASE JET_COLUMNBASE_A +#endif + + +typedef struct +{ + JET_UINT32 cbStruct; + JET_TABLEID tableid; + JET_UINT32 cRecord; + JET_COLUMNID columnidindexname; + JET_COLUMNID columnidgrbitIndex; + JET_COLUMNID columnidcKey; + JET_COLUMNID columnidcEntry; + JET_COLUMNID columnidcPage; + JET_COLUMNID columnidcColumn; + JET_COLUMNID columnidiColumn; + JET_COLUMNID columnidcolumnid; + JET_COLUMNID columnidcoltyp; + JET_COLUMNID columnidCountry; // specifies the columnid for the country/region field + JET_COLUMNID columnidLangid; + JET_COLUMNID columnidCp; + JET_COLUMNID columnidCollate; + JET_COLUMNID columnidgrbitColumn; + JET_COLUMNID columnidcolumnname; + JET_COLUMNID columnidLCMapFlags; +} JET_INDEXLIST; + + +#define cIndexInfoCols 15 + +typedef struct tag_JET_COLUMNCREATE_A +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PSTR szColumnName; // column name + JET_COLTYP coltyp; // column type + JET_UINT32 cbMax; // the maximum length of this column (only relevant for binary and text columns) + JET_GRBIT grbit; // column options + JET_PVOID pvDefault; // default value (NULL if none) + JET_UINT32 cbDefault; // length of default value + JET_UINT32 cp; // code page (for text columns only). Note that historically we don't use JET_CP for this, + // although the value actually is a JET_CP. + JET_COLUMNID columnid; // returned column id + JET_ERR err; // returned error code +} JET_COLUMNCREATE_A; + +typedef struct tag_JET_COLUMNCREATE_W +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PWSTR szColumnName; // column name + JET_COLTYP coltyp; // column type + JET_UINT32 cbMax; // the maximum length of this column (only relevant for binary and text columns) + JET_GRBIT grbit; // column options + JET_PVOID pvDefault; // default value (NULL if none) + JET_UINT32 cbDefault; // length of default value + JET_UINT32 cp; // code page (for text columns only). Note that historically we don't use JET_CP for this, + // although the value actually is a JET_CP. + JET_COLUMNID columnid; // returned column id + JET_ERR err; // returned error code +} JET_COLUMNCREATE_W; + +#ifdef JET_UNICODE +#define JET_COLUMNCREATE JET_COLUMNCREATE_W +#else +#define JET_COLUMNCREATE JET_COLUMNCREATE_A +#endif + +#if ( JET_VERSION >= 0x0501 ) +// This is the information needed to create a column with a user-defined default. It should be passed in using +// the pvDefault and cbDefault in a JET_COLUMNCREATE structure + +typedef struct tag_JET_USERDEFINEDDEFAULT_A +{ + JET_PSTR szCallback; + JET_BYTE * pbUserData; + JET_UINT32 cbUserData; + JET_PSTR szDependantColumns; +} JET_USERDEFINEDDEFAULT_A; + +typedef struct tag_JET_USERDEFINEDDEFAULT_W +{ + JET_PWSTR szCallback; + JET_BYTE * pbUserData; + JET_UINT32 cbUserData; + JET_PWSTR szDependantColumns; +} JET_USERDEFINEDDEFAULT_W; + +#ifdef JET_UNICODE +#define JET_USERDEFINEDDEFAULT JET_USERDEFINEDDEFAULT_W +#else +#define JET_USERDEFINEDDEFAULT JET_USERDEFINEDDEFAULT_A +#endif + +#endif // JET_VERSION >= 0x0501 + +typedef struct tagJET_CONDITIONALCOLUMN_A +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PSTR szColumnName; // column that we are conditionally indexed on + JET_GRBIT grbit; // conditional column options +} JET_CONDITIONALCOLUMN_A; + +typedef struct tagJET_CONDITIONALCOLUMN_W +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PWSTR szColumnName; // column that we are conditionally indexed on + JET_GRBIT grbit; // conditional column options +} JET_CONDITIONALCOLUMN_W; + +#ifdef JET_UNICODE +#define JET_CONDITIONALCOLUMN JET_CONDITIONALCOLUMN_W +#else +#define JET_CONDITIONALCOLUMN JET_CONDITIONALCOLUMN_A +#endif + +typedef struct tagJET_UNICODEINDEX +{ + JET_LCID lcid; + JET_UINT32 dwMapFlags; +} JET_UNICODEINDEX; + +#if ( JET_VERSION >= 0x0602 ) +typedef struct tagJET_UNICODEINDEX2 +{ + _Field_z_ JET_PWSTR szLocaleName; + JET_UINT32 dwMapFlags; +} JET_UNICODEINDEX2; +#endif //JET_VERSION >= 0x0602 + +#if ( JET_VERSION >= 0x0502 ) +typedef struct tagJET_TUPLELIMITS +{ + JET_UINT32 chLengthMin; + JET_UINT32 chLengthMax; + JET_UINT32 chToIndexMax; +#if ( JET_VERSION >= 0x0600 ) + JET_UINT32 cchIncrement; + JET_UINT32 ichStart; +#endif // JET_VERSION >= 0x0600 +} JET_TUPLELIMITS; +#endif // JET_VERSION >= 0x0502 + +#if ( JET_VERSION >= 0x0601 ) +// This structure describes some of the hints we can give to a given B-tree, be it a +// table, index, or the internal long values tree. +typedef struct tagJET_SPACEHINTS +{ + JET_UINT32 cbStruct; // size of this structure + JET_UINT32 ulInitialDensity; // density at (append) layout. + JET_UINT32 cbInitial; // initial size (in bytes). + + JET_GRBIT grbit; // Combination of one or more flags from + // JET_bitSpaceHints* flags + // JET_bitCreateHints* flags + // JET_bitRetrieveHints* flags + // JET_bitUpdateHints* flags + // JET_bitDeleteHints* flags + JET_UINT32 ulMaintDensity; // density to maintain at. + JET_UINT32 ulGrowth; // percent growth from: + // last growth or initial size (possibly rounded to nearest native JET allocation size). + JET_UINT32 cbMinExtent; // This overrides ulGrowth if too small. + JET_UINT32 cbMaxExtent; // This caps ulGrowth. +} JET_SPACEHINTS; +#endif // JET_VERSION >= 0x0601 + + +typedef struct tagJET_INDEXCREATE_A +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PSTR szIndexName; // index name + JET_PSTR szKey; // index key definition + JET_UINT32 cbKey; // size of key definition in szKey + JET_GRBIT grbit; // index options + JET_UINT32 ulDensity; // index density + + union + { + JET_LCID lcid; // lcid for the index (if JET_bitIndexUnicode NOT specified) + JET_UNICODEINDEX * pidxunicode; // pointer to JET_UNICODEINDEX struct (if JET_bitIndexUnicode specified) + }; + + union + { + JET_UINT32 cbVarSegMac; // maximum length of variable length columns in index key (if JET_bitIndexTupleLimits not specified) +#if ( JET_VERSION >= 0x0502 ) + JET_TUPLELIMITS * ptuplelimits; // pointer to JET_TUPLELIMITS struct (if JET_bitIndexTupleLimits specified) +#endif // ! JET_VERSION >= 0x0502 + }; + + JET_CONDITIONALCOLUMN_A * rgconditionalcolumn; // pointer to conditional column structure + JET_UINT32 cConditionalColumn; // number of conditional columns + JET_ERR err; // returned error code +#if ( JET_VERSION >= 0x0600 ) + JET_UINT32 cbKeyMost; // size of key preserved in index, e.g. without truncation (if JET_bitIndexKeyMost specified) +#endif // JET_VERSION >= 0x0600 +} JET_INDEXCREATE_A; + +typedef struct tagJET_INDEXCREATE_W +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PWSTR szIndexName; // index name + JET_PWSTR szKey; // index key definition + JET_UINT32 cbKey; // size of key definition in szKey + JET_GRBIT grbit; // index options + JET_UINT32 ulDensity; // index density + + union + { + JET_LCID lcid; // lcid for the index (if JET_bitIndexUnicode NOT specified) + JET_UNICODEINDEX * pidxunicode; // pointer to JET_UNICODEINDEX struct (if JET_bitIndexUnicode specified) + }; + + union + { + JET_UINT32 cbVarSegMac; // maximum length of variable length columns in index key (if JET_bitIndexTupleLimits not specified) +#if ( JET_VERSION >= 0x0502 ) + JET_TUPLELIMITS * ptuplelimits; // pointer to JET_TUPLELIMITS struct (if JET_bitIndexTupleLimits specified) +#endif // ! JET_VERSION >= 0x0502 + }; + + JET_CONDITIONALCOLUMN_W * rgconditionalcolumn; // pointer to conditional column structure + JET_UINT32 cConditionalColumn; // number of conditional columns + JET_ERR err; // returned error code +#if ( JET_VERSION >= 0x0600 ) + JET_UINT32 cbKeyMost; // size of key preserved in index, e.g. without truncation (if JET_bitIndexKeyMost specified) +#endif // JET_VERSION >= 0x0600 +} JET_INDEXCREATE_W; + +#ifdef JET_UNICODE +#define JET_INDEXCREATE JET_INDEXCREATE_W +#else +#define JET_INDEXCREATE JET_INDEXCREATE_A +#endif + +#if ( JET_VERSION >= 0x0601 ) + +typedef struct tagJET_INDEXCREATE2_A +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PSTR szIndexName; // index name + JET_PSTR szKey; // index key definition + JET_UINT32 cbKey; // size of key definition in szKey + JET_GRBIT grbit; // index options + JET_UINT32 ulDensity; // index density + + union + { + JET_LCID lcid; // lcid for the index (if JET_bitIndexUnicode NOT specified) + JET_UNICODEINDEX * pidxunicode; // pointer to JET_UNICODEINDEX struct (if JET_bitIndexUnicode specified) + }; + + union + { + JET_UINT32 cbVarSegMac; // maximum length of variable length columns in index key (if JET_bitIndexTupleLimits not specified) + JET_TUPLELIMITS * ptuplelimits; // pointer to JET_TUPLELIMITS struct (if JET_bitIndexTupleLimits specified) + }; + + JET_CONDITIONALCOLUMN_A * rgconditionalcolumn; // pointer to conditional column structure + JET_UINT32 cConditionalColumn; // number of conditional columns + JET_ERR err; // returned error code + JET_UINT32 cbKeyMost; // size of key preserved in index, e.g. without truncation (if JET_bitIndexKeyMost specified) + JET_SPACEHINTS * pSpacehints; // space allocation, maintenance, and usage hints +} JET_INDEXCREATE2_A; + +typedef struct tagJET_INDEXCREATE2_W +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PWSTR szIndexName; // index name + JET_PWSTR szKey; // index key definition + JET_UINT32 cbKey; // size of key definition in szKey + JET_GRBIT grbit; // index options + JET_UINT32 ulDensity; // index density + + union + { + JET_LCID lcid; // lcid for the index (if JET_bitIndexUnicode NOT specified) + JET_UNICODEINDEX * pidxunicode; // pointer to JET_UNICODEINDEX struct (if JET_bitIndexUnicode specified) + }; + + union + { + JET_UINT32 cbVarSegMac; // maximum length of variable length columns in index key (if JET_bitIndexTupleLimits not specified) + JET_TUPLELIMITS * ptuplelimits; // pointer to JET_TUPLELIMITS struct (if JET_bitIndexTupleLimits specified) + }; + + JET_CONDITIONALCOLUMN_W * rgconditionalcolumn; // pointer to conditional column structure + JET_UINT32 cConditionalColumn; // number of conditional columns + JET_ERR err; // returned error code + JET_UINT32 cbKeyMost; // size of key preserved in index, e.g. without truncation (if JET_bitIndexKeyMost specified) + JET_SPACEHINTS * pSpacehints; // space allocation, maintenance, and usage hints +} JET_INDEXCREATE2_W; + +#ifdef JET_UNICODE +#define JET_INDEXCREATE2 JET_INDEXCREATE2_W +#else +#define JET_INDEXCREATE2 JET_INDEXCREATE2_A +#endif +#endif // JET_VERSION >= 0x0601 + +#if ( JET_VERSION >= 0x0602 ) + +typedef struct tagJET_INDEXCREATE3_A +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PSTR szIndexName; // index name + JET_PSTR szKey; // index key definition + JET_UINT32 cbKey; // size of key definition in szKey + JET_GRBIT grbit; // index options + JET_UINT32 ulDensity; // index density + JET_UNICODEINDEX2 * pidxunicode; // pointer to JET_UNICODEINDEX2 struct (if JET_bitIndexUnicode specified) + + union + { + JET_UINT32 cbVarSegMac; // maximum length of variable length columns in index key (if JET_bitIndexTupleLimits not specified) + JET_TUPLELIMITS * ptuplelimits; // pointer to JET_TUPLELIMITS struct (if JET_bitIndexTupleLimits specified) + }; + + JET_CONDITIONALCOLUMN_A * rgconditionalcolumn; // pointer to conditional column structure + JET_UINT32 cConditionalColumn; // number of conditional columns + JET_ERR err; // returned error code + JET_UINT32 cbKeyMost; // size of key preserved in index, e.g. without truncation (if JET_bitIndexKeyMost specified) + JET_SPACEHINTS * pSpacehints; // space allocation, maintenance, and usage hints +} JET_INDEXCREATE3_A; + +typedef struct tagJET_INDEXCREATE3_W +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PWSTR szIndexName; // index name + JET_PWSTR szKey; // index key definition + JET_UINT32 cbKey; // size of key definition in szKey + JET_GRBIT grbit; // index options + JET_UINT32 ulDensity; // index density + JET_UNICODEINDEX2 * pidxunicode; // pointer to JET_UNICODEINDEX2 struct (if JET_bitIndexUnicode specified) + + union + { + JET_UINT32 cbVarSegMac; // maximum length of variable length columns in index key (if JET_bitIndexTupleLimits not specified) + JET_TUPLELIMITS * ptuplelimits; // pointer to JET_TUPLELIMITS struct (if JET_bitIndexTupleLimits specified) + }; + + JET_CONDITIONALCOLUMN_W * rgconditionalcolumn; // pointer to conditional column structure + JET_UINT32 cConditionalColumn; // number of conditional columns + JET_ERR err; // returned error code + JET_UINT32 cbKeyMost; // size of key preserved in index, e.g. without truncation (if JET_bitIndexKeyMost specified) + JET_SPACEHINTS * pSpacehints; // space allocation, maintenance, and usage hints +} JET_INDEXCREATE3_W; + +#ifdef JET_UNICODE +#define JET_INDEXCREATE3 JET_INDEXCREATE3_W +#else +#define JET_INDEXCREATE3 JET_INDEXCREATE3_A +#endif +#endif // JET_VERSION >= 0x0602 + +// +// Table Creation Structures +// + +typedef struct tagJET_TABLECREATE_A +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PSTR szTableName; // name of table to create. + JET_PSTR szTemplateTableName; // name of table from which to inherit base DDL + JET_UINT32 ulPages; // initial pages to allocate for table. + JET_UINT32 ulDensity; // table density. + JET_COLUMNCREATE_A * rgcolumncreate; // array of column creation info + JET_UINT32 cColumns; // number of columns to create + JET_INDEXCREATE_A * rgindexcreate; // array of index creation info + JET_UINT32 cIndexes; // number of indexes to create + JET_GRBIT grbit; + JET_TABLEID tableid; // returned tableid. + JET_UINT32 cCreated; // count of objects created (columns+table+indexes). +} JET_TABLECREATE_A; + +typedef struct tagJET_TABLECREATE_W +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PWSTR szTableName; // name of table to create. + JET_PWSTR szTemplateTableName; // name of table from which to inherit base DDL + JET_UINT32 ulPages; // initial pages to allocate for table. + JET_UINT32 ulDensity; // table density. + JET_COLUMNCREATE_W * rgcolumncreate; // array of column creation info + JET_UINT32 cColumns; // number of columns to create + JET_INDEXCREATE_W * rgindexcreate; // array of index creation info + JET_UINT32 cIndexes; // number of indexes to create + JET_GRBIT grbit; + JET_TABLEID tableid; // returned tableid. + JET_UINT32 cCreated; // count of objects created (columns+table+indexes). +} JET_TABLECREATE_W; + +#ifdef JET_UNICODE +#define JET_TABLECREATE JET_TABLECREATE_W +#else +#define JET_TABLECREATE JET_TABLECREATE_A +#endif + +#if ( JET_VERSION >= 0x0501 ) +typedef struct tagJET_TABLECREATE2_A +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PSTR szTableName; // name of table to create. + JET_PSTR szTemplateTableName; // name of table from which to inherit base DDL + JET_UINT32 ulPages; // initial pages to allocate for table. + JET_UINT32 ulDensity; // table density. + JET_COLUMNCREATE_A * rgcolumncreate; // array of column creation info + JET_UINT32 cColumns; // number of columns to create + JET_INDEXCREATE_A * rgindexcreate; // array of index creation info + JET_UINT32 cIndexes; // number of indexes to create + JET_PSTR szCallback; // callback to use for this table + JET_CBTYP cbtyp; // when the callback should be called + JET_GRBIT grbit; + JET_TABLEID tableid; // returned tableid. + JET_UINT32 cCreated; // count of objects created (columns+table+indexes+callbacks). +} JET_TABLECREATE2_A; + +typedef struct tagJET_TABLECREATE2_W +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PWSTR szTableName; // name of table to create. + JET_PWSTR szTemplateTableName; // name of table from which to inherit base DDL + JET_UINT32 ulPages; // initial pages to allocate for table. + JET_UINT32 ulDensity; // table density. + JET_COLUMNCREATE_W * rgcolumncreate; // array of column creation info + JET_UINT32 cColumns; // number of columns to create + JET_INDEXCREATE_W * rgindexcreate; // array of index creation info + JET_UINT32 cIndexes; // number of indexes to create + JET_PWSTR szCallback; // callback to use for this table + JET_CBTYP cbtyp; // when the callback should be called + JET_GRBIT grbit; + JET_TABLEID tableid; // returned tableid. + JET_UINT32 cCreated; // count of objects created (columns+table+indexes+callbacks). +} JET_TABLECREATE2_W; + +#ifdef JET_UNICODE +#define JET_TABLECREATE2 JET_TABLECREATE2_W +#else +#define JET_TABLECREATE2 JET_TABLECREATE2_A +#endif + +#endif // JET_VERSION >= 0x0501 + + +#if ( JET_VERSION >= 0x0601 ) +typedef struct tagJET_TABLECREATE3_A +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PSTR szTableName; // name of table to create. + JET_PSTR szTemplateTableName; // name of table from which to inherit base DDL + JET_UINT32 ulPages; // initial pages to allocate for table. + JET_UINT32 ulDensity; // table density. + JET_COLUMNCREATE_A * rgcolumncreate; // array of column creation info + JET_UINT32 cColumns; // number of columns to create + JET_INDEXCREATE2_A * rgindexcreate; // array of index creation info + JET_UINT32 cIndexes; // number of indexes to create + JET_PSTR szCallback; // callback to use for this table + JET_CBTYP cbtyp; // when the callback should be called + JET_GRBIT grbit; + JET_SPACEHINTS * pSeqSpacehints; // space allocation, maintenance, and usage hints for default sequential index + JET_SPACEHINTS * pLVSpacehints; // space allocation, maintenance, and usage hints for Separated LV tree. + JET_UINT32 cbSeparateLV; // heuristic size to separate a intrinsic LV from the primary record + + JET_TABLEID tableid; // returned tableid. + JET_UINT32 cCreated; // count of objects created (columns+table+indexes+callbacks). +} JET_TABLECREATE3_A; + +typedef struct tagJET_TABLECREATE3_W +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PWSTR szTableName; // name of table to create. + JET_PWSTR szTemplateTableName; // name of table from which to inherit base DDL + JET_UINT32 ulPages; // initial pages to allocate for table. + JET_UINT32 ulDensity; // table density. + JET_COLUMNCREATE_W * rgcolumncreate; // array of column creation info + JET_UINT32 cColumns; // number of columns to create + JET_INDEXCREATE2_W * rgindexcreate; // array of index creation info + JET_UINT32 cIndexes; // number of indexes to create + JET_PWSTR szCallback; // callback to use for this table + JET_CBTYP cbtyp; // when the callback should be called + JET_GRBIT grbit; + JET_SPACEHINTS * pSeqSpacehints; // space allocation, maintenance, and usage hints for default sequential index + JET_SPACEHINTS * pLVSpacehints; // space allocation, maintenance, and usage hints for Separated LV tree. + JET_UINT32 cbSeparateLV; // heuristic size to separate a intrinsic LV from the primary record + JET_TABLEID tableid; // returned tableid. + JET_UINT32 cCreated; // count of objects created (columns+table+indexes+callbacks). +} JET_TABLECREATE3_W; + +#ifdef JET_UNICODE +#define JET_TABLECREATE3 JET_TABLECREATE3_W +#else +#define JET_TABLECREATE3 JET_TABLECREATE3_A +#endif + +#endif // JET_VERSION >= 0x0601 + +#if ( JET_VERSION >= 0x0602 ) +typedef struct tagJET_TABLECREATE4_A +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PSTR szTableName; // name of table to create. + JET_PSTR szTemplateTableName; // name of table from which to inherit base DDL + JET_UINT32 ulPages; // initial pages to allocate for table. + JET_UINT32 ulDensity; // table density. + JET_COLUMNCREATE_A * rgcolumncreate; // array of column creation info + JET_UINT32 cColumns; // number of columns to create + JET_INDEXCREATE3_A * rgindexcreate; // array of index creation info + JET_UINT32 cIndexes; // number of indexes to create + JET_PSTR szCallback; // callback to use for this table + JET_CBTYP cbtyp; // when the callback should be called + JET_GRBIT grbit; + JET_SPACEHINTS * pSeqSpacehints; // space allocation, maintenance, and usage hints for default sequential index + JET_SPACEHINTS * pLVSpacehints; // space allocation, maintenance, and usage hints for Separated LV tree. + JET_UINT32 cbSeparateLV; // heuristic size to separate a intrinsic LV from the primary record + + JET_TABLEID tableid; // returned tableid. + JET_UINT32 cCreated; // count of objects created (columns+table+indexes+callbacks). +} JET_TABLECREATE4_A; + +typedef struct tagJET_TABLECREATE4_W +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + JET_PWSTR szTableName; // name of table to create. + JET_PWSTR szTemplateTableName; // name of table from which to inherit base DDL + JET_UINT32 ulPages; // initial pages to allocate for table. + JET_UINT32 ulDensity; // table density. + JET_COLUMNCREATE_W * rgcolumncreate; // array of column creation info + JET_UINT32 cColumns; // number of columns to create + JET_INDEXCREATE3_W * rgindexcreate; // array of index creation info + JET_UINT32 cIndexes; // number of indexes to create + JET_PWSTR szCallback; // callback to use for this table + JET_CBTYP cbtyp; // when the callback should be called + JET_GRBIT grbit; + JET_SPACEHINTS * pSeqSpacehints; // space allocation, maintenance, and usage hints for default sequential index + JET_SPACEHINTS * pLVSpacehints; // space allocation, maintenance, and usage hints for Separated LV tree. + JET_UINT32 cbSeparateLV; // heuristic size to separate a intrinsic LV from the primary record + + JET_TABLEID tableid; // returned tableid. + JET_UINT32 cCreated; // count of objects created (columns+table+indexes+callbacks). +} JET_TABLECREATE4_W; + +#ifdef JET_UNICODE +#define JET_TABLECREATE4 JET_TABLECREATE4_W +#else +#define JET_TABLECREATE4 JET_TABLECREATE4_A +#endif + +#endif // JET_VERSION >= 0x0602 + + +#if ( JET_VERSION >= 0x0600 ) +typedef struct tagJET_OPENTEMPORARYTABLE +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + const JET_COLUMNDEF * prgcolumndef; + JET_UINT32 ccolumn; + JET_UNICODEINDEX * pidxunicode; + JET_GRBIT grbit; + JET_COLUMNID * prgcolumnid; + JET_UINT32 cbKeyMost; + JET_UINT32 cbVarSegMac; + JET_TABLEID tableid; +} JET_OPENTEMPORARYTABLE; +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION >= 0x0602 ) +typedef struct tagJET_OPENTEMPORARYTABLE2 +{ + JET_UINT32 cbStruct; // size of this structure (for future expansion) + const JET_COLUMNDEF * prgcolumndef; + JET_UINT32 ccolumn; + JET_UNICODEINDEX2 * pidxunicode; + JET_GRBIT grbit; + JET_COLUMNID * prgcolumnid; + JET_UINT32 cbKeyMost; + JET_UINT32 cbVarSegMac; + JET_TABLEID tableid; +} JET_OPENTEMPORARYTABLE2; +#endif // JET_VERSION >= 0x0602 + +typedef struct +{ + JET_UINT32 cbStruct; + JET_UINT32 ibLongValue; + JET_UINT32 itagSequence; + JET_COLUMNID columnidNextTagged; +} JET_RETINFO; + +typedef struct +{ + JET_UINT32 cbStruct; + JET_UINT32 ibLongValue; + JET_UINT32 itagSequence; +} JET_SETINFO; + +typedef struct +{ + JET_UINT32 cbStruct; + JET_UINT32 centriesLT; + JET_UINT32 centriesInRange; + JET_UINT32 centriesTotal; +} JET_RECPOS; + +// On input to JetGotoPosition, centriesLTDeprecated and centriesTotalDeprecated must be 0. +// On output from JetGetRecordPositon, centriesLTDeprecated and centriesTotalDeprecated +// hold potentially truncated versions of centriesLT and centriesTotal. +typedef struct +{ + JET_UINT32 cbStruct; + JET_UINT32 centriesLTDeprecated; + JET_UINT32 centriesInRangeDeprecated; + JET_UINT32 centriesTotalDeprecated; + JET_UINT64 centriesLT; + JET_UINT64 centriesTotal; +} JET_RECPOS2; + +typedef struct +{ + JET_UINT32 cbStruct; + JET_TABLEID tableid; + JET_UINT32 cRecord; + JET_COLUMNID columnidBookmark; +} JET_RECORDLIST; + +typedef struct +{ + JET_UINT32 cbStruct; + JET_TABLEID tableid; + JET_GRBIT grbit; +} JET_INDEXRANGE; + +#if ( JET_VERSION >= 0x0602 ) +typedef enum +{ + // can be used for index (JetPrereadIndexRanges) or residual predicate (JetSetCursorFilter) + JET_relopEquals = 0, + JET_relopPrefixEquals, + + // can only be used for residual predicate (JetSetCursorFilter) + JET_relopNotEquals, + JET_relopLessThanOrEqual, + JET_relopLessThan, + JET_relopGreaterThanOrEqual, + JET_relopGreaterThan, + JET_relopBitmaskEqualsZero, + JET_relopBitmaskNotEqualsZero, +} JET_RELOP; + +typedef struct +{ + JET_COLUMNID columnid; // columnid of the column + JET_RELOP relop; // relational operator + JET_PVOID pv; // pointer to the value to use + JET_UINT32 cb; // size of the value to use + JET_GRBIT grbit; // optional grbits +} JET_INDEX_COLUMN; + +typedef struct +{ + JET_INDEX_COLUMN * rgStartColumns; + JET_UINT32 cStartColumns; + JET_INDEX_COLUMN * rgEndColumns; + JET_UINT32 cEndColumns; +} JET_INDEX_RANGE; +#endif // JET_VERSION >= 0x0602 + + + +#pragma pack(push,1) +#define JET_MAX_COMPUTERNAME_LENGTH 15 + +typedef struct +{ + JET_INT8 bSeconds; // 0 - 59 + JET_INT8 bMinutes; // 0 - 59 + JET_INT8 bHours; // 0 - 23 + JET_INT8 bDay; // 1 - 31 + JET_INT8 bMonth; // 1 - 12 + JET_INT8 bYear; // current year - 1900 + union + { + JET_BYTE bFiller1; + struct + { + JET_BYTE fTimeIsUTC:1; + JET_BYTE bMillisecondsLow:7; + }; + }; + union + { + JET_BYTE bFiller2; + struct + { + JET_BYTE fReserved:1; + JET_BYTE bMillisecondsHigh:3; + JET_BYTE fUnused:4; + }; + }; +} JET_LOGTIME; + +#if ( JET_VERSION >= 0x0600 ) +// the JET_BKLOGTIME is an extention of JET_LOGTIME to be used +// in the JET_BKINFO structure. They should have the same size for +// compatibility reasons +typedef struct +{ + JET_INT8 bSeconds; // 0 - 59 + JET_INT8 bMinutes; // 0 - 59 + JET_INT8 bHours; // 0 - 23 + JET_INT8 bDay; // 1 - 31 + JET_INT8 bMonth; // 1 - 12 + JET_INT8 bYear; // current year - 1900 + union + { + JET_BYTE bFiller1; + struct + { + JET_BYTE fTimeIsUTC:1; + JET_BYTE bMillisecondsLow:7; + }; + }; + union + { + JET_BYTE bFiller2; + struct + { + JET_BYTE fOSSnapshot:1; + JET_BYTE bMillisecondsHigh:3; + JET_BYTE fReserved:4; + }; + }; +} JET_BKLOGTIME; +#endif // JET_VERSION >= 0x0600 + +typedef struct +{ + JET_UINT16 ib; // must be the last so that lgpos can + JET_UINT16 isec; // index of disksec starting logsec + JET_INT32 lGeneration; // generation of logsec +} JET_LGPOS; // be casted to TIME. + +typedef struct +{ + JET_UINT32 ulRandom; // a random number + JET_LOGTIME logtimeCreate; // time db created, in logtime format + JET_CHAR szComputerName[ JET_MAX_COMPUTERNAME_LENGTH + 1 ]; // where db is created +} JET_SIGNATURE; + +typedef struct +{ + JET_LGPOS lgposMark; // id for this backup + union + { + JET_LOGTIME logtimeMark; +#if ( JET_VERSION >= 0x0600 ) + JET_BKLOGTIME bklogtimeMark; +#endif // JET_VERSION >= 0x0600 + }; + JET_UINT32 genLow; + JET_UINT32 genHigh; +} JET_BKINFO; + +#pragma pack(pop) + +typedef struct +{ + JET_UINT32 ulVersion; // the major (incompatible) version of DAE from the last engine attach/create. + JET_UINT32 ulUpdate; // used to track incremental database format "update (major)" version from the + // last attach/create that is a backward-compatible major update. + JET_SIGNATURE signDb; // (28 bytes) signature of the db (incl. creation time). + JET_UINT32 dbstate; // consistent/inconsistent state + + JET_LGPOS lgposConsistent; // null if in inconsistent state + JET_LOGTIME logtimeConsistent; // null if in inconsistent state + + JET_LOGTIME logtimeAttach; // Last attach time. + JET_LGPOS lgposAttach; + + JET_LOGTIME logtimeDetach; // Last detach time. + JET_LGPOS lgposDetach; + + JET_SIGNATURE signLog; // (28 bytes) log signature for this attachments + + JET_BKINFO bkinfoFullPrev; // Last successful full backup. + + JET_BKINFO bkinfoIncPrev; // Last successful Incremental backup. + // Reset when bkinfoFullPrev is set + JET_BKINFO bkinfoFullCur; // current backup. Succeed if a + // corresponding pat file generated. + JET_UINT32 fShadowingDisabled; + JET_UINT32 fUpgradeDb; + + // NT version information. This is needed to decide if an index need + // be recreated due to sort table changes. + + JET_UINT32 dwMajorVersion; // OS version info + JET_UINT32 dwMinorVersion; + JET_UINT32 dwBuildNumber; + JET_INT32 lSPNumber; + + JET_UINT32 cbPageSize; // database page size (0 = 4k pages) + +} JET_DBINFOMISC; + +#if ( JET_VERSION >= 0x0600 ) +typedef struct +{ + JET_UINT32 ulVersion; // the major (incompatible) version of DAE from the last engine attach/create. + JET_UINT32 ulUpdate; // used to track incremental database format "update (major)" version from the + // last attach/create that is a backward-compatible major update. + JET_SIGNATURE signDb; // (28 bytes) signature of the db (incl. creation time). + JET_UINT32 dbstate; // consistent/inconsistent state + + JET_LGPOS lgposConsistent; // null if in inconsistent state + JET_LOGTIME logtimeConsistent; // null if in inconsistent state + + JET_LOGTIME logtimeAttach; // Last attach time. + JET_LGPOS lgposAttach; + + JET_LOGTIME logtimeDetach; // Last detach time. + JET_LGPOS lgposDetach; + + JET_SIGNATURE signLog; // (28 bytes) log signature for this attachments + + JET_BKINFO bkinfoFullPrev; // Last successful full backup. + + JET_BKINFO bkinfoIncPrev; // Last successful Incremental backup. + // Reset when bkinfoFullPrev is set + JET_BKINFO bkinfoFullCur; // current backup. Succeed if a + // corresponding pat file generated. + JET_UINT32 fShadowingDisabled; + JET_UINT32 fUpgradeDb; + + // NT version information. This is needed to decide if an index need + // be recreated due to sort table changes. + + JET_UINT32 dwMajorVersion; // OS version info + JET_UINT32 dwMinorVersion; + JET_UINT32 dwBuildNumber; + JET_INT32 lSPNumber; + + JET_UINT32 cbPageSize; // database page size (0 = 4k pages) + + // new fields added on top of the above JET_DBINFOMISC + JET_UINT32 genMinRequired; // the minimum log generation required for replaying the logs. Typically the checkpoint generation + JET_UINT32 genMaxRequired; // the maximum log generation required for replaying the logs. + JET_LOGTIME logtimeGenMaxCreate; // creation time of the genMax log file + + JET_UINT32 ulRepairCount; // number of times repair has been called on this database + JET_LOGTIME logtimeRepair; // the date of the last time that repair was run + JET_UINT32 ulRepairCountOld; // number of times ErrREPAIRAttachForRepair has been called on this database before the last defrag + + JET_UINT32 ulECCFixSuccess; // number of times a one bit error was fixed and resulted in a good page + JET_LOGTIME logtimeECCFixSuccess; // the date of the last time that a one bit error was fixed and resulted in a good page + JET_UINT32 ulECCFixSuccessOld; // number of times a one bit error was fixed and resulted in a good page before last repair + + JET_UINT32 ulECCFixFail; // number of times a one bit error was fixed and resulted in a bad page + JET_LOGTIME logtimeECCFixFail; // the date of the last time that a one bit error was fixed and resulted in a bad page + JET_UINT32 ulECCFixFailOld; // number of times a one bit error was fixed and resulted in a bad page before last repair + + JET_UINT32 ulBadChecksum; // number of times a non-correctable ECC/checksum error was found + JET_LOGTIME logtimeBadChecksum; // the date of the last time that a non-correctable ECC/checksum error was found + JET_UINT32 ulBadChecksumOld; // number of times a non-correctable ECC/checksum error was found before last repair + +} JET_DBINFOMISC2; +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION >= 0x0601 ) +typedef struct +{ + JET_UINT32 ulVersion; // the major (incompatible) version of DAE from the last engine attach/create. + JET_UINT32 ulUpdate; // used to track incremental database format "update (major)" version from the + // last attach/create that is a backward-compatible major update. + JET_SIGNATURE signDb; // (28 bytes) signature of the db (incl. creation time). + JET_UINT32 dbstate; // consistent/inconsistent state + + JET_LGPOS lgposConsistent; // null if in inconsistent state + JET_LOGTIME logtimeConsistent; // null if in inconsistent state + + JET_LOGTIME logtimeAttach; // Last attach time. + JET_LGPOS lgposAttach; + + JET_LOGTIME logtimeDetach; // Last detach time. + JET_LGPOS lgposDetach; + + JET_SIGNATURE signLog; // (28 bytes) log signature for this attachments + + JET_BKINFO bkinfoFullPrev; // Last successful full backup. + + JET_BKINFO bkinfoIncPrev; // Last successful Incremental backup. + // Reset when bkinfoFullPrev is set + JET_BKINFO bkinfoFullCur; // current backup. Succeed if a + // corresponding pat file generated. + JET_UINT32 fShadowingDisabled; + JET_UINT32 fUpgradeDb; + + // NT version information. This is needed to decide if an index need + // be recreated due to sort table changes. + + JET_UINT32 dwMajorVersion; // OS version info + JET_UINT32 dwMinorVersion; + JET_UINT32 dwBuildNumber; + JET_INT32 lSPNumber; + + JET_UINT32 cbPageSize; // database page size (0 = 4k pages) + + // new fields added on top of the above JET_DBINFOMISC + JET_UINT32 genMinRequired; // the minimum log generation required for replaying the logs. Typically the checkpoint generation + JET_UINT32 genMaxRequired; // the maximum log generation required for replaying the logs. + JET_LOGTIME logtimeGenMaxCreate; // creation time of the genMax log file + + JET_UINT32 ulRepairCount; // number of times repair has been called on this database + JET_LOGTIME logtimeRepair; // the date of the last time that repair was run + JET_UINT32 ulRepairCountOld; // number of times ErrREPAIRAttachForRepair has been called on this database before the last defrag + + JET_UINT32 ulECCFixSuccess; // number of times a one bit error was fixed and resulted in a good page + JET_LOGTIME logtimeECCFixSuccess; // the date of the last time that a one bit error was fixed and resulted in a good page + JET_UINT32 ulECCFixSuccessOld; // number of times a one bit error was fixed and resulted in a good page before last repair + + JET_UINT32 ulECCFixFail; // number of times a one bit error was fixed and resulted in a bad page + JET_LOGTIME logtimeECCFixFail; // the date of the last time that a one bit error was fixed and resulted in a bad page + JET_UINT32 ulECCFixFailOld; // number of times a one bit error was fixed and resulted in a bad page before last repair + + JET_UINT32 ulBadChecksum; // number of times a non-correctable ECC/checksum error was found + JET_LOGTIME logtimeBadChecksum; // the date of the last time that a non-correctable ECC/checksum error was found + JET_UINT32 ulBadChecksumOld; // number of times a non-correctable ECC/checksum error was found before last repair + + // new fields added on top of the above JET_DBINFOMISC2 + JET_UINT32 genCommitted; // the maximum log generation committed to the database. Typically the current log generation + +} JET_DBINFOMISC3; + +typedef struct +{ + JET_UINT32 ulVersion; // the major (incompatible) version of DAE from the last engine attach/create. + JET_UINT32 ulUpdate; // used to track incremental database format "update (major)" version from the + // last attach/create that is a backward-compatible major update. + JET_SIGNATURE signDb; // (28 bytes) signature of the db (incl. creation time). + JET_UINT32 dbstate; // consistent/inconsistent state + + JET_LGPOS lgposConsistent; // null if in inconsistent state + JET_LOGTIME logtimeConsistent; // null if in inconsistent state + + JET_LOGTIME logtimeAttach; // Last attach time. + JET_LGPOS lgposAttach; + + JET_LOGTIME logtimeDetach; // Last detach time. + JET_LGPOS lgposDetach; + + JET_SIGNATURE signLog; // (28 bytes) log signature for this attachments + + JET_BKINFO bkinfoFullPrev; // Last successful full backup. + + JET_BKINFO bkinfoIncPrev; // Last successful Incremental backup. + // Reset when bkinfoFullPrev is set + JET_BKINFO bkinfoFullCur; // current backup. Succeed if a + // corresponding pat file generated. + JET_UINT32 fShadowingDisabled; + JET_UINT32 fUpgradeDb; + + // NT version information. This is needed to decide if an index need + // be recreated due to sort table changes. + + JET_UINT32 dwMajorVersion; // OS version info + JET_UINT32 dwMinorVersion; + JET_UINT32 dwBuildNumber; + JET_INT32 lSPNumber; + + JET_UINT32 cbPageSize; // database page size (0 = 4k pages) + + // new fields added on top of the above JET_DBINFOMISC + JET_UINT32 genMinRequired; // the minimum log generation required for replaying the logs. Typically the checkpoint generation + JET_UINT32 genMaxRequired; // the maximum log generation required for replaying the logs. + JET_LOGTIME logtimeGenMaxCreate; // creation time of the genMax log file + + JET_UINT32 ulRepairCount; // number of times repair has been called on this database + JET_LOGTIME logtimeRepair; // the date of the last time that repair was run + JET_UINT32 ulRepairCountOld; // number of times ErrREPAIRAttachForRepair has been called on this database before the last defrag + + JET_UINT32 ulECCFixSuccess; // number of times a one bit error was fixed and resulted in a good page + JET_LOGTIME logtimeECCFixSuccess; // the date of the last time that a one bit error was fixed and resulted in a good page + JET_UINT32 ulECCFixSuccessOld; // number of times a one bit error was fixed and resulted in a good page before last repair + + JET_UINT32 ulECCFixFail; // number of times a one bit error was fixed and resulted in a bad page + JET_LOGTIME logtimeECCFixFail; // the date of the last time that a one bit error was fixed and resulted in a bad page + JET_UINT32 ulECCFixFailOld; // number of times a one bit error was fixed and resulted in a bad page before last repair + + JET_UINT32 ulBadChecksum; // number of times a non-correctable ECC/checksum error was found + JET_LOGTIME logtimeBadChecksum; // the date of the last time that a non-correctable ECC/checksum error was found + JET_UINT32 ulBadChecksumOld; // number of times a non-correctable ECC/checksum error was found before last repair + + // new fields added on top of the above JET_DBINFOMISC2 + JET_UINT32 genCommitted; // the maximum log generation committed to the database. Typically the current log generation + + // new fields added on top of the above JET_DBINFOMISC3 + JET_BKINFO bkinfoCopyPrev; // Last successful Copy backup + JET_BKINFO bkinfoDiffPrev; // Last successful Differential backup, reset when bkinfoFullPrev is set +} JET_DBINFOMISC4; +#endif // JET_VERSION >= 0x0601 + +#if ( JET_VERSION >= 0x0600 ) +// JET performance counters accumulated by thread +// +struct JET_THREADSTATS +{ + JET_UINT32 cbStruct; // size of this struct + JET_UINT32 cPageReferenced; // pages referenced + JET_UINT32 cPageRead; // pages read from disk + JET_UINT32 cPagePreread; // pages preread from disk + JET_UINT32 cPageDirtied; // clean pages modified + JET_UINT32 cPageRedirtied; // dirty pages modified + JET_UINT32 cLogRecord; // log records generated + JET_UINT32 cbLogRecord; // log record bytes generated +}; +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION >= 0x0A00 ) +// JET performance counters accumulated by thread +// +struct JET_THREADSTATS2 +{ + JET_UINT32 cbStruct; // size of this struct + JET_UINT32 cPageReferenced; // pages referenced + JET_UINT32 cPageRead; // pages read from disk + JET_UINT32 cPagePreread; // pages preread from disk + JET_UINT32 cPageDirtied; // clean pages modified + JET_UINT32 cPageRedirtied; // dirty pages modified + JET_UINT32 cLogRecord; // log records generated + JET_UINT32 cbLogRecord; // log record bytes generated + JET_UINT64 cusecPageCacheMiss; // page cache miss latency in microseconds + JET_UINT32 cPageCacheMiss; // page cache misses +}; +#endif // JET_VERSION >= 0x0A00 + +#if ( JET_VERSION >= 0x0A01 ) +// JET performance counters accumulated by thread +// +struct JET_THREADSTATS3 +{ + JET_UINT32 cbStruct; // size of this struct + JET_UINT32 cPageReferenced; // pages referenced + JET_UINT32 cPageRead; // pages read from disk + JET_UINT32 cPagePreread; // pages preread from disk + JET_UINT32 cPageDirtied; // clean pages modified + JET_UINT32 cPageRedirtied; // dirty pages modified + JET_UINT32 cLogRecord; // log records generated + JET_UINT32 cbLogRecord; // log record bytes generated + JET_UINT64 cusecPageCacheMiss; // page cache miss latency in microseconds + JET_UINT32 cPageCacheMiss; // page cache misses + JET_UINT32 cSeparatedLongValueRead; // separated LV reads + JET_UINT64 cusecLongValuePageCacheMiss; // page cache miss latency in microseconds while reading separated LV data + JET_UINT32 cLongValuePageCacheMiss; // page cache misses while reading separated LV data +}; +#endif // JET_VERSION >= 0x0A01 + +#if ( JET_VERSION >= 0x0600 ) + +typedef struct +{ + JET_UINT32 cbStruct; + + JET_RSTMAP_A * rgrstmap; + JET_INT32 crstmap; + + JET_LGPOS lgposStop; + JET_LOGTIME logtimeStop; + + JET_PFNSTATUS pfnStatus; +} JET_RSTINFO_A; + +typedef struct +{ + JET_UINT32 cbStruct; + + JET_RSTMAP_W * rgrstmap; + JET_INT32 crstmap; + + JET_LGPOS lgposStop; + JET_LOGTIME logtimeStop; + + JET_PFNSTATUS pfnStatus; +} JET_RSTINFO_W; + +#ifdef JET_UNICODE +#define JET_RSTINFO JET_RSTINFO_W +#else +#define JET_RSTINFO JET_RSTINFO_A +#endif + +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION >= 0x0602 ) + +// JET_errcatError +// | +// |-- JET_errcatOperation +// | |-- JET_errcatFatal +// | |-- JET_errcatIO // bad IO issues, may or may not be transient. +// | |-- JET_errcatResource +// | |-- JET_errcatMemory // out of memory (all variants) +// | |-- JET_errcatQuota +// | |-- JET_errcatDisk // out of disk space (all variants) +// |-- JET_errcatData +// | |-- JET_errcatCorruption +// | |-- JET_errcatInconsistent // typically caused by user Mishandling +// | |-- JET_errcatFragmentation +// |-- JET_errcatApi +// |-- JET_errcatUsage +// |-- JET_errcatState + + +// A brief description of each error type +// +// Operation(al) - Errors that can usually happen any time due to uncontrollable +// conditions. Frequently temporary, but not always. +// +// Recovery: Probably retry, or eventually inform the operator. +// +// Fatal - This sort error happens only when ESE encounters an error condition +// so grave, that we can not continue on in a safe (often transactional) +// way, and rather than corrupt data we throw errors of this category. +// +// Recovery: Restart the instance or process. If the problem persists +// inform the operator. +// +// IO - IO errors come from the OS, and are out of ESE's control, this sort +// of error is possibly temporary, possibly not. +// +// Recovery: Retry. If not resolved, ask operator about disk issue. +// +// Resource - This is a category that indicates one of many potential out-of-resource +// conditions. +// +// Memory Classic out of memory condition. +// +// Recovery: Wait a while and retry, free up memory, or quit. +// +// Quota Certain "specialty" resources are in pools of a certain size, making +// it easier to detect leaks of these resources. +// +// Recovery: Bug fix, generally the application should Assert() on these +// conditions so as to detect these issues during development. However, +// in retail code, the best to hope for is to treat like Memory. +// +// Disk Out of disk conditions. +// +// Recovery: Can retry later in the hope more space is available, or +// ask the operator to free some disk space. +// Data +// +// Corruption My hard drive ate my homework. Classic corruption issues, frequently +// permanent without corrective action. +// +// Recovery: Restore from backup, perhaps the ese utilities repair +// operation (which only salvages what data is left / lossy). Also +// in the case of recovery(JetInit) perhaps recovery can be performed +// by allowing data loss. +// +// Inconsistent This is similar to Corruption in that the database and/or log files +// are in a state that is inconsistent and unreconcilable with each +// other. Often this is caused by application/administrator mishandling. +// +// Recovery: Restore from backup, perhaps the ese utilities repair +// operation (which only salvages what data is left / lossy). Also +// in the case of recovery(JetInit) perhaps recovery can be performed +// by allowing data loss. +// +// Fragmentation This is a class of errors where some persisted internal resource ran +// out. +// +// Recovery: For database errors, offline defragmentation will rectify +// the problem, for the log files _first_ recover all attached databases +// to a clean shutdown, and then delete all the log files and checkpoint. +// +// Api +// +// Usage Classic usage error, this means the client code did not pass correct +// arguments to the JET API. This error will likely not go away with +// retry. +// +// Recovery: Generally speaking client code should Assert() this class +// of errors is not returned, so issues can be caught during development. +// In retail, the app will probably have little option but to return +// the issue up to the operator. +// +// State This is the classification for different signals the API could return +// describe the state of the database, a classic case is JET_errRecordNotFound +// which can be returned by JetSeek() when the record you asked for +// was not found. +// +// Recovery: Not really relevant, depends greatly on the API. +// + +typedef enum +{ + JET_errcatUnknown = 0, // unknown, error retrieving err category + JET_errcatError, // top level (no errors should be of this class) + JET_errcatOperation, + JET_errcatFatal, + JET_errcatIO, // bad IO issues, may or may not be transient. + JET_errcatResource, + JET_errcatMemory, // out of memory (all variants) + JET_errcatQuota, + JET_errcatDisk, // out of disk space (all variants) + JET_errcatData, + JET_errcatCorruption, + JET_errcatInconsistent, + JET_errcatFragmentation, + JET_errcatApi, + JET_errcatUsage, + JET_errcatState, + JET_errcatObsolete, + JET_errcatMax, +} JET_ERRCAT; + +// Output structure for JetGetErrorInfoW(). Not all fields may +// be populated by all error levels. +typedef struct +{ + JET_UINT32 cbStruct; + JET_ERR errValue; // The error value for the requested info level. + JET_ERRCAT errcatMostSpecific; // The most specific category of the error. + JET_BYTE rgCategoricalHierarchy[8]; // Hierarchy of error categories. Position 0 is the highest level in the hierarchy, and the rest are JET_errcatUnknown. + JET_UINT32 lSourceLine; // The source file line for the requested info level. + JET_WCHAR rgszSourceFile[64]; // The source file name for the requested info level. +} JET_ERRINFOBASIC_W; + +// grbits for JET_PFNDURABLECOMMITCALLBACK +#if ( JET_VERSION >= 0x0A00 ) +#define JET_bitDurableCommitCallbackLogUnavailable 0x00000001 // Passed back to durable commit callback to let it know that log is down (and all pending commits will not be flushed to disk) +#endif + +// commit-id from JetCommitTransaction2 +typedef struct +{ + JET_SIGNATURE signLog; + JET_INT32 reserved; // for packing so int64 below is 8-byte aligned on 32-bits despite the pshpack4 above + JET_INT64 commitId; +} JET_COMMIT_ID; + +// assert that commit-id is 8-byte aligned so managed interop works correctly +// static_assert( offsetof( JET_COMMIT_ID, commitId ) % 8 == 0 ); + +// callback for JET_paramDurableCommitCallback +typedef JET_ERR (JET_API * JET_PFNDURABLECOMMITCALLBACK)( + _In_ JET_INSTANCE instance, + _In_ JET_COMMIT_ID * pCommitIdSeen, + _In_ JET_GRBIT grbit ); + +#endif // JET_VERSION >= 0x0602 + +/************************************************************************/ +/************************* JET CONSTANTS ************************/ +/************************************************************************/ + +#if ( JET_VERSION >= 0x0501 ) +#define JET_instanceNil (~(JET_INSTANCE)0) +#endif // JET_VERSION >= 0x0501 +#define JET_sesidNil (~(JET_SESID)0) +#define JET_tableidNil (~(JET_TABLEID)0) +#define JET_bitNil ((JET_GRBIT)0) + + /* Max size of a bookmark */ + +#define JET_cbBookmarkMost 256 +#if ( JET_VERSION >= 0x0601 ) +#define JET_cbBookmarkMostMost JET_cbKeyMostMost +#endif // JET_VERSION >= 0x0601 + + /* Max length of a object/column/index/property name */ + +#ifndef JET_UNICODE +#define JET_cbNameMost 64 +#else +#define JET_cbNameMost 128 +#endif + + /* Max length of a "name.name.name..." construct */ + +#ifndef JET_UNICODE +#define JET_cbFullNameMost 255 +#else +#define JET_cbFullNameMost 510 +#endif + + /* Max size of long-value (LongBinary or LongText) column chunk */ + +// #define JET_cbColumnLVChunkMost ( JET_cbPage - 82 ) to the following: +// Get cbPage from GetSystemParameter. +// changed JET_cbColumnLVChunkMost reference to cbPage - JET_cbColumnLVPageOverhead + +#define JET_cbColumnLVPageOverhead 82 // ONLY for small (<=8kiB) page, otherwise, query JET_paramLVChunkSizeMost + + + /* Max size of long-value (LongBinary or LongText) column default value */ + +#define JET_cbLVDefaultValueMost 255 + + /* Max size of non-long-value column data */ + +#define JET_cbColumnMost 255 + + /* Max size of long-value column data. */ + +#define JET_cbLVColumnMost 0x7FFFFFFF + + /* Max size of a sort/index key */ + +#if ( JET_VERSION >= 0x0601 ) +#define JET_cbKeyMostMost JET_cbKeyMost32KBytePage +#define JET_cbKeyMost32KBytePage JET_cbKeyMost8KBytePage +#define JET_cbKeyMost16KBytePage JET_cbKeyMost8KBytePage +#endif // JET_VERSION >= 0x0601 +#if ( JET_VERSION >= 0x0600 ) +#define JET_cbKeyMost8KBytePage 2000 +#define JET_cbKeyMost4KBytePage 1000 +#define JET_cbKeyMost2KBytePage 500 +#define JET_cbKeyMostMin 255 +#endif // JET_VERSION >= 0x0600 + +#define JET_cbKeyMost 255 // defunct constant retained for backward compatibility +#define JET_cbLimitKeyMost 256 // defunct constant retained for backward compatibility +#define JET_cbPrimaryKeyMost 255 // defunct constant retained for backward compatibility +#define JET_cbSecondaryKeyMost 255 // defunct constant retained for backward compatibility + + + /* Max number of components in a sort/index key */ + +#if ( JET_VERSION >= 0x0600 ) +#define JET_ccolKeyMost 16 +#else // !JET_VERSION >= 0x0600 +#define JET_ccolKeyMost 12 +#endif // !JET_VERSION >= 0x0600 + +// maximum number of columns +#if ( JET_VERSION >= 0x0501 ) +#define JET_ccolMost 0x0000fee0 +#else // !JET_VERSION >= 0x0501 +#define JET_ccolMost 0x00007ffe +#endif // !JET_VERSION >= 0x0501 +#define JET_ccolFixedMost 0x0000007f +#define JET_ccolVarMost 0x00000080 +#define JET_ccolTaggedMost ( JET_ccolMost - 0x000000ff ) + +#if ( JET_VERSION >= 0x0501 ) +#define JET_EventLoggingDisable 0 +#if ( JET_VERSION >= 0x0601 ) +#define JET_EventLoggingLevelMin 1 +#define JET_EventLoggingLevelLow 25 +#define JET_EventLoggingLevelMedium 50 +#define JET_EventLoggingLevelHigh 75 +#endif // JET_VERSION >= 0x0601 +#define JET_EventLoggingLevelMax 100 +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION >= 0x0603 ) +// Values for JET_paramEnableIndexChecking. +typedef enum +{ + JET_IndexCheckingOff = 0, + JET_IndexCheckingOn = 1, + JET_IndexCheckingDeferToOpenTable = 2, + JET_IndexCheckingMax = 3, +} JET_INDEXCHECKING; +#endif + +// The following values are bit-fields that JET_paramIOPriority can be set to +#if ( JET_VERSION >= 0x0600 ) +// Values for JET_paramIOPriority +#define JET_IOPriorityNormal 0x0 // default +#define JET_IOPriorityLow 0x1 +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION >= 0x0602 ) +// Values for usage with JET_paramConfiguration +// +// Can set the optimization configs one at a time. +// +#define JET_configDefault 0x0001 // Resets ALL parameters to their default value +#define JET_configRemoveQuotas 0x0002 // Unrestricts the quota enforcement (by setting to as high as possible) for any ESE handle types where memory is not pre-allocated or used as a cache. +#define JET_configLowDiskFootprint 0x0004 // Set appropriate parameters to optimize the engine to use a small amount of disk space. Uses circular logging. +#define JET_configMediumDiskFootprint 0x0008 // Set appropriate parameters to optimize the engine to use a medium amount of disk space. Uses circular logging. +#define JET_configLowMemory 0x0010 // Set appropriate parameters to optimize the engine to use a small amount of memory/working set at the cost of CPU efficiency and some disk efficiency. +#define JET_configDynamicMediumMemory 0x0020 // Set appropriate parameters to optimize the engine to use a modest amount of memory/working set at the cost of CPU efficiency, dynamically adjusting for bursts in activity. +#define JET_configLowPower 0x0040 // Set appropriate parameters to optimize the engine to attempt to conserve power over keeping everything the most up to date, or memory usage. +#define JET_configSSDProfileIO 0x0080 // Set appropriate parameters to optimize the engine to be using the SSD profile IO parameters. +#define JET_configRunSilent 0x0100 // Turns off all externally visible signs of the library running (event logs, perfmon, tracing, etc). NOTE: This makes debugging issues difficult, best if app policy has way to configure this off or on. +#if ( JET_VERSION >= 0x0A00 ) +#define JET_configUnthrottledMemory 0x0200 // Allows ESE to grow to most of memory because this is likely a single purpose server for this machine, or wants to allow our variable memory caches to grow to use most of memory if in use. +#define JET_configHighConcurrencyScaling 0x0400 // Ensures ESE uses all its high concurrency scaling methods to achieve high levels of performance on multi-CPU systems (SMP, Multi-Core, Hyper-Threading, etc) for server scale applications, at a higher fixed memory overhead. +#endif // JET_VERSION >= 0x0A00 + +#endif // JET_VERSION >= 0x0602 + +// system parameters +// +// NOTE: the default values of these parameters used to be documented here. +// this can no longer be done because we now support multiple sets of default +// values as set by JET_paramConfiguration +// +// location parameters +// +#define JET_paramSystemPath 0 // path to check point file +#define JET_paramTempPath 1 // path to the temporary database +#define JET_paramLogFilePath 2 // path to the log file directory +#define JET_paramBaseName 3 // base name for all DBMS object names +#define JET_paramEventSource 4 // language independent process descriptor string + +// performance parameters +// +#define JET_paramMaxSessions 5 // maximum number of sessions +#define JET_paramMaxOpenTables 6 // maximum number of open directories + // need 1 for each open table index, + // plus 1 for each open table with no indexes, + // plus 1 for each table with long column data, + // plus a few more. + // for 4.1, 1/3 for regular table, 2/3 for index +#define JET_paramPreferredMaxOpenTables 7 // preferred maximum number of open directories +#if ( JET_VERSION >= 0x0600 ) +#define JET_paramCachedClosedTables 125 // number of closed tables to cache the meta-data for +#endif // JET_VERSION >= 0x0600 +#define JET_paramMaxCursors 8 // maximum number of open cursors +#define JET_paramMaxVerPages 9 // maximum version store size in version pages +#define JET_paramPreferredVerPages 63 // preferred version store size in version pages +#if ( JET_VERSION >= 0x0501 ) +#define JET_paramGlobalMinVerPages 81 // minimum version store size for all instances in version pages +#define JET_paramVersionStoreTaskQueueMax 105 // maximum number of tasks in the task queue before start dropping the tasks +#endif // JET_VERSION >= 0x0501 +#define JET_paramMaxTemporaryTables 10 // maximum concurrent open temporary table/index creation +#define JET_paramLogFileSize 11 // log file size in kBytes +#define JET_paramLogBuffers 12 // log buffers in 512 byte units. +#define JET_paramWaitLogFlush 13 // log flush wait time in milliseconds +#define JET_paramLogCheckpointPeriod 14 // checkpoint period in sectors +#define JET_paramLogWaitingUserMax 15 // maximum sessions waiting log flush +#define JET_paramCommitDefault 16 // default grbit for JetCommitTransaction +#define JET_paramCircularLog 17 // boolean flag for circular logging +#define JET_paramDbExtensionSize 18 // database extension size in pages +#define JET_paramPageTempDBMin 19 // minimum size temporary database in pages +#define JET_paramPageFragment 20 // maximum disk extent considered fragment in pages +#if ( JET_VERSION >= 0x0600 ) +#define JET_paramEnableFileCache 126 // enable the use of the OS file cache for all managed files +#define JET_paramVerPageSize 128 // the version store page size +#define JET_paramConfiguration 129 // RESETs all parameters to their default for a given configuration +#define JET_paramEnableAdvanced 130 // enables the modification of advanced settings +#define JET_paramMaxColtyp 131 // maximum coltyp supported by this version of ESE +#endif // JET_VERSION >= 0x0600 + +// cache performance parameters +// +#define JET_paramBatchIOBufferMax 22 // maximum batch I/O buffers in pages +#define JET_paramCacheSize 41 // current cache size in pages +#define JET_paramCacheSizeMin 60 // minimum cache size in pages +#define JET_paramCacheSizeMax 23 // maximum cache size in pages +#define JET_paramCheckpointDepthMax 24 // maximum checkpoint depth in bytes +#define JET_paramLRUKCorrInterval 25 // time (usec) under which page accesses are correlated +#define JET_paramLRUKHistoryMax 26 // maximum LRUK history records +#define JET_paramLRUKPolicy 27 // K-ness of LRUK page eviction algorithm (1...2) +#define JET_paramLRUKTimeout 28 // time (sec) after which cached pages are always evictable +#define JET_paramLRUKTrxCorrInterval 29 // Not Used: time (usec) under which page accesses by the same transaction are correlated +#define JET_paramOutstandingIOMax 30 // maximum outstanding I/Os +#define JET_paramStartFlushThreshold 31 // evictable pages at which to start a flush (proportional to CacheSizeMax) +#define JET_paramStopFlushThreshold 32 // evictable pages at which to stop a flush (proportional to CacheSizeMax) +#if ( JET_VERSION >= 0x0600 ) +#define JET_paramEnableViewCache 127 // enable the use of memory mapped file I/O for database files +#define JET_paramCheckpointIOMax 135 // maxiumum number of pending flush writes +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION >= 0x0600 ) +// TableClass names +#define JET_paramTableClass1Name 137 // name of tableclass1 +#define JET_paramTableClass2Name 138 // name of tableclass2 +#define JET_paramTableClass3Name 139 // name of tableclass3 +#define JET_paramTableClass4Name 140 // name of tableclass4 +#define JET_paramTableClass5Name 141 // name of tableclass5 +#define JET_paramTableClass6Name 142 // name of tableclass6 +#define JET_paramTableClass7Name 143 // name of tableclass7 +#define JET_paramTableClass8Name 144 // name of tableclass8 +#define JET_paramTableClass9Name 145 // name of tableclass9 +#define JET_paramTableClass10Name 146 // name of tableclass10 +#define JET_paramTableClass11Name 147 // name of tableclass11 +#define JET_paramTableClass12Name 148 // name of tableclass12 +#define JET_paramTableClass13Name 149 // name of tableclass13 +#define JET_paramTableClass14Name 150 // name of tableclass14 +#define JET_paramTableClass15Name 151 // name of tableclass15 +#endif // JET_VERSION >= 0x0600 + + +#define JET_paramIOPriority 152 // adjust IO priority per instance, anytime. Mainly for background recovery + // Doesn't affect pending IOs, just subsequent ones + +#define JET_paramRecovery 34 // enable recovery via setting the string "On" or "Off" +#define JET_paramEnableOnlineDefrag 35 // enable online defrag + +// Application specific parameter +// +#define JET_paramCheckFormatWhenOpenFail 44 // JetInit may return JET_errDatabaseXXXformat instead of database corrupt when it is set +#define JET_paramEnableTempTableVersioning 46 // Enable versioning of temp tables +#define JET_paramIgnoreLogVersion 47 // Do not check the log version +#define JET_paramDeleteOldLogs 48 // Delete the log files if the version is old, after deleting may make database non-recoverable +#define JET_paramEventSourceKey 49 // Event source registration key value +#define JET_paramNoInformationEvent 50 // Disable logging information event +#if ( JET_VERSION >= 0x0501 ) +#define JET_paramEventLoggingLevel 51 // Set the type of information that goes to event log +#define JET_paramDeleteOutOfRangeLogs 52 // Delete the log files that are not matching (generation wise) during soft recovery +#define JET_paramAccessDeniedRetryPeriod 53 // Number of milliseconds to retry when about to fail with AccessDenied +#endif // JET_VERSION >= 0x0501 + +// Index-checking parameters +// +// After Windows 7, it was discovered that JET_paramEnableIndexCleanup had some implementation limitations, reducing its effectiveness. +// Rather than update it to work with locale names, the functionality is removed altogether. +// +// Unfortunately JET_paramEnableIndexCleanup can not be ignored altogether. JET_paramEnableIndexChecking defaults to false, so if +// JET_paramEnableIndexCleanup were to be removed entirely, then by default there were would be no checks for NLS changes! +// +// The current behavious (when enabled) is to track the language sort versions for the indices, and when the sort version for that +// particular locale changes, the engine knows which indices are now invalid. For example, if the sort version for only "de-de" changes, +// then the "de-de" indices are invalid, but the "en-us" indices will be fine. +// +// Post-Windows 8: +// JET_paramEnableIndexChecking accepts JET_INDEXCHECKING (which is an enum). The values of '0' and '1' have the same meaning as before, +// but '2' is JET_IndexCheckingDeferToOpenTable, which means that the NLS up-to-date-ness is NOT checked when the database is attached. +// It is deferred to JetOpenTable(), which may now fail with JET_errPrimaryIndexCorrupted or JET_errSecondaryIndexCorrupted (which +// are NOT actual corruptions, but instead reflect an NLS sort change). +// +// IN SUMMARY: +// New code should explicitly set both IndexChecking and IndexCleanup to the same value. +// +// +// OLDER NOTES (up to and including Windows 7) +// +// Different versions of windows normalize unicode text in different ways. That means indexes built under one version of Windows may +// not work on other versions. Windows Server 2003 Beta 3 introduced GetNLSVersion() which can be used to determine the version of unicode normalization +// that the OS currently provides. Indexes built in server 2003 are flagged with the version of unicode normalization that they were +// built with (older indexes have no version information). Most unicode normalization changes consist of adding new characters -- codepoints +// which were previously undefined are defined and normalize differently. Thus, if binary data is stored in a unicode column it will normalize +// differently as new codepoints are defined. +// +// As of Windows Server 2003 RC1 ESENT tracks unicode index entries that contain undefined codepoints. These can be used to fixup an index when the +// set of defined unicode characters changes. +// +// These parameters control what happens when ESENT attaches to a database that was last used under a different build of the OS (the OS version +// is stamped in the database header). +// +// If JET_paramEnableIndexChecking is TRUE JetAttachDatabase() will delete indexes if JET_bitDbDeleteCorruptIndexes or return an error if +// the grbit was not specified and there are indexes which need deletion. If it is set to FALSE then JetAttachDatabase() will succeed, even +// if there are potentially corrupt indexes. +// +// If JET_paramEnableIndexCleanup is set, the internal fixup table will be used to fixup index entries. This may not fixup all index corruptions +// but will be transparent to the application. +// + +#define JET_paramEnableIndexChecking 45 // Enable checking OS version for indexes (false by default). +#if ( JET_VERSION >= 0x0502 ) +#define JET_paramEnableIndexCleanup 54 // Enable cleanup of out-of-date index entries (Windows 2003 through Windows 7); Does NLS version checking (Windows 2003 and later). +#endif // JET_VERSION >= 0x0502 + + +// 60 // JET_paramCacheSizeMin defined above +// 63 // JET_paramPreferredVerPages defined above +#define JET_paramDatabasePageSize 64 // set database page size +#if ( JET_VERSION >= 0x0501 ) +#define JET_paramDisableCallbacks 65 // turn off callback resolution (for defrag/repair) +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0501 ) +#define JET_paramLogFileCreateAsynch 69 // prepares next log file while logging to the current one to smooth response time +#endif // JET_VERSION >= 0x0501 +#define JET_paramErrorToString 70 // turns a JET_err into a string (taken from the comment in jet.h) +#if ( JET_VERSION >= 0x0501 ) +#define JET_paramZeroDatabaseDuringBackup 71 // Overwrite deleted records/LVs during backup +#endif // JET_VERSION >= 0x0501 +#define JET_paramUnicodeIndexDefault 72 // default LCMapString() lcid and flags to use for CreateIndex() and unique multi-values check + // (pass pointer to JET_UNICODEINDEX structure for plParam and sizeof(JET_UNICODE_INDEX) for cbMax) +#if ( JET_VERSION >= 0x0501 ) +#define JET_paramRuntimeCallback 73 // pointer to runtime-only callback function +#endif // JET_VERSION >= 0x0501 +#define JET_paramCleanupMismatchedLogFiles 77 // instead of erroring out after a successful recovery with JET_errLogFileSizeMismatchDatabasesConsistent, ESE will silently delete the old log files and checkpoint file and continue operations +#if ( JET_VERSION >= 0x0501 ) +#define JET_paramRecordUpgradeDirtyLevel 78 // how aggresively should pages with their record format converted be flushed (0-3) +// 81 // JET_paramGlobalMinVerPages defined above +#define JET_paramOSSnapshotTimeout 82 // timeout for the freeze period in msec +#endif // JET_VERSION >= 0x0501 + +#define JET_paramExceptionAction 98 // what to do with exceptions generated within JET +#define JET_paramEventLogCache 99 // number of bytes of eventlog records to cache if service is not available + +#if ( JET_VERSION >= 0x0501 ) +#define JET_paramCreatePathIfNotExist 100 // create system/temp/log/log-failover paths if they do not exist +#define JET_paramPageHintCacheSize 101 // maximum size of the fast page latch hint cache in bytes +#define JET_paramOneDatabasePerSession 102 // allow just one open user database per session +#define JET_paramMaxInstances 104 // maximum number of instances per process +#define JET_paramDisablePerfmon 107 // disable perfmon support for this process + +#define JET_paramIndexTuplesLengthMin 110 // for tuple indexes, minimum length of a tuple +#define JET_paramIndexTuplesLengthMax 111 // for tuple indexes, maximum length of a tuple +#define JET_paramIndexTuplesToIndexMax 112 // for tuple indexes, maximum number of characters in a given string to index +#endif // JET_VERSION >= 0x0501 + +// Parameters added in Windows 2003/XP64. +#if ( JET_VERSION >= 0x0502 ) +#define JET_paramAlternateDatabaseRecoveryPath 113 // recovery-only - search for dirty-shutdown databases in specified location only +#endif // JET_VERSION >= 0x0502 + + +// Parameters added in Windows Vista. +#if ( JET_VERSION >= 0x0600 ) +#define JET_paramIndexTupleIncrement 132 // for tuple indexes, offset increment for each succesive tuple +#define JET_paramIndexTupleStart 133 // for tuple indexes, offset to start tuple indexing +#define JET_paramKeyMost 134 // read only maximum settable key length before key trunctation occurs +#define JET_paramLegacyFileNames 136 // Legacy file name characteristics to preserve ( JET_bitESE98FileNames | JET_bitEightDotThreeSoftCompat ) +#define JET_paramEnablePersistedCallbacks 156 // allow the database engine to resolve and use callbacks persisted in a database +#endif // JET_VERSION >= 0x0600 + +// Parameters added in Windows 7. +#if ( JET_VERSION >= 0x0601 ) +#define JET_paramWaypointLatency 153 // The latency (in logs) behind the tip / highest committed log to defer database page flushes. +#define JET_paramDefragmentSequentialBTrees 160 // Turn on/off automatic sequential B-tree defragmentation tasks (On by default, but also requires JET_SPACEHINTS flags / JET_bitRetrieveHintTableScan* to trigger on any given tables). +#define JET_paramDefragmentSequentialBTreesDensityCheckFrequency 161 // Determine how frequently B-tree density is checked +#define JET_paramIOThrottlingTimeQuanta 162 // Max time (in MS) that the I/O throttling mechanism gives a task to run for it to be considered 'completed'. +#define JET_paramLVChunkSizeMost 163 // Max LV chunk size supported wrt the chosen page size (R/O) +#define JET_paramMaxCoalesceReadSize 164 // Max number of bytes that can be grouped for a coalesced read operation. +#define JET_paramMaxCoalesceWriteSize 165 // Max number of bytes that can be grouped for a coalesced write operation. +#define JET_paramMaxCoalesceReadGapSize 166 // Max number of bytes that can be gapped for a coalesced read IO operation. +#define JET_paramMaxCoalesceWriteGapSize 167 // Max number of bytes that can be gapped for a coalesced write IO operation. +#define JET_paramEnableDBScanInRecovery 169 // Do checksumming of the database during recovery. +#define JET_paramDbScanThrottle 170 // throttle (mSec). +#define JET_paramDbScanIntervalMinSec 171 // Min internal to repeat checksumming (Sec). +#define JET_paramDbScanIntervalMaxSec 172 // Max internal checksumming must finish (Sec). +#endif // JET_VERSION >= 0x0601 + +#if ( JET_VERSION >= 0x0602 ) + +#define JET_paramCachePriority 177 // Per-instance property for relative cache priorities (default = 100). + // + // There are three scopes for which cache priority may be assigned: + // + // - Instance: by calling JetSetSystemParameter and setting JET_paramCachePriority for a specific + // ESE instance. The cache priority for this scope is always defined (default is 100), + // even if the client does not set the priority explicitly using the system parameter. + // - Session: by calling JetSetSessionParameter and setting JET_sesparamCachePriority for a specific + // ESE session. The cache priority for this scope is undefined by default. + // - Database: by calling JetCreateDatabase3 (or above) or JetAttachDatabase3 (or above) and setting + // JET_dbparamCachePriority for a specific new or attached database. The cache priority + // for this scope is undefined by default. + // + // The way cache priority for those three scopes interact is as follows: + // - If only the priority for the instance scope is defined, it is used for all operations related + // to that instance. + // - If only the priorities for the instance and session scopes are defined, the session scope priority + // is used for all operations related to that session. + // - If only the priorities for the instance and database scopes are defined, the database scope priority + // is used for all operations related to that database. + // - If the priorities for all three scopes are defined, the lowest of session and database scope + // priorities is used for all operations related to that session/database combination. For everything + // else, the rules above apply on a per-database-page basis. + +#define JET_paramMaxTransactionSize 178 // Percentage of version store that can be used by oldest transaction before JET_errVersionStoreOutOfMemory (default = 100). +#define JET_paramPrereadIOMax 179 // Maximum number of I/O operations dispatched for a given purpose. +#define JET_paramEnableDBScanSerialization 180 // Database Maintenance serialization is enabled for databases sharing the same disk. +#define JET_paramHungIOThreshold 181 // The threshold for what is considered a hung IO that should be acted upon. +#define JET_paramHungIOActions 182 // A set of actions to be taken on IOs that appear hung. +#define JET_paramMinDataForXpress 183 // Smallest amount of data that should be compressed with xpress compression. +#endif // JET_VERSION >= 0x0602 + +#if ( JET_VERSION >= 0x0603 ) +#define JET_paramEnableShrinkDatabase 184 // Release space back to the OS when deleting data. This may require an OS feature of Sparse Files, and is subject to change. + +#endif // JET_VERSION >= 0x0603 + +// Parameters added in Windows 8. +#if ( JET_VERSION >= 0x0602 ) +#define JET_paramProcessFriendlyName 186 // Friendly name for this instance of the process (e.g. performance counter global instance name, event logs). +#define JET_paramDurableCommitCallback 187 // callback for when log is flushed +#endif // JET_VERSION >= 0x0602 + +// Parameters added in Windows 8.1. +#if ( JET_VERSION >= 0x0603 ) +#define JET_paramEnableSqm 188 // Deprecated / ignored param. +#endif // JET_VERSION >= 0x0603 + +// Parameters added in Windows 10. +#if ( JET_VERSION >= 0x0A00 ) + +#define JET_paramConfigStoreSpec 189 // Custom path that allows the consumer to specify a path (currently from in the registry) from which to pull custom ESE configuration. + + +#endif // JET_VERSION >= 0x0A00 + +#define JET_paramEngineFormatVersion 194 // Engine format version - specifies the maximum format version the engine should allow, ensuring no format features are used beyond this (allowing the DB / logs to be forward compatible). +#if ( JET_VERSION >= 0x0A01 ) +#define JET_paramUseFlushForWriteDurability 214 // This controls whether ESE uses Flush or FUA to make sure a write to disk is durable. + +#define JET_paramEnableRBS 215 // Turns on revert snapshot. Not an ESE flight as we will let the variant be controlled outside ESE (like HA can enable this when lag is disabled) +#define JET_paramRBSFilePath 216 // path to the revert snapshot directory + +#define JET_paramPerfmonRefreshInterval 217 // Interval, in units of msec, used by the Permormance Monitor to refresh values for collection. + +#define JET_paramEnableBlockCache 218 // Indicates that the ESE Block Cache is enabled. This is sufficient to access files previously attached to the ESE Block Cache but not to attach new files. + +#endif // JET_VERSION >= 0x0A01 + +#define JET_paramTraceFlags 223 // Specific flags to include in IO traces indicating various info +#define JET_paramMaxValueInvalid 232 // This is not a valid parameter. It can change from release to release! + + + +// Session parameters +// +// JET_sesparamBase 4096 // All JET_sesparams designed to be distinct from system / JET_params and JET_dbparams for code defense. + +#define JET_sesparamCommitDefault 4097 // Default grbit for JetCommitTransaction +#if ( JET_VERSION >= 0x0A00 ) +#define JET_sesparamTransactionLevel 4099 // Retrieves (read-only, no set) the current number of nested levels of transactions begun. 0 = not in a transaction. +#define JET_sesparamOperationContext 4100 // a client context that the engine uses to track and trace operations (such as IOs) +#define JET_sesparamCorrelationID 4101 // an ID that is logged in traces and can be used by clients to correlate ESE actions with their activity +#define JET_sesparamMaxValueInvalid 4111 // This is not a valid session parameter. It can change from release to release! + +typedef struct +{ + JET_UINT32 ulUserID; + JET_BYTE nOperationID; + JET_BYTE nOperationType; + JET_BYTE nClientType; + JET_BYTE fFlags; +} JET_OPERATIONCONTEXT; +#endif // JET_VERSION >= 0x0A00 + +#if ( JET_VERSION >= 0x0600 ) + + /* Flags for JET_paramLegacyFileNames */ + +#define JET_bitESE98FileNames 0x00000001 // Preserve the .log and .chk extension for compatibility reasons (i.e. Exchange) +#define JET_bitEightDotThreeSoftCompat 0x00000002 // Preserve the 8.3 naming syntax for as long as possible. (this should not be changed, w/o ensuring there are no log files) +#endif // JET_VERSION >= 0x0600 + + /* Flags for JET_paramHungIOActions */ + +#define JET_bitHungIOEvent 0x00000001 // Log event when an IO appears to be hung for over the IO threshold. + +#if ( JET_VERSION >= 0x0603 ) +// Values for JET_paramEnableShrinkDatabase. +#define JET_bitShrinkDatabaseOff 0x0 +#define JET_bitShrinkDatabaseOn 0x1 // Uses the file system's Sparse Files feature to release space in the middle of a file. +#define JET_bitShrinkDatabaseRealtime 0x2 // Attempts to reclaim space back to the file system after freeing significant amounts of data (when space is marked as Available to the Root space tree). + +// DEPRECATED: +#define JET_bitShrinkDatabaseTrim 0x1 // DEPRECATED: Deprecated value for JET_bitShrinkDatabaseOn; Will be removed! + +#endif // JET_VERSION >= 0x0603 + + /* Flags for JetInit2, JetInit3 */ + +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitReplayIgnoreMissingDB 0x00000004 // Ignore missing databases during recovery. This is a very dangerous option and may irrevocably produce an inconsistent database if improperly used. Normal ESE usage does not typically require this dangerous option. +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0600 ) +#define JET_bitRecoveryWithoutUndo 0x00000008 // perform recovery, but halt at the Undo phase +#define JET_bitTruncateLogsAfterRecovery 0x00000010 // on successful soft recovery, truncate log files +#define JET_bitReplayMissingMapEntryDB 0x00000020 // missing database map entry default to same location +#define JET_bitLogStreamMustExist 0x00000040 // transaction logs must exist in the logfile directory (ie. cannot auto-start a new log stream) +#endif // JET_VERSION >= 0x0600 +#if ( JET_VERSION >= 0x0601 ) +#define JET_bitReplayIgnoreLostLogs 0x00000080 // ignore logs lost from the end of the log stream +#endif // JET_VERSION >= 0x0601 +#if ( JET_VERSION >= 0x0602 ) +#define JET_bitKeepDbAttachedAtEndOfRecovery 0x00001000 // this allows db to remain attached at the end of recovery (for faster transition to running state) +#endif // JET_VERSION >= 0x0602 + + /* Flags for JetTerm2 */ + +#define JET_bitTermComplete 0x00000001 +#define JET_bitTermAbrupt 0x00000002 +#define JET_bitTermStopBackup 0x00000004 +#if ( JET_VERSION >= 0x0601 ) +#define JET_bitTermDirty 0x00000008 +#endif // JET_VERSION >= 0x0601 + + /* Flags for JetIdle */ + +#define JET_bitIdleFlushBuffers 0x00000001 +#define JET_bitIdleCompact 0x00000002 +#define JET_bitIdleStatus 0x00000004 + + /* Flags for JetEndSession */ + + + /* Flags for JetAttachDatabase/JetOpenDatabase */ + +#define JET_bitDbReadOnly 0x00000001 +#define JET_bitDbExclusive 0x00000002 /* multiple opens allowed */ +#define JET_bitDbDeleteCorruptIndexes 0x00000010 /* delete indexes possibly corrupted by NT version upgrade */ +#if ( JET_VERSION >= 0x0502 ) +#define JET_bitDbDeleteUnicodeIndexes 0x00000400 /* delete all indexes with unicode columns */ +#endif // JET_VERSION >= 0x0502 +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitDbUpgrade 0x00000200 /* */ +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0601 ) +#define JET_bitDbEnableBackgroundMaintenance 0x00000800 /* the database engine will initiate automatic background database maintenance */ +#endif +#if ( JET_VERSION >= 0x0602 ) +#define JET_bitDbPurgeCacheOnAttach 0x00001000 /* used to ensure any kept alive cache is purged for this DB before attach */ +#endif + + /* Flags for JetDetachDatabase2 */ + +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitForceDetach 0x00000001 +#define JET_bitForceCloseAndDetach (0x00000002 | JET_bitForceDetach) +#endif // JET_VERSION >= 0x0501 + + + /* Flags for JetCreateDatabase */ + +#define JET_bitDbRecoveryOff 0x00000008 /* disable logging/recovery for this database */ +#define JET_bitDbShadowingOff 0x00000080 /* disable catalog shadowing */ +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitDbOverwriteExisting 0x00000200 /* overwrite existing database with same name */ +#endif // JET_VERSION >= 0x0501 + + /* Flags for JetBackup, JetBeginExternalBackup, JetBeginExternalBackupInstance, JetBeginSurrogateBackup */ + +#define JET_bitBackupIncremental 0x00000001 +#define JET_bitBackupAtomic 0x00000004 +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitBackupSnapshot 0x00000010 +#endif // JET_VERSION >= 0x0501 + + /* Flags for JetEndExternalBackupInstance2, JetEndSurrogateBackup */ + +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitBackupEndNormal 0x0001 +#define JET_bitBackupEndAbort 0x0002 +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0600 ) +#define JET_bitBackupTruncateDone 0x0100 +#endif // JET_VERSION >= 0x0600 + + /* Database types */ + +#define JET_dbidNil ((JET_DBID) 0xFFFFFFFF) + + + /* Flags for JetCreateTableColumnIndex */ +#define JET_bitTableCreateFixedDDL 0x00000001 /* DDL is fixed */ +#define JET_bitTableCreateTemplateTable 0x00000002 /* DDL is inheritable (implies FixedDDL) */ +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitTableCreateNoFixedVarColumnsInDerivedTables 0x00000004 + // used in conjunction with JET_bitTableCreateTemplateTable + // to disallow fixed/var columns in derived tables (so that + // fixed/var columns may be added to the template in the future) +#endif // JET_VERSION >= 0x0501 +#if JET_VERSION >= 0x0A00 +#define JET_bitTableCreateImmutableStructure 0x00000008 // Do not write to the input structures. Additionally, do not return any auto-opened tableid. +#endif // JET_VERSION >= 0x0A00 + + + /* Flags for JetAddColumn, JetGetColumnInfo, JetOpenTempTable */ + +#define JET_bitColumnFixed 0x00000001 +#define JET_bitColumnTagged 0x00000002 +#define JET_bitColumnNotNULL 0x00000004 +#define JET_bitColumnVersion 0x00000008 +#define JET_bitColumnAutoincrement 0x00000010 +#define JET_bitColumnUpdatable 0x00000020 /* JetGetColumnInfo only */ +#define JET_bitColumnTTKey 0x00000040 /* JetOpenTempTable only */ +#define JET_bitColumnTTDescending 0x00000080 /* JetOpenTempTable only */ +#define JET_bitColumnMultiValued 0x00000400 +#define JET_bitColumnEscrowUpdate 0x00000800 /* escrow updated, supported coltyps are long and longlong */ +#define JET_bitColumnUnversioned 0x00001000 /* for add column only - add column unversioned */ +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitColumnMaybeNull 0x00002000 /* for retrieve column info of outer join where no match from the inner table */ +#define JET_bitColumnFinalize 0x00004000 /* DEPRECATED / Not Fully Implemented: use JET_bitColumnDeleteOnZero instead. */ +#define JET_bitColumnUserDefinedDefault 0x00008000 /* default value from a user-provided callback */ +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0502 ) +#define JET_bitColumnDeleteOnZero 0x00020000 /* When the escrow-update column reaches a value of zero (after all versions are resolve), the record will be deleted. A common use for a column that can be finalized is to use it as a reference count field, and when the field reaches zero the record gets deleted. A Delete-on-zero column must be an escrow update / JET_bitColumnEscrowUpdate column. JET_bitColumnDeleteOnZero cannot be used with JET_bitColumnFinalize. JET_bitColumnDeleteOnZero cannot be used with user defined default columns. */ +#endif // JET_VERSION >= 0x0502 +#if ( JET_VERSION >= 0x0601 ) +#define JET_bitColumnCompressed 0x00080000 /* data in the column can be compressed */ +#endif + +#if ( JET_VERSION >= 0x0501 ) +// flags for JetDeleteColumn +#define JET_bitDeleteColumnIgnoreTemplateColumns 0x00000001 // for derived tables, don't bother looking in template columns +#endif // JET_VERSION >= 0x0501 + + + /* Flags for JetSetCurrentIndex */ + +#define JET_bitMoveFirst 0x00000000 +#define JET_bitNoMove 0x00000002 + + /* Flags for JetMakeKey */ + +#define JET_bitNewKey 0x00000001 +#define JET_bitStrLimit 0x00000002 +#define JET_bitSubStrLimit 0x00000004 +#define JET_bitNormalizedKey 0x00000008 +#define JET_bitKeyDataZeroLength 0x00000010 +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitFullColumnStartLimit 0x00000100 +#define JET_bitFullColumnEndLimit 0x00000200 +#define JET_bitPartialColumnStartLimit 0x00000400 +#define JET_bitPartialColumnEndLimit 0x00000800 +#endif // JET_VERSION >= 0x0501 + + /* Flags for JetSetIndexRange */ + +#define JET_bitRangeInclusive 0x00000001 +#define JET_bitRangeUpperLimit 0x00000002 +#define JET_bitRangeInstantDuration 0x00000004 +#define JET_bitRangeRemove 0x00000008 + + /* Flags for JetGetLock */ + +#define JET_bitReadLock 0x00000001 +#define JET_bitWriteLock 0x00000002 + + /* Constants for JetMove */ + +#define JET_MoveFirst (0x80000000) +#define JET_MovePrevious (-1) +#define JET_MoveNext (+1) +#define JET_MoveLast (0x7fffffff) + + /* Flags for JetMove */ + +#define JET_bitMoveKeyNE 0x00000001 + + /* Flags for JetSeek */ + +#define JET_bitSeekEQ 0x00000001 +#define JET_bitSeekLT 0x00000002 +#define JET_bitSeekLE 0x00000004 +#define JET_bitSeekGE 0x00000008 +#define JET_bitSeekGT 0x00000010 +#define JET_bitSetIndexRange 0x00000020 +#if ( JET_VERSION >= 0x0502 ) +#define JET_bitCheckUniqueness 0x00000040 // to be used with JET_bitSeekEQ only, returns JET_wrnUniqueKey if seek lands on a key which has no dupes +#endif // JET_VERSION >= 0x0502 + +#if ( JET_VERSION >= 0x0501 ) + // Flags for JetGotoSecondaryIndexBookmark +#define JET_bitBookmarkPermitVirtualCurrency 0x00000001 // place cursor on relative position in index if specified bookmark no longer exists +#endif // JET_VERSION >= 0x0501 + + /* Flags for JET_CONDITIONALCOLUMN */ +#define JET_bitIndexColumnMustBeNull 0x00000001 +#define JET_bitIndexColumnMustBeNonNull 0x00000002 + + /* Flags for JET_INDEXRANGE */ +#define JET_bitRecordInIndex 0x00000001 +#define JET_bitRecordNotInIndex 0x00000002 + + /* Flags for JetCreateIndex */ + +#define JET_bitIndexUnique 0x00000001 +#define JET_bitIndexPrimary 0x00000002 +#define JET_bitIndexDisallowNull 0x00000004 +#define JET_bitIndexIgnoreNull 0x00000008 +#define JET_bitIndexIgnoreAnyNull 0x00000020 +#define JET_bitIndexIgnoreFirstNull 0x00000040 +#define JET_bitIndexLazyFlush 0x00000080 +#define JET_bitIndexEmpty 0x00000100 // don't attempt to build index, because all entries would evaluate to NULL (MUST also specify JET_bitIgnoreAnyNull) +#define JET_bitIndexUnversioned 0x00000200 +#define JET_bitIndexSortNullsHigh 0x00000400 // NULL sorts after data for all columns in the index +#define JET_bitIndexUnicode 0x00000800 // LCID field of JET_INDEXCREATE actually points to a JET_UNICODEINDEX struct to allow user-defined LCMapString() flags +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitIndexTuples 0x00001000 // index on substring tuples (text columns only) +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0502 ) +#define JET_bitIndexTupleLimits 0x00002000 // cbVarSegMac field of JET_INDEXCREATE actually points to a JET_TUPLELIMITS struct to allow custom tuple index limits (implies JET_bitIndexTuples) +#endif // JET_VERSION >= 0x0502 +#if ( JET_VERSION >= 0x0600 ) +#define JET_bitIndexCrossProduct 0x00004000 // index over multiple multi-valued columns has full cross product +#define JET_bitIndexKeyMost 0x00008000 // custom index key size set instead of default of 255 bytes +#define JET_bitIndexDisallowTruncation 0x00010000 // fail update rather than truncate index keys +#define JET_bitIndexNestedTable 0x00020000 // index over multiple multi-valued columns but only with values of same itagSequence +#endif // JET_VERSION >= 0x0600 +#if ( JET_VERSION >= 0x0602 ) +#define JET_bitIndexDotNetGuid 0x00040000 // index over GUID column according to .Net GUID sort order +#endif // JET_VERSION >= 0x602 +#if ( JET_VERSION >= 0x0A00 ) +#define JET_bitIndexImmutableStructure 0x00080000 // Do not write to the input structures during a JetCreateIndexN call. +#endif // JET_VERSION >= 0x0A00 + + /* Flags for index key definition */ + +#define JET_bitKeyAscending 0x00000000 +#define JET_bitKeyDescending 0x00000001 + + /* Flags for JetOpenTable */ + +#define JET_bitTableDenyWrite 0x00000001 +#define JET_bitTableDenyRead 0x00000002 +#define JET_bitTableReadOnly 0x00000004 +#define JET_bitTableUpdatable 0x00000008 +#define JET_bitTablePermitDDL 0x00000010 /* override table flagged as FixedDDL (must be used with DenyRead) */ +#define JET_bitTableNoCache 0x00000020 /* don't cache the pages for this table */ +#define JET_bitTablePreread 0x00000040 /* assume the table is probably not in the buffer cache */ +#define JET_bitTableOpportuneRead 0x00000080 /* attempt to opportunely read physically adjacent leaf pages using larger physical IOs */ +#define JET_bitTableSequential 0x00008000 /* assume the table will be scanned sequentially */ + +#define JET_bitTableClassMask 0x001F0000 /* table stats class mask */ +#define JET_bitTableClassNone 0x00000000 /* table belongs to no stats class (default) */ +#define JET_bitTableClass1 0x00010000 /* table belongs to stats class 1 */ +#define JET_bitTableClass2 0x00020000 /* table belongs to stats class 2 */ +#define JET_bitTableClass3 0x00030000 /* table belongs to stats class 3 */ +#define JET_bitTableClass4 0x00040000 /* table belongs to stats class 4 */ +#define JET_bitTableClass5 0x00050000 /* table belongs to stats class 5 */ +#define JET_bitTableClass6 0x00060000 /* table belongs to stats class 6 */ +#define JET_bitTableClass7 0x00070000 /* table belongs to stats class 7 */ +#define JET_bitTableClass8 0x00080000 /* table belongs to stats class 8 */ +#define JET_bitTableClass9 0x00090000 /* table belongs to stats class 9 */ +#define JET_bitTableClass10 0x000A0000 /* table belongs to stats class 10 */ +#define JET_bitTableClass11 0x000B0000 /* table belongs to stats class 11 */ +#define JET_bitTableClass12 0x000C0000 /* table belongs to stats class 12 */ +#define JET_bitTableClass13 0x000D0000 /* table belongs to stats class 13 */ +#define JET_bitTableClass14 0x000E0000 /* table belongs to stats class 14 */ +#define JET_bitTableClass15 0x000F0000 /* table belongs to stats class 15 */ + + +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitLSReset 0x00000001 /* reset LS value */ +#define JET_bitLSCursor 0x00000002 /* set/retrieve LS of table cursor */ +#define JET_bitLSTable 0x00000004 /* set/retrieve LS of table */ + +#define JET_LSNil (~(JET_LS)0) +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION >= 0x0601 ) + /* Flags for JetSetTableSequential and JetPrereadIndexRanges */ + +#define JET_bitPrereadForward 0x00000001 /* Hint that the sequential traversal will be in the forward direction */ +#define JET_bitPrereadBackward 0x00000002 /* Hint that the sequential traversal will be in the backward direction */ +#if ( JET_VERSION >= 0x0602 ) +#define JET_bitPrereadFirstPage 0x00000004 /* Only first page of long values should be preread */ +#define JET_bitPrereadNormalizedKey 0x00000008 /* Normalized key/bookmark provided instead of column value */ +#endif // JET_VERSION >= 0x0602 +#endif // JET_VERSION >= 0x0601 + + /* Flags for JetOpenTempTable */ + +#define JET_bitTTIndexed 0x00000001 /* Allow seek */ +#define JET_bitTTUnique 0x00000002 /* Remove duplicates */ +#define JET_bitTTUpdatable 0x00000004 /* Allow updates */ +#define JET_bitTTScrollable 0x00000008 /* Allow backwards scrolling */ +#define JET_bitTTSortNullsHigh 0x00000010 /* NULL sorts after data for all columns in the index */ +#define JET_bitTTForceMaterialization 0x00000020 /* Forces temp. table to be materialized into a btree (allows for duplicate detection) */ +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitTTErrorOnDuplicateInsertion JET_bitTTForceMaterialization /* Error always returned when duplicate is inserted (instead of dupe being silently removed) */ +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0502 ) +#define JET_bitTTForwardOnly 0x00000040 /* Prevents temp. table from being materialized into a btree (and enables duplicate keys) */ +#endif // JET_VERSION >= 0x0502 +#if ( JET_VERSION >= 0x0601 ) +#define JET_bitTTIntrinsicLVsOnly 0x00000080 // permit only intrinsic LV's (so materialisation is not required simply because a TT has an LV column) +#endif // JET_VERSION >= 0x0601 +#if ( JET_VERSION >= 0x0602 ) +#define JET_bitTTDotNetGuid 0x00000100 // sort all JET_coltypGUID columns according to .Net Guid sort order +#endif // JET_VERSION >= 0x0602 +#if ( JET_VERSION >= 0x0A01 ) +#define JET_bitTTMaterializeBBT 0x00000200 // The temp table uses the Buffered BTree format when it is materialized +#endif // JET_VERSION >= 0x0A01 +// begin_PubEsent + + + /* Flags for JetSetColumn */ + +#define JET_bitSetAppendLV 0x00000001 +#define JET_bitSetOverwriteLV 0x00000004 /* overwrite JET_coltypLong* byte range */ +#define JET_bitSetSizeLV 0x00000008 /* set JET_coltypLong* size */ +#define JET_bitSetZeroLength 0x00000020 +#define JET_bitSetSeparateLV 0x00000040 /* force LV separation */ +#define JET_bitSetUniqueMultiValues 0x00000080 /* prevent duplicate multi-values */ +#define JET_bitSetUniqueNormalizedMultiValues 0x00000100 /* prevent duplicate multi-values, normalizing all data before performing comparisons */ +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitSetRevertToDefaultValue 0x00000200 /* if setting last tagged instance to NULL, revert to default value instead if one exists */ +#define JET_bitSetIntrinsicLV 0x00000400 /* store whole LV in record without bursting or return an error */ +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0601 ) +#define JET_bitSetUncompressed 0x00010000 /* don't attempt compression when storing the data */ +#define JET_bitSetCompressed 0x00020000 /* attempt compression when storing the data */ +#if ( JET_VERSION >= 0x0A01 ) +#define JET_bitSetContiguousLV 0x00040000 /* Allocates the long-value across contiguous pages (at potentialy space saving costs) for better IO behavior. Valid only with JET_bitSetSeparateLV. Invalid (or not implemented) with certain long-value operations such as replace, and certain column options such as compression. Use across many varying LVs sizes may cause space fragmentation / allocation issues. */ +#endif // JET_VERSION >= 0x0A01 +#endif // JET_VERSION >= 0x0601 + + +#if ( JET_VERSION >= 0x0601 ) + /* Space Hint Flags / JET_SPACEHINTS */ + +// Generic +#define JET_bitSpaceHintsUtilizeParentSpace 0x00000001 // This changes the internal allocation policy to get space hierarchically from a B-Tree's immediate parent. +// Create +#define JET_bitCreateHintAppendSequential 0x00000002 // This bit will enable Append split behavior to grow according to the growth dynamics of the table (set by cbMinExtent, ulGrowth, cbMaxExtent). +#define JET_bitCreateHintHotpointSequential 0x00000004 // This bit will enable Hotpoint split behavior to grow according to the growth dynamics of the table (set by cbMinExtent, ulGrowth, cbMaxExtent). +// Retrieve +#define JET_bitRetrieveHintReserve1 0x00000008 // Reserved and ignored +#define JET_bitRetrieveHintTableScanForward 0x00000010 // By setting this the client indicates that forward sequential scan is the predominant usage pattern of this table (causing B+ Tree defrag to be auto-triggered to clean it up if fragmented). +#define JET_bitRetrieveHintTableScanBackward 0x00000020 // By setting this the client indicates that backwards sequential scan is the predominant usage pattern of this table (causing B+ Tree defrag to be auto-triggered to clean it up if fragmented). +#define JET_bitRetrieveHintReserve2 0x00000040 // Reserved and ignored +#define JET_bitRetrieveHintReserve3 0x00000080 // Reserved and ignored +// Update +//#define JET_bitUpdateReserved 0x00000000 // TBD. +// Delete +#define JET_bitDeleteHintTableSequential 0x00000100 // This means that the application expects this table to be cleaned up in-order sequentially (from lowest key to highest key) +#endif // JET_VERSION >= 0x0601 + +#if ( JET_VERSION >= 0x0A01 ) +#endif // JET_VERSION >= 0x0A01 + + + /* Set column parameter structure for JetSetColumns */ + +typedef struct +{ + JET_COLUMNID columnid; + JET_PCVOID pvData; + JET_UINT32 cbData; + JET_GRBIT grbit; + JET_UINT32 ibLongValue; + JET_UINT32 itagSequence; + JET_ERR err; +} JET_SETCOLUMN; + +#if ( JET_VERSION >= 0x0501 ) +typedef struct +{ + JET_UINT32 paramid; + JET_API_PTR lParam; + JET_PCSTR sz; + JET_ERR err; +} JET_SETSYSPARAM_A; + +typedef struct +{ + JET_UINT32 paramid; + JET_API_PTR lParam; + JET_PCWSTR sz; + JET_ERR err; +} JET_SETSYSPARAM_W; + + +#ifdef JET_UNICODE +#define JET_SETSYSPARAM JET_SETSYSPARAM_W +#else +#define JET_SETSYSPARAM JET_SETSYSPARAM_A +#endif + +#endif // JET_VERSION >= 0x0501 + + /* Options for JetPrepareUpdate */ + +#define JET_prepInsert 0 +#define JET_prepReplace 2 +#define JET_prepCancel 3 +#define JET_prepReplaceNoLock 4 +#define JET_prepInsertCopy 5 +#if ( JET_VERSION >= 0x0501 ) +#define JET_prepInsertCopyDeleteOriginal 7 // used for updating a record in the primary key; avoids the delete/insert process and updates autoinc */ +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0603 ) +#define JET_prepInsertCopyReplaceOriginal 9 // used for updating a record in the primary key; avoids the delete/insert process and keeps autoinc */ +#endif // JET_VERSION >= 0x0603 + +#if ( JET_VERSION >= 0x0603 ) +// Values for JET_paramEnableSqm +#define JET_sqmDisable 0 // Explicitly disable SQM +#define JET_sqmEnable 1 // Explicitly enable SQM +#define JET_sqmFromCEIP 2 // Enables SQM based on Customer Experience Improvement Program opt-in +#endif // JET_VERSION >= 0x0603 + + // Flags for JetUpdate +#if ( JET_VERSION >= 0x0502 ) +#define JET_bitUpdateCheckESE97Compatibility 0x00000001 // check whether record fits if represented in ESE97 database format +#endif // JET_VERSION >= 0x0502 + + /* Flags for JetEscrowUpdate */ +#define JET_bitEscrowNoRollback 0x0001 + + /* Flags for JetRetrieveColumn */ + +#define JET_bitRetrieveCopy 0x00000001 +#define JET_bitRetrieveFromIndex 0x00000002 +#define JET_bitRetrieveFromPrimaryBookmark 0x00000004 +#define JET_bitRetrieveTag 0x00000008 +#define JET_bitRetrieveNull 0x00000010 /* for columnid 0 only */ +#define JET_bitRetrieveIgnoreDefault 0x00000020 /* for columnid 0 only */ +#if ( JET_VERSION >= 0x0600 ) +#define JET_bitRetrieveTuple 0x00000800 /* retrieve tuple fragment from index */ +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION >= 0x0602 ) + /* Flags for JET_INDEX_COLUMN */ +#define JET_bitZeroLength 0x00000001 +#endif + + /* Retrieve column parameter structure for JetRetrieveColumns */ + +typedef struct +{ + JET_COLUMNID columnid; + JET_PVOID pvData; + JET_UINT32 cbData; + JET_UINT32 cbActual; + JET_GRBIT grbit; + JET_UINT32 ibLongValue; + JET_UINT32 itagSequence; + JET_COLUMNID columnidNextTagged; + JET_ERR err; +} JET_RETRIEVECOLUMN; + + + + +#if ( JET_VERSION >= 0x0501 ) + /* Flags for JetEnumerateColumns */ + +#define JET_bitEnumerateCopy JET_bitRetrieveCopy +#define JET_bitEnumerateIgnoreDefault JET_bitRetrieveIgnoreDefault +#define JET_bitEnumeratePresenceOnly 0x00020000 +#define JET_bitEnumerateTaggedOnly 0x00040000 +#define JET_bitEnumerateCompressOutput 0x00080000 +#if ( JET_VERSION >= 0x0502 ) +// Available on Server 2003 SP1 +#define JET_bitEnumerateIgnoreUserDefinedDefault 0x00100000 +#endif // JET_VERSION >= 0x0502 +#if ( JET_VERSION >= 0x0601 ) +#define JET_bitEnumerateInRecordOnly 0x00200000 +#endif // JET_VERSION >= 0x0601 + + /* Parameter structures for JetEnumerateColumns */ + +typedef struct +{ + JET_COLUMNID columnid; + JET_UINT32 ctagSequence; + JET_UINT32 * rgtagSequence; +} JET_ENUMCOLUMNID; + +typedef struct +{ + JET_UINT32 itagSequence; + JET_ERR err; + JET_UINT32 cbData; + JET_PVOID pvData; +} JET_ENUMCOLUMNVALUE; + +typedef struct +{ + JET_COLUMNID columnid; + JET_ERR err; + union + { + struct // err != JET_wrnColumnSingleValue + { + JET_UINT32 cEnumColumnValue; + JET_ENUMCOLUMNVALUE* rgEnumColumnValue; + }; + struct // err == JET_wrnColumnSingleValue + { + JET_UINT32 cbData; + JET_PVOID pvData; + }; + }; +} JET_ENUMCOLUMN; + + /* Realloc callback for JetEnumerateColumns */ + +typedef JET_PVOID (JET_API * JET_PFNREALLOC)( + _In_opt_ JET_PVOID pvContext, + _In_opt_ JET_PVOID pv, + _In_ JET_UINT32 cb ); + +#endif // JET_VERSION >= 0x0501 + + + +#if ( JET_VERSION >= 0x0600 ) + /* Flags for JetGetRecordSize */ + +#define JET_bitRecordSizeInCopyBuffer 0x00000001 // use record in copy buffer +#define JET_bitRecordSizeRunningTotal 0x00000002 // increment totals in output buffer instead of setting them +#define JET_bitRecordSizeLocal 0x00000004 // ignore Long Values (and other data otherwise not in the same page as the record) + + /* parameter structures for JetGetRecordSize */ + +typedef struct +{ + JET_UINT64 cbData; // user data in record + JET_UINT64 cbLongValueData; // user data associated with the record but stored in the long-value tree (NOTE: does NOT count intrinsic long-values) + JET_UINT64 cbOverhead; // record overhead + JET_UINT64 cbLongValueOverhead; // overhead of long-value data (NOTE: does not count intrinsic long-values) + JET_UINT64 cNonTaggedColumns; // total number of fixed/variable columns + JET_UINT64 cTaggedColumns; // total number of tagged columns + JET_UINT64 cLongValues; // total number of values stored in the long-value tree for this record (NOTE: does NOT count intrinsic long-values) + JET_UINT64 cMultiValues; // total number of values beyond the first for each column in the record +} JET_RECSIZE; +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION >= 0x0601 ) +typedef struct +{ + JET_UINT64 cbData; // user data in record + JET_UINT64 cbLongValueData; // user data associated with the record but stored in the long-value tree (NOTE: does NOT count intrinsic long-values) + JET_UINT64 cbOverhead; // record overhead + JET_UINT64 cbLongValueOverhead; // overhead of long-value data (NOTE: does not count intrinsic long-values) + JET_UINT64 cNonTaggedColumns; // total number of fixed/variable columns + JET_UINT64 cTaggedColumns; // total number of tagged columns + JET_UINT64 cLongValues; // total number of values stored in the long-value tree for this record (NOTE: does NOT count intrinsic long-values) + JET_UINT64 cMultiValues; // total number of values beyond the first for each column in the record + JET_UINT64 cCompressedColumns; // total number of columns which are compressed + JET_UINT64 cbDataCompressed; // compressed size of user data in record (same as cbData if no intrinsic long-values are compressed) + JET_UINT64 cbLongValueDataCompressed; // compressed size of user data in the long-value tree (same as cbLongValue data if no separated long values are compressed) +} JET_RECSIZE2; +#endif // JET_VERSION >= 0x0601 + +#pragma warning(pop) // nonstandard extension used : nameless struct/union + + + /* Flags for JetBeginTransaction2 */ + +#if ( JET_VERSION >= 0x0501 ) +#define JET_bitTransactionReadOnly 0x00000001 /* transaction will not modify the database */ +#endif // JET_VERSION >= 0x0501 + + /* Flags for JetCommitTransaction */ + +#define JET_bitCommitLazyFlush 0x00000001 /* lazy flush log buffers. */ +#define JET_bitWaitLastLevel0Commit 0x00000002 /* wait for last level 0 commit record flushed */ +#if ( JET_VERSION >= 0x0502 ) +#define JET_bitWaitAllLevel0Commit 0x00000008 /* wait for all level 0 commits to be flushed */ +#endif // JET_VERSION >= 0x0502 +#if ( JET_VERSION >= 0x0601 ) +#define JET_bitForceNewLog 0x00000010 +#endif // JET_VERSION >= 0x0601 + + /* Flags for JetRollback */ + +#define JET_bitRollbackAll 0x00000001 + + +#if ( JET_VERSION >= 0x0600 ) + /* Flags for JetOSSnapshot APIs */ + + /* Flags for JetOSSnapshotPrepare */ +#define JET_bitIncrementalSnapshot 0x00000001 /* bit 0: full (0) or incremental (1) snapshot */ +#define JET_bitCopySnapshot 0x00000002 /* bit 1: normal (0) or copy (1) snapshot */ +#define JET_bitContinueAfterThaw 0x00000004 /* bit 2: end on thaw (0) or wait for [truncate +] end snapshot */ +#if ( JET_VERSION >= 0x0601 ) +#define JET_bitExplicitPrepare 0x00000008 /* bit 3: all instaces prepared by default (0) or no instance prepared by default (1) */ +#endif // JET_VERSION >= 0x0601 + + /* Flags for JetOSSnapshotTruncateLog & JetOSSnapshotTruncateLogInstance */ +#define JET_bitAllDatabasesSnapshot 0x00000001 /* bit 0: there are detached dbs in the instance (i.e. can't truncate logs) */ + + /* Flags for JetOSSnapshotEnd */ +#define JET_bitAbortSnapshot 0x00000001 /* snapshot process failed */ +#endif // JET_VERSION >= 0x0600 + /* Info parameter for JetGetDatabaseInfo and JetGetDatabaseFileInfo */ + +#define JET_DbInfoFilename 0 +#define JET_DbInfoConnect 1 +#define JET_DbInfoCountry 2 // retrieves the default country/region +#if ( JET_VERSION >= 0x0501 ) +#define JET_DbInfoLCID 3 +#endif // JET_VERSION >= 0x0501 +#define JET_DbInfoLangid 3 // OBSOLETE: use JET_DbInfoLCID instead +#define JET_DbInfoCp 4 +#define JET_DbInfoCollate 5 +#define JET_DbInfoOptions 6 +#define JET_DbInfoTransactions 7 +#define JET_DbInfoVersion 8 +#define JET_DbInfoIsam 9 +#define JET_DbInfoFilesize 10 +#define JET_DbInfoSpaceOwned 11 +#define JET_DbInfoSpaceAvailable 12 +#define JET_DbInfoUpgrade 13 +#define JET_DbInfoMisc 14 +#if ( JET_VERSION >= 0x0501 ) +#define JET_DbInfoDBInUse 15 +#define JET_DbInfoPageSize 17 +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0600 ) +#define JET_DbInfoFileType 19 +#if ( JET_VERSION >= 0x603 ) +#define JET_DbInfoFilesizeOnDisk 21 +#endif + +#endif // JET_VERSION >= 0x0600 + + /* Dbstates from JetGetDatabaseFileInfo */ + +#define JET_dbstateJustCreated 1 +#define JET_dbstateDirtyShutdown 2 +#define JET_dbstateCleanShutdown 3 +#define JET_dbstateBeingConverted 4 +#if ( JET_VERSION >= 0x0501 ) +#define JET_dbstateForceDetach 5 +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION >= 0x0600 ) + + // supported file types (returned from JetGetDatabaseFileInfo with JET_DbInfoFileType) + +#define JET_filetypeUnknown 0 +#define JET_filetypeDatabase 1 +#define JET_filetypeLog 3 +#define JET_filetypeCheckpoint 4 +#define JET_filetypeTempDatabase 5 +#define JET_filetypeFlushMap 7 + +#endif // JET_VERSION >= 0x0600 + + /* Column data types */ + +#define JET_coltypNil 0 +#define JET_coltypBit 1 /* True, False, or NULL */ +#define JET_coltypUnsignedByte 2 /* 1-byte integer, unsigned */ +#define JET_coltypShort 3 /* 2-byte integer, signed */ +#define JET_coltypLong 4 /* 4-byte integer, signed */ +#define JET_coltypCurrency 5 /* 8 byte integer, signed */ +#define JET_coltypIEEESingle 6 /* 4-byte IEEE single precision */ +#define JET_coltypIEEEDouble 7 /* 8-byte IEEE double precision */ +#define JET_coltypDateTime 8 /* Integral date, fractional time */ +#define JET_coltypBinary 9 /* Binary data, < 255 bytes */ +#define JET_coltypText 10 /* ANSI text, case insensitive, < 255 bytes */ +#define JET_coltypLongBinary 11 /* Binary data, long value */ +#define JET_coltypLongText 12 /* ANSI text, long value */ + +// Pre XP +#if ( JET_VERSION < 0x0501 ) +#define JET_coltypMax 13 /* the number of column types */ + /* used for validity tests and */ + /* array declarations. */ +#endif // JET_VERSION < 0x0501 + +// Windows XP +#if ( JET_VERSION >= 0x0501 ) +#define JET_coltypSLV 13 /* SLV's. Obsolete. */ + +#if ( JET_VERSION < 0x0600 ) +#define JET_coltypMax 14 /* the number of column types */ + /* used for validity tests and */ + /* array declarations. */ +#endif // JET_VERSION == 0x0501 + +#endif // JET_VERSION >= 0x0501 + +// Windows Vista to Windows 8.1 +#if ( JET_VERSION >= 0x0600 ) +#define JET_coltypUnsignedLong 14 /* 4-byte unsigned integer */ +#define JET_coltypLongLong 15 /* 8-byte signed integer */ +#define JET_coltypGUID 16 /* 16-byte globally unique identifier */ +#define JET_coltypUnsignedShort 17 /* 2-byte unsigned integer */ + +#if ( JET_VERSION >= 0x0600 && JET_VERSION <= 0x0603 ) +#define JET_coltypMax 18 /* the number of column types */ + /* used for validity tests and */ + /* array declarations. */ +#endif // ( JET_VERSION >= 0x0600 && JET_VERSION <= 0x0603 ) + +#endif // JET_VERSION >= 0x0600 + +// Windows 10 +#if ( JET_VERSION >= 0x0A00 ) +#define JET_coltypUnsignedLongLong 18 /* 8-byte unsigned integer */ +#define JET_coltypMax 19 /* the number of column types */ + /* used for validity tests and */ + /* array declarations. */ +#endif // JET_VERSION >= 0x0A00 + + + /* Info levels for JetGetObjectInfo */ + +#define JET_ObjInfo 0U +#define JET_ObjInfoListNoStats 1U +#define JET_ObjInfoList 2U +#define JET_ObjInfoSysTabCursor 3U +#define JET_ObjInfoListACM 4U /* Blocked by JetGetObjectInfo */ +#define JET_ObjInfoNoStats 5U +#define JET_ObjInfoSysTabReadOnly 6U +#define JET_ObjInfoRulesLoaded 7U +#define JET_ObjInfoMax 8U + + /* Info levels for JetGetTableInfo/JetSetTableInfo */ + +#define JET_TblInfo 0U +#define JET_TblInfoName 1U +#define JET_TblInfoDbid 2U +#define JET_TblInfoMostMany 3U +#define JET_TblInfoRvt 4U +#define JET_TblInfoOLC 5U +#define JET_TblInfoResetOLC 6U +#define JET_TblInfoSpaceUsage 7U +#define JET_TblInfoDumpTable 8U +#define JET_TblInfoSpaceAlloc 9U +#define JET_TblInfoSpaceOwned 10U // OwnExt for primary, 2ndary indices, and LV +#define JET_TblInfoSpaceAvailable 11U // AvailExt for primary, 2ndary indices, and LV +#define JET_TblInfoTemplateTableName 12U +#if ( JET_VERSION >= 0x0A01 ) +#define JET_TblInfoSpaceOwnedLV 17U // OwnExt for LV +#define JET_TblInfoSpaceAvailableLV 18U // AvailExt for LV +#endif + + /* Info levels for JetGetIndexInfo and JetGetTableIndexInfo */ + +#define JET_IdxInfo 0U +#define JET_IdxInfoList 1U +#define JET_IdxInfoSysTabCursor 2U // OBSOLETE and unused. +#define JET_IdxInfoOLC 3U // OBSOLETE and unused. +#define JET_IdxInfoResetOLC 4U // OBSOLETE and unused. +#define JET_IdxInfoSpaceAlloc 5U +#if ( JET_VERSION >= 0x0501 ) +#define JET_IdxInfoLCID 6U +#endif // JET_VERSION >= 0x0501 +#define JET_IdxInfoLangid 6U // OBSOLETE: use JET_IdxInfoLCID instead +#define JET_IdxInfoCount 7U +#define JET_IdxInfoVarSegMac 8U +#define JET_IdxInfoIndexId 9U +#if ( JET_VERSION >= 0x0600 ) +#define JET_IdxInfoKeyMost 10U +#endif // JET_VERSION >= 0x0600 +#if ( JET_VERSION >= 0x0601 ) +#define JET_IdxInfoCreateIndex 11U // return a JET_INDEXCREATE structure suitable for use by JetCreateIndex2() +#define JET_IdxInfoCreateIndex2 12U // return a JET_INDEXCREATE2 structure suitable for use by JetCreateIndex3() +#endif // JET_VERSION >= 0x0601 +#if ( JET_VERSION >= 0x0602 ) +#define JET_IdxInfoCreateIndex3 13U // return a JET_INDEXCREATE3 structure suitable for use by JetCreateIndex4() +#define JET_IdxInfoLocaleName 14U // Returns the locale name, which can be a wide string of up to LOCALE_NAME_MAX_LENGTH (including null). +#endif // JET_VERSION >= 0x0602 +#if ( JET_VERSION >= 0x0A01 ) +#define JET_IdxInfoSpaceOwned 18U // Space owned exclusively by this index (unlike tables, ignores space from 2ndary indices, even + // when inquiring about primary indices +#define JET_IdxInfoSpaceAvailable 19U // Space available exclusively for this index +#endif + + + /* Info levels for JetGetColumnInfo and JetGetTableColumnInfo */ + +#define JET_ColInfo 0U +#define JET_ColInfoList 1U +#define JET_ColInfoSysTabCursor 3U +#define JET_ColInfoBase 4U +#define JET_ColInfoListCompact 5U // INTERNAL USE ONLY +#if ( JET_VERSION >= 0x0501 ) +#define JET_ColInfoByColid 6U +#define JET_ColInfoListSortColumnid 7U // OBSOLETE: use grbit instead +#endif // JET_VERSION >= 0x0501 +#if ( JET_VERSION >= 0x0600 ) +#define JET_ColInfoBaseByColid 8U +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION >= 0x0600 ) + + // Grbits for JET_GetColumnInfo and JetGetTableColumnInfo (OR together with the info level) +#define JET_ColInfoGrbitNonDerivedColumnsOnly 0x80000000 // for lists, only return non-derived columns (if the table is derived from a template) +#define JET_ColInfoGrbitMinimalInfo 0x40000000 // for lists, only return the column name and columnid of each column +#define JET_ColInfoGrbitSortByColumnid 0x20000000 // for lists, sort returned column list by columnid (default is to sort list by column name) + +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION >= 0x0600 ) + + /* Info levels for JetGetInstanceMiscInfo, which is very different than JetGetInstanceInfo, as that retrieves a list of all instances */ + +#define JET_InstanceMiscInfoLogSignature 0U + +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION >= 0x0A01 ) + +#define JET_InstanceMiscInfoRBS 2U // Retrieve revert snapshot info for the instance. + +#endif // JET_VERSION >= 0x0A01 + + + + /* Engine Object Types */ + +#define JET_objtypNil 0 +#define JET_objtypTable 1 + + /* Compact Options */ + +#define JET_bitCompactStats 0x00000020 /* Dump off-line compaction stats (only when progress meter also specified) */ +#define JET_bitCompactRepair 0x00000040 /* Don't preread and ignore duplicate keys */ + + /* Status Notification Processes */ + +#define JET_snpRepair 2 +#define JET_snpCompact 4 +#define JET_snpRestore 8 +#define JET_snpBackup 9 +#define JET_snpUpgrade 10 +#if ( JET_VERSION >= 0x0501 ) +#define JET_snpScrub 11 +#define JET_snpUpgradeRecordFormat 12 +#endif // JET_VERSION >= 0x0501 + + + /* Status Notification Types */ + +// Generic Status Notification Types +#define JET_sntBegin 5 /* callback for beginning of operation */ +#define JET_sntRequirements 7 /* callback for returning operation requirements */ +#define JET_sntProgress 0 /* callback for progress */ +#define JET_sntComplete 6 /* callback for completion of operation */ +#define JET_sntFail 3 /* callback for failure during progress */ + + + /* Exception action / JET_paramExceptionAction */ + +#define JET_ExceptionMsgBox 0x0001 /* Display message box on exception */ +#define JET_ExceptionNone 0x0002 /* Do nothing on exceptions */ +#define JET_ExceptionFailFast 0x0004 /* Use the Windows RaiseFailFastException API to force a crash */ + + +#if ( JET_VERSION >= 0x0501 ) + // Online defragmentation options +#define JET_OnlineDefragDisable 0x0000 // disable online defrag +#define JET_OnlineDefragAllOBSOLETE 0x0001 // enable online defrag for everything (must be 1 for backward compatibility) +#define JET_OnlineDefragDatabases 0x0002 // enable online defrag of databases +#define JET_OnlineDefragSpaceTrees 0x0004 // enable online defrag of space trees +#define JET_OnlineDefragAll 0xffff // enable online defrag for everything + +#endif // JET_VERSION >= 0x0501 + + + +#if ( JET_VERSION >= 0x0602 ) + +// Info levels for JetGetErrorInfo: +#define JET_ErrorInfoSpecificErr 1U // Info about the specific error passed in pvContext. + +// grbits for JetGetErrorInfoW: +// None yet. + +// grbits for JetResizeDatabase: +#define JET_bitResizeDatabaseOnlyGrow 0x00000001 // Only grow the database. If the resize call would shrink the database, do nothing. +#endif // JET_VERSION >= 0x0602 + +#if ( JET_VERSION >= 0x0603 ) +#define JET_bitResizeDatabaseOnlyShrink 0x00000002 // Only shrink the database. If the resize call would grow the database, do nothing. The file may end up smaller than requested. + +#endif // JET_VERSION >= 0x0603 + +#if ( JET_VERSION >= 0x0602 ) +#define JET_bitStopServiceAll 0x00000000 // Stops all ESE services for the specified instance. +#define JET_bitStopServiceBackgroundUserTasks 0x00000002 // Stops restartable client specificed background maintenance tasks (B+ Tree Defrag for example). +#define JET_bitStopServiceQuiesceCaches 0x00000004 // Quiesces all dirty caches to disk. Asynchronous. Cancellable. + +// Warning: This bit can only be used to resume StopServiceBackgroundUserTasks and JET_bitStopServiceQuiesceCaches, if you +// previously called with JET_bitStopServiceAll, attempting to use JET_bitStopServiceResume will fail. +#define JET_bitStopServiceResume 0x80000000 // Resumes previously issued StopService operations, i.e. "restarts service". Can be combined with above grbits to Resume specific services, or with JET_bitStopServiceAll to Resume all previously stopped services. +#endif // JET_VERSION >= 0x0602 + + +/**********************************************************************/ +/*********************** ERROR CODES **************************/ +/**********************************************************************/ + +/* The Error codes are not versioned with WINVER. */ + +/* SUCCESS */ + +#define JET_errSuccess 0 /* Successful Operation */ + +/* ERRORS */ + +#define JET_wrnNyi -1 /* Function Not Yet Implemented */ + +/* SYSTEM errors +/**/ +#define JET_errRfsFailure -100 /* Resource Failure Simulator failure */ +#define JET_errRfsNotArmed -101 /* Resource Failure Simulator not initialized */ +#define JET_errFileClose -102 /* Could not close file */ +#define JET_errOutOfThreads -103 /* Could not start thread */ +#define JET_errTooManyIO -105 /* System busy due to too many IOs */ +#define JET_errTaskDropped -106 /* A requested async task could not be executed */ +#define JET_errInternalError -107 /* Fatal internal error */ +#define JET_errDisabledFunctionality -112 /* You are running MinESE, that does not have all features compiled in. This functionality is only supported in a full version of ESE. */ +#define JET_errUnloadableOSFunctionality -113 /* The desired OS functionality could not be located and loaded / linked. */ + +// BUFFER MANAGER errors +// +#define JET_errDatabaseBufferDependenciesCorrupted -255 /* Buffer dependencies improperly set. Recovery failure */ + +/* DIRECTORY MANAGER errors +/**/ +#define JET_wrnRemainingVersions 321 /* The version store is still active */ +#define JET_errPreviousVersion -322 /* Version already existed. Recovery failure */ +#define JET_errPageBoundary -323 /* Reached Page Boundary */ +#define JET_errKeyBoundary -324 /* Reached Key Boundary */ +#define JET_errBadPageLink -327 /* Database corrupted */ +#define JET_errBadBookmark -328 /* Bookmark has no corresponding address in database */ +#define JET_errNTSystemCallFailed -334 // A call to the operating system failed +#define JET_errBadParentPageLink -338 // Database corrupted +#define JET_errSPAvailExtCacheOutOfSync -340 // AvailExt cache doesn't match btree +#define JET_errSPAvailExtCorrupted -341 // AvailExt space tree is corrupt +#define JET_errSPAvailExtCacheOutOfMemory -342 // Out of memory allocating an AvailExt cache node +#define JET_errSPOwnExtCorrupted -343 // OwnExt space tree is corrupt +#define JET_errDbTimeCorrupted -344 // Dbtime on current page is greater than global database dbtime +#define JET_wrnUniqueKey 345 // seek on non-unique index yielded a unique key +#define JET_errKeyTruncated -346 // key truncated on index that disallows key truncation +#define JET_errDatabaseLeakInSpace -348 // Some database pages have become unreachable even from the avail tree, only an offline defragmentation can return the lost space. +#define JET_errBadEmptyPage -351 // Database corrupted. Searching an unexpectedly empty page. +#define wrnBTNotVisibleRejected 352 /* Current entry is not visible because it has been rejected by a move filter */ +#define wrnBTNotVisibleAccumulated 353 /* Current entry is not visible because it is being accumulated by a move filter */ +#define JET_errBadLineCount -354 /* Number of lines on the page is too few compared to the line being operated on */ +#define JET_errPageTagCorrupted -357 // A tag / line on page is logically corrupted, offset or size is bad, or tag count on page is bad. +#define JET_errNodeCorrupted -358 // A node or prefix node is logically corrupted, the key suffix size is larger than the node or line's size. +#define JET_errBBTNodeCorrupted -364 /* A property of the BBT node is logically corrupted. Or the BBT node isn't valid. */ +#define JET_errBBTBuffCorrupted -365 /* A BBT buff is logically corrupted. The nodes are out of sequence or the BBT header is corrupt. */ +#define JET_wrnSeparateLongValue 406 /* Column is a separated long-value */ +#define JET_wrnRecordFoundGreater JET_wrnSeekNotEqual +#define JET_wrnRecordFoundLess JET_wrnSeekNotEqual +#define JET_errColumnIllegalNull JET_errNullInvalid +#define JET_errKeyTooBig -408 /* Key is too large */ +#define JET_errCannotSeparateIntrinsicLV -416 // illegal attempt to separate an LV which must be intrinsic +#define JET_errSeparatedLongValue -421 /* Operation not supported on separated long-value */ +#define JET_errMustBeSeparateLongValue -423 /* Can only preread long value columns that can be separate, e.g. not size constrained so that they are fixed or variable columns */ +#define JET_errInvalidPreread -424 /* Cannot preread long values when current index secondary */ + +/* LOGGING/RECOVERY errors +/**/ +#define JET_errInvalidLoggedOperation -500 /* Logged operation cannot be redone */ +#define JET_errLogFileCorrupt -501 /* Log file is corrupt */ +#define JET_errNoBackupDirectory -503 /* No backup directory given */ +#define JET_errBackupDirectoryNotEmpty -504 /* The backup directory is not empty */ +#define JET_errBackupInProgress -505 /* Backup is active already */ +#define JET_errRestoreInProgress -506 /* Restore in progress */ +#define JET_errMissingPreviousLogFile -509 /* Missing the log file for check point */ +#define JET_errLogWriteFail -510 /* Failure writing to log file */ +#define JET_errLogDisabledDueToRecoveryFailure -511 /* Try to log something after recovery failed */ +#define JET_errCannotLogDuringRecoveryRedo -512 /* Try to log something during recovery redo */ +#define JET_errLogGenerationMismatch -513 /* Name of logfile does not match internal generation number */ +#define JET_errBadLogVersion -514 /* Version of log file is not compatible with Jet version */ +#define JET_errInvalidLogSequence -515 /* Timestamp in next log does not match expected */ +#define JET_errLoggingDisabled -516 /* Log is not active */ +#define JET_errLogBufferTooSmall -517 /* An operation generated a log record which was too large to fit in the log buffer or in a single log file */ +#define JET_errLogSequenceEnd -519 /* Maximum log file number exceeded */ +#define JET_errNoBackup -520 /* No backup in progress */ +#define JET_errInvalidBackupSequence -521 /* Backup call out of sequence */ +#define JET_errBackupNotAllowedYet -523 /* Cannot do backup now */ +#define JET_errDeleteBackupFileFail -524 /* Could not delete backup file */ +#define JET_errMakeBackupDirectoryFail -525 /* Could not make backup temp directory */ +#define JET_errInvalidBackup -526 /* Cannot perform incremental backup when circular logging enabled */ +#define JET_errRecoveredWithErrors -527 /* Restored with errors */ +#define JET_errMissingLogFile -528 /* Current log file missing */ +#define JET_errLogDiskFull -529 /* Log disk full */ +#define JET_errBadLogSignature -530 /* Bad signature for a log file */ +#define JET_errBadDbSignature -531 /* Bad signature for a db file */ +#define JET_errBadCheckpointSignature -532 /* Bad signature for a checkpoint file */ +#define JET_errCheckpointCorrupt -533 /* Checkpoint file not found or corrupt */ +#define JET_errMissingPatchPage -534 /* Patch file page not found during recovery */ +#define JET_errBadPatchPage -535 /* Patch file page is not valid */ +#define JET_errRedoAbruptEnded -536 /* Redo abruptly ended due to sudden failure in reading logs from log file */ +#define JET_errPatchFileMissing -538 /* Hard restore detected that patch file is missing from backup set */ +#define JET_errDatabaseLogSetMismatch -539 /* Database does not belong with the current set of log files */ +#define JET_errDatabaseStreamingFileMismatch -540 /* Database and streaming file do not match each other */ +#define JET_errLogFileSizeMismatch -541 /* actual log file size does not match JET_paramLogFileSize */ +#define JET_errCheckpointFileNotFound -542 /* Could not locate checkpoint file */ +#define JET_errRequiredLogFilesMissing -543 /* The required log files for recovery is missing. */ +#define JET_errSoftRecoveryOnBackupDatabase -544 /* Soft recovery is intended on a backup database. Restore should be used instead */ +#define JET_errLogFileSizeMismatchDatabasesConsistent -545 /* databases have been recovered, but the log file size used during recovery does not match JET_paramLogFileSize */ +#define JET_errLogSectorSizeMismatch -546 /* the log file sector size does not match the current volume's sector size */ +#define JET_errLogSectorSizeMismatchDatabasesConsistent -547 /* databases have been recovered, but the log file sector size (used during recovery) does not match the current volume's sector size */ +#define JET_errLogSequenceEndDatabasesConsistent -548 /* databases have been recovered, but all possible log generations in the current sequence are used; delete all log files and the checkpoint file and backup the databases before continuing */ + +#define JET_errStreamingDataNotLogged -549 /* Illegal attempt to replay a streaming file operation where the data wasn't logged. Probably caused by an attempt to roll-forward with circular logging enabled */ + +#define JET_errDatabaseDirtyShutdown -550 /* Database was not shutdown cleanly. Recovery must first be run to properly complete database operations for the previous shutdown. */ +#define JET_errDatabaseInconsistent JET_errDatabaseDirtyShutdown /* OBSOLETE */ +#define JET_errConsistentTimeMismatch -551 /* Database last consistent time unmatched */ +#define JET_errDatabasePatchFileMismatch -552 /* Patch file is not generated from this backup */ +#define JET_errEndingRestoreLogTooLow -553 /* The starting log number too low for the restore */ +#define JET_errStartingRestoreLogTooHigh -554 /* The starting log number too high for the restore */ +#define JET_errGivenLogFileHasBadSignature -555 /* Restore log file has bad signature */ +#define JET_errGivenLogFileIsNotContiguous -556 /* Restore log file is not contiguous */ +#define JET_errMissingRestoreLogFiles -557 /* Some restore log files are missing */ +#define JET_wrnExistingLogFileHasBadSignature 558 /* Existing log file has bad signature */ +#define JET_wrnExistingLogFileIsNotContiguous 559 /* Existing log file is not contiguous */ +#define JET_errMissingFullBackup -560 /* The database missed a previous full backup before incremental backup */ +#define JET_errBadBackupDatabaseSize -561 /* The backup database size is not in 4k */ +#define JET_errDatabaseAlreadyUpgraded -562 /* Attempted to upgrade a database that is already current */ +#define JET_errDatabaseIncompleteUpgrade -563 /* Attempted to use a database which was only partially converted to the current format -- must restore from backup */ +#define JET_wrnSkipThisRecord 564 /* INTERNAL ERROR */ +#define JET_errMissingCurrentLogFiles -565 /* Some current log files are missing for continuous restore */ + +#define JET_errDbTimeTooOld -566 /* dbtime on page smaller than dbtimeBefore in record */ +#define JET_errDbTimeTooNew -567 /* dbtime on page in advance of the dbtimeBefore and below dbtimeAfter in record */ +#define JET_errMissingFileToBackup -569 /* Some log or patch files are missing during backup */ + +#define JET_errLogTornWriteDuringHardRestore -570 /* torn-write was detected in a backup set during hard restore */ +#define JET_errLogTornWriteDuringHardRecovery -571 /* torn-write was detected during hard recovery (log was not part of a backup set) */ +#define JET_errLogCorruptDuringHardRestore -573 /* corruption was detected in a backup set during hard restore */ +#define JET_errLogCorruptDuringHardRecovery -574 /* corruption was detected during hard recovery (log was not part of a backup set) */ + +#define JET_errMustDisableLoggingForDbUpgrade -575 /* Cannot have logging enabled while attempting to upgrade db */ + +#define JET_errBadRestoreTargetInstance -577 /* TargetInstance specified for restore is not found or log files don't match */ +#define JET_wrnTargetInstanceRunning 578 /* TargetInstance specified for restore is running */ + +#define JET_errRecoveredWithoutUndo -579 /* Soft recovery successfully replayed all operations, but the Undo phase of recovery was skipped */ + +#define JET_errDatabasesNotFromSameSnapshot -580 /* Databases to be restored are not from the same shadow copy backup */ +#define JET_errSoftRecoveryOnSnapshot -581 /* Soft recovery on a database from a shadow copy backup set */ +#define JET_errCommittedLogFilesMissing -582 /* One or more logs that were committed to this database, are missing. These log files are required to maintain durable ACID semantics, but not required to maintain consistency if the JET_bitReplayIgnoreLostLogs bit is specified during recovery. */ +#define JET_errSectorSizeNotSupported -583 /* The physical sector size reported by the disk subsystem, is unsupported by ESE for a specific file type. */ +#define JET_errRecoveredWithoutUndoDatabasesConsistent -584 /* Soft recovery successfully replayed all operations and intended to skip the Undo phase of recovery, but the Undo phase was not required */ +#define JET_wrnCommittedLogFilesLost 585 /* One or more logs that were committed to this database, were not recovered. The database is still clean/consistent, as though the lost log's transactions were committed lazily (and lost). */ +#define JET_errCommittedLogFileCorrupt -586 /* One or more logs were found to be corrupt during recovery. These log files are required to maintain durable ACID semantics, but not required to maintain consistency if the JET_bitIgnoreLostLogs bit and JET_paramDeleteOutOfRangeLogs is specified during recovery. */ +#define JET_wrnCommittedLogFilesRemoved 587 /* One or more logs that were committed to this database, were no recovered. The database is still clean/consistent, as though the corrupted log's transactions were committed lazily (and lost). */ +#define JET_wrnFinishWithUndo 588 /* Signal used by clients to indicate JetInit() finished with undo */ +#define JET_errLogSequenceChecksumMismatch -590 /* The previous log's accumulated segment checksum doesn't match the next log */ + +#define JET_wrnDatabaseRepaired 595 /* Database corruption has been repaired */ +#define JET_errPageInitializedMismatch -596 /* Database divergence mismatch. Page was uninitialized on remote node, but initialized on local node. */ + + +#define JET_errUnicodeTranslationBufferTooSmall -601 /* Unicode translation buffer too small */ +#define JET_errUnicodeTranslationFail -602 /* Unicode normalization failed */ +#define JET_errUnicodeNormalizationNotSupported -603 /* OS does not provide support for Unicode normalisation (and no normalisation callback was specified) */ +#define JET_errUnicodeLanguageValidationFailure -604 /* Can not validate the language */ + +#define JET_errExistingLogFileHasBadSignature -610 /* Existing log file has bad signature */ +#define JET_errExistingLogFileIsNotContiguous -611 /* Existing log file is not contiguous */ + +#define JET_errLogReadVerifyFailure -612 /* Checksum error in log file during backup */ + +#define JET_errCheckpointDepthTooDeep -614 // too many outstanding generations between checkpoint and current generation + +#define JET_errRestoreOfNonBackupDatabase -615 // hard recovery attempted on a database that wasn't a backup database +#define JET_errLogFileNotCopied -616 // log truncation attempted but not all required logs were copied +#define JET_errTransactionTooLong -618 // Too many outstanding generations between JetBeginTransaction and current generation. + +#define JET_errEngineFormatVersionNoLongerSupportedTooLow -619 /* The specified JET_ENGINEFORMATVERSION value is too low to be supported by this version of ESE. */ +#define JET_errEngineFormatVersionNotYetImplementedTooHigh -620 /* The specified JET_ENGINEFORMATVERSION value is too high, higher than this version of ESE knows about. */ +#define JET_errEngineFormatVersionParamTooLowForRequestedFeature -621 /* Thrown by a format feature (not at JetSetSystemParameter) if the client requests a feature that requires a version higher than that set for the JET_paramEngineFormatVersion. */ +#define JET_errEngineFormatVersionSpecifiedTooLowForLogVersion -622 /* The specified JET_ENGINEFORMATVERSION is set too low for this log stream, the log files have already been upgraded to a higher version. A higher JET_ENGINEFORMATVERSION value must be set in the param. */ +#define JET_errEngineFormatVersionSpecifiedTooLowForDatabaseVersion -623 /* The specified JET_ENGINEFORMATVERSION is set too low for this database file, the database file has already been upgraded to a higher version. A higher JET_ENGINEFORMATVERSION value must be set in the param. */ +#define JET_errDbTimeBeyondMaxRequired -625 /* dbtime on page greater than or equal to dbtimeAfter in record, but record is outside required range for the database */ +#define JET_errLogOperationInconsistentWithDatabase -626 /* Log record in the log is inconsistent with the current state of the database and cannot be applied */ +#define JET_errInsertKeyOutOfOrder -627 /* The insert attempted was not placed in correct key order. Possibly indicates transient memory issues. */ +#define JET_errBackupAbortByServer -801 /* Backup was aborted by server by calling JetTerm with JET_bitTermStopBackup or by calling JetStopBackup */ + +#define JET_errInvalidGrbit -900 /* Invalid flags parameter */ + +#define JET_errTermInProgress -1000 /* Termination in progress */ +#define JET_errFeatureNotAvailable -1001 /* API not supported */ +#define JET_errInvalidName -1002 /* Invalid name */ +#define JET_errInvalidParameter -1003 /* Invalid API parameter */ +#define JET_wrnColumnNull 1004 /* Column is NULL-valued */ +#define JET_wrnBufferTruncated 1006 /* Buffer too small for data */ +#define JET_wrnDatabaseAttached 1007 /* Database is already attached */ +#define JET_errDatabaseFileReadOnly -1008 /* Tried to attach a read-only database file for read/write operations */ +#define JET_wrnSortOverflow 1009 /* Sort does not fit in memory */ +#define JET_errInvalidDatabaseId -1010 /* Invalid database id */ +#define JET_errOutOfMemory -1011 /* Out of Memory */ +#define JET_errOutOfDatabaseSpace -1012 /* Maximum database size reached */ +#define JET_errOutOfCursors -1013 /* Out of table cursors */ +#define JET_errOutOfBuffers -1014 /* Out of database page buffers */ +#define JET_errTooManyIndexes -1015 /* Too many indexes */ +#define JET_errTooManyKeys -1016 /* Too many columns in an index */ +#define JET_errRecordDeleted -1017 /* Record has been deleted */ +#define JET_errReadVerifyFailure -1018 /* Checksum error on a database page */ +#define JET_errPageNotInitialized -1019 /* Blank database page */ +#define JET_errOutOfFileHandles -1020 /* Out of file handles */ +#define JET_errDiskReadVerificationFailure -1021 /* The OS returned ERROR_CRC from file IO */ +#define JET_errDiskIO -1022 /* Disk IO error */ +#define JET_errInvalidPath -1023 /* Invalid file path */ +#define JET_errInvalidSystemPath -1024 /* Invalid system path */ +#define JET_errInvalidLogDirectory -1025 /* Invalid log directory */ +#define JET_errRecordTooBig -1026 /* Record larger than maximum size */ +#define JET_errTooManyOpenDatabases -1027 /* Too many open databases */ +#define JET_errInvalidDatabase -1028 /* Not a database file */ +#define JET_errNotInitialized -1029 /* Database engine not initialized */ +#define JET_errAlreadyInitialized -1030 /* Database engine already initialized */ +#define JET_errInitInProgress -1031 /* Database engine is being initialized */ +#define JET_errFileAccessDenied -1032 /* Cannot access file, the file is locked or in use */ +#define JET_errBufferTooSmall -1038 /* Buffer is too small */ +#define JET_wrnSeekNotEqual 1039 /* Exact match not found during seek */ +#define JET_errTooManyColumns -1040 /* Too many columns defined */ +#define JET_errContainerNotEmpty -1043 /* Container is not empty */ +#define JET_errInvalidFilename -1044 /* Filename is invalid */ +#define JET_errInvalidBookmark -1045 /* Invalid bookmark */ +#define JET_errColumnInUse -1046 /* Column used in an index */ +#define JET_errInvalidBufferSize -1047 /* Data buffer doesn't match column size */ +#define JET_errColumnNotUpdatable -1048 /* Cannot set column value */ +#define JET_errIndexInUse -1051 /* Index is in use */ +#define JET_errLinkNotSupported -1052 /* Link support unavailable */ +#define JET_errNullKeyDisallowed -1053 /* Null keys are disallowed on index */ +#define JET_errNotInTransaction -1054 /* Operation must be within a transaction */ +#define JET_wrnNoErrorInfo 1055 /* No extended error information */ +#define JET_errMustRollback -1057 /* Transaction must rollback because failure of unversioned update */ +#define JET_wrnNoIdleActivity 1058 /* No idle activity occurred */ +#define JET_errTooManyActiveUsers -1059 /* Too many active database users */ +#define JET_errInvalidCountry -1061 /* Invalid or unknown country/region code */ +#define JET_errInvalidLanguageId -1062 /* Invalid or unknown language id */ +#define JET_errInvalidCodePage -1063 /* Invalid or unknown code page */ +#define JET_errInvalidLCMapStringFlags -1064 /* Invalid flags for LCMapString() */ +#define JET_errVersionStoreEntryTooBig -1065 /* Attempted to create a version store entry (RCE) larger than a version bucket */ +#define JET_errVersionStoreOutOfMemoryAndCleanupTimedOut -1066 /* Version store out of memory (and cleanup attempt failed to complete) */ +#define JET_wrnNoWriteLock 1067 /* No write lock at transaction level 0 */ +#define JET_wrnColumnSetNull 1068 /* Column set to NULL-value */ +#define JET_errVersionStoreOutOfMemory -1069 /* Version store out of memory (cleanup already attempted) */ +#define JET_errCannotIndex -1071 /* Cannot index escrow column */ +#define JET_errRecordNotDeleted -1072 /* Record has not been deleted */ +#define JET_errTooManyMempoolEntries -1073 /* Too many mempool entries requested */ +#define JET_errOutOfObjectIDs -1074 /* Out of btree ObjectIDs (perform offline defrag to reclaim freed/unused ObjectIds) */ +#define JET_errOutOfLongValueIDs -1075 /* Long-value ID counter has reached maximum value. (perform offline defrag to reclaim free/unused LongValueIDs) */ +#define JET_errOutOfAutoincrementValues -1076 /* Auto-increment counter has reached maximum value (offline defrag WILL NOT be able to reclaim free/unused Auto-increment values). */ +#define JET_errOutOfDbtimeValues -1077 /* Dbtime counter has reached maximum value (perform offline defrag to reclaim free/unused Dbtime values) */ +#define JET_errOutOfSequentialIndexValues -1078 /* Sequential index counter has reached maximum value (perform offline defrag to reclaim free/unused SequentialIndex values) */ + +#define JET_errRunningInOneInstanceMode -1080 /* Multi-instance call with single-instance mode enabled */ +#define JET_errRunningInMultiInstanceMode -1081 /* Single-instance call with multi-instance mode enabled */ +#define JET_errSystemParamsAlreadySet -1082 /* Global system parameters have already been set */ + +#define JET_errSystemPathInUse -1083 /* System path already used by another database instance */ +#define JET_errLogFilePathInUse -1084 /* Logfile path already used by another database instance */ +#define JET_errTempPathInUse -1085 /* Temp path already used by another database instance */ +#define JET_errInstanceNameInUse -1086 /* Instance Name already in use */ +#define JET_errSystemParameterConflict -1087 /* Global system parameters have already been set, but to a conflicting or disagreeable state to the specified values. */ + +#define JET_errInstanceUnavailable -1090 /* This instance cannot be used because it encountered a fatal error */ +#define JET_errDatabaseUnavailable -1091 /* This database cannot be used because it encountered a fatal error */ +#define JET_errInstanceUnavailableDueToFatalLogDiskFull -1092 /* This instance cannot be used because it encountered a log-disk-full error performing an operation (likely transaction rollback) that could not tolerate failure */ +#define JET_errInvalidSesparamId -1093 /* This JET_sesparam* identifier is not known to the ESE engine. */ + +#define JET_errTooManyRecords -1094 /* There are too many records to enumerate, switch to an API that handles 64-bit numbers */ + +#define JET_errInvalidDbparamId -1095 /* This JET_dbparam* identifier is not known to the ESE engine. */ + +#define JET_errOutOfSessions -1101 /* Out of sessions */ +#define JET_errWriteConflict -1102 /* Write lock failed due to outstanding write lock */ +#define JET_errTransTooDeep -1103 /* Transactions nested too deeply */ +#define JET_errInvalidSesid -1104 /* Invalid session handle */ +#define JET_errWriteConflictPrimaryIndex -1105 /* Update attempted on uncommitted primary index */ +#define JET_errInTransaction -1108 /* Operation not allowed within a transaction */ +#define JET_errRollbackRequired -1109 /* Must rollback current transaction -- cannot commit or begin a new one */ +#define JET_errTransReadOnly -1110 /* Read-only transaction tried to modify the database */ +#define JET_errSessionWriteConflict -1111 /* Attempt to replace the same record by two different cursors in the same session */ + +#define JET_errRecordTooBigForBackwardCompatibility -1112 /* record would be too big if represented in a database format from a previous version of Jet */ +#define JET_errCannotMaterializeForwardOnlySort -1113 /* The temp table could not be created due to parameters that conflict with JET_bitTTForwardOnly */ + +#define JET_errSesidTableIdMismatch -1114 /* This session handle can't be used with this table id */ +#define JET_errInvalidInstance -1115 /* Invalid instance handle */ +#define JET_errDirtyShutdown -1116 /* The instance was shutdown successfully but all the attached databases were left in a dirty state by request via JET_bitTermDirty */ +// unused -1117 +#define JET_errReadPgnoVerifyFailure -1118 /* The database page read from disk had the wrong page number. */ +#define JET_errReadLostFlushVerifyFailure -1119 /* The database page read from disk had a previous write not represented on the page. */ +#define JET_errFileSystemCorruption -1121 /* File system operation failed with an error indicating the file system is corrupt. */ +#define JET_wrnShrinkNotPossible 1122 /* Database file could not be shrunk because there is not enough internal free space available or there is unmovable data present. */ +#define JET_errRecoveryVerifyFailure -1123 /* One or more database pages read from disk during recovery do not match the expected state. */ + +#define JET_errFilteredMoveNotSupported -1124 /* Attempted to provide a filter to JetSetCursorFilter() in an unsupported scenario. */ + + +#define JET_errDatabaseDuplicate -1201 /* Database already exists */ +#define JET_errDatabaseInUse -1202 /* Database in use */ +#define JET_errDatabaseNotFound -1203 /* No such database */ +#define JET_errDatabaseInvalidName -1204 /* Invalid database name */ +#define JET_errDatabaseInvalidPages -1205 /* Invalid number of pages */ +#define JET_errDatabaseCorrupted -1206 /* Non database file or corrupted db */ +#define JET_errDatabaseLocked -1207 /* Database exclusively locked */ +#define JET_errCannotDisableVersioning -1208 /* Cannot disable versioning for this database */ +#define JET_errInvalidDatabaseVersion -1209 /* Database engine is incompatible with database */ + +#define JET_errDatabase200Format -1210 /* The database is in an older (200) format */ +#define JET_errDatabase400Format -1211 /* The database is in an older (400) format */ +#define JET_errDatabase500Format -1212 /* The database is in an older (500) format */ + +#define JET_errPageSizeMismatch -1213 /* The database page size does not match the engine */ +#define JET_errTooManyInstances -1214 /* Cannot start any more database instances */ +#define JET_errDatabaseSharingViolation -1215 /* A different database instance is using this database */ +#define JET_errAttachedDatabaseMismatch -1216 /* An outstanding database attachment has been detected at the start or end of recovery, but database is missing or does not match attachment info */ +#define JET_errDatabaseInvalidPath -1217 /* Specified path to database file is illegal */ +#define JET_errDatabaseIdInUse -1218 /* A database is being assigned an id already in use */ +#define JET_errForceDetachNotAllowed -1219 /* Force Detach allowed only after normal detach errored out */ +#define JET_errCatalogCorrupted -1220 /* Corruption detected in catalog */ +#define JET_errPartiallyAttachedDB -1221 /* Database is partially attached. Cannot complete attach operation */ +#define JET_errDatabaseSignInUse -1222 /* Database with same signature in use */ + +#define JET_errDatabaseCorruptedNoRepair -1224 /* Corrupted db but repair not allowed */ +#define JET_errInvalidCreateDbVersion -1225 /* recovery tried to replay a database creation, but the database was originally created with an incompatible (likely older) version of the database engine */ + + +#define JET_errDatabaseNotReady -1230 /* Recovery on this database has not yet completed enough to permit access. */ +#define JET_errDatabaseAttachedForRecovery -1231 /* Database is attached but only for recovery. It must be explicitly attached before it can be opened. */ +#define JET_errTransactionsNotReadyDuringRecovery -1232 /* Recovery has not seen any Begin0/Commit0 records and so does not know what trxBegin0 to assign to this transaction */ + + +#define JET_wrnTableEmpty 1301 /* Opened an empty table */ +#define JET_errTableLocked -1302 /* Table is exclusively locked */ +#define JET_errTableDuplicate -1303 /* Table already exists */ +#define JET_errTableInUse -1304 /* Table is in use, cannot lock */ +#define JET_errObjectNotFound -1305 /* No such table or object */ +#define JET_errDensityInvalid -1307 /* Bad file/index density */ +#define JET_errTableNotEmpty -1308 /* Table is not empty */ +#define JET_errInvalidTableId -1310 /* Invalid table id */ +#define JET_errTooManyOpenTables -1311 /* Cannot open any more tables (cleanup already attempted) */ +#define JET_errIllegalOperation -1312 /* Oper. not supported on table */ +#define JET_errTooManyOpenTablesAndCleanupTimedOut -1313 /* Cannot open any more tables (cleanup attempt failed to complete) */ +#define JET_errObjectDuplicate -1314 /* Table or object name in use */ +#define JET_errInvalidObject -1316 /* Object is invalid for operation */ +#define JET_errCannotDeleteTempTable -1317 /* Use CloseTable instead of DeleteTable to delete temp table */ +#define JET_errCannotDeleteSystemTable -1318 /* Illegal attempt to delete a system table */ +#define JET_errCannotDeleteTemplateTable -1319 /* Illegal attempt to delete a template table */ +#define JET_errExclusiveTableLockRequired -1322 /* Must have exclusive lock on table. */ +#define JET_errFixedDDL -1323 /* DDL operations prohibited on this table */ +#define JET_errFixedInheritedDDL -1324 /* On a derived table, DDL operations are prohibited on inherited portion of DDL */ +#define JET_errCannotNestDDL -1325 /* Nesting of hierarchical DDL is not currently supported. */ +#define JET_errDDLNotInheritable -1326 /* Tried to inherit DDL from a table not marked as a template table. */ +#define JET_wrnTableInUseBySystem 1327 /* System cleanup has a cursor open on the table */ +#define JET_errInvalidSettings -1328 /* System parameters were set improperly */ +#define JET_errClientRequestToStopJetService -1329 /* Client has requested stop service */ +#define JET_errCannotAddFixedVarColumnToDerivedTable -1330 /* Template table was created with NoFixedVarColumnsInDerivedTables */ + +/* DDL errors +/**/ +// Note: Some DDL errors have snuck into other categories. +#define JET_errIndexCantBuild -1401 /* Index build failed */ +#define JET_errIndexHasPrimary -1402 /* Primary index already defined */ +#define JET_errIndexDuplicate -1403 /* Index is already defined */ +#define JET_errIndexNotFound -1404 /* No such index */ +#define JET_errIndexMustStay -1405 /* Cannot delete clustered index */ +#define JET_errIndexInvalidDef -1406 /* Illegal index definition */ +#define JET_errInvalidCreateIndex -1409 /* Invalid create index description */ +#define JET_errTooManyOpenIndexes -1410 /* Out of index description blocks */ +#define JET_errMultiValuedIndexViolation -1411 /* Non-unique inter-record index keys generated for a multivalued index */ +#define JET_errIndexBuildCorrupted -1412 /* Failed to build a secondary index that properly reflects primary index */ +#define JET_errPrimaryIndexCorrupted -1413 /* Primary index is corrupt. The database must be defragmented or the table deleted. */ +#define JET_errSecondaryIndexCorrupted -1414 /* Secondary index is corrupt. The database must be defragmented or the affected index must be deleted. If the corrupt index is over Unicode text, a likely cause is a sort-order change. */ +#define JET_wrnCorruptIndexDeleted 1415 /* Out of date index removed */ +#define JET_errInvalidIndexId -1416 /* Illegal index id */ +#define JET_wrnPrimaryIndexOutOfDate 1417 /* The Primary index is created with an incompatible OS sort version. The table can not be safely modified. */ +#define JET_wrnSecondaryIndexOutOfDate 1418 /* One or more Secondary index is created with an incompatible OS sort version. Any index over Unicode text should be deleted. */ + +#define JET_errIndexTuplesSecondaryIndexOnly -1430 // tuple index can only be on a secondary index +#define JET_errIndexTuplesTooManyColumns -1431 // tuple index may only have eleven columns in the index +#define JET_errIndexTuplesOneColumnOnly JET_errIndexTuplesTooManyColumns /* OBSOLETE */ +#define JET_errIndexTuplesNonUniqueOnly -1432 // tuple index must be a non-unique index +#define JET_errIndexTuplesTextBinaryColumnsOnly -1433 // tuple index must be on a text/binary column +#define JET_errIndexTuplesTextColumnsOnly JET_errIndexTuplesTextBinaryColumnsOnly /* OBSOLETE */ +#define JET_errIndexTuplesVarSegMacNotAllowed -1434 // tuple index does not allow setting cbVarSegMac +#define JET_errIndexTuplesInvalidLimits -1435 // invalid min/max tuple length or max characters to index specified +#define JET_errIndexTuplesCannotRetrieveFromIndex -1436 // cannot call RetrieveColumn() with RetrieveFromIndex on a tuple index +#define JET_errIndexTuplesKeyTooSmall -1437 // specified key does not meet minimum tuple length +#define JET_errInvalidLVChunkSize -1438 // Specified LV chunk size is not supported +#define JET_errColumnCannotBeEncrypted -1439 // Only JET_coltypLongText and JET_coltypLongBinary columns without default values can be encrypted +#define JET_errCannotIndexOnEncryptedColumn -1440 // Cannot index encrypted column + +/* DML errors +/**/ +// Note: Some DML errors have snuck into other categories. +// Note: Some DDL errors have inappropriately snuck in here. +#define JET_errColumnLong -1501 /* Column value is long */ +#define JET_errColumnNoChunk -1502 /* No such chunk in long value */ +#define JET_errColumnDoesNotFit -1503 /* Field will not fit in record */ +#define JET_errNullInvalid -1504 /* Null not valid */ +#define JET_errColumnIndexed -1505 /* Column indexed, cannot delete */ +#define JET_errColumnTooBig -1506 /* Field length is greater than maximum */ +#define JET_errColumnNotFound -1507 /* No such column */ +#define JET_errColumnDuplicate -1508 /* Field is already defined */ +#define JET_errMultiValuedColumnMustBeTagged -1509 /* Attempted to create a multi-valued column, but column was not Tagged */ +#define JET_errColumnRedundant -1510 /* Second autoincrement or version column */ +#define JET_errInvalidColumnType -1511 /* Invalid column data type */ +#define JET_wrnColumnMaxTruncated 1512 /* Max length too big, truncated */ +#define JET_errTaggedNotNULL -1514 /* No non-NULL tagged columns */ +#define JET_errNoCurrentIndex -1515 /* Invalid w/o a current index */ +#define JET_errKeyIsMade -1516 /* The key is completely made */ +#define JET_errBadColumnId -1517 /* Column Id Incorrect */ +#define JET_errBadItagSequence -1518 /* Bad itagSequence for tagged column */ +#define JET_errColumnInRelationship -1519 /* Cannot delete, column participates in relationship */ +#define JET_wrnCopyLongValue 1520 /* Single instance column bursted */ +#define JET_errCannotBeTagged -1521 /* AutoIncrement and Version cannot be tagged */ +#define JET_errDefaultValueTooBig -1524 /* Default value exceeds maximum size */ +#define JET_errMultiValuedDuplicate -1525 /* Duplicate detected on a unique multi-valued column */ +#define JET_errLVCorrupted -1526 /* Corruption encountered in long-value tree */ +#define JET_errMultiValuedDuplicateAfterTruncation -1528 /* Duplicate detected on a unique multi-valued column after data was normalized, and normalizing truncated the data before comparison */ +#define JET_errDerivedColumnCorruption -1529 /* Invalid column in derived table */ +#define JET_errInvalidPlaceholderColumn -1530 /* Tried to convert column to a primary index placeholder, but column doesn't meet necessary criteria */ +#define JET_wrnColumnSkipped 1531 /* Column value(s) not returned because the corresponding column id or itagSequence requested for enumeration was null */ +#define JET_wrnColumnNotLocal 1532 /* Column value(s) not returned because they could not be reconstructed from the data at hand */ +#define JET_wrnColumnMoreTags 1533 /* Column values exist that were not requested for enumeration */ +#define JET_wrnColumnTruncated 1534 /* Column value truncated at the requested size limit during enumeration */ +#define JET_wrnColumnPresent 1535 /* Column values exist but were not returned by request */ +#define JET_wrnColumnSingleValue 1536 /* Column value returned in JET_COLUMNENUM as a result of JET_bitEnumerateCompressOutput */ +#define JET_wrnColumnDefault 1537 /* Column value(s) not returned because they were set to their default value(s) and JET_bitEnumerateIgnoreDefault was specified */ +#define JET_errColumnCannotBeCompressed -1538 /* Only JET_coltypLongText and JET_coltypLongBinary columns can be compressed */ +#define JET_wrnColumnNotInRecord 1539 /* Column value(s) not returned because they could not be reconstructed from the data in the record */ +#define JET_errColumnNoEncryptionKey -1540 /* Cannot retrieve/set encrypted column without an encryption key */ +#define JET_wrnColumnReference 1541 /* Column value returned as a reference because it could not be reconstructed from the data in the record */ + +#define JET_errRecordNotFound -1601 /* The key was not found */ +#define JET_errRecordNoCopy -1602 /* No working buffer */ +#define JET_errNoCurrentRecord -1603 /* Currency not on a record */ +#define JET_errRecordPrimaryChanged -1604 /* Primary key may not change */ +#define JET_errKeyDuplicate -1605 /* Illegal duplicate key */ +#define JET_errAlreadyPrepared -1607 /* Attempted to update record when record update was already in progress */ +#define JET_errKeyNotMade -1608 /* No call to JetMakeKey */ +#define JET_errUpdateNotPrepared -1609 /* No call to JetPrepareUpdate */ +#define JET_wrnDataHasChanged 1610 /* Data has changed */ +#define JET_errDataHasChanged -1611 /* Data has changed, operation aborted */ +#define JET_wrnKeyChanged 1618 /* Moved to new key */ +#define JET_errLanguageNotSupported -1619 /* Windows installation does not support language */ +#define JET_errDecompressionFailed -1620 /* Internal error: data could not be decompressed */ +#define JET_errUpdateMustVersion -1621 /* No version updates only for uncommitted tables */ +#define JET_errDecryptionFailed -1622 /* Data could not be decrypted */ +#define JET_errEncryptionBadItag -1623 /* Cannot encrypt tagged columns with itag>1 */ +#define JET_errSetAutoIncrementTooHigh -1624 /* The auto-increment value that the user tried to set explicitly is too high . */ +#define JET_errAutoIncrementNotSet -1625 /* The user must have explicitly set the auto-increment column for this table. */ + +/* Sort Table errors +/**/ +#define JET_errTooManySorts -1701 /* Too many sort processes */ +#define JET_errInvalidOnSort -1702 /* Invalid operation on Sort */ + +/* Other errors +/**/ +#define JET_errTempFileOpenError -1803 /* Temp file could not be opened */ +#define JET_errTooManyAttachedDatabases -1805 /* Too many open databases */ +#define JET_errDiskFull -1808 /* No space left on disk */ +#define JET_errPermissionDenied -1809 /* Permission denied */ +#define JET_errFileNotFound -1811 /* File not found */ +#define JET_errFileInvalidType -1812 /* Invalid file type */ +#define JET_wrnFileOpenReadOnly 1813 /* Database file is read only */ +#define JET_errFileAlreadyExists -1814 /* File already exists */ + + +#define JET_errAfterInitialization -1850 /* Cannot Restore after init. */ +#define JET_errLogCorrupted -1852 /* Logs could not be interpreted */ + + +#define JET_errInvalidOperation -1906 /* Invalid operation */ +#define JET_errAccessDenied -1907 /* Access denied */ +#define JET_wrnIdleFull 1908 /* Idle registry full */ +#define JET_errTooManySplits -1909 /* Infinite split */ +#define JET_errSessionSharingViolation -1910 /* Multiple threads are using the same session */ +#define JET_errEntryPointNotFound -1911 /* An entry point in a DLL we require could not be found */ +#define JET_errSessionContextAlreadySet -1912 /* Specified session already has a session context set */ +#define JET_errSessionContextNotSetByThisThread -1913 /* Tried to reset session context, but current thread did not originally set the session context */ +#define JET_errSessionInUse -1914 /* Tried to terminate session in use */ +#define JET_errRecordFormatConversionFailed -1915 /* Internal error during dynamic record format conversion */ +#define JET_errOneDatabasePerSession -1916 /* Just one open user database per session is allowed (JET_paramOneDatabasePerSession) */ +#define JET_errRollbackError -1917 /* error during rollback */ +#define JET_errFlushMapVersionUnsupported -1918 /* The version of the persisted flush map is not supported by this version of the engine. */ +#define JET_errFlushMapDatabaseMismatch -1919 /* The persisted flush map and the database do not match. */ +#define JET_errFlushMapUnrecoverable -1920 /* The persisted flush map cannot be reconstructed. */ + + +#define JET_wrnDefragAlreadyRunning 2000 /* Online defrag already running on specified database */ +#define JET_wrnDefragNotRunning 2001 /* Online defrag not running on specified database */ +#define JET_errDatabaseAlreadyRunningMaintenance -2004 /* The operation did not complete successfully because the database is already running maintenance on specified database */ + + +#define JET_wrnCallbackNotRegistered 2100 /* Unregistered a non-existent callback function */ +#define JET_errCallbackFailed -2101 /* A callback failed */ +#define JET_errCallbackNotResolved -2102 /* A callback function could not be found */ + +#define JET_errSpaceHintsInvalid -2103 /* An element of the JET space hints structure was not correct or actionable. */ + +#define JET_errOSSnapshotInvalidSequence -2401 /* OS Shadow copy API used in an invalid sequence */ +#define JET_errOSSnapshotTimeOut -2402 /* OS Shadow copy ended with time-out */ +#define JET_errOSSnapshotNotAllowed -2403 /* OS Shadow copy not allowed (backup or recovery in progress) */ +#define JET_errOSSnapshotInvalidSnapId -2404 /* invalid JET_OSSNAPID */ + + +/** KVP ERRORS + **/ + +#define JET_errLSCallbackNotSpecified -3000 /* Attempted to use Local Storage without a callback function being specified */ +#define JET_errLSAlreadySet -3001 /* Attempted to set Local Storage for an object which already had it set */ +#define JET_errLSNotSet -3002 /* Attempted to retrieve Local Storage from an object which didn't have it set */ + +/** FILE and DISK ERRORS + **/ +//JET_errFileAccessDenied -1032 +//JET_errFileNotFound -1811 +//JET_errInvalidFilename -1044 +#define JET_errFileIOSparse -4000 /* an I/O was issued to a location that was sparse */ +#define JET_errFileIOBeyondEOF -4001 /* a read was issued to a location beyond EOF (writes will expand the file) */ +#define JET_errFileIOAbort -4002 /* instructs the JET_ABORTRETRYFAILCALLBACK caller to abort the specified I/O */ +#define JET_errFileIORetry -4003 /* instructs the JET_ABORTRETRYFAILCALLBACK caller to retry the specified I/O */ +#define JET_errFileIOFail -4004 /* instructs the JET_ABORTRETRYFAILCALLBACK caller to fail the specified I/O */ +#define JET_errFileCompressed -4005 /* read/write access is not supported on compressed files */ + +/** CLIENT RESERVED ERROR SPACE. + An unused errors/warnings section. JET will never generate values in this space. Clients may use this space + without conflicting with ESE. Note that the warnings are reserved as well as the errors. That is, the + range from -10,000 to -11,999 is reserved as well as the range from 10,000 to 11,999. + **/ +#define JET_errClientSpaceBegin -10000 /* Begin of the error space reserved for JET client use */ +#define JET_errClientSpaceEnd -11999 /* End of the error space reserved for JET client use */ + +/**********************************************************************/ +/*********************** PROTOTYPES **************************/ +/**********************************************************************/ + +#if !defined(_JET_NOPROTOTYPES) + +#ifdef __cplusplus +extern "C" { +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetInit( + _Inout_opt_ JET_INSTANCE * pinstance ); + + +#if ( JET_VERSION >= 0x0501 ) +JET_ERR JET_API +JetInit2( + _Inout_opt_ JET_INSTANCE * pinstance, + _In_ JET_GRBIT grbit ); + +#endif // JET_VERSION >= 0x0501 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) +#if ( JET_VERSION < 0x0600 ) +#define JetInit3A JetInit3 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetInit3A( + _Inout_opt_ JET_INSTANCE * pinstance, + _In_opt_ JET_RSTINFO_A * prstInfo, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetInit3W( + _Inout_opt_ JET_INSTANCE * pinstance, + _In_opt_ JET_RSTINFO_W * prstInfo, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetInit3 JetInit3W +#else +#define JetInit3 JetInit3A +#endif +#endif + + +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION >= 0x0501 ) +#if ( JET_VERSION < 0x0600 ) +#define JetCreateInstanceA JetCreateInstance +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateInstanceA( + _Out_ JET_INSTANCE * pinstance, + _In_opt_ JET_PCSTR szInstanceName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateInstanceW( + _Out_ JET_INSTANCE * pinstance, + _In_opt_ JET_PCWSTR szInstanceName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateInstance JetCreateInstanceW +#else +#define JetCreateInstance JetCreateInstanceA +#endif +#endif + +#if ( JET_VERSION < 0x0600 ) +#define JetCreateInstance2A JetCreateInstance2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateInstance2A( + _Out_ JET_INSTANCE * pinstance, + _In_opt_ JET_PCSTR szInstanceName, + _In_opt_ JET_PCSTR szDisplayName, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateInstance2W( + _Out_ JET_INSTANCE * pinstance, + _In_opt_ JET_PCWSTR szInstanceName, + _In_opt_ JET_PCWSTR szDisplayName, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateInstance2 JetCreateInstance2W +#else +#define JetCreateInstance2 JetCreateInstance2A +#endif +#endif + +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetInstanceMiscInfo( + _In_ JET_INSTANCE instance, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0600 + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetTerm( + _In_ JET_INSTANCE instance ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetTerm2( + _In_ JET_INSTANCE instance, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetStopService(); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetStopServiceInstance( + _In_ JET_INSTANCE instance ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION >= 0x0602 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetStopServiceInstance2( + _In_ JET_INSTANCE instance, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0602 + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetStopBackup(); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetStopBackupInstance( + _In_ JET_INSTANCE instance ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION < 0x0600 ) +#define JetSetSystemParameterA JetSetSystemParameter +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetSystemParameterA( + _Inout_opt_ JET_INSTANCE * pinstance, + _In_opt_ JET_SESID sesid, + _In_ JET_UINT32 paramid, + _In_opt_ JET_API_PTR lParam, + _In_opt_ JET_PCSTR szParam ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetSystemParameterW( + _Inout_opt_ JET_INSTANCE * pinstance, + _In_opt_ JET_SESID sesid, + _In_ JET_UINT32 paramid, + _In_opt_ JET_API_PTR lParam, + _In_opt_ JET_PCWSTR szParam ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetSetSystemParameter JetSetSystemParameterW +#else +#define JetSetSystemParameter JetSetSystemParameterA +#endif +#endif + +#if ( JET_VERSION < 0x0600 ) +#define JetGetSystemParameterA JetGetSystemParameter +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetSystemParameterA( + _In_ JET_INSTANCE instance, + _In_opt_ JET_SESID sesid, + _In_ JET_UINT32 paramid, + _Out_opt_ JET_API_PTR * plParam, + _Out_writes_bytes_opt_( cbMax ) JET_PSTR szParam, + _In_ JET_UINT32 cbMax ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetSystemParameterW( + _In_ JET_INSTANCE instance, + _In_opt_ JET_SESID sesid, + _In_ JET_UINT32 paramid, + _Out_opt_ JET_API_PTR * plParam, + _Out_writes_bytes_opt_( cbMax ) JET_PWSTR szParam, + _In_ JET_UINT32 cbMax ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetSystemParameter JetGetSystemParameterW +#else +#define JetGetSystemParameter JetGetSystemParameterA +#endif +#endif + + +#if ( JET_VERSION >= 0x0501 ) + +#if ( JET_VERSION < 0x0600 ) +#define JetEnableMultiInstanceA JetEnableMultiInstance +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetEnableMultiInstanceA( + _In_reads_opt_( csetsysparam ) JET_SETSYSPARAM_A * psetsysparam, + _In_ JET_UINT32 csetsysparam, + _Out_opt_ JET_UINT32 * pcsetsucceed ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetEnableMultiInstanceW( + _In_reads_opt_( csetsysparam ) JET_SETSYSPARAM_W * psetsysparam, + _In_ JET_UINT32 csetsysparam, + _Out_opt_ JET_UINT32 * pcsetsucceed ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetEnableMultiInstance JetEnableMultiInstanceW +#else +#define JetEnableMultiInstance JetEnableMultiInstanceA +#endif +#endif + +#endif // JET_VERSION >= 0x0501 + + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetThreadStats( + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION < 0x0600 ) +#define JetBeginSessionA JetBeginSession +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetBeginSessionA( + _In_ JET_INSTANCE instance, + _Out_ JET_SESID * psesid, + _In_opt_ JET_PCSTR szUserName, + _In_opt_ JET_PCSTR szPassword ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetBeginSessionW( + _In_ JET_INSTANCE instance, + _Out_ JET_SESID * psesid, + _In_opt_ JET_PCWSTR szUserName, + _In_opt_ JET_PCWSTR szPassword ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetBeginSession JetBeginSessionW +#else +#define JetBeginSession JetBeginSessionA +#endif +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDupSession( + _In_ JET_SESID sesid, + _Out_ JET_SESID * psesid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetEndSession( + _In_ JET_SESID sesid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetVersion( + _In_ JET_SESID sesid, + _Out_ JET_UINT32 * pwVersion ); + +JET_ERR JET_API +JetIdle( + _In_ JET_SESID sesid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + + +#if ( JET_VERSION < 0x0600 ) +#define JetCreateDatabaseA JetCreateDatabase +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateDatabaseA( + _In_ JET_SESID sesid, + _In_ JET_PCSTR szFilename, + _In_opt_ JET_PCSTR szConnect, + _Out_ JET_DBID * pdbid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateDatabaseW( + _In_ JET_SESID sesid, + _In_ JET_PCWSTR szFilename, + _In_opt_ JET_PCWSTR szConnect, + _Out_ JET_DBID * pdbid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateDatabase JetCreateDatabaseW +#else +#define JetCreateDatabase JetCreateDatabaseA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetCreateDatabase2A JetCreateDatabase2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateDatabase2A( + _In_ JET_SESID sesid, + _In_ JET_PCSTR szFilename, + _In_ const JET_UINT32 cpgDatabaseSizeMax, + _Out_ JET_DBID * pdbid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetCreateDatabase2W( + _In_ JET_SESID sesid, + _In_ JET_PCWSTR szFilename, + _In_ const JET_UINT32 cpgDatabaseSizeMax, + _Out_ JET_DBID * pdbid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateDatabase2 JetCreateDatabase2W +#else +#define JetCreateDatabase2 JetCreateDatabase2A +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetAttachDatabaseA JetAttachDatabase +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetAttachDatabaseA( + _In_ JET_SESID sesid, + _In_ JET_PCSTR szFilename, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetAttachDatabaseW( + _In_ JET_SESID sesid, + _In_ JET_PCWSTR szFilename, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetAttachDatabase JetAttachDatabaseW +#else +#define JetAttachDatabase JetAttachDatabaseA +#endif +#endif + +#if ( JET_VERSION < 0x0600 ) +#define JetAttachDatabase2A JetAttachDatabase2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetAttachDatabase2A( + _In_ JET_SESID sesid, + _In_ JET_PCSTR szFilename, + _In_ const JET_UINT32 cpgDatabaseSizeMax, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetAttachDatabase2W( + _In_ JET_SESID sesid, + _In_ JET_PCWSTR szFilename, + _In_ const JET_UINT32 cpgDatabaseSizeMax, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetAttachDatabase2 JetAttachDatabase2W +#else +#define JetAttachDatabase2 JetAttachDatabase2A +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetDetachDatabaseA JetDetachDatabase +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDetachDatabaseA( + _In_ JET_SESID sesid, + _In_opt_ JET_PCSTR szFilename ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDetachDatabaseW( + _In_ JET_SESID sesid, + _In_opt_ JET_PCWSTR szFilename ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetDetachDatabase JetDetachDatabaseW +#else +#define JetDetachDatabase JetDetachDatabaseA +#endif +#endif + +#if ( JET_VERSION >= 0x0501 ) +#if ( JET_VERSION < 0x0600 ) +#define JetDetachDatabase2A JetDetachDatabase2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDetachDatabase2A( + _In_ JET_SESID sesid, + _In_opt_ JET_PCSTR szFilename, + _In_ JET_GRBIT grbit); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDetachDatabase2W( + _In_ JET_SESID sesid, + _In_opt_ JET_PCWSTR szFilename, + _In_ JET_GRBIT grbit); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetDetachDatabase2 JetDetachDatabase2W +#else +#define JetDetachDatabase2 JetDetachDatabase2A +#endif +#endif + +#endif // JET_VERSION >= 0x0501 + + +#if ( JET_VERSION < 0x0600 ) +#define JetGetObjectInfoA JetGetObjectInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetObjectInfoA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_OBJTYP objtyp, + _In_opt_ JET_PCSTR szContainerName, + _In_opt_ JET_PCSTR szObjectName, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetObjectInfoW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_OBJTYP objtyp, + _In_opt_ JET_PCWSTR szContainerName, + _In_opt_ JET_PCWSTR szObjectName, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetObjectInfo JetGetObjectInfoW +#else +#define JetGetObjectInfo JetGetObjectInfoA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetGetTableInfoA JetGetTableInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetTableInfoA( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetTableInfoW( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetTableInfo JetGetTableInfoW +#else +#define JetGetTableInfo JetGetTableInfoA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetCreateTableA JetCreateTable +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateTableA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCSTR szTableName, + _In_ JET_UINT32 lPages, + _In_ JET_UINT32 lDensity, + _Out_ JET_TABLEID * ptableid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateTableW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCWSTR szTableName, + _In_ JET_UINT32 lPages, + _In_ JET_UINT32 lDensity, + _Out_ JET_TABLEID * ptableid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateTable JetCreateTableW +#else +#define JetCreateTable JetCreateTableA +#endif +#endif + +#if ( JET_VERSION < 0x0600 ) +#define JetCreateTableColumnIndexA JetCreateTableColumnIndex +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateTableColumnIndexA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _Inout_ JET_TABLECREATE_A * ptablecreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateTableColumnIndexW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _Inout_ JET_TABLECREATE_W * ptablecreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateTableColumnIndex JetCreateTableColumnIndexW +#else +#define JetCreateTableColumnIndex JetCreateTableColumnIndexA +#endif +#endif + + +#if ( JET_VERSION >= 0x0501 ) +#if ( JET_VERSION < 0x0600 ) +#define JetCreateTableColumnIndex2A JetCreateTableColumnIndex2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateTableColumnIndex2A( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _Inout_ JET_TABLECREATE2_A * ptablecreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateTableColumnIndex2W( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _Inout_ JET_TABLECREATE2_W * ptablecreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateTableColumnIndex2 JetCreateTableColumnIndex2W +#else +#define JetCreateTableColumnIndex2 JetCreateTableColumnIndex2A +#endif +#endif // JET_VERSION >= 0x0600 +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION >= 0x0601 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateTableColumnIndex3A( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _Inout_ JET_TABLECREATE3_A * ptablecreate ); + +JET_ERR JET_API +JetCreateTableColumnIndex3W( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _Inout_ JET_TABLECREATE3_W * ptablecreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateTableColumnIndex3 JetCreateTableColumnIndex3W +#else +#define JetCreateTableColumnIndex3 JetCreateTableColumnIndex3A +#endif +#endif // JET_VERSION >= 0x0601 + +#if ( JET_VERSION >= 0x0602 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateTableColumnIndex4A( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _Inout_ JET_TABLECREATE4_A * ptablecreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateTableColumnIndex4W( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _Inout_ JET_TABLECREATE4_W * ptablecreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateTableColumnIndex4 JetCreateTableColumnIndex4W +#else +#define JetCreateTableColumnIndex4 JetCreateTableColumnIndex4A +#endif +#endif // JET_VERSION >= 0x0602 + + +#if ( JET_VERSION < 0x0600 ) +#define JetDeleteTableA JetDeleteTable +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDeleteTableA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCSTR szTableName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDeleteTableW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCWSTR szTableName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetDeleteTable JetDeleteTableW +#else +#define JetDeleteTable JetDeleteTableA +#endif +#endif +#if ( JET_VERSION < 0x0600 ) +#define JetRenameTableA JetRenameTable +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetRenameTableA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCSTR szName, + _In_ JET_PCSTR szNameNew ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetRenameTableW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCWSTR szName, + _In_ JET_PCWSTR szNameNew ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetRenameTable JetRenameTableW +#else +#define JetRenameTable JetRenameTableA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetGetTableColumnInfoA JetGetTableColumnInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetTableColumnInfoA( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCSTR szColumnName, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetGetTableColumnInfoW( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCWSTR szColumnName, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetTableColumnInfo JetGetTableColumnInfoW +#else +#define JetGetTableColumnInfo JetGetTableColumnInfoA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetGetColumnInfoA JetGetColumnInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetColumnInfoA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCSTR szTableName, + _In_opt_ JET_PCSTR pColumnNameOrId, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetGetColumnInfoW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCWSTR szTableName, + _In_opt_ JET_PCWSTR pwColumnNameOrId, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetColumnInfo JetGetColumnInfoW +#else +#define JetGetColumnInfo JetGetColumnInfoA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetAddColumnA JetAddColumn +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetAddColumnA( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCSTR szColumnName, + _In_ const JET_COLUMNDEF * pcolumndef, + _In_reads_bytes_opt_( cbDefault ) JET_PCVOID pvDefault, + _In_ JET_UINT32 cbDefault, + _Out_opt_ JET_COLUMNID * pcolumnid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetAddColumnW( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCWSTR szColumnName, + _In_ const JET_COLUMNDEF * pcolumndef, + _In_reads_bytes_opt_( cbDefault ) JET_PCVOID pvDefault, + _In_ JET_UINT32 cbDefault, + _Out_opt_ JET_COLUMNID * pcolumnid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetAddColumn JetAddColumnW +#else +#define JetAddColumn JetAddColumnA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetDeleteColumnA JetDeleteColumn +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDeleteColumnA( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCSTR szColumnName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDeleteColumnW( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCWSTR szColumnName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetDeleteColumn JetDeleteColumnW +#else +#define JetDeleteColumn JetDeleteColumnA +#endif +#endif + + +#if ( JET_VERSION >= 0x0501 ) +#if ( JET_VERSION < 0x0600 ) +#define JetDeleteColumn2A JetDeleteColumn2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDeleteColumn2A( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCSTR szColumnName, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDeleteColumn2W( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCWSTR szColumnName, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetDeleteColumn2 JetDeleteColumn2W +#else +#define JetDeleteColumn2 JetDeleteColumn2A +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetRenameColumnA JetRenameColumn +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetRenameColumnA( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCSTR szName, + _In_ JET_PCSTR szNameNew, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetRenameColumnW( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCWSTR szName, + _In_ JET_PCWSTR szNameNew, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetRenameColumn JetRenameColumnW +#else +#define JetRenameColumn JetRenameColumnA +#endif +#endif + + +#endif // JET_VERSION >= 0x0501 + + +#if ( JET_VERSION < 0x0600 ) +#define JetSetColumnDefaultValueA JetSetColumnDefaultValue +#endif + + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetColumnDefaultValueA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCSTR szTableName, + _In_ JET_PCSTR szColumnName, + _In_reads_bytes_( cbData ) JET_PCVOID pvData, + _In_ const JET_UINT32 cbData, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetColumnDefaultValueW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCWSTR szTableName, + _In_ JET_PCWSTR szColumnName, + _In_reads_bytes_( cbData ) JET_PCVOID pvData, + _In_ const JET_UINT32 cbData, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetSetColumnDefaultValue JetSetColumnDefaultValueW +#else +#define JetSetColumnDefaultValue JetSetColumnDefaultValueA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetGetTableIndexInfoA JetGetTableIndexInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetTableIndexInfoA( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCSTR szIndexName, + _Out_writes_bytes_( cbResult ) JET_PVOID pvResult, + _In_ JET_UINT32 cbResult, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetTableIndexInfoW( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCWSTR szIndexName, + _Out_writes_bytes_( cbResult ) JET_PVOID pvResult, + _In_ JET_UINT32 cbResult, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetTableIndexInfo JetGetTableIndexInfoW +#else +#define JetGetTableIndexInfo JetGetTableIndexInfoA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetGetIndexInfoA JetGetIndexInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetIndexInfoA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCSTR szTableName, + _In_opt_ JET_PCSTR szIndexName, + _Out_writes_bytes_( cbResult ) JET_PVOID pvResult, + _In_ JET_UINT32 cbResult, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetIndexInfoW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCWSTR szTableName, + _In_opt_ JET_PCWSTR szIndexName, + _Out_writes_bytes_( cbResult ) JET_PVOID pvResult, + _In_ JET_UINT32 cbResult, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetIndexInfo JetGetIndexInfoW +#else +#define JetGetIndexInfo JetGetIndexInfoA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetCreateIndexA JetCreateIndex +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateIndexA( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCSTR szIndexName, + _In_ JET_GRBIT grbit, + _In_reads_bytes_( cbKey ) JET_PCSTR szKey, + _In_ JET_UINT32 cbKey, + _In_ JET_UINT32 lDensity ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateIndexW( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCWSTR szIndexName, + _In_ JET_GRBIT grbit, + _In_reads_bytes_( cbKey ) JET_PCWSTR szKey, + _In_ JET_UINT32 cbKey, + _In_ JET_UINT32 lDensity ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateIndex JetCreateIndexW +#else +#define JetCreateIndex JetCreateIndexA +#endif +#endif + + +#if ( JET_VERSION < 0x0600 ) +#define JetCreateIndex2A JetCreateIndex2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateIndex2A( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_( cIndexCreate ) JET_INDEXCREATE_A * pindexcreate, + _In_ JET_UINT32 cIndexCreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateIndex2W( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_( cIndexCreate ) JET_INDEXCREATE_W * pindexcreate, + _In_ JET_UINT32 cIndexCreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateIndex2 JetCreateIndex2W +#else +#define JetCreateIndex2 JetCreateIndex2A +#endif +#endif + +#if ( JET_VERSION >= 0x0601 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateIndex3A( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_( cIndexCreate ) JET_INDEXCREATE2_A * pindexcreate, + _In_ JET_UINT32 cIndexCreate ); + +JET_ERR JET_API +JetCreateIndex3W( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_( cIndexCreate ) JET_INDEXCREATE2_W * pindexcreate, + _In_ JET_UINT32 cIndexCreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateIndex3 JetCreateIndex3W +#else +#define JetCreateIndex3 JetCreateIndex3A +#endif + +#endif + +#if ( JET_VERSION >= 0x0602 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateIndex4A( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_( cIndexCreate ) JET_INDEXCREATE3_A * pindexcreate, + _In_ JET_UINT32 cIndexCreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCreateIndex4W( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_( cIndexCreate ) JET_INDEXCREATE3_W * pindexcreate, + _In_ JET_UINT32 cIndexCreate ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCreateIndex4 JetCreateIndex4W +#else +#define JetCreateIndex4 JetCreateIndex4A +#endif + +#endif + +#if ( JET_VERSION < 0x0600 ) +#define JetDeleteIndexA JetDeleteIndex +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDeleteIndexA( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCSTR szIndexName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDeleteIndexW( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_PCWSTR szIndexName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetDeleteIndex JetDeleteIndexW +#else +#define JetDeleteIndex JetDeleteIndexA +#endif +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetBeginTransaction( + _In_ JET_SESID sesid ); + +JET_ERR JET_API +JetBeginTransaction2( + _In_ JET_SESID sesid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0602 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetBeginTransaction3( + _In_ JET_SESID sesid, + _In_ JET_INT64 trxid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0602 + + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCommitTransaction( + _In_ JET_SESID sesid, + _In_ JET_GRBIT grbit ); + +#if ( JET_VERSION >= 0x0602 ) +JET_ERR JET_API +JetCommitTransaction2( + _In_ JET_SESID sesid, + _In_ JET_GRBIT grbit, + _In_ JET_UINT32 cmsecDurableCommit, + _Out_opt_ JET_COMMIT_ID * pCommitId ); +#endif // JET_VERSION >= 0x0602 + +JET_ERR JET_API +JetRollback( + _In_ JET_SESID sesid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION < 0x0600 ) +#define JetGetDatabaseInfoA JetGetDatabaseInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetGetDatabaseInfoA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetDatabaseInfoW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetDatabaseInfo JetGetDatabaseInfoW +#else +#define JetGetDatabaseInfo JetGetDatabaseInfoA +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION < 0x0600 ) +#define JetGetDatabaseFileInfoA JetGetDatabaseFileInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetDatabaseFileInfoA( + _In_ JET_PCSTR szDatabaseName, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetDatabaseFileInfoW( + _In_ JET_PCWSTR szDatabaseName, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetDatabaseFileInfo JetGetDatabaseFileInfoW +#else +#define JetGetDatabaseFileInfo JetGetDatabaseFileInfoA +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION < 0x0600 ) +#define JetOpenDatabaseA JetOpenDatabase +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenDatabaseA( + _In_ JET_SESID sesid, + _In_ JET_PCSTR szFilename, + _In_opt_ JET_PCSTR szConnect, + _Out_ JET_DBID * pdbid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenDatabaseW( + _In_ JET_SESID sesid, + _In_ JET_PCWSTR szFilename, + _In_opt_ JET_PCWSTR szConnect, + _Out_ JET_DBID * pdbid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetOpenDatabase JetOpenDatabaseW +#else +#define JetOpenDatabase JetOpenDatabaseA +#endif +#endif // JET_VERSION >= 0x0600 + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCloseDatabase( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION < 0x0600 ) +#define JetOpenTableA JetOpenTable +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenTableA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCSTR szTableName, + _In_reads_bytes_opt_( cbParameters ) JET_PCVOID pvParameters, + _In_ JET_UINT32 cbParameters, + _In_ JET_GRBIT grbit, + _Out_ JET_TABLEID * ptableid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenTableW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_PCWSTR szTableName, + _In_reads_bytes_opt_( cbParameters ) JET_PCVOID pvParameters, + _In_ JET_UINT32 cbParameters, + _In_ JET_GRBIT grbit, + _Out_ JET_TABLEID * ptableid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetOpenTable JetOpenTableW +#else +#define JetOpenTable JetOpenTableA +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetTableSequential( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_GRBIT grbit ); + +JET_ERR JET_API +JetResetTableSequential( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCloseTable( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid ); + +JET_ERR JET_API +JetDelete( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetUpdate( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_to_opt_( cbBookmark, *pcbActual ) JET_PVOID pvBookmark, + _In_ JET_UINT32 cbBookmark, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0502 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetUpdate2( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_to_opt_( cbBookmark, *pcbActual ) JET_PVOID pvBookmark, + _In_ JET_UINT32 cbBookmark, + _Out_opt_ JET_UINT32 * pcbActual, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0502 + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetEscrowUpdate( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_COLUMNID columnid, + _In_reads_bytes_( cbMax ) JET_PVOID pv, + _In_ JET_UINT32 cbMax, + _Out_writes_bytes_to_opt_( cbOldMax, *pcbOldActual ) JET_PVOID pvOld, + _In_ JET_UINT32 cbOldMax, + _Out_opt_ JET_UINT32 * pcbOldActual, + _In_ JET_GRBIT grbit ); + +JET_ERR JET_API +JetRetrieveColumn( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_COLUMNID columnid, + _Out_writes_bytes_to_opt_( cbData, min( cbData, *pcbActual ) ) JET_PVOID pvData, + _In_ JET_UINT32 cbData, + _Out_opt_ JET_UINT32 * pcbActual, + _In_ JET_GRBIT grbit, + _Inout_opt_ JET_RETINFO * pretinfo ); + +JET_ERR JET_API +JetRetrieveColumns( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Inout_updates_opt_( cretrievecolumn ) JET_RETRIEVECOLUMN * pretrievecolumn, + _In_ JET_UINT32 cretrievecolumn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetEnumerateColumns( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_UINT32 cEnumColumnId, + _In_reads_opt_( cEnumColumnId ) JET_ENUMCOLUMNID * rgEnumColumnId, + _Out_ JET_UINT32 * pcEnumColumn, + _Outptr_result_buffer_( *pcEnumColumn ) JET_ENUMCOLUMN ** prgEnumColumn, + _In_ JET_PFNREALLOC pfnRealloc, + _In_opt_ JET_PVOID pvReallocContext, + _In_ JET_UINT32 cbDataMost, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +#if ( JET_VERSION >= 0x0600 ) +JET_ERR JET_API +JetGetRecordSize( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Inout_ JET_RECSIZE * precsize, + _In_ const JET_GRBIT grbit ); + +#endif // JET_VERSION >= 0x0600 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0601 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetRecordSize2( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Inout_ JET_RECSIZE2 * precsize, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0601 + + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetColumn( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_COLUMNID columnid, + _In_reads_bytes_opt_( cbData ) JET_PCVOID pvData, + _In_ JET_UINT32 cbData, + _In_ JET_GRBIT grbit, + _In_opt_ JET_SETINFO * psetinfo ); + +JET_ERR JET_API +JetSetColumns( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_opt_( csetcolumn ) JET_SETCOLUMN * psetcolumn, + _In_ JET_UINT32 csetcolumn ); + +JET_ERR JET_API +JetPrepareUpdate( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_UINT32 prep ); + +JET_ERR JET_API +JetGetRecordPosition( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_( cbRecpos ) JET_RECPOS * precpos, + _In_ JET_UINT32 cbRecpos ); + +JET_ERR JET_API +JetGotoPosition( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_RECPOS * precpos ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetCursorInfo( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel ); + +JET_ERR JET_API +JetDupCursor( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_ JET_TABLEID * ptableid, + _In_ JET_GRBIT grbit ); + +#if ( JET_VERSION < 0x0600 ) +#define JetGetCurrentIndexA JetGetCurrentIndex +#endif + +JET_ERR JET_API +JetGetCurrentIndexA( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_( cbIndexName ) JET_PSTR szIndexName, + _In_ JET_UINT32 cbIndexName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetCurrentIndexW( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_( cbIndexName ) JET_PWSTR szIndexName, + _In_ JET_UINT32 cbIndexName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetCurrentIndex JetGetCurrentIndexW +#else +#define JetGetCurrentIndex JetGetCurrentIndexA +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION < 0x0600 ) +#define JetSetCurrentIndexA JetSetCurrentIndex +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetCurrentIndexA( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCSTR szIndexName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetCurrentIndexW( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCWSTR szIndexName ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetSetCurrentIndex JetSetCurrentIndexW +#else +#define JetSetCurrentIndex JetSetCurrentIndexA +#endif +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION < 0x0600 ) +#define JetSetCurrentIndex2A JetSetCurrentIndex2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetCurrentIndex2A( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCSTR szIndexName, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetCurrentIndex2W( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCWSTR szIndexName, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetSetCurrentIndex2 JetSetCurrentIndex2W +#else +#define JetSetCurrentIndex2 JetSetCurrentIndex2A +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION < 0x0600 ) +#define JetSetCurrentIndex3A JetSetCurrentIndex3 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetCurrentIndex3A( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCSTR szIndexName, + _In_ JET_GRBIT grbit, + _In_ JET_UINT32 itagSequence ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetCurrentIndex3W( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCWSTR szIndexName, + _In_ JET_GRBIT grbit, + _In_ JET_UINT32 itagSequence ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetSetCurrentIndex3 JetSetCurrentIndex3W +#else +#define JetSetCurrentIndex3 JetSetCurrentIndex3A +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION < 0x0600 ) +#define JetSetCurrentIndex4A JetSetCurrentIndex4 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetCurrentIndex4A( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCSTR szIndexName, + _In_opt_ JET_INDEXID * pindexid, + _In_ JET_GRBIT grbit, + _In_ JET_UINT32 itagSequence ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetCurrentIndex4W( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_opt_ JET_PCWSTR szIndexName, + _In_opt_ JET_INDEXID * pindexid, + _In_ JET_GRBIT grbit, + _In_ JET_UINT32 itagSequence ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetSetCurrentIndex4 JetSetCurrentIndex4W +#else +#define JetSetCurrentIndex4 JetSetCurrentIndex4A +#endif +#endif // JET_VERSION >= 0x0600 + + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetMove( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_INT32 cRow, + _In_ JET_GRBIT grbit ); + +#if ( JET_VERSION >= 0x0602 ) +JET_ERR JET_API +JetSetCursorFilter( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_( cColumnFilters ) JET_INDEX_COLUMN * rgColumnFilters, + _In_ JET_UINT32 cColumnFilters, + _In_ JET_GRBIT grbit ); +#endif // JET_VERSION >= 0x0602 + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetLock( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetMakeKey( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_bytes_opt_( cbData ) JET_PCVOID pvData, + _In_ JET_UINT32 cbData, + _In_ JET_GRBIT grbit ); + +JET_ERR JET_API +JetSeek( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0601 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +// FOOBY +JET_ERR JET_API +JetPrereadKeys( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_(ckeys) JET_PCVOID * rgpvKeys, + _In_reads_(ckeys) const JET_UINT32 * rgcbKeys, + _In_ JET_INT32 ckeys, + _Out_opt_ JET_INT32 * pckeysPreread, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0601 + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +#if ( JET_VERSION >= 0x0602 ) + +JET_ERR JET_API +JetPrereadIndexRanges( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_(cIndexRanges) const JET_INDEX_RANGE * const rgIndexRanges, + _In_ const JET_UINT32 cIndexRanges, + _Out_opt_ JET_UINT32 * const pcRangesPreread, + _In_reads_(ccolumnidPreread) const JET_COLUMNID * const rgcolumnidPreread, + _In_ const JET_UINT32 ccolumnidPreread, + _In_ JET_GRBIT grbit ); // JET_bitPrereadForward, JET_bitPrereadBackward + +#endif // JET_VERSION >= 0x0602 + +JET_ERR JET_API +JetGetBookmark( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PVOID pvBookmark, + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetSecondaryIndexBookmark( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_to_opt_( cbSecondaryKeyMax, *pcbSecondaryKeyActual ) JET_PVOID pvSecondaryKey, + _In_ JET_UINT32 cbSecondaryKeyMax, + _Out_opt_ JET_UINT32 * pcbSecondaryKeyActual, + _Out_writes_bytes_to_opt_( cbPrimaryBookmarkMax, *pcbPrimaryBookmarkActual ) JET_PVOID pvPrimaryBookmark, + _In_ JET_UINT32 cbPrimaryBookmarkMax, + _Out_opt_ JET_UINT32 * pcbPrimaryBookmarkActual, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + + +#if ( JET_VERSION < 0x0600 ) +#define JetCompactA JetCompact +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCompactA( + _In_ JET_SESID sesid, + _In_ JET_PCSTR szDatabaseSrc, + _In_ JET_PCSTR szDatabaseDest, + _In_ JET_PFNSTATUS pfnStatus, + _In_opt_ JET_CONVERT_A * pconvert, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCompactW( + _In_ JET_SESID sesid, + _In_ JET_PCWSTR szDatabaseSrc, + _In_ JET_PCWSTR szDatabaseDest, + _In_ JET_PFNSTATUS pfnStatus, + _In_opt_ JET_CONVERT_W * pconvert, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetCompact JetCompactW +#else +#define JetCompact JetCompactA +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION < 0x0600 ) +#define JetDefragmentA JetDefragment +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDefragmentA( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_opt_ JET_PCSTR szTableName, + _Inout_opt_ JET_UINT32 * pcPasses, + _Inout_opt_ JET_UINT32 * pcSeconds, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDefragmentW( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_opt_ JET_PCWSTR szTableName, + _Inout_opt_ JET_UINT32 * pcPasses, + _Inout_opt_ JET_UINT32 * pcSeconds, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetDefragment JetDefragmentW +#else +#define JetDefragment JetDefragmentA +#endif +#endif + + +#if ( JET_VERSION >= 0x0501 ) +#if ( JET_VERSION < 0x0600 ) +#define JetDefragment2A JetDefragment2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDefragment2A( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_opt_ JET_PCSTR szTableName, + _Inout_opt_ JET_UINT32 * pcPasses, + _Inout_opt_ JET_UINT32 * pcSeconds, + _In_ JET_CALLBACK callback, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDefragment2W( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_opt_ JET_PCWSTR szTableName, + _Inout_opt_ JET_UINT32 * pcPasses, + _Inout_opt_ JET_UINT32 * pcSeconds, + _In_ JET_CALLBACK callback, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetDefragment2 JetDefragment2W +#else +#define JetDefragment2 JetDefragment2A +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION < 0x0600 ) +#define JetDefragment3A JetDefragment3 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDefragment3A( + _In_ JET_SESID sesid, + _In_ JET_PCSTR szDatabaseName, + _In_opt_ JET_PCSTR szTableName, + _Inout_opt_ JET_UINT32 * pcPasses, + _Inout_opt_ JET_UINT32 * pcSeconds, + _In_ JET_CALLBACK callback, + _In_ JET_PVOID pvContext, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetDefragment3W( + _In_ JET_SESID sesid, + _In_ JET_PCWSTR szDatabaseName, + _In_opt_ JET_PCWSTR szTableName, + _Inout_opt_ JET_UINT32 * pcPasses, + _Inout_opt_ JET_UINT32 * pcSeconds, + _In_ JET_CALLBACK callback, + _In_ JET_PVOID pvContext, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetDefragment3 JetDefragment3W +#else +#define JetDefragment3 JetDefragment3A +#endif +#endif // JET_VERSION >= 0x0600 + +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION < 0x0600 ) +#define JetSetDatabaseSizeA JetSetDatabaseSize +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetDatabaseSizeA( + _In_ JET_SESID sesid, + _In_ JET_PCSTR szDatabaseName, + _In_ JET_UINT32 cpg, + _Out_ JET_UINT32 * pcpgReal ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetDatabaseSizeW( + _In_ JET_SESID sesid, + _In_ JET_PCWSTR szDatabaseName, + _In_ JET_UINT32 cpg, + _Out_ JET_UINT32 * pcpgReal ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetSetDatabaseSize JetSetDatabaseSizeW +#else +#define JetSetDatabaseSize JetSetDatabaseSizeA +#endif +#endif // JET_VERSION >= 0x0600 + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGrowDatabase( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_UINT32 cpg, + _In_ JET_UINT32 * pcpgReal ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +#if ( JET_VERSION >= 0x0602 ) +JET_ERR JET_API +JetResizeDatabase( + _In_ JET_SESID sesid, + _In_ JET_DBID dbid, + _In_ JET_UINT32 cpgTarget, + _Out_ JET_UINT32 * pcpgActual, + _In_ const JET_GRBIT grbit ); +#endif // JET_VERSION >= 0x0602 + +JET_ERR JET_API +JetSetSessionContext( + _In_ JET_SESID sesid, + _In_ JET_API_PTR ulContext ); + +JET_ERR JET_API +JetResetSessionContext( + _In_ JET_SESID sesid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGotoBookmark( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_bytes_( cbBookmark ) JET_PVOID pvBookmark, + _In_ JET_UINT32 cbBookmark ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGotoSecondaryIndexBookmark( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_reads_bytes_( cbSecondaryKey ) JET_PVOID pvSecondaryKey, + _In_ JET_UINT32 cbSecondaryKey, + _In_reads_bytes_opt_( cbPrimaryBookmark ) JET_PVOID pvPrimaryBookmark, + _In_ JET_UINT32 cbPrimaryBookmark, + _In_ const JET_GRBIT grbit ); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetIntersectIndexes( + _In_ JET_SESID sesid, + _In_reads_( cindexrange ) JET_INDEXRANGE * rgindexrange, + _In_ JET_UINT32 cindexrange, + _Inout_ JET_RECORDLIST * precordlist, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetComputeStats( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid ); + +JET_ERR JET_API +JetOpenTempTable( + _In_ JET_SESID sesid, + _In_reads_( ccolumn ) const JET_COLUMNDEF * prgcolumndef, + _In_ JET_UINT32 ccolumn, + _In_ JET_GRBIT grbit, + _Out_ JET_TABLEID * ptableid, + _Out_writes_( ccolumn ) JET_COLUMNID * prgcolumnid ); + +JET_ERR JET_API +JetOpenTempTable2( + _In_ JET_SESID sesid, + _In_reads_( ccolumn ) const JET_COLUMNDEF * prgcolumndef, + _In_ JET_UINT32 ccolumn, + _In_ JET_LCID lcid, + _In_ JET_GRBIT grbit, + _Out_ JET_TABLEID * ptableid, + _Out_writes_( ccolumn ) JET_COLUMNID * prgcolumnid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenTempTable3( + _In_ JET_SESID sesid, + _In_reads_( ccolumn ) const JET_COLUMNDEF * prgcolumndef, + _In_ JET_UINT32 ccolumn, + _In_opt_ JET_UNICODEINDEX * pidxunicode, + _In_ JET_GRBIT grbit, + _Out_ JET_TABLEID * ptableid, + _Out_writes_( ccolumn ) JET_COLUMNID * prgcolumnid ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenTemporaryTable( + _In_ JET_SESID sesid, + _In_ JET_OPENTEMPORARYTABLE * popentemporarytable ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION >= 0x0602 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenTemporaryTable2( + _In_ JET_SESID sesid, + _In_ JET_OPENTEMPORARYTABLE2 * popentemporarytable ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0602 + + +#if ( JET_VERSION < 0x0600 ) +#define JetBackupA JetBackup +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetBackupA( + _In_ JET_PCSTR szBackupPath, + _In_ JET_GRBIT grbit, + _In_opt_ JET_PFNSTATUS pfnStatus ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetBackupW( + _In_ JET_PCWSTR szBackupPath, + _In_ JET_GRBIT grbit, + _In_opt_ JET_PFNSTATUS pfnStatus ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetBackup JetBackupW +#else +#define JetBackup JetBackupA +#endif +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION >= 0x0501 ) +#if ( JET_VERSION < 0x0600 ) +#define JetBackupInstanceA JetBackupInstance +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetBackupInstanceA( + _In_ JET_INSTANCE instance, + _In_ JET_PCSTR szBackupPath, + _In_ JET_GRBIT grbit, + _In_opt_ JET_PFNSTATUS pfnStatus ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetBackupInstanceW( + _In_ JET_INSTANCE instance, + _In_ JET_PCWSTR szBackupPath, + _In_ JET_GRBIT grbit, + _In_opt_ JET_PFNSTATUS pfnStatus ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetBackupInstance JetBackupInstanceW +#else +#define JetBackupInstance JetBackupInstanceA +#endif +#endif // JET_VERSION >= 0x0600 + +#endif // JET_VERSION >= 0x0501 + + +#if ( JET_VERSION < 0x0600 ) +#define JetRestoreA JetRestore +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetRestoreA( + _In_ JET_PCSTR szSource, + _In_opt_ JET_PFNSTATUS pfn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetRestoreW( + _In_ JET_PCWSTR szSource, + _In_opt_ JET_PFNSTATUS pfn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetRestore JetRestoreW +#else +#define JetRestore JetRestoreA +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION < 0x0600 ) +#define JetRestore2A JetRestore2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetRestore2A( + _In_ JET_PCSTR sz, + _In_opt_ JET_PCSTR szDest, + _In_opt_ JET_PFNSTATUS pfn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetRestore2W( + _In_ JET_PCWSTR sz, + _In_opt_ JET_PCWSTR szDest, + _In_opt_ JET_PFNSTATUS pfn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetRestore2 JetRestore2W +#else +#define JetRestore2 JetRestore2A +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION >= 0x0501 ) +#if ( JET_VERSION < 0x0600 ) +#define JetRestoreInstanceA JetRestoreInstance +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetRestoreInstanceA( + _In_ JET_INSTANCE instance, + _In_ JET_PCSTR sz, + _In_opt_ JET_PCSTR szDest, + _In_opt_ JET_PFNSTATUS pfn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetRestoreInstanceW( + _In_ JET_INSTANCE instance, + _In_ JET_PCWSTR sz, + _In_opt_ JET_PCWSTR szDest, + _In_opt_ JET_PFNSTATUS pfn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetRestoreInstance JetRestoreInstanceW +#else +#define JetRestoreInstance JetRestoreInstanceA +#endif +#endif // JET_VERSION >= 0x0600 + +#endif // JET_VERSION >= 0x0501 + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetSetIndexRange( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableidSrc, + _In_ JET_GRBIT grbit ); + +JET_ERR JET_API +JetIndexRecordCount( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_ JET_UINT32 * pcrec, + _In_ JET_UINT32 crecMax ); + +#if ( JET_VERSION >= 0x0A01 ) + +JET_ERR JET_API +JetIndexRecordCount2( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_ JET_UINT64 * pcrec, + _In_ JET_UINT64 crecMax ); + +#endif // JET_VERSION >= 0x0A01 + +JET_ERR JET_API +JetRetrieveKey( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PVOID pvKey, + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetBeginExternalBackup( + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetBeginExternalBackupInstance( + _In_ JET_INSTANCE instance, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION < 0x0600 ) +#define JetGetAttachInfoA JetGetAttachInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetAttachInfoA( +#if ( JET_VERSION < 0x0600 ) + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PVOID pv, +#else + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PSTR szzDatabases, +#endif + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetAttachInfoW( + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PWSTR wszzDatabases, + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetAttachInfo JetGetAttachInfoW +#else +#define JetGetAttachInfo JetGetAttachInfoA +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION >= 0x0501 ) +#if ( JET_VERSION < 0x0600 ) +#define JetGetAttachInfoInstanceA JetGetAttachInfoInstance +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetAttachInfoInstanceA( + _In_ JET_INSTANCE instance, +#if ( JET_VERSION < 0x0600 ) + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PVOID pv, +#else + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PSTR szzDatabases, +#endif + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetAttachInfoInstanceW( + _In_ JET_INSTANCE instance, + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PWSTR szzDatabases, + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetAttachInfoInstance JetGetAttachInfoInstanceW +#else +#define JetGetAttachInfoInstance JetGetAttachInfoInstanceA +#endif +#endif // JET_VERSION >= 0x0600 + +#endif // JET_VERSION >= 0x0501 + + +#if ( JET_VERSION < 0x0600 ) +#define JetOpenFileA JetOpenFile +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenFileA( + _In_ JET_PCSTR szFileName, + _Out_ JET_HANDLE * phfFile, + _Out_ JET_UINT32 * pulFileSizeLow, + _Out_ JET_UINT32 * pulFileSizeHigh ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenFileW( + _In_ JET_PCWSTR szFileName, + _Out_ JET_HANDLE * phfFile, + _Out_ JET_UINT32 * pulFileSizeLow, + _Out_ JET_UINT32 * pulFileSizeHigh ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetOpenFile JetOpenFileW +#else +#define JetOpenFile JetOpenFileA +#endif +#endif + + +#if ( JET_VERSION >= 0x0501 ) +#if ( JET_VERSION < 0x0600 ) +#define JetOpenFileInstanceA JetOpenFileInstance +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenFileInstanceA( + _In_ JET_INSTANCE instance, + _In_ JET_PCSTR szFileName, + _Out_ JET_HANDLE * phfFile, + _Out_ JET_UINT32 * pulFileSizeLow, + _Out_ JET_UINT32 * pulFileSizeHigh ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOpenFileInstanceW( + _In_ JET_INSTANCE instance, + _In_ JET_PCWSTR szFileName, + _Out_ JET_HANDLE * phfFile, + _Out_ JET_UINT32 * pulFileSizeLow, + _Out_ JET_UINT32 * pulFileSizeHigh ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetOpenFileInstance JetOpenFileInstanceW +#else +#define JetOpenFileInstance JetOpenFileInstanceA +#endif +#endif // JET_VERSION >= 0x0600 + +#endif // JET_VERSION >= 0x0501 + + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetReadFile( + _In_ JET_HANDLE hfFile, + _Out_writes_bytes_to_( cb, *pcbActual ) JET_PVOID pv, + _In_ JET_UINT32 cb, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetReadFileInstance( + _In_ JET_INSTANCE instance, + _In_ JET_HANDLE hfFile, + _Out_writes_bytes_to_( cb, *pcbActual ) JET_PVOID pv, + _In_ JET_UINT32 cb, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCloseFile( + _In_ JET_HANDLE hfFile ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetCloseFileInstance( + _In_ JET_INSTANCE instance, + _In_ JET_HANDLE hfFile ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION < 0x0600 ) +#define JetGetLogInfoA JetGetLogInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetLogInfoA( +#if ( JET_VERSION < 0x0600 ) + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PVOID pv, +#else + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PSTR szzLogs, +#endif + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetLogInfoW( + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PWSTR szzLogs, + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetLogInfo JetGetLogInfoW +#else +#define JetGetLogInfo JetGetLogInfoA +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION >= 0x0501 ) +#if ( JET_VERSION < 0x0600 ) +#define JetGetLogInfoInstanceA JetGetLogInfoInstance +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetLogInfoInstanceA( + _In_ JET_INSTANCE instance, +#if ( JET_VERSION < 0x0600 ) + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PVOID pv, +#else + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PSTR szzLogs, +#endif + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetLogInfoInstanceW( + _In_ JET_INSTANCE instance, + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PWSTR wszzLogs, + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetLogInfoInstance JetGetLogInfoInstanceW +#else +#define JetGetLogInfoInstance JetGetLogInfoInstanceA +#endif +#endif // JET_VERSION >= 0x0600 + + +#define JET_BASE_NAME_LENGTH 3 +typedef struct +{ + JET_UINT32 cbSize; + JET_UINT32 ulGenLow; + JET_UINT32 ulGenHigh; + JET_CHAR szBaseName[ JET_BASE_NAME_LENGTH + 1 ]; +} JET_LOGINFO_A; + +typedef struct +{ + JET_UINT32 cbSize; + JET_UINT32 ulGenLow; + JET_UINT32 ulGenHigh; + JET_WCHAR szBaseName[ JET_BASE_NAME_LENGTH + 1 ]; +} JET_LOGINFO_W; + +#ifdef JET_UNICODE +#define JET_LOGINFO JET_LOGINFO_W +#else +#define JET_LOGINFO JET_LOGINFO_A +#endif + +#if ( JET_VERSION < 0x0600 ) +#define JetGetLogInfoInstance2A JetGetLogInfoInstance2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetLogInfoInstance2A( + _In_ JET_INSTANCE instance, +#if ( JET_VERSION < 0x0600 ) + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PVOID pv, +#else + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PSTR szzLogs, +#endif + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual, + _Inout_opt_ JET_LOGINFO_A * pLogInfo ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetLogInfoInstance2W( + _In_ JET_INSTANCE instance, + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PWSTR wszzLogs, + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual, + _Inout_opt_ JET_LOGINFO_W * pLogInfo ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetLogInfoInstance2 JetGetLogInfoInstance2W +#else +#define JetGetLogInfoInstance2 JetGetLogInfoInstance2A +#endif +#endif // JET_VERSION >= 0x0600 + + +#if ( JET_VERSION < 0x0600 ) +#define JetGetTruncateLogInfoInstanceA JetGetTruncateLogInfoInstance +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetTruncateLogInfoInstanceA( + _In_ JET_INSTANCE instance, +#if ( JET_VERSION < 0x0600 ) + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PVOID pv, +#else + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PSTR szzLogs, +#endif + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetTruncateLogInfoInstanceW( + _In_ JET_INSTANCE instance, + _Out_writes_bytes_to_opt_( cbMax, *pcbActual ) JET_PWSTR wszzLogs, + _In_ JET_UINT32 cbMax, + _Out_opt_ JET_UINT32 * pcbActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetTruncateLogInfoInstance JetGetTruncateLogInfoInstanceW +#else +#define JetGetTruncateLogInfoInstance JetGetTruncateLogInfoInstanceA +#endif +#endif // JET_VERSION >= 0x0600 + + +#endif // JET_VERSION >= 0x0501 + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetTruncateLog( JET_VOID ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetTruncateLogInstance( + _In_ JET_INSTANCE instance ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetEndExternalBackup( JET_VOID ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0501 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetEndExternalBackupInstance( + _In_ JET_INSTANCE instance ); + +JET_ERR JET_API +JetEndExternalBackupInstance2( + _In_ JET_INSTANCE instance, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + + +#if ( JET_VERSION < 0x0600 ) +#define JetExternalRestoreA JetExternalRestore +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetExternalRestoreA( + _In_ JET_PSTR szCheckpointFilePath, + _In_ JET_PSTR szLogPath, + _In_reads_opt_( crstfilemap ) JET_RSTMAP_A * rgrstmap, + _In_ JET_INT32 crstfilemap, + _In_ JET_PSTR szBackupLogPath, + _In_ JET_INT32 genLow, + _In_ JET_INT32 genHigh, + _In_ JET_PFNSTATUS pfn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetExternalRestoreW( + _In_ JET_PWSTR szCheckpointFilePath, + _In_ JET_PWSTR szLogPath, + _In_reads_opt_( crstfilemap ) JET_RSTMAP_W * rgrstmap, + _In_ JET_INT32 crstfilemap, + _In_ JET_PWSTR szBackupLogPath, + _In_ JET_INT32 genLow, + _In_ JET_INT32 genHigh, + _In_ JET_PFNSTATUS pfn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetExternalRestore JetExternalRestoreW +#else +#define JetExternalRestore JetExternalRestoreA +#endif +#endif // JET_VERSION >= 0x0600 + + +#if JET_VERSION >= 0x0501 +#if ( JET_VERSION < 0x0600 ) +#define JetExternalRestore2A JetExternalRestore2 +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetExternalRestore2A( + _In_ JET_PSTR szCheckpointFilePath, + _In_ JET_PSTR szLogPath, + _In_reads_opt_( crstfilemap ) JET_RSTMAP_A * rgrstmap, + _In_ JET_INT32 crstfilemap, + _In_ JET_PSTR szBackupLogPath, + _Inout_ JET_LOGINFO_A * pLogInfo, + _In_opt_ JET_PSTR szTargetInstanceName, + _In_opt_ JET_PSTR szTargetInstanceLogPath, + _In_opt_ JET_PSTR szTargetInstanceCheckpointPath, + _In_ JET_PFNSTATUS pfn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetExternalRestore2W( + _In_ JET_PWSTR szCheckpointFilePath, + _In_ JET_PWSTR szLogPath, + _In_reads_opt_( crstfilemap ) JET_RSTMAP_W * rgrstmap, + _In_ JET_INT32 crstfilemap, + _In_ JET_PWSTR szBackupLogPath, + _Inout_ JET_LOGINFO_W * pLogInfo, + _In_opt_ JET_PWSTR szTargetInstanceName, + _In_opt_ JET_PWSTR szTargetInstanceLogPath, + _In_opt_ JET_PWSTR szTargetInstanceCheckpointPath, + _In_ JET_PFNSTATUS pfn ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetExternalRestore2 JetExternalRestore2W +#else +#define JetExternalRestore2 JetExternalRestore2A +#endif +#endif // JET_VERSION >= 0x0600 + + +#pragma region Application Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetRegisterCallback( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_CBTYP cbtyp, + _In_ JET_CALLBACK pCallback, + _In_opt_ JET_PVOID pvContext, + _In_ JET_HANDLE * phCallbackId ); + +JET_ERR JET_API +JetUnregisterCallback( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_CBTYP cbtyp, + _In_ JET_HANDLE hCallbackId ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +typedef struct _JET_INSTANCE_INFO_A +{ + JET_INSTANCE hInstanceId; + JET_PSTR szInstanceName; + + JET_API_PTR cDatabases; + JET_PSTR * szDatabaseFileName; + JET_PSTR * szDatabaseDisplayName; + JET_PSTR * szDatabaseSLVFileName_Obsolete; +} JET_INSTANCE_INFO_A; + +typedef struct _JET_INSTANCE_INFO_W +{ + JET_INSTANCE hInstanceId; + JET_PWSTR szInstanceName; + + JET_API_PTR cDatabases; + JET_PWSTR * szDatabaseFileName; + JET_PWSTR * szDatabaseDisplayName; + JET_PWSTR * szDatabaseSLVFileName_Obsolete; +} JET_INSTANCE_INFO_W; + +#ifdef JET_UNICODE +#define JET_INSTANCE_INFO JET_INSTANCE_INFO_W +#else +#define JET_INSTANCE_INFO JET_INSTANCE_INFO_A +#endif + +#if ( JET_VERSION < 0x0600 ) +#define JetGetInstanceInfoA JetGetInstanceInfo +#endif + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetInstanceInfoA( + _Out_ JET_UINT32 * pcInstanceInfo, + _Outptr_result_buffer_( *pcInstanceInfo ) JET_INSTANCE_INFO_A ** paInstanceInfo ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetGetInstanceInfoW( + _Out_ JET_UINT32 * pcInstanceInfo, + _Outptr_result_buffer_( *pcInstanceInfo ) JET_INSTANCE_INFO_W ** paInstanceInfo ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#ifdef JET_UNICODE +#define JetGetInstanceInfo JetGetInstanceInfoW +#else +#define JetGetInstanceInfo JetGetInstanceInfoA +#endif +#endif // JET_VERSION >= 0x0600 + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetFreeBuffer( + _Pre_notnull_ JET_CHAR * pbBuf ); + +JET_ERR JET_API +JetSetLS( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _In_ JET_LS ls, + _In_ JET_GRBIT grbit ); + +JET_ERR JET_API +JetGetLS( + _In_ JET_SESID sesid, + _In_ JET_TABLEID tableid, + _Out_ JET_LS * pls, + _In_ JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +typedef JET_API_PTR JET_OSSNAPID; // Snapshot Session Identifier + +JET_ERR JET_API +JetOSSnapshotPrepare( + _Out_ JET_OSSNAPID * psnapId, + _In_ const JET_GRBIT grbit ); +#if ( JET_VERSION >= 0x0600 ) +JET_ERR JET_API +JetOSSnapshotPrepareInstance( + _In_ JET_OSSNAPID snapId, + _In_ JET_INSTANCE instance, + _In_ const JET_GRBIT grbit ); + +#endif // JET_VERSION >= 0x0600 + +#if ( JET_VERSION < 0x0600 ) +#define JetOSSnapshotFreezeA JetOSSnapshotFreeze +#endif + +JET_ERR JET_API +JetOSSnapshotFreezeA( + _In_ const JET_OSSNAPID snapId, + _Out_ JET_UINT32 * pcInstanceInfo, + _Outptr_result_buffer_( *pcInstanceInfo ) JET_INSTANCE_INFO_A ** paInstanceInfo, + _In_ const JET_GRBIT grbit ); + +#if ( JET_VERSION >= 0x0600 ) + +JET_ERR JET_API +JetOSSnapshotFreezeW( + _In_ const JET_OSSNAPID snapId, + _Out_ JET_UINT32 * pcInstanceInfo, + _Outptr_result_buffer_( *pcInstanceInfo ) JET_INSTANCE_INFO_W ** paInstanceInfo, + _In_ const JET_GRBIT grbit ); + +#ifdef JET_UNICODE +#define JetOSSnapshotFreeze JetOSSnapshotFreezeW +#else +#define JetOSSnapshotFreeze JetOSSnapshotFreezeA +#endif +#endif // JET_VERSION >= 0x0600 + +JET_ERR JET_API +JetOSSnapshotThaw( + _In_ const JET_OSSNAPID snapId, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0501 + +#if ( JET_VERSION >= 0x0502 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOSSnapshotAbort( + _In_ const JET_OSSNAPID snapId, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0502 + +#if ( JET_VERSION >= 0x0600 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOSSnapshotTruncateLog( + _In_ const JET_OSSNAPID snapId, + _In_ const JET_GRBIT grbit ); + +JET_ERR JET_API +JetOSSnapshotTruncateLogInstance( + _In_ const JET_OSSNAPID snapId, + _In_ JET_INSTANCE instance, + _In_ const JET_GRBIT grbit ); + +#if ( JET_VERSION < 0x0600 ) +#define JetOSSnapshotGetFreezeInfoA JetOSSnapshotGetFreezeInfo +#endif + +JET_ERR JET_API +JetOSSnapshotGetFreezeInfoA( + _In_ const JET_OSSNAPID snapId, + _Out_ JET_UINT32 * pcInstanceInfo, + _Outptr_result_buffer_( *pcInstanceInfo ) JET_INSTANCE_INFO_A ** paInstanceInfo, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetOSSnapshotGetFreezeInfoW( + _In_ const JET_OSSNAPID snapId, + _Out_ JET_UINT32 * pcInstanceInfo, + _Outptr_result_buffer_( *pcInstanceInfo ) JET_INSTANCE_INFO_W ** paInstanceInfo, + _In_ const JET_GRBIT grbit ); + +#ifdef JET_UNICODE +#define JetOSSnapshotGetFreezeInfo JetOSSnapshotGetFreezeInfoW +#else +#define JetOSSnapshotGetFreezeInfo JetOSSnapshotGetFreezeInfoA +#endif + +JET_ERR JET_API +JetOSSnapshotEnd( + _In_ const JET_OSSNAPID snapId, + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0600 + + + +#if ( JET_VERSION >= 0x0601 ) + +// Options for JetConfigureProcessForCrashDump + +#define JET_bitDumpMinimum 0x00000001 +// dump minimum includes cache minimum +#define JET_bitDumpMaximum 0x00000002 +// dump maximum includes dump minimum +// dump maximum includes cache maximum +#define JET_bitDumpCacheMinimum 0x00000004 +// cache minimum includes pages that are latched +// cache minimum includes pages that are used for memory +// cache minimum includes pages that are flagged with errors +#define JET_bitDumpCacheMaximum 0x00000008 +// cache maximum includes cache minimum +// cache maximum includes the entire cache image +#define JET_bitDumpCacheIncludeDirtyPages 0x00000010 +// dump includes pages that are modified +#define JET_bitDumpCacheIncludeCachedPages 0x00000020 +// dump includes pages that contain valid data +#define JET_bitDumpCacheIncludeCorruptedPages 0x00000040 +// dump includes pages that are corrupted (expensive to compute) +#define JET_bitDumpCacheNoDecommit 0x00000080 +// do not decommit any pages not intending to include in crash dump + + + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API +JetConfigureProcessForCrashDump( + _In_ const JET_GRBIT grbit ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + +#endif // JET_VERSION >= 0x0601 + +#if ( JET_VERSION >= 0x0601 ) + + +#endif // JET_VERSION >= 0x0601 + +#if ( JET_VERSION >= 0x0602 ) + +#pragma region Desktop Family or Esent Package +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) + +JET_ERR JET_API JetGetErrorInfoW( + _In_opt_ JET_PVOID pvContext, + _Out_writes_bytes_( cbMax ) JET_PVOID pvResult, + _In_ JET_UINT32 cbMax, + _In_ JET_UINT32 InfoLevel, + _In_ JET_GRBIT grbit ); + +#ifdef JET_UNICODE +#define JetGetErrorInfo JetGetErrorInfoW +#else +#define JetGetErrorInfo JetGetErrorInfoA_DoesNotExist_OnlyUnicodeVersionOfThisAPI_UseExcplicit_JetGetErrorInfoW_Instead +#endif + +JET_ERR JET_API +JetSetSessionParameter( + _In_opt_ JET_SESID sesid, + _In_ JET_UINT32 sesparamid, + _In_reads_bytes_opt_( cbParam ) JET_PVOID pvParam, + _In_ JET_UINT32 cbParam ); + +JET_ERR JET_API +JetGetSessionParameter( + _In_opt_ JET_SESID sesid, + _In_ JET_UINT32 sesparamid, + _Out_cap_post_count_(cbParamMax, *pcbParamActual) JET_PVOID pvParam, + _In_ JET_UINT32 cbParamMax, + _Out_opt_ JET_UINT32 * pcbParamActual ); + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_PKG_ESENT) */ +#pragma endregion + + +#endif // JET_VERSION >= 0x0602 + + +#ifdef __cplusplus +} // extern "C" - Note: from the beginning of the #if !defined(_JET_NOPROTOTYPES) section. +#endif + +#endif /* _JET_NOPROTOTYPES */ + +#pragma pack(pop) + +#ifdef __cplusplus +} // extern "C" +#endif + +#endif /* _JET_INCLUDED */ + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/evalcom2.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/evalcom2.h new file mode 100644 index 0000000000000000000000000000000000000000..46e9064bd18a80cd43bc4691139db382edc1ed4a --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/evalcom2.h @@ -0,0 +1,71 @@ +//-------------------------------------------------------------------------- +// +// Microsoft Windows - EvalCom2 MSI Validation Engine +// +// Copyright (C) Microsoft Corporation. All rights reserved. +// +//-------------------------------------------------------------------------- +#pragma once +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + + +#include + + +// returned from IEvalResult::GetResultType +typedef enum RESULTTYPES +{ + ieUnknown = 0, + ieError, + ieWarning, + ieInfo, +}RESULTTYPES; + +// values passed to status callback +typedef enum STATUSTYPES +{ + ieStatusGetCUB, + ieStatusICECount, + ieStatusMerge, + ieStatusSummaryInfo, + ieStatusCreateEngine, + ieStatusStarting, + ieStatusRunICE, + ieStatusShutdown, + ieStatusSuccess, + ieStatusFail, + ieStatusCancel +}STATUSTYPES; + +typedef BOOL (WINAPI* LPDISPLAYVAL)(LPVOID pContext, RESULTTYPES uiType, LPCWSTR szwVal, LPCWSTR szwDescription, LPCWSTR szwLocation); +typedef BOOL (WINAPI* LPEVALCOMCALLBACK)(STATUSTYPES iStatus, LPCWSTR szData, LPVOID pContext); + +/////////////////////////////////////////////////////////// +// IEval +interface IValidate : IUnknown +{ + virtual HRESULT __stdcall OpenDatabase(LPCOLESTR szDatabase) = 0; + virtual HRESULT __stdcall OpenCUB(LPCOLESTR szCUBFile) = 0; + virtual HRESULT __stdcall CloseDatabase() = 0; + virtual HRESULT __stdcall CloseCUB() = 0; + + virtual HRESULT __stdcall SetDisplay(LPDISPLAYVAL pDisplayFunction, LPVOID pContext) = 0; + virtual HRESULT __stdcall SetStatus(LPEVALCOMCALLBACK pStatusFunction, LPVOID pContext) = 0; + + virtual HRESULT __stdcall Validate(const WCHAR *wzICEs = NULL) = 0; +}; + + +/* 6e5e1910-8053-4660-b795-6b612e29bc58 */ +DEFINE_GUID(CLSID_EvalCom2, 0x6e5e1910, 0x8053, 0x4660, 0xb7, 0x95, 0x6b, 0x61, 0x2e, 0x29, 0xbc, 0x58); + +/* e482e5c6-e31e-4143-a2e6-dbc3d8e4b8d3 */ +DEFINE_GUID(IID_IValidate, 0xe482e5c6, 0xe31e, 0x4143, 0xa2, 0xe6, 0xdb, 0xc3, 0xd8, 0xe4, 0xb8, 0xd3); + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion + diff --git a/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/evcode.h b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/evcode.h new file mode 100644 index 0000000000000000000000000000000000000000..a1de1ba08d2e2ba7d9443ec3a4c7264e9bf466e8 --- /dev/null +++ b/miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/evcode.h @@ -0,0 +1,538 @@ +//------------------------------------------------------------------------------ +// File: EvCode.h +// +// Desc: List of standard Quartz event codes and the expected params. +// +// Copyright (c) 1992 - 2001, Microsoft Corporation. All rights reserved. +//------------------------------------------------------------------------------ + + +// Event codes are broken into two groups +// -- system event codes +// -- extension event codes +// All system event codes are below EC_USER + +#include + +#pragma region Desktop Family +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + +#define EC_SYSTEMBASE 0x00 +#define EC_USER 0x8000 + +// System-defined event codes +// ========================== +// +// There are three types of system-defined event codes: +// +// 1. Those which are always passed through to the application +// (To be collected by calls to GetEvent or within WaitForCompletion.) +// (e.g. EC_ERRORABORT, EC_USERABORT.) +// +// 2. Those which are pure internal and will never be passed to +// the application. (e.g. EC_SHUTDOWN) +// +// 3. Those which have default handling. Default handing implies that +// the event is not passed to the application. However, default +// handling may be canceled by calling +// IMediaEvent::CancelDefaultHandling. If the default handling is +// cancelled in this way, then the message will be delivered to the +// application and the application must action it appropriately. +// Default handling can be restored by calling RestoreDefaultHandling. +// +// We will refer to these events as application, internal and defaulted +// events respectively. +// +// System-defined events may have interface pointers, BSTR's, etc passed +// as parameters. It is therefore essential that, for any message +// retrieved using GetEvent, a matching call to FreeEventParams is made +// to ensure that relevant interfaces are released and storage freed. +// Failure to call FreeEventParams will result in memory leaks, if not +// worse. +// +// Filters sending these messages to the filter graph should not AddRef() +// any interfaces that they may pass as parameters. The filter graph +// manager will AddRef them if required. E.g. if the event is to be queued +// for the application or queued to a worker thread. + +// Each event listed below is immediately followed by a parameter list +// detailing the types of the parameters associated with the message, +// and an indication of whether the message is an application, internal +// or defaulted message. This is then followed by a short description. +// The use of "void" in the parameter list implies that the parameter is not +// used. Such parameters should be zero. + +// Other defined EC_ regions: +// DVD event codes 0x0100 - 0x0150 (dvdevcod.h) +// audio device event codes 0x0200 - 0x0250 (audevcod.h) +// WindowsMedia SDK-originated events 0x0251 - 0x0300 (see below) +// MSVIDCTL 0x0301 - 0x0325 (msvidctl.idl) +// stream buffer engine (PVR) 0x0326 - 0x0350 (sbe.idl) + +#define EC_COMPLETE 0x01 +// ( HRESULT, void ) : defaulted (special) +// Signals the completed playback of a stream within the graph. This message +// is sent by renderers when they receive end-of-stream. The default handling +// of this message results in a _SINGLE_ EC_COMPLETE being sent to the +// application when ALL of the individual renderers have signaled EC_COMPLETE +// to the filter graph. If the default handing is canceled, the application +// will see all of the individual EC_COMPLETEs. + + +#define EC_USERABORT 0x02 +// ( void, void ) : application +// In some sense, the user has requested that playback be terminated. +// This message is typically sent by renderers that render into a +// window if the user closes the window into which it was rendering. +// It is up to the application to decide if playback should actually +// be stopped. + + +#define EC_ERRORABORT 0x03 +// ( HRESULT, void ) : application +// Operation aborted because of error + + +#define EC_TIME 0x04 +// ( DWORD, DWORD ) : application +// The requested reference time occurred. (This event is currently not used). +// lParam1 is low dword of ref time, lParam2 is high dword of reftime. + + +#define EC_REPAINT 0x05 +// ( IPin * (could be NULL), void ) : defaulted +// A repaint is required - lParam1 contains the (IPin *) that needs the data +// to be sent again. Default handling is: if the output pin which the IPin is +// attached to supports the IMediaEventSink interface then it will be called +// with the EC_REPAINT first. If that fails then normal repaint processing is +// done by the filter graph. + + +// Stream error notifications +#define EC_STREAM_ERROR_STOPPED 0x06 +#define EC_STREAM_ERROR_STILLPLAYING 0x07 +// ( HRESULT, DWORD ) : application +// lParam 1 is major code, lParam2 is minor code, either may be zero. + + +#define EC_ERROR_STILLPLAYING 0x08 +// ( HRESULT, void ) : application +// The filter graph manager may issue Run's to the graph asynchronously. +// If such a Run fails, EC_ERROR_STILLPLAYING is issued to notify the +// application of the failure. The state of the underlying filters +// at such a time will be indeterminate - they will all have been asked +// to run, but some are almost certainly not. + + +#define EC_PALETTE_CHANGED 0x09 +// ( void, void ) : application +// notify application that the video palette has changed + + +#define EC_VIDEO_SIZE_CHANGED 0x0A +// ( DWORD, void ) : application +// Sent by video renderers. +// Notifies the application that the native video size has changed. +// LOWORD of the DWORD is the new width, HIWORD is the new height. + + +#define EC_QUALITY_CHANGE 0x0B +// ( void, void ) : application +// Notify application that playback degradation has occurred + + +#define EC_SHUTTING_DOWN 0x0C +// ( void, void ) : internal +// This message is sent by the filter graph manager to any plug-in +// distributors which support IMediaEventSink to notify them that +// the filter graph is starting to shutdown. + + +#define EC_CLOCK_CHANGED 0x0D +// ( void, void ) : application +// Notify application that the clock has changed. +// (i.e. SetSyncSource has been called on the filter graph and has been +// distributed successfully to the filters in the graph.) + + +#define EC_PAUSED 0x0E +// ( HRESULT, void ) : application +// Notify application the previous pause request has completed + + +#define EC_OPENING_FILE 0x10 +#define EC_BUFFERING_DATA 0x11 +// ( BOOL, void ) : application +// lParam1 == 1 --> starting to open file or buffer data +// lParam1 == 0 --> not opening or buffering any more +// (This event does not appear to be used by ActiveMovie.) + + +#define EC_FULLSCREEN_LOST 0x12 +// ( void, IBaseFilter * ) : application +// Sent by full screen renderers when switched away from full screen. +// IBaseFilter may be NULL. + + +#define EC_ACTIVATE 0x13 +// ( BOOL, IBaseFilter * ) : internal +// Sent by video renderers when they lose or gain activation. +// lParam1 is set to 1 if gained or 0 if lost +// lParam2 is the IBaseFilter* for the filter that is sending the message +// Used for sound follows focus and full-screen switching + + +#define EC_NEED_RESTART 0x14 +// ( void, void ) : defaulted +// Sent by renderers when they regain a resource (e.g. audio renderer). +// Causes a restart by Pause/put_Current/Run (if running). + + +#define EC_WINDOW_DESTROYED 0x15 +// ( IBaseFilter *, void ) : internal +// Sent by video renderers when the window has been destroyed. Handled +// by the filter graph / distributor telling the resource manager. +// lParam1 is the IBaseFilter* of the filter whose window is being destroyed + + +#define EC_DISPLAY_CHANGED 0x16 +// ( IPin *, void ) : internal +// Sent by renderers when they detect a display change. the filter graph +// will arrange for the graph to be stopped and the pin send in lParam1 +// to be reconnected. by being reconnected it allows a renderer to reset +// and connect with a more appropriate format for the new display mode +// lParam1 contains an (IPin *) that should be reconnected by the graph + + +#define EC_STARVATION 0x17 +// ( void, void ) : defaulted +// Sent by a filter when it detects starvation. Default handling (only when +// running) is for the graph to be paused until all filters enter the +// paused state and then run. Normally this would be sent by a parser or source +// filter when too little data is arriving. + + +#define EC_OLE_EVENT 0x18 +// ( BSTR, BSTR ) : application +// Sent by a filter to pass a text string to the application. +// Conventionally, the first string is a type, and the second a parameter. + + +#define EC_NOTIFY_WINDOW 0x19 +// ( HWND, void ) : internal +// Pass the window handle around during pin connection. + +#define EC_STREAM_CONTROL_STOPPED 0x1A +// ( IPin * pSender, DWORD dwCookie ) +// Notification that an earlier call to IAMStreamControl::StopAt +// has now take effect. Calls to the method can be marked +// with a cookie which is passed back in the second parameter, +// allowing applications to easily tie together request +// and completion notifications. +// +// NB: IPin will point to the pin that actioned the Stop. This +// may not be the pin that the StopAt was sent to. + +#define EC_STREAM_CONTROL_STARTED 0x1B +// ( IPin * pSender, DWORD dwCookie ) +// Notification that an earlier call to IAMStreamControl::StartAt +// has now take effect. Calls to the method can be marked +// with a cookie which is passed back in the second parameter, +// allowing applications to easily tie together request +// and completion notifications. +// +// NB: IPin will point to the pin that actioned the Start. This +// may not be the pin that the StartAt was sent to. + +#define EC_END_OF_SEGMENT 0x1C +// +// ( const REFERENCE_TIME *pStreamTimeAtEndOfSegment, DWORD dwSegmentNumber ) +// +// pStreamTimeAtEndOfSegment +// pointer to the accumulated stream clock +// time since the start of the segment - this is directly computable +// as the sum of the previous and current segment durations (Stop - Start) +// and the rate applied to each segment +// The source add this time to the time within each segment to get +// a total elapsed time +// +// dwSegmentNumber +// Segment number - starts at 0 +// +// Notifies that a segment end has been reached when the +// AM_SEEKING_Segment flags was set for IMediaSeeking::SetPositions +// Passes in an IMediaSeeking interface to allow the next segment +// to be defined by the application + +#define EC_SEGMENT_STARTED 0x1D +// +// ( const REFERENCE_TIME *pStreamTimeAtStartOfSegment, DWORD dwSegmentNumber) +// +// pStreamTimeAtStartOfSegment +// pointer to the accumulated stream clock +// time since the start of the segment - this is directly computable +// as the sum of the previous segment durations (Stop - Start) +// and the rate applied to each segment +// +// dwSegmentNumber +// Segment number - starts at 0 +// +// Notifies that a new segment has been started. +// This is sent synchronously by any entity that will issue +// EC_END_OF_SEGMENT when a new segment is started +// (See IMediaSeeking::SetPositions - AM_SEEKING_Segment flag) +// It is used to compute how many EC_END_OF_SEGMENT notifications +// to expect at the end of a segment and as a consitency check + + +#define EC_LENGTH_CHANGED 0x1E +// (void, void) +// sent to indicate that the length of the "file" has changed + +#define EC_DEVICE_LOST 0x1f +// (IUnknown, 0) +// +// request window notification when the device is available again +// (through WM_DEVICECHANGED messages registered with +// RegisterDeviceNotification; see IAMDeviceRemoval interface) + +#define EC_SAMPLE_NEEDED 0x20 +// (PinID, 0) +// +// Indication that a sample is needed on the specified input pin +// of the filter in order to produce a new sample on the output. + +#define EC_PROCESSING_LATENCY 0x21 +// (const REFERENCE_TIME *pLatency, 0) +// +// Indication that the firing component is currently taking the specified +// amount of time to process a sample. + +#define EC_SAMPLE_LATENCY 0x22 +// (const REFERENCE_TIME *pLatency, 0) +// +// Indication that the firing component is that amount of time behind in +// processing samples coming in. A negative time indicates that the component +// is running ahead of schedule. + +#define EC_SCRUB_TIME 0x23 +// (DWORD, DWORD) +// To be sent immediately after the EC_STEP_COMPLETE notification +// when a step completes and the rate is 0. +// This is the timestamp of the frame that was displayed. +// lParam1 is the low DWORD of the time; lParam2 is the high DWORD + +#define EC_STEP_COMPLETE 0x24 +// (BOOL bCancelled, void) +// Step request complete +// if bCancelled is TRUE the step was cancelled. This can happen +// if the application issued some control request or because there +// was a mode change etc etc + +// Event code 25 is reserved for future use. + +#define EC_TIMECODE_AVAILABLE 0x30 +// Sent by filter supporting timecode +// Param1 has a pointer to the sending object +// Param2 has the device ID of the sending object + +#define EC_EXTDEVICE_MODE_CHANGE 0x31 +// Sent by filter supporting IAMExtDevice +// Param1 has the new mode +// Param2 has the device ID of the sending object + +#define EC_STATE_CHANGE 0x32 +// ( FILTER_STATE, BOOL bInternal) +// Used to notify the application of any state changes in the filter graph. +// lParam1 is of type enum FILTER_STATE (defined in strmif.h) and indicates +// the state of the filter graph. +// +// lParam2 == 0 indicates that the previous state change request has completed +// & a change in application state. +// lParam2 == 1 reserved for future use to indicate internal state changes. + + +#define EC_GRAPH_CHANGED 0x50 +// Sent by filter to notify interesting graph changes + +#define EC_CLOCK_UNSET 0x51 +// ( void, void ) : application +// Used to notify the filter graph to unset the current graph clock. +// Has the affect of forcing the filter graph to reestablish the graph clock +// on the next Pause/Run (note that this is only used by ksproxy, when the pin +// of a clock providing filter is disconnected) + +#define EC_VMR_RENDERDEVICE_SET 0x53 +// (Render_Device type, void) +// Identifies the type of rendering mechanism the VMR +// is using to display video. Types used include: +#define VMR_RENDER_DEVICE_OVERLAY 0x01 +#define VMR_RENDER_DEVICE_VIDMEM 0x02 +#define VMR_RENDER_DEVICE_SYSMEM 0x04 + + +#define EC_VMR_SURFACE_FLIPPED 0x54 +// (hr - Flip return code, void) +// Identifies the VMR's allocator-presenter has called the DDraw flip api on +// the surface being presented. This allows the VMR to keep its DX-VA table +// of DDraw surfaces in sync with DDraws flipping chain. + +#define EC_VMR_RECONNECTION_FAILED 0x55 +// (hr - ReceiveConnection return code, void) +// Identifies that an upstream decoder tried to perform a dynamic format +// change and the VMR was unable to accept the new format. + + +#define EC_PREPROCESS_COMPLETE 0x56 +// Sent by the WM ASF writer filter (WMSDK V9 version) to signal the completion +// of a pre-process run when running in multipass encode mode. +// Param1 = 0, Param2 = IBaseFilter ptr of sending filter + +#define EC_CODECAPI_EVENT 0x57 +// Sent by the Codec API when an event is encountered. Both the Data +// must be freed by the recipient using CoTaskMemFree +// Param1 = UserDataPointer, Param2 = VOID* Data + +//------------------------------------------ +// +// BDA events: +// +// Event code 0x80 through 0x8f are reserved for BDA +// + + +//------------------------------------------ +// +// WindowsMedia SDK filter-specific events: +// +// +// Note that for EC_WMT_EVENT events the wmsdk-based filters use the following structure for +// passing event parameters to the app: +#ifndef AM_WMT_EVENT_DATA_DEFINED +#define AM_WMT_EVENT_DATA_DEFINED +typedef struct { + HRESULT hrStatus; // status code + void * pData; // event data +} AM_WMT_EVENT_DATA; +#endif +// +#define EC_WMT_EVENT_BASE 0x0251 +// +#define EC_WMT_INDEX_EVENT EC_WMT_EVENT_BASE +// WindowsMedia SDK-originated file indexing status, sent by WMSDK-based filters +// +// lParam1 is one of the enum WMT_STATUS messages listed below, sent by the WindowsMedia SDK +// lParam2 is specific to the lParam event +// +// the following WMT_STATUS messages are sent for this event: +// WMT_STARTED - lParam2 is 0 +// WMT_CLOSED - lParam2 is 0 +// WMT_INDEX_PROGRESS - lParam2 is a DWORD containing the progress percent complete +// +#define EC_WMT_EVENT EC_WMT_EVENT_BASE+1 +// WindowsMedia SDK-originated event, sent by WMSDK-based filters +// +// lParam1 is one of the enum WMT_STATUS messages listed below, sent by the WindowsMedia SDK +// lParam2 is a pointer an AM_WMT_EVENT_DATA structure where, +// hrStatus is the status code sent by the wmsdk +// pData is specific to the lParam1 event +// +// the following WMT_STATUS messages are sent by the WMSDK Reader filter for this event: +// WMT_NO_RIGHTS - pData is a pointer to a WCHAR string containing a challenge URL +// WMT_ACQUIRE_LICENSE - lParam2 is a pointer to a WM_GET_LICENSE_DATA struct +// WMT_NO_RIGHTS_EX - lParam2 is a pointer to a WM_GET_LICENSE_DATA struct +// WMT_NEEDS_INDIVIDUALIZATION - lParam2 is NULL +// WMT_INDIVIDUALIZE - lParam2 is a pointer to a WM_INDIVIDUALIZE_STATUS struct +// the WMSDK (V9) ASF Writer filter will send this event in response to a wmsdk-signaled error during file +// writing, along with the wmsdk WMT_STATUS error as the lParam1 and hrStatus embedded in the +// AM_WMT_EVENT_DATA struct pointed to by the lParam2 pointer. +// +// end WMSDK-originated events +//----------------------------------------- + + +#define EC_BUILT 0x300 +// Sent to notify transition from unbuilt to built state + + +#define EC_UNBUILT 0x301 +// Sent to notify transtion from built to unbuilt state + + +//------------------------------------------------------------------------------------------------- +// +// Other miscellaneous events used by various componnents +// Published here to assist debugging +// +//------------------------------------------------------------------------------------------------- +#define EC_SKIP_FRAMES 0x25 +// ( nFramesToSkip, IFrameSkipResultCallback) +// Get the filter graph to skip nFramesToSkip and notify. + +#define EC_PLEASE_REOPEN 0x40 +// (void, void) : application +// Something has changed enough that the graph should be re-rendered. + +#define EC_STATUS 0x41 +// ( BSTR, BSTR) : application +// Two arbitrary strings, a short one and a long one. + +#define EC_MARKER_HIT 0x42 +// (int, void) : application +// The specified "marker #" has just been passed + +#define EC_LOADSTATUS 0x43 +// (int, void) : application +// Sent when various points during the loading of a network file are reached + +#define EC_FILE_CLOSED 0x44 +// (void, void) : application +// Sent when the file is involuntarily closed, i.e. by a network server shutdown + +#define EC_ERRORABORTEX 0x45 +// ( HRESULT, BSTR ) : application +// Operation aborted because of error. Additional information available. + +// status codes for EC_LOADSTATUS.... +#define AM_LOADSTATUS_CLOSED 0x0000 +#define AM_LOADSTATUS_LOADINGDESCR 0x0001 +#define AM_LOADSTATUS_LOADINGMCAST 0x0002 +#define AM_LOADSTATUS_LOCATING 0x0003 +#define AM_LOADSTATUS_CONNECTING 0x0004 +#define AM_LOADSTATUS_OPENING 0x0005 +#define AM_LOADSTATUS_OPEN 0x0006 + + +#define EC_NEW_PIN 0x20 +#define EC_RENDER_FINISHED 0x21 + + +#define EC_EOS_SOON 0x046 +// (void, void) : application +// sent when the source filter is about to deliver an EOS downstream.... + +#define EC_CONTENTPROPERTY_CHANGED 0x47 +// (ULONG, void) +// Sent when a streaming media filter recieves a change in stream description information. +// the UI is expected to re-query for the changed property in response +#define AM_CONTENTPROPERTY_TITLE 0x0001 +#define AM_CONTENTPROPERTY_AUTHOR 0x0002 +#define AM_CONTENTPROPERTY_COPYRIGHT 0x0004 +#define AM_CONTENTPROPERTY_DESCRIPTION 0x0008 + + +#define EC_BANDWIDTHCHANGE 0x48 +// (WORD, long) : application +// sent when the bandwidth of the streaming data has changed. First parameter +// is the new level of bandwidth. Second is the MAX number of levels. Second +// parameter may be 0, if the max levels could not be determined. + +#define EC_VIDEOFRAMEREADY 0x49 +// (void, void) : application +// sent to notify the application that the first video frame is about to be drawn + + + +#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ +#pragma endregion +