Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +1 -0
- miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/Microsoft.VisualStudio.Telemetry.dll +3 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DXGIMessages.h +351 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DXProgrammableCapture.h +44 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DtcHelp.h +236 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DvbSiParser.h +0 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DvbSiParser.idl +2882 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EapAuthenticatorActionDefine.h +104 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EapHostError.h +355 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EapHostPeerTypes.h +158 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EditionUpgradeHelper.h +776 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EditionUpgradeHelper.idl +169 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ElsCore.h +212 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ElsSrvc.h +56 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EmptyVC.h +575 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ErrorRep.h +78 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dv.h +67 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dvdevcod.h +427 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dvdif.idl +0 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dvdmedia.h +455 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dvp.h +977 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwmapi.h +698 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwrite.h +0 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwrite_1.h +1926 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwrite_2.h +980 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwrite_3.h +0 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dx95type.h +789 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxcapi.h +1218 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxcore.h +42 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxcore_interface.h +497 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxdiag.h +196 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxgiddi.h +1042 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxgidebug.h +1054 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxgidebug.idl +456 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxmini.h +356 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxtmpl.h +1353 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva.h +0 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva2api.h +2016 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva2api.idl +1039 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva2swdev.h +183 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva2trace.h +163 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva9typ.h +1009 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxvahd.h +1168 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxvahd.idl +818 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dyngraph.idl +327 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eapauthenticatortypes.h +82 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eaphostpeerconfigapis.h +332 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eapmethodauthenticatorapis.h +448 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eapmethodpeerapis.h +1028 -0
- miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eapmethodtypes.h +67 -0
.gitattributes
CHANGED
|
@@ -126,3 +126,4 @@ miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/c2.dll filter=lfs diff=lfs me
|
|
| 126 |
miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/dpcmi.dll filter=lfs diff=lfs merge=lfs -text
|
| 127 |
miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/c1xx.dll filter=lfs diff=lfs merge=lfs -text
|
| 128 |
miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/link.exe filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 126 |
miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/dpcmi.dll filter=lfs diff=lfs merge=lfs -text
|
| 127 |
miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/c1xx.dll filter=lfs diff=lfs merge=lfs -text
|
| 128 |
miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/link.exe filter=lfs diff=lfs merge=lfs -text
|
| 129 |
+
miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/Microsoft.VisualStudio.Telemetry.dll filter=lfs diff=lfs merge=lfs -text
|
miniMSVC/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/Microsoft.VisualStudio.Telemetry.dll
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (C) Microsoft Corporation. All Rights Reserved.
|
| 3 |
+
*
|
| 4 |
+
* File: DXGIMessages.h
|
| 5 |
+
* Content: DXGI Debug Message Enumeration
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
#ifdef _MSC_VER
|
| 9 |
+
#pragma once
|
| 10 |
+
#endif // _MSC_VER
|
| 11 |
+
|
| 12 |
+
#if NTDDI_VERSION >= NTDDI_WIN7
|
| 13 |
+
|
| 14 |
+
typedef enum
|
| 15 |
+
{
|
| 16 |
+
DXGI_MSG_IDXGISwapChain_CreationOrResizeBuffers_InvalidOutputWindow = 0,
|
| 17 |
+
DXGI_MSG_IDXGISwapChain_CreationOrResizeBuffers_BufferWidthInferred,
|
| 18 |
+
DXGI_MSG_IDXGISwapChain_CreationOrResizeBuffers_BufferHeightInferred,
|
| 19 |
+
DXGI_MSG_IDXGISwapChain_CreationOrResizeBuffers_NoScanoutFlagChanged,
|
| 20 |
+
DXGI_MSG_IDXGISwapChain_Creation_MaxBufferCountExceeded,
|
| 21 |
+
DXGI_MSG_IDXGISwapChain_Creation_TooFewBuffers,
|
| 22 |
+
DXGI_MSG_IDXGISwapChain_Creation_NoOutputWindow,
|
| 23 |
+
DXGI_MSG_IDXGISwapChain_Destruction_OtherMethodsCalled,
|
| 24 |
+
DXGI_MSG_IDXGISwapChain_GetDesc_pDescIsNULL,
|
| 25 |
+
DXGI_MSG_IDXGISwapChain_GetBuffer_ppSurfaceIsNULL,
|
| 26 |
+
DXGI_MSG_IDXGISwapChain_GetBuffer_NoAllocatedBuffers,
|
| 27 |
+
DXGI_MSG_IDXGISwapChain_GetBuffer_iBufferMustBeZero,
|
| 28 |
+
DXGI_MSG_IDXGISwapChain_GetBuffer_iBufferOOB,
|
| 29 |
+
DXGI_MSG_IDXGISwapChain_GetContainingOutput_ppOutputIsNULL,
|
| 30 |
+
DXGI_MSG_IDXGISwapChain_Present_SyncIntervalOOB,
|
| 31 |
+
DXGI_MSG_IDXGISwapChain_Present_InvalidNonPreRotatedFlag,
|
| 32 |
+
DXGI_MSG_IDXGISwapChain_Present_NoAllocatedBuffers,
|
| 33 |
+
DXGI_MSG_IDXGISwapChain_Present_GetDXGIAdapterFailed,
|
| 34 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers_BufferCountOOB,
|
| 35 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers_UnreleasedReferences,
|
| 36 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers_InvalidSwapChainFlag,
|
| 37 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers_InvalidNonPreRotatedFlag,
|
| 38 |
+
DXGI_MSG_IDXGISwapChain_ResizeTarget_RefreshRateDivideByZero,
|
| 39 |
+
DXGI_MSG_IDXGISwapChain_SetFullscreenState_InvalidTarget,
|
| 40 |
+
DXGI_MSG_IDXGISwapChain_GetFrameStatistics_pStatsIsNULL,
|
| 41 |
+
DXGI_MSG_IDXGISwapChain_GetLastPresentCount_pLastPresentCountIsNULL,
|
| 42 |
+
DXGI_MSG_IDXGISwapChain_SetFullscreenState_RemoteNotSupported,
|
| 43 |
+
DXGI_MSG_IDXGIOutput_TakeOwnership_FailedToAcquireFullscreenMutex,
|
| 44 |
+
DXGI_MSG_IDXGIFactory_CreateSoftwareAdapter_ppAdapterInterfaceIsNULL,
|
| 45 |
+
DXGI_MSG_IDXGIFactory_EnumAdapters_ppAdapterInterfaceIsNULL,
|
| 46 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_ppSwapChainIsNULL,
|
| 47 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_pDescIsNULL,
|
| 48 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_UnknownSwapEffect,
|
| 49 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_InvalidFlags,
|
| 50 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_NonPreRotatedFlagAndWindowed,
|
| 51 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_NullDeviceInterface,
|
| 52 |
+
DXGI_MSG_IDXGIFactory_GetWindowAssociation_phWndIsNULL,
|
| 53 |
+
DXGI_MSG_IDXGIFactory_MakeWindowAssociation_InvalidFlags,
|
| 54 |
+
DXGI_MSG_IDXGISurface_Map_InvalidSurface,
|
| 55 |
+
DXGI_MSG_IDXGISurface_Map_FlagsSetToZero,
|
| 56 |
+
DXGI_MSG_IDXGISurface_Map_DiscardAndReadFlagSet,
|
| 57 |
+
DXGI_MSG_IDXGISurface_Map_DiscardButNotWriteFlagSet,
|
| 58 |
+
DXGI_MSG_IDXGISurface_Map_NoCPUAccess,
|
| 59 |
+
DXGI_MSG_IDXGISurface_Map_ReadFlagSetButCPUAccessIsDynamic,
|
| 60 |
+
DXGI_MSG_IDXGISurface_Map_DiscardFlagSetButCPUAccessIsNotDynamic,
|
| 61 |
+
DXGI_MSG_IDXGIOutput_GetDisplayModeList_pNumModesIsNULL,
|
| 62 |
+
DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_ModeHasInvalidWidthOrHeight,
|
| 63 |
+
DXGI_MSG_IDXGIOutput_GetCammaControlCapabilities_NoOwnerDevice,
|
| 64 |
+
DXGI_MSG_IDXGIOutput_TakeOwnership_pDeviceIsNULL,
|
| 65 |
+
DXGI_MSG_IDXGIOutput_GetDisplaySurfaceData_NoOwnerDevice,
|
| 66 |
+
DXGI_MSG_IDXGIOutput_GetDisplaySurfaceData_pDestinationIsNULL,
|
| 67 |
+
DXGI_MSG_IDXGIOutput_GetDisplaySurfaceData_MapOfDestinationFailed,
|
| 68 |
+
DXGI_MSG_IDXGIOutput_GetFrameStatistics_NoOwnerDevice,
|
| 69 |
+
DXGI_MSG_IDXGIOutput_GetFrameStatistics_pStatsIsNULL,
|
| 70 |
+
DXGI_MSG_IDXGIOutput_SetGammaControl_NoOwnerDevice,
|
| 71 |
+
DXGI_MSG_IDXGIOutput_GetGammaControl_NoOwnerDevice,
|
| 72 |
+
DXGI_MSG_IDXGIOutput_GetGammaControl_NoGammaControls,
|
| 73 |
+
DXGI_MSG_IDXGIOutput_SetDisplaySurface_IDXGIResourceNotSupportedBypPrimary,
|
| 74 |
+
DXGI_MSG_IDXGIOutput_SetDisplaySurface_pPrimaryIsInvalid,
|
| 75 |
+
DXGI_MSG_IDXGIOutput_SetDisplaySurface_NoOwnerDevice,
|
| 76 |
+
DXGI_MSG_IDXGIOutput_TakeOwnership_RemoteDeviceNotSupported,
|
| 77 |
+
DXGI_MSG_IDXGIOutput_GetDisplayModeList_RemoteDeviceNotSupported,
|
| 78 |
+
DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_RemoteDeviceNotSupported,
|
| 79 |
+
DXGI_MSG_IDXGIDevice_CreateSurface_InvalidParametersWithpSharedResource,
|
| 80 |
+
DXGI_MSG_IDXGIObject_GetPrivateData_puiDataSizeIsNULL,
|
| 81 |
+
DXGI_MSG_IDXGISwapChain_Creation_InvalidOutputWindow,
|
| 82 |
+
DXGI_MSG_IDXGISwapChain_Release_SwapChainIsFullscreen,
|
| 83 |
+
DXGI_MSG_IDXGIOutput_GetDisplaySurfaceData_InvalidTargetSurfaceFormat,
|
| 84 |
+
DXGI_MSG_IDXGIFactory_CreateSoftwareAdapter_ModuleIsNULL,
|
| 85 |
+
DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_IDXGIDeviceNotSupportedBypConcernedDevice,
|
| 86 |
+
DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_pModeToMatchOrpClosestMatchIsNULL,
|
| 87 |
+
DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_ModeHasRefreshRateDenominatorZero,
|
| 88 |
+
DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_UnknownFormatIsInvalidForConfiguration,
|
| 89 |
+
DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_InvalidDisplayModeScanlineOrdering,
|
| 90 |
+
DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_InvalidDisplayModeScaling,
|
| 91 |
+
DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_InvalidDisplayModeFormatAndDeviceCombination,
|
| 92 |
+
DXGI_MSG_IDXGIFactory_Creation_CalledFromDllMain,
|
| 93 |
+
DXGI_MSG_IDXGISwapChain_SetFullscreenState_OutputNotOwnedBySwapChainDevice,
|
| 94 |
+
DXGI_MSG_IDXGISwapChain_Creation_InvalidWindowStyle,
|
| 95 |
+
DXGI_MSG_IDXGISwapChain_GetFrameStatistics_UnsupportedStatistics,
|
| 96 |
+
DXGI_MSG_IDXGISwapChain_GetContainingOutput_SwapchainAdapterDoesNotControlOutput,
|
| 97 |
+
DXGI_MSG_IDXGIOutput_SetOrGetGammaControl_pArrayIsNULL,
|
| 98 |
+
DXGI_MSG_IDXGISwapChain_SetFullscreenState_FullscreenInvalidForChildWindows,
|
| 99 |
+
DXGI_MSG_IDXGIFactory_Release_CalledFromDllMain,
|
| 100 |
+
DXGI_MSG_IDXGISwapChain_Present_UnreleasedHDC,
|
| 101 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers_NonPreRotatedAndGDICompatibleFlags,
|
| 102 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_NonPreRotatedAndGDICompatibleFlags,
|
| 103 |
+
DXGI_MSG_IDXGISurface1_GetDC_pHdcIsNULL,
|
| 104 |
+
DXGI_MSG_IDXGISurface1_GetDC_SurfaceNotTexture2D,
|
| 105 |
+
DXGI_MSG_IDXGISurface1_GetDC_GDICompatibleFlagNotSet,
|
| 106 |
+
DXGI_MSG_IDXGISurface1_GetDC_UnreleasedHDC,
|
| 107 |
+
DXGI_MSG_IDXGISurface_Map_NoCPUAccess2,
|
| 108 |
+
DXGI_MSG_IDXGISurface1_ReleaseDC_GetDCNotCalled,
|
| 109 |
+
DXGI_MSG_IDXGISurface1_ReleaseDC_InvalidRectangleDimensions,
|
| 110 |
+
DXGI_MSG_IDXGIOutput_TakeOwnership_RemoteOutputNotSupported,
|
| 111 |
+
DXGI_MSG_IDXGIOutput_FindClosestMatchingMode_RemoteOutputNotSupported,
|
| 112 |
+
DXGI_MSG_IDXGIOutput_GetDisplayModeList_RemoteOutputNotSupported,
|
| 113 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_pDeviceHasMismatchedDXGIFactory,
|
| 114 |
+
DXGI_MSG_IDXGISwapChain_Present_NonOptimalFSConfiguration,
|
| 115 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_FlipSequentialNotSupportedOnD3D10,
|
| 116 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_BufferCountOOBForFlipSequential,
|
| 117 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_InvalidFormatForFlipSequential,
|
| 118 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_MultiSamplingNotSupportedForFlipSequential,
|
| 119 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers_BufferCountOOBForFlipSequential,
|
| 120 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers_InvalidFormatForFlipSequential,
|
| 121 |
+
DXGI_MSG_IDXGISwapChain_Present_PartialPresentationBeforeStandardPresentation,
|
| 122 |
+
DXGI_MSG_IDXGISwapChain_Present_FullscreenPartialPresentIsInvalid,
|
| 123 |
+
DXGI_MSG_IDXGISwapChain_Present_InvalidPresentTestOrDoNotSequenceFlag,
|
| 124 |
+
DXGI_MSG_IDXGISwapChain_Present_ScrollInfoWithNoDirtyRectsSpecified,
|
| 125 |
+
DXGI_MSG_IDXGISwapChain_Present_EmptyScrollRect,
|
| 126 |
+
DXGI_MSG_IDXGISwapChain_Present_ScrollRectOutOfBackbufferBounds,
|
| 127 |
+
DXGI_MSG_IDXGISwapChain_Present_ScrollRectOutOfBackbufferBoundsWithOffset,
|
| 128 |
+
DXGI_MSG_IDXGISwapChain_Present_EmptyDirtyRect,
|
| 129 |
+
DXGI_MSG_IDXGISwapChain_Present_DirtyRectOutOfBackbufferBounds,
|
| 130 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_UnsupportedBufferUsageFlags,
|
| 131 |
+
DXGI_MSG_IDXGISwapChain_Present_DoNotSequenceFlagSetButPreviousBufferIsUndefined,
|
| 132 |
+
DXGI_MSG_IDXGISwapChain_Present_UnsupportedFlags,
|
| 133 |
+
DXGI_MSG_IDXGISwapChain_Present_FlipModelChainMustResizeOrCreateOnFSTransition,
|
| 134 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_pRestrictToOutputFromOtherIDXGIFactory,
|
| 135 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_RestrictOutputNotSupportedOnAdapter,
|
| 136 |
+
DXGI_MSG_IDXGISwapChain_Present_RestrictToOutputFlagSetButInvalidpRestrictToOutput,
|
| 137 |
+
DXGI_MSG_IDXGISwapChain_Present_RestrictToOutputFlagdWithFullscreen,
|
| 138 |
+
DXGI_MSG_IDXGISwapChain_Present_RestrictOutputFlagWithStaleSwapChain,
|
| 139 |
+
DXGI_MSG_IDXGISwapChain_Present_OtherFlagsCausingInvalidPresentTestFlag,
|
| 140 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_UnavailableInSession0,
|
| 141 |
+
DXGI_MSG_IDXGIFactory_MakeWindowAssociation_UnavailableInSession0,
|
| 142 |
+
DXGI_MSG_IDXGIFactory_GetWindowAssociation_UnavailableInSession0,
|
| 143 |
+
DXGI_MSG_IDXGIAdapter_EnumOutputs_UnavailableInSession0,
|
| 144 |
+
DXGI_MSG_IDXGISwapChain_CreationOrSetFullscreenState_StereoDisabled,
|
| 145 |
+
DXGI_MSG_IDXGIFactory2_UnregisterStatus_CookieNotFound,
|
| 146 |
+
DXGI_MSG_IDXGISwapChain_Present_ProtectedContentInWindowedModeWithoutFSOrOverlay,
|
| 147 |
+
DXGI_MSG_IDXGISwapChain_Present_ProtectedContentInWindowedModeWithoutFlipSequential,
|
| 148 |
+
DXGI_MSG_IDXGISwapChain_Present_ProtectedContentWithRDPDriver,
|
| 149 |
+
DXGI_MSG_IDXGISwapChain_Present_ProtectedContentInWindowedModeWithDWMOffOrInvalidDisplayAffinity,
|
| 150 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChainForComposition_WidthOrHeightIsZero,
|
| 151 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChainForComposition_OnlyFlipSequentialSupported,
|
| 152 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChainForComposition_UnsupportedOnAdapter,
|
| 153 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChainForComposition_UnsupportedOnWindows7,
|
| 154 |
+
DXGI_MSG_IDXGISwapChain_SetFullscreenState_FSTransitionWithCompositionSwapChain,
|
| 155 |
+
DXGI_MSG_IDXGISwapChain_ResizeTarget_InvalidWithCompositionSwapChain,
|
| 156 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers_WidthOrHeightIsZero,
|
| 157 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_ScalingNoneIsFlipModelOnly,
|
| 158 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_ScalingUnrecognized,
|
| 159 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_DisplayOnlyFullscreenUnsupported,
|
| 160 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_DisplayOnlyUnsupported,
|
| 161 |
+
DXGI_MSG_IDXGISwapChain_Present_RestartIsFullscreenOnly,
|
| 162 |
+
DXGI_MSG_IDXGISwapChain_Present_ProtectedWindowlessPresentationRequiresDisplayOnly,
|
| 163 |
+
DXGI_MSG_IDXGISwapChain_SetFullscreenState_DisplayOnlyUnsupported,
|
| 164 |
+
DXGI_MSG_IDXGISwapChain1_SetBackgroundColor_OutOfRange,
|
| 165 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers_DisplayOnlyFullscreenUnsupported,
|
| 166 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers_DisplayOnlyUnsupported,
|
| 167 |
+
DXGI_MSG_IDXGISwapchain_Present_ScrollUnsupported,
|
| 168 |
+
DXGI_MSG_IDXGISwapChain1_SetRotation_UnsupportedOS,
|
| 169 |
+
DXGI_MSG_IDXGISwapChain1_GetRotation_UnsupportedOS,
|
| 170 |
+
DXGI_MSG_IDXGISwapchain_Present_FullscreenRotation,
|
| 171 |
+
DXGI_MSG_IDXGISwapChain_Present_PartialPresentationWithMSAABuffers,
|
| 172 |
+
DXGI_MSG_IDXGISwapChain1_SetRotation_FlipSequentialRequired,
|
| 173 |
+
DXGI_MSG_IDXGISwapChain1_SetRotation_InvalidRotation,
|
| 174 |
+
DXGI_MSG_IDXGISwapChain1_GetRotation_FlipSequentialRequired,
|
| 175 |
+
DXGI_MSG_IDXGISwapChain_GetHwnd_WrongType,
|
| 176 |
+
DXGI_MSG_IDXGISwapChain_GetCompositionSurface_WrongType,
|
| 177 |
+
DXGI_MSG_IDXGISwapChain_GetCoreWindow_WrongType,
|
| 178 |
+
DXGI_MSG_IDXGISwapChain_GetFullscreenDesc_NonHwnd,
|
| 179 |
+
DXGI_MSG_IDXGISwapChain_SetFullscreenState_CoreWindow,
|
| 180 |
+
DXGI_MSG_IDXGIFactory2_CreateSwapChainForCoreWindow_UnsupportedOnWindows7,
|
| 181 |
+
DXGI_MSG_IDXGIFactory2_CreateSwapChainForCoreWindow_pWindowIsNULL,
|
| 182 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_FSUnsupportedForModernApps,
|
| 183 |
+
DXGI_MSG_IDXGIFactory_MakeWindowAssociation_ModernApp,
|
| 184 |
+
DXGI_MSG_IDXGISwapChain_ResizeTarget_ModernApp,
|
| 185 |
+
DXGI_MSG_IDXGISwapChain_ResizeTarget_pNewTargetParametersIsNULL,
|
| 186 |
+
DXGI_MSG_IDXGIOutput_SetDisplaySurface_ModernApp,
|
| 187 |
+
DXGI_MSG_IDXGIOutput_TakeOwnership_ModernApp,
|
| 188 |
+
DXGI_MSG_IDXGIFactory2_CreateSwapChainForCoreWindow_pWindowIsInvalid,
|
| 189 |
+
DXGI_MSG_IDXGIFactory2_CreateSwapChainForCompositionSurface_InvalidHandle,
|
| 190 |
+
DXGI_MSG_IDXGISurface1_GetDC_ModernApp,
|
| 191 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_ScalingNoneRequiresWindows8OrNewer,
|
| 192 |
+
DXGI_MSG_IDXGISwapChain_Present_TemporaryMonoAndPreferRight,
|
| 193 |
+
DXGI_MSG_IDXGISwapChain_Present_TemporaryMonoOrPreferRightWithDoNotSequence,
|
| 194 |
+
DXGI_MSG_IDXGISwapChain_Present_TemporaryMonoOrPreferRightWithoutStereo,
|
| 195 |
+
DXGI_MSG_IDXGISwapChain_Present_TemporaryMonoUnsupported,
|
| 196 |
+
DXGI_MSG_IDXGIOutput_GetDisplaySurfaceData_ArraySizeMismatch,
|
| 197 |
+
DXGI_MSG_IDXGISwapChain_Present_PartialPresentationWithSwapEffectDiscard,
|
| 198 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_AlphaUnrecognized,
|
| 199 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_AlphaIsWindowlessOnly,
|
| 200 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_AlphaIsFlipModelOnly,
|
| 201 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_RestrictToOutputAdapterMismatch,
|
| 202 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_DisplayOnlyOnLegacy,
|
| 203 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers_DisplayOnlyOnLegacy,
|
| 204 |
+
DXGI_MSG_IDXGIResource1_CreateSubresourceSurface_InvalidIndex,
|
| 205 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChainForComposition_InvalidScaling,
|
| 206 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChainForCoreWindow_InvalidSwapEffect,
|
| 207 |
+
DXGI_MSG_IDXGIResource1_CreateSharedHandle_UnsupportedOS,
|
| 208 |
+
DXGI_MSG_IDXGIFactory2_RegisterOcclusionStatusWindow_UnsupportedOS,
|
| 209 |
+
DXGI_MSG_IDXGIFactory2_RegisterOcclusionStatusEvent_UnsupportedOS,
|
| 210 |
+
DXGI_MSG_IDXGIOutput1_DuplicateOutput_UnsupportedOS,
|
| 211 |
+
DXGI_MSG_IDXGIDisplayControl_IsStereoEnabled_UnsupportedOS,
|
| 212 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChainForComposition_InvalidAlphaMode,
|
| 213 |
+
DXGI_MSG_IDXGIFactory_GetSharedResourceAdapterLuid_InvalidResource,
|
| 214 |
+
DXGI_MSG_IDXGIFactory_GetSharedResourceAdapterLuid_InvalidLUID,
|
| 215 |
+
DXGI_MSG_IDXGIFactory_GetSharedResourceAdapterLuid_UnsupportedOS,
|
| 216 |
+
DXGI_MSG_IDXGIOutput1_GetDisplaySurfaceData1_2DOnly,
|
| 217 |
+
DXGI_MSG_IDXGIOutput1_GetDisplaySurfaceData1_StagingOnly,
|
| 218 |
+
DXGI_MSG_IDXGIOutput1_GetDisplaySurfaceData1_NeedCPUAccessWrite,
|
| 219 |
+
DXGI_MSG_IDXGIOutput1_GetDisplaySurfaceData1_NoShared,
|
| 220 |
+
DXGI_MSG_IDXGIOutput1_GetDisplaySurfaceData1_OnlyMipLevels1,
|
| 221 |
+
DXGI_MSG_IDXGIOutput1_GetDisplaySurfaceData1_MappedOrOfferedResource,
|
| 222 |
+
DXGI_MSG_IDXGISwapChain_SetFullscreenState_FSUnsupportedForModernApps,
|
| 223 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_FailedToGoFSButNonPreRotated,
|
| 224 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChainOrRegisterOcclusionStatus_BlitModelUsedWhileRegisteredForOcclusionStatusEvents,
|
| 225 |
+
DXGI_MSG_IDXGISwapChain_Present_BlitModelUsedWhileRegisteredForOcclusionStatusEvents,
|
| 226 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_WaitableSwapChainsAreFlipModelOnly,
|
| 227 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_WaitableSwapChainsAreNotFullscreen,
|
| 228 |
+
DXGI_MSG_IDXGISwapChain_SetFullscreenState_Waitable,
|
| 229 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers_CannotAddOrRemoveWaitableFlag,
|
| 230 |
+
DXGI_MSG_IDXGISwapChain_GetFrameLatencyWaitableObject_OnlyWaitable,
|
| 231 |
+
DXGI_MSG_IDXGISwapChain_GetMaximumFrameLatency_OnlyWaitable,
|
| 232 |
+
DXGI_MSG_IDXGISwapChain_GetMaximumFrameLatency_pMaxLatencyIsNULL,
|
| 233 |
+
DXGI_MSG_IDXGISwapChain_SetMaximumFrameLatency_OnlyWaitable,
|
| 234 |
+
DXGI_MSG_IDXGISwapChain_SetMaximumFrameLatency_MaxLatencyIsOutOfBounds,
|
| 235 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_ForegroundIsCoreWindowOnly,
|
| 236 |
+
DXGI_MSG_IDXGIFactory2_CreateSwapChainForCoreWindow_ForegroundUnsupportedOnAdapter,
|
| 237 |
+
DXGI_MSG_IDXGIFactory2_CreateSwapChainForCoreWindow_InvalidScaling,
|
| 238 |
+
DXGI_MSG_IDXGIFactory2_CreateSwapChainForCoreWindow_InvalidAlphaMode,
|
| 239 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers_CannotAddOrRemoveForegroundFlag,
|
| 240 |
+
DXGI_MSG_IDXGISwapChain_SetMatrixTransform_MatrixPointerCannotBeNull,
|
| 241 |
+
DXGI_MSG_IDXGISwapChain_SetMatrixTransform_RequiresCompositionSwapChain,
|
| 242 |
+
DXGI_MSG_IDXGISwapChain_SetMatrixTransform_MatrixMustBeFinite,
|
| 243 |
+
DXGI_MSG_IDXGISwapChain_SetMatrixTransform_MatrixMustBeTranslateAndOrScale,
|
| 244 |
+
DXGI_MSG_IDXGISwapChain_GetMatrixTransform_MatrixPointerCannotBeNull,
|
| 245 |
+
DXGI_MSG_IDXGISwapChain_GetMatrixTransform_RequiresCompositionSwapChain,
|
| 246 |
+
DXGI_MSG_DXGIGetDebugInterface1_NULL_ppDebug,
|
| 247 |
+
DXGI_MSG_DXGIGetDebugInterface1_InvalidFlags,
|
| 248 |
+
DXGI_MSG_IDXGISwapChain_Present_Decode,
|
| 249 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers_Decode,
|
| 250 |
+
DXGI_MSG_IDXGISwapChain_SetSourceSize_FlipModel,
|
| 251 |
+
DXGI_MSG_IDXGISwapChain_SetSourceSize_Decode,
|
| 252 |
+
DXGI_MSG_IDXGISwapChain_SetSourceSize_WidthHeight,
|
| 253 |
+
DXGI_MSG_IDXGISwapChain_GetSourceSize_NullPointers,
|
| 254 |
+
DXGI_MSG_IDXGISwapChain_GetSourceSize_Decode,
|
| 255 |
+
DXGI_MSG_IDXGIDecodeSwapChain_SetColorSpace_InvalidFlags,
|
| 256 |
+
DXGI_MSG_IDXGIDecodeSwapChain_SetSourceRect_InvalidRect,
|
| 257 |
+
DXGI_MSG_IDXGIDecodeSwapChain_SetTargetRect_InvalidRect,
|
| 258 |
+
DXGI_MSG_IDXGIDecodeSwapChain_SetDestSize_InvalidSize,
|
| 259 |
+
DXGI_MSG_IDXGIDecodeSwapChain_GetSourceRect_InvalidPointer,
|
| 260 |
+
DXGI_MSG_IDXGIDecodeSwapChain_GetTargetRect_InvalidPointer,
|
| 261 |
+
DXGI_MSG_IDXGIDecodeSwapChain_GetDestSize_InvalidPointer,
|
| 262 |
+
DXGI_MSG_IDXGISwapChain_PresentBuffer_YUV,
|
| 263 |
+
DXGI_MSG_IDXGISwapChain_SetSourceSize_YUV,
|
| 264 |
+
DXGI_MSG_IDXGISwapChain_GetSourceSize_YUV,
|
| 265 |
+
DXGI_MSG_IDXGISwapChain_SetMatrixTransform_YUV,
|
| 266 |
+
DXGI_MSG_IDXGISwapChain_GetMatrixTransform_YUV,
|
| 267 |
+
DXGI_MSG_IDXGISwapChain_Present_PartialPresentation_YUV,
|
| 268 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers_CannotAddOrRemoveFlag_YUV,
|
| 269 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers_Alignment_YUV,
|
| 270 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_ShaderInputUnsupported_YUV,
|
| 271 |
+
DXGI_MSG_IDXGIOutput3_CheckOverlaySupport_NullPointers,
|
| 272 |
+
DXGI_MSG_IDXGIOutput3_CheckOverlaySupport_IDXGIDeviceNotSupportedBypConcernedDevice,
|
| 273 |
+
DXGI_MSG_IDXGIAdapter_EnumOutputs2_InvalidEnumOutputs2Flag,
|
| 274 |
+
DXGI_MSG_IDXGISwapChain_CreationOrSetFullscreenState_FSUnsupportedForFlipDiscard,
|
| 275 |
+
DXGI_MSG_IDXGIOutput4_CheckOverlayColorSpaceSupport_NullPointers,
|
| 276 |
+
DXGI_MSG_IDXGIOutput4_CheckOverlayColorSpaceSupport_IDXGIDeviceNotSupportedBypConcernedDevice,
|
| 277 |
+
DXGI_MSG_IDXGISwapChain3_CheckColorSpaceSupport_NullPointers,
|
| 278 |
+
DXGI_MSG_IDXGISwapChain3_SetColorSpace1_InvalidColorSpace,
|
| 279 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_InvalidHwProtect,
|
| 280 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_HwProtectUnsupported,
|
| 281 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers_InvalidHwProtect,
|
| 282 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers_HwProtectUnsupported,
|
| 283 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers1_D3D12Only,
|
| 284 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers1_FlipModel,
|
| 285 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers1_NodeMaskAndQueueRequired,
|
| 286 |
+
DXGI_MSG_IDXGISwapChain_CreateSwapChain_InvalidHwProtectGdiFlag,
|
| 287 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers_InvalidHwProtectGdiFlag,
|
| 288 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_10BitFormatNotSupported,
|
| 289 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_FlipSwapEffectRequired,
|
| 290 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_InvalidDevice,
|
| 291 |
+
DXGI_MSG_IDXGIOutput_TakeOwnership_Unsupported,
|
| 292 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_InvalidQueue,
|
| 293 |
+
DXGI_MSG_IDXGISwapChain3_ResizeBuffers1_InvalidQueue,
|
| 294 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChainForHwnd_InvalidScaling,
|
| 295 |
+
DXGI_MSG_IDXGISwapChain3_SetHDRMetaData_InvalidSize,
|
| 296 |
+
DXGI_MSG_IDXGISwapChain3_SetHDRMetaData_InvalidPointer,
|
| 297 |
+
DXGI_MSG_IDXGISwapChain3_SetHDRMetaData_InvalidType,
|
| 298 |
+
DXGI_MSG_IDXGISwapChain_Present_FullscreenAllowTearingIsInvalid,
|
| 299 |
+
DXGI_MSG_IDXGISwapChain_Present_AllowTearingRequiresPresentIntervalZero,
|
| 300 |
+
DXGI_MSG_IDXGISwapChain_Present_AllowTearingRequiresCreationFlag,
|
| 301 |
+
DXGI_MSG_IDXGISwapChain_ResizeBuffers_CannotAddOrRemoveAllowTearingFlag,
|
| 302 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_AllowTearingFlagIsFlipModelOnly,
|
| 303 |
+
DXGI_MSG_IDXGIFactory_CheckFeatureSupport_InvalidFeature,
|
| 304 |
+
DXGI_MSG_IDXGIFactory_CheckFeatureSupport_InvalidSize,
|
| 305 |
+
DXGI_MSG_IDXGIOutput6_CheckHardwareCompositionSupport_NullPointer,
|
| 306 |
+
DXGI_MSG_IDXGISwapChain_SetFullscreenState_PerMonitorDpiShimApplied,
|
| 307 |
+
DXGI_MSG_IDXGIOutput_DuplicateOutput_PerMonitorDpiShimApplied,
|
| 308 |
+
DXGI_MSG_IDXGIOutput_DuplicateOutput1_PerMonitorDpiRequired,
|
| 309 |
+
DXGI_MSG_IDXGIFactory7_UnregisterAdaptersChangedEvent_CookieNotFound,
|
| 310 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_LegacyBltModelSwapEffect,
|
| 311 |
+
DXGI_MSG_IDXGISwapChain4_SetHDRMetaData_MetadataUnchanged,
|
| 312 |
+
DXGI_MSG_IDXGISwapChain_Present_11On12_Released_Resource,
|
| 313 |
+
DXGI_MSG_IDXGIFactory_CreateSwapChain_MultipleSwapchainRefToSurface_DeferredDtr,
|
| 314 |
+
DXGI_MSG_IDXGIFactory_MakeWindowAssociation_NoOpBehavior,
|
| 315 |
+
|
| 316 |
+
DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_NotForegroundWindow = 1000,
|
| 317 |
+
DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_DISCARD_BufferCount,
|
| 318 |
+
DXGI_MSG_Phone_IDXGISwapChain_SetFullscreenState_NotAvailable,
|
| 319 |
+
DXGI_MSG_Phone_IDXGISwapChain_ResizeBuffers_NotAvailable,
|
| 320 |
+
DXGI_MSG_Phone_IDXGISwapChain_ResizeTarget_NotAvailable,
|
| 321 |
+
DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidLayerIndex,
|
| 322 |
+
DXGI_MSG_Phone_IDXGISwapChain_Present_MultipleLayerIndex,
|
| 323 |
+
DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidLayerFlag,
|
| 324 |
+
DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidRotation,
|
| 325 |
+
DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidBlend,
|
| 326 |
+
DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidResource,
|
| 327 |
+
DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidMultiPlaneOverlayResource,
|
| 328 |
+
DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidIndexForPrimary,
|
| 329 |
+
DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidIndexForOverlay,
|
| 330 |
+
DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidSubResourceIndex,
|
| 331 |
+
DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidSourceRect,
|
| 332 |
+
DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidDestinationRect,
|
| 333 |
+
DXGI_MSG_Phone_IDXGISwapChain_Present_MultipleResource,
|
| 334 |
+
DXGI_MSG_Phone_IDXGISwapChain_Present_NotSharedResource,
|
| 335 |
+
DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidFlag,
|
| 336 |
+
DXGI_MSG_Phone_IDXGISwapChain_Present_InvalidInterval,
|
| 337 |
+
DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_MSAA_NotSupported,
|
| 338 |
+
DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_ScalingAspectRatioStretch_Supported_ModernApp,
|
| 339 |
+
DXGI_MSG_Phone_IDXGISwapChain_GetFrameStatistics_NotAvailable_ModernApp,
|
| 340 |
+
DXGI_MSG_Phone_IDXGISwapChain_Present_ReplaceInterval0With1,
|
| 341 |
+
DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_FailedRegisterWithCompositor,
|
| 342 |
+
DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_NotForegroundWindow_AtRendering,
|
| 343 |
+
DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_FLIP_SEQUENTIAL_BufferCount,
|
| 344 |
+
DXGI_MSG_Phone_IDXGIFactory_CreateSwapChain_FLIP_Modern_CoreWindow_Only,
|
| 345 |
+
DXGI_MSG_Phone_IDXGISwapChain_Present1_RequiresOverlays,
|
| 346 |
+
DXGI_MSG_Phone_IDXGISwapChain_SetBackgroundColor_FlipSequentialRequired,
|
| 347 |
+
DXGI_MSG_Phone_IDXGISwapChain_GetBackgroundColor_FlipSequentialRequired,
|
| 348 |
+
|
| 349 |
+
} DXGI_Message_Id;
|
| 350 |
+
|
| 351 |
+
#endif // NTDDI_VERSION >= NTDDI_WIN7
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DXProgrammableCapture.h
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//
|
| 2 |
+
// Copyright (C) Microsoft. All rights reserved.
|
| 3 |
+
//
|
| 4 |
+
|
| 5 |
+
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
| 6 |
+
|
| 7 |
+
#pragma once
|
| 8 |
+
|
| 9 |
+
#endif // _MSC_VER
|
| 10 |
+
|
| 11 |
+
#pragma region Application Family
|
| 12 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
|
| 13 |
+
|
| 14 |
+
#if (NTDDI_VERSION >= NTDDI_WINBLUE)
|
| 15 |
+
|
| 16 |
+
// Applications use this interface to denote the beginning and ending of a
|
| 17 |
+
// "frame" of captured DXGI/D3D10+ commands for examination within a debugging
|
| 18 |
+
// tool such as Visual Studio 2013. Absent such calls, a frame is defined by
|
| 19 |
+
// Visual Studio as beginning and ending with the IDXGISwapChain*::Present* calls.
|
| 20 |
+
//
|
| 21 |
+
// To retrieve a pointer to this interface, call
|
| 22 |
+
//
|
| 23 |
+
// ComPtr<IDXGraphicsAnalysis> graphicsAnalysis;
|
| 24 |
+
// DXGIGetDebugInterface1(0, IID_PPV_ARGS(&graphicsAnalysis));
|
| 25 |
+
//
|
| 26 |
+
// The function will only succeed when the application is being run under
|
| 27 |
+
// "graphics analysis" in Visual Studio (or other similar tools), so applications
|
| 28 |
+
// must be sure to handle failure from DXGIGetDebugInterface1 gracefully.
|
| 29 |
+
//
|
| 30 |
+
// Further note that DXGIGetDebugInterface1 is tagged as a development-only capability,
|
| 31 |
+
// which implies that linking to this function will cause the application to fail
|
| 32 |
+
// Windows store certification. Consequently, it is recommended that usage of that
|
| 33 |
+
// function be compiled only for pre-release code.
|
| 34 |
+
|
| 35 |
+
interface DECLSPEC_UUID("9f251514-9d4d-4902-9d60-18988ab7d4b5") DECLSPEC_NOVTABLE IDXGraphicsAnalysis : public IUnknown
|
| 36 |
+
{
|
| 37 |
+
STDMETHOD_(void, BeginCapture)() PURE;
|
| 38 |
+
STDMETHOD_(void, EndCapture)() PURE;
|
| 39 |
+
};
|
| 40 |
+
|
| 41 |
+
#endif // NTDDI_VERSION
|
| 42 |
+
|
| 43 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */
|
| 44 |
+
#pragma endregion
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DtcHelp.h
ADDED
|
@@ -0,0 +1,236 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* ----------------------------------------------------------------------------
|
| 2 |
+
Microsoft D.T.C (Distributed Transaction Coordinator)
|
| 3 |
+
|
| 4 |
+
Copyright (C) 1995-1999 Microsoft Corporation. All rights reserved.
|
| 5 |
+
|
| 6 |
+
@doc
|
| 7 |
+
|
| 8 |
+
@module DTCHelp.h |
|
| 9 |
+
|
| 10 |
+
contains helper API for loading the DTCHelper DLL
|
| 11 |
+
|
| 12 |
+
-------------------------------------------------------------------------------
|
| 13 |
+
@rev 0 | 8th -Sep-1995 | GaganC | Created
|
| 14 |
+
----------------------------------------------------------------------------- */
|
| 15 |
+
#ifndef __DTCHELP_H__
|
| 16 |
+
#define __DTCHELP_H__
|
| 17 |
+
#include <winapifamily.h>
|
| 18 |
+
|
| 19 |
+
#pragma region Desktop Family
|
| 20 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
//---------------------------------------------------------
|
| 25 |
+
// ALL INCLUDE FILES GO HERE
|
| 26 |
+
//---------------------------------------------------------
|
| 27 |
+
#include <windows.h>
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
//---------------------------------------------------------
|
| 31 |
+
// constants / enums / typedefs / defines
|
| 32 |
+
//---------------------------------------------------------
|
| 33 |
+
#ifndef DEFINED_DTC_STATUS
|
| 34 |
+
typedef enum DTC_STATUS_
|
| 35 |
+
{
|
| 36 |
+
DTC_STATUS_UNKNOWN = 0, // Status not known
|
| 37 |
+
DTC_STATUS_STARTING = 1, // DTC is starting
|
| 38 |
+
DTC_STATUS_STARTED = 2, // DTC has started
|
| 39 |
+
DTC_STATUS_PAUSING = 3, // DTC is being paused
|
| 40 |
+
DTC_STATUS_PAUSED = 4, // DTC has been paused
|
| 41 |
+
DTC_STATUS_CONTINUING = 5, // DTC is being continued
|
| 42 |
+
DTC_STATUS_STOPPING = 6, // DTC is stopping
|
| 43 |
+
DTC_STATUS_STOPPED = 7, // DTC has stopped
|
| 44 |
+
DTC_STATUS_E_CANTCONTROL = 8, // DTC cannot be controlled in its present state
|
| 45 |
+
DTC_STATUS_FAILED = 9 // DTC has failed.
|
| 46 |
+
} DTC_STATUS;
|
| 47 |
+
#define DEFINED_DTC_STATUS
|
| 48 |
+
#endif
|
| 49 |
+
|
| 50 |
+
typedef HRESULT (__cdecl * DTC_GET_TRANSACTION_MANAGER)(
|
| 51 |
+
/* in */ char * pszHost,
|
| 52 |
+
/* in */ char * pszTmName,
|
| 53 |
+
/* in */ REFIID rid,
|
| 54 |
+
/* in */ DWORD dwReserved1,
|
| 55 |
+
/* in */ WORD wcbReserved2,
|
| 56 |
+
/* in */ void FAR * pvReserved2,
|
| 57 |
+
/*out */ void** ppvObject ) ;
|
| 58 |
+
|
| 59 |
+
typedef HRESULT (__cdecl * DTC_GET_TRANSACTION_MANAGER_EX_A)(
|
| 60 |
+
/* in */ char * i_pszHost,
|
| 61 |
+
/* in */ char * i_pszTmName,
|
| 62 |
+
/* in */ REFIID i_riid,
|
| 63 |
+
/* in */ DWORD i_grfOptions,
|
| 64 |
+
/* in */ void * i_pvConfigParams,
|
| 65 |
+
/* out */ void ** o_ppvObject
|
| 66 |
+
);
|
| 67 |
+
|
| 68 |
+
typedef HRESULT (__cdecl * DTC_GET_TRANSACTION_MANAGER_EX_W)(
|
| 69 |
+
/* in */ WCHAR * i_pwszHost,
|
| 70 |
+
/* in */ WCHAR * i_pwszTmName,
|
| 71 |
+
/* in */ REFIID i_riid,
|
| 72 |
+
/* in */ DWORD i_grfOptions,
|
| 73 |
+
/* in */ void * i_pvConfigParams,
|
| 74 |
+
/* out */ void ** o_ppvObject
|
| 75 |
+
);
|
| 76 |
+
|
| 77 |
+
typedef HRESULT ( * DTC_INSTALL_CLIENT ) (
|
| 78 |
+
LPTSTR i_pszRemoteTmHostName,
|
| 79 |
+
DWORD i_dwProtocol,
|
| 80 |
+
DWORD i_dwOverwrite );
|
| 81 |
+
|
| 82 |
+
#ifndef UNICODE
|
| 83 |
+
|
| 84 |
+
#define DTC_GET_TRANSACTION_MANAGER_EX DTC_GET_TRANSACTION_MANAGER_EX_A
|
| 85 |
+
#define LoadDtcHelperEx LoadDtcHelperExA
|
| 86 |
+
#define GetDTCStatus GetDTCStatusA
|
| 87 |
+
#define StartDTC StartDTCA
|
| 88 |
+
#define StopDTC StopDTCA
|
| 89 |
+
|
| 90 |
+
#else
|
| 91 |
+
|
| 92 |
+
#define DTC_GET_TRANSACTION_MANAGER_EX DTC_GET_TRANSACTION_MANAGER_EX_W
|
| 93 |
+
#define LoadDtcHelperEx LoadDtcHelperExW
|
| 94 |
+
#define GetDTCStatus GetDTCStatusW
|
| 95 |
+
#define StartDTC StartDTCW
|
| 96 |
+
#define StopDTC StopDTCW
|
| 97 |
+
|
| 98 |
+
#endif
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
#define DTCINSTALL_E_CLIENT_ALREADY_INSTALLED 0x0000180L
|
| 103 |
+
|
| 104 |
+
#define DTCINSTALL_E_SERVER_ALREADY_INSTALLED 0x0000181L
|
| 105 |
+
|
| 106 |
+
//***** Install overwrite options
|
| 107 |
+
const DWORD DTC_INSTALL_OVERWRITE_CLIENT = 0x00000001;
|
| 108 |
+
// first bit from right, controls client overwrite
|
| 109 |
+
// 1=Overwrite existing client install
|
| 110 |
+
// 0=dont overwrite existing client install
|
| 111 |
+
const DWORD DTC_INSTALL_OVERWRITE_SERVER = 0x00000002;
|
| 112 |
+
// second bit from right, controls server overwrite
|
| 113 |
+
// 1=Overwrite existing server install
|
| 114 |
+
// 0=dont overwrite existing server install
|
| 115 |
+
|
| 116 |
+
//---------------------------------------------------------
|
| 117 |
+
// Function Prototypes
|
| 118 |
+
//---------------------------------------------------------
|
| 119 |
+
#ifdef __cplusplus
|
| 120 |
+
extern "C" {
|
| 121 |
+
#endif
|
| 122 |
+
DTC_GET_TRANSACTION_MANAGER __cdecl LoadDtcHelper (void);
|
| 123 |
+
DTC_GET_TRANSACTION_MANAGER_EX_A __cdecl LoadDtcHelperExA (void);
|
| 124 |
+
DTC_GET_TRANSACTION_MANAGER_EX_W __cdecl LoadDtcHelperExW (void);
|
| 125 |
+
void __cdecl FreeDtcHelper (void);
|
| 126 |
+
|
| 127 |
+
HMODULE __cdecl GetDtcLocaleResourceHandle(void);
|
| 128 |
+
|
| 129 |
+
// Function: Initialize
|
| 130 |
+
// This function initialized all the function pointers needed to
|
| 131 |
+
// carry out other operations supported by this static library.
|
| 132 |
+
// It is optional to make this call.
|
| 133 |
+
// Returns - S_OK if all is fine, E_FAIL other wise.
|
| 134 |
+
// Note: this function is not thread safe
|
| 135 |
+
HRESULT __cdecl Initialize (void);
|
| 136 |
+
|
| 137 |
+
// Function: Uninitialize
|
| 138 |
+
// This function unloads the dynamically loaded dlls.
|
| 139 |
+
// Returns - S_OK if all is fine, E_FAIL other wise.
|
| 140 |
+
// Note: this function is not thread safe
|
| 141 |
+
HRESULT __cdecl Uninitialize (void);
|
| 142 |
+
|
| 143 |
+
// Function: GetDTCStatusW
|
| 144 |
+
// Unicode version of GetDTCStatus - used to get the status of the DTC service.
|
| 145 |
+
// The wszHostName parameter specifies the node on which to perform the
|
| 146 |
+
// operation. On Windows 9x this parameter must be either NULL or the local
|
| 147 |
+
// machine name.
|
| 148 |
+
// Returns - the appropriate status from the enum DTC_STATUS
|
| 149 |
+
DTC_STATUS __cdecl GetDTCStatusW (_In_ LPWSTR wszHostName);
|
| 150 |
+
|
| 151 |
+
// Function: GetDTCStatusA
|
| 152 |
+
// Ansi version of GetDTCStatus - used to get the status of the DTC service
|
| 153 |
+
// The szHostName parameter specifies the node on which to perform the
|
| 154 |
+
// operation. On Windows 9x this parameter must be either NULL or the local
|
| 155 |
+
// machine name.
|
| 156 |
+
// Returns - the appropriate status from the enum DTC_STATUS
|
| 157 |
+
DTC_STATUS __cdecl GetDTCStatusA (_In_ LPSTR szHostName);
|
| 158 |
+
|
| 159 |
+
// Function: StartDTCW
|
| 160 |
+
// Unicode version of StartDTC - used to start the DTC service.
|
| 161 |
+
// If the service is already started then the following is a no-op
|
| 162 |
+
// The wszHostName parameter specifies the node on which to perform the
|
| 163 |
+
// operation. On Windows 9x this parameter must be either NULL or the local
|
| 164 |
+
// machine name.
|
| 165 |
+
// Returns - S_OK if all is ok
|
| 166 |
+
// E_FAIL if the operation failed for some reason.
|
| 167 |
+
// E_UNEXPECTED if an unexpected error occured.
|
| 168 |
+
HRESULT __cdecl StartDTCW (_In_ LPWSTR wszHostName);
|
| 169 |
+
|
| 170 |
+
// Function: StartDTCA
|
| 171 |
+
// Ansi version of StartDTC - used to start the DTC service.
|
| 172 |
+
// If the service is already started then the following is a no-op
|
| 173 |
+
// The szHostName parameter specifies the node on which to perform the
|
| 174 |
+
// operation. On Windows 9x this parameter must be either NULL or the local
|
| 175 |
+
// machine name.
|
| 176 |
+
// Returns - S_OK if all is ok
|
| 177 |
+
// E_FAIL if the operation failed for some reason.
|
| 178 |
+
// E_UNEXPECTED if an unexpected error occured.
|
| 179 |
+
HRESULT __cdecl StartDTCA (_In_ LPSTR szHostName);
|
| 180 |
+
|
| 181 |
+
// Function: StopDTCW
|
| 182 |
+
// Unicode version of StopDTC - used to stop the DTC service.
|
| 183 |
+
// If the service is already stopped then the following is a no-op
|
| 184 |
+
// The wszHostName parameter specifies the node on which to perform the
|
| 185 |
+
// operation. On Windows 9x this parameter must be either NULL or the local
|
| 186 |
+
// machine name.
|
| 187 |
+
// Returns - S_OK if all is ok
|
| 188 |
+
// E_FAIL if the operation failed for some reason.
|
| 189 |
+
// E_UNEXPECTED if an unexpected error occured.
|
| 190 |
+
HRESULT __cdecl StopDTCW (_In_ LPWSTR wszHostName);
|
| 191 |
+
|
| 192 |
+
// Function: StopDTCA
|
| 193 |
+
// Ansi version of StopDTC - used to stop the DTC service.
|
| 194 |
+
// If the service is already stopped then the following is a no-op
|
| 195 |
+
// The szHostName parameter specifies the node on which to perform the
|
| 196 |
+
// operation. On Windows 9x this parameter must be either NULL or the local
|
| 197 |
+
// machine name.
|
| 198 |
+
// Returns - S_OK if all is ok
|
| 199 |
+
// E_FAIL if the operation failed for some reason.
|
| 200 |
+
// E_UNEXPECTED if an unexpected error occured.
|
| 201 |
+
HRESULT __cdecl StopDTCA (_In_ LPSTR szHostName);
|
| 202 |
+
|
| 203 |
+
|
| 204 |
+
// Function: DtcInstallClient
|
| 205 |
+
// Installs the client version of DTC.
|
| 206 |
+
// Parameters: i_pszRemoteTmHostName - the name of the host tm,
|
| 207 |
+
// i_szProt - the protocol to use in string format
|
| 208 |
+
// 0x00000001 TCP/IP (1)
|
| 209 |
+
// 0x00000004 NetBEUI (4)
|
| 210 |
+
//
|
| 211 |
+
// i_dwOverwrite - overwrite previous install or not?
|
| 212 |
+
// DTC_INSTALL_OVERWRITE_CLIENT = 0x00000001;
|
| 213 |
+
// 0=Overwrite existing client install
|
| 214 |
+
// 1=dont overwrite existing client install
|
| 215 |
+
// DTC_INSTALL_OVERWRITE_SERVER = 0x00000002;
|
| 216 |
+
// 0=Overwrite existing server install
|
| 217 |
+
// 1=dont overwrite existing server install
|
| 218 |
+
// Returns - S_OK if all is ok
|
| 219 |
+
// E_FAIL if the operation failed for some reason
|
| 220 |
+
// E_UNEXPECTED if an unexpected error occured
|
| 221 |
+
HRESULT __cdecl DtcInstallClient(_In_ LPTSTR i_pszRemoteTmHostName, DWORD i_dwProtocol, DWORD i_dwOverwrite);
|
| 222 |
+
#ifdef __cplusplus
|
| 223 |
+
}
|
| 224 |
+
#endif
|
| 225 |
+
|
| 226 |
+
|
| 227 |
+
//---------------------------------------------------------
|
| 228 |
+
// ALL ERRORS GO HERE
|
| 229 |
+
//---------------------------------------------------------
|
| 230 |
+
|
| 231 |
+
|
| 232 |
+
|
| 233 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 234 |
+
#pragma endregion
|
| 235 |
+
|
| 236 |
+
#endif // __DTCHELP_H__
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DvbSiParser.h
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/DvbSiParser.idl
ADDED
|
@@ -0,0 +1,2882 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//
|
| 2 |
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
//
|
| 4 |
+
// Module Name:
|
| 5 |
+
//
|
| 6 |
+
// DvbSiParser.idl
|
| 7 |
+
//
|
| 8 |
+
// Abstract:
|
| 9 |
+
//
|
| 10 |
+
// Interface definitions for the DVB/ISDB SI parsing functionality
|
| 11 |
+
//
|
| 12 |
+
// Notes:
|
| 13 |
+
//
|
| 14 |
+
// This IDL file is not meant to be built independently, but to be
|
| 15 |
+
// included in a master IDL file with a unique coclass defined for
|
| 16 |
+
// IDvbSiParser. No coclasses need to be defined for the other
|
| 17 |
+
// interfaces. See DTVParse.idl for an example.
|
| 18 |
+
//
|
| 19 |
+
/////////////////////////////////////////////////////////////////////////////
|
| 20 |
+
|
| 21 |
+
cpp_quote("#include <winapifamily.h>")
|
| 22 |
+
|
| 23 |
+
#pragma region Desktop Family
|
| 24 |
+
cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
|
| 25 |
+
|
| 26 |
+
#ifndef AM_LOCAL
|
| 27 |
+
#define AM_LOCAL local,
|
| 28 |
+
#define AM_ANNOTATION(_x_) ,annotation(_x_)
|
| 29 |
+
#endif
|
| 30 |
+
|
| 31 |
+
import "oaidl.idl";
|
| 32 |
+
import "ocidl.idl";
|
| 33 |
+
import "wtypes.idl";
|
| 34 |
+
import "mpeg2structs.idl";
|
| 35 |
+
import "mpeg2data.idl";
|
| 36 |
+
import "mpeg2psiparser.idl";
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
// String conversion mode parameter
|
| 40 |
+
typedef enum
|
| 41 |
+
{
|
| 42 |
+
STRCONV_MODE_DVB = 0,
|
| 43 |
+
STRCONV_MODE_DVB_EMPHASIS,
|
| 44 |
+
STRCONV_MODE_DVB_WITHOUT_EMPHASIS,
|
| 45 |
+
STRCONV_MODE_ISDB,
|
| 46 |
+
} DVB_STRCONV_MODE;
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
// Forward interface declarations
|
| 50 |
+
interface IPAT;
|
| 51 |
+
interface ICAT;
|
| 52 |
+
interface IPMT;
|
| 53 |
+
interface ITSDT;
|
| 54 |
+
interface IDVB_NIT;
|
| 55 |
+
interface IDVB_SDT;
|
| 56 |
+
interface IISDB_SDT;
|
| 57 |
+
interface IDVB_EIT;
|
| 58 |
+
interface IDVB_EIT2;
|
| 59 |
+
interface IDVB_BAT;
|
| 60 |
+
interface IDVB_RST;
|
| 61 |
+
interface IDVB_ST;
|
| 62 |
+
interface IDVB_TDT;
|
| 63 |
+
interface IDVB_TOT;
|
| 64 |
+
interface IDVB_DIT;
|
| 65 |
+
interface IDVB_SIT;
|
| 66 |
+
interface IISDB_BIT;
|
| 67 |
+
interface IISDB_NBIT;
|
| 68 |
+
interface IISDB_LDT;
|
| 69 |
+
interface IISDB_SDTT;
|
| 70 |
+
interface IISDB_CDT;
|
| 71 |
+
interface IISDB_EMM;
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
////////////////////////////////////
|
| 75 |
+
//
|
| 76 |
+
// IDvbSiParser Interface
|
| 77 |
+
//
|
| 78 |
+
////////////////////////////////////
|
| 79 |
+
|
| 80 |
+
[
|
| 81 |
+
AM_LOCAL
|
| 82 |
+
object,
|
| 83 |
+
uuid(B758A7BD-14DC-449d-B828-35909ACB3B1E),
|
| 84 |
+
pointer_default(unique)
|
| 85 |
+
]
|
| 86 |
+
interface IDvbSiParser : IUnknown
|
| 87 |
+
{
|
| 88 |
+
HRESULT Initialize([in] IUnknown * punkMpeg2Data);
|
| 89 |
+
|
| 90 |
+
HRESULT GetPAT([out] IPAT ** ppPAT);
|
| 91 |
+
|
| 92 |
+
HRESULT GetCAT([in] DWORD dwTimeout,
|
| 93 |
+
[out] ICAT ** ppCAT);
|
| 94 |
+
|
| 95 |
+
HRESULT GetPMT([in] PID pid,
|
| 96 |
+
[in AM_ANNOTATION("_In_opt_")] WORD * pwProgramNumber,
|
| 97 |
+
[out] IPMT ** ppPMT);
|
| 98 |
+
|
| 99 |
+
HRESULT GetTSDT([out] ITSDT ** ppTSDT);
|
| 100 |
+
|
| 101 |
+
HRESULT GetNIT([in] TID tableId,
|
| 102 |
+
[in AM_ANNOTATION("_In_opt_")] WORD * pwNetworkId,
|
| 103 |
+
[out] IDVB_NIT ** ppNIT);
|
| 104 |
+
|
| 105 |
+
HRESULT GetSDT([in] TID tableId,
|
| 106 |
+
[in AM_ANNOTATION("_In_opt_")] WORD * pwTransportStreamId,
|
| 107 |
+
[out] IDVB_SDT ** ppSDT);
|
| 108 |
+
|
| 109 |
+
HRESULT GetEIT([in] TID tableId,
|
| 110 |
+
[in AM_ANNOTATION("_In_opt_")] WORD * pwServiceId,
|
| 111 |
+
[out] IDVB_EIT ** ppEIT);
|
| 112 |
+
|
| 113 |
+
HRESULT GetBAT([in AM_ANNOTATION("_In_opt_")] WORD * pwBouquetId,
|
| 114 |
+
[out] IDVB_BAT ** ppBAT);
|
| 115 |
+
|
| 116 |
+
HRESULT GetRST([in] DWORD dwTimeout,
|
| 117 |
+
[out] IDVB_RST ** ppRST);
|
| 118 |
+
|
| 119 |
+
HRESULT GetST([in] PID pid,
|
| 120 |
+
[in] DWORD dwTimeout,
|
| 121 |
+
[out] IDVB_ST ** ppST);
|
| 122 |
+
|
| 123 |
+
HRESULT GetTDT([out] IDVB_TDT ** ppTDT);
|
| 124 |
+
|
| 125 |
+
HRESULT GetTOT([out] IDVB_TOT ** ppTOT);
|
| 126 |
+
|
| 127 |
+
HRESULT GetDIT([in] DWORD dwTimeout,
|
| 128 |
+
[out] IDVB_DIT ** ppDIT);
|
| 129 |
+
|
| 130 |
+
HRESULT GetSIT([in] DWORD dwTimeout,
|
| 131 |
+
[out] IDVB_SIT ** ppSIT);
|
| 132 |
+
|
| 133 |
+
};
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
////////////////////////////////////
|
| 138 |
+
//
|
| 139 |
+
// IDvbSiParser2 Interface
|
| 140 |
+
//
|
| 141 |
+
// Note:
|
| 142 |
+
// When this interface is updated,
|
| 143 |
+
// update also the corresponding
|
| 144 |
+
// inherited IIsdbSiParserX.
|
| 145 |
+
//
|
| 146 |
+
////////////////////////////////////
|
| 147 |
+
|
| 148 |
+
[
|
| 149 |
+
AM_LOCAL
|
| 150 |
+
object,
|
| 151 |
+
uuid(0AC5525F-F816-42F4-93BA-4C0F32F46E54),
|
| 152 |
+
pointer_default(unique)
|
| 153 |
+
]
|
| 154 |
+
interface IDvbSiParser2 : IDvbSiParser
|
| 155 |
+
{
|
| 156 |
+
HRESULT GetEIT2([in] TID tableId,
|
| 157 |
+
[in AM_ANNOTATION("_In_opt_")] WORD * pwServiceId,
|
| 158 |
+
[in AM_ANNOTATION("_In_opt_")] BYTE * pbSegment,
|
| 159 |
+
[out] IDVB_EIT2 ** ppEIT);
|
| 160 |
+
};
|
| 161 |
+
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
////////////////////////////////////
|
| 165 |
+
//
|
| 166 |
+
// IIsdbSiParser2 Interface
|
| 167 |
+
//
|
| 168 |
+
////////////////////////////////////
|
| 169 |
+
[
|
| 170 |
+
AM_LOCAL
|
| 171 |
+
object,
|
| 172 |
+
uuid(900E4BB7-18CD-453F-98BE-3BE6AA211772),
|
| 173 |
+
pointer_default(unique)
|
| 174 |
+
]
|
| 175 |
+
interface IIsdbSiParser2 : IDvbSiParser2
|
| 176 |
+
{
|
| 177 |
+
HRESULT GetSDT([in] TID tableId,
|
| 178 |
+
[in AM_ANNOTATION("_In_opt_")] WORD * pwTransportStreamId,
|
| 179 |
+
[out] IISDB_SDT ** ppSDT);
|
| 180 |
+
|
| 181 |
+
HRESULT GetBIT([in] TID tableId,
|
| 182 |
+
[in AM_ANNOTATION("_In_opt_")] WORD * pwOriginalNetworkId,
|
| 183 |
+
[out] IISDB_BIT ** ppBIT);
|
| 184 |
+
|
| 185 |
+
HRESULT GetNBIT([in] TID tableId,
|
| 186 |
+
[in AM_ANNOTATION("_In_opt_")] WORD * pwOriginalNetworkId,
|
| 187 |
+
[out] IISDB_NBIT ** ppNBIT);
|
| 188 |
+
|
| 189 |
+
HRESULT GetLDT([in] TID tableId,
|
| 190 |
+
[in AM_ANNOTATION("_In_opt_")] WORD * pwOriginalServiceId,
|
| 191 |
+
[out] IISDB_LDT ** ppLDT);
|
| 192 |
+
|
| 193 |
+
HRESULT GetSDTT([in] TID tableId,
|
| 194 |
+
[in AM_ANNOTATION("_In_opt_")] WORD * pwTableIdExt,
|
| 195 |
+
[out] IISDB_SDTT ** ppSDTT);
|
| 196 |
+
|
| 197 |
+
HRESULT GetCDT([in] TID tableId,
|
| 198 |
+
[in] BYTE bSectionNumber,
|
| 199 |
+
[in AM_ANNOTATION("_In_opt_")] WORD * pwDownloadDataId,
|
| 200 |
+
[out] IISDB_CDT ** ppCDT);
|
| 201 |
+
|
| 202 |
+
HRESULT GetEMM([in] PID pid,
|
| 203 |
+
[in] WORD wTableIdExt,
|
| 204 |
+
[out] IISDB_EMM ** ppEMM);
|
| 205 |
+
};
|
| 206 |
+
|
| 207 |
+
|
| 208 |
+
|
| 209 |
+
////////////////////////////////////
|
| 210 |
+
//
|
| 211 |
+
// IDVB_NIT Interface
|
| 212 |
+
//
|
| 213 |
+
////////////////////////////////////
|
| 214 |
+
|
| 215 |
+
[
|
| 216 |
+
AM_LOCAL
|
| 217 |
+
object,
|
| 218 |
+
uuid(C64935F4-29E4-4e22-911A-63F7F55CB097),
|
| 219 |
+
pointer_default(unique)
|
| 220 |
+
]
|
| 221 |
+
interface IDVB_NIT : IUnknown
|
| 222 |
+
{
|
| 223 |
+
HRESULT Initialize([in] ISectionList * pSectionList,
|
| 224 |
+
[in] IMpeg2Data * pMPEGData);
|
| 225 |
+
|
| 226 |
+
HRESULT GetVersionNumber([out] BYTE * pbVal);
|
| 227 |
+
|
| 228 |
+
HRESULT GetNetworkId([out] WORD * pwVal);
|
| 229 |
+
|
| 230 |
+
HRESULT GetCountOfTableDescriptors([out] DWORD * pdwVal);
|
| 231 |
+
|
| 232 |
+
HRESULT GetTableDescriptorByIndex([in] DWORD dwIndex,
|
| 233 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 234 |
+
|
| 235 |
+
HRESULT GetTableDescriptorByTag([in] BYTE bTag,
|
| 236 |
+
[in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie,
|
| 237 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 238 |
+
|
| 239 |
+
HRESULT GetCountOfRecords([out] DWORD * pdwVal);
|
| 240 |
+
|
| 241 |
+
HRESULT GetRecordTransportStreamId([in] DWORD dwRecordIndex,
|
| 242 |
+
[out] WORD * pwVal);
|
| 243 |
+
|
| 244 |
+
HRESULT GetRecordOriginalNetworkId([in] DWORD dwRecordIndex,
|
| 245 |
+
[out] WORD * pwVal);
|
| 246 |
+
|
| 247 |
+
HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex,
|
| 248 |
+
[out] DWORD * pdwVal);
|
| 249 |
+
|
| 250 |
+
HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex,
|
| 251 |
+
[in] DWORD dwIndex,
|
| 252 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 253 |
+
|
| 254 |
+
HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex,
|
| 255 |
+
[in] BYTE bTag,
|
| 256 |
+
[in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie,
|
| 257 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 258 |
+
|
| 259 |
+
HRESULT RegisterForNextTable([in] HANDLE hNextTableAvailable);
|
| 260 |
+
|
| 261 |
+
HRESULT GetNextTable([out] IDVB_NIT ** ppNIT);
|
| 262 |
+
|
| 263 |
+
HRESULT RegisterForWhenCurrent([in] HANDLE hNextTableIsCurrent);
|
| 264 |
+
|
| 265 |
+
HRESULT ConvertNextToCurrent(void);
|
| 266 |
+
|
| 267 |
+
HRESULT GetVersionHash([out] DWORD * pdwVersionHash);
|
| 268 |
+
};
|
| 269 |
+
|
| 270 |
+
|
| 271 |
+
|
| 272 |
+
////////////////////////////////////
|
| 273 |
+
//
|
| 274 |
+
// IDVB_SDT Interface
|
| 275 |
+
//
|
| 276 |
+
////////////////////////////////////
|
| 277 |
+
|
| 278 |
+
[
|
| 279 |
+
AM_LOCAL
|
| 280 |
+
object,
|
| 281 |
+
uuid(02CAD8D3-FE43-48e2-90BD-450ED9A8A5FD),
|
| 282 |
+
pointer_default(unique)
|
| 283 |
+
]
|
| 284 |
+
interface IDVB_SDT : IUnknown
|
| 285 |
+
{
|
| 286 |
+
HRESULT Initialize([in] ISectionList * pSectionList,
|
| 287 |
+
[in] IMpeg2Data * pMPEGData);
|
| 288 |
+
|
| 289 |
+
HRESULT GetVersionNumber([out] BYTE * pbVal);
|
| 290 |
+
|
| 291 |
+
HRESULT GetTransportStreamId([out] WORD * pwVal);
|
| 292 |
+
|
| 293 |
+
HRESULT GetOriginalNetworkId([out] WORD * pwVal);
|
| 294 |
+
|
| 295 |
+
HRESULT GetCountOfRecords([out] DWORD * pdwVal);
|
| 296 |
+
|
| 297 |
+
HRESULT GetRecordServiceId([in] DWORD dwRecordIndex,
|
| 298 |
+
[out] WORD * pwVal);
|
| 299 |
+
|
| 300 |
+
HRESULT GetRecordEITScheduleFlag([in] DWORD dwRecordIndex,
|
| 301 |
+
[out] BOOL * pfVal);
|
| 302 |
+
|
| 303 |
+
HRESULT GetRecordEITPresentFollowingFlag([in] DWORD dwRecordIndex,
|
| 304 |
+
[out] BOOL * pfVal);
|
| 305 |
+
|
| 306 |
+
HRESULT GetRecordRunningStatus([in] DWORD dwRecordIndex,
|
| 307 |
+
[out] BYTE * pbVal);
|
| 308 |
+
|
| 309 |
+
HRESULT GetRecordFreeCAMode([in] DWORD dwRecordIndex,
|
| 310 |
+
[out] BOOL * pfVal);
|
| 311 |
+
|
| 312 |
+
HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex,
|
| 313 |
+
[out] DWORD * pdwVal);
|
| 314 |
+
|
| 315 |
+
HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex,
|
| 316 |
+
[in] DWORD dwIndex,
|
| 317 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 318 |
+
|
| 319 |
+
HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex,
|
| 320 |
+
[in] BYTE bTag,
|
| 321 |
+
[in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie,
|
| 322 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 323 |
+
|
| 324 |
+
HRESULT RegisterForNextTable([in] HANDLE hNextTableAvailable);
|
| 325 |
+
|
| 326 |
+
HRESULT GetNextTable([out] IDVB_SDT ** ppSDT);
|
| 327 |
+
|
| 328 |
+
HRESULT RegisterForWhenCurrent([in] HANDLE hNextTableIsCurrent);
|
| 329 |
+
|
| 330 |
+
HRESULT ConvertNextToCurrent(void);
|
| 331 |
+
|
| 332 |
+
HRESULT GetVersionHash([out] DWORD * pdwVersionHash);
|
| 333 |
+
};
|
| 334 |
+
|
| 335 |
+
////////////////////////////////////
|
| 336 |
+
//
|
| 337 |
+
// IISDB_SDT Interface
|
| 338 |
+
// Support user_defined_flags field
|
| 339 |
+
//
|
| 340 |
+
////////////////////////////////////
|
| 341 |
+
|
| 342 |
+
[
|
| 343 |
+
AM_LOCAL
|
| 344 |
+
object,
|
| 345 |
+
uuid(3F3DC9A2-BB32-4FB9-AE9E-D856848927A3),
|
| 346 |
+
pointer_default(unique)
|
| 347 |
+
]
|
| 348 |
+
interface IISDB_SDT : IDVB_SDT
|
| 349 |
+
// Additional field for ISDB
|
| 350 |
+
{
|
| 351 |
+
HRESULT GetRecordEITUserDefinedFlags([in] DWORD dwRecordIndex,
|
| 352 |
+
[out] BYTE * pbVal);
|
| 353 |
+
}
|
| 354 |
+
|
| 355 |
+
|
| 356 |
+
////////////////////////////////////
|
| 357 |
+
//
|
| 358 |
+
// IDVB_EIT Interface
|
| 359 |
+
//
|
| 360 |
+
////////////////////////////////////
|
| 361 |
+
|
| 362 |
+
[
|
| 363 |
+
AM_LOCAL
|
| 364 |
+
object,
|
| 365 |
+
uuid(442DB029-02CB-4495-8B92-1C13375BCE99),
|
| 366 |
+
pointer_default(unique)
|
| 367 |
+
]
|
| 368 |
+
interface IDVB_EIT : IUnknown
|
| 369 |
+
{
|
| 370 |
+
HRESULT Initialize([in] ISectionList * pSectionList,
|
| 371 |
+
[in] IMpeg2Data * pMPEGData);
|
| 372 |
+
|
| 373 |
+
HRESULT GetVersionNumber([out] BYTE * pbVal);
|
| 374 |
+
|
| 375 |
+
HRESULT GetServiceId([out] WORD * pwVal);
|
| 376 |
+
|
| 377 |
+
HRESULT GetTransportStreamId([out] WORD * pwVal);
|
| 378 |
+
|
| 379 |
+
HRESULT GetOriginalNetworkId([out] WORD * pwVal);
|
| 380 |
+
|
| 381 |
+
HRESULT GetSegmentLastSectionNumber([out] BYTE * pbVal);
|
| 382 |
+
|
| 383 |
+
HRESULT GetLastTableId([out] BYTE * pbVal);
|
| 384 |
+
|
| 385 |
+
HRESULT GetCountOfRecords([out] DWORD * pdwVal);
|
| 386 |
+
|
| 387 |
+
HRESULT GetRecordEventId([in] DWORD dwRecordIndex,
|
| 388 |
+
[out] WORD * pwVal);
|
| 389 |
+
|
| 390 |
+
HRESULT GetRecordStartTime([in] DWORD dwRecordIndex,
|
| 391 |
+
[out] MPEG_DATE_AND_TIME * pmdtVal);
|
| 392 |
+
|
| 393 |
+
HRESULT GetRecordDuration([in] DWORD dwRecordIndex,
|
| 394 |
+
[out] MPEG_DURATION * pmdVal);
|
| 395 |
+
|
| 396 |
+
HRESULT GetRecordRunningStatus([in] DWORD dwRecordIndex,
|
| 397 |
+
[out] BYTE * pbVal);
|
| 398 |
+
|
| 399 |
+
HRESULT GetRecordFreeCAMode([in] DWORD dwRecordIndex,
|
| 400 |
+
[out] BOOL * pfVal);
|
| 401 |
+
|
| 402 |
+
HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex,
|
| 403 |
+
[out] DWORD * pdwVal);
|
| 404 |
+
|
| 405 |
+
HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex,
|
| 406 |
+
[in] DWORD dwIndex,
|
| 407 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 408 |
+
|
| 409 |
+
HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex,
|
| 410 |
+
[in] BYTE bTag,
|
| 411 |
+
[in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie,
|
| 412 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 413 |
+
|
| 414 |
+
HRESULT RegisterForNextTable([in] HANDLE hNextTableAvailable);
|
| 415 |
+
|
| 416 |
+
HRESULT GetNextTable([out] IDVB_EIT ** ppEIT);
|
| 417 |
+
|
| 418 |
+
HRESULT RegisterForWhenCurrent([in] HANDLE hNextTableIsCurrent);
|
| 419 |
+
|
| 420 |
+
HRESULT ConvertNextToCurrent(void);
|
| 421 |
+
|
| 422 |
+
HRESULT GetVersionHash([out] DWORD * pdwVersionHash);
|
| 423 |
+
};
|
| 424 |
+
|
| 425 |
+
|
| 426 |
+
////////////////////////////////////
|
| 427 |
+
//
|
| 428 |
+
// IDVB_EIT2 Interface
|
| 429 |
+
//
|
| 430 |
+
////////////////////////////////////
|
| 431 |
+
|
| 432 |
+
[
|
| 433 |
+
AM_LOCAL
|
| 434 |
+
object,
|
| 435 |
+
uuid(61A389E0-9B9E-4ba0-AEEA-5DDD159820EA),
|
| 436 |
+
pointer_default(unique)
|
| 437 |
+
]
|
| 438 |
+
interface IDVB_EIT2 : IDVB_EIT
|
| 439 |
+
{
|
| 440 |
+
HRESULT GetSegmentInfo([out] BYTE * pbTid,
|
| 441 |
+
[out] BYTE * pbSegment);
|
| 442 |
+
|
| 443 |
+
HRESULT GetRecordSection([in] DWORD dwRecordIndex,
|
| 444 |
+
[out] BYTE * pbVal);
|
| 445 |
+
};
|
| 446 |
+
|
| 447 |
+
|
| 448 |
+
|
| 449 |
+
////////////////////////////////////
|
| 450 |
+
//
|
| 451 |
+
// IDVB_BAT Interface
|
| 452 |
+
//
|
| 453 |
+
////////////////////////////////////
|
| 454 |
+
|
| 455 |
+
[
|
| 456 |
+
AM_LOCAL
|
| 457 |
+
object,
|
| 458 |
+
uuid(ECE9BB0C-43B6-4558-A0EC-1812C34CD6CA),
|
| 459 |
+
pointer_default(unique)
|
| 460 |
+
]
|
| 461 |
+
interface IDVB_BAT : IUnknown
|
| 462 |
+
{
|
| 463 |
+
HRESULT Initialize([in] ISectionList * pSectionList,
|
| 464 |
+
[in] IMpeg2Data * pMPEGData);
|
| 465 |
+
|
| 466 |
+
HRESULT GetVersionNumber([out] BYTE * pbVal);
|
| 467 |
+
|
| 468 |
+
HRESULT GetBouquetId([out] WORD * pwVal);
|
| 469 |
+
|
| 470 |
+
HRESULT GetCountOfTableDescriptors([out] DWORD * pdwVal);
|
| 471 |
+
|
| 472 |
+
HRESULT GetTableDescriptorByIndex([in] DWORD dwIndex,
|
| 473 |
+
[in] IGenericDescriptor ** ppDescriptor);
|
| 474 |
+
|
| 475 |
+
HRESULT GetTableDescriptorByTag([in] BYTE bTag,
|
| 476 |
+
[in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie,
|
| 477 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 478 |
+
|
| 479 |
+
HRESULT GetCountOfRecords([out] DWORD * pdwVal);
|
| 480 |
+
|
| 481 |
+
HRESULT GetRecordTransportStreamId([in] DWORD dwRecordIndex,
|
| 482 |
+
[out] WORD * pwVal);
|
| 483 |
+
|
| 484 |
+
HRESULT GetRecordOriginalNetworkId([in] DWORD dwRecordIndex,
|
| 485 |
+
[out] WORD * pwVal);
|
| 486 |
+
|
| 487 |
+
HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex,
|
| 488 |
+
[out] DWORD * pdwVal);
|
| 489 |
+
|
| 490 |
+
HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex,
|
| 491 |
+
[in] DWORD dwIndex,
|
| 492 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 493 |
+
|
| 494 |
+
HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex,
|
| 495 |
+
[in] BYTE bTag,
|
| 496 |
+
[in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie,
|
| 497 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 498 |
+
|
| 499 |
+
HRESULT RegisterForNextTable([in] HANDLE hNextTableAvailable);
|
| 500 |
+
|
| 501 |
+
HRESULT GetNextTable([out] IDVB_BAT ** ppBAT);
|
| 502 |
+
|
| 503 |
+
HRESULT RegisterForWhenCurrent([in] HANDLE hNextTableIsCurrent);
|
| 504 |
+
|
| 505 |
+
HRESULT ConvertNextToCurrent(void);
|
| 506 |
+
};
|
| 507 |
+
|
| 508 |
+
|
| 509 |
+
|
| 510 |
+
////////////////////////////////////
|
| 511 |
+
//
|
| 512 |
+
// IDVB_RST Interface
|
| 513 |
+
//
|
| 514 |
+
////////////////////////////////////
|
| 515 |
+
|
| 516 |
+
[
|
| 517 |
+
AM_LOCAL
|
| 518 |
+
object,
|
| 519 |
+
uuid(F47DCD04-1E23-4fb7-9F96-B40EEAD10B2B),
|
| 520 |
+
pointer_default(unique)
|
| 521 |
+
]
|
| 522 |
+
interface IDVB_RST : IUnknown
|
| 523 |
+
{
|
| 524 |
+
HRESULT Initialize([in] ISectionList * pSectionList);
|
| 525 |
+
|
| 526 |
+
HRESULT GetCountOfRecords([out] DWORD * pdwVal);
|
| 527 |
+
|
| 528 |
+
HRESULT GetRecordTransportStreamId([in] DWORD dwRecordIndex,
|
| 529 |
+
[out] WORD * pwVal);
|
| 530 |
+
|
| 531 |
+
HRESULT GetRecordOriginalNetworkId([in] DWORD dwRecordIndex,
|
| 532 |
+
[out] WORD * pwVal);
|
| 533 |
+
|
| 534 |
+
HRESULT GetRecordServiceId([in] DWORD dwRecordIndex,
|
| 535 |
+
[out] WORD * pwVal);
|
| 536 |
+
|
| 537 |
+
HRESULT GetRecordEventId([in] DWORD dwRecordIndex,
|
| 538 |
+
[out] WORD * pwVal);
|
| 539 |
+
|
| 540 |
+
HRESULT GetRecordRunningStatus([in] DWORD dwRecordIndex,
|
| 541 |
+
[out] BYTE * pbVal);
|
| 542 |
+
};
|
| 543 |
+
|
| 544 |
+
|
| 545 |
+
|
| 546 |
+
////////////////////////////////////
|
| 547 |
+
//
|
| 548 |
+
// IDVB_ST Interface
|
| 549 |
+
//
|
| 550 |
+
////////////////////////////////////
|
| 551 |
+
|
| 552 |
+
[
|
| 553 |
+
AM_LOCAL
|
| 554 |
+
object,
|
| 555 |
+
uuid(4D5B9F23-2A02-45de-BCDA-5D5DBFBFBE62),
|
| 556 |
+
pointer_default(unique)
|
| 557 |
+
]
|
| 558 |
+
interface IDVB_ST : IUnknown
|
| 559 |
+
{
|
| 560 |
+
HRESULT Initialize([in] ISectionList * pSectionList);
|
| 561 |
+
|
| 562 |
+
HRESULT GetDataLength([out] WORD * pwVal);
|
| 563 |
+
|
| 564 |
+
HRESULT GetData([out] BYTE ** ppData);
|
| 565 |
+
};
|
| 566 |
+
|
| 567 |
+
|
| 568 |
+
|
| 569 |
+
////////////////////////////////////
|
| 570 |
+
//
|
| 571 |
+
// IDVB_TDT Interface
|
| 572 |
+
//
|
| 573 |
+
////////////////////////////////////
|
| 574 |
+
|
| 575 |
+
[
|
| 576 |
+
AM_LOCAL
|
| 577 |
+
object,
|
| 578 |
+
uuid(0780DC7D-D55C-4aef-97E6-6B75906E2796),
|
| 579 |
+
pointer_default(unique)
|
| 580 |
+
]
|
| 581 |
+
interface IDVB_TDT : IUnknown
|
| 582 |
+
{
|
| 583 |
+
HRESULT Initialize([in] ISectionList * pSectionList);
|
| 584 |
+
|
| 585 |
+
HRESULT GetUTCTime([out] MPEG_DATE_AND_TIME * pmdtVal);
|
| 586 |
+
};
|
| 587 |
+
|
| 588 |
+
|
| 589 |
+
|
| 590 |
+
////////////////////////////////////
|
| 591 |
+
//
|
| 592 |
+
// IDVB_TOT Interface
|
| 593 |
+
//
|
| 594 |
+
////////////////////////////////////
|
| 595 |
+
|
| 596 |
+
[
|
| 597 |
+
AM_LOCAL
|
| 598 |
+
object,
|
| 599 |
+
uuid(83295D6A-FABA-4ee1-9B15-8067696910AE),
|
| 600 |
+
pointer_default(unique)
|
| 601 |
+
]
|
| 602 |
+
interface IDVB_TOT : IUnknown
|
| 603 |
+
{
|
| 604 |
+
HRESULT Initialize([in] ISectionList * pSectionList);
|
| 605 |
+
|
| 606 |
+
HRESULT GetUTCTime([out] MPEG_DATE_AND_TIME * pmdtVal);
|
| 607 |
+
|
| 608 |
+
HRESULT GetCountOfTableDescriptors([out] DWORD * pdwVal);
|
| 609 |
+
|
| 610 |
+
HRESULT GetTableDescriptorByIndex([in] DWORD dwIndex,
|
| 611 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 612 |
+
|
| 613 |
+
HRESULT GetTableDescriptorByTag([in] BYTE bTag,
|
| 614 |
+
[in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie,
|
| 615 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 616 |
+
};
|
| 617 |
+
|
| 618 |
+
|
| 619 |
+
|
| 620 |
+
////////////////////////////////////
|
| 621 |
+
//
|
| 622 |
+
// IDVB_DIT Interface
|
| 623 |
+
//
|
| 624 |
+
////////////////////////////////////
|
| 625 |
+
|
| 626 |
+
[
|
| 627 |
+
AM_LOCAL
|
| 628 |
+
object,
|
| 629 |
+
uuid(91BFFDF9-9432-410f-86EF-1C228ED0AD70),
|
| 630 |
+
pointer_default(unique)
|
| 631 |
+
]
|
| 632 |
+
interface IDVB_DIT : IUnknown
|
| 633 |
+
{
|
| 634 |
+
HRESULT Initialize([in] ISectionList * pSectionList);
|
| 635 |
+
|
| 636 |
+
HRESULT GetTransitionFlag([out] BOOL * pfVal);
|
| 637 |
+
};
|
| 638 |
+
|
| 639 |
+
|
| 640 |
+
|
| 641 |
+
////////////////////////////////////
|
| 642 |
+
//
|
| 643 |
+
// IDVB_SIT Interface
|
| 644 |
+
//
|
| 645 |
+
////////////////////////////////////
|
| 646 |
+
|
| 647 |
+
[
|
| 648 |
+
AM_LOCAL
|
| 649 |
+
object,
|
| 650 |
+
uuid(68CDCE53-8BEA-45c2-9D9D-ACF575A089B5),
|
| 651 |
+
pointer_default(unique)
|
| 652 |
+
]
|
| 653 |
+
interface IDVB_SIT : IUnknown
|
| 654 |
+
{
|
| 655 |
+
HRESULT Initialize([in] ISectionList * pSectionList,
|
| 656 |
+
[in] IMpeg2Data * pMPEGData);
|
| 657 |
+
|
| 658 |
+
HRESULT GetVersionNumber([out] BYTE * pbVal);
|
| 659 |
+
|
| 660 |
+
HRESULT GetCountOfTableDescriptors([out] DWORD * pdwVal);
|
| 661 |
+
|
| 662 |
+
HRESULT GetTableDescriptorByIndex([in] DWORD dwIndex,
|
| 663 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 664 |
+
|
| 665 |
+
HRESULT GetTableDescriptorByTag([in] BYTE bTag,
|
| 666 |
+
[in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie,
|
| 667 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 668 |
+
|
| 669 |
+
HRESULT GetCountOfRecords([out] DWORD * pdwVal);
|
| 670 |
+
|
| 671 |
+
HRESULT GetRecordServiceId([in] DWORD dwRecordIndex,
|
| 672 |
+
[out] WORD * pwVal);
|
| 673 |
+
|
| 674 |
+
HRESULT GetRecordRunningStatus([in] DWORD dwRecordIndex,
|
| 675 |
+
[out] BYTE * pbVal);
|
| 676 |
+
|
| 677 |
+
HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex,
|
| 678 |
+
[out] DWORD * pdwVal);
|
| 679 |
+
|
| 680 |
+
HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex,
|
| 681 |
+
[in] DWORD dwIndex,
|
| 682 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 683 |
+
|
| 684 |
+
HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex,
|
| 685 |
+
[in] BYTE bTag,
|
| 686 |
+
[in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie,
|
| 687 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 688 |
+
|
| 689 |
+
HRESULT RegisterForNextTable([in] HANDLE hNextTableAvailable);
|
| 690 |
+
|
| 691 |
+
HRESULT GetNextTable([in] DWORD dwTimeout,
|
| 692 |
+
[out] IDVB_SIT ** ppSIT);
|
| 693 |
+
|
| 694 |
+
HRESULT RegisterForWhenCurrent([in] HANDLE hNextTableIsCurrent);
|
| 695 |
+
|
| 696 |
+
HRESULT ConvertNextToCurrent(void);
|
| 697 |
+
};
|
| 698 |
+
|
| 699 |
+
|
| 700 |
+
|
| 701 |
+
////////////////////////////////////
|
| 702 |
+
//
|
| 703 |
+
// IISDB_BIT Interface
|
| 704 |
+
//
|
| 705 |
+
////////////////////////////////////
|
| 706 |
+
|
| 707 |
+
[
|
| 708 |
+
AM_LOCAL
|
| 709 |
+
object,
|
| 710 |
+
uuid(537CD71E-0E46-4173-9001-BA043F3E49E2),
|
| 711 |
+
pointer_default(unique)
|
| 712 |
+
]
|
| 713 |
+
interface IISDB_BIT : IUnknown
|
| 714 |
+
{
|
| 715 |
+
HRESULT Initialize([in] ISectionList * pSectionList,
|
| 716 |
+
[in] IMpeg2Data * pMPEGData);
|
| 717 |
+
|
| 718 |
+
HRESULT GetVersionNumber([out] BYTE * pbVal);
|
| 719 |
+
|
| 720 |
+
HRESULT GetOriginalNetworkId([out] WORD * pwVal);
|
| 721 |
+
|
| 722 |
+
HRESULT GetBroadcastViewPropriety([out] BYTE * pbVal);
|
| 723 |
+
|
| 724 |
+
HRESULT GetCountOfTableDescriptors([out] DWORD * pdwVal);
|
| 725 |
+
|
| 726 |
+
HRESULT GetTableDescriptorByIndex([in] DWORD dwIndex,
|
| 727 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 728 |
+
|
| 729 |
+
HRESULT GetTableDescriptorByTag([in] BYTE bTag,
|
| 730 |
+
[in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie,
|
| 731 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 732 |
+
|
| 733 |
+
HRESULT GetCountOfRecords([out] DWORD * pdwVal);
|
| 734 |
+
|
| 735 |
+
HRESULT GetRecordBroadcasterId([in] DWORD dwRecordIndex,
|
| 736 |
+
[out] BYTE * pbVal);
|
| 737 |
+
|
| 738 |
+
HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex,
|
| 739 |
+
[out] DWORD * pdwVal);
|
| 740 |
+
|
| 741 |
+
HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex,
|
| 742 |
+
[in] DWORD dwIndex,
|
| 743 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 744 |
+
|
| 745 |
+
HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex,
|
| 746 |
+
[in] BYTE bTag,
|
| 747 |
+
[in,out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie,
|
| 748 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 749 |
+
|
| 750 |
+
HRESULT GetVersionHash([out] DWORD * pdwVersionHash);
|
| 751 |
+
};
|
| 752 |
+
|
| 753 |
+
|
| 754 |
+
|
| 755 |
+
////////////////////////////////////
|
| 756 |
+
//
|
| 757 |
+
// IISDB_NBIT Interface
|
| 758 |
+
//
|
| 759 |
+
////////////////////////////////////
|
| 760 |
+
|
| 761 |
+
[
|
| 762 |
+
AM_LOCAL
|
| 763 |
+
object,
|
| 764 |
+
uuid(1B1863EF-08F1-40B7-A559-3B1EFF8CAFA6),
|
| 765 |
+
pointer_default(unique)
|
| 766 |
+
]
|
| 767 |
+
interface IISDB_NBIT : IUnknown
|
| 768 |
+
{
|
| 769 |
+
HRESULT Initialize([in] ISectionList * pSectionList,
|
| 770 |
+
[in] IMpeg2Data * pMPEGData);
|
| 771 |
+
|
| 772 |
+
HRESULT GetVersionNumber([out] BYTE * pbVal);
|
| 773 |
+
|
| 774 |
+
HRESULT GetOriginalNetworkId([out] WORD * pwVal);
|
| 775 |
+
|
| 776 |
+
HRESULT GetCountOfRecords([out] DWORD * pdwVal);
|
| 777 |
+
|
| 778 |
+
HRESULT GetRecordInformationId([in] DWORD dwRecordIndex,
|
| 779 |
+
[out] WORD * pwVal);
|
| 780 |
+
|
| 781 |
+
HRESULT GetRecordInformationType([in] DWORD dwRecordIndex,
|
| 782 |
+
[out] BYTE * pbVal);
|
| 783 |
+
|
| 784 |
+
HRESULT GetRecordDescriptionBodyLocation([in] DWORD dwRecordIndex,
|
| 785 |
+
[out] BYTE * pbVal);
|
| 786 |
+
|
| 787 |
+
HRESULT GetRecordMessageSectionNumber([in] DWORD dwRecordIndex,
|
| 788 |
+
[out] BYTE * pbVal);
|
| 789 |
+
|
| 790 |
+
HRESULT GetRecordUserDefined([in] DWORD dwRecordIndex,
|
| 791 |
+
[out] BYTE * pbVal);
|
| 792 |
+
|
| 793 |
+
HRESULT GetRecordNumberOfKeys([in] DWORD dwRecordIndex,
|
| 794 |
+
[out] BYTE * pbVal);
|
| 795 |
+
|
| 796 |
+
HRESULT GetRecordKeys([in] DWORD dwRecordIndex,
|
| 797 |
+
[out] BYTE ** pbKeys);
|
| 798 |
+
|
| 799 |
+
HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex,
|
| 800 |
+
[out] DWORD * pdwVal);
|
| 801 |
+
|
| 802 |
+
HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex,
|
| 803 |
+
[in] DWORD dwIndex,
|
| 804 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 805 |
+
|
| 806 |
+
HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex,
|
| 807 |
+
[in] BYTE bTag,
|
| 808 |
+
[in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie,
|
| 809 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 810 |
+
|
| 811 |
+
HRESULT GetVersionHash([out] DWORD * pdwVersionHash);
|
| 812 |
+
};
|
| 813 |
+
|
| 814 |
+
|
| 815 |
+
|
| 816 |
+
////////////////////////////////////
|
| 817 |
+
//
|
| 818 |
+
// IISDB_LDT Interface
|
| 819 |
+
//
|
| 820 |
+
////////////////////////////////////
|
| 821 |
+
|
| 822 |
+
[
|
| 823 |
+
AM_LOCAL
|
| 824 |
+
object,
|
| 825 |
+
uuid(141A546B-02FF-4FB9-A3A3-2F074B74A9A9),
|
| 826 |
+
pointer_default(unique)
|
| 827 |
+
]
|
| 828 |
+
interface IISDB_LDT : IUnknown
|
| 829 |
+
{
|
| 830 |
+
HRESULT Initialize([in] ISectionList * pSectionList,
|
| 831 |
+
[in] IMpeg2Data * pMPEGData);
|
| 832 |
+
|
| 833 |
+
HRESULT GetVersionNumber([out] BYTE * pbVal);
|
| 834 |
+
|
| 835 |
+
HRESULT GetOriginalServiceId([out] WORD * pwVal);
|
| 836 |
+
|
| 837 |
+
HRESULT GetTransportStreamId([out] WORD * pwVal);
|
| 838 |
+
|
| 839 |
+
HRESULT GetOriginalNetworkId([out] WORD * pwVal);
|
| 840 |
+
|
| 841 |
+
HRESULT GetCountOfRecords([out] DWORD * pdwVal);
|
| 842 |
+
|
| 843 |
+
HRESULT GetRecordDescriptionId([in] DWORD dwRecordIndex,
|
| 844 |
+
[out] WORD * pwVal);
|
| 845 |
+
|
| 846 |
+
HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex,
|
| 847 |
+
[out] DWORD * pdwVal);
|
| 848 |
+
|
| 849 |
+
HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex,
|
| 850 |
+
[in] DWORD dwIndex,
|
| 851 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 852 |
+
|
| 853 |
+
HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex,
|
| 854 |
+
[in] BYTE bTag,
|
| 855 |
+
[in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie,
|
| 856 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 857 |
+
|
| 858 |
+
HRESULT GetVersionHash([out] DWORD * pdwVersionHash);
|
| 859 |
+
};
|
| 860 |
+
|
| 861 |
+
|
| 862 |
+
|
| 863 |
+
////////////////////////////////////
|
| 864 |
+
//
|
| 865 |
+
// IISDB_SDTT Interface
|
| 866 |
+
//
|
| 867 |
+
////////////////////////////////////
|
| 868 |
+
|
| 869 |
+
[
|
| 870 |
+
AM_LOCAL
|
| 871 |
+
object,
|
| 872 |
+
uuid(EE60EF2D-813A-4DC7-BF92-EA13DAC85313),
|
| 873 |
+
pointer_default(unique)
|
| 874 |
+
]
|
| 875 |
+
interface IISDB_SDTT : IUnknown
|
| 876 |
+
{
|
| 877 |
+
HRESULT Initialize([in] ISectionList * pSectionList,
|
| 878 |
+
[in] IMpeg2Data * pMPEGData);
|
| 879 |
+
|
| 880 |
+
HRESULT GetVersionNumber([out] BYTE * pbVal);
|
| 881 |
+
|
| 882 |
+
HRESULT GetTableIdExt([out] WORD * pwVal);
|
| 883 |
+
|
| 884 |
+
HRESULT GetTransportStreamId([out] WORD * pwVal);
|
| 885 |
+
|
| 886 |
+
HRESULT GetOriginalNetworkId([out] WORD * pwVal);
|
| 887 |
+
|
| 888 |
+
HRESULT GetServiceId([out] WORD * pwVal);
|
| 889 |
+
|
| 890 |
+
HRESULT GetCountOfRecords([out] DWORD * pdwVal);
|
| 891 |
+
|
| 892 |
+
HRESULT GetRecordGroup([in] DWORD dwRecordIndex,
|
| 893 |
+
[out] BYTE * pbVal);
|
| 894 |
+
|
| 895 |
+
HRESULT GetRecordTargetVersion([in] DWORD dwRecordIndex,
|
| 896 |
+
[out] WORD * pwVal);
|
| 897 |
+
|
| 898 |
+
HRESULT GetRecordNewVersion([in] DWORD dwRecordIndex,
|
| 899 |
+
[out] WORD * pwVal);
|
| 900 |
+
|
| 901 |
+
HRESULT GetRecordDownloadLevel([in] DWORD dwRecordIndex,
|
| 902 |
+
[out] BYTE * pbVal);
|
| 903 |
+
|
| 904 |
+
HRESULT GetRecordVersionIndicator([in] DWORD dwRecordIndex,
|
| 905 |
+
[out] BYTE * pbVal);
|
| 906 |
+
|
| 907 |
+
HRESULT GetRecordScheduleTimeShiftInformation([in] DWORD dwRecordIndex,
|
| 908 |
+
[out] BYTE * pbVal);
|
| 909 |
+
|
| 910 |
+
HRESULT GetRecordCountOfSchedules([in] DWORD dwRecordIndex,
|
| 911 |
+
[out] DWORD * pdwVal);
|
| 912 |
+
|
| 913 |
+
HRESULT GetRecordStartTimeByIndex([in] DWORD dwRecordIndex,
|
| 914 |
+
[in] DWORD dwIndex,
|
| 915 |
+
[out] MPEG_DATE_AND_TIME * pmdtVal);
|
| 916 |
+
|
| 917 |
+
HRESULT GetRecordDurationByIndex([in] DWORD dwRecordIndex,
|
| 918 |
+
[in] DWORD dwIndex,
|
| 919 |
+
[out] MPEG_DURATION * pmdVal);
|
| 920 |
+
|
| 921 |
+
HRESULT GetRecordCountOfDescriptors([in] DWORD dwRecordIndex,
|
| 922 |
+
[out] DWORD * pdwVal);
|
| 923 |
+
|
| 924 |
+
HRESULT GetRecordDescriptorByIndex([in] DWORD dwRecordIndex,
|
| 925 |
+
[in] DWORD dwIndex,
|
| 926 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 927 |
+
|
| 928 |
+
HRESULT GetRecordDescriptorByTag([in] DWORD dwRecordIndex,
|
| 929 |
+
[in] BYTE bTag,
|
| 930 |
+
[in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie,
|
| 931 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 932 |
+
|
| 933 |
+
HRESULT GetVersionHash([out] DWORD * pdwVersionHash);
|
| 934 |
+
};
|
| 935 |
+
|
| 936 |
+
|
| 937 |
+
|
| 938 |
+
////////////////////////////////////
|
| 939 |
+
//
|
| 940 |
+
// IISDB_CDT Interface
|
| 941 |
+
//
|
| 942 |
+
////////////////////////////////////
|
| 943 |
+
|
| 944 |
+
[
|
| 945 |
+
AM_LOCAL
|
| 946 |
+
object,
|
| 947 |
+
uuid(25FA92C2-8B80-4787-A841-3A0E8F17984B),
|
| 948 |
+
pointer_default(unique)
|
| 949 |
+
]
|
| 950 |
+
interface IISDB_CDT : IUnknown
|
| 951 |
+
{
|
| 952 |
+
HRESULT Initialize([in] ISectionList * pSectionList,
|
| 953 |
+
[in] IMpeg2Data * pMPEGData,
|
| 954 |
+
[in] BYTE bSectionNumber);
|
| 955 |
+
|
| 956 |
+
HRESULT GetVersionNumber([out] BYTE * pbVal);
|
| 957 |
+
|
| 958 |
+
HRESULT GetDownloadDataId([out] WORD * pwVal);
|
| 959 |
+
|
| 960 |
+
HRESULT GetSectionNumber([out] BYTE * pbVal);
|
| 961 |
+
|
| 962 |
+
HRESULT GetOriginalNetworkId([out] WORD * pwVal);
|
| 963 |
+
|
| 964 |
+
HRESULT GetDataType([out] BYTE * pbVal);
|
| 965 |
+
|
| 966 |
+
HRESULT GetCountOfTableDescriptors([out] DWORD * pdwVal);
|
| 967 |
+
|
| 968 |
+
HRESULT GetTableDescriptorByIndex([in] DWORD dwIndex,
|
| 969 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 970 |
+
|
| 971 |
+
HRESULT GetTableDescriptorByTag([in] BYTE bTag,
|
| 972 |
+
[in, out, AM_ANNOTATION("_Inout_opt_")] DWORD * pdwCookie,
|
| 973 |
+
[out] IGenericDescriptor ** ppDescriptor);
|
| 974 |
+
|
| 975 |
+
HRESULT GetSizeOfDataModule([out] DWORD * pdwVal);
|
| 976 |
+
|
| 977 |
+
HRESULT GetDataModule([out] BYTE ** pbData);
|
| 978 |
+
|
| 979 |
+
HRESULT GetVersionHash([out] DWORD * pdwVersionHash);
|
| 980 |
+
};
|
| 981 |
+
|
| 982 |
+
|
| 983 |
+
|
| 984 |
+
////////////////////////////////////
|
| 985 |
+
//
|
| 986 |
+
// IISDB_EMM Interface
|
| 987 |
+
//
|
| 988 |
+
////////////////////////////////////
|
| 989 |
+
|
| 990 |
+
[
|
| 991 |
+
AM_LOCAL
|
| 992 |
+
object,
|
| 993 |
+
uuid(0EDB556D-43AD-4938-9668-321B2FFECFD3),
|
| 994 |
+
pointer_default(unique)
|
| 995 |
+
]
|
| 996 |
+
interface IISDB_EMM : IUnknown
|
| 997 |
+
{
|
| 998 |
+
HRESULT Initialize([in] ISectionList * pSectionList,
|
| 999 |
+
[in] IMpeg2Data * pMPEGData);
|
| 1000 |
+
|
| 1001 |
+
HRESULT GetVersionNumber([out] BYTE * pbVal);
|
| 1002 |
+
|
| 1003 |
+
HRESULT GetTableIdExtension([out] WORD * pwVal);
|
| 1004 |
+
|
| 1005 |
+
HRESULT GetDataBytes(
|
| 1006 |
+
[in, out] WORD * pwBufferLength, // retuen reqired buffer length if pbBuffer is null.
|
| 1007 |
+
[out] BYTE * pbBuffer
|
| 1008 |
+
);
|
| 1009 |
+
|
| 1010 |
+
HRESULT GetSharedEmmMessage(
|
| 1011 |
+
/*[out]*/ WORD * pwLength,
|
| 1012 |
+
/*[out]*/ BYTE ** ppbMessage); // If this method succeeds, the client must release by CoTaskMemFree
|
| 1013 |
+
|
| 1014 |
+
HRESULT GetIndividualEmmMessage(
|
| 1015 |
+
/*[in]*/ IUnknown * pUnknown,
|
| 1016 |
+
/*[out]*/ WORD * pwLength,
|
| 1017 |
+
/*[out]*/ BYTE ** ppbMessage); // If this method succeeds, the client must release by CoTaskMemFree
|
| 1018 |
+
|
| 1019 |
+
HRESULT GetVersionHash([out] DWORD * pdwVersionHash);
|
| 1020 |
+
};
|
| 1021 |
+
|
| 1022 |
+
|
| 1023 |
+
|
| 1024 |
+
////////////////////////////////////
|
| 1025 |
+
//
|
| 1026 |
+
// IDvbServiceAttributeDescriptor Interface
|
| 1027 |
+
//
|
| 1028 |
+
////////////////////////////////////
|
| 1029 |
+
|
| 1030 |
+
[
|
| 1031 |
+
AM_LOCAL
|
| 1032 |
+
object,
|
| 1033 |
+
uuid(0F37BD92-D6A1-4854-B950-3A969D27F30E),
|
| 1034 |
+
pointer_default(unique)
|
| 1035 |
+
]
|
| 1036 |
+
interface IDvbServiceAttributeDescriptor : IUnknown
|
| 1037 |
+
{
|
| 1038 |
+
HRESULT GetTag([out] BYTE * pbVal);
|
| 1039 |
+
|
| 1040 |
+
HRESULT GetLength([out] BYTE * pbVal);
|
| 1041 |
+
|
| 1042 |
+
HRESULT GetCountOfRecords([out] BYTE * pbVal);
|
| 1043 |
+
|
| 1044 |
+
HRESULT GetRecordServiceId([in] BYTE bRecordIndex,
|
| 1045 |
+
[out] WORD * pwVal);
|
| 1046 |
+
|
| 1047 |
+
HRESULT GetRecordNumericSelectionFlag([in] BYTE bRecordIndex,
|
| 1048 |
+
[out] BOOL * pfVal);
|
| 1049 |
+
|
| 1050 |
+
HRESULT GetRecordVisibleServiceFlag([in] BYTE bRecordIndex,
|
| 1051 |
+
[out] BOOL * pfVal);
|
| 1052 |
+
};
|
| 1053 |
+
|
| 1054 |
+
|
| 1055 |
+
|
| 1056 |
+
////////////////////////////////////
|
| 1057 |
+
//
|
| 1058 |
+
// IDvbContentIdentifierDescriptor Interface
|
| 1059 |
+
//
|
| 1060 |
+
////////////////////////////////////
|
| 1061 |
+
|
| 1062 |
+
typedef enum
|
| 1063 |
+
{
|
| 1064 |
+
CRID_LOCATION_IN_DESCRIPTOR = 0x0,
|
| 1065 |
+
CRID_LOCATION_IN_CIT = 0x1,
|
| 1066 |
+
CRID_LOCATION_DVB_RESERVED1 = 0x2,
|
| 1067 |
+
CRID_LOCATION_DVB_RESERVED2 = 0x3,
|
| 1068 |
+
|
| 1069 |
+
} CRID_LOCATION;
|
| 1070 |
+
|
| 1071 |
+
[
|
| 1072 |
+
AM_LOCAL
|
| 1073 |
+
object,
|
| 1074 |
+
uuid(05E0C1EA-F661-4053-9FBF-D93B28359838),
|
| 1075 |
+
pointer_default(unique)
|
| 1076 |
+
]
|
| 1077 |
+
interface IDvbContentIdentifierDescriptor : IUnknown
|
| 1078 |
+
{
|
| 1079 |
+
HRESULT GetTag([out] BYTE * pbVal);
|
| 1080 |
+
|
| 1081 |
+
HRESULT GetLength([out] BYTE * pbVal);
|
| 1082 |
+
|
| 1083 |
+
HRESULT GetCountOfRecords([out] BYTE * pbVal);
|
| 1084 |
+
|
| 1085 |
+
HRESULT GetRecordCrid([in] BYTE bRecordIndex,
|
| 1086 |
+
[out] BYTE * pbType,
|
| 1087 |
+
[out] BYTE * pbLocation,
|
| 1088 |
+
[out] BYTE * pbLength,
|
| 1089 |
+
[out, size_is( , *pbLength)] BYTE ** ppbBytes);
|
| 1090 |
+
};
|
| 1091 |
+
|
| 1092 |
+
|
| 1093 |
+
|
| 1094 |
+
////////////////////////////////////
|
| 1095 |
+
//
|
| 1096 |
+
// IDvbDefaultAuthorityDescriptor Interface
|
| 1097 |
+
//
|
| 1098 |
+
////////////////////////////////////
|
| 1099 |
+
|
| 1100 |
+
[
|
| 1101 |
+
AM_LOCAL
|
| 1102 |
+
object,
|
| 1103 |
+
uuid(05EC24D1-3A31-44e7-B408-67C60A352276),
|
| 1104 |
+
pointer_default(unique)
|
| 1105 |
+
]
|
| 1106 |
+
interface IDvbDefaultAuthorityDescriptor : IUnknown
|
| 1107 |
+
{
|
| 1108 |
+
HRESULT GetTag([out] BYTE * pbVal);
|
| 1109 |
+
|
| 1110 |
+
HRESULT GetLength([out] BYTE * pbVal);
|
| 1111 |
+
|
| 1112 |
+
HRESULT GetDefaultAuthority([out] BYTE * pbLength,
|
| 1113 |
+
[out, size_is( , *pbLength)] BYTE ** ppbBytes);
|
| 1114 |
+
};
|
| 1115 |
+
|
| 1116 |
+
|
| 1117 |
+
|
| 1118 |
+
////////////////////////////////////
|
| 1119 |
+
//
|
| 1120 |
+
// IDvbSatelliteDeliverySystemDescriptor Interface
|
| 1121 |
+
//
|
| 1122 |
+
////////////////////////////////////
|
| 1123 |
+
|
| 1124 |
+
[
|
| 1125 |
+
AM_LOCAL
|
| 1126 |
+
object,
|
| 1127 |
+
uuid(02F2225A-805B-4ec5-A9A6-F9B5913CD470),
|
| 1128 |
+
pointer_default(unique)
|
| 1129 |
+
]
|
| 1130 |
+
interface IDvbSatelliteDeliverySystemDescriptor : IUnknown
|
| 1131 |
+
{
|
| 1132 |
+
HRESULT GetTag([out] BYTE * pbVal);
|
| 1133 |
+
|
| 1134 |
+
HRESULT GetLength([out] BYTE * pbVal);
|
| 1135 |
+
|
| 1136 |
+
HRESULT GetFrequency([out] DWORD * pdwVal);
|
| 1137 |
+
|
| 1138 |
+
HRESULT GetOrbitalPosition([out] WORD * pwVal);
|
| 1139 |
+
|
| 1140 |
+
HRESULT GetWestEastFlag([out] BYTE * pbVal);
|
| 1141 |
+
|
| 1142 |
+
HRESULT GetPolarization([out] BYTE * pbVal);
|
| 1143 |
+
|
| 1144 |
+
HRESULT GetModulation([out] BYTE * pbVal);
|
| 1145 |
+
|
| 1146 |
+
HRESULT GetSymbolRate([out] DWORD * pdwVal);
|
| 1147 |
+
|
| 1148 |
+
HRESULT GetFECInner([out] BYTE * pbVal);
|
| 1149 |
+
};
|
| 1150 |
+
|
| 1151 |
+
|
| 1152 |
+
|
| 1153 |
+
////////////////////////////////////
|
| 1154 |
+
//
|
| 1155 |
+
// IDvbCableDeliverySystemDescriptor Interface
|
| 1156 |
+
//
|
| 1157 |
+
////////////////////////////////////
|
| 1158 |
+
|
| 1159 |
+
[
|
| 1160 |
+
AM_LOCAL
|
| 1161 |
+
object,
|
| 1162 |
+
uuid(DFB98E36-9E1A-4862-9946-993A4E59017B),
|
| 1163 |
+
pointer_default(unique)
|
| 1164 |
+
]
|
| 1165 |
+
interface IDvbCableDeliverySystemDescriptor : IUnknown
|
| 1166 |
+
{
|
| 1167 |
+
HRESULT GetTag([out] BYTE * pbVal);
|
| 1168 |
+
|
| 1169 |
+
HRESULT GetLength([out] BYTE * pbVal);
|
| 1170 |
+
|
| 1171 |
+
HRESULT GetFrequency([out] DWORD * pdwVal);
|
| 1172 |
+
|
| 1173 |
+
HRESULT GetFECOuter([out] BYTE * pbVal);
|
| 1174 |
+
|
| 1175 |
+
HRESULT GetModulation([out] BYTE * pbVal);
|
| 1176 |
+
|
| 1177 |
+
HRESULT GetSymbolRate([out] DWORD * pdwVal);
|
| 1178 |
+
|
| 1179 |
+
HRESULT GetFECInner([out] BYTE * pbVal);
|
| 1180 |
+
};
|
| 1181 |
+
|
| 1182 |
+
|
| 1183 |
+
|
| 1184 |
+
////////////////////////////////////
|
| 1185 |
+
//
|
| 1186 |
+
// IDvbTerrestrialDeliverySystemDescriptor Interface
|
| 1187 |
+
//
|
| 1188 |
+
////////////////////////////////////
|
| 1189 |
+
|
| 1190 |
+
[
|
| 1191 |
+
AM_LOCAL
|
| 1192 |
+
object,
|
| 1193 |
+
uuid(ED7E1B91-D12E-420c-B41D-A49D84FE1823),
|
| 1194 |
+
pointer_default(unique)
|
| 1195 |
+
]
|
| 1196 |
+
interface IDvbTerrestrialDeliverySystemDescriptor : IUnknown
|
| 1197 |
+
{
|
| 1198 |
+
HRESULT GetTag([out] BYTE * pbVal);
|
| 1199 |
+
|
| 1200 |
+
HRESULT GetLength([out] BYTE * pbVal);
|
| 1201 |
+
|
| 1202 |
+
HRESULT GetCentreFrequency([out] DWORD * pdwVal);
|
| 1203 |
+
|
| 1204 |
+
HRESULT GetBandwidth([out] BYTE * pbVal);
|
| 1205 |
+
|
| 1206 |
+
HRESULT GetConstellation([out] BYTE * pbVal);
|
| 1207 |
+
|
| 1208 |
+
HRESULT GetHierarchyInformation([out] BYTE * pbVal);
|
| 1209 |
+
|
| 1210 |
+
HRESULT GetCodeRateHPStream([out] BYTE * pbVal);
|
| 1211 |
+
|
| 1212 |
+
HRESULT GetCodeRateLPStream([out] BYTE * pbVal);
|
| 1213 |
+
|
| 1214 |
+
HRESULT GetGuardInterval([out] BYTE * pbVal);
|
| 1215 |
+
|
| 1216 |
+
HRESULT GetTransmissionMode([out] BYTE * pbVal);
|
| 1217 |
+
|
| 1218 |
+
HRESULT GetOtherFrequencyFlag([out] BYTE * pbVal);
|
| 1219 |
+
};
|
| 1220 |
+
|
| 1221 |
+
////////////////////////////////////
|
| 1222 |
+
//
|
| 1223 |
+
// IDvbTerrestrial2DeliverySystemDescriptor Interface
|
| 1224 |
+
//
|
| 1225 |
+
////////////////////////////////////
|
| 1226 |
+
|
| 1227 |
+
[
|
| 1228 |
+
AM_LOCAL
|
| 1229 |
+
object,
|
| 1230 |
+
uuid(20EE9BE9-CD57-49ab-8F6E-1D07AEB8E482),
|
| 1231 |
+
pointer_default(unique)
|
| 1232 |
+
]
|
| 1233 |
+
interface IDvbTerrestrial2DeliverySystemDescriptor : IUnknown
|
| 1234 |
+
{
|
| 1235 |
+
HRESULT GetTag([out] BYTE * pbVal);
|
| 1236 |
+
|
| 1237 |
+
HRESULT GetLength([out] BYTE * pbVal);
|
| 1238 |
+
|
| 1239 |
+
HRESULT GetTagExtension([out] BYTE * pbVal);
|
| 1240 |
+
|
| 1241 |
+
HRESULT GetCentreFrequency([out] DWORD * pdwVal);
|
| 1242 |
+
|
| 1243 |
+
HRESULT GetPLPId([out] BYTE * pbVal);
|
| 1244 |
+
|
| 1245 |
+
HRESULT GetT2SystemId([out] WORD * pwVal);
|
| 1246 |
+
|
| 1247 |
+
HRESULT GetMultipleInputMode([out] BYTE * pbVal);
|
| 1248 |
+
|
| 1249 |
+
HRESULT GetBandwidth([out] BYTE * pbVal);
|
| 1250 |
+
|
| 1251 |
+
HRESULT GetGuardInterval([out] BYTE * pbVal);
|
| 1252 |
+
|
| 1253 |
+
HRESULT GetTransmissionMode([out] BYTE * pbVal);
|
| 1254 |
+
|
| 1255 |
+
HRESULT GetCellId([out] WORD * pwVal);
|
| 1256 |
+
|
| 1257 |
+
HRESULT GetOtherFrequencyFlag([out] BYTE * pbVal);
|
| 1258 |
+
|
| 1259 |
+
HRESULT GetTFSFlag([out] BYTE * pbVal);
|
| 1260 |
+
|
| 1261 |
+
};
|
| 1262 |
+
|
| 1263 |
+
|
| 1264 |
+
////////////////////////////////////
|
| 1265 |
+
//
|
| 1266 |
+
// IDvbFrequencyListDescriptor Interface
|
| 1267 |
+
//
|
| 1268 |
+
////////////////////////////////////
|
| 1269 |
+
|
| 1270 |
+
[
|
| 1271 |
+
AM_LOCAL
|
| 1272 |
+
object,
|
| 1273 |
+
uuid(1CADB613-E1DD-4512-AFA8-BB7A007EF8B1),
|
| 1274 |
+
pointer_default(unique)
|
| 1275 |
+
]
|
| 1276 |
+
interface IDvbFrequencyListDescriptor : IUnknown
|
| 1277 |
+
{
|
| 1278 |
+
HRESULT GetTag([out] BYTE * pbVal);
|
| 1279 |
+
|
| 1280 |
+
HRESULT GetLength([out] BYTE * pbVal);
|
| 1281 |
+
|
| 1282 |
+
HRESULT GetCodingType([out] BYTE * pbVal);
|
| 1283 |
+
|
| 1284 |
+
HRESULT GetCountOfRecords([out] BYTE * pbVal);
|
| 1285 |
+
|
| 1286 |
+
HRESULT GetRecordCentreFrequency([in] BYTE bRecordIndex,
|
| 1287 |
+
[out] DWORD * pdwVal);
|
| 1288 |
+
};
|
| 1289 |
+
|
| 1290 |
+
|
| 1291 |
+
|
| 1292 |
+
////////////////////////////////////
|
| 1293 |
+
//
|
| 1294 |
+
// IDvbPrivateDataSpecifierDescriptor Interface
|
| 1295 |
+
//
|
| 1296 |
+
////////////////////////////////////
|
| 1297 |
+
|
| 1298 |
+
[
|
| 1299 |
+
AM_LOCAL
|
| 1300 |
+
object,
|
| 1301 |
+
uuid(5660A019-E75A-4b82-9B4C-ED2256D165A2),
|
| 1302 |
+
pointer_default(unique)
|
| 1303 |
+
]
|
| 1304 |
+
interface IDvbPrivateDataSpecifierDescriptor : IUnknown
|
| 1305 |
+
{
|
| 1306 |
+
HRESULT GetTag([out] BYTE * pbVal);
|
| 1307 |
+
|
| 1308 |
+
HRESULT GetLength([out] BYTE * pbVal);
|
| 1309 |
+
|
| 1310 |
+
HRESULT GetPrivateDataSpecifier([out] DWORD * pdwVal);
|
| 1311 |
+
};
|
| 1312 |
+
|
| 1313 |
+
|
| 1314 |
+
|
| 1315 |
+
////////////////////////////////////
|
| 1316 |
+
//
|
| 1317 |
+
// IDvbLogicalChannelDescriptor Interface
|
| 1318 |
+
//
|
| 1319 |
+
////////////////////////////////////
|
| 1320 |
+
|
| 1321 |
+
[
|
| 1322 |
+
AM_LOCAL
|
| 1323 |
+
object,
|
| 1324 |
+
uuid(CF1EDAFF-3FFD-4cf7-8201-35756ACBF85F),
|
| 1325 |
+
pointer_default(unique)
|
| 1326 |
+
]
|
| 1327 |
+
interface IDvbLogicalChannelDescriptor : IUnknown
|
| 1328 |
+
{
|
| 1329 |
+
HRESULT GetTag([out] BYTE * pbVal);
|
| 1330 |
+
|
| 1331 |
+
HRESULT GetLength([out] BYTE * pbVal);
|
| 1332 |
+
|
| 1333 |
+
HRESULT GetCountOfRecords([out] BYTE * pbVal);
|
| 1334 |
+
|
| 1335 |
+
HRESULT GetRecordServiceId([in] BYTE bRecordIndex,
|
| 1336 |
+
[out] WORD * pwVal);
|
| 1337 |
+
|
| 1338 |
+
HRESULT GetRecordLogicalChannelNumber([in] BYTE bRecordIndex,
|
| 1339 |
+
[out] WORD * pwVal);
|
| 1340 |
+
};
|
| 1341 |
+
|
| 1342 |
+
|
| 1343 |
+
|
| 1344 |
+
////////////////////////////////////
|
| 1345 |
+
//
|
| 1346 |
+
// IDvbLogicalChannelDescriptor2 Interface.
|
| 1347 |
+
//
|
| 1348 |
+
// Extension to the IDvbLogicalChannelDescriptor
|
| 1349 |
+
// interface to also return channel visibility
|
| 1350 |
+
//
|
| 1351 |
+
////////////////////////////////////
|
| 1352 |
+
|
| 1353 |
+
[
|
| 1354 |
+
AM_LOCAL
|
| 1355 |
+
object,
|
| 1356 |
+
uuid(43ACA974-4BE8-4b98-BC17-9EAFD788B1D7),
|
| 1357 |
+
pointer_default(unique)
|
| 1358 |
+
]
|
| 1359 |
+
interface IDvbLogicalChannelDescriptor2 : IDvbLogicalChannelDescriptor
|
| 1360 |
+
{
|
| 1361 |
+
HRESULT GetRecordLogicalChannelAndVisibility([in] BYTE bRecordIndex,
|
| 1362 |
+
[out] WORD * pwVal);
|
| 1363 |
+
};
|
| 1364 |
+
|
| 1365 |
+
|
| 1366 |
+
|
| 1367 |
+
////////////////////////////////////
|
| 1368 |
+
//
|
| 1369 |
+
// IDvbLogicalChannel2Descriptor Interface
|
| 1370 |
+
//
|
| 1371 |
+
// Extension to the IDvbLogicalChannelDescriptor2 to implement fields
|
| 1372 |
+
// available in version 2 of the DVB Logical Channel descriptor.
|
| 1373 |
+
//
|
| 1374 |
+
////////////////////////////////////
|
| 1375 |
+
|
| 1376 |
+
[
|
| 1377 |
+
AM_LOCAL
|
| 1378 |
+
object,
|
| 1379 |
+
uuid(F69C3747-8A30-4980-998C-01FE7F0BA35A),
|
| 1380 |
+
pointer_default(unique)
|
| 1381 |
+
]
|
| 1382 |
+
interface IDvbLogicalChannel2Descriptor : IDvbLogicalChannelDescriptor2
|
| 1383 |
+
{
|
| 1384 |
+
HRESULT GetCountOfLists([out] BYTE * pbVal);
|
| 1385 |
+
|
| 1386 |
+
HRESULT GetListId([in] BYTE bListIndex,
|
| 1387 |
+
[out] BYTE * pbVal);
|
| 1388 |
+
|
| 1389 |
+
HRESULT GetListNameW([in] BYTE bListIndex,
|
| 1390 |
+
[in] DVB_STRCONV_MODE convMode,
|
| 1391 |
+
[out] BSTR * pbstrName);
|
| 1392 |
+
|
| 1393 |
+
HRESULT GetListCountryCode([in] BYTE bListIndex,
|
| 1394 |
+
[out AM_ANNOTATION("_Out_writes_(4)")] char * pszCode);
|
| 1395 |
+
|
| 1396 |
+
HRESULT GetListCountOfRecords([in] BYTE bChannelListIndex,
|
| 1397 |
+
[out] BYTE * pbVal);
|
| 1398 |
+
|
| 1399 |
+
HRESULT GetListRecordServiceId([in] BYTE bListIndex,
|
| 1400 |
+
[in] BYTE bRecordIndex,
|
| 1401 |
+
[out] WORD * pwVal);
|
| 1402 |
+
|
| 1403 |
+
HRESULT GetListRecordLogicalChannelNumber([in] BYTE bListIndex,
|
| 1404 |
+
[in] BYTE bRecordIndex,
|
| 1405 |
+
[out] WORD * pwVal);
|
| 1406 |
+
|
| 1407 |
+
HRESULT GetListRecordLogicalChannelAndVisibility([in] BYTE bListIndex,
|
| 1408 |
+
[in] BYTE bRecordIndex,
|
| 1409 |
+
[out] WORD * pwVal);
|
| 1410 |
+
};
|
| 1411 |
+
|
| 1412 |
+
|
| 1413 |
+
|
| 1414 |
+
////////////////////////////////////
|
| 1415 |
+
//
|
| 1416 |
+
// IDvbHDSimulcastLogicalChannelDescriptor Interface
|
| 1417 |
+
//
|
| 1418 |
+
////////////////////////////////////
|
| 1419 |
+
|
| 1420 |
+
[
|
| 1421 |
+
AM_LOCAL
|
| 1422 |
+
object,
|
| 1423 |
+
uuid(1EA8B738-A307-4680-9E26-D0A908C824F4),
|
| 1424 |
+
pointer_default(unique)
|
| 1425 |
+
]
|
| 1426 |
+
interface IDvbHDSimulcastLogicalChannelDescriptor : IDvbLogicalChannelDescriptor2
|
| 1427 |
+
{
|
| 1428 |
+
// Identical to IDvbLogicalChannelDescriptor2
|
| 1429 |
+
};
|
| 1430 |
+
|
| 1431 |
+
|
| 1432 |
+
|
| 1433 |
+
////////////////////////////////////
|
| 1434 |
+
//
|
| 1435 |
+
// IDvbDataBroadcastIDDescriptor Interface
|
| 1436 |
+
//
|
| 1437 |
+
////////////////////////////////////
|
| 1438 |
+
|
| 1439 |
+
[
|
| 1440 |
+
AM_LOCAL
|
| 1441 |
+
object,
|
| 1442 |
+
uuid(5F26F518-65C8-4048-91F2-9290F59F7B90),
|
| 1443 |
+
pointer_default(unique)
|
| 1444 |
+
]
|
| 1445 |
+
interface IDvbDataBroadcastIDDescriptor : IUnknown
|
| 1446 |
+
{
|
| 1447 |
+
HRESULT GetTag([out] BYTE * pbVal);
|
| 1448 |
+
|
| 1449 |
+
HRESULT GetLength([out] BYTE * pbVal);
|
| 1450 |
+
|
| 1451 |
+
HRESULT GetDataBroadcastID([out] WORD * pwVal);
|
| 1452 |
+
|
| 1453 |
+
HRESULT GetIDSelectorBytes([in, out] BYTE * pbLen, [out] BYTE * pbVal);
|
| 1454 |
+
};
|
| 1455 |
+
|
| 1456 |
+
////////////////////////////////////
|
| 1457 |
+
//
|
| 1458 |
+
// IDvbDataBroadcastDescriptor Interface
|
| 1459 |
+
//
|
| 1460 |
+
////////////////////////////////////
|
| 1461 |
+
|
| 1462 |
+
[
|
| 1463 |
+
AM_LOCAL
|
| 1464 |
+
object,
|
| 1465 |
+
uuid(D1EBC1D6-8B60-4c20-9CAF-E59382E7C400),
|
| 1466 |
+
pointer_default(unique)
|
| 1467 |
+
]
|
| 1468 |
+
interface IDvbDataBroadcastDescriptor : IUnknown
|
| 1469 |
+
{
|
| 1470 |
+
HRESULT GetTag([out] BYTE * pbVal);
|
| 1471 |
+
|
| 1472 |
+
HRESULT GetLength([out] BYTE * pbVal);
|
| 1473 |
+
|
| 1474 |
+
HRESULT GetDataBroadcastID([out] WORD * pwVal);
|
| 1475 |
+
|
| 1476 |
+
HRESULT GetComponentTag([out] BYTE * pbVal);
|
| 1477 |
+
|
| 1478 |
+
HRESULT GetSelectorLength([out] BYTE * pbVal);
|
| 1479 |
+
|
| 1480 |
+
HRESULT GetSelectorBytes([in, out] BYTE *pbLen, [out] BYTE * pbVal);
|
| 1481 |
+
|
| 1482 |
+
HRESULT GetLangID([out] ULONG * pulVal);
|
| 1483 |
+
|
| 1484 |
+
HRESULT GetTextLength([out] BYTE * pbVal);
|
| 1485 |
+
|
| 1486 |
+
HRESULT GetText([in, out] BYTE *pbLen, [out] BYTE * pbVal);
|
| 1487 |
+
};
|
| 1488 |
+
|
| 1489 |
+
typedef enum
|
| 1490 |
+
{
|
| 1491 |
+
DESC_LINKAGE_RESERVED0 = 0x00,
|
| 1492 |
+
DESC_LINKAGE_INFORMATION,
|
| 1493 |
+
DESC_LINKAGE_EPG,
|
| 1494 |
+
DESC_LINKAGE_CA_REPLACEMENT,
|
| 1495 |
+
DESC_LINKAGE_COMPLETE_NET_BOUQUET_SI,
|
| 1496 |
+
DESC_LINKAGE_REPLACEMENT,
|
| 1497 |
+
DESC_LINKAGE_DATA,
|
| 1498 |
+
DESC_LINKAGE_RESERVED1 = 0x07,
|
| 1499 |
+
DESC_LINKAGE_USER = 0x08,
|
| 1500 |
+
DESC_LINKAGE_RESERVED2 = 0xFF
|
| 1501 |
+
|
| 1502 |
+
} DESC_LINKAGE_TYPE;
|
| 1503 |
+
|
| 1504 |
+
////////////////////////////////////
|
| 1505 |
+
//
|
| 1506 |
+
// IDvbLinkageDescriptor Interface
|
| 1507 |
+
//
|
| 1508 |
+
////////////////////////////////////
|
| 1509 |
+
|
| 1510 |
+
[
|
| 1511 |
+
AM_LOCAL
|
| 1512 |
+
object,
|
| 1513 |
+
uuid(1CDF8B31-994A-46fc-ACFD-6A6BE8934DD5),
|
| 1514 |
+
pointer_default(unique)
|
| 1515 |
+
]
|
| 1516 |
+
interface IDvbLinkageDescriptor : IUnknown
|
| 1517 |
+
{
|
| 1518 |
+
HRESULT GetTag([out] BYTE * pbVal);
|
| 1519 |
+
|
| 1520 |
+
HRESULT GetLength([out] BYTE * pbVal);
|
| 1521 |
+
|
| 1522 |
+
HRESULT GetTSId([out] WORD * pwVal);
|
| 1523 |
+
|
| 1524 |
+
HRESULT GetONId([out] WORD * pwVal);
|
| 1525 |
+
|
| 1526 |
+
HRESULT GetServiceId([out] WORD * pwVal);
|
| 1527 |
+
|
| 1528 |
+
HRESULT GetLinkageType([out] BYTE * pbVal);
|
| 1529 |
+
|
| 1530 |
+
HRESULT GetPrivateDataLength([out] BYTE * pbVal);
|
| 1531 |
+
|
| 1532 |
+
HRESULT GetPrivateData([in, out] BYTE *pbLen, [out] BYTE * pbData);
|
| 1533 |
+
};
|
| 1534 |
+
|
| 1535 |
+
////////////////////////////////////
|
| 1536 |
+
//
|
| 1537 |
+
// IDvbTeletextDescriptor Interface
|
| 1538 |
+
//
|
| 1539 |
+
////////////////////////////////////
|
| 1540 |
+
|
| 1541 |
+
[
|
| 1542 |
+
AM_LOCAL
|
| 1543 |
+
object,
|
| 1544 |
+
uuid(9CD29D47-69C6-4f92-98A9-210AF1B7303A),
|
| 1545 |
+
pointer_default(unique)
|
| 1546 |
+
]
|
| 1547 |
+
interface IDvbTeletextDescriptor : IUnknown
|
| 1548 |
+
{
|
| 1549 |
+
HRESULT GetTag([out] BYTE * pbVal);
|
| 1550 |
+
|
| 1551 |
+
HRESULT GetLength([out] BYTE * pbVal);
|
| 1552 |
+
|
| 1553 |
+
HRESULT GetCountOfRecords([out] BYTE * pbVal);
|
| 1554 |
+
|
| 1555 |
+
HRESULT GetRecordLangId([in] BYTE bRecordIndex,
|
| 1556 |
+
[out] ULONG * pulVal);
|
| 1557 |
+
|
| 1558 |
+
HRESULT GetRecordTeletextType([in] BYTE bRecordIndex,
|
| 1559 |
+
[out] BYTE * pbVal);
|
| 1560 |
+
HRESULT GetRecordMagazineNumber([in] BYTE bRecordIndex,
|
| 1561 |
+
[out] BYTE * pbVal);
|
| 1562 |
+
HRESULT GetRecordPageNumber([in] BYTE bRecordIndex,
|
| 1563 |
+
[out] BYTE * pbVal);
|
| 1564 |
+
};
|
| 1565 |
+
|
| 1566 |
+
////////////////////////////////////
|
| 1567 |
+
//
|
| 1568 |
+
// IDvbSubtitlingDescriptor Interface
|
| 1569 |
+
//
|
| 1570 |
+
////////////////////////////////////
|
| 1571 |
+
|
| 1572 |
+
[
|
| 1573 |
+
AM_LOCAL
|
| 1574 |
+
object,
|
| 1575 |
+
uuid(9B25FE1D-FA23-4e50-9784-6DF8B26F8A49),
|
| 1576 |
+
pointer_default(unique)
|
| 1577 |
+
]
|
| 1578 |
+
interface IDvbSubtitlingDescriptor : IUnknown
|
| 1579 |
+
{
|
| 1580 |
+
HRESULT GetTag([out] BYTE * pbVal);
|
| 1581 |
+
|
| 1582 |
+
HRESULT GetLength([out] BYTE * pbVal);
|
| 1583 |
+
|
| 1584 |
+
HRESULT GetCountOfRecords([out] BYTE * pbVal);
|
| 1585 |
+
|
| 1586 |
+
HRESULT GetRecordLangId([in] BYTE bRecordIndex,
|
| 1587 |
+
[out] ULONG * pulVal);
|
| 1588 |
+
|
| 1589 |
+
HRESULT GetRecordSubtitlingType([in] BYTE bRecordIndex,
|
| 1590 |
+
[out] BYTE * pbVal);
|
| 1591 |
+
HRESULT GetRecordCompositionPageID([in] BYTE bRecordIndex,
|
| 1592 |
+
[out] WORD * pwVal);
|
| 1593 |
+
HRESULT GetRecordAncillaryPageID([in] BYTE bRecordIndex,
|
| 1594 |
+
[out] WORD * pwVal);
|
| 1595 |
+
};
|
| 1596 |
+
|
| 1597 |
+
////////////////////////////////////
|
| 1598 |
+
//
|
| 1599 |
+
// IDvbServiceDescriptor Interface
|
| 1600 |
+
//
|
| 1601 |
+
////////////////////////////////////
|
| 1602 |
+
|
| 1603 |
+
[
|
| 1604 |
+
AM_LOCAL
|
| 1605 |
+
object,
|
| 1606 |
+
uuid(F9C7FBCF-E2D6-464d-B32D-2EF526E49290),
|
| 1607 |
+
pointer_default(unique)
|
| 1608 |
+
]
|
| 1609 |
+
interface IDvbServiceDescriptor : IUnknown
|
| 1610 |
+
{
|
| 1611 |
+
HRESULT GetTag([out] BYTE * pbVal);
|
| 1612 |
+
|
| 1613 |
+
HRESULT GetLength([out] BYTE * pbVal);
|
| 1614 |
+
|
| 1615 |
+
HRESULT GetServiceType([out] BYTE * pbVal);
|
| 1616 |
+
|
| 1617 |
+
HRESULT GetServiceProviderName([out AM_ANNOTATION("_Outptr_")] char ** pszName);
|
| 1618 |
+
|
| 1619 |
+
HRESULT GetServiceProviderNameW([out AM_ANNOTATION("_Outptr_")] BSTR* pbstrName);
|
| 1620 |
+
|
| 1621 |
+
HRESULT GetServiceName([out AM_ANNOTATION("_Outptr_")] char ** pszName);
|
| 1622 |
+
|
| 1623 |
+
HRESULT GetProcessedServiceName([out] BSTR *pbstrName);
|
| 1624 |
+
|
| 1625 |
+
HRESULT GetServiceNameEmphasized([out] BSTR *pbstrName);
|
| 1626 |
+
};
|
| 1627 |
+
|
| 1628 |
+
////////////////////////////////////
|
| 1629 |
+
//
|
| 1630 |
+
// IDvbServiceDescriptor2 Interface
|
| 1631 |
+
// Added generic string functions
|
| 1632 |
+
//
|
| 1633 |
+
////////////////////////////////////
|
| 1634 |
+
|
| 1635 |
+
[
|
| 1636 |
+
AM_LOCAL
|
| 1637 |
+
object,
|
| 1638 |
+
uuid(D6C76506-85AB-487C-9B2B-36416511E4A2),
|
| 1639 |
+
pointer_default(unique)
|
| 1640 |
+
]
|
| 1641 |
+
interface IDvbServiceDescriptor2 : IDvbServiceDescriptor
|
| 1642 |
+
{
|
| 1643 |
+
HRESULT GetServiceProviderNameW(
|
| 1644 |
+
[in] DVB_STRCONV_MODE convMode,
|
| 1645 |
+
[out] BSTR * pbstrName);
|
| 1646 |
+
|
| 1647 |
+
HRESULT GetServiceNameW(
|
| 1648 |
+
[in] DVB_STRCONV_MODE convMode,
|
| 1649 |
+
[out] BSTR * pbstrName);
|
| 1650 |
+
};
|
| 1651 |
+
|
| 1652 |
+
|
| 1653 |
+
|
| 1654 |
+
////////////////////////////////////
|
| 1655 |
+
//
|
| 1656 |
+
// IDvbServiceListDescriptor Interface
|
| 1657 |
+
// for DVB/ISDB
|
| 1658 |
+
//
|
| 1659 |
+
////////////////////////////////////
|
| 1660 |
+
|
| 1661 |
+
[
|
| 1662 |
+
AM_LOCAL
|
| 1663 |
+
object,
|
| 1664 |
+
uuid(05DB0D8F-6008-491a-ACD3-7090952707D0),
|
| 1665 |
+
pointer_default(unique)
|
| 1666 |
+
]
|
| 1667 |
+
interface IDvbServiceListDescriptor : IUnknown
|
| 1668 |
+
{
|
| 1669 |
+
HRESULT GetTag([out] BYTE * pbVal);
|
| 1670 |
+
|
| 1671 |
+
HRESULT GetLength([out] BYTE * pbVal);
|
| 1672 |
+
|
| 1673 |
+
HRESULT GetCountOfRecords([out] BYTE * pbVal);
|
| 1674 |
+
|
| 1675 |
+
HRESULT GetRecordServiceId([in] BYTE bRecordIndex,
|
| 1676 |
+
[out] WORD * pwVal);
|
| 1677 |
+
|
| 1678 |
+
HRESULT GetRecordServiceType([in] BYTE bRecordIndex,
|
| 1679 |
+
[out] BYTE * pbVal);
|
| 1680 |
+
};
|
| 1681 |
+
|
| 1682 |
+
/////////////////////////////////////////////////
|
| 1683 |
+
//
|
| 1684 |
+
// IDvbMultilingualServiceNameDescriptor Interface
|
| 1685 |
+
//
|
| 1686 |
+
/////////////////////////////////////////////////
|
| 1687 |
+
|
| 1688 |
+
[
|
| 1689 |
+
AM_LOCAL
|
| 1690 |
+
object,
|
| 1691 |
+
uuid(2D80433B-B32C-47ef-987F-E78EBB773E34),
|
| 1692 |
+
pointer_default(unique)
|
| 1693 |
+
]
|
| 1694 |
+
interface IDvbMultilingualServiceNameDescriptor : IUnknown
|
| 1695 |
+
{
|
| 1696 |
+
HRESULT GetTag([out] BYTE * pbVal);
|
| 1697 |
+
|
| 1698 |
+
HRESULT GetLength([out] BYTE * pbVal);
|
| 1699 |
+
|
| 1700 |
+
HRESULT GetCountOfRecords([out] BYTE * pbVal);
|
| 1701 |
+
|
| 1702 |
+
HRESULT GetRecordLangId ([in] BYTE bRecordIndex,
|
| 1703 |
+
[out] ULONG * ulVal);
|
| 1704 |
+
|
| 1705 |
+
HRESULT GetRecordServiceProviderNameW(
|
| 1706 |
+
[in] BYTE bRecordIndex,
|
| 1707 |
+
[in] DVB_STRCONV_MODE convMode,
|
| 1708 |
+
[out] BSTR * pbstrName);
|
| 1709 |
+
|
| 1710 |
+
HRESULT GetRecordServiceNameW(
|
| 1711 |
+
[in] BYTE bRecordIndex,
|
| 1712 |
+
[in] DVB_STRCONV_MODE convMode,
|
| 1713 |
+
[out] BSTR * pbstrName);
|
| 1714 |
+
};
|
| 1715 |
+
|
| 1716 |
+
///////////////////////////////////////////////////////////
|
| 1717 |
+
//
|
| 1718 |
+
// IDvbNetworkNameDescriptor Interface
|
| 1719 |
+
//
|
| 1720 |
+
///////////////////////////////////////////////////////////
|
| 1721 |
+
[
|
| 1722 |
+
AM_LOCAL
|
| 1723 |
+
object,
|
| 1724 |
+
uuid(5B2A80CF-35B9-446C-B3E4-048B761DBC51),
|
| 1725 |
+
pointer_default(unique)
|
| 1726 |
+
]
|
| 1727 |
+
interface IDvbNetworkNameDescriptor : IUnknown
|
| 1728 |
+
{
|
| 1729 |
+
HRESULT GetTag(
|
| 1730 |
+
[out] BYTE * pbVal
|
| 1731 |
+
);
|
| 1732 |
+
HRESULT GetLength(
|
| 1733 |
+
[out] BYTE * pbVal
|
| 1734 |
+
);
|
| 1735 |
+
HRESULT GetNetworkName(
|
| 1736 |
+
[out AM_ANNOTATION("_Outptr_")] char ** pszName
|
| 1737 |
+
);
|
| 1738 |
+
HRESULT GetNetworkNameW(
|
| 1739 |
+
[in] DVB_STRCONV_MODE convMode,
|
| 1740 |
+
[out] BSTR * pbstrName);
|
| 1741 |
+
};
|
| 1742 |
+
|
| 1743 |
+
|
| 1744 |
+
|
| 1745 |
+
///////////////////////////////////////////////////////////
|
| 1746 |
+
//
|
| 1747 |
+
// IDvbShortEventDescriptor Interface
|
| 1748 |
+
//
|
| 1749 |
+
///////////////////////////////////////////////////////////
|
| 1750 |
+
[
|
| 1751 |
+
AM_LOCAL
|
| 1752 |
+
object,
|
| 1753 |
+
uuid(B170BE92-5B75-458E-9C6E-B0008231491A),
|
| 1754 |
+
pointer_default(unique)
|
| 1755 |
+
]
|
| 1756 |
+
interface IDvbShortEventDescriptor : IUnknown
|
| 1757 |
+
{
|
| 1758 |
+
HRESULT GetTag(
|
| 1759 |
+
[out] BYTE * pbVal
|
| 1760 |
+
);
|
| 1761 |
+
HRESULT GetLength(
|
| 1762 |
+
[out] BYTE * pbVal
|
| 1763 |
+
);
|
| 1764 |
+
HRESULT GetLanguageCode(
|
| 1765 |
+
[out AM_ANNOTATION("_Out_writes_(4)")] char * pszCode
|
| 1766 |
+
);
|
| 1767 |
+
HRESULT GetEventNameW(
|
| 1768 |
+
[in] DVB_STRCONV_MODE convMode,
|
| 1769 |
+
[out] BSTR * pbstrName
|
| 1770 |
+
);
|
| 1771 |
+
HRESULT GetTextW(
|
| 1772 |
+
[in] DVB_STRCONV_MODE convMode,
|
| 1773 |
+
[out] BSTR * pbstrText
|
| 1774 |
+
);
|
| 1775 |
+
};
|
| 1776 |
+
|
| 1777 |
+
|
| 1778 |
+
|
| 1779 |
+
///////////////////////////////////////////////////////////
|
| 1780 |
+
//
|
| 1781 |
+
// IDvbExntededEventDescriptor Interface
|
| 1782 |
+
//
|
| 1783 |
+
///////////////////////////////////////////////////////////
|
| 1784 |
+
[
|
| 1785 |
+
AM_LOCAL
|
| 1786 |
+
object,
|
| 1787 |
+
uuid(C9B22ECA-85F4-499F-B1DB-EFA93A91EE57),
|
| 1788 |
+
pointer_default(unique)
|
| 1789 |
+
]
|
| 1790 |
+
interface IDvbExtendedEventDescriptor : IUnknown
|
| 1791 |
+
{
|
| 1792 |
+
HRESULT GetTag(
|
| 1793 |
+
[out] BYTE * pbVal
|
| 1794 |
+
);
|
| 1795 |
+
HRESULT GetLength(
|
| 1796 |
+
[out] BYTE * pbVal
|
| 1797 |
+
);
|
| 1798 |
+
HRESULT GetDescriptorNumber(
|
| 1799 |
+
[out] BYTE * pbVal
|
| 1800 |
+
);
|
| 1801 |
+
HRESULT GetLastDescriptorNumber(
|
| 1802 |
+
[out] BYTE * pbVal
|
| 1803 |
+
);
|
| 1804 |
+
HRESULT GetLanguageCode(
|
| 1805 |
+
[out AM_ANNOTATION("_Out_writes_(4)")] char * pszCode
|
| 1806 |
+
);
|
| 1807 |
+
HRESULT GetCountOfRecords(
|
| 1808 |
+
[out] BYTE * pbVal
|
| 1809 |
+
);
|
| 1810 |
+
HRESULT GetRecordItemW(
|
| 1811 |
+
[in] BYTE bRecordIndex,
|
| 1812 |
+
[in] DVB_STRCONV_MODE convMode,
|
| 1813 |
+
[out] BSTR * pbstrDesc,
|
| 1814 |
+
[out] BSTR * pbstrItem
|
| 1815 |
+
);
|
| 1816 |
+
HRESULT GetConcatenatedItemW(
|
| 1817 |
+
[in] IDvbExtendedEventDescriptor * pFollowingDescriptor,
|
| 1818 |
+
[in] DVB_STRCONV_MODE convMode,
|
| 1819 |
+
[out] BSTR * pbstrDesc,
|
| 1820 |
+
[out] BSTR * pbstrItem
|
| 1821 |
+
);
|
| 1822 |
+
HRESULT GetTextW(
|
| 1823 |
+
[in] DVB_STRCONV_MODE convMode,
|
| 1824 |
+
[out] BSTR * pbstrText
|
| 1825 |
+
);
|
| 1826 |
+
HRESULT GetConcatenatedTextW(
|
| 1827 |
+
[in] IDvbExtendedEventDescriptor * FollowingDescriptor,
|
| 1828 |
+
[in] DVB_STRCONV_MODE convMode,
|
| 1829 |
+
[out] BSTR * pbstrText
|
| 1830 |
+
);
|
| 1831 |
+
HRESULT GetRecordItemRawBytes(
|
| 1832 |
+
[in] BYTE bRecordIndex,
|
| 1833 |
+
[out] BYTE ** ppbRawItem,
|
| 1834 |
+
[out] BYTE * pbItemLength
|
| 1835 |
+
);
|
| 1836 |
+
};
|
| 1837 |
+
|
| 1838 |
+
|
| 1839 |
+
|
| 1840 |
+
///////////////////////////////////////////////////////////
|
| 1841 |
+
//
|
| 1842 |
+
// IDvbComponentDescriptor Interface
|
| 1843 |
+
//
|
| 1844 |
+
///////////////////////////////////////////////////////////
|
| 1845 |
+
[
|
| 1846 |
+
AM_LOCAL
|
| 1847 |
+
object,
|
| 1848 |
+
uuid(91E405CF-80E7-457F-9096-1B9D1CE32141),
|
| 1849 |
+
pointer_default(unique)
|
| 1850 |
+
]
|
| 1851 |
+
interface IDvbComponentDescriptor : IUnknown
|
| 1852 |
+
{
|
| 1853 |
+
HRESULT GetTag(
|
| 1854 |
+
[out] BYTE * pbVal
|
| 1855 |
+
);
|
| 1856 |
+
HRESULT GetLength(
|
| 1857 |
+
[out] BYTE * pbVal
|
| 1858 |
+
);
|
| 1859 |
+
HRESULT GetStreamContent(
|
| 1860 |
+
[out] BYTE * pbVal
|
| 1861 |
+
);
|
| 1862 |
+
HRESULT GetComponentType(
|
| 1863 |
+
[out] BYTE * pbVal
|
| 1864 |
+
);
|
| 1865 |
+
HRESULT GetComponentTag(
|
| 1866 |
+
[out] BYTE * pbVal
|
| 1867 |
+
);
|
| 1868 |
+
HRESULT GetLanguageCode(
|
| 1869 |
+
[out AM_ANNOTATION("_Out_writes_(4)")] char * pszCode
|
| 1870 |
+
);
|
| 1871 |
+
HRESULT GetTextW(
|
| 1872 |
+
[in] DVB_STRCONV_MODE convMode,
|
| 1873 |
+
[out] BSTR * pbstrText
|
| 1874 |
+
);
|
| 1875 |
+
};
|
| 1876 |
+
|
| 1877 |
+
|
| 1878 |
+
|
| 1879 |
+
///////////////////////////////////////////////////////////
|
| 1880 |
+
//
|
| 1881 |
+
// IDvbContentDescriptor Interface
|
| 1882 |
+
//
|
| 1883 |
+
///////////////////////////////////////////////////////////
|
| 1884 |
+
[
|
| 1885 |
+
AM_LOCAL
|
| 1886 |
+
object,
|
| 1887 |
+
uuid(2E883881-A467-412A-9D63-6F2B6DA05BF0),
|
| 1888 |
+
pointer_default(unique)
|
| 1889 |
+
]
|
| 1890 |
+
interface IDvbContentDescriptor : IUnknown
|
| 1891 |
+
{
|
| 1892 |
+
HRESULT GetTag(
|
| 1893 |
+
[out] BYTE * pbVal
|
| 1894 |
+
);
|
| 1895 |
+
HRESULT GetLength(
|
| 1896 |
+
[out] BYTE * pbVal
|
| 1897 |
+
);
|
| 1898 |
+
HRESULT GetCountOfRecords(
|
| 1899 |
+
[out] BYTE * pbVal
|
| 1900 |
+
);
|
| 1901 |
+
HRESULT GetRecordContentNibbles(
|
| 1902 |
+
[in] BYTE bRecordIndex,
|
| 1903 |
+
[out] BYTE * pbValLevel1,
|
| 1904 |
+
[out] BYTE * pbValLevel2
|
| 1905 |
+
);
|
| 1906 |
+
HRESULT GetRecordUserNibbles(
|
| 1907 |
+
[in] BYTE bRecordIndex,
|
| 1908 |
+
[out] BYTE * pbVal1,
|
| 1909 |
+
[out] BYTE * pbVal2
|
| 1910 |
+
);
|
| 1911 |
+
};
|
| 1912 |
+
|
| 1913 |
+
|
| 1914 |
+
|
| 1915 |
+
///////////////////////////////////////////////////////////
|
| 1916 |
+
//
|
| 1917 |
+
// IDvbParentalRatingDescriptor Interface
|
| 1918 |
+
//
|
| 1919 |
+
///////////////////////////////////////////////////////////
|
| 1920 |
+
[
|
| 1921 |
+
AM_LOCAL
|
| 1922 |
+
object,
|
| 1923 |
+
uuid(3AD9DDE1-FB1B-4186-937F-22E6B5A72A10),
|
| 1924 |
+
pointer_default(unique)
|
| 1925 |
+
]
|
| 1926 |
+
interface IDvbParentalRatingDescriptor : IUnknown
|
| 1927 |
+
{
|
| 1928 |
+
HRESULT GetTag(
|
| 1929 |
+
[out] BYTE * pbVal
|
| 1930 |
+
);
|
| 1931 |
+
HRESULT GetLength(
|
| 1932 |
+
[out] BYTE * pbVal
|
| 1933 |
+
);
|
| 1934 |
+
HRESULT GetCountOfRecords(
|
| 1935 |
+
[out] BYTE * pbVal
|
| 1936 |
+
);
|
| 1937 |
+
HRESULT GetRecordRating(
|
| 1938 |
+
[in] BYTE bRecordIndex,
|
| 1939 |
+
[out AM_ANNOTATION("_Out_writes_(4)")] char * pszCountryCode,
|
| 1940 |
+
[out] BYTE * pbVal
|
| 1941 |
+
);
|
| 1942 |
+
};
|
| 1943 |
+
|
| 1944 |
+
|
| 1945 |
+
|
| 1946 |
+
///////////////////////////////////////////////////////////
|
| 1947 |
+
//
|
| 1948 |
+
// IIsdbTerrestrialDeliverySystemDescriptor Interface
|
| 1949 |
+
//
|
| 1950 |
+
///////////////////////////////////////////////////////////
|
| 1951 |
+
[
|
| 1952 |
+
AM_LOCAL
|
| 1953 |
+
object,
|
| 1954 |
+
uuid(39FAE0A6-D151-44DD-A28A-765DE5991670),
|
| 1955 |
+
pointer_default(unique)
|
| 1956 |
+
]
|
| 1957 |
+
interface IIsdbTerrestrialDeliverySystemDescriptor : IUnknown
|
| 1958 |
+
{
|
| 1959 |
+
HRESULT GetTag(
|
| 1960 |
+
[out] BYTE * pbVal
|
| 1961 |
+
);
|
| 1962 |
+
HRESULT GetLength(
|
| 1963 |
+
[out] BYTE * pbVal
|
| 1964 |
+
);
|
| 1965 |
+
HRESULT GetAreaCode(
|
| 1966 |
+
[out] WORD * pwVal
|
| 1967 |
+
);
|
| 1968 |
+
HRESULT GetGuardInterval(
|
| 1969 |
+
[out] BYTE * pbVal
|
| 1970 |
+
);
|
| 1971 |
+
HRESULT GetTransmissionMode(
|
| 1972 |
+
[out] BYTE * pbVal
|
| 1973 |
+
);
|
| 1974 |
+
HRESULT GetCountOfRecords(
|
| 1975 |
+
[out] BYTE * pbVal
|
| 1976 |
+
);
|
| 1977 |
+
HRESULT GetRecordFrequency(
|
| 1978 |
+
[in] BYTE bRecordIndex,
|
| 1979 |
+
[out] DWORD * pdwVal
|
| 1980 |
+
);
|
| 1981 |
+
};
|
| 1982 |
+
|
| 1983 |
+
|
| 1984 |
+
|
| 1985 |
+
///////////////////////////////////////////////////////////
|
| 1986 |
+
//
|
| 1987 |
+
// IIsdbTSInformationDescriptor Interface
|
| 1988 |
+
//
|
| 1989 |
+
///////////////////////////////////////////////////////////
|
| 1990 |
+
[
|
| 1991 |
+
AM_LOCAL
|
| 1992 |
+
object,
|
| 1993 |
+
uuid(D7AD183E-38F5-4210-B55F-EC8D601BBD47),
|
| 1994 |
+
pointer_default(unique)
|
| 1995 |
+
]
|
| 1996 |
+
interface IIsdbTSInformationDescriptor : IUnknown
|
| 1997 |
+
{
|
| 1998 |
+
HRESULT GetTag(
|
| 1999 |
+
[out] BYTE * pbVal
|
| 2000 |
+
);
|
| 2001 |
+
HRESULT GetLength(
|
| 2002 |
+
[out] BYTE * pbVal
|
| 2003 |
+
);
|
| 2004 |
+
HRESULT GetRemoteControlKeyId(
|
| 2005 |
+
[out] BYTE * pbVal
|
| 2006 |
+
);
|
| 2007 |
+
HRESULT GetTSNameW(
|
| 2008 |
+
[in] DVB_STRCONV_MODE convMode,
|
| 2009 |
+
[out] BSTR * pbstrName
|
| 2010 |
+
);
|
| 2011 |
+
HRESULT GetCountOfRecords(
|
| 2012 |
+
[out] BYTE * pbVal
|
| 2013 |
+
);
|
| 2014 |
+
HRESULT GetRecordTransmissionTypeInfo(
|
| 2015 |
+
[in] BYTE bRecordIndex,
|
| 2016 |
+
[out] BYTE * pbVal
|
| 2017 |
+
);
|
| 2018 |
+
HRESULT GetRecordNumberOfServices(
|
| 2019 |
+
[in] BYTE bRecordIndex,
|
| 2020 |
+
[out] BYTE * pbVal
|
| 2021 |
+
);
|
| 2022 |
+
HRESULT GetRecordServiceIdByIndex(
|
| 2023 |
+
[in] BYTE bRecordIndex,
|
| 2024 |
+
[in] BYTE bServiceIndex,
|
| 2025 |
+
[out] WORD * pdwVal
|
| 2026 |
+
);
|
| 2027 |
+
};
|
| 2028 |
+
|
| 2029 |
+
|
| 2030 |
+
|
| 2031 |
+
///////////////////////////////////////////////////////////
|
| 2032 |
+
//
|
| 2033 |
+
// IIsdbDigitalCopyControlDescriptor Interface
|
| 2034 |
+
//
|
| 2035 |
+
///////////////////////////////////////////////////////////
|
| 2036 |
+
[
|
| 2037 |
+
AM_LOCAL
|
| 2038 |
+
object,
|
| 2039 |
+
uuid(1A28417E-266A-4BB8-A4BD-D782BCFB8161),
|
| 2040 |
+
pointer_default(unique)
|
| 2041 |
+
]
|
| 2042 |
+
interface IIsdbDigitalCopyControlDescriptor : IUnknown
|
| 2043 |
+
{
|
| 2044 |
+
HRESULT GetTag(
|
| 2045 |
+
[out] BYTE * pbVal
|
| 2046 |
+
);
|
| 2047 |
+
HRESULT GetLength(
|
| 2048 |
+
[out] BYTE * pbVal
|
| 2049 |
+
);
|
| 2050 |
+
HRESULT GetCopyControl(
|
| 2051 |
+
[out] BYTE * pbDigitalRecordingControlData,
|
| 2052 |
+
[out] BYTE * pbCopyControlType,
|
| 2053 |
+
[out] BYTE * pbAPSControlData,
|
| 2054 |
+
[out] BYTE * pbMaximumBitrate
|
| 2055 |
+
);
|
| 2056 |
+
HRESULT GetCountOfRecords(
|
| 2057 |
+
[out] BYTE * pbVal
|
| 2058 |
+
);
|
| 2059 |
+
HRESULT GetRecordCopyControl(
|
| 2060 |
+
[in] BYTE bRecordIndex,
|
| 2061 |
+
[out] BYTE * pbComponentTag,
|
| 2062 |
+
[out] BYTE * pbDigitalRecordingControlData,
|
| 2063 |
+
[out] BYTE * pbCopyControlType,
|
| 2064 |
+
[out] BYTE * pbAPSControlData,
|
| 2065 |
+
[out] BYTE * pbMaximumBitrate
|
| 2066 |
+
);
|
| 2067 |
+
};
|
| 2068 |
+
|
| 2069 |
+
|
| 2070 |
+
|
| 2071 |
+
///////////////////////////////////////////////////////////
|
| 2072 |
+
//
|
| 2073 |
+
// IIsdbAudioComponentDescriptor Interface
|
| 2074 |
+
//
|
| 2075 |
+
///////////////////////////////////////////////////////////
|
| 2076 |
+
[
|
| 2077 |
+
AM_LOCAL
|
| 2078 |
+
object,
|
| 2079 |
+
uuid(679D2002-2425-4BE4-A4C7-D6632A574F4D),
|
| 2080 |
+
pointer_default(unique)
|
| 2081 |
+
]
|
| 2082 |
+
interface IIsdbAudioComponentDescriptor : IUnknown
|
| 2083 |
+
{
|
| 2084 |
+
HRESULT GetTag(
|
| 2085 |
+
[out] BYTE * pbVal
|
| 2086 |
+
);
|
| 2087 |
+
HRESULT GetLength(
|
| 2088 |
+
[out] BYTE * pbVal
|
| 2089 |
+
);
|
| 2090 |
+
HRESULT GetStreamContent(
|
| 2091 |
+
[out] BYTE * pbVal
|
| 2092 |
+
);
|
| 2093 |
+
HRESULT GetComponentType(
|
| 2094 |
+
[out] BYTE * pbVal
|
| 2095 |
+
);
|
| 2096 |
+
HRESULT GetComponentTag(
|
| 2097 |
+
[out] BYTE * pbVal
|
| 2098 |
+
);
|
| 2099 |
+
HRESULT GetStreamType(
|
| 2100 |
+
[out] BYTE * pbVal
|
| 2101 |
+
);
|
| 2102 |
+
HRESULT GetSimulcastGroupTag(
|
| 2103 |
+
[out] BYTE * pbVal
|
| 2104 |
+
);
|
| 2105 |
+
HRESULT GetESMultiLingualFlag(
|
| 2106 |
+
[out] BOOL * pfVal
|
| 2107 |
+
);
|
| 2108 |
+
HRESULT GetMainComponentFlag(
|
| 2109 |
+
[out] BOOL * pfVal
|
| 2110 |
+
);
|
| 2111 |
+
HRESULT GetQualityIndicator(
|
| 2112 |
+
[out] BYTE * pbVal
|
| 2113 |
+
);
|
| 2114 |
+
HRESULT GetSamplingRate(
|
| 2115 |
+
[out] BYTE * pbVal
|
| 2116 |
+
);
|
| 2117 |
+
HRESULT GetLanguageCode(
|
| 2118 |
+
[out AM_ANNOTATION("_Out_writes_(4)")] char * pszCode
|
| 2119 |
+
);
|
| 2120 |
+
HRESULT GetLanguageCode2(
|
| 2121 |
+
[out AM_ANNOTATION("_Out_writes_(4)")] char * pszCode
|
| 2122 |
+
);
|
| 2123 |
+
HRESULT GetTextW(
|
| 2124 |
+
[in] DVB_STRCONV_MODE convMode,
|
| 2125 |
+
[out] BSTR * pbstrText
|
| 2126 |
+
);
|
| 2127 |
+
};
|
| 2128 |
+
|
| 2129 |
+
|
| 2130 |
+
|
| 2131 |
+
///////////////////////////////////////////////////////////
|
| 2132 |
+
//
|
| 2133 |
+
// IIsdbDataContentDescriptor Interface
|
| 2134 |
+
//
|
| 2135 |
+
///////////////////////////////////////////////////////////
|
| 2136 |
+
[
|
| 2137 |
+
AM_LOCAL
|
| 2138 |
+
object,
|
| 2139 |
+
uuid(A428100A-E646-4BD6-AA14-6087BDC08CD5),
|
| 2140 |
+
pointer_default(unique)
|
| 2141 |
+
]
|
| 2142 |
+
interface IIsdbDataContentDescriptor : IUnknown
|
| 2143 |
+
{
|
| 2144 |
+
HRESULT GetTag(
|
| 2145 |
+
[out] BYTE * pbVal
|
| 2146 |
+
);
|
| 2147 |
+
HRESULT GetLength(
|
| 2148 |
+
[out] BYTE * pbVal
|
| 2149 |
+
);
|
| 2150 |
+
HRESULT GetDataComponentId(
|
| 2151 |
+
[out] WORD * pwVal
|
| 2152 |
+
);
|
| 2153 |
+
HRESULT GetEntryComponent(
|
| 2154 |
+
[out] BYTE * pbVal
|
| 2155 |
+
);
|
| 2156 |
+
HRESULT GetSelectorLength(
|
| 2157 |
+
[out] BYTE * pbVal
|
| 2158 |
+
);
|
| 2159 |
+
HRESULT GetSelectorBytes(
|
| 2160 |
+
[in] BYTE bBufLength,
|
| 2161 |
+
[out] BYTE * pbBuf
|
| 2162 |
+
);
|
| 2163 |
+
HRESULT GetCountOfRecords(
|
| 2164 |
+
[out] BYTE * pbVal
|
| 2165 |
+
);
|
| 2166 |
+
HRESULT GetRecordComponentRef(
|
| 2167 |
+
[in] BYTE bRecordIndex,
|
| 2168 |
+
[out] BYTE * pbVal
|
| 2169 |
+
);
|
| 2170 |
+
HRESULT GetLanguageCode(
|
| 2171 |
+
[out AM_ANNOTATION("_Out_writes_(4)")] char * pszCode
|
| 2172 |
+
);
|
| 2173 |
+
HRESULT GetTextW(
|
| 2174 |
+
[in] DVB_STRCONV_MODE convMode,
|
| 2175 |
+
[out] BSTR * pbstrText
|
| 2176 |
+
);
|
| 2177 |
+
};
|
| 2178 |
+
|
| 2179 |
+
|
| 2180 |
+
|
| 2181 |
+
///////////////////////////////////////////////////////////
|
| 2182 |
+
//
|
| 2183 |
+
// IIsdbCAContractInformationDescriptor Interface
|
| 2184 |
+
//
|
| 2185 |
+
///////////////////////////////////////////////////////////
|
| 2186 |
+
[
|
| 2187 |
+
AM_LOCAL
|
| 2188 |
+
object,
|
| 2189 |
+
uuid(08E18B25-A28F-4E92-821E-4FCED5CC2291),
|
| 2190 |
+
pointer_default(unique)
|
| 2191 |
+
]
|
| 2192 |
+
interface IIsdbCAContractInformationDescriptor : IUnknown
|
| 2193 |
+
{
|
| 2194 |
+
HRESULT GetTag(
|
| 2195 |
+
[out] BYTE * pbVal
|
| 2196 |
+
);
|
| 2197 |
+
HRESULT GetLength(
|
| 2198 |
+
[out] BYTE * pbVal
|
| 2199 |
+
);
|
| 2200 |
+
HRESULT GetCASystemId(
|
| 2201 |
+
[out] WORD * pwVal
|
| 2202 |
+
);
|
| 2203 |
+
HRESULT GetCAUnitId(
|
| 2204 |
+
[out] BYTE * pbVal
|
| 2205 |
+
);
|
| 2206 |
+
HRESULT GetCountOfRecords(
|
| 2207 |
+
[out] BYTE * pbVal
|
| 2208 |
+
);
|
| 2209 |
+
HRESULT GetRecordComponentTag(
|
| 2210 |
+
[in] BYTE bRecordIndex,
|
| 2211 |
+
[out] BYTE * pbVal
|
| 2212 |
+
);
|
| 2213 |
+
HRESULT GetContractVerificationInfoLength(
|
| 2214 |
+
[out] BYTE * pbVal
|
| 2215 |
+
);
|
| 2216 |
+
HRESULT GetContractVerificationInfo(
|
| 2217 |
+
[in] BYTE bBufLength,
|
| 2218 |
+
[out] BYTE * pbBuf
|
| 2219 |
+
);
|
| 2220 |
+
HRESULT GetFeeNameW(
|
| 2221 |
+
[in] DVB_STRCONV_MODE convMode,
|
| 2222 |
+
[out] BSTR * pbstrName
|
| 2223 |
+
);
|
| 2224 |
+
};
|
| 2225 |
+
|
| 2226 |
+
|
| 2227 |
+
|
| 2228 |
+
///////////////////////////////////////////////////////////
|
| 2229 |
+
//
|
| 2230 |
+
// IIsdbEventGroupDescriptor Interface
|
| 2231 |
+
//
|
| 2232 |
+
///////////////////////////////////////////////////////////
|
| 2233 |
+
[
|
| 2234 |
+
AM_LOCAL
|
| 2235 |
+
object,
|
| 2236 |
+
uuid(94B06780-2E2A-44DC-A966-CC56FDABC6C2),
|
| 2237 |
+
pointer_default(unique)
|
| 2238 |
+
]
|
| 2239 |
+
interface IIsdbEventGroupDescriptor : IUnknown
|
| 2240 |
+
{
|
| 2241 |
+
HRESULT GetTag(
|
| 2242 |
+
[out] BYTE * pbVal
|
| 2243 |
+
);
|
| 2244 |
+
HRESULT GetLength(
|
| 2245 |
+
[out] BYTE * pbVal
|
| 2246 |
+
);
|
| 2247 |
+
HRESULT GetGroupType(
|
| 2248 |
+
[out] BYTE * pbVal
|
| 2249 |
+
);
|
| 2250 |
+
HRESULT GetCountOfRecords(
|
| 2251 |
+
[out] BYTE * pbVal
|
| 2252 |
+
);
|
| 2253 |
+
HRESULT GetRecordEvent(
|
| 2254 |
+
[in] BYTE bRecordIndex,
|
| 2255 |
+
[out] WORD * pwServiceId,
|
| 2256 |
+
[out] WORD * pwEventId
|
| 2257 |
+
);
|
| 2258 |
+
HRESULT GetCountOfRefRecords(
|
| 2259 |
+
[out] BYTE * pbVal
|
| 2260 |
+
);
|
| 2261 |
+
HRESULT GetRefRecordEvent(
|
| 2262 |
+
[in] BYTE bRecordIndex,
|
| 2263 |
+
[out] WORD * pwOriginalNetworkId,
|
| 2264 |
+
[out] WORD * pwTransportStreamId,
|
| 2265 |
+
[out] WORD * pwServiceId,
|
| 2266 |
+
[out] WORD * pwEventId
|
| 2267 |
+
);
|
| 2268 |
+
};
|
| 2269 |
+
|
| 2270 |
+
|
| 2271 |
+
|
| 2272 |
+
///////////////////////////////////////////////////////////
|
| 2273 |
+
//
|
| 2274 |
+
// IIsdbComponentGroupDescriptor Interface
|
| 2275 |
+
//
|
| 2276 |
+
///////////////////////////////////////////////////////////
|
| 2277 |
+
[
|
| 2278 |
+
AM_LOCAL
|
| 2279 |
+
object,
|
| 2280 |
+
uuid(A494F17F-C592-47D8-8943-64C9A34BE7B9),
|
| 2281 |
+
pointer_default(unique)
|
| 2282 |
+
]
|
| 2283 |
+
interface IIsdbComponentGroupDescriptor : IUnknown
|
| 2284 |
+
{
|
| 2285 |
+
HRESULT GetTag(
|
| 2286 |
+
[out] BYTE * pbVal
|
| 2287 |
+
);
|
| 2288 |
+
HRESULT GetLength(
|
| 2289 |
+
[out] BYTE * pbVal
|
| 2290 |
+
);
|
| 2291 |
+
HRESULT GetComponentGroupType(
|
| 2292 |
+
[out] BYTE * pbVal
|
| 2293 |
+
);
|
| 2294 |
+
HRESULT GetCountOfRecords(
|
| 2295 |
+
[out] BYTE * pbVal
|
| 2296 |
+
);
|
| 2297 |
+
HRESULT GetRecordGroupId(
|
| 2298 |
+
[in] BYTE bRecordIndex,
|
| 2299 |
+
[out] BYTE * pbVal
|
| 2300 |
+
);
|
| 2301 |
+
HRESULT GetRecordNumberOfCAUnit(
|
| 2302 |
+
[in] BYTE bRecordIndex,
|
| 2303 |
+
[out] BYTE * pbVal
|
| 2304 |
+
);
|
| 2305 |
+
HRESULT GetRecordCAUnitCAUnitId(
|
| 2306 |
+
[in] BYTE bRecordIndex,
|
| 2307 |
+
[in] BYTE bCAUnitIndex,
|
| 2308 |
+
[out] BYTE * pbVal
|
| 2309 |
+
);
|
| 2310 |
+
HRESULT GetRecordCAUnitNumberOfComponents(
|
| 2311 |
+
[in] BYTE bRecordIndex,
|
| 2312 |
+
[in] BYTE bCAUnitIndex,
|
| 2313 |
+
[out] BYTE * pbVal
|
| 2314 |
+
);
|
| 2315 |
+
HRESULT GetRecordCAUnitComponentTag(
|
| 2316 |
+
[in] BYTE bRecordIndex,
|
| 2317 |
+
[in] BYTE bCAUnitIndex,
|
| 2318 |
+
[in] BYTE bComponentIndex,
|
| 2319 |
+
[out] BYTE * pbVal
|
| 2320 |
+
);
|
| 2321 |
+
HRESULT GetRecordTotalBitRate(
|
| 2322 |
+
[in] BYTE bRecordIndex,
|
| 2323 |
+
[out] BYTE * pbVal
|
| 2324 |
+
);
|
| 2325 |
+
HRESULT GetRecordTextW(
|
| 2326 |
+
[in] BYTE bRecordIndex,
|
| 2327 |
+
[in] DVB_STRCONV_MODE convMode,
|
| 2328 |
+
[out] BSTR * pbstrText
|
| 2329 |
+
);
|
| 2330 |
+
};
|
| 2331 |
+
|
| 2332 |
+
|
| 2333 |
+
|
| 2334 |
+
///////////////////////////////////////////////////////////
|
| 2335 |
+
//
|
| 2336 |
+
// IIsdbSeriesDescriptor Interface
|
| 2337 |
+
//
|
| 2338 |
+
///////////////////////////////////////////////////////////
|
| 2339 |
+
[
|
| 2340 |
+
AM_LOCAL
|
| 2341 |
+
object,
|
| 2342 |
+
uuid(07EF6370-1660-4F26-87FC-614ADAB24B11),
|
| 2343 |
+
pointer_default(unique)
|
| 2344 |
+
]
|
| 2345 |
+
interface IIsdbSeriesDescriptor : IUnknown
|
| 2346 |
+
{
|
| 2347 |
+
HRESULT GetTag(
|
| 2348 |
+
[out] BYTE * pbVal
|
| 2349 |
+
);
|
| 2350 |
+
HRESULT GetLength(
|
| 2351 |
+
[out] BYTE * pbVal
|
| 2352 |
+
);
|
| 2353 |
+
HRESULT GetSeriesId(
|
| 2354 |
+
[out] WORD * pwVal
|
| 2355 |
+
);
|
| 2356 |
+
HRESULT GetRepeatLabel(
|
| 2357 |
+
[out] BYTE * pbVal
|
| 2358 |
+
);
|
| 2359 |
+
HRESULT GetProgramPattern(
|
| 2360 |
+
[out] BYTE * pbVal
|
| 2361 |
+
);
|
| 2362 |
+
HRESULT GetExpireDate(
|
| 2363 |
+
[out] BOOL * pfValid,
|
| 2364 |
+
[out] MPEG_DATE_AND_TIME * pmdtVal
|
| 2365 |
+
);
|
| 2366 |
+
HRESULT GetEpisodeNumber(
|
| 2367 |
+
[out] WORD * pwVal
|
| 2368 |
+
);
|
| 2369 |
+
HRESULT GetLastEpisodeNumber(
|
| 2370 |
+
[out] WORD * pwVal
|
| 2371 |
+
);
|
| 2372 |
+
HRESULT GetSeriesNameW(
|
| 2373 |
+
[in] DVB_STRCONV_MODE convMode,
|
| 2374 |
+
[out] BSTR * pbstrName
|
| 2375 |
+
);
|
| 2376 |
+
};
|
| 2377 |
+
|
| 2378 |
+
///////////////////////////////////////////////////////////
|
| 2379 |
+
//
|
| 2380 |
+
// IIsdbDownloadContentDescriptor Interface
|
| 2381 |
+
//
|
| 2382 |
+
///////////////////////////////////////////////////////////
|
| 2383 |
+
[
|
| 2384 |
+
AM_LOCAL
|
| 2385 |
+
object,
|
| 2386 |
+
uuid(5298661E-CB88-4F5F-A1DE-5F440C185B92),
|
| 2387 |
+
pointer_default(unique)
|
| 2388 |
+
]
|
| 2389 |
+
interface IIsdbDownloadContentDescriptor : IUnknown
|
| 2390 |
+
{
|
| 2391 |
+
HRESULT GetTag(
|
| 2392 |
+
[out] BYTE * pbVal
|
| 2393 |
+
);
|
| 2394 |
+
HRESULT GetLength(
|
| 2395 |
+
[out] BYTE * pbVal
|
| 2396 |
+
);
|
| 2397 |
+
HRESULT GetFlags(
|
| 2398 |
+
[out] BOOL * pfReboot,
|
| 2399 |
+
[out] BOOL * pfAddOn,
|
| 2400 |
+
[out] BOOL * pfCompatibility,
|
| 2401 |
+
[out] BOOL * pfModuleInfo,
|
| 2402 |
+
[out] BOOL * pfTextInfo
|
| 2403 |
+
);
|
| 2404 |
+
HRESULT GetComponentSize(
|
| 2405 |
+
[out] DWORD * pdwVal
|
| 2406 |
+
);
|
| 2407 |
+
HRESULT GetDownloadId(
|
| 2408 |
+
[out] DWORD * pdwVal
|
| 2409 |
+
);
|
| 2410 |
+
HRESULT GetTimeOutValueDII(
|
| 2411 |
+
[out] DWORD * pdwVal
|
| 2412 |
+
);
|
| 2413 |
+
HRESULT GetLeakRate(
|
| 2414 |
+
[out] DWORD * pdwVal
|
| 2415 |
+
);
|
| 2416 |
+
HRESULT GetComponentTag(
|
| 2417 |
+
[out] BYTE * pbVal
|
| 2418 |
+
);
|
| 2419 |
+
HRESULT GetCompatiblityDescriptorLength(
|
| 2420 |
+
[out] WORD * pwLength
|
| 2421 |
+
);
|
| 2422 |
+
HRESULT GetCompatiblityDescriptor(
|
| 2423 |
+
[out] BYTE ** ppbData
|
| 2424 |
+
);
|
| 2425 |
+
HRESULT GetCountOfRecords(
|
| 2426 |
+
[out] WORD * pwVal
|
| 2427 |
+
);
|
| 2428 |
+
HRESULT GetRecordModuleId(
|
| 2429 |
+
[in] WORD wRecordIndex,
|
| 2430 |
+
[out] WORD * pwVal
|
| 2431 |
+
);
|
| 2432 |
+
HRESULT GetRecordModuleSize(
|
| 2433 |
+
[in] WORD wRecordIndex,
|
| 2434 |
+
[out] DWORD * pdwVal
|
| 2435 |
+
);
|
| 2436 |
+
HRESULT GetRecordModuleInfoLength(
|
| 2437 |
+
[in] WORD wRecordIndex,
|
| 2438 |
+
[out] BYTE * pbVal
|
| 2439 |
+
);
|
| 2440 |
+
HRESULT GetRecordModuleInfo(
|
| 2441 |
+
[in] WORD wRecordIndex,
|
| 2442 |
+
[out] BYTE ** ppbData
|
| 2443 |
+
);
|
| 2444 |
+
HRESULT GetTextLanguageCode(
|
| 2445 |
+
[out AM_ANNOTATION("_Out_writes_(4)")] char * szCode
|
| 2446 |
+
);
|
| 2447 |
+
HRESULT GetTextW(
|
| 2448 |
+
[in] DVB_STRCONV_MODE convMode,
|
| 2449 |
+
[out] BSTR * pbstrName
|
| 2450 |
+
);
|
| 2451 |
+
};
|
| 2452 |
+
|
| 2453 |
+
///////////////////////////////////////////////////////////
|
| 2454 |
+
//
|
| 2455 |
+
// IIsdbLogoTransmissionDescriptor Interface
|
| 2456 |
+
//
|
| 2457 |
+
///////////////////////////////////////////////////////////
|
| 2458 |
+
[
|
| 2459 |
+
AM_LOCAL
|
| 2460 |
+
object,
|
| 2461 |
+
uuid(E0103F49-4AE1-4F07-9098-756DB1FA88CD),
|
| 2462 |
+
pointer_default(unique)
|
| 2463 |
+
]
|
| 2464 |
+
interface IIsdbLogoTransmissionDescriptor : IUnknown
|
| 2465 |
+
{
|
| 2466 |
+
HRESULT GetTag(
|
| 2467 |
+
[out] BYTE * pbVal
|
| 2468 |
+
);
|
| 2469 |
+
HRESULT GetLength(
|
| 2470 |
+
[out] BYTE * pbVal
|
| 2471 |
+
);
|
| 2472 |
+
HRESULT GetLogoTransmissionType(
|
| 2473 |
+
[out] BYTE * pbVal
|
| 2474 |
+
);
|
| 2475 |
+
HRESULT GetLogoId(
|
| 2476 |
+
[out] WORD * pwVal
|
| 2477 |
+
);
|
| 2478 |
+
HRESULT GetLogoVersion(
|
| 2479 |
+
[out] WORD * pwVal
|
| 2480 |
+
);
|
| 2481 |
+
HRESULT GetDownloadDataId(
|
| 2482 |
+
[out] WORD * pwVal
|
| 2483 |
+
);
|
| 2484 |
+
HRESULT GetLogoCharW(
|
| 2485 |
+
[in] DVB_STRCONV_MODE convMode,
|
| 2486 |
+
[out] BSTR * pbstrChar
|
| 2487 |
+
);
|
| 2488 |
+
};
|
| 2489 |
+
|
| 2490 |
+
///////////////////////////////////////////////////////////
|
| 2491 |
+
//
|
| 2492 |
+
// IIsdbSIParameterDescriptor Interface
|
| 2493 |
+
//
|
| 2494 |
+
///////////////////////////////////////////////////////////
|
| 2495 |
+
[
|
| 2496 |
+
AM_LOCAL
|
| 2497 |
+
object,
|
| 2498 |
+
uuid(F837DC36-867C-426a-9111-F62093951A45),
|
| 2499 |
+
pointer_default(unique)
|
| 2500 |
+
]
|
| 2501 |
+
interface IIsdbSIParameterDescriptor : IUnknown
|
| 2502 |
+
{
|
| 2503 |
+
HRESULT GetTag(
|
| 2504 |
+
[out] BYTE * pbVal
|
| 2505 |
+
);
|
| 2506 |
+
HRESULT GetLength(
|
| 2507 |
+
[out] BYTE * pbVal
|
| 2508 |
+
);
|
| 2509 |
+
HRESULT GetParameterVersion(
|
| 2510 |
+
[out] BYTE * pbVal
|
| 2511 |
+
);
|
| 2512 |
+
HRESULT GetUpdateTime(
|
| 2513 |
+
[out] MPEG_DATE * pVal
|
| 2514 |
+
);
|
| 2515 |
+
HRESULT GetRecordNumberOfTable(
|
| 2516 |
+
[out] BYTE * pbVal
|
| 2517 |
+
);
|
| 2518 |
+
HRESULT GetTableId(
|
| 2519 |
+
[in] BYTE bRecordIndex,
|
| 2520 |
+
[out] BYTE * pbVal
|
| 2521 |
+
);
|
| 2522 |
+
HRESULT GetTableDescriptionLength(
|
| 2523 |
+
[in] BYTE bRecordIndex,
|
| 2524 |
+
[out] BYTE * pbVal
|
| 2525 |
+
);
|
| 2526 |
+
HRESULT GetTableDescriptionBytes(
|
| 2527 |
+
[in] BYTE bRecordIndex,
|
| 2528 |
+
[in, out] BYTE * pbBufferLength,
|
| 2529 |
+
[out] BYTE * pbBuffer
|
| 2530 |
+
);
|
| 2531 |
+
};
|
| 2532 |
+
|
| 2533 |
+
///////////////////////////////////////////////////////////
|
| 2534 |
+
//
|
| 2535 |
+
// IIsdbEmergencyInformationDescriptor Interface
|
| 2536 |
+
//
|
| 2537 |
+
///////////////////////////////////////////////////////////
|
| 2538 |
+
[
|
| 2539 |
+
AM_LOCAL
|
| 2540 |
+
object,
|
| 2541 |
+
uuid(BA6FA681-B973-4da1-9207-AC3E7F0341EB),
|
| 2542 |
+
pointer_default(unique)
|
| 2543 |
+
]
|
| 2544 |
+
interface IIsdbEmergencyInformationDescriptor : IUnknown
|
| 2545 |
+
{
|
| 2546 |
+
HRESULT GetTag(
|
| 2547 |
+
[out] BYTE * pbVal
|
| 2548 |
+
);
|
| 2549 |
+
HRESULT GetLength(
|
| 2550 |
+
[out] BYTE * pbVal
|
| 2551 |
+
);
|
| 2552 |
+
HRESULT GetCountOfRecords(
|
| 2553 |
+
[out] BYTE * pbVal
|
| 2554 |
+
);
|
| 2555 |
+
HRESULT GetServiceId(
|
| 2556 |
+
[in] BYTE bRecordIndex,
|
| 2557 |
+
[out] WORD * pwVal
|
| 2558 |
+
);
|
| 2559 |
+
HRESULT GetStartEndFlag(
|
| 2560 |
+
[in] BYTE bRecordIndex,
|
| 2561 |
+
[out] BYTE * pVal
|
| 2562 |
+
);
|
| 2563 |
+
HRESULT GetSignalLevel(
|
| 2564 |
+
[in] BYTE bRecordIndex,
|
| 2565 |
+
[out] BYTE * pbVal
|
| 2566 |
+
);
|
| 2567 |
+
HRESULT GetAreaCode(
|
| 2568 |
+
[in] BYTE bRecordIndex,
|
| 2569 |
+
[out] WORD ** ppwVal, // Upper 12-bits: area_code
|
| 2570 |
+
[out] BYTE * pbNumAreaCodes
|
| 2571 |
+
);
|
| 2572 |
+
};
|
| 2573 |
+
|
| 2574 |
+
///////////////////////////////////////////////////////////
|
| 2575 |
+
//
|
| 2576 |
+
// IIsdbCADescriptor Interface
|
| 2577 |
+
//
|
| 2578 |
+
///////////////////////////////////////////////////////////
|
| 2579 |
+
[
|
| 2580 |
+
AM_LOCAL
|
| 2581 |
+
object,
|
| 2582 |
+
uuid(0570AA47-52BC-42ae-8CA5-969F41E81AEA),
|
| 2583 |
+
pointer_default(unique)
|
| 2584 |
+
]
|
| 2585 |
+
interface IIsdbCADescriptor : IUnknown
|
| 2586 |
+
{
|
| 2587 |
+
HRESULT GetTag(
|
| 2588 |
+
[out] BYTE * pbVal
|
| 2589 |
+
);
|
| 2590 |
+
HRESULT GetLength(
|
| 2591 |
+
[out] BYTE * pbVal
|
| 2592 |
+
);
|
| 2593 |
+
HRESULT GetCASystemId(
|
| 2594 |
+
[out] WORD * pwVal
|
| 2595 |
+
);
|
| 2596 |
+
HRESULT GetReservedBits(
|
| 2597 |
+
[out] BYTE * pbVal
|
| 2598 |
+
);
|
| 2599 |
+
HRESULT GetCAPID(
|
| 2600 |
+
[out] WORD * pwVal
|
| 2601 |
+
);
|
| 2602 |
+
HRESULT GetPrivateDataBytes(
|
| 2603 |
+
[in, out] BYTE * pbBufferLength, // retuen reqired buffer length if pbBuffer is null.
|
| 2604 |
+
[out] BYTE * pbBuffer
|
| 2605 |
+
);
|
| 2606 |
+
};
|
| 2607 |
+
|
| 2608 |
+
///////////////////////////////////////////////////////////
|
| 2609 |
+
//
|
| 2610 |
+
// IIsdbCAServiceDescriptor Interface
|
| 2611 |
+
//
|
| 2612 |
+
///////////////////////////////////////////////////////////
|
| 2613 |
+
[
|
| 2614 |
+
AM_LOCAL
|
| 2615 |
+
object,
|
| 2616 |
+
uuid(39CBEB97-FF0B-42a7-9AB9-7B9CFE70A77A),
|
| 2617 |
+
pointer_default(unique)
|
| 2618 |
+
]
|
| 2619 |
+
interface IIsdbCAServiceDescriptor : IUnknown
|
| 2620 |
+
{
|
| 2621 |
+
HRESULT GetTag(
|
| 2622 |
+
[out] BYTE * pbVal
|
| 2623 |
+
);
|
| 2624 |
+
HRESULT GetLength(
|
| 2625 |
+
[out] BYTE * pbVal
|
| 2626 |
+
);
|
| 2627 |
+
HRESULT GetCASystemId(
|
| 2628 |
+
[out] WORD * pwVal
|
| 2629 |
+
);
|
| 2630 |
+
HRESULT GetCABroadcasterGroupId(
|
| 2631 |
+
[out] BYTE * pbVal
|
| 2632 |
+
);
|
| 2633 |
+
HRESULT GetMessageControl(
|
| 2634 |
+
[out] BYTE * pbVal
|
| 2635 |
+
);
|
| 2636 |
+
HRESULT GetServiceIds(
|
| 2637 |
+
[in, out] BYTE * pbNumServiceIds, // retuen reqired number of IDs if pwServiceIds is null.
|
| 2638 |
+
[out] WORD * pwServiceIds
|
| 2639 |
+
);
|
| 2640 |
+
};
|
| 2641 |
+
|
| 2642 |
+
///////////////////////////////////////////////////////////
|
| 2643 |
+
//
|
| 2644 |
+
// IIsdbHierarchicalTransmissionDescriptor Interface
|
| 2645 |
+
//
|
| 2646 |
+
///////////////////////////////////////////////////////////
|
| 2647 |
+
[
|
| 2648 |
+
AM_LOCAL
|
| 2649 |
+
object,
|
| 2650 |
+
uuid(B7B3AE90-EE0B-446d-8769-F7E2AA266AA6),
|
| 2651 |
+
pointer_default(unique)
|
| 2652 |
+
]
|
| 2653 |
+
interface IIsdbHierarchicalTransmissionDescriptor : IUnknown
|
| 2654 |
+
{
|
| 2655 |
+
HRESULT GetTag(
|
| 2656 |
+
[out] BYTE * pbVal
|
| 2657 |
+
);
|
| 2658 |
+
HRESULT GetLength(
|
| 2659 |
+
[out] BYTE * pbVal
|
| 2660 |
+
);
|
| 2661 |
+
HRESULT GetFutureUse1(
|
| 2662 |
+
[out] BYTE * pbVal // 7-bits
|
| 2663 |
+
);
|
| 2664 |
+
HRESULT GetQualityLevel(
|
| 2665 |
+
[out] BYTE * pbVal // 1-bits
|
| 2666 |
+
);
|
| 2667 |
+
HRESULT GetFutureUse2(
|
| 2668 |
+
[out] BYTE * pbVal // 3-bits
|
| 2669 |
+
);
|
| 2670 |
+
HRESULT GetReferencePid(
|
| 2671 |
+
[out] WORD * pwVal // 13-bits
|
| 2672 |
+
);
|
| 2673 |
+
};
|
| 2674 |
+
|
| 2675 |
+
///////////////////////////////////////////////////////////
|
| 2676 |
+
//
|
| 2677 |
+
// stream_identifier_descriptor
|
| 2678 |
+
// It has only one byte body (component_tag).
|
| 2679 |
+
// We will not define particular interface.
|
| 2680 |
+
//
|
| 2681 |
+
///////////////////////////////////////////////////////////
|
| 2682 |
+
cpp_quote("#define COMPONENT_TAG_CAPTION_MIN 0x30")
|
| 2683 |
+
cpp_quote("#define COMPONENT_TAG_CAPTION_MAX 0x37")
|
| 2684 |
+
cpp_quote("#define COMPONENT_TAG_SUPERIMPOSE_MIN 0x38")
|
| 2685 |
+
cpp_quote("#define COMPONENT_TAG_SUPERIMPOSE_MAX 0x3F")
|
| 2686 |
+
|
| 2687 |
+
interface IPBDA_EIT;
|
| 2688 |
+
interface IPBDA_Services;
|
| 2689 |
+
////////////////////////////////////
|
| 2690 |
+
//
|
| 2691 |
+
// IPBDASiParser Interface
|
| 2692 |
+
//
|
| 2693 |
+
////////////////////////////////////
|
| 2694 |
+
|
| 2695 |
+
[
|
| 2696 |
+
AM_LOCAL
|
| 2697 |
+
object,
|
| 2698 |
+
uuid(9DE49A74-ABA2-4a18-93E1-21F17F95C3C3),
|
| 2699 |
+
pointer_default(unique)
|
| 2700 |
+
]
|
| 2701 |
+
interface IPBDASiParser : IUnknown
|
| 2702 |
+
{
|
| 2703 |
+
HRESULT Initialize([in] IUnknown * punk
|
| 2704 |
+
);
|
| 2705 |
+
|
| 2706 |
+
|
| 2707 |
+
HRESULT GetEIT([in] DWORD dwSize ,
|
| 2708 |
+
[in] BYTE *pBuffer,
|
| 2709 |
+
[out] IPBDA_EIT ** ppEIT
|
| 2710 |
+
);
|
| 2711 |
+
|
| 2712 |
+
HRESULT GetServices ([in] DWORD dwSize ,
|
| 2713 |
+
[in] const BYTE *pBuffer,
|
| 2714 |
+
[out] IPBDA_Services ** ppServices
|
| 2715 |
+
);
|
| 2716 |
+
};
|
| 2717 |
+
|
| 2718 |
+
////////////////////////////////////
|
| 2719 |
+
//
|
| 2720 |
+
// IPBDA_EIT Interface
|
| 2721 |
+
//
|
| 2722 |
+
////////////////////////////////////
|
| 2723 |
+
|
| 2724 |
+
[
|
| 2725 |
+
object,
|
| 2726 |
+
local,
|
| 2727 |
+
uuid(A35F2DEA-098F-4ebd-984C-2BD4C3C8CE0A),
|
| 2728 |
+
helpstring("IPBDA_EIT Interface"),
|
| 2729 |
+
pointer_default(unique)
|
| 2730 |
+
]
|
| 2731 |
+
interface IPBDA_EIT : IUnknown
|
| 2732 |
+
{
|
| 2733 |
+
HRESULT Initialize(
|
| 2734 |
+
[in] DWORD size,
|
| 2735 |
+
[in] [size_is(size)] const BYTE *pBuffer
|
| 2736 |
+
);
|
| 2737 |
+
|
| 2738 |
+
/* Table level data */
|
| 2739 |
+
HRESULT GetTableId(
|
| 2740 |
+
[out] BYTE * pbVal
|
| 2741 |
+
);
|
| 2742 |
+
|
| 2743 |
+
HRESULT GetVersionNumber(
|
| 2744 |
+
[out] WORD * pwVal
|
| 2745 |
+
);
|
| 2746 |
+
|
| 2747 |
+
HRESULT GetServiceIdx (
|
| 2748 |
+
[out] ULONG64 * plwVal
|
| 2749 |
+
);
|
| 2750 |
+
|
| 2751 |
+
|
| 2752 |
+
/* Descriptors follow here */
|
| 2753 |
+
|
| 2754 |
+
HRESULT GetCountOfRecords(
|
| 2755 |
+
[out] DWORD * pdwVal
|
| 2756 |
+
);
|
| 2757 |
+
|
| 2758 |
+
HRESULT GetRecordEventId(
|
| 2759 |
+
[in] DWORD dwRecordIndex,
|
| 2760 |
+
[out] ULONG64 * plwVal
|
| 2761 |
+
);
|
| 2762 |
+
|
| 2763 |
+
HRESULT GetRecordStartTime(
|
| 2764 |
+
[in] DWORD dwRecordIndex,
|
| 2765 |
+
[out] MPEG_DATE_AND_TIME * pmdtVal
|
| 2766 |
+
);
|
| 2767 |
+
|
| 2768 |
+
HRESULT GetRecordDuration(
|
| 2769 |
+
[in] DWORD dwRecordIndex,
|
| 2770 |
+
[out] MPEG_DURATION * pmdVal
|
| 2771 |
+
);
|
| 2772 |
+
|
| 2773 |
+
/* Descriptors follow here */
|
| 2774 |
+
|
| 2775 |
+
HRESULT GetRecordCountOfDescriptors(
|
| 2776 |
+
[in] DWORD dwRecordIndex,
|
| 2777 |
+
[out] DWORD * pdwVal
|
| 2778 |
+
);
|
| 2779 |
+
|
| 2780 |
+
HRESULT GetRecordDescriptorByIndex(
|
| 2781 |
+
[in] DWORD dwRecordIndex,
|
| 2782 |
+
[in] DWORD dwIndex,
|
| 2783 |
+
[out] IGenericDescriptor ** ppDescriptor
|
| 2784 |
+
);
|
| 2785 |
+
|
| 2786 |
+
HRESULT GetRecordDescriptorByTag(
|
| 2787 |
+
[in] DWORD dwRecordIndex,
|
| 2788 |
+
[in] BYTE bTag,
|
| 2789 |
+
[in, out] DWORD * pdwCookie, // OPTIONAL
|
| 2790 |
+
[out] IGenericDescriptor ** ppDescriptor
|
| 2791 |
+
);
|
| 2792 |
+
|
| 2793 |
+
};
|
| 2794 |
+
|
| 2795 |
+
////////////////////////////////////
|
| 2796 |
+
//
|
| 2797 |
+
// IPBDA_Services Interface
|
| 2798 |
+
//
|
| 2799 |
+
////////////////////////////////////
|
| 2800 |
+
|
| 2801 |
+
[
|
| 2802 |
+
object,
|
| 2803 |
+
local,
|
| 2804 |
+
uuid(944EAB37-EED4-4850-AFD2-77E7EFEB4427),
|
| 2805 |
+
helpstring("IPBDA_Services Interface"),
|
| 2806 |
+
pointer_default(unique)
|
| 2807 |
+
]
|
| 2808 |
+
interface IPBDA_Services : IUnknown
|
| 2809 |
+
{
|
| 2810 |
+
HRESULT Initialize(
|
| 2811 |
+
[in] DWORD size,
|
| 2812 |
+
[in] [size_is(size)] BYTE *pBuffer
|
| 2813 |
+
);
|
| 2814 |
+
|
| 2815 |
+
HRESULT GetCountOfRecords(
|
| 2816 |
+
[out] DWORD * pdwVal
|
| 2817 |
+
);
|
| 2818 |
+
|
| 2819 |
+
HRESULT GetRecordByIndex (
|
| 2820 |
+
[in] DWORD dwRecordIndex,
|
| 2821 |
+
[out] ULONG64 *pul64ServiceIdx
|
| 2822 |
+
);
|
| 2823 |
+
};
|
| 2824 |
+
|
| 2825 |
+
///////////////////////////////////////////////////////////
|
| 2826 |
+
//
|
| 2827 |
+
// IPBDAEntitlementDescriptor Interface
|
| 2828 |
+
//
|
| 2829 |
+
///////////////////////////////////////////////////////////
|
| 2830 |
+
[
|
| 2831 |
+
AM_LOCAL
|
| 2832 |
+
object,
|
| 2833 |
+
uuid(22632497-0DE3-4587-AADC-D8D99017E760),
|
| 2834 |
+
pointer_default(unique)
|
| 2835 |
+
]
|
| 2836 |
+
interface IPBDAEntitlementDescriptor : IUnknown
|
| 2837 |
+
{
|
| 2838 |
+
HRESULT GetTag(
|
| 2839 |
+
[out] BYTE * pbVal
|
| 2840 |
+
);
|
| 2841 |
+
|
| 2842 |
+
HRESULT GetLength(
|
| 2843 |
+
[out] WORD * pwVal
|
| 2844 |
+
);
|
| 2845 |
+
|
| 2846 |
+
HRESULT GetToken (
|
| 2847 |
+
[out] BYTE ** ppbTokenBuffer,
|
| 2848 |
+
[out] DWORD * pdwTokenLength
|
| 2849 |
+
);
|
| 2850 |
+
|
| 2851 |
+
};
|
| 2852 |
+
|
| 2853 |
+
///////////////////////////////////////////////////////////
|
| 2854 |
+
//
|
| 2855 |
+
// IPBDAAttributesDescriptor Interface
|
| 2856 |
+
//
|
| 2857 |
+
///////////////////////////////////////////////////////////
|
| 2858 |
+
[
|
| 2859 |
+
AM_LOCAL
|
| 2860 |
+
object,
|
| 2861 |
+
uuid(313B3620-3263-45a6-9533-968BEFBEAC03),
|
| 2862 |
+
pointer_default(unique)
|
| 2863 |
+
]
|
| 2864 |
+
interface IPBDAAttributesDescriptor : IUnknown
|
| 2865 |
+
{
|
| 2866 |
+
HRESULT GetTag(
|
| 2867 |
+
[out] BYTE * pbVal
|
| 2868 |
+
);
|
| 2869 |
+
HRESULT GetLength(
|
| 2870 |
+
[out] WORD * pwVal
|
| 2871 |
+
);
|
| 2872 |
+
HRESULT GetAttributePayload (
|
| 2873 |
+
[out] BYTE ** ppbAttributeBuffer,
|
| 2874 |
+
[out] DWORD * pdwAttributeLength
|
| 2875 |
+
);
|
| 2876 |
+
|
| 2877 |
+
};
|
| 2878 |
+
|
| 2879 |
+
|
| 2880 |
+
cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */")
|
| 2881 |
+
#pragma endregion
|
| 2882 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EapAuthenticatorActionDefine.h
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
////////////////////////////////////////////////////////////
|
| 2 |
+
//
|
| 3 |
+
// Copyright (c) Microsoft Corporation.
|
| 4 |
+
//
|
| 5 |
+
// SYNOPSIS
|
| 6 |
+
//
|
| 7 |
+
// IDL source for interaction with EAPHost supplicants.
|
| 8 |
+
//
|
| 9 |
+
////////////////////////////////////////////////////////////
|
| 10 |
+
|
| 11 |
+
#ifndef EAPAUTHENTICATORACTIONDEFINE_H
|
| 12 |
+
#define EAPAUTHENTICATORACTIONDEFINE_H
|
| 13 |
+
|
| 14 |
+
#pragma once
|
| 15 |
+
#include <winapifamily.h>
|
| 16 |
+
|
| 17 |
+
#pragma region Desktop Family
|
| 18 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
#ifdef __cplusplus
|
| 22 |
+
extern "C" {
|
| 23 |
+
#endif
|
| 24 |
+
|
| 25 |
+
typedef
|
| 26 |
+
#ifdef __midl
|
| 27 |
+
[v1_enum]
|
| 28 |
+
#endif
|
| 29 |
+
enum _EAP_METHOD_AUTHENTICATOR_RESPONSE_ACTION
|
| 30 |
+
{
|
| 31 |
+
// Discard the request as EAP cannot use it.
|
| 32 |
+
EAP_METHOD_AUTHENTICATOR_RESPONSE_DISCARD = 0,
|
| 33 |
+
// Send the packet to the authenticator
|
| 34 |
+
EAP_METHOD_AUTHENTICATOR_RESPONSE_SEND,
|
| 35 |
+
// Respond to EAP by acting on the returned attributes
|
| 36 |
+
EAP_METHOD_AUTHENTICATOR_RESPONSE_RESULT,
|
| 37 |
+
// The supplicant needs to take an action based on the context.
|
| 38 |
+
EAP_METHOD_AUTHENTICATOR_RESPONSE_RESPOND,
|
| 39 |
+
EAP_METHOD_AUTHENTICATOR_RESPONSE_AUTHENTICATE,
|
| 40 |
+
EAP_METHOD_AUTHENTICATOR_RESPONSE_HANDLE_IDENTITY
|
| 41 |
+
// The supplicant needs to take no action at all.
|
| 42 |
+
//EAP_METHOD_AUTHENTICATOR_RESPONSE_NONE
|
| 43 |
+
} EAP_METHOD_AUTHENTICATOR_RESPONSE_ACTION;
|
| 44 |
+
|
| 45 |
+
typedef struct _EAP_METHOD_AUTHENTICATOR_RESULT
|
| 46 |
+
{
|
| 47 |
+
BOOL fIsSuccess;
|
| 48 |
+
DWORD dwFailureReason;
|
| 49 |
+
EAP_ATTRIBUTES* pAuthAttribs;
|
| 50 |
+
} EAP_METHOD_AUTHENTICATOR_RESULT;
|
| 51 |
+
|
| 52 |
+
typedef
|
| 53 |
+
#ifdef __midl
|
| 54 |
+
[v1_enum]
|
| 55 |
+
#endif
|
| 56 |
+
enum tagEapPeerMethodResponseAction
|
| 57 |
+
{
|
| 58 |
+
// Discard the request as EAP cannot use it.
|
| 59 |
+
EapPeerMethodResponseActionDiscard = 0,
|
| 60 |
+
// Send the packet to the authenticator
|
| 61 |
+
EapPeerMethodResponseActionSend,
|
| 62 |
+
// Respond to EAP by acting on the returned attributes
|
| 63 |
+
EapPeerMethodResponseActionResult,
|
| 64 |
+
// Invoke appropriate UI based on the context
|
| 65 |
+
EapPeerMethodResponseActionInvokeUI,
|
| 66 |
+
// The supplicant needs to take an action based on the context.
|
| 67 |
+
EapPeerMethodResponseActionRespond,
|
| 68 |
+
// The supplicant needs to take no action at all.
|
| 69 |
+
EapPeerMethodResponseActionNone
|
| 70 |
+
} EapPeerMethodResponseAction;
|
| 71 |
+
|
| 72 |
+
// Structures used by EAP methods on the peer to communicate with the host.
|
| 73 |
+
|
| 74 |
+
typedef struct tagEapPeerMethodOuput
|
| 75 |
+
{
|
| 76 |
+
//EapPeerMethodDecision decision;
|
| 77 |
+
//EapPeerMethodState state;
|
| 78 |
+
EapPeerMethodResponseAction action;
|
| 79 |
+
BOOL fAllowNotifications;
|
| 80 |
+
} EapPeerMethodOutput;
|
| 81 |
+
|
| 82 |
+
// ENUMERATIONS USED by EAP methods on the peer to communicate their status to
|
| 83 |
+
// EapHost.
|
| 84 |
+
|
| 85 |
+
typedef
|
| 86 |
+
#ifdef __midl
|
| 87 |
+
[v1_enum]
|
| 88 |
+
#endif
|
| 89 |
+
enum tagEapPeerMethodResultReason
|
| 90 |
+
{
|
| 91 |
+
EapPeerMethodResultUnknown = 1,
|
| 92 |
+
EapPeerMethodResultSuccess,
|
| 93 |
+
EapPeerMethodResultFailure
|
| 94 |
+
} EapPeerMethodResultReason, EapPeerMethodResultReasonOle;
|
| 95 |
+
|
| 96 |
+
#ifdef __cplusplus
|
| 97 |
+
}
|
| 98 |
+
#endif
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 102 |
+
#pragma endregion
|
| 103 |
+
|
| 104 |
+
#endif // EAPAUTHENTICATORACTIONDEFINE_H
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EapHostError.h
ADDED
|
@@ -0,0 +1,355 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//////////////////////////////////////////////////////////////////////////////
|
| 2 |
+
//
|
| 3 |
+
// Copyright (c) Microsoft Corporation
|
| 4 |
+
//
|
| 5 |
+
// SYNOPSIS
|
| 6 |
+
//
|
| 7 |
+
// Scenario-specific error codes, reported by EapHost and Eap Method DLLs.
|
| 8 |
+
//
|
| 9 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 10 |
+
|
| 11 |
+
#ifndef EAPHOSTERROR_H
|
| 12 |
+
#define EAPHOSTERROR_H
|
| 13 |
+
#pragma once
|
| 14 |
+
#include <winapifamily.h>
|
| 15 |
+
|
| 16 |
+
#pragma region Desktop Family
|
| 17 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
#ifdef __cplusplus
|
| 21 |
+
extern "C" {
|
| 22 |
+
#endif
|
| 23 |
+
|
| 24 |
+
#define FACILITY_EAP_MESSAGE 0x0842 // 66L + MessageId bit
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
// Errors common across different groups.
|
| 28 |
+
#define _EAP_CERT_FIRST (+ 0x0)
|
| 29 |
+
#define _EAP_CERT_LAST (+ 0xF)
|
| 30 |
+
|
| 31 |
+
#define _EAP_CERT_NOT_FOUND (+ 0x1)
|
| 32 |
+
#define _EAP_CERT_INVALID (+ 0x2)
|
| 33 |
+
#define _EAP_CERT_EXPIRED (+ 0x3)
|
| 34 |
+
#define _EAP_CERT_REVOKED (+ 0x4)
|
| 35 |
+
#define _EAP_CERT_OTHER_ERROR (+ 0x5)
|
| 36 |
+
#define _EAP_CERT_REJECTED (+ 0x6)
|
| 37 |
+
#define _EAP_CERT_NAME_REQUIRED (+ 0x7)
|
| 38 |
+
|
| 39 |
+
#define _EAP_GENERAL_FIRST (+ 0x10) // (+16)
|
| 40 |
+
#define _EAP_GENERAL_LAST (+ 0x3F) // (+31)
|
| 41 |
+
|
| 42 |
+
//
|
| 43 |
+
// Individual groups of Eap-related Errors.
|
| 44 |
+
//
|
| 45 |
+
|
| 46 |
+
#define EAP_GROUP_MASK 0x0000FF00L
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
#define EAP_E_EAPHOST_FIRST 0x80420000L
|
| 50 |
+
#define EAP_E_EAPHOST_LAST 0x804200FFL
|
| 51 |
+
#define EAP_I_EAPHOST_FIRST 0x80420000L
|
| 52 |
+
#define EAP_I_EAPHOST_LAST 0x804200FFL
|
| 53 |
+
|
| 54 |
+
// Cert-Store can't be accessed on either authenticator or peer
|
| 55 |
+
#define EAP_E_CERT_STORE_INACCESSIBLE 0x80420010 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 0)
|
| 56 |
+
|
| 57 |
+
// Requested EAP-method is not installed
|
| 58 |
+
#define EAP_E_EAPHOST_METHOD_NOT_INSTALLED 0x80420011 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 1)
|
| 59 |
+
|
| 60 |
+
//
|
| 61 |
+
#define EAP_E_EAPHOST_THIRDPARTY_METHOD_HOST_RESET 0x80420012 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 2)
|
| 62 |
+
|
| 63 |
+
// EAPHost not able to communicate with EAPQEC on a NAP enabled client
|
| 64 |
+
#define EAP_E_EAPHOST_EAPQEC_INACCESSIBLE 0x80420013 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 3)
|
| 65 |
+
|
| 66 |
+
// EAPHost returns this error, if the authenticator fails the authentication after peer sent its identity
|
| 67 |
+
#define EAP_E_EAPHOST_IDENTITY_UNKNOWN 0x80420014 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 4)
|
| 68 |
+
|
| 69 |
+
// EAPHost returns this error on authentication failure.
|
| 70 |
+
#define EAP_E_AUTHENTICATION_FAILED 0x80420015 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 5)
|
| 71 |
+
|
| 72 |
+
// EAPHost returns this error, when the client & the server aren't configured with compatible EAP-types.
|
| 73 |
+
#define EAP_I_EAPHOST_EAP_NEGOTIATION_FAILED 0x40420016 // (EAP_I_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 6)
|
| 74 |
+
|
| 75 |
+
// EAPMethod received an EAP packet that can not be processed
|
| 76 |
+
#define EAP_E_EAPHOST_METHOD_INVALID_PACKET 0x80420017 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 7)
|
| 77 |
+
|
| 78 |
+
// EAPHost received a packet that can not be processed.
|
| 79 |
+
#define EAP_E_EAPHOST_REMOTE_INVALID_PACKET 0x80420018 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 8)
|
| 80 |
+
|
| 81 |
+
// EAPHost ConfigSchema validation failed
|
| 82 |
+
#define EAP_E_EAPHOST_XML_MALFORMED 0x80420019 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 9)
|
| 83 |
+
|
| 84 |
+
//Method doesn't support SSO for the provided config
|
| 85 |
+
#define EAP_E_METHOD_CONFIG_DOES_NOT_SUPPORT_SSO 0x8042001A // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + A)
|
| 86 |
+
|
| 87 |
+
// EAPHost returns this error, when a configured EAP-method does not support a requested operation (procedure call)
|
| 88 |
+
#define EAP_E_EAPHOST_METHOD_OPERATION_NOT_SUPPORTED 0x80420020 // (EAP_E_EAPHOST_FIRST + _EAP_GENERAL_FIRST + 10)
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
#define EAP_E_USER_FIRST 0x80420100L
|
| 92 |
+
#define EAP_E_USER_LAST 0x804201FFL
|
| 93 |
+
#define EAP_I_USER_FIRST 0x40420100L
|
| 94 |
+
#define EAP_I_USER_LAST 0x404201FFL
|
| 95 |
+
|
| 96 |
+
// EAPHost could not find user-certificate for authentication
|
| 97 |
+
#define EAP_E_USER_CERT_NOT_FOUND 0x80420100 // (EAP_E_USER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_NOT_FOUND)
|
| 98 |
+
|
| 99 |
+
// user-cert being user for authentication does not have proper usage (EKU) set
|
| 100 |
+
#define EAP_E_USER_CERT_INVALID 0x80420101 // (EAP_E_USER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_INVALID)
|
| 101 |
+
|
| 102 |
+
// EAPhost found user-cert which has expired already
|
| 103 |
+
#define EAP_E_USER_CERT_EXPIRED 0x80420102 // (EAP_E_USER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_EXPIRED)
|
| 104 |
+
|
| 105 |
+
// user-cert being used for authentication has been revoked
|
| 106 |
+
#define EAP_E_USER_CERT_REVOKED 0x80420103 // (EAP_E_USER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_REVOKED)
|
| 107 |
+
|
| 108 |
+
// unknown error occured with user-cert being used for authentication
|
| 109 |
+
#define EAP_E_USER_CERT_OTHER_ERROR 0x80420104 // (EAP_E_USER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_OTHER_ERROR)
|
| 110 |
+
|
| 111 |
+
// Authenticator rejected user-cert for authentication
|
| 112 |
+
#define EAP_E_USER_CERT_REJECTED 0x80420105 // (EAP_E_USER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_REJECTED)
|
| 113 |
+
|
| 114 |
+
// Received EAP-Failure after Identity exchange: There is likely a problem with the authenticating user's account.
|
| 115 |
+
#define EAP_I_USER_ACCOUNT_OTHER_ERROR 0x40420110 // (EAP_I_USER_FIRST + _EAP_GENERAL_FIRST + 0
|
| 116 |
+
|
| 117 |
+
// Authenticator rejected user credentials for authentication
|
| 118 |
+
#define EAP_E_USER_CREDENTIALS_REJECTED 0x80420111 // (EAP_E_USER_FIRST + _EAP_GENERAL_FIRST + 1)
|
| 119 |
+
|
| 120 |
+
// Authenticator rejected user credentials for authentication
|
| 121 |
+
#define EAP_E_USER_NAME_PASSWORD_REJECTED 0x80420112 // (EAP_E_USER_FIRST + _EAP_GENERAL_FIRST + 2)
|
| 122 |
+
|
| 123 |
+
//No Smart Card Reader Present
|
| 124 |
+
#define EAP_E_NO_SMART_CARD_READER 0x80420113 // (EAP_E_USER_FIRST + _EAP_GENERAL_FIRST + 3)
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
#define EAP_E_SERVER_FIRST 0x80420200L
|
| 128 |
+
#define EAP_E_SERVER_LAST 0x804202FFL
|
| 129 |
+
|
| 130 |
+
// EAPHost could not find server-certificate for authentication
|
| 131 |
+
#define EAP_E_SERVER_CERT_NOT_FOUND 0x80420200 // (EAP_E_SERVER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_NOT_FOUND)
|
| 132 |
+
|
| 133 |
+
// server-cert being user for authentication does not have proper usage (EKU) set
|
| 134 |
+
#define EAP_E_SERVER_CERT_INVALID 0x80420201 // (EAP_E_SERVER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_INVALID)
|
| 135 |
+
|
| 136 |
+
// EAPhost found server-cert which has expired already
|
| 137 |
+
#define EAP_E_SERVER_CERT_EXPIRED 0x80420202 // (EAP_E_SERVER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_EXPIRED)
|
| 138 |
+
|
| 139 |
+
// server-cert being used for authentication has been revoked
|
| 140 |
+
#define EAP_E_SERVER_CERT_REVOKED 0x80420203 // (EAP_E_SERVER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_REVOKED)
|
| 141 |
+
|
| 142 |
+
// unknown error occured with server-cert being used for authentication
|
| 143 |
+
#define EAP_E_SERVER_CERT_OTHER_ERROR 0x80420204 // (EAP_E_SERVER_FIRST + _EAP_CERT_FIRST + _EAP_CERT_OTHER_ERROR)
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
#define EAP_E_USER_ROOT_CERT_FIRST 0x80420300L
|
| 147 |
+
#define EAP_E_USER_ROOT_CERT_LAST 0x804203FFL
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
// EAPHost could not find a certificate in trusted-root cert-store for user cert velidation
|
| 151 |
+
#define EAP_E_USER_ROOT_CERT_NOT_FOUND 0x80420300 // (EAP_E_USER_ROOT_CERT_FIRST + _EAP_CERT_FIRST + _EAP_CERT_NOT_FOUND)
|
| 152 |
+
|
| 153 |
+
// The authentication failed because the root certificate used for this network is invalid
|
| 154 |
+
#define EAP_E_USER_ROOT_CERT_INVALID 0x80420301 // (EAP_E_USER_ROOT_CERT_FIRST + _EAP_CERT_FIRST + _EAP_CERT_INVALID)
|
| 155 |
+
|
| 156 |
+
// Trusted root certificate needed for user-cert validation has been expired.
|
| 157 |
+
#define EAP_E_USER_ROOT_CERT_EXPIRED 0x80420302 // (EAP_E_USER_ROOT_CERT_FIRST + _EAP_CERT_FIRST + _EAP_CERT_EXPIRED)
|
| 158 |
+
|
| 159 |
+
#define EAP_E_SERVER_ROOT_CERT_FIRST 0x80420400L
|
| 160 |
+
#define EAP_E_SERVER_ROOT_CERT_LAST 0x804204FFL
|
| 161 |
+
|
| 162 |
+
// EAPHost could not find a Root certificate in trusted-root cert-store for server cert velidation
|
| 163 |
+
#define EAP_E_SERVER_ROOT_CERT_NOT_FOUND 0x80420400 // (EAP_E_SERVER_ROOT_CERT_FIRST + _EAP_CERT_FIRST + _EAP_CERT_NOT_FOUND)
|
| 164 |
+
|
| 165 |
+
// The authentication failed because the server certificate required for this network on the server computer is invalid
|
| 166 |
+
#define EAP_E_SERVER_ROOT_CERT_INVALID 0x80420401 // (EAP_E_SERVER_ROOT_CERT_FIRST + _EAP_CERT_FIRST + _EAP_CERT_INVALID)
|
| 167 |
+
|
| 168 |
+
// The authentication failed because the certificate on the server computer does not have a server name specified
|
| 169 |
+
#define EAP_E_SERVER_ROOT_CERT_NAME_REQUIRED 0x80420406 // (EAP_E_SERVER_ROOT_CERT_FIRST + _EAP_CERT_FIRST + _EAP_CERT_NAME_REQUIRED)
|
| 170 |
+
|
| 171 |
+
// The authentication failed because there is no valid SIM for authentication
|
| 172 |
+
#define EAP_E_SIM_NOT_VALID 0x80420500
|
| 173 |
+
|
| 174 |
+
// Alternate names for certain errors.
|
| 175 |
+
#define EAP_METHOD_INVALID_PACKET EAP_E_EAPHOST_METHOD_INVALID_PACKET
|
| 176 |
+
#define EAP_INVALID_PACKET EAP_E_EAPHOST_REMOTE_INVALID_PACKET
|
| 177 |
+
|
| 178 |
+
// This is not a fixed GUID when it reaches supplicant, but 1st portion will be
|
| 179 |
+
// filled by Generic Win32/Ras error. This helps create unique GUID for every
|
| 180 |
+
// unique error that we don't understand. This helps collect SQM data.
|
| 181 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Default \
|
| 182 |
+
= { 0x00000000, 0x0000, 0x0000, 0, 0, 0, 0, 0, 0, 0, 0 };
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_MethodDLLNotFound \
|
| 186 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 1 } };
|
| 187 |
+
|
| 188 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactSysadmin \
|
| 189 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 2 } };
|
| 190 |
+
|
| 191 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_CertStoreInaccessible \
|
| 192 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 4 } };
|
| 193 |
+
|
| 194 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Generic_AuthFailure \
|
| 195 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 1, 4 } };
|
| 196 |
+
|
| 197 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_IdentityUnknown \
|
| 198 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 2, 4 } };
|
| 199 |
+
|
| 200 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_SimNotValid \
|
| 201 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 3, 4 } };
|
| 202 |
+
|
| 203 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Server_CertExpired \
|
| 204 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 5 } };
|
| 205 |
+
|
| 206 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Server_CertInvalid \
|
| 207 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 6 } };
|
| 208 |
+
|
| 209 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Server_CertNotFound \
|
| 210 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 7 } };
|
| 211 |
+
|
| 212 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Server_CertRevoked \
|
| 213 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 8 } };
|
| 214 |
+
|
| 215 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Server_CertOtherError \
|
| 216 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 1, 8 } };
|
| 217 |
+
|
| 218 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_CertExpired \
|
| 219 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 9 } };
|
| 220 |
+
|
| 221 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_CertInvalid \
|
| 222 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0xA } };
|
| 223 |
+
|
| 224 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_CertNotFound \
|
| 225 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0xB } };
|
| 226 |
+
|
| 227 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_CertOtherError \
|
| 228 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0xC } };
|
| 229 |
+
|
| 230 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_CertRejected \
|
| 231 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0xD } };
|
| 232 |
+
|
| 233 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_CertRevoked \
|
| 234 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0xE } };
|
| 235 |
+
|
| 236 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_Account_OtherProblem \
|
| 237 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 1, 0xE } };
|
| 238 |
+
|
| 239 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_CredsRejected \
|
| 240 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 2, 0xE } };
|
| 241 |
+
|
| 242 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_Root_CertExpired \
|
| 243 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0xF } };
|
| 244 |
+
|
| 245 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_Root_CertInvalid \
|
| 246 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x10 } };
|
| 247 |
+
|
| 248 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_User_Root_CertNotFound \
|
| 249 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x11 } };
|
| 250 |
+
|
| 251 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Server_Root_CertNameRequired \
|
| 252 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x12 } };
|
| 253 |
+
|
| 254 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Server_Root_CertNotFound \
|
| 255 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 1, 0x12 } };
|
| 256 |
+
|
| 257 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_ThirdPartyMethod_Host_Reset \
|
| 258 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 2, 0x12 } };
|
| 259 |
+
|
| 260 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_EapQecInaccessible \
|
| 261 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 3, 0x12 } };
|
| 262 |
+
|
| 263 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_Server_ClientSelectServerCert \
|
| 264 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x18 } };
|
| 265 |
+
|
| 266 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_User_AuthFailure \
|
| 267 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x19 } };
|
| 268 |
+
|
| 269 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_User_GetNewCert \
|
| 270 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x1A } };
|
| 271 |
+
|
| 272 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_User_SelectValidCert \
|
| 273 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x1B } };
|
| 274 |
+
|
| 275 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_Retry_Authentication \
|
| 276 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 1, 0x1B } };
|
| 277 |
+
|
| 278 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_EapNegotiationFailed \
|
| 279 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x1C } };
|
| 280 |
+
|
| 281 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_XmlMalformed \
|
| 282 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x1D } };
|
| 283 |
+
|
| 284 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_MethodDoesNotSupportOperation \
|
| 285 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x1E } };
|
| 286 |
+
|
| 287 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_AuthFailure \
|
| 288 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x1F } };
|
| 289 |
+
|
| 290 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_IdentityUnknown \
|
| 291 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x20 }};
|
| 292 |
+
|
| 293 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_NegotiationFailed \
|
| 294 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x21}};
|
| 295 |
+
|
| 296 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_MethodNotFound \
|
| 297 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x22} };
|
| 298 |
+
|
| 299 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_RestartNap \
|
| 300 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x23} };
|
| 301 |
+
|
| 302 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_CertStoreInaccessible \
|
| 303 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x24} };
|
| 304 |
+
|
| 305 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_InvalidUserAccount \
|
| 306 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x25} };
|
| 307 |
+
|
| 308 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_RootCertInvalid \
|
| 309 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x26} };
|
| 310 |
+
|
| 311 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_RootCertNotFound \
|
| 312 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x27} };
|
| 313 |
+
|
| 314 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_RootExpired \
|
| 315 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x28} };
|
| 316 |
+
|
| 317 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_CertNameAbsent \
|
| 318 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x29} };
|
| 319 |
+
|
| 320 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_NoSmartCardReader \
|
| 321 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x2A} };
|
| 322 |
+
|
| 323 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_No_SmartCardReader_Found \
|
| 324 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x2B }};
|
| 325 |
+
|
| 326 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_ContactAdmin_InvalidUserCert \
|
| 327 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x2C }};
|
| 328 |
+
|
| 329 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_Method_Not_Support_Sso \
|
| 330 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x2D }};
|
| 331 |
+
|
| 332 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Repair_No_ValidSim_Found \
|
| 333 |
+
= { 0x9612fc67, 0x6150, 0x4209, { 0xa8, 0x5e, 0xa8, 0xd8, 0, 0, 0, 0x2E }};
|
| 334 |
+
|
| 335 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Help_ObtainingCerts \
|
| 336 |
+
= { 0xf535eea3, 0x1bdd, 0x46ca, { 0xa2, 0xfc, 0xa6, 0x65, 0x59, 0x39, 0xb7, 0xe8 } };
|
| 337 |
+
|
| 338 |
+
// This currently is a generic networking troubleshooting help page, not EAP specific.
|
| 339 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Help_Troubleshooting \
|
| 340 |
+
= { 0x33307acf, 0x0698, 0x41ba, { 0xb0, 0x14, 0xea, 0x0a, 0x2e, 0xb8, 0xd0, 0xa8 } };
|
| 341 |
+
|
| 342 |
+
// This is used when the method does not supportSSO for provided config.
|
| 343 |
+
EXTERN_C const CLSID DECLSPEC_SELECTANY GUID_EapHost_Cause_Method_Config_Does_Not_Support_Sso \
|
| 344 |
+
= { 0xda18bd32, 0x004F, 0x41fa, { 0xae, 0x08, 0x0b, 0xc8, 0x5e, 0x58, 0x45, 0xac } };
|
| 345 |
+
|
| 346 |
+
#ifdef __cplusplus
|
| 347 |
+
}
|
| 348 |
+
#endif
|
| 349 |
+
|
| 350 |
+
|
| 351 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 352 |
+
#pragma endregion
|
| 353 |
+
|
| 354 |
+
#endif // EAPHOSTERROR_H
|
| 355 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EapHostPeerTypes.h
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
| 7 |
+
// IDL source for interaction with EAPHost supplicants.
|
| 8 |
+
//
|
| 9 |
+
////////////////////////////////////////////////////////////
|
| 10 |
+
|
| 11 |
+
#ifndef EAPHOSTPEERTYPES_H
|
| 12 |
+
#define EAPHOSTPEERTYPES_H
|
| 13 |
+
#pragma once
|
| 14 |
+
#include <winapifamily.h>
|
| 15 |
+
|
| 16 |
+
#pragma region Desktop Family
|
| 17 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
// Request to provide guest access.
|
| 21 |
+
#define EAP_PEER_FLAG_GUEST_ACCESS 0x00000040
|
| 22 |
+
|
| 23 |
+
typedef
|
| 24 |
+
#ifdef __midl
|
| 25 |
+
[v1_enum]
|
| 26 |
+
#endif
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
// Possible reasons for which EAP-method can call getResult from EAPhost
|
| 30 |
+
enum tagEapHostPeerMethodResultReason
|
| 31 |
+
{
|
| 32 |
+
// if method has obtained success from some
|
| 33 |
+
EapHostPeerMethodResultAltSuccessReceived = 1,
|
| 34 |
+
|
| 35 |
+
// method timedout waiting for response
|
| 36 |
+
EapHostPeerMethodResultTimeout,
|
| 37 |
+
|
| 38 |
+
// normal completion of authentication process
|
| 39 |
+
EapHostPeerMethodResultFromMethod
|
| 40 |
+
} EapHostPeerMethodResultReason;
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
typedef
|
| 44 |
+
#ifdef __midl
|
| 45 |
+
[v1_enum]
|
| 46 |
+
#endif
|
| 47 |
+
enum tagEapHostPeerResponseAction
|
| 48 |
+
{
|
| 49 |
+
// Discard the request as EAP cannot use it.
|
| 50 |
+
EapHostPeerResponseDiscard = 0,
|
| 51 |
+
// Send the packet to the authenticator
|
| 52 |
+
EapHostPeerResponseSend,
|
| 53 |
+
// Respond to EAP by acting on the returned attributes
|
| 54 |
+
EapHostPeerResponseResult,
|
| 55 |
+
// Invoke appropriate UI based on the context
|
| 56 |
+
EapHostPeerResponseInvokeUi,
|
| 57 |
+
// Display a string to the user received as part of a notification
|
| 58 |
+
// request
|
| 59 |
+
// EapHostPeerResponseNotification,
|
| 60 |
+
// The supplicant needs to take an action based on the context.
|
| 61 |
+
EapHostPeerResponseRespond,
|
| 62 |
+
// The supplicant needs to restart authentication with the same session.
|
| 63 |
+
//EapHostPeerResponseResetAuthentication,
|
| 64 |
+
// The session could not be found. So the supplicant either needs to
|
| 65 |
+
// start session again with the same packet or discard the packet.
|
| 66 |
+
EapHostPeerResponseStartAuthentication,
|
| 67 |
+
// The supplicant needs to take no action at all.
|
| 68 |
+
EapHostPeerResponseNone
|
| 69 |
+
} EapHostPeerResponseAction;
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
typedef
|
| 73 |
+
#ifdef __midl
|
| 74 |
+
[v1_enum]
|
| 75 |
+
#endif
|
| 76 |
+
enum tagEapHostPeerAuthParams {
|
| 77 |
+
EapHostPeerAuthStatus = 1, // current auth status
|
| 78 |
+
EapHostPeerIdentity, // obtain the inner method id
|
| 79 |
+
EapHostPeerIdentityExtendedInfo, // obtained from Identity packet
|
| 80 |
+
// This includes NLA information for wireless
|
| 81 |
+
EapHostNapInfo //obtain the Nap details
|
| 82 |
+
} EapHostPeerAuthParams;
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
typedef
|
| 86 |
+
#ifdef __midl
|
| 87 |
+
[v1_enum]
|
| 88 |
+
#endif
|
| 89 |
+
|
| 90 |
+
// possible values for EAP status during authentication process
|
| 91 |
+
enum _EAPHOST_AUTH_STATUS
|
| 92 |
+
{
|
| 93 |
+
EapHostInvalidSession = 0,
|
| 94 |
+
EapHostAuthNotStarted,
|
| 95 |
+
EapHostAuthIdentityExchange,
|
| 96 |
+
EapHostAuthNegotiatingType,
|
| 97 |
+
EapHostAuthInProgress,
|
| 98 |
+
EapHostAuthSucceeded,
|
| 99 |
+
EapHostAuthFailed
|
| 100 |
+
} EAPHOST_AUTH_STATUS;
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
// describes the current authentication info through different stages
|
| 104 |
+
// of EAP authentication process.
|
| 105 |
+
typedef struct _EAPHOST_AUTH_INFO
|
| 106 |
+
{
|
| 107 |
+
EAPHOST_AUTH_STATUS status;
|
| 108 |
+
DWORD dwErrorCode;
|
| 109 |
+
DWORD dwReasonCode;
|
| 110 |
+
} EAPHOST_AUTH_INFO;
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
// Describes the isolation state of a machine, i.e.
|
| 114 |
+
// whether connectivity is affected.
|
| 115 |
+
typedef
|
| 116 |
+
#ifdef __midl
|
| 117 |
+
[v1_enum]
|
| 118 |
+
#endif
|
| 119 |
+
enum _ISOLATION_STATE
|
| 120 |
+
{
|
| 121 |
+
ISOLATION_STATE_UNKNOWN = 0,
|
| 122 |
+
ISOLATION_STATE_NOT_RESTRICTED = 1,
|
| 123 |
+
ISOLATION_STATE_IN_PROBATION = 2,
|
| 124 |
+
ISOLATION_STATE_RESTRICTED_ACCESS = 3
|
| 125 |
+
} ISOLATION_STATE;
|
| 126 |
+
|
| 127 |
+
// This carries the result information passed from EAPHost to EAP-method,
|
| 128 |
+
// when EAP-method calls GetResult
|
| 129 |
+
typedef struct tagEapHostPeerMethodResult
|
| 130 |
+
{
|
| 131 |
+
BOOL fIsSuccess;
|
| 132 |
+
UINT32 dwFailureReasonCode;
|
| 133 |
+
BOOL fSaveConnectionData;
|
| 134 |
+
UINT32 dwSizeofConnectionData;
|
| 135 |
+
#ifdef __midl
|
| 136 |
+
[size_is(dwSizeofConnectionData)] BYTE* pConnectionData;
|
| 137 |
+
#else
|
| 138 |
+
BYTE* pConnectionData;
|
| 139 |
+
#endif
|
| 140 |
+
BOOL fSaveUserData;
|
| 141 |
+
UINT32 dwSizeofUserData;
|
| 142 |
+
#ifdef __midl
|
| 143 |
+
[size_is(dwSizeofUserData)] BYTE* pUserData;
|
| 144 |
+
#else
|
| 145 |
+
BYTE* pUserData;
|
| 146 |
+
#endif
|
| 147 |
+
EAP_ATTRIBUTES* pAttribArray;
|
| 148 |
+
ISOLATION_STATE isolationState;
|
| 149 |
+
EAP_METHOD_INFO* pEapMethodInfo;
|
| 150 |
+
EAP_ERROR* pEapError;
|
| 151 |
+
} EapHostPeerMethodResult;
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 155 |
+
#pragma endregion
|
| 156 |
+
|
| 157 |
+
#endif //EAPHOSTPEERTYPES_IDL
|
| 158 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EditionUpgradeHelper.h
ADDED
|
@@ -0,0 +1,776 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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628 */
|
| 7 |
+
/* @@MIDL_FILE_HEADING( ) */
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
/* verify that the <rpcndr.h> version is high enough to compile this file*/
|
| 12 |
+
#ifndef __REQUIRED_RPCNDR_H_VERSION__
|
| 13 |
+
#define __REQUIRED_RPCNDR_H_VERSION__ 501
|
| 14 |
+
#endif
|
| 15 |
+
|
| 16 |
+
/* verify that the <rpcsal.h> version is high enough to compile this file*/
|
| 17 |
+
#ifndef __REQUIRED_RPCSAL_H_VERSION__
|
| 18 |
+
#define __REQUIRED_RPCSAL_H_VERSION__ 100
|
| 19 |
+
#endif
|
| 20 |
+
|
| 21 |
+
#include "rpc.h"
|
| 22 |
+
#include "rpcndr.h"
|
| 23 |
+
|
| 24 |
+
#ifndef __RPCNDR_H_VERSION__
|
| 25 |
+
#error this stub requires an updated version of <rpcndr.h>
|
| 26 |
+
#endif /* __RPCNDR_H_VERSION__ */
|
| 27 |
+
|
| 28 |
+
#ifndef COM_NO_WINDOWS_H
|
| 29 |
+
#include "windows.h"
|
| 30 |
+
#include "ole2.h"
|
| 31 |
+
#endif /*COM_NO_WINDOWS_H*/
|
| 32 |
+
|
| 33 |
+
#ifndef __editionupgradehelper_h__
|
| 34 |
+
#define __editionupgradehelper_h__
|
| 35 |
+
|
| 36 |
+
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
| 37 |
+
#pragma once
|
| 38 |
+
#endif
|
| 39 |
+
|
| 40 |
+
#ifndef DECLSPEC_XFGVIRT
|
| 41 |
+
#if defined(_CONTROL_FLOW_GUARD_XFG)
|
| 42 |
+
#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func))
|
| 43 |
+
#else
|
| 44 |
+
#define DECLSPEC_XFGVIRT(base, func)
|
| 45 |
+
#endif
|
| 46 |
+
#endif
|
| 47 |
+
|
| 48 |
+
/* Forward Declarations */
|
| 49 |
+
|
| 50 |
+
#ifndef __IEditionUpgradeHelper_FWD_DEFINED__
|
| 51 |
+
#define __IEditionUpgradeHelper_FWD_DEFINED__
|
| 52 |
+
typedef interface IEditionUpgradeHelper IEditionUpgradeHelper;
|
| 53 |
+
|
| 54 |
+
#endif /* __IEditionUpgradeHelper_FWD_DEFINED__ */
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
#ifndef __IWindowsLockModeHelper_FWD_DEFINED__
|
| 58 |
+
#define __IWindowsLockModeHelper_FWD_DEFINED__
|
| 59 |
+
typedef interface IWindowsLockModeHelper IWindowsLockModeHelper;
|
| 60 |
+
|
| 61 |
+
#endif /* __IWindowsLockModeHelper_FWD_DEFINED__ */
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
#ifndef __IEditionUpgradeBroker_FWD_DEFINED__
|
| 65 |
+
#define __IEditionUpgradeBroker_FWD_DEFINED__
|
| 66 |
+
typedef interface IEditionUpgradeBroker IEditionUpgradeBroker;
|
| 67 |
+
|
| 68 |
+
#endif /* __IEditionUpgradeBroker_FWD_DEFINED__ */
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
#ifndef __IContainerActivationHelper_FWD_DEFINED__
|
| 72 |
+
#define __IContainerActivationHelper_FWD_DEFINED__
|
| 73 |
+
typedef interface IContainerActivationHelper IContainerActivationHelper;
|
| 74 |
+
|
| 75 |
+
#endif /* __IContainerActivationHelper_FWD_DEFINED__ */
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
#ifndef __IClipServiceNotificationHelper_FWD_DEFINED__
|
| 79 |
+
#define __IClipServiceNotificationHelper_FWD_DEFINED__
|
| 80 |
+
typedef interface IClipServiceNotificationHelper IClipServiceNotificationHelper;
|
| 81 |
+
|
| 82 |
+
#endif /* __IClipServiceNotificationHelper_FWD_DEFINED__ */
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
#ifndef __IFClipNotificationHelper_FWD_DEFINED__
|
| 86 |
+
#define __IFClipNotificationHelper_FWD_DEFINED__
|
| 87 |
+
typedef interface IFClipNotificationHelper IFClipNotificationHelper;
|
| 88 |
+
|
| 89 |
+
#endif /* __IFClipNotificationHelper_FWD_DEFINED__ */
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
#ifndef __EditionUpgradeHelper_FWD_DEFINED__
|
| 93 |
+
#define __EditionUpgradeHelper_FWD_DEFINED__
|
| 94 |
+
|
| 95 |
+
#ifdef __cplusplus
|
| 96 |
+
typedef class EditionUpgradeHelper EditionUpgradeHelper;
|
| 97 |
+
#else
|
| 98 |
+
typedef struct EditionUpgradeHelper EditionUpgradeHelper;
|
| 99 |
+
#endif /* __cplusplus */
|
| 100 |
+
|
| 101 |
+
#endif /* __EditionUpgradeHelper_FWD_DEFINED__ */
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
#ifndef __EditionUpgradeBroker_FWD_DEFINED__
|
| 105 |
+
#define __EditionUpgradeBroker_FWD_DEFINED__
|
| 106 |
+
|
| 107 |
+
#ifdef __cplusplus
|
| 108 |
+
typedef class EditionUpgradeBroker EditionUpgradeBroker;
|
| 109 |
+
#else
|
| 110 |
+
typedef struct EditionUpgradeBroker EditionUpgradeBroker;
|
| 111 |
+
#endif /* __cplusplus */
|
| 112 |
+
|
| 113 |
+
#endif /* __EditionUpgradeBroker_FWD_DEFINED__ */
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
/* header files for imported files */
|
| 117 |
+
#include "ocidl.h"
|
| 118 |
+
|
| 119 |
+
#ifdef __cplusplus
|
| 120 |
+
extern "C"{
|
| 121 |
+
#endif
|
| 122 |
+
|
| 123 |
+
|
| 124 |
+
/* interface __MIDL_itf_editionupgradehelper_0000_0000 */
|
| 125 |
+
/* [local] */
|
| 126 |
+
|
| 127 |
+
#pragma region Application Family
|
| 128 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
extern RPC_IF_HANDLE __MIDL_itf_editionupgradehelper_0000_0000_v0_0_c_ifspec;
|
| 132 |
+
extern RPC_IF_HANDLE __MIDL_itf_editionupgradehelper_0000_0000_v0_0_s_ifspec;
|
| 133 |
+
|
| 134 |
+
#ifndef __IEditionUpgradeHelper_INTERFACE_DEFINED__
|
| 135 |
+
#define __IEditionUpgradeHelper_INTERFACE_DEFINED__
|
| 136 |
+
|
| 137 |
+
/* interface IEditionUpgradeHelper */
|
| 138 |
+
/* [uuid][object] */
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
EXTERN_C const IID IID_IEditionUpgradeHelper;
|
| 142 |
+
|
| 143 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 144 |
+
|
| 145 |
+
MIDL_INTERFACE("D3E9E342-5DEB-43B6-849E-6913B85D503A")
|
| 146 |
+
IEditionUpgradeHelper : public IUnknown
|
| 147 |
+
{
|
| 148 |
+
public:
|
| 149 |
+
virtual HRESULT STDMETHODCALLTYPE CanUpgrade(
|
| 150 |
+
/* [out] */ __RPC__out BOOL *isAllowed) = 0;
|
| 151 |
+
|
| 152 |
+
virtual HRESULT STDMETHODCALLTYPE UpdateOperatingSystem(
|
| 153 |
+
/* [string][in] */ __RPC__in_string LPCWSTR contentId) = 0;
|
| 154 |
+
|
| 155 |
+
virtual HRESULT STDMETHODCALLTYPE ShowProductKeyUI( void) = 0;
|
| 156 |
+
|
| 157 |
+
virtual HRESULT STDMETHODCALLTYPE GetOsProductContentId(
|
| 158 |
+
/* [string][out] */ __RPC__deref_out_opt_string LPWSTR *contentId) = 0;
|
| 159 |
+
|
| 160 |
+
virtual HRESULT STDMETHODCALLTYPE GetGenuineLocalStatus(
|
| 161 |
+
/* [out] */ __RPC__out BOOL *isGenuine) = 0;
|
| 162 |
+
|
| 163 |
+
};
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
#else /* C style interface */
|
| 167 |
+
|
| 168 |
+
typedef struct IEditionUpgradeHelperVtbl
|
| 169 |
+
{
|
| 170 |
+
BEGIN_INTERFACE
|
| 171 |
+
|
| 172 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 173 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 174 |
+
__RPC__in IEditionUpgradeHelper * This,
|
| 175 |
+
/* [in] */ __RPC__in REFIID riid,
|
| 176 |
+
/* [annotation][iid_is][out] */
|
| 177 |
+
_COM_Outptr_ void **ppvObject);
|
| 178 |
+
|
| 179 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 180 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 181 |
+
__RPC__in IEditionUpgradeHelper * This);
|
| 182 |
+
|
| 183 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 184 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 185 |
+
__RPC__in IEditionUpgradeHelper * This);
|
| 186 |
+
|
| 187 |
+
DECLSPEC_XFGVIRT(IEditionUpgradeHelper, CanUpgrade)
|
| 188 |
+
HRESULT ( STDMETHODCALLTYPE *CanUpgrade )(
|
| 189 |
+
__RPC__in IEditionUpgradeHelper * This,
|
| 190 |
+
/* [out] */ __RPC__out BOOL *isAllowed);
|
| 191 |
+
|
| 192 |
+
DECLSPEC_XFGVIRT(IEditionUpgradeHelper, UpdateOperatingSystem)
|
| 193 |
+
HRESULT ( STDMETHODCALLTYPE *UpdateOperatingSystem )(
|
| 194 |
+
__RPC__in IEditionUpgradeHelper * This,
|
| 195 |
+
/* [string][in] */ __RPC__in_string LPCWSTR contentId);
|
| 196 |
+
|
| 197 |
+
DECLSPEC_XFGVIRT(IEditionUpgradeHelper, ShowProductKeyUI)
|
| 198 |
+
HRESULT ( STDMETHODCALLTYPE *ShowProductKeyUI )(
|
| 199 |
+
__RPC__in IEditionUpgradeHelper * This);
|
| 200 |
+
|
| 201 |
+
DECLSPEC_XFGVIRT(IEditionUpgradeHelper, GetOsProductContentId)
|
| 202 |
+
HRESULT ( STDMETHODCALLTYPE *GetOsProductContentId )(
|
| 203 |
+
__RPC__in IEditionUpgradeHelper * This,
|
| 204 |
+
/* [string][out] */ __RPC__deref_out_opt_string LPWSTR *contentId);
|
| 205 |
+
|
| 206 |
+
DECLSPEC_XFGVIRT(IEditionUpgradeHelper, GetGenuineLocalStatus)
|
| 207 |
+
HRESULT ( STDMETHODCALLTYPE *GetGenuineLocalStatus )(
|
| 208 |
+
__RPC__in IEditionUpgradeHelper * This,
|
| 209 |
+
/* [out] */ __RPC__out BOOL *isGenuine);
|
| 210 |
+
|
| 211 |
+
END_INTERFACE
|
| 212 |
+
} IEditionUpgradeHelperVtbl;
|
| 213 |
+
|
| 214 |
+
interface IEditionUpgradeHelper
|
| 215 |
+
{
|
| 216 |
+
CONST_VTBL struct IEditionUpgradeHelperVtbl *lpVtbl;
|
| 217 |
+
};
|
| 218 |
+
|
| 219 |
+
|
| 220 |
+
|
| 221 |
+
#ifdef COBJMACROS
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
#define IEditionUpgradeHelper_QueryInterface(This,riid,ppvObject) \
|
| 225 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 226 |
+
|
| 227 |
+
#define IEditionUpgradeHelper_AddRef(This) \
|
| 228 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 229 |
+
|
| 230 |
+
#define IEditionUpgradeHelper_Release(This) \
|
| 231 |
+
( (This)->lpVtbl -> Release(This) )
|
| 232 |
+
|
| 233 |
+
|
| 234 |
+
#define IEditionUpgradeHelper_CanUpgrade(This,isAllowed) \
|
| 235 |
+
( (This)->lpVtbl -> CanUpgrade(This,isAllowed) )
|
| 236 |
+
|
| 237 |
+
#define IEditionUpgradeHelper_UpdateOperatingSystem(This,contentId) \
|
| 238 |
+
( (This)->lpVtbl -> UpdateOperatingSystem(This,contentId) )
|
| 239 |
+
|
| 240 |
+
#define IEditionUpgradeHelper_ShowProductKeyUI(This) \
|
| 241 |
+
( (This)->lpVtbl -> ShowProductKeyUI(This) )
|
| 242 |
+
|
| 243 |
+
#define IEditionUpgradeHelper_GetOsProductContentId(This,contentId) \
|
| 244 |
+
( (This)->lpVtbl -> GetOsProductContentId(This,contentId) )
|
| 245 |
+
|
| 246 |
+
#define IEditionUpgradeHelper_GetGenuineLocalStatus(This,isGenuine) \
|
| 247 |
+
( (This)->lpVtbl -> GetGenuineLocalStatus(This,isGenuine) )
|
| 248 |
+
|
| 249 |
+
#endif /* COBJMACROS */
|
| 250 |
+
|
| 251 |
+
|
| 252 |
+
#endif /* C style interface */
|
| 253 |
+
|
| 254 |
+
|
| 255 |
+
|
| 256 |
+
|
| 257 |
+
#endif /* __IEditionUpgradeHelper_INTERFACE_DEFINED__ */
|
| 258 |
+
|
| 259 |
+
|
| 260 |
+
#ifndef __IWindowsLockModeHelper_INTERFACE_DEFINED__
|
| 261 |
+
#define __IWindowsLockModeHelper_INTERFACE_DEFINED__
|
| 262 |
+
|
| 263 |
+
/* interface IWindowsLockModeHelper */
|
| 264 |
+
/* [uuid][object] */
|
| 265 |
+
|
| 266 |
+
|
| 267 |
+
EXTERN_C const IID IID_IWindowsLockModeHelper;
|
| 268 |
+
|
| 269 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 270 |
+
|
| 271 |
+
MIDL_INTERFACE("F342D19E-CC22-4648-BB5D-03CCF75B47C5")
|
| 272 |
+
IWindowsLockModeHelper : public IUnknown
|
| 273 |
+
{
|
| 274 |
+
public:
|
| 275 |
+
virtual HRESULT STDMETHODCALLTYPE GetSMode(
|
| 276 |
+
/* [out] */ __RPC__out BOOL *isSmode) = 0;
|
| 277 |
+
|
| 278 |
+
};
|
| 279 |
+
|
| 280 |
+
|
| 281 |
+
#else /* C style interface */
|
| 282 |
+
|
| 283 |
+
typedef struct IWindowsLockModeHelperVtbl
|
| 284 |
+
{
|
| 285 |
+
BEGIN_INTERFACE
|
| 286 |
+
|
| 287 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 288 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 289 |
+
__RPC__in IWindowsLockModeHelper * This,
|
| 290 |
+
/* [in] */ __RPC__in REFIID riid,
|
| 291 |
+
/* [annotation][iid_is][out] */
|
| 292 |
+
_COM_Outptr_ void **ppvObject);
|
| 293 |
+
|
| 294 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 295 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 296 |
+
__RPC__in IWindowsLockModeHelper * This);
|
| 297 |
+
|
| 298 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 299 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 300 |
+
__RPC__in IWindowsLockModeHelper * This);
|
| 301 |
+
|
| 302 |
+
DECLSPEC_XFGVIRT(IWindowsLockModeHelper, GetSMode)
|
| 303 |
+
HRESULT ( STDMETHODCALLTYPE *GetSMode )(
|
| 304 |
+
__RPC__in IWindowsLockModeHelper * This,
|
| 305 |
+
/* [out] */ __RPC__out BOOL *isSmode);
|
| 306 |
+
|
| 307 |
+
END_INTERFACE
|
| 308 |
+
} IWindowsLockModeHelperVtbl;
|
| 309 |
+
|
| 310 |
+
interface IWindowsLockModeHelper
|
| 311 |
+
{
|
| 312 |
+
CONST_VTBL struct IWindowsLockModeHelperVtbl *lpVtbl;
|
| 313 |
+
};
|
| 314 |
+
|
| 315 |
+
|
| 316 |
+
|
| 317 |
+
#ifdef COBJMACROS
|
| 318 |
+
|
| 319 |
+
|
| 320 |
+
#define IWindowsLockModeHelper_QueryInterface(This,riid,ppvObject) \
|
| 321 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 322 |
+
|
| 323 |
+
#define IWindowsLockModeHelper_AddRef(This) \
|
| 324 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 325 |
+
|
| 326 |
+
#define IWindowsLockModeHelper_Release(This) \
|
| 327 |
+
( (This)->lpVtbl -> Release(This) )
|
| 328 |
+
|
| 329 |
+
|
| 330 |
+
#define IWindowsLockModeHelper_GetSMode(This,isSmode) \
|
| 331 |
+
( (This)->lpVtbl -> GetSMode(This,isSmode) )
|
| 332 |
+
|
| 333 |
+
#endif /* COBJMACROS */
|
| 334 |
+
|
| 335 |
+
|
| 336 |
+
#endif /* C style interface */
|
| 337 |
+
|
| 338 |
+
|
| 339 |
+
|
| 340 |
+
|
| 341 |
+
#endif /* __IWindowsLockModeHelper_INTERFACE_DEFINED__ */
|
| 342 |
+
|
| 343 |
+
|
| 344 |
+
#ifndef __IEditionUpgradeBroker_INTERFACE_DEFINED__
|
| 345 |
+
#define __IEditionUpgradeBroker_INTERFACE_DEFINED__
|
| 346 |
+
|
| 347 |
+
/* interface IEditionUpgradeBroker */
|
| 348 |
+
/* [unique][helpstring][oleautomation][nonextensible][dual][uuid][object] */
|
| 349 |
+
|
| 350 |
+
|
| 351 |
+
EXTERN_C const IID IID_IEditionUpgradeBroker;
|
| 352 |
+
|
| 353 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 354 |
+
|
| 355 |
+
MIDL_INTERFACE("FF19CBCF-9455-4937-B872-6B7929A460AF")
|
| 356 |
+
IEditionUpgradeBroker : public IUnknown
|
| 357 |
+
{
|
| 358 |
+
public:
|
| 359 |
+
virtual HRESULT STDMETHODCALLTYPE InitializeParentWindow(
|
| 360 |
+
/* [in] */ OLE_HANDLE parentHandle) = 0;
|
| 361 |
+
|
| 362 |
+
virtual HRESULT STDMETHODCALLTYPE UpdateOperatingSystem(
|
| 363 |
+
/* [string][in] */ __RPC__in_string BSTR parameter) = 0;
|
| 364 |
+
|
| 365 |
+
virtual HRESULT STDMETHODCALLTYPE ShowProductKeyUI( void) = 0;
|
| 366 |
+
|
| 367 |
+
virtual HRESULT STDMETHODCALLTYPE CanUpgrade( void) = 0;
|
| 368 |
+
|
| 369 |
+
};
|
| 370 |
+
|
| 371 |
+
|
| 372 |
+
#else /* C style interface */
|
| 373 |
+
|
| 374 |
+
typedef struct IEditionUpgradeBrokerVtbl
|
| 375 |
+
{
|
| 376 |
+
BEGIN_INTERFACE
|
| 377 |
+
|
| 378 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 379 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 380 |
+
__RPC__in IEditionUpgradeBroker * This,
|
| 381 |
+
/* [in] */ __RPC__in REFIID riid,
|
| 382 |
+
/* [annotation][iid_is][out] */
|
| 383 |
+
_COM_Outptr_ void **ppvObject);
|
| 384 |
+
|
| 385 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 386 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 387 |
+
__RPC__in IEditionUpgradeBroker * This);
|
| 388 |
+
|
| 389 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 390 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 391 |
+
__RPC__in IEditionUpgradeBroker * This);
|
| 392 |
+
|
| 393 |
+
DECLSPEC_XFGVIRT(IEditionUpgradeBroker, InitializeParentWindow)
|
| 394 |
+
HRESULT ( STDMETHODCALLTYPE *InitializeParentWindow )(
|
| 395 |
+
__RPC__in IEditionUpgradeBroker * This,
|
| 396 |
+
/* [in] */ OLE_HANDLE parentHandle);
|
| 397 |
+
|
| 398 |
+
DECLSPEC_XFGVIRT(IEditionUpgradeBroker, UpdateOperatingSystem)
|
| 399 |
+
HRESULT ( STDMETHODCALLTYPE *UpdateOperatingSystem )(
|
| 400 |
+
__RPC__in IEditionUpgradeBroker * This,
|
| 401 |
+
/* [string][in] */ __RPC__in_string BSTR parameter);
|
| 402 |
+
|
| 403 |
+
DECLSPEC_XFGVIRT(IEditionUpgradeBroker, ShowProductKeyUI)
|
| 404 |
+
HRESULT ( STDMETHODCALLTYPE *ShowProductKeyUI )(
|
| 405 |
+
__RPC__in IEditionUpgradeBroker * This);
|
| 406 |
+
|
| 407 |
+
DECLSPEC_XFGVIRT(IEditionUpgradeBroker, CanUpgrade)
|
| 408 |
+
HRESULT ( STDMETHODCALLTYPE *CanUpgrade )(
|
| 409 |
+
__RPC__in IEditionUpgradeBroker * This);
|
| 410 |
+
|
| 411 |
+
END_INTERFACE
|
| 412 |
+
} IEditionUpgradeBrokerVtbl;
|
| 413 |
+
|
| 414 |
+
interface IEditionUpgradeBroker
|
| 415 |
+
{
|
| 416 |
+
CONST_VTBL struct IEditionUpgradeBrokerVtbl *lpVtbl;
|
| 417 |
+
};
|
| 418 |
+
|
| 419 |
+
|
| 420 |
+
|
| 421 |
+
#ifdef COBJMACROS
|
| 422 |
+
|
| 423 |
+
|
| 424 |
+
#define IEditionUpgradeBroker_QueryInterface(This,riid,ppvObject) \
|
| 425 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 426 |
+
|
| 427 |
+
#define IEditionUpgradeBroker_AddRef(This) \
|
| 428 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 429 |
+
|
| 430 |
+
#define IEditionUpgradeBroker_Release(This) \
|
| 431 |
+
( (This)->lpVtbl -> Release(This) )
|
| 432 |
+
|
| 433 |
+
|
| 434 |
+
#define IEditionUpgradeBroker_InitializeParentWindow(This,parentHandle) \
|
| 435 |
+
( (This)->lpVtbl -> InitializeParentWindow(This,parentHandle) )
|
| 436 |
+
|
| 437 |
+
#define IEditionUpgradeBroker_UpdateOperatingSystem(This,parameter) \
|
| 438 |
+
( (This)->lpVtbl -> UpdateOperatingSystem(This,parameter) )
|
| 439 |
+
|
| 440 |
+
#define IEditionUpgradeBroker_ShowProductKeyUI(This) \
|
| 441 |
+
( (This)->lpVtbl -> ShowProductKeyUI(This) )
|
| 442 |
+
|
| 443 |
+
#define IEditionUpgradeBroker_CanUpgrade(This) \
|
| 444 |
+
( (This)->lpVtbl -> CanUpgrade(This) )
|
| 445 |
+
|
| 446 |
+
#endif /* COBJMACROS */
|
| 447 |
+
|
| 448 |
+
|
| 449 |
+
#endif /* C style interface */
|
| 450 |
+
|
| 451 |
+
|
| 452 |
+
|
| 453 |
+
|
| 454 |
+
#endif /* __IEditionUpgradeBroker_INTERFACE_DEFINED__ */
|
| 455 |
+
|
| 456 |
+
|
| 457 |
+
#ifndef __IContainerActivationHelper_INTERFACE_DEFINED__
|
| 458 |
+
#define __IContainerActivationHelper_INTERFACE_DEFINED__
|
| 459 |
+
|
| 460 |
+
/* interface IContainerActivationHelper */
|
| 461 |
+
/* [uuid][nonextensible][oleautomation][dual][object] */
|
| 462 |
+
|
| 463 |
+
|
| 464 |
+
EXTERN_C const IID IID_IContainerActivationHelper;
|
| 465 |
+
|
| 466 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 467 |
+
|
| 468 |
+
MIDL_INTERFACE("B524F93F-80D5-4EC7-AE9E-D66E93ADE1FA")
|
| 469 |
+
IContainerActivationHelper : public IUnknown
|
| 470 |
+
{
|
| 471 |
+
public:
|
| 472 |
+
virtual HRESULT STDMETHODCALLTYPE CanActivateClientVM(
|
| 473 |
+
/* [retval][out] */ __RPC__out VARIANT_BOOL *isAllowed) = 0;
|
| 474 |
+
|
| 475 |
+
};
|
| 476 |
+
|
| 477 |
+
|
| 478 |
+
#else /* C style interface */
|
| 479 |
+
|
| 480 |
+
typedef struct IContainerActivationHelperVtbl
|
| 481 |
+
{
|
| 482 |
+
BEGIN_INTERFACE
|
| 483 |
+
|
| 484 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 485 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 486 |
+
__RPC__in IContainerActivationHelper * This,
|
| 487 |
+
/* [in] */ __RPC__in REFIID riid,
|
| 488 |
+
/* [annotation][iid_is][out] */
|
| 489 |
+
_COM_Outptr_ void **ppvObject);
|
| 490 |
+
|
| 491 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 492 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 493 |
+
__RPC__in IContainerActivationHelper * This);
|
| 494 |
+
|
| 495 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 496 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 497 |
+
__RPC__in IContainerActivationHelper * This);
|
| 498 |
+
|
| 499 |
+
DECLSPEC_XFGVIRT(IContainerActivationHelper, CanActivateClientVM)
|
| 500 |
+
HRESULT ( STDMETHODCALLTYPE *CanActivateClientVM )(
|
| 501 |
+
__RPC__in IContainerActivationHelper * This,
|
| 502 |
+
/* [retval][out] */ __RPC__out VARIANT_BOOL *isAllowed);
|
| 503 |
+
|
| 504 |
+
END_INTERFACE
|
| 505 |
+
} IContainerActivationHelperVtbl;
|
| 506 |
+
|
| 507 |
+
interface IContainerActivationHelper
|
| 508 |
+
{
|
| 509 |
+
CONST_VTBL struct IContainerActivationHelperVtbl *lpVtbl;
|
| 510 |
+
};
|
| 511 |
+
|
| 512 |
+
|
| 513 |
+
|
| 514 |
+
#ifdef COBJMACROS
|
| 515 |
+
|
| 516 |
+
|
| 517 |
+
#define IContainerActivationHelper_QueryInterface(This,riid,ppvObject) \
|
| 518 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 519 |
+
|
| 520 |
+
#define IContainerActivationHelper_AddRef(This) \
|
| 521 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 522 |
+
|
| 523 |
+
#define IContainerActivationHelper_Release(This) \
|
| 524 |
+
( (This)->lpVtbl -> Release(This) )
|
| 525 |
+
|
| 526 |
+
|
| 527 |
+
#define IContainerActivationHelper_CanActivateClientVM(This,isAllowed) \
|
| 528 |
+
( (This)->lpVtbl -> CanActivateClientVM(This,isAllowed) )
|
| 529 |
+
|
| 530 |
+
#endif /* COBJMACROS */
|
| 531 |
+
|
| 532 |
+
|
| 533 |
+
#endif /* C style interface */
|
| 534 |
+
|
| 535 |
+
|
| 536 |
+
|
| 537 |
+
|
| 538 |
+
#endif /* __IContainerActivationHelper_INTERFACE_DEFINED__ */
|
| 539 |
+
|
| 540 |
+
|
| 541 |
+
#ifndef __IClipServiceNotificationHelper_INTERFACE_DEFINED__
|
| 542 |
+
#define __IClipServiceNotificationHelper_INTERFACE_DEFINED__
|
| 543 |
+
|
| 544 |
+
/* interface IClipServiceNotificationHelper */
|
| 545 |
+
/* [uuid][nonextensible][oleautomation][dual][object] */
|
| 546 |
+
|
| 547 |
+
|
| 548 |
+
EXTERN_C const IID IID_IClipServiceNotificationHelper;
|
| 549 |
+
|
| 550 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 551 |
+
|
| 552 |
+
MIDL_INTERFACE("C39948F0-6142-44FD-98CA-E1681A8D68B5")
|
| 553 |
+
IClipServiceNotificationHelper : public IUnknown
|
| 554 |
+
{
|
| 555 |
+
public:
|
| 556 |
+
virtual HRESULT STDMETHODCALLTYPE ShowToast(
|
| 557 |
+
/* [string][in] */ __RPC__in_string BSTR titleText,
|
| 558 |
+
/* [string][in] */ __RPC__in_string BSTR bodyText,
|
| 559 |
+
/* [string][in] */ __RPC__in_string BSTR packageName,
|
| 560 |
+
/* [string][in] */ __RPC__in_string BSTR appId,
|
| 561 |
+
/* [string][in] */ __RPC__in_string BSTR launchCommand) = 0;
|
| 562 |
+
|
| 563 |
+
};
|
| 564 |
+
|
| 565 |
+
|
| 566 |
+
#else /* C style interface */
|
| 567 |
+
|
| 568 |
+
typedef struct IClipServiceNotificationHelperVtbl
|
| 569 |
+
{
|
| 570 |
+
BEGIN_INTERFACE
|
| 571 |
+
|
| 572 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 573 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 574 |
+
__RPC__in IClipServiceNotificationHelper * This,
|
| 575 |
+
/* [in] */ __RPC__in REFIID riid,
|
| 576 |
+
/* [annotation][iid_is][out] */
|
| 577 |
+
_COM_Outptr_ void **ppvObject);
|
| 578 |
+
|
| 579 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 580 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 581 |
+
__RPC__in IClipServiceNotificationHelper * This);
|
| 582 |
+
|
| 583 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 584 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 585 |
+
__RPC__in IClipServiceNotificationHelper * This);
|
| 586 |
+
|
| 587 |
+
DECLSPEC_XFGVIRT(IClipServiceNotificationHelper, ShowToast)
|
| 588 |
+
HRESULT ( STDMETHODCALLTYPE *ShowToast )(
|
| 589 |
+
__RPC__in IClipServiceNotificationHelper * This,
|
| 590 |
+
/* [string][in] */ __RPC__in_string BSTR titleText,
|
| 591 |
+
/* [string][in] */ __RPC__in_string BSTR bodyText,
|
| 592 |
+
/* [string][in] */ __RPC__in_string BSTR packageName,
|
| 593 |
+
/* [string][in] */ __RPC__in_string BSTR appId,
|
| 594 |
+
/* [string][in] */ __RPC__in_string BSTR launchCommand);
|
| 595 |
+
|
| 596 |
+
END_INTERFACE
|
| 597 |
+
} IClipServiceNotificationHelperVtbl;
|
| 598 |
+
|
| 599 |
+
interface IClipServiceNotificationHelper
|
| 600 |
+
{
|
| 601 |
+
CONST_VTBL struct IClipServiceNotificationHelperVtbl *lpVtbl;
|
| 602 |
+
};
|
| 603 |
+
|
| 604 |
+
|
| 605 |
+
|
| 606 |
+
#ifdef COBJMACROS
|
| 607 |
+
|
| 608 |
+
|
| 609 |
+
#define IClipServiceNotificationHelper_QueryInterface(This,riid,ppvObject) \
|
| 610 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 611 |
+
|
| 612 |
+
#define IClipServiceNotificationHelper_AddRef(This) \
|
| 613 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 614 |
+
|
| 615 |
+
#define IClipServiceNotificationHelper_Release(This) \
|
| 616 |
+
( (This)->lpVtbl -> Release(This) )
|
| 617 |
+
|
| 618 |
+
|
| 619 |
+
#define IClipServiceNotificationHelper_ShowToast(This,titleText,bodyText,packageName,appId,launchCommand) \
|
| 620 |
+
( (This)->lpVtbl -> ShowToast(This,titleText,bodyText,packageName,appId,launchCommand) )
|
| 621 |
+
|
| 622 |
+
#endif /* COBJMACROS */
|
| 623 |
+
|
| 624 |
+
|
| 625 |
+
#endif /* C style interface */
|
| 626 |
+
|
| 627 |
+
|
| 628 |
+
|
| 629 |
+
|
| 630 |
+
#endif /* __IClipServiceNotificationHelper_INTERFACE_DEFINED__ */
|
| 631 |
+
|
| 632 |
+
|
| 633 |
+
#ifndef __IFClipNotificationHelper_INTERFACE_DEFINED__
|
| 634 |
+
#define __IFClipNotificationHelper_INTERFACE_DEFINED__
|
| 635 |
+
|
| 636 |
+
/* interface IFClipNotificationHelper */
|
| 637 |
+
/* [uuid][nonextensible][oleautomation][dual][object] */
|
| 638 |
+
|
| 639 |
+
|
| 640 |
+
EXTERN_C const IID IID_IFClipNotificationHelper;
|
| 641 |
+
|
| 642 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 643 |
+
|
| 644 |
+
MIDL_INTERFACE("3D5E3D21-BD41-4C2A-A669-B17CE87FB50B")
|
| 645 |
+
IFClipNotificationHelper : public IUnknown
|
| 646 |
+
{
|
| 647 |
+
public:
|
| 648 |
+
virtual HRESULT STDMETHODCALLTYPE ShowSystemDialog(
|
| 649 |
+
/* [string][in] */ __RPC__in_string BSTR titleText,
|
| 650 |
+
/* [string][in] */ __RPC__in_string BSTR bodyText) = 0;
|
| 651 |
+
|
| 652 |
+
};
|
| 653 |
+
|
| 654 |
+
|
| 655 |
+
#else /* C style interface */
|
| 656 |
+
|
| 657 |
+
typedef struct IFClipNotificationHelperVtbl
|
| 658 |
+
{
|
| 659 |
+
BEGIN_INTERFACE
|
| 660 |
+
|
| 661 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 662 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 663 |
+
__RPC__in IFClipNotificationHelper * This,
|
| 664 |
+
/* [in] */ __RPC__in REFIID riid,
|
| 665 |
+
/* [annotation][iid_is][out] */
|
| 666 |
+
_COM_Outptr_ void **ppvObject);
|
| 667 |
+
|
| 668 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 669 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 670 |
+
__RPC__in IFClipNotificationHelper * This);
|
| 671 |
+
|
| 672 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 673 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 674 |
+
__RPC__in IFClipNotificationHelper * This);
|
| 675 |
+
|
| 676 |
+
DECLSPEC_XFGVIRT(IFClipNotificationHelper, ShowSystemDialog)
|
| 677 |
+
HRESULT ( STDMETHODCALLTYPE *ShowSystemDialog )(
|
| 678 |
+
__RPC__in IFClipNotificationHelper * This,
|
| 679 |
+
/* [string][in] */ __RPC__in_string BSTR titleText,
|
| 680 |
+
/* [string][in] */ __RPC__in_string BSTR bodyText);
|
| 681 |
+
|
| 682 |
+
END_INTERFACE
|
| 683 |
+
} IFClipNotificationHelperVtbl;
|
| 684 |
+
|
| 685 |
+
interface IFClipNotificationHelper
|
| 686 |
+
{
|
| 687 |
+
CONST_VTBL struct IFClipNotificationHelperVtbl *lpVtbl;
|
| 688 |
+
};
|
| 689 |
+
|
| 690 |
+
|
| 691 |
+
|
| 692 |
+
#ifdef COBJMACROS
|
| 693 |
+
|
| 694 |
+
|
| 695 |
+
#define IFClipNotificationHelper_QueryInterface(This,riid,ppvObject) \
|
| 696 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 697 |
+
|
| 698 |
+
#define IFClipNotificationHelper_AddRef(This) \
|
| 699 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 700 |
+
|
| 701 |
+
#define IFClipNotificationHelper_Release(This) \
|
| 702 |
+
( (This)->lpVtbl -> Release(This) )
|
| 703 |
+
|
| 704 |
+
|
| 705 |
+
#define IFClipNotificationHelper_ShowSystemDialog(This,titleText,bodyText) \
|
| 706 |
+
( (This)->lpVtbl -> ShowSystemDialog(This,titleText,bodyText) )
|
| 707 |
+
|
| 708 |
+
#endif /* COBJMACROS */
|
| 709 |
+
|
| 710 |
+
|
| 711 |
+
#endif /* C style interface */
|
| 712 |
+
|
| 713 |
+
|
| 714 |
+
|
| 715 |
+
|
| 716 |
+
#endif /* __IFClipNotificationHelper_INTERFACE_DEFINED__ */
|
| 717 |
+
|
| 718 |
+
|
| 719 |
+
|
| 720 |
+
#ifndef __EditionUpgradeHelperLib_LIBRARY_DEFINED__
|
| 721 |
+
#define __EditionUpgradeHelperLib_LIBRARY_DEFINED__
|
| 722 |
+
|
| 723 |
+
/* library EditionUpgradeHelperLib */
|
| 724 |
+
/* [version][uuid] */
|
| 725 |
+
|
| 726 |
+
|
| 727 |
+
EXTERN_C const IID LIBID_EditionUpgradeHelperLib;
|
| 728 |
+
|
| 729 |
+
EXTERN_C const CLSID CLSID_EditionUpgradeHelper;
|
| 730 |
+
|
| 731 |
+
#ifdef __cplusplus
|
| 732 |
+
|
| 733 |
+
class DECLSPEC_UUID("01776DF3-B9AF-4E50-9B1C-56E93116D704")
|
| 734 |
+
EditionUpgradeHelper;
|
| 735 |
+
#endif
|
| 736 |
+
|
| 737 |
+
EXTERN_C const CLSID CLSID_EditionUpgradeBroker;
|
| 738 |
+
|
| 739 |
+
#ifdef __cplusplus
|
| 740 |
+
|
| 741 |
+
class DECLSPEC_UUID("C4270827-4F39-45DF-9288-12FF6B85A921")
|
| 742 |
+
EditionUpgradeBroker;
|
| 743 |
+
#endif
|
| 744 |
+
#endif /* __EditionUpgradeHelperLib_LIBRARY_DEFINED__ */
|
| 745 |
+
|
| 746 |
+
/* interface __MIDL_itf_editionupgradehelper_0000_0007 */
|
| 747 |
+
/* [local] */
|
| 748 |
+
|
| 749 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */
|
| 750 |
+
#pragma endregion
|
| 751 |
+
|
| 752 |
+
|
| 753 |
+
extern RPC_IF_HANDLE __MIDL_itf_editionupgradehelper_0000_0007_v0_0_c_ifspec;
|
| 754 |
+
extern RPC_IF_HANDLE __MIDL_itf_editionupgradehelper_0000_0007_v0_0_s_ifspec;
|
| 755 |
+
|
| 756 |
+
/* Additional Prototypes for ALL interfaces */
|
| 757 |
+
|
| 758 |
+
unsigned long __RPC_USER BSTR_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * );
|
| 759 |
+
unsigned char * __RPC_USER BSTR_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * );
|
| 760 |
+
unsigned char * __RPC_USER BSTR_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * );
|
| 761 |
+
void __RPC_USER BSTR_UserFree( __RPC__in unsigned long *, __RPC__in BSTR * );
|
| 762 |
+
|
| 763 |
+
unsigned long __RPC_USER BSTR_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in BSTR * );
|
| 764 |
+
unsigned char * __RPC_USER BSTR_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in BSTR * );
|
| 765 |
+
unsigned char * __RPC_USER BSTR_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out BSTR * );
|
| 766 |
+
void __RPC_USER BSTR_UserFree64( __RPC__in unsigned long *, __RPC__in BSTR * );
|
| 767 |
+
|
| 768 |
+
/* end of Additional Prototypes */
|
| 769 |
+
|
| 770 |
+
#ifdef __cplusplus
|
| 771 |
+
}
|
| 772 |
+
#endif
|
| 773 |
+
|
| 774 |
+
#endif
|
| 775 |
+
|
| 776 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/EditionUpgradeHelper.idl
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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11 |
+
uuid(D3E9E342-5DEB-43B6-849E-6913B85D503A),
|
| 12 |
+
]
|
| 13 |
+
interface IEditionUpgradeHelper : IUnknown
|
| 14 |
+
{
|
| 15 |
+
HRESULT
|
| 16 |
+
CanUpgrade(
|
| 17 |
+
[out] BOOL* isAllowed
|
| 18 |
+
);
|
| 19 |
+
|
| 20 |
+
HRESULT
|
| 21 |
+
UpdateOperatingSystem(
|
| 22 |
+
[in, string] LPCWSTR contentId
|
| 23 |
+
);
|
| 24 |
+
|
| 25 |
+
HRESULT
|
| 26 |
+
ShowProductKeyUI(
|
| 27 |
+
void
|
| 28 |
+
);
|
| 29 |
+
|
| 30 |
+
HRESULT
|
| 31 |
+
GetOsProductContentId(
|
| 32 |
+
[out, string] LPWSTR* contentId
|
| 33 |
+
);
|
| 34 |
+
|
| 35 |
+
HRESULT
|
| 36 |
+
GetGenuineLocalStatus(
|
| 37 |
+
[out] BOOL* isGenuine
|
| 38 |
+
);
|
| 39 |
+
};
|
| 40 |
+
|
| 41 |
+
[
|
| 42 |
+
object,
|
| 43 |
+
uuid(F342D19E-CC22-4648-BB5D-03CCF75B47C5)
|
| 44 |
+
]
|
| 45 |
+
interface IWindowsLockModeHelper: IUnknown
|
| 46 |
+
{
|
| 47 |
+
|
| 48 |
+
HRESULT
|
| 49 |
+
GetSMode(
|
| 50 |
+
[out] BOOL* isSmode
|
| 51 |
+
);
|
| 52 |
+
|
| 53 |
+
};
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
[
|
| 57 |
+
object,
|
| 58 |
+
uuid(FF19CBCF-9455-4937-B872-6B7929A460AF),
|
| 59 |
+
dual,
|
| 60 |
+
nonextensible,
|
| 61 |
+
oleautomation,
|
| 62 |
+
helpstring("IEditionUpgradeBroker Interface"),
|
| 63 |
+
pointer_default(unique)
|
| 64 |
+
]
|
| 65 |
+
interface IEditionUpgradeBroker: IUnknown
|
| 66 |
+
{
|
| 67 |
+
HRESULT
|
| 68 |
+
InitializeParentWindow(
|
| 69 |
+
[in] OLE_HANDLE parentHandle
|
| 70 |
+
);
|
| 71 |
+
|
| 72 |
+
HRESULT
|
| 73 |
+
UpdateOperatingSystem(
|
| 74 |
+
[in, string] BSTR parameter
|
| 75 |
+
);
|
| 76 |
+
|
| 77 |
+
HRESULT
|
| 78 |
+
ShowProductKeyUI(
|
| 79 |
+
void
|
| 80 |
+
);
|
| 81 |
+
|
| 82 |
+
HRESULT
|
| 83 |
+
CanUpgrade(
|
| 84 |
+
void
|
| 85 |
+
);
|
| 86 |
+
|
| 87 |
+
};
|
| 88 |
+
|
| 89 |
+
[
|
| 90 |
+
object,
|
| 91 |
+
dual,
|
| 92 |
+
oleautomation,
|
| 93 |
+
nonextensible,
|
| 94 |
+
uuid(B524F93F-80D5-4EC7-AE9E-D66E93ADE1FA)
|
| 95 |
+
]
|
| 96 |
+
interface IContainerActivationHelper: IUnknown
|
| 97 |
+
{
|
| 98 |
+
HRESULT
|
| 99 |
+
CanActivateClientVM(
|
| 100 |
+
[out, retval] VARIANT_BOOL* isAllowed
|
| 101 |
+
);
|
| 102 |
+
};
|
| 103 |
+
|
| 104 |
+
[
|
| 105 |
+
object,
|
| 106 |
+
dual,
|
| 107 |
+
oleautomation,
|
| 108 |
+
nonextensible,
|
| 109 |
+
uuid(C39948F0-6142-44FD-98CA-E1681A8D68B5)
|
| 110 |
+
]
|
| 111 |
+
interface IClipServiceNotificationHelper: IUnknown
|
| 112 |
+
{
|
| 113 |
+
HRESULT
|
| 114 |
+
ShowToast(
|
| 115 |
+
[in, string] BSTR titleText,
|
| 116 |
+
[in, string] BSTR bodyText,
|
| 117 |
+
[in, string] BSTR packageName,
|
| 118 |
+
[in, string] BSTR appId,
|
| 119 |
+
[in, string] BSTR launchCommand
|
| 120 |
+
);
|
| 121 |
+
};
|
| 122 |
+
|
| 123 |
+
[
|
| 124 |
+
object,
|
| 125 |
+
dual,
|
| 126 |
+
oleautomation,
|
| 127 |
+
nonextensible,
|
| 128 |
+
uuid(3D5E3D21-BD41-4C2A-A669-B17CE87FB50B)
|
| 129 |
+
]
|
| 130 |
+
interface IFClipNotificationHelper: IUnknown
|
| 131 |
+
{
|
| 132 |
+
HRESULT
|
| 133 |
+
ShowSystemDialog(
|
| 134 |
+
[in, string] BSTR titleText,
|
| 135 |
+
[in, string] BSTR bodyText
|
| 136 |
+
);
|
| 137 |
+
};
|
| 138 |
+
|
| 139 |
+
[
|
| 140 |
+
uuid(09C6A793-92DC-4D27-A11D-3921C9314DED),
|
| 141 |
+
version(2.0),
|
| 142 |
+
]
|
| 143 |
+
library EditionUpgradeHelperLib
|
| 144 |
+
{
|
| 145 |
+
[
|
| 146 |
+
uuid(01776DF3-B9AF-4E50-9B1C-56E93116D704),
|
| 147 |
+
]
|
| 148 |
+
coclass EditionUpgradeHelper
|
| 149 |
+
{
|
| 150 |
+
[default] interface IEditionUpgradeHelper;
|
| 151 |
+
interface IWindowsLockModeHelper;
|
| 152 |
+
}
|
| 153 |
+
|
| 154 |
+
[
|
| 155 |
+
uuid(C4270827-4F39-45DF-9288-12FF6B85A921),
|
| 156 |
+
version(2.0),
|
| 157 |
+
]
|
| 158 |
+
coclass EditionUpgradeBroker
|
| 159 |
+
{
|
| 160 |
+
[default] interface IEditionUpgradeBroker;
|
| 161 |
+
interface IContainerActivationHelper;
|
| 162 |
+
interface IClipServiceNotificationHelper;
|
| 163 |
+
interface IFClipNotificationHelper;
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
};
|
| 167 |
+
cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */")
|
| 168 |
+
#pragma endregion
|
| 169 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ElsCore.h
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*++
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
| 4 |
+
|
| 5 |
+
Module Name:
|
| 6 |
+
|
| 7 |
+
ElsCore.h
|
| 8 |
+
|
| 9 |
+
Abstract:
|
| 10 |
+
|
| 11 |
+
This file contains macros/typedef/function prototypes that are common for ELS.
|
| 12 |
+
|
| 13 |
+
--*/
|
| 14 |
+
|
| 15 |
+
#ifndef __ELS_CORE__
|
| 16 |
+
#define __ELS_CORE__
|
| 17 |
+
|
| 18 |
+
#include <winapifamily.h>
|
| 19 |
+
|
| 20 |
+
#ifdef __cplusplus
|
| 21 |
+
extern "C" {
|
| 22 |
+
#endif
|
| 23 |
+
|
| 24 |
+
#pragma region Application Family
|
| 25 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
|
| 26 |
+
|
| 27 |
+
struct _MAPPING_PROPERTY_BAG;
|
| 28 |
+
|
| 29 |
+
typedef void (CALLBACK* PFN_MAPPINGCALLBACKPROC)(struct _MAPPING_PROPERTY_BAG *pBag, LPVOID data, DWORD dwDataSize, HRESULT Result);
|
| 30 |
+
|
| 31 |
+
//
|
| 32 |
+
// Service types constants used in MAPPING_ENUM_OPTIONS (ServiceType field)
|
| 33 |
+
//
|
| 34 |
+
|
| 35 |
+
#define ALL_SERVICE_TYPES 0
|
| 36 |
+
#define HIGHLEVEL_SERVICE_TYPES 1
|
| 37 |
+
#define LOWLEVEL_SERVICE_TYPES 2
|
| 38 |
+
|
| 39 |
+
//
|
| 40 |
+
// Online service constants used in MAPPING_ENUM_OPTIONS (OnlineService field)
|
| 41 |
+
//
|
| 42 |
+
#define ALL_SERVICES 0
|
| 43 |
+
#define ONLINE_SERVICES 1
|
| 44 |
+
#define OFFLINE_SERVICES 2
|
| 45 |
+
|
| 46 |
+
//
|
| 47 |
+
// Public ELS structures
|
| 48 |
+
//
|
| 49 |
+
|
| 50 |
+
typedef struct _MAPPING_SERVICE_INFO
|
| 51 |
+
{
|
| 52 |
+
size_t Size;
|
| 53 |
+
LPWSTR pszCopyright;
|
| 54 |
+
WORD wMajorVersion;
|
| 55 |
+
WORD wMinorVersion;
|
| 56 |
+
WORD wBuildVersion;
|
| 57 |
+
WORD wStepVersion;
|
| 58 |
+
DWORD dwInputContentTypesCount;
|
| 59 |
+
LPWSTR *prgInputContentTypes;
|
| 60 |
+
DWORD dwOutputContentTypesCount;
|
| 61 |
+
LPWSTR *prgOutputContentTypes;
|
| 62 |
+
DWORD dwInputLanguagesCount;
|
| 63 |
+
LPWSTR *prgInputLanguages;
|
| 64 |
+
DWORD dwOutputLanguagesCount;
|
| 65 |
+
LPWSTR *prgOutputLanguages;
|
| 66 |
+
DWORD dwInputScriptsCount;
|
| 67 |
+
LPWSTR *prgInputScripts;
|
| 68 |
+
DWORD dwOutputScriptsCount;
|
| 69 |
+
LPWSTR *prgOutputScripts;
|
| 70 |
+
GUID guid;
|
| 71 |
+
LPWSTR pszCategory;
|
| 72 |
+
LPWSTR pszDescription;
|
| 73 |
+
DWORD dwPrivateDataSize;
|
| 74 |
+
LPVOID pPrivateData;
|
| 75 |
+
LPVOID pContext;
|
| 76 |
+
unsigned IsOneToOneLanguageMapping : 1;
|
| 77 |
+
unsigned HasSubservices : 1;
|
| 78 |
+
unsigned OnlineOnly : 1;
|
| 79 |
+
unsigned ServiceType : 2;
|
| 80 |
+
} MAPPING_SERVICE_INFO, *PMAPPING_SERVICE_INFO;
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
typedef struct _MAPPING_ENUM_OPTIONS
|
| 84 |
+
{
|
| 85 |
+
size_t Size;
|
| 86 |
+
LPWSTR pszCategory;
|
| 87 |
+
LPWSTR pszInputLanguage;
|
| 88 |
+
LPWSTR pszOutputLanguage;
|
| 89 |
+
LPWSTR pszInputScript;
|
| 90 |
+
LPWSTR pszOutputScript;
|
| 91 |
+
LPWSTR pszInputContentType;
|
| 92 |
+
LPWSTR pszOutputContentType;
|
| 93 |
+
GUID *pGuid;
|
| 94 |
+
unsigned OnlineService : 2;
|
| 95 |
+
unsigned ServiceType : 2;
|
| 96 |
+
} MAPPING_ENUM_OPTIONS, *PMAPPING_ENUM_OPTIONS;
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
typedef struct _MAPPING_OPTIONS
|
| 100 |
+
{
|
| 101 |
+
size_t Size;
|
| 102 |
+
LPWSTR pszInputLanguage;
|
| 103 |
+
LPWSTR pszOutputLanguage;
|
| 104 |
+
LPWSTR pszInputScript;
|
| 105 |
+
LPWSTR pszOutputScript;
|
| 106 |
+
LPWSTR pszInputContentType;
|
| 107 |
+
LPWSTR pszOutputContentType;
|
| 108 |
+
LPWSTR pszUILanguage;
|
| 109 |
+
PFN_MAPPINGCALLBACKPROC pfnRecognizeCallback;
|
| 110 |
+
LPVOID pRecognizeCallerData;
|
| 111 |
+
DWORD dwRecognizeCallerDataSize;
|
| 112 |
+
PFN_MAPPINGCALLBACKPROC pfnActionCallback;
|
| 113 |
+
LPVOID pActionCallerData;
|
| 114 |
+
DWORD dwActionCallerDataSize;
|
| 115 |
+
DWORD dwServiceFlag;
|
| 116 |
+
unsigned GetActionDisplayName : 1;
|
| 117 |
+
} MAPPING_OPTIONS, *PMAPPING_OPTIONS;
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
typedef struct _MAPPING_DATA_RANGE
|
| 121 |
+
{
|
| 122 |
+
DWORD dwStartIndex;
|
| 123 |
+
DWORD dwEndIndex;
|
| 124 |
+
LPWSTR pszDescription;
|
| 125 |
+
DWORD dwDescriptionLength;
|
| 126 |
+
LPVOID pData;
|
| 127 |
+
DWORD dwDataSize;
|
| 128 |
+
LPWSTR pszContentType;
|
| 129 |
+
LPWSTR *prgActionIds;
|
| 130 |
+
DWORD dwActionsCount;
|
| 131 |
+
LPWSTR *prgActionDisplayNames;
|
| 132 |
+
} MAPPING_DATA_RANGE, *PMAPPING_DATA_RANGE;
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
typedef struct _MAPPING_PROPERTY_BAG
|
| 136 |
+
{
|
| 137 |
+
size_t Size;
|
| 138 |
+
PMAPPING_DATA_RANGE prgResultRanges;
|
| 139 |
+
DWORD dwRangesCount;
|
| 140 |
+
LPVOID pServiceData;
|
| 141 |
+
DWORD dwServiceDataSize;
|
| 142 |
+
LPVOID pCallerData;
|
| 143 |
+
DWORD dwCallerDataSize;
|
| 144 |
+
LPVOID pContext;
|
| 145 |
+
} MAPPING_PROPERTY_BAG, *PMAPPING_PROPERTY_BAG;
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
//
|
| 149 |
+
// Public ELS APIs
|
| 150 |
+
//
|
| 151 |
+
|
| 152 |
+
HRESULT
|
| 153 |
+
WINAPI
|
| 154 |
+
MappingGetServices(
|
| 155 |
+
_In_opt_ PMAPPING_ENUM_OPTIONS pOptions,
|
| 156 |
+
_Out_ PMAPPING_SERVICE_INFO *prgServices,
|
| 157 |
+
_Out_ DWORD *pdwServicesCount
|
| 158 |
+
);
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
HRESULT
|
| 162 |
+
WINAPI
|
| 163 |
+
MappingFreeServices(
|
| 164 |
+
_In_ PMAPPING_SERVICE_INFO pServiceInfo
|
| 165 |
+
);
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
HRESULT
|
| 169 |
+
WINAPI
|
| 170 |
+
MappingRecognizeText(
|
| 171 |
+
_In_ PMAPPING_SERVICE_INFO pServiceInfo,
|
| 172 |
+
_In_reads_(dwLength) LPCWSTR pszText,
|
| 173 |
+
_In_ DWORD dwLength,
|
| 174 |
+
_In_ DWORD dwIndex,
|
| 175 |
+
_In_opt_ PMAPPING_OPTIONS pOptions,
|
| 176 |
+
_Inout_ PMAPPING_PROPERTY_BAG pbag
|
| 177 |
+
);
|
| 178 |
+
|
| 179 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */
|
| 180 |
+
#pragma endregion
|
| 181 |
+
|
| 182 |
+
#pragma region Desktop Family
|
| 183 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 184 |
+
|
| 185 |
+
HRESULT
|
| 186 |
+
WINAPI
|
| 187 |
+
MappingDoAction(
|
| 188 |
+
_Inout_ PMAPPING_PROPERTY_BAG pBag,
|
| 189 |
+
_In_ DWORD dwRangeIndex,
|
| 190 |
+
_In_ LPCWSTR pszActionId
|
| 191 |
+
);
|
| 192 |
+
|
| 193 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 194 |
+
#pragma endregion
|
| 195 |
+
|
| 196 |
+
#pragma region Application Family
|
| 197 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
|
| 198 |
+
|
| 199 |
+
HRESULT
|
| 200 |
+
WINAPI
|
| 201 |
+
MappingFreePropertyBag(
|
| 202 |
+
_In_ PMAPPING_PROPERTY_BAG pBag
|
| 203 |
+
);
|
| 204 |
+
|
| 205 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */
|
| 206 |
+
#pragma endregion
|
| 207 |
+
|
| 208 |
+
#ifdef __cplusplus
|
| 209 |
+
};
|
| 210 |
+
#endif
|
| 211 |
+
|
| 212 |
+
#endif // __ELS_CORE__
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ElsSrvc.h
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*++
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
| 4 |
+
|
| 5 |
+
Module Name:
|
| 6 |
+
|
| 7 |
+
ElsCore.h
|
| 8 |
+
|
| 9 |
+
Abstract:
|
| 10 |
+
|
| 11 |
+
This file contains the GUIDs of the current ELS services and definitions for binary content.
|
| 12 |
+
|
| 13 |
+
--*/
|
| 14 |
+
|
| 15 |
+
#ifndef __ELS_SRVC__
|
| 16 |
+
#define __ELS_SRVC__
|
| 17 |
+
|
| 18 |
+
#include <WinDef.h>
|
| 19 |
+
|
| 20 |
+
// {CF7E00B1-909B-4d95-A8F4-611F7C377702}
|
| 21 |
+
static const GUID ELS_GUID_LANGUAGE_DETECTION =
|
| 22 |
+
{ 0xCF7E00B1, 0x909B, 0x4D95, { 0xA8, 0xF4, 0x61, 0x1F, 0x7C, 0x37, 0x77, 0x02 } };
|
| 23 |
+
|
| 24 |
+
// {2D64B439-6CAF-4f6b-B688-E5D0F4FAA7D7}
|
| 25 |
+
static const GUID ELS_GUID_SCRIPT_DETECTION =
|
| 26 |
+
{ 0x2D64B439, 0x6CAF, 0x4F6B, { 0xB6, 0x88, 0xE5, 0xD0, 0xF4, 0xFA, 0xA7, 0xD7 } };
|
| 27 |
+
|
| 28 |
+
// {A3A8333B-F4FC-42f6-A0C4-0462FE7317CB}
|
| 29 |
+
static const GUID ELS_GUID_TRANSLITERATION_HANT_TO_HANS =
|
| 30 |
+
{ 0xA3A8333B, 0xF4FC, 0x42f6, { 0xA0, 0xC4, 0x04, 0x62, 0xFE, 0x73, 0x17, 0xCB } };
|
| 31 |
+
|
| 32 |
+
// {3CACCDC8-5590-42dc-9A7B-B5A6B5B3B63B}
|
| 33 |
+
static const GUID ELS_GUID_TRANSLITERATION_HANS_TO_HANT =
|
| 34 |
+
{ 0x3CACCDC8, 0x5590, 0x42dc, { 0x9A, 0x7B, 0xB5, 0xA6, 0xB5, 0xB3, 0xB6, 0x3B } };
|
| 35 |
+
|
| 36 |
+
// {D8B983B1-F8BF-4a2b-BCD5-5B5EA20613E1}
|
| 37 |
+
static const GUID ELS_GUID_TRANSLITERATION_MALAYALAM_TO_LATIN =
|
| 38 |
+
{ 0xD8B983B1, 0xF8BF, 0x4a2b, { 0xBC, 0xD5, 0x5B, 0x5E, 0xA2, 0x06, 0x13, 0xE1 } };
|
| 39 |
+
|
| 40 |
+
// {C4A4DCFE-2661-4d02-9835-F48187109803}
|
| 41 |
+
static const GUID ELS_GUID_TRANSLITERATION_DEVANAGARI_TO_LATIN =
|
| 42 |
+
{ 0xC4A4DCFE, 0x2661, 0x4d02, { 0x98, 0x35, 0xF4, 0x81, 0x87, 0x10, 0x98, 0x03 } };
|
| 43 |
+
|
| 44 |
+
// {3DD12A98-5AFD-4903-A13F-E17E6C0BFE01}
|
| 45 |
+
static const GUID ELS_GUID_TRANSLITERATION_CYRILLIC_TO_LATIN =
|
| 46 |
+
{ 0x3DD12A98, 0x5AFD, 0x4903, { 0xA1, 0x3F, 0xE1, 0x7E, 0x6C, 0x0B, 0xFE, 0x01 } };
|
| 47 |
+
|
| 48 |
+
// {F4DFD825-91A4-489f-855E-9AD9BEE55727}
|
| 49 |
+
static const GUID ELS_GUID_TRANSLITERATION_BENGALI_TO_LATIN =
|
| 50 |
+
{ 0xF4DFD825, 0x91A4, 0x489f, { 0x85, 0x5E, 0x9A, 0xD9, 0xBE, 0xE5, 0x57, 0x27 } };
|
| 51 |
+
|
| 52 |
+
// {4BA2A721-E43D-41b7-B330-536AE1E48863}
|
| 53 |
+
static const GUID ELS_GUID_TRANSLITERATION_HANGUL_DECOMPOSITION =
|
| 54 |
+
{ 0x4BA2A721, 0xE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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
|
| 3 |
+
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
/* File created by MIDL compiler version 8.01.0628 */
|
| 7 |
+
/* @@MIDL_FILE_HEADING( ) */
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
/* verify that the <rpcndr.h> version is high enough to compile this file*/
|
| 12 |
+
#ifndef __REQUIRED_RPCNDR_H_VERSION__
|
| 13 |
+
#define __REQUIRED_RPCNDR_H_VERSION__ 501
|
| 14 |
+
#endif
|
| 15 |
+
|
| 16 |
+
/* verify that the <rpcsal.h> version is high enough to compile this file*/
|
| 17 |
+
#ifndef __REQUIRED_RPCSAL_H_VERSION__
|
| 18 |
+
#define __REQUIRED_RPCSAL_H_VERSION__ 100
|
| 19 |
+
#endif
|
| 20 |
+
|
| 21 |
+
#include "rpc.h"
|
| 22 |
+
#include "rpcndr.h"
|
| 23 |
+
|
| 24 |
+
#ifndef __RPCNDR_H_VERSION__
|
| 25 |
+
#error this stub requires an updated version of <rpcndr.h>
|
| 26 |
+
#endif /* __RPCNDR_H_VERSION__ */
|
| 27 |
+
|
| 28 |
+
#ifndef COM_NO_WINDOWS_H
|
| 29 |
+
#include "windows.h"
|
| 30 |
+
#include "ole2.h"
|
| 31 |
+
#endif /*COM_NO_WINDOWS_H*/
|
| 32 |
+
|
| 33 |
+
#ifndef __emptyvc_h__
|
| 34 |
+
#define __emptyvc_h__
|
| 35 |
+
|
| 36 |
+
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
| 37 |
+
#pragma once
|
| 38 |
+
#endif
|
| 39 |
+
|
| 40 |
+
#ifndef DECLSPEC_XFGVIRT
|
| 41 |
+
#if defined(_CONTROL_FLOW_GUARD_XFG)
|
| 42 |
+
#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func))
|
| 43 |
+
#else
|
| 44 |
+
#define DECLSPEC_XFGVIRT(base, func)
|
| 45 |
+
#endif
|
| 46 |
+
#endif
|
| 47 |
+
|
| 48 |
+
/* Forward Declarations */
|
| 49 |
+
|
| 50 |
+
#ifndef __IEmptyVolumeCacheCallBack_FWD_DEFINED__
|
| 51 |
+
#define __IEmptyVolumeCacheCallBack_FWD_DEFINED__
|
| 52 |
+
typedef interface IEmptyVolumeCacheCallBack IEmptyVolumeCacheCallBack;
|
| 53 |
+
|
| 54 |
+
#endif /* __IEmptyVolumeCacheCallBack_FWD_DEFINED__ */
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
#ifndef __IEmptyVolumeCache_FWD_DEFINED__
|
| 58 |
+
#define __IEmptyVolumeCache_FWD_DEFINED__
|
| 59 |
+
typedef interface IEmptyVolumeCache IEmptyVolumeCache;
|
| 60 |
+
|
| 61 |
+
#endif /* __IEmptyVolumeCache_FWD_DEFINED__ */
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
#ifndef __IEmptyVolumeCache2_FWD_DEFINED__
|
| 65 |
+
#define __IEmptyVolumeCache2_FWD_DEFINED__
|
| 66 |
+
typedef interface IEmptyVolumeCache2 IEmptyVolumeCache2;
|
| 67 |
+
|
| 68 |
+
#endif /* __IEmptyVolumeCache2_FWD_DEFINED__ */
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
/* header files for imported files */
|
| 72 |
+
#include "objidl.h"
|
| 73 |
+
#include "oleidl.h"
|
| 74 |
+
#include "oaidl.h"
|
| 75 |
+
|
| 76 |
+
#ifdef __cplusplus
|
| 77 |
+
extern "C"{
|
| 78 |
+
#endif
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
/* interface __MIDL_itf_emptyvc_0000_0000 */
|
| 82 |
+
/* [local] */
|
| 83 |
+
|
| 84 |
+
//=--------------------------------------------------------------------------=
|
| 85 |
+
// emptyvc.h
|
| 86 |
+
//=--------------------------------------------------------------------------=
|
| 87 |
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
| 88 |
+
//
|
| 89 |
+
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
|
| 90 |
+
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
| 91 |
+
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
|
| 92 |
+
// PARTICULAR PURPOSE.
|
| 93 |
+
//=--------------------------------------------------------------------------=
|
| 94 |
+
|
| 95 |
+
#include <winapifamily.h>
|
| 96 |
+
#pragma region Desktop Family
|
| 97 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 98 |
+
#pragma comment(lib,"uuid.lib")
|
| 99 |
+
|
| 100 |
+
//---------------------------------------------------------------------------=
|
| 101 |
+
// Empty Volume Cache Interfaces.
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
// IEmptyVolumeCache Flags
|
| 106 |
+
#define EVCF_HASSETTINGS 0x0001
|
| 107 |
+
#define EVCF_ENABLEBYDEFAULT 0x0002
|
| 108 |
+
#define EVCF_REMOVEFROMLIST 0x0004
|
| 109 |
+
#define EVCF_ENABLEBYDEFAULT_AUTO 0x0008
|
| 110 |
+
#define EVCF_DONTSHOWIFZERO 0x0010
|
| 111 |
+
#define EVCF_SETTINGSMODE 0x0020
|
| 112 |
+
#define EVCF_OUTOFDISKSPACE 0x0040
|
| 113 |
+
#define EVCF_USERCONSENTOBTAINED 0x0080
|
| 114 |
+
#define EVCF_SYSTEMAUTORUN 0x0100
|
| 115 |
+
|
| 116 |
+
// IEmptyVolumeCacheCallBack Flags
|
| 117 |
+
#define EVCCBF_LASTNOTIFICATION 0x0001
|
| 118 |
+
|
| 119 |
+
////////////////////////////////////////////////////////////////////////////
|
| 120 |
+
// Interface Definitions
|
| 121 |
+
#ifndef _LPEMPTYVOLUMECACHECALLBACK_DEFINED
|
| 122 |
+
#define _LPEMPTYVOLUMECACHECALLBACK_DEFINED
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0000_v0_0_c_ifspec;
|
| 126 |
+
extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0000_v0_0_s_ifspec;
|
| 127 |
+
|
| 128 |
+
#ifndef __IEmptyVolumeCacheCallBack_INTERFACE_DEFINED__
|
| 129 |
+
#define __IEmptyVolumeCacheCallBack_INTERFACE_DEFINED__
|
| 130 |
+
|
| 131 |
+
/* interface IEmptyVolumeCacheCallBack */
|
| 132 |
+
/* [unique][uuid][object] */
|
| 133 |
+
|
| 134 |
+
typedef /* [unique] */ __RPC_unique_pointer IEmptyVolumeCacheCallBack *LPEMPTYVOLUMECACHECALLBACK;
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
EXTERN_C const IID IID_IEmptyVolumeCacheCallBack;
|
| 138 |
+
|
| 139 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 140 |
+
|
| 141 |
+
MIDL_INTERFACE("6E793361-73C6-11D0-8469-00AA00442901")
|
| 142 |
+
IEmptyVolumeCacheCallBack : public IUnknown
|
| 143 |
+
{
|
| 144 |
+
public:
|
| 145 |
+
virtual HRESULT STDMETHODCALLTYPE ScanProgress(
|
| 146 |
+
/* [in] */ DWORDLONG dwlSpaceUsed,
|
| 147 |
+
/* [in] */ DWORD dwFlags,
|
| 148 |
+
/* [unique][in] */ __RPC__in_opt LPCWSTR pcwszStatus) = 0;
|
| 149 |
+
|
| 150 |
+
virtual HRESULT STDMETHODCALLTYPE PurgeProgress(
|
| 151 |
+
/* [in] */ DWORDLONG dwlSpaceFreed,
|
| 152 |
+
/* [in] */ DWORDLONG dwlSpaceToFree,
|
| 153 |
+
/* [in] */ DWORD dwFlags,
|
| 154 |
+
/* [unique][in] */ __RPC__in_opt LPCWSTR pcwszStatus) = 0;
|
| 155 |
+
|
| 156 |
+
};
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
#else /* C style interface */
|
| 160 |
+
|
| 161 |
+
typedef struct IEmptyVolumeCacheCallBackVtbl
|
| 162 |
+
{
|
| 163 |
+
BEGIN_INTERFACE
|
| 164 |
+
|
| 165 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 166 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 167 |
+
__RPC__in IEmptyVolumeCacheCallBack * This,
|
| 168 |
+
/* [in] */ __RPC__in REFIID riid,
|
| 169 |
+
/* [annotation][iid_is][out] */
|
| 170 |
+
_COM_Outptr_ void **ppvObject);
|
| 171 |
+
|
| 172 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 173 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 174 |
+
__RPC__in IEmptyVolumeCacheCallBack * This);
|
| 175 |
+
|
| 176 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 177 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 178 |
+
__RPC__in IEmptyVolumeCacheCallBack * This);
|
| 179 |
+
|
| 180 |
+
DECLSPEC_XFGVIRT(IEmptyVolumeCacheCallBack, ScanProgress)
|
| 181 |
+
HRESULT ( STDMETHODCALLTYPE *ScanProgress )(
|
| 182 |
+
__RPC__in IEmptyVolumeCacheCallBack * This,
|
| 183 |
+
/* [in] */ DWORDLONG dwlSpaceUsed,
|
| 184 |
+
/* [in] */ DWORD dwFlags,
|
| 185 |
+
/* [unique][in] */ __RPC__in_opt LPCWSTR pcwszStatus);
|
| 186 |
+
|
| 187 |
+
DECLSPEC_XFGVIRT(IEmptyVolumeCacheCallBack, PurgeProgress)
|
| 188 |
+
HRESULT ( STDMETHODCALLTYPE *PurgeProgress )(
|
| 189 |
+
__RPC__in IEmptyVolumeCacheCallBack * This,
|
| 190 |
+
/* [in] */ DWORDLONG dwlSpaceFreed,
|
| 191 |
+
/* [in] */ DWORDLONG dwlSpaceToFree,
|
| 192 |
+
/* [in] */ DWORD dwFlags,
|
| 193 |
+
/* [unique][in] */ __RPC__in_opt LPCWSTR pcwszStatus);
|
| 194 |
+
|
| 195 |
+
END_INTERFACE
|
| 196 |
+
} IEmptyVolumeCacheCallBackVtbl;
|
| 197 |
+
|
| 198 |
+
interface IEmptyVolumeCacheCallBack
|
| 199 |
+
{
|
| 200 |
+
CONST_VTBL struct IEmptyVolumeCacheCallBackVtbl *lpVtbl;
|
| 201 |
+
};
|
| 202 |
+
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
#ifdef COBJMACROS
|
| 206 |
+
|
| 207 |
+
|
| 208 |
+
#define IEmptyVolumeCacheCallBack_QueryInterface(This,riid,ppvObject) \
|
| 209 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 210 |
+
|
| 211 |
+
#define IEmptyVolumeCacheCallBack_AddRef(This) \
|
| 212 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 213 |
+
|
| 214 |
+
#define IEmptyVolumeCacheCallBack_Release(This) \
|
| 215 |
+
( (This)->lpVtbl -> Release(This) )
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
#define IEmptyVolumeCacheCallBack_ScanProgress(This,dwlSpaceUsed,dwFlags,pcwszStatus) \
|
| 219 |
+
( (This)->lpVtbl -> ScanProgress(This,dwlSpaceUsed,dwFlags,pcwszStatus) )
|
| 220 |
+
|
| 221 |
+
#define IEmptyVolumeCacheCallBack_PurgeProgress(This,dwlSpaceFreed,dwlSpaceToFree,dwFlags,pcwszStatus) \
|
| 222 |
+
( (This)->lpVtbl -> PurgeProgress(This,dwlSpaceFreed,dwlSpaceToFree,dwFlags,pcwszStatus) )
|
| 223 |
+
|
| 224 |
+
#endif /* COBJMACROS */
|
| 225 |
+
|
| 226 |
+
|
| 227 |
+
#endif /* C style interface */
|
| 228 |
+
|
| 229 |
+
|
| 230 |
+
|
| 231 |
+
|
| 232 |
+
#endif /* __IEmptyVolumeCacheCallBack_INTERFACE_DEFINED__ */
|
| 233 |
+
|
| 234 |
+
|
| 235 |
+
/* interface __MIDL_itf_emptyvc_0000_0001 */
|
| 236 |
+
/* [local] */
|
| 237 |
+
|
| 238 |
+
#endif
|
| 239 |
+
#ifndef _LPEMPTYVOLUMECACHE_DEFINED
|
| 240 |
+
#define _LPEMPTYVOLUMECACHE_DEFINED
|
| 241 |
+
|
| 242 |
+
|
| 243 |
+
extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0001_v0_0_c_ifspec;
|
| 244 |
+
extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0001_v0_0_s_ifspec;
|
| 245 |
+
|
| 246 |
+
#ifndef __IEmptyVolumeCache_INTERFACE_DEFINED__
|
| 247 |
+
#define __IEmptyVolumeCache_INTERFACE_DEFINED__
|
| 248 |
+
|
| 249 |
+
/* interface IEmptyVolumeCache */
|
| 250 |
+
/* [unique][uuid][object] */
|
| 251 |
+
|
| 252 |
+
typedef /* [unique] */ __RPC_unique_pointer IEmptyVolumeCache *LPEMPTYVOLUMECACHE;
|
| 253 |
+
|
| 254 |
+
|
| 255 |
+
EXTERN_C const IID IID_IEmptyVolumeCache;
|
| 256 |
+
|
| 257 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 258 |
+
|
| 259 |
+
MIDL_INTERFACE("8FCE5227-04DA-11d1-A004-00805F8ABE06")
|
| 260 |
+
IEmptyVolumeCache : public IUnknown
|
| 261 |
+
{
|
| 262 |
+
public:
|
| 263 |
+
virtual /* [local] */ HRESULT STDMETHODCALLTYPE Initialize(
|
| 264 |
+
/* [in] */ HKEY hkRegKey,
|
| 265 |
+
/* [in] */ LPCWSTR pcwszVolume,
|
| 266 |
+
/* [out] */ LPWSTR *ppwszDisplayName,
|
| 267 |
+
/* [out] */ LPWSTR *ppwszDescription,
|
| 268 |
+
/* [out] */ DWORD *pdwFlags) = 0;
|
| 269 |
+
|
| 270 |
+
virtual HRESULT STDMETHODCALLTYPE GetSpaceUsed(
|
| 271 |
+
/* [out] */ __RPC__out DWORDLONG *pdwlSpaceUsed,
|
| 272 |
+
/* [in] */ __RPC__in_opt IEmptyVolumeCacheCallBack *picb) = 0;
|
| 273 |
+
|
| 274 |
+
virtual HRESULT STDMETHODCALLTYPE Purge(
|
| 275 |
+
/* [in] */ DWORDLONG dwlSpaceToFree,
|
| 276 |
+
/* [in] */ __RPC__in_opt IEmptyVolumeCacheCallBack *picb) = 0;
|
| 277 |
+
|
| 278 |
+
virtual HRESULT STDMETHODCALLTYPE ShowProperties(
|
| 279 |
+
/* [in] */ __RPC__in HWND hwnd) = 0;
|
| 280 |
+
|
| 281 |
+
virtual HRESULT STDMETHODCALLTYPE Deactivate(
|
| 282 |
+
/* [out] */ __RPC__out DWORD *pdwFlags) = 0;
|
| 283 |
+
|
| 284 |
+
};
|
| 285 |
+
|
| 286 |
+
|
| 287 |
+
#else /* C style interface */
|
| 288 |
+
|
| 289 |
+
typedef struct IEmptyVolumeCacheVtbl
|
| 290 |
+
{
|
| 291 |
+
BEGIN_INTERFACE
|
| 292 |
+
|
| 293 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 294 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 295 |
+
__RPC__in IEmptyVolumeCache * This,
|
| 296 |
+
/* [in] */ __RPC__in REFIID riid,
|
| 297 |
+
/* [annotation][iid_is][out] */
|
| 298 |
+
_COM_Outptr_ void **ppvObject);
|
| 299 |
+
|
| 300 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 301 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 302 |
+
__RPC__in IEmptyVolumeCache * This);
|
| 303 |
+
|
| 304 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 305 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 306 |
+
__RPC__in IEmptyVolumeCache * This);
|
| 307 |
+
|
| 308 |
+
DECLSPEC_XFGVIRT(IEmptyVolumeCache, Initialize)
|
| 309 |
+
/* [local] */ HRESULT ( STDMETHODCALLTYPE *Initialize )(
|
| 310 |
+
IEmptyVolumeCache * This,
|
| 311 |
+
/* [in] */ HKEY hkRegKey,
|
| 312 |
+
/* [in] */ LPCWSTR pcwszVolume,
|
| 313 |
+
/* [out] */ LPWSTR *ppwszDisplayName,
|
| 314 |
+
/* [out] */ LPWSTR *ppwszDescription,
|
| 315 |
+
/* [out] */ DWORD *pdwFlags);
|
| 316 |
+
|
| 317 |
+
DECLSPEC_XFGVIRT(IEmptyVolumeCache, GetSpaceUsed)
|
| 318 |
+
HRESULT ( STDMETHODCALLTYPE *GetSpaceUsed )(
|
| 319 |
+
__RPC__in IEmptyVolumeCache * This,
|
| 320 |
+
/* [out] */ __RPC__out DWORDLONG *pdwlSpaceUsed,
|
| 321 |
+
/* [in] */ __RPC__in_opt IEmptyVolumeCacheCallBack *picb);
|
| 322 |
+
|
| 323 |
+
DECLSPEC_XFGVIRT(IEmptyVolumeCache, Purge)
|
| 324 |
+
HRESULT ( STDMETHODCALLTYPE *Purge )(
|
| 325 |
+
__RPC__in IEmptyVolumeCache * This,
|
| 326 |
+
/* [in] */ DWORDLONG dwlSpaceToFree,
|
| 327 |
+
/* [in] */ __RPC__in_opt IEmptyVolumeCacheCallBack *picb);
|
| 328 |
+
|
| 329 |
+
DECLSPEC_XFGVIRT(IEmptyVolumeCache, ShowProperties)
|
| 330 |
+
HRESULT ( STDMETHODCALLTYPE *ShowProperties )(
|
| 331 |
+
__RPC__in IEmptyVolumeCache * This,
|
| 332 |
+
/* [in] */ __RPC__in HWND hwnd);
|
| 333 |
+
|
| 334 |
+
DECLSPEC_XFGVIRT(IEmptyVolumeCache, Deactivate)
|
| 335 |
+
HRESULT ( STDMETHODCALLTYPE *Deactivate )(
|
| 336 |
+
__RPC__in IEmptyVolumeCache * This,
|
| 337 |
+
/* [out] */ __RPC__out DWORD *pdwFlags);
|
| 338 |
+
|
| 339 |
+
END_INTERFACE
|
| 340 |
+
} IEmptyVolumeCacheVtbl;
|
| 341 |
+
|
| 342 |
+
interface IEmptyVolumeCache
|
| 343 |
+
{
|
| 344 |
+
CONST_VTBL struct IEmptyVolumeCacheVtbl *lpVtbl;
|
| 345 |
+
};
|
| 346 |
+
|
| 347 |
+
|
| 348 |
+
|
| 349 |
+
#ifdef COBJMACROS
|
| 350 |
+
|
| 351 |
+
|
| 352 |
+
#define IEmptyVolumeCache_QueryInterface(This,riid,ppvObject) \
|
| 353 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 354 |
+
|
| 355 |
+
#define IEmptyVolumeCache_AddRef(This) \
|
| 356 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 357 |
+
|
| 358 |
+
#define IEmptyVolumeCache_Release(This) \
|
| 359 |
+
( (This)->lpVtbl -> Release(This) )
|
| 360 |
+
|
| 361 |
+
|
| 362 |
+
#define IEmptyVolumeCache_Initialize(This,hkRegKey,pcwszVolume,ppwszDisplayName,ppwszDescription,pdwFlags) \
|
| 363 |
+
( (This)->lpVtbl -> Initialize(This,hkRegKey,pcwszVolume,ppwszDisplayName,ppwszDescription,pdwFlags) )
|
| 364 |
+
|
| 365 |
+
#define IEmptyVolumeCache_GetSpaceUsed(This,pdwlSpaceUsed,picb) \
|
| 366 |
+
( (This)->lpVtbl -> GetSpaceUsed(This,pdwlSpaceUsed,picb) )
|
| 367 |
+
|
| 368 |
+
#define IEmptyVolumeCache_Purge(This,dwlSpaceToFree,picb) \
|
| 369 |
+
( (This)->lpVtbl -> Purge(This,dwlSpaceToFree,picb) )
|
| 370 |
+
|
| 371 |
+
#define IEmptyVolumeCache_ShowProperties(This,hwnd) \
|
| 372 |
+
( (This)->lpVtbl -> ShowProperties(This,hwnd) )
|
| 373 |
+
|
| 374 |
+
#define IEmptyVolumeCache_Deactivate(This,pdwFlags) \
|
| 375 |
+
( (This)->lpVtbl -> Deactivate(This,pdwFlags) )
|
| 376 |
+
|
| 377 |
+
#endif /* COBJMACROS */
|
| 378 |
+
|
| 379 |
+
|
| 380 |
+
#endif /* C style interface */
|
| 381 |
+
|
| 382 |
+
|
| 383 |
+
|
| 384 |
+
|
| 385 |
+
#endif /* __IEmptyVolumeCache_INTERFACE_DEFINED__ */
|
| 386 |
+
|
| 387 |
+
|
| 388 |
+
/* interface __MIDL_itf_emptyvc_0000_0002 */
|
| 389 |
+
/* [local] */
|
| 390 |
+
|
| 391 |
+
#endif
|
| 392 |
+
#ifndef _LPEMPTYVOLUMECACHE2_DEFINED
|
| 393 |
+
#define _LPEMPTYVOLUMECACHE2_DEFINED
|
| 394 |
+
|
| 395 |
+
|
| 396 |
+
extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0002_v0_0_c_ifspec;
|
| 397 |
+
extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0002_v0_0_s_ifspec;
|
| 398 |
+
|
| 399 |
+
#ifndef __IEmptyVolumeCache2_INTERFACE_DEFINED__
|
| 400 |
+
#define __IEmptyVolumeCache2_INTERFACE_DEFINED__
|
| 401 |
+
|
| 402 |
+
/* interface IEmptyVolumeCache2 */
|
| 403 |
+
/* [unique][uuid][object] */
|
| 404 |
+
|
| 405 |
+
typedef /* [unique] */ __RPC_unique_pointer IEmptyVolumeCache2 *LPEMPTYVOLUMECACHE2;
|
| 406 |
+
|
| 407 |
+
|
| 408 |
+
EXTERN_C const IID IID_IEmptyVolumeCache2;
|
| 409 |
+
|
| 410 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 411 |
+
|
| 412 |
+
MIDL_INTERFACE("02b7e3ba-4db3-11d2-b2d9-00c04f8eec8c")
|
| 413 |
+
IEmptyVolumeCache2 : public IEmptyVolumeCache
|
| 414 |
+
{
|
| 415 |
+
public:
|
| 416 |
+
virtual /* [local] */ HRESULT STDMETHODCALLTYPE InitializeEx(
|
| 417 |
+
/* [in] */ HKEY hkRegKey,
|
| 418 |
+
/* [in] */ LPCWSTR pcwszVolume,
|
| 419 |
+
/* [in] */ LPCWSTR pcwszKeyName,
|
| 420 |
+
/* [out] */ LPWSTR *ppwszDisplayName,
|
| 421 |
+
/* [out] */ LPWSTR *ppwszDescription,
|
| 422 |
+
/* [out] */ LPWSTR *ppwszBtnText,
|
| 423 |
+
/* [out] */ DWORD *pdwFlags) = 0;
|
| 424 |
+
|
| 425 |
+
};
|
| 426 |
+
|
| 427 |
+
|
| 428 |
+
#else /* C style interface */
|
| 429 |
+
|
| 430 |
+
typedef struct IEmptyVolumeCache2Vtbl
|
| 431 |
+
{
|
| 432 |
+
BEGIN_INTERFACE
|
| 433 |
+
|
| 434 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 435 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 436 |
+
__RPC__in IEmptyVolumeCache2 * This,
|
| 437 |
+
/* [in] */ __RPC__in REFIID riid,
|
| 438 |
+
/* [annotation][iid_is][out] */
|
| 439 |
+
_COM_Outptr_ void **ppvObject);
|
| 440 |
+
|
| 441 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 442 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 443 |
+
__RPC__in IEmptyVolumeCache2 * This);
|
| 444 |
+
|
| 445 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 446 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 447 |
+
__RPC__in IEmptyVolumeCache2 * This);
|
| 448 |
+
|
| 449 |
+
DECLSPEC_XFGVIRT(IEmptyVolumeCache, Initialize)
|
| 450 |
+
/* [local] */ HRESULT ( STDMETHODCALLTYPE *Initialize )(
|
| 451 |
+
IEmptyVolumeCache2 * This,
|
| 452 |
+
/* [in] */ HKEY hkRegKey,
|
| 453 |
+
/* [in] */ LPCWSTR pcwszVolume,
|
| 454 |
+
/* [out] */ LPWSTR *ppwszDisplayName,
|
| 455 |
+
/* [out] */ LPWSTR *ppwszDescription,
|
| 456 |
+
/* [out] */ DWORD *pdwFlags);
|
| 457 |
+
|
| 458 |
+
DECLSPEC_XFGVIRT(IEmptyVolumeCache, GetSpaceUsed)
|
| 459 |
+
HRESULT ( STDMETHODCALLTYPE *GetSpaceUsed )(
|
| 460 |
+
__RPC__in IEmptyVolumeCache2 * This,
|
| 461 |
+
/* [out] */ __RPC__out DWORDLONG *pdwlSpaceUsed,
|
| 462 |
+
/* [in] */ __RPC__in_opt IEmptyVolumeCacheCallBack *picb);
|
| 463 |
+
|
| 464 |
+
DECLSPEC_XFGVIRT(IEmptyVolumeCache, Purge)
|
| 465 |
+
HRESULT ( STDMETHODCALLTYPE *Purge )(
|
| 466 |
+
__RPC__in IEmptyVolumeCache2 * This,
|
| 467 |
+
/* [in] */ DWORDLONG dwlSpaceToFree,
|
| 468 |
+
/* [in] */ __RPC__in_opt IEmptyVolumeCacheCallBack *picb);
|
| 469 |
+
|
| 470 |
+
DECLSPEC_XFGVIRT(IEmptyVolumeCache, ShowProperties)
|
| 471 |
+
HRESULT ( STDMETHODCALLTYPE *ShowProperties )(
|
| 472 |
+
__RPC__in IEmptyVolumeCache2 * This,
|
| 473 |
+
/* [in] */ __RPC__in HWND hwnd);
|
| 474 |
+
|
| 475 |
+
DECLSPEC_XFGVIRT(IEmptyVolumeCache, Deactivate)
|
| 476 |
+
HRESULT ( STDMETHODCALLTYPE *Deactivate )(
|
| 477 |
+
__RPC__in IEmptyVolumeCache2 * This,
|
| 478 |
+
/* [out] */ __RPC__out DWORD *pdwFlags);
|
| 479 |
+
|
| 480 |
+
DECLSPEC_XFGVIRT(IEmptyVolumeCache2, InitializeEx)
|
| 481 |
+
/* [local] */ HRESULT ( STDMETHODCALLTYPE *InitializeEx )(
|
| 482 |
+
IEmptyVolumeCache2 * This,
|
| 483 |
+
/* [in] */ HKEY hkRegKey,
|
| 484 |
+
/* [in] */ LPCWSTR pcwszVolume,
|
| 485 |
+
/* [in] */ LPCWSTR pcwszKeyName,
|
| 486 |
+
/* [out] */ LPWSTR *ppwszDisplayName,
|
| 487 |
+
/* [out] */ LPWSTR *ppwszDescription,
|
| 488 |
+
/* [out] */ LPWSTR *ppwszBtnText,
|
| 489 |
+
/* [out] */ DWORD *pdwFlags);
|
| 490 |
+
|
| 491 |
+
END_INTERFACE
|
| 492 |
+
} IEmptyVolumeCache2Vtbl;
|
| 493 |
+
|
| 494 |
+
interface IEmptyVolumeCache2
|
| 495 |
+
{
|
| 496 |
+
CONST_VTBL struct IEmptyVolumeCache2Vtbl *lpVtbl;
|
| 497 |
+
};
|
| 498 |
+
|
| 499 |
+
|
| 500 |
+
|
| 501 |
+
#ifdef COBJMACROS
|
| 502 |
+
|
| 503 |
+
|
| 504 |
+
#define IEmptyVolumeCache2_QueryInterface(This,riid,ppvObject) \
|
| 505 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 506 |
+
|
| 507 |
+
#define IEmptyVolumeCache2_AddRef(This) \
|
| 508 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 509 |
+
|
| 510 |
+
#define IEmptyVolumeCache2_Release(This) \
|
| 511 |
+
( (This)->lpVtbl -> Release(This) )
|
| 512 |
+
|
| 513 |
+
|
| 514 |
+
#define IEmptyVolumeCache2_Initialize(This,hkRegKey,pcwszVolume,ppwszDisplayName,ppwszDescription,pdwFlags) \
|
| 515 |
+
( (This)->lpVtbl -> Initialize(This,hkRegKey,pcwszVolume,ppwszDisplayName,ppwszDescription,pdwFlags) )
|
| 516 |
+
|
| 517 |
+
#define IEmptyVolumeCache2_GetSpaceUsed(This,pdwlSpaceUsed,picb) \
|
| 518 |
+
( (This)->lpVtbl -> GetSpaceUsed(This,pdwlSpaceUsed,picb) )
|
| 519 |
+
|
| 520 |
+
#define IEmptyVolumeCache2_Purge(This,dwlSpaceToFree,picb) \
|
| 521 |
+
( (This)->lpVtbl -> Purge(This,dwlSpaceToFree,picb) )
|
| 522 |
+
|
| 523 |
+
#define IEmptyVolumeCache2_ShowProperties(This,hwnd) \
|
| 524 |
+
( (This)->lpVtbl -> ShowProperties(This,hwnd) )
|
| 525 |
+
|
| 526 |
+
#define IEmptyVolumeCache2_Deactivate(This,pdwFlags) \
|
| 527 |
+
( (This)->lpVtbl -> Deactivate(This,pdwFlags) )
|
| 528 |
+
|
| 529 |
+
|
| 530 |
+
#define IEmptyVolumeCache2_InitializeEx(This,hkRegKey,pcwszVolume,pcwszKeyName,ppwszDisplayName,ppwszDescription,ppwszBtnText,pdwFlags) \
|
| 531 |
+
( (This)->lpVtbl -> InitializeEx(This,hkRegKey,pcwszVolume,pcwszKeyName,ppwszDisplayName,ppwszDescription,ppwszBtnText,pdwFlags) )
|
| 532 |
+
|
| 533 |
+
#endif /* COBJMACROS */
|
| 534 |
+
|
| 535 |
+
|
| 536 |
+
#endif /* C style interface */
|
| 537 |
+
|
| 538 |
+
|
| 539 |
+
|
| 540 |
+
|
| 541 |
+
#endif /* __IEmptyVolumeCache2_INTERFACE_DEFINED__ */
|
| 542 |
+
|
| 543 |
+
|
| 544 |
+
/* interface __MIDL_itf_emptyvc_0000_0003 */
|
| 545 |
+
/* [local] */
|
| 546 |
+
|
| 547 |
+
#endif
|
| 548 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 549 |
+
#pragma endregion
|
| 550 |
+
|
| 551 |
+
|
| 552 |
+
extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0003_v0_0_c_ifspec;
|
| 553 |
+
extern RPC_IF_HANDLE __MIDL_itf_emptyvc_0000_0003_v0_0_s_ifspec;
|
| 554 |
+
|
| 555 |
+
/* Additional Prototypes for ALL interfaces */
|
| 556 |
+
|
| 557 |
+
unsigned long __RPC_USER HWND_UserSize( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * );
|
| 558 |
+
unsigned char * __RPC_USER HWND_UserMarshal( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * );
|
| 559 |
+
unsigned char * __RPC_USER HWND_UserUnmarshal(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * );
|
| 560 |
+
void __RPC_USER HWND_UserFree( __RPC__in unsigned long *, __RPC__in HWND * );
|
| 561 |
+
|
| 562 |
+
unsigned long __RPC_USER HWND_UserSize64( __RPC__in unsigned long *, unsigned long , __RPC__in HWND * );
|
| 563 |
+
unsigned char * __RPC_USER HWND_UserMarshal64( __RPC__in unsigned long *, __RPC__inout_xcount(0) unsigned char *, __RPC__in HWND * );
|
| 564 |
+
unsigned char * __RPC_USER HWND_UserUnmarshal64(__RPC__in unsigned long *, __RPC__in_xcount(0) unsigned char *, __RPC__out HWND * );
|
| 565 |
+
void __RPC_USER HWND_UserFree64( __RPC__in unsigned long *, __RPC__in HWND * );
|
| 566 |
+
|
| 567 |
+
/* end of Additional Prototypes */
|
| 568 |
+
|
| 569 |
+
#ifdef __cplusplus
|
| 570 |
+
}
|
| 571 |
+
#endif
|
| 572 |
+
|
| 573 |
+
#endif
|
| 574 |
+
|
| 575 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/ErrorRep.h
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/******************************************************************************
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
| 4 |
+
|
| 5 |
+
Module Name:
|
| 6 |
+
errorrep.h
|
| 7 |
+
|
| 8 |
+
Abstract:
|
| 9 |
+
contains functions used to report errors to Microsoft
|
| 10 |
+
|
| 11 |
+
******************************************************************************/
|
| 12 |
+
|
| 13 |
+
#ifndef __ERRORREP_H__
|
| 14 |
+
#define __ERRORREP_H__
|
| 15 |
+
|
| 16 |
+
#ifdef __cplusplus
|
| 17 |
+
extern "C" {
|
| 18 |
+
#endif
|
| 19 |
+
|
| 20 |
+
#include <winapifamily.h>
|
| 21 |
+
|
| 22 |
+
#pragma region Desktop Family
|
| 23 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
typedef enum tagEFaultRepRetVal
|
| 27 |
+
{
|
| 28 |
+
frrvOk = 0,
|
| 29 |
+
frrvOkManifest,
|
| 30 |
+
frrvOkQueued,
|
| 31 |
+
frrvErr,
|
| 32 |
+
frrvErrNoDW,
|
| 33 |
+
frrvErrTimeout,
|
| 34 |
+
frrvLaunchDebugger,
|
| 35 |
+
frrvOkHeadless,
|
| 36 |
+
frrvErrAnotherInstance,
|
| 37 |
+
frrvErrNoMemory,
|
| 38 |
+
frrvErrDoubleFault,
|
| 39 |
+
} EFaultRepRetVal;
|
| 40 |
+
|
| 41 |
+
EFaultRepRetVal APIENTRY ReportFault(_In_ LPEXCEPTION_POINTERS pep, _In_ DWORD dwOpt);
|
| 42 |
+
|
| 43 |
+
BOOL APIENTRY AddERExcludedApplicationA(_In_ LPCSTR szApplication);
|
| 44 |
+
BOOL APIENTRY AddERExcludedApplicationW(_In_ LPCWSTR wszApplication);
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
typedef EFaultRepRetVal (APIENTRY *pfn_REPORTFAULT)(_In_ LPEXCEPTION_POINTERS, _In_ DWORD);
|
| 48 |
+
typedef EFaultRepRetVal (APIENTRY *pfn_ADDEREXCLUDEDAPPLICATIONA)(_In_ LPCSTR);
|
| 49 |
+
typedef EFaultRepRetVal (APIENTRY *pfn_ADDEREXCLUDEDAPPLICATIONW)(_In_ LPCWSTR);
|
| 50 |
+
|
| 51 |
+
#ifdef UNICODE
|
| 52 |
+
#define AddERExcludedApplication AddERExcludedApplicationW
|
| 53 |
+
#define pfn_ADDEREXCLUDEDAPPLICATION pfn_ADDEREXCLUDEDAPPLICATIONW
|
| 54 |
+
#else
|
| 55 |
+
#define AddERExcludedApplication AddERExcludedApplicationA
|
| 56 |
+
#define pfn_ADDEREXCLUDEDAPPLICATION pfn_ADDEREXCLUDEDAPPLICATIONA
|
| 57 |
+
#endif
|
| 58 |
+
|
| 59 |
+
//
|
| 60 |
+
//+++++++++++++++++++++ Hang reporting api ++++++++++++++++++++++++++++++++
|
| 61 |
+
//
|
| 62 |
+
HRESULT
|
| 63 |
+
WINAPI
|
| 64 |
+
WerReportHang(
|
| 65 |
+
_In_ HWND hwndHungApp,
|
| 66 |
+
_In_opt_ PCWSTR pwzHungApplicationName
|
| 67 |
+
);
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 72 |
+
#pragma endregion
|
| 73 |
+
|
| 74 |
+
#ifdef __cplusplus
|
| 75 |
+
}
|
| 76 |
+
#endif
|
| 77 |
+
|
| 78 |
+
#endif
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dv.h
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//------------------------------------------------------------------------------
|
| 2 |
+
// File: DV.h
|
| 3 |
+
//
|
| 4 |
+
// Desc: DV typedefs and defines.
|
| 5 |
+
//
|
| 6 |
+
// Copyright (c) 1997 - 2001, Microsoft Corporation. All rights reserved.
|
| 7 |
+
//------------------------------------------------------------------------------
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
#ifndef _DV_H_
|
| 11 |
+
#define _DV_H_
|
| 12 |
+
#include <winapifamily.h>
|
| 13 |
+
|
| 14 |
+
#pragma region Desktop Family
|
| 15 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
#define DV_DVSD_NTSC_FRAMESIZE 120000L
|
| 19 |
+
#define DV_DVSD_PAL_FRAMESIZE 144000L
|
| 20 |
+
|
| 21 |
+
#define DV_SMCHN 0x0000e000
|
| 22 |
+
#define DV_AUDIOMODE 0x00000f00
|
| 23 |
+
#define DV_AUDIOSMP 0x38000000
|
| 24 |
+
|
| 25 |
+
#define DV_AUDIOQU 0x07000000
|
| 26 |
+
#define DV_NTSCPAL 0x00200000
|
| 27 |
+
#define DV_STYPE 0x001f0000
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
//There are NTSC or PAL DV camcorders
|
| 31 |
+
#define DV_NTSC 0
|
| 32 |
+
#define DV_PAL 1
|
| 33 |
+
//DV camcorder can output sd/hd/sl
|
| 34 |
+
#define DV_SD 0x00
|
| 35 |
+
#define DV_HD 0x01
|
| 36 |
+
#define DV_SL 0x02
|
| 37 |
+
//user can choice 12 bits or 16 bits audio from DV camcorder
|
| 38 |
+
#define DV_CAP_AUD16Bits 0x00
|
| 39 |
+
#define DV_CAP_AUD12Bits 0x01
|
| 40 |
+
|
| 41 |
+
#define SIZE_DVINFO 0x20
|
| 42 |
+
|
| 43 |
+
typedef struct Tag_DVAudInfo
|
| 44 |
+
{
|
| 45 |
+
BYTE bAudStyle[2];
|
| 46 |
+
//LSB 6 bits for starting DIF sequence number
|
| 47 |
+
//MSB 2 bits: 0 for mon. 1: stereo in one 5/6 DIF sequences, 2: stereo audio in both 5/6 DIF sequences
|
| 48 |
+
//example: 0x00: mon, audio in first 5/6 DIF sequence
|
| 49 |
+
// 0x05: mon, audio in 2nd 5 DIF sequence
|
| 50 |
+
// 0x15: stereo, audio only in 2nd 5 DIF sequence
|
| 51 |
+
// 0x10: stereo, audio only in 1st 5/6 DIF sequence
|
| 52 |
+
// 0x20: stereo, left ch in 1st 5/6 DIF sequence, right ch in 2nd 5/6 DIF sequence
|
| 53 |
+
// 0x26: stereo, rightch in 1st 6 DIF sequence, left ch in 2nd 6 DIF sequence
|
| 54 |
+
BYTE bAudQu[2]; //qbits, only support 12, 16,
|
| 55 |
+
|
| 56 |
+
BYTE bNumAudPin; //how many pin(language)
|
| 57 |
+
WORD wAvgSamplesPerPinPerFrm[2]; //samples size for one audio pin in one frame(which has 10 or 12 DIF sequence)
|
| 58 |
+
WORD wBlkMode; //45 for NTSC, 54 for PAL
|
| 59 |
+
WORD wDIFMode; //5 for NTSC, 6 for PAL
|
| 60 |
+
WORD wBlkDiv; //15 for NTSC, 18 for PAL
|
| 61 |
+
} DVAudInfo;
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 65 |
+
#pragma endregion
|
| 66 |
+
|
| 67 |
+
#endif // _DV_H_
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dvdevcod.h
ADDED
|
@@ -0,0 +1,427 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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od.h
|
| 3 |
+
//
|
| 4 |
+
// Desc: List of standard DVD-Video event codes and the expected params.
|
| 5 |
+
//
|
| 6 |
+
// Copyright (c) 1992 - 2001, Microsoft Corporation. All rights reserved.
|
| 7 |
+
//------------------------------------------------------------------------------
|
| 8 |
+
|
| 9 |
+
#ifndef __DVDEVCOD__
|
| 10 |
+
#define __DVDEVCOD__
|
| 11 |
+
#include <winapifamily.h>
|
| 12 |
+
|
| 13 |
+
#pragma region Application Family
|
| 14 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
#define EC_DVDBASE 0x0100
|
| 19 |
+
|
| 20 |
+
#ifndef EXCLUDE_DVDEVCODE_ENUMS
|
| 21 |
+
|
| 22 |
+
typedef enum _tagDVD_ERROR {
|
| 23 |
+
DVD_ERROR_Unexpected=1, // Something unexpected happened, perhaps content
|
| 24 |
+
// is incorrectly authored. Playback is stopped.
|
| 25 |
+
DVD_ERROR_CopyProtectFail=2, // Key exchange for DVD copy protection failed.
|
| 26 |
+
// Playback is stopped.
|
| 27 |
+
DVD_ERROR_InvalidDVD1_0Disc=3, // DVD-Video disc is incorrectly authored for v1.0
|
| 28 |
+
// of spec. Playback is stopped.
|
| 29 |
+
DVD_ERROR_InvalidDiscRegion=4, // The Disc cannot be played because the disc is not
|
| 30 |
+
// authored to play in system region.
|
| 31 |
+
// The region mismatch may be fixable by
|
| 32 |
+
// changing the system region with dvdrgn.exe
|
| 33 |
+
DVD_ERROR_LowParentalLevel=5, // Player parental level is lower than the lowest parental
|
| 34 |
+
// level available in the DVD content. Playback is stopped.
|
| 35 |
+
DVD_ERROR_MacrovisionFail=6, // Macrovision Distribution Failed.
|
| 36 |
+
// Playback is stopped.
|
| 37 |
+
DVD_ERROR_IncompatibleSystemAndDecoderRegions=7,
|
| 38 |
+
// No discs can be played because the system region
|
| 39 |
+
// does not match the decoder region.
|
| 40 |
+
DVD_ERROR_IncompatibleDiscAndDecoderRegions=8,
|
| 41 |
+
// The disc cannot be played because the disc is
|
| 42 |
+
// not authored to be played in the decoder's region
|
| 43 |
+
DVD_ERROR_CopyProtectOutputFail=9, // DVD copy protection failed due to output display
|
| 44 |
+
DVD_ERROR_CopyProtectOutputNotSupported=10, // DVD copy protection failed due to lack of driver
|
| 45 |
+
// support for checking the output display
|
| 46 |
+
} DVD_ERROR;
|
| 47 |
+
|
| 48 |
+
typedef enum _tagDVD_WARNING {
|
| 49 |
+
DVD_WARNING_InvalidDVD1_0Disc=1,// DVD-Video disc is incorrectly authored. Playback
|
| 50 |
+
// can continue, but unexpected behavior may occur.
|
| 51 |
+
DVD_WARNING_FormatNotSupported=2,// A decoder would not support the current format. Playback
|
| 52 |
+
// of a stream (audio, video of SP) may not function.
|
| 53 |
+
// lParam2 contains the stream type (see AM_DVD_STREAM_FLAGS)
|
| 54 |
+
DVD_WARNING_IllegalNavCommand=3,// The internal DVD navigation command processor attempted to
|
| 55 |
+
// process an illegal command.
|
| 56 |
+
DVD_WARNING_Open = 4, // File Open Failed
|
| 57 |
+
DVD_WARNING_Seek = 5, // File Seek Failed
|
| 58 |
+
DVD_WARNING_Read = 6 // File Read Failed
|
| 59 |
+
} DVD_WARNING;
|
| 60 |
+
|
| 61 |
+
typedef enum _tagDVD_PB_STOPPED {
|
| 62 |
+
DVD_PB_STOPPED_Other=0, // The navigator stopped the playback (no reason available).
|
| 63 |
+
DVD_PB_STOPPED_NoBranch=1, // The nav completed the current pgc and there was no more video and
|
| 64 |
+
// did not find any other branching instruction for subsequent playback.
|
| 65 |
+
DVD_PB_STOPPED_NoFirstPlayDomain =2, // The disc does not contain an initial startup program.
|
| 66 |
+
DVD_PB_STOPPED_StopCommand = 3, // The app issued a stop() command or a stop command was authored on the disc.
|
| 67 |
+
DVD_PB_STOPPED_Reset=4, // The navigator was reset to the start of the disc (using ResetOnStop).
|
| 68 |
+
DVD_PB_STOPPED_DiscEjected=5, // The disc was ejected.
|
| 69 |
+
DVD_PB_STOPPED_IllegalNavCommand = 6, // An illegal nav command prevented playback from continuing.
|
| 70 |
+
DVD_PB_STOPPED_PlayPeriodAutoStop = 7, // PlayPeriod completed
|
| 71 |
+
DVD_PB_STOPPED_PlayChapterAutoStop = 8, // PlayChapter completed
|
| 72 |
+
DVD_PB_STOPPED_ParentalFailure = 9, // A parental level failure prevented playback
|
| 73 |
+
DVD_PB_STOPPED_RegionFailure = 10, // A region failure prevented playback
|
| 74 |
+
DVD_PB_STOPPED_MacrovisionFailure = 11, // A Macrovision failure prevented playback.
|
| 75 |
+
DVD_PB_STOPPED_DiscReadError = 12, // A read error prevented playback.
|
| 76 |
+
DVD_PB_STOPPED_CopyProtectFailure = 13, // Copy protection failure.
|
| 77 |
+
DVD_PB_STOPPED_CopyProtectOutputFailure = 14, // Copy protection failure due to non-compliant output device
|
| 78 |
+
DVD_PB_STOPPED_CopyProtectOutputNotSupported = 15 // Copy protection failure due to missing driver support to check
|
| 79 |
+
// output device
|
| 80 |
+
} DVD_PB_STOPPED;
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
#endif
|
| 84 |
+
|
| 85 |
+
// DVD-Video event codes
|
| 86 |
+
// ======================
|
| 87 |
+
//
|
| 88 |
+
// All DVD-Video event are always passed on to the application, and are
|
| 89 |
+
// never processed by the filter graph
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
#define EC_DVD_DOMAIN_CHANGE (EC_DVDBASE + 0x01)
|
| 93 |
+
// Parameters: ( DWORD, void )
|
| 94 |
+
// lParam1 is enum DVD_DOMAIN, and indicates the player's new domain
|
| 95 |
+
//
|
| 96 |
+
// Raised from following domains: all
|
| 97 |
+
//
|
| 98 |
+
// Signaled when ever the DVD player changes domains.
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
#define EC_DVD_TITLE_CHANGE (EC_DVDBASE + 0x02)
|
| 102 |
+
// Parameters: ( DWORD, void )
|
| 103 |
+
// lParam1 is the new title number.
|
| 104 |
+
//
|
| 105 |
+
// Raised from following domains: DVD_DOMAIN_Title
|
| 106 |
+
//
|
| 107 |
+
// Indicates when the current title number changes. Title numbers
|
| 108 |
+
// range 1 to 99. This indicates the TTN, which is the title number
|
| 109 |
+
// with respect to the whole disc, not the VTS_TTN which is the title
|
| 110 |
+
// number with respect to just a current VTS.
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
#define EC_DVD_CHAPTER_START (EC_DVDBASE + 0x03)
|
| 114 |
+
// Parameters: ( DWORD, void )
|
| 115 |
+
// lParam1 is the new chapter number (which is the program number for
|
| 116 |
+
// One_Sequential_PGC_Titles).
|
| 117 |
+
//
|
| 118 |
+
// Raised from following domains: DVD_DOMAIN_Title
|
| 119 |
+
//
|
| 120 |
+
// Signales that DVD player started playback of a new program in the Title
|
| 121 |
+
// domain. This is only signaled for One_Sequential_PGC_Titles.
|
| 122 |
+
|
| 123 |
+
|
| 124 |
+
#define EC_DVD_AUDIO_STREAM_CHANGE (EC_DVDBASE + 0x04)
|
| 125 |
+
// Parameters: ( DWORD, void )
|
| 126 |
+
// lParam1 is the new user audio stream number.
|
| 127 |
+
//
|
| 128 |
+
// Raised from following domains: all
|
| 129 |
+
//
|
| 130 |
+
// Signaled when ever the current user audio stream number changes for the main
|
| 131 |
+
// title. This can be changed automatically with a navigation command on disc
|
| 132 |
+
// as well as through IDVDAnnexJ.
|
| 133 |
+
// Audio stream numbers range from 0 to 7. Stream 0xffffffff
|
| 134 |
+
// indicates that no stream is selected.
|
| 135 |
+
|
| 136 |
+
#define EC_DVD_SUBPICTURE_STREAM_CHANGE (EC_DVDBASE + 0x05)
|
| 137 |
+
// Parameters: ( DWORD, BOOL )
|
| 138 |
+
// lParam1 is the new user subpicture stream number.
|
| 139 |
+
// lParam2 is the subpicture's on/off state (TRUE if on)
|
| 140 |
+
//
|
| 141 |
+
// Raised from following domains: all
|
| 142 |
+
//
|
| 143 |
+
// Signaled when ever the current user subpicture stream number changes for the main
|
| 144 |
+
// title. This can be changed automatically with a navigation command on disc
|
| 145 |
+
// as well as through IDVDAnnexJ.
|
| 146 |
+
// Subpicture stream numbers range from 0 to 31. Stream 0xffffffff
|
| 147 |
+
// indicates that no stream is selected.
|
| 148 |
+
|
| 149 |
+
#define EC_DVD_ANGLE_CHANGE (EC_DVDBASE + 0x06)
|
| 150 |
+
// Parameters: ( DWORD, DWORD )
|
| 151 |
+
// lParam1 is the number of available angles.
|
| 152 |
+
// lParam2 is the current user angle number.
|
| 153 |
+
//
|
| 154 |
+
// Raised from following domains: all
|
| 155 |
+
//
|
| 156 |
+
// Signaled when ever either
|
| 157 |
+
// a) the number of available angles changes, or
|
| 158 |
+
// b) the current user angle number changes.
|
| 159 |
+
// Current angle number can be changed automatically with navigation command
|
| 160 |
+
// on disc as well as through IDVDAnnexJ.
|
| 161 |
+
// When the number of available angles is 1, the current video is not multiangle.
|
| 162 |
+
// Angle numbers range from 1 to 9.
|
| 163 |
+
|
| 164 |
+
|
| 165 |
+
#define EC_DVD_BUTTON_CHANGE (EC_DVDBASE + 0x07)
|
| 166 |
+
// Parameters: ( DWORD, DWORD )
|
| 167 |
+
// lParam1 is the number of available buttons.
|
| 168 |
+
// lParam2 is the current selected button number.
|
| 169 |
+
//
|
| 170 |
+
// Raised from following domains: all
|
| 171 |
+
//
|
| 172 |
+
// Signaled when ever either
|
| 173 |
+
// a) the number of available buttons changes, or
|
| 174 |
+
// b) the current selected button number changes.
|
| 175 |
+
// The current selected button can be changed automatically with navigation
|
| 176 |
+
// commands on disc as well as through IDVDAnnexJ.
|
| 177 |
+
// Button numbers range from 1 to 36. Selected button number 0 implies that
|
| 178 |
+
// no button is selected. Note that these button numbers enumerate all
|
| 179 |
+
// available button numbers, and do not always correspond to button numbers
|
| 180 |
+
// used for IDVDAnnexJ::ButtonSelectAndActivate since only a subset of buttons
|
| 181 |
+
// may be activated with ButtonSelectAndActivate.
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
#define EC_DVD_VALID_UOPS_CHANGE (EC_DVDBASE + 0x08)
|
| 185 |
+
// Parameters: ( DWORD, void )
|
| 186 |
+
// lParam1 is a VALID_UOP_SOMTHING_OR_OTHER bit-field stuct which indicates
|
| 187 |
+
// which IDVDAnnexJ commands are explicitly disable by the DVD disc.
|
| 188 |
+
//
|
| 189 |
+
// Raised from following domains: all
|
| 190 |
+
//
|
| 191 |
+
// Signaled when ever the available set of IDVDAnnexJ methods changes. This
|
| 192 |
+
// only indicates which operations are explicited disabled by the content on
|
| 193 |
+
// the DVD disc, and does not guarentee that it is valid to call methods
|
| 194 |
+
// which are not disabled. For example, if no buttons are currently present,
|
| 195 |
+
// IDVDAnnexJ::ButtonActivate() won't work, even though the buttons are not
|
| 196 |
+
// explicitly disabled.
|
| 197 |
+
|
| 198 |
+
|
| 199 |
+
#define EC_DVD_STILL_ON (EC_DVDBASE + 0x09)
|
| 200 |
+
// Parameters: ( BOOL, DWORD )
|
| 201 |
+
// lParam1 == 0 --> buttons are available, so StillOff won't work
|
| 202 |
+
// lParam1 == 1 --> no buttons available, so StillOff will work
|
| 203 |
+
// lParam2 indicates the number of seconds the still will last, with 0xffffffff
|
| 204 |
+
// indicating an infinite still (wait till button or StillOff selected).
|
| 205 |
+
//
|
| 206 |
+
// Raised from following domains: all
|
| 207 |
+
//
|
| 208 |
+
// Signaled at the beginning of any still: PGC still, Cell Still, or VOBU Still.
|
| 209 |
+
// Note that all combinations of buttons and still are possible (buttons on with
|
| 210 |
+
// still on, buttons on with still off, button off with still on, button off
|
| 211 |
+
// with still off).
|
| 212 |
+
|
| 213 |
+
#define EC_DVD_STILL_OFF (EC_DVDBASE + 0x0a)
|
| 214 |
+
// Parameters: ( void, void )
|
| 215 |
+
//
|
| 216 |
+
// Indicating that any still that is currently active
|
| 217 |
+
// has been released.
|
| 218 |
+
//
|
| 219 |
+
// Raised from following domains: all
|
| 220 |
+
//
|
| 221 |
+
// Signaled at the end of any still: PGC still, Cell Still, or VOBU Still.
|
| 222 |
+
//
|
| 223 |
+
|
| 224 |
+
#define EC_DVD_CURRENT_TIME (EC_DVDBASE + 0x0b)
|
| 225 |
+
// Parameters: ( DWORD, BOOL )
|
| 226 |
+
// lParam1 is a DVD_TIMECODE which indicates the current
|
| 227 |
+
// playback time code in a BCD HH:MM:SS:FF format.
|
| 228 |
+
// lParam2 == 0 --> time code is 25 frames/sec
|
| 229 |
+
// lParam2 == 1 --> time code is 30 frames/sec (non-drop).
|
| 230 |
+
// lParam2 == 2 --> time code is invalid (current playback time
|
| 231 |
+
// cannot be determined for current title)
|
| 232 |
+
//
|
| 233 |
+
// Raised from following domains: DVD_DOMAIN_Title
|
| 234 |
+
//
|
| 235 |
+
// Signaled at the beginning of every VOBU, which occurs every .4 to 1.0 sec.
|
| 236 |
+
// This is only signaled for One_Sequential_PGC_Titles.
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
#define EC_DVD_ERROR (EC_DVDBASE + 0x0c)
|
| 240 |
+
// Parameters: ( DWORD, void)
|
| 241 |
+
// lParam1 is an enum DVD_ERROR which notifies the app of some error condition.
|
| 242 |
+
//
|
| 243 |
+
// Raised from following domains: all
|
| 244 |
+
//
|
| 245 |
+
|
| 246 |
+
#define EC_DVD_WARNING (EC_DVDBASE + 0x0d)
|
| 247 |
+
// Parameters: ( DWORD, DWORD)
|
| 248 |
+
// lParam1 is an enum DVD_WARNING which notifies the app of some warning condition.
|
| 249 |
+
// lParam2 contains more specific information about the warning (warning dependent)
|
| 250 |
+
//
|
| 251 |
+
// Raised from following domains: all
|
| 252 |
+
//
|
| 253 |
+
|
| 254 |
+
#define EC_DVD_CHAPTER_AUTOSTOP (EC_DVDBASE + 0x0e)
|
| 255 |
+
// Parameters: (BOOL, void)
|
| 256 |
+
// lParam1 is a BOOL which indicates the reason for the cancellation of ChapterPlayAutoStop
|
| 257 |
+
// lParam1 == 0 indicates successful completion of ChapterPlayAutoStop
|
| 258 |
+
// lParam1 == 1 indicates that ChapterPlayAutoStop is being cancelled as a result of another
|
| 259 |
+
// IDVDControl call or the end of content has been reached & no more chapters
|
| 260 |
+
// can be played.
|
| 261 |
+
// Indicating that playback is stopped as a result of a call
|
| 262 |
+
// to IDVDControl::ChapterPlayAutoStop()
|
| 263 |
+
//
|
| 264 |
+
// Raised from following domains : DVD_DOMAIN_TITLE
|
| 265 |
+
//
|
| 266 |
+
|
| 267 |
+
#define EC_DVD_NO_FP_PGC (EC_DVDBASE + 0x0f)
|
| 268 |
+
// Parameters : (void, void)
|
| 269 |
+
//
|
| 270 |
+
// Raised from the following domains : FP_DOM
|
| 271 |
+
//
|
| 272 |
+
// Indicates that the DVD disc does not have a FP_PGC (First Play Program Chain)
|
| 273 |
+
// and the DVD Navigator will not automatically load any PGC and start playback.
|
| 274 |
+
//
|
| 275 |
+
|
| 276 |
+
#define EC_DVD_PLAYBACK_RATE_CHANGE (EC_DVDBASE + 0x10)
|
| 277 |
+
// Parameters : (LONG, void)
|
| 278 |
+
// lParam1 is a LONG indicating the new playback rate.
|
| 279 |
+
// lParam1 < 0 indicates reverse playback mode.
|
| 280 |
+
// lParam1 > 0 indicates forward playback mode
|
| 281 |
+
// Value of lParam1 is the actual playback rate multiplied by 10000.
|
| 282 |
+
// i.e. lParam1 = rate * 10000
|
| 283 |
+
//
|
| 284 |
+
// Raised from the following domains : TT_DOM
|
| 285 |
+
//
|
| 286 |
+
// Indicates that a rate change in playback has been initiated and the parameter
|
| 287 |
+
// lParam1 indicates the new playback rate that is being used.
|
| 288 |
+
//
|
| 289 |
+
|
| 290 |
+
#define EC_DVD_PARENTAL_LEVEL_CHANGE (EC_DVDBASE + 0x11)
|
| 291 |
+
// Parameters : (LONG, void)
|
| 292 |
+
// lParam1 is a LONG indicating the new parental level.
|
| 293 |
+
//
|
| 294 |
+
// Raised from the following domains : VMGM_DOM
|
| 295 |
+
//
|
| 296 |
+
// Indicates that an authored Nav command has changed the parental level
|
| 297 |
+
// setting in the player.
|
| 298 |
+
//
|
| 299 |
+
|
| 300 |
+
#define EC_DVD_PLAYBACK_STOPPED (EC_DVDBASE + 0x12)
|
| 301 |
+
// Parameters : (DWORD, void)
|
| 302 |
+
//
|
| 303 |
+
// Raised from the following domains : All Domains
|
| 304 |
+
//
|
| 305 |
+
// Indicates that playback has been stopped as the Navigator has completed
|
| 306 |
+
// playback of the pgc and did not find any other branching instruction for
|
| 307 |
+
// subsequent playback.
|
| 308 |
+
//
|
| 309 |
+
// The DWORD returns the reason for the completion of the playback. See
|
| 310 |
+
// The DVD_PB_STOPPED enumeration for details.
|
| 311 |
+
//
|
| 312 |
+
|
| 313 |
+
#define EC_DVD_ANGLES_AVAILABLE (EC_DVDBASE + 0x13)
|
| 314 |
+
// Parameters : (BOOL, void)
|
| 315 |
+
// lParam1 == 0 indicates that playback is not in an angle block and angles are
|
| 316 |
+
// not available
|
| 317 |
+
// lParam1 == 1 indicates that an angle block is being played back and angle changes
|
| 318 |
+
// can be performed.
|
| 319 |
+
//
|
| 320 |
+
// Indicates whether an angle block is being played and if angle changes can be
|
| 321 |
+
// performed. However, angle changes are not restricted to angle blocks and the
|
| 322 |
+
// manifestation of the angle change can be seen only in an angle block.
|
| 323 |
+
|
| 324 |
+
#define EC_DVD_PLAYPERIOD_AUTOSTOP (EC_DVDBASE + 0x14)
|
| 325 |
+
// Parameters: (void, void)
|
| 326 |
+
// Sent when the PlayPeriodInTitle completes or is cancelled
|
| 327 |
+
//
|
| 328 |
+
// Raised from following domains : DVD_DOMAIN_TITLE
|
| 329 |
+
//
|
| 330 |
+
|
| 331 |
+
#define EC_DVD_BUTTON_AUTO_ACTIVATED (EC_DVDBASE + 0x15)
|
| 332 |
+
// Parameters: (DWORD button, void)
|
| 333 |
+
// Sent when a button is automatically activated
|
| 334 |
+
//
|
| 335 |
+
// Raised from following domains : DVD_DOMAIN_MENU
|
| 336 |
+
//
|
| 337 |
+
|
| 338 |
+
#define EC_DVD_CMD_START (EC_DVDBASE + 0x16)
|
| 339 |
+
// Parameters: (CmdID, HRESULT)
|
| 340 |
+
// Sent when a command begins
|
| 341 |
+
//
|
| 342 |
+
|
| 343 |
+
#define EC_DVD_CMD_END (EC_DVDBASE + 0x17)
|
| 344 |
+
// Parameters: (CmdID, HRESULT)
|
| 345 |
+
// Sent when a command completes
|
| 346 |
+
//
|
| 347 |
+
|
| 348 |
+
#define EC_DVD_DISC_EJECTED (EC_DVDBASE + 0x18)
|
| 349 |
+
// Parameters: none
|
| 350 |
+
// Sent when the nav detects that a disc was ejected and stops the playback
|
| 351 |
+
// The app does not need to take any action to stop the playback.
|
| 352 |
+
//
|
| 353 |
+
|
| 354 |
+
#define EC_DVD_DISC_INSERTED (EC_DVDBASE + 0x19)
|
| 355 |
+
// Parameters: none
|
| 356 |
+
// Sent when the nav detects that a disc was inserted and the nav begins playback
|
| 357 |
+
// The app does not need to take any action to start the playback.
|
| 358 |
+
//
|
| 359 |
+
|
| 360 |
+
#define EC_DVD_CURRENT_HMSF_TIME (EC_DVDBASE + 0x1a)
|
| 361 |
+
// Parameters: ( ULONG, ULONG )
|
| 362 |
+
// lParam2 contains a union of the DVD_TIMECODE_FLAGS
|
| 363 |
+
// lParam1 contains a DVD_HMSF_TIMECODE. Assign lParam1 to a ULONG then cast the
|
| 364 |
+
// ULONG as a DVD_HMSF_TIMECODE to use its values.
|
| 365 |
+
//
|
| 366 |
+
// Raised from following domains: DVD_DOMAIN_Title
|
| 367 |
+
//
|
| 368 |
+
// Signaled at the beginning of every VOBU, which occurs every .4 to 1.0 sec.
|
| 369 |
+
|
| 370 |
+
#define EC_DVD_KARAOKE_MODE (EC_DVDBASE + 0x1b)
|
| 371 |
+
// Parameters: ( BOOL, reserved )
|
| 372 |
+
// lParam1 is either TRUE (a karaoke track is being played) or FALSE (no karaoke data is being played).
|
| 373 |
+
//
|
| 374 |
+
|
| 375 |
+
#define EC_DVD_PROGRAM_CELL_CHANGE (EC_DVDBASE + 0x1c)
|
| 376 |
+
// Parameters: ( ULONG, ULONG )
|
| 377 |
+
// Sent when current program ID and/or cell ID change
|
| 378 |
+
// lParam1 contains the new Program ID
|
| 379 |
+
// lParam2 contains the new Cell ID
|
| 380 |
+
|
| 381 |
+
#define EC_DVD_TITLE_SET_CHANGE (EC_DVDBASE + 0x1d)
|
| 382 |
+
// Parameters: ( BYTE, void )
|
| 383 |
+
// Sent when current VTS (Video Title Set) changes
|
| 384 |
+
// lParam1 contains the new VTSN (Video Title Set Number)
|
| 385 |
+
|
| 386 |
+
#define EC_DVD_PROGRAM_CHAIN_CHANGE (EC_DVDBASE + 0x1e)
|
| 387 |
+
// Parameters: ( WORD, void )
|
| 388 |
+
// Sent when current PGC (Program Chain) changes
|
| 389 |
+
// lParam1 contains the new PGCN (Program Chain Number)
|
| 390 |
+
|
| 391 |
+
#define EC_DVD_VOBU_Offset (EC_DVDBASE + 0x1f)
|
| 392 |
+
// Parameters: ( BlockOffset, VTSN )
|
| 393 |
+
// lParam1 is the block offset of the most recent VOBU.
|
| 394 |
+
//
|
| 395 |
+
|
| 396 |
+
#define EC_DVD_VOBU_Timestamp (EC_DVDBASE + 0x20)
|
| 397 |
+
// Parameters: ( rtTimestamp.LowPart, rtTimeStamps.HighPart )
|
| 398 |
+
// lParam1 is the dshow timestamp of the most recent VOBU.
|
| 399 |
+
//
|
| 400 |
+
|
| 401 |
+
#define EC_DVD_GPRM_Change (EC_DVDBASE + 0x21)
|
| 402 |
+
// Parameters: ( GPRM index, GPRM value )
|
| 403 |
+
// lParam1 is the GPRM index
|
| 404 |
+
// loword(lParam2) is the new GPRM value, hiword(lParam2) is type
|
| 405 |
+
//
|
| 406 |
+
|
| 407 |
+
#define EC_DVD_SPRM_Change (EC_DVDBASE + 0x22)
|
| 408 |
+
// Parameters: ( SPRM index, SPRM value )
|
| 409 |
+
// lParam1 is the SPRM index
|
| 410 |
+
// loword(lParam2) is the new SPRM value, hiword(lParam2) is type
|
| 411 |
+
//
|
| 412 |
+
|
| 413 |
+
#define EC_DVD_BeginNavigationCommands (EC_DVDBASE + 0x23)
|
| 414 |
+
// Parameters: ( command type, reserved )
|
| 415 |
+
// Sent when navigation commands are starting
|
| 416 |
+
//
|
| 417 |
+
|
| 418 |
+
#define EC_DVD_NavigationCommand (EC_DVDBASE + 0x24)
|
| 419 |
+
// Parameters: ( cmd.LowPart, cmd.HighPart )
|
| 420 |
+
// 64 bits of DVD navigation command.
|
| 421 |
+
//
|
| 422 |
+
|
| 423 |
+
|
| 424 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) */
|
| 425 |
+
#pragma endregion
|
| 426 |
+
|
| 427 |
+
#endif // __DVDEVCOD__
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dvdif.idl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dvdmedia.h
ADDED
|
@@ -0,0 +1,455 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//------------------------------------------------------------------------------
|
| 2 |
+
// File: DVDMedia.h
|
| 3 |
+
//
|
| 4 |
+
// Desc: Contains typedefs and defines necessary for user mode (ring 3) DVD
|
| 5 |
+
// filters and applications.
|
| 6 |
+
//
|
| 7 |
+
// This should be included in the DirectShow SDK for user mode filters.
|
| 8 |
+
// The types defined here should be kept in synch with ksmedia.h WDM
|
| 9 |
+
// DDK for kernel mode filters.
|
| 10 |
+
//
|
| 11 |
+
// Copyright (c) 1997 - 2001, Microsoft Corporation. All rights reserved.
|
| 12 |
+
//------------------------------------------------------------------------------
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
#ifndef __DVDMEDIA_H__
|
| 16 |
+
#define __DVDMEDIA_H__
|
| 17 |
+
#include <winapifamily.h>
|
| 18 |
+
|
| 19 |
+
#pragma region Desktop Family
|
| 20 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
#ifdef __cplusplus
|
| 24 |
+
extern "C" {
|
| 25 |
+
#endif // __cplusplus
|
| 26 |
+
|
| 27 |
+
// -----------------------------------------------------------------------
|
| 28 |
+
// AC-3 definition for the AM_KSPROPSETID_AC3 property set
|
| 29 |
+
// -----------------------------------------------------------------------
|
| 30 |
+
|
| 31 |
+
typedef enum {
|
| 32 |
+
AM_PROPERTY_AC3_ERROR_CONCEALMENT = 1,
|
| 33 |
+
AM_PROPERTY_AC3_ALTERNATE_AUDIO = 2,
|
| 34 |
+
AM_PROPERTY_AC3_DOWNMIX = 3,
|
| 35 |
+
AM_PROPERTY_AC3_BIT_STREAM_MODE = 4,
|
| 36 |
+
AM_PROPERTY_AC3_DIALOGUE_LEVEL = 5,
|
| 37 |
+
AM_PROPERTY_AC3_LANGUAGE_CODE = 6,
|
| 38 |
+
AM_PROPERTY_AC3_ROOM_TYPE = 7
|
| 39 |
+
} AM_PROPERTY_AC3;
|
| 40 |
+
|
| 41 |
+
typedef struct {
|
| 42 |
+
BOOL fRepeatPreviousBlock;
|
| 43 |
+
BOOL fErrorInCurrentBlock;
|
| 44 |
+
} AM_AC3_ERROR_CONCEALMENT, *PAM_AC3_ERROR_CONCEALMENT;
|
| 45 |
+
|
| 46 |
+
typedef struct {
|
| 47 |
+
BOOL fStereo;
|
| 48 |
+
ULONG DualMode;
|
| 49 |
+
} AM_AC3_ALTERNATE_AUDIO, *PAM_AC3_ALTERNATE_AUDIO;
|
| 50 |
+
|
| 51 |
+
#define AM_AC3_ALTERNATE_AUDIO_1 1
|
| 52 |
+
#define AM_AC3_ALTERNATE_AUDIO_2 2
|
| 53 |
+
#define AM_AC3_ALTERNATE_AUDIO_BOTH 3
|
| 54 |
+
|
| 55 |
+
typedef struct {
|
| 56 |
+
BOOL fDownMix;
|
| 57 |
+
BOOL fDolbySurround;
|
| 58 |
+
} AM_AC3_DOWNMIX, *PAM_AC3_DOWNMIX;
|
| 59 |
+
|
| 60 |
+
typedef struct {
|
| 61 |
+
LONG BitStreamMode;
|
| 62 |
+
} AM_AC3_BIT_STREAM_MODE, *PAM_AC3_BIT_STREAM_MODE;
|
| 63 |
+
|
| 64 |
+
#define AM_AC3_SERVICE_MAIN_AUDIO 0
|
| 65 |
+
#define AM_AC3_SERVICE_NO_DIALOG 1
|
| 66 |
+
#define AM_AC3_SERVICE_VISUALLY_IMPAIRED 2
|
| 67 |
+
#define AM_AC3_SERVICE_HEARING_IMPAIRED 3
|
| 68 |
+
#define AM_AC3_SERVICE_DIALOG_ONLY 4
|
| 69 |
+
#define AM_AC3_SERVICE_COMMENTARY 5
|
| 70 |
+
#define AM_AC3_SERVICE_EMERGENCY_FLASH 6
|
| 71 |
+
#define AM_AC3_SERVICE_VOICE_OVER 7
|
| 72 |
+
|
| 73 |
+
typedef struct {
|
| 74 |
+
ULONG DialogueLevel;
|
| 75 |
+
} AM_AC3_DIALOGUE_LEVEL, *PAM_AC3_DIALOGUE_LEVEL;
|
| 76 |
+
|
| 77 |
+
typedef struct {
|
| 78 |
+
BOOL fLargeRoom;
|
| 79 |
+
} AM_AC3_ROOM_TYPE, *PAM_AC3_ROOM_TYPE;
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
// -----------------------------------------------------------------------
|
| 83 |
+
// subpicture definition for the AM_KSPROPSETID_DvdSubPic property set
|
| 84 |
+
// -----------------------------------------------------------------------
|
| 85 |
+
|
| 86 |
+
typedef enum {
|
| 87 |
+
AM_PROPERTY_DVDSUBPIC_PALETTE = 0,
|
| 88 |
+
AM_PROPERTY_DVDSUBPIC_HLI = 1,
|
| 89 |
+
AM_PROPERTY_DVDSUBPIC_COMPOSIT_ON = 2 // TRUE for subpicture is displayed
|
| 90 |
+
} AM_PROPERTY_DVDSUBPIC;
|
| 91 |
+
|
| 92 |
+
typedef struct _AM_DVD_YUV {
|
| 93 |
+
UCHAR Reserved;
|
| 94 |
+
UCHAR Y;
|
| 95 |
+
UCHAR U;
|
| 96 |
+
UCHAR V;
|
| 97 |
+
} AM_DVD_YUV, *PAM_DVD_YUV;
|
| 98 |
+
|
| 99 |
+
typedef struct _AM_PROPERTY_SPPAL {
|
| 100 |
+
AM_DVD_YUV sppal[16];
|
| 101 |
+
} AM_PROPERTY_SPPAL, *PAM_PROPERTY_SPPAL;
|
| 102 |
+
|
| 103 |
+
typedef struct _AM_COLCON {
|
| 104 |
+
UCHAR emph1col:4;
|
| 105 |
+
UCHAR emph2col:4;
|
| 106 |
+
UCHAR backcol:4;
|
| 107 |
+
UCHAR patcol:4;
|
| 108 |
+
UCHAR emph1con:4;
|
| 109 |
+
UCHAR emph2con:4;
|
| 110 |
+
UCHAR backcon:4;
|
| 111 |
+
UCHAR patcon:4;
|
| 112 |
+
|
| 113 |
+
} AM_COLCON, *PAM_COLCON;
|
| 114 |
+
|
| 115 |
+
typedef struct _AM_PROPERTY_SPHLI {
|
| 116 |
+
USHORT HLISS; //
|
| 117 |
+
USHORT Reserved;
|
| 118 |
+
ULONG StartPTM; // start presentation time in x/90000
|
| 119 |
+
ULONG EndPTM; // end PTM in x/90000
|
| 120 |
+
USHORT StartX;
|
| 121 |
+
USHORT StartY;
|
| 122 |
+
USHORT StopX;
|
| 123 |
+
USHORT StopY;
|
| 124 |
+
AM_COLCON ColCon; // color contrast description (4 bytes as given in HLI)
|
| 125 |
+
} AM_PROPERTY_SPHLI, *PAM_PROPERTY_SPHLI;
|
| 126 |
+
|
| 127 |
+
typedef BOOL AM_PROPERTY_COMPOSIT_ON, *PAM_PROPERTY_COMPOSIT_ON;
|
| 128 |
+
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
// -----------------------------------------------------------------------
|
| 132 |
+
// copy protection definitions
|
| 133 |
+
// -----------------------------------------------------------------------
|
| 134 |
+
|
| 135 |
+
// AM_UseNewCSSKey for the dwTypeSpecificFlags in IMediaSample2 to indicate
|
| 136 |
+
// the exact point in a stream after which to start applying a new CSS key.
|
| 137 |
+
// This is typically sent on an empty media sample just before attempting
|
| 138 |
+
// to renegotiate a CSS key.
|
| 139 |
+
#define AM_UseNewCSSKey 0x1
|
| 140 |
+
|
| 141 |
+
#define AM_ReverseBlockStart 0x2
|
| 142 |
+
#define AM_ReverseBlockEnd 0x4
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
//
|
| 146 |
+
// AM_KSPROPSETID_CopyProt property set definitions
|
| 147 |
+
//
|
| 148 |
+
typedef enum {
|
| 149 |
+
AM_PROPERTY_DVDCOPY_CHLG_KEY = 0x01,
|
| 150 |
+
AM_PROPERTY_DVDCOPY_DVD_KEY1 = 0x02,
|
| 151 |
+
AM_PROPERTY_DVDCOPY_DEC_KEY2 = 0x03,
|
| 152 |
+
AM_PROPERTY_DVDCOPY_TITLE_KEY = 0x04,
|
| 153 |
+
AM_PROPERTY_COPY_MACROVISION = 0x05,
|
| 154 |
+
AM_PROPERTY_DVDCOPY_REGION = 0x06,
|
| 155 |
+
AM_PROPERTY_DVDCOPY_SET_COPY_STATE = 0x07,
|
| 156 |
+
AM_PROPERTY_COPY_ANALOG_COMPONENT = 0x08, // GetOnly property, return data is a BOOL
|
| 157 |
+
AM_PROPERTY_COPY_DIGITAL_CP = 0x09,
|
| 158 |
+
AM_PROPERTY_COPY_DVD_SRM = 0x0a,
|
| 159 |
+
AM_PROPERTY_DVDCOPY_SUPPORTS_NEW_KEYCOUNT = 0x0b, // read only, BOOL
|
| 160 |
+
// gap
|
| 161 |
+
AM_PROPERTY_DVDCOPY_DISC_KEY = 0x80
|
| 162 |
+
} AM_PROPERTY_DVDCOPYPROT;
|
| 163 |
+
|
| 164 |
+
typedef enum _AM_DIGITAL_CP {
|
| 165 |
+
AM_DIGITAL_CP_OFF = 0,
|
| 166 |
+
AM_DIGITAL_CP_ON = 1,
|
| 167 |
+
AM_DIGITAL_CP_DVD_COMPLIANT = 2
|
| 168 |
+
} AM_DIGITAL_CP;
|
| 169 |
+
|
| 170 |
+
typedef struct _AM_DVDCOPY_CHLGKEY {
|
| 171 |
+
BYTE ChlgKey[10];
|
| 172 |
+
BYTE Reserved[2];
|
| 173 |
+
} AM_DVDCOPY_CHLGKEY, *PAM_DVDCOPY_CHLGKEY;
|
| 174 |
+
|
| 175 |
+
typedef struct _AM_DVDCOPY_BUSKEY {
|
| 176 |
+
BYTE BusKey[5];
|
| 177 |
+
BYTE Reserved[1];
|
| 178 |
+
} AM_DVDCOPY_BUSKEY, *PAM_DVDCOPY_BUSKEY;
|
| 179 |
+
|
| 180 |
+
typedef struct _AM_DVDCOPY_DISCKEY {
|
| 181 |
+
BYTE DiscKey[2048];
|
| 182 |
+
} AM_DVDCOPY_DISCKEY, *PAM_DVDCOPY_DISCKEY;
|
| 183 |
+
|
| 184 |
+
typedef struct AM_DVDCOPY_TITLEKEY {
|
| 185 |
+
ULONG KeyFlags;
|
| 186 |
+
ULONG Reserved1[2];
|
| 187 |
+
UCHAR TitleKey[6];
|
| 188 |
+
UCHAR Reserved2[2];
|
| 189 |
+
} AM_DVDCOPY_TITLEKEY, *PAM_DVDCOPY_TITLEKEY;
|
| 190 |
+
|
| 191 |
+
typedef struct _AM_COPY_MACROVISION {
|
| 192 |
+
ULONG MACROVISIONLevel;
|
| 193 |
+
} AM_COPY_MACROVISION, *PAM_COPY_MACROVISION;
|
| 194 |
+
|
| 195 |
+
typedef struct AM_DVDCOPY_SET_COPY_STATE {
|
| 196 |
+
ULONG DVDCopyState;
|
| 197 |
+
} AM_DVDCOPY_SET_COPY_STATE, *PAM_DVDCOPY_SET_COPY_STATE;
|
| 198 |
+
|
| 199 |
+
typedef enum {
|
| 200 |
+
AM_DVDCOPYSTATE_INITIALIZE = 0,
|
| 201 |
+
AM_DVDCOPYSTATE_INITIALIZE_TITLE = 1, // indicates we are starting a title
|
| 202 |
+
// key copy protection sequence
|
| 203 |
+
AM_DVDCOPYSTATE_AUTHENTICATION_NOT_REQUIRED = 2,
|
| 204 |
+
AM_DVDCOPYSTATE_AUTHENTICATION_REQUIRED = 3,
|
| 205 |
+
AM_DVDCOPYSTATE_DONE = 4
|
| 206 |
+
} AM_DVDCOPYSTATE;
|
| 207 |
+
|
| 208 |
+
typedef enum {
|
| 209 |
+
AM_MACROVISION_DISABLED = 0,
|
| 210 |
+
AM_MACROVISION_LEVEL1 = 1,
|
| 211 |
+
AM_MACROVISION_LEVEL2 = 2,
|
| 212 |
+
AM_MACROVISION_LEVEL3 = 3
|
| 213 |
+
} AM_COPY_MACROVISION_LEVEL, *PAM_COPY_MACROVISION_LEVEL;
|
| 214 |
+
|
| 215 |
+
|
| 216 |
+
// CSS region stucture
|
| 217 |
+
typedef struct _DVD_REGION {
|
| 218 |
+
UCHAR CopySystem;
|
| 219 |
+
UCHAR RegionData;
|
| 220 |
+
UCHAR SystemRegion;
|
| 221 |
+
UCHAR ResetCount;
|
| 222 |
+
} DVD_REGION, *PDVD_REGION;
|
| 223 |
+
|
| 224 |
+
//
|
| 225 |
+
// CGMS Copy Protection Flags
|
| 226 |
+
//
|
| 227 |
+
|
| 228 |
+
#define AM_DVD_CGMS_RESERVED_MASK 0x00000078
|
| 229 |
+
|
| 230 |
+
#define AM_DVD_CGMS_COPY_PROTECT_MASK 0x00000018
|
| 231 |
+
#define AM_DVD_CGMS_COPY_PERMITTED 0x00000000
|
| 232 |
+
#define AM_DVD_CGMS_COPY_ONCE 0x00000010
|
| 233 |
+
#define AM_DVD_CGMS_NO_COPY 0x00000018
|
| 234 |
+
|
| 235 |
+
#define AM_DVD_COPYRIGHT_MASK 0x00000040
|
| 236 |
+
#define AM_DVD_NOT_COPYRIGHTED 0x00000000
|
| 237 |
+
#define AM_DVD_COPYRIGHTED 0x00000040
|
| 238 |
+
|
| 239 |
+
#define AM_DVD_SECTOR_PROTECT_MASK 0x00000020
|
| 240 |
+
#define AM_DVD_SECTOR_NOT_PROTECTED 0x00000000
|
| 241 |
+
#define AM_DVD_SECTOR_PROTECTED 0x00000020
|
| 242 |
+
|
| 243 |
+
|
| 244 |
+
// -----------------------------------------------------------------------
|
| 245 |
+
// video format blocks
|
| 246 |
+
// -----------------------------------------------------------------------
|
| 247 |
+
|
| 248 |
+
enum AM_MPEG2Level {
|
| 249 |
+
AM_MPEG2Level_Low = 1,
|
| 250 |
+
AM_MPEG2Level_Main = 2,
|
| 251 |
+
AM_MPEG2Level_High1440 = 3,
|
| 252 |
+
AM_MPEG2Level_High = 4
|
| 253 |
+
};
|
| 254 |
+
|
| 255 |
+
enum AM_MPEG2Profile {
|
| 256 |
+
AM_MPEG2Profile_Simple = 1,
|
| 257 |
+
AM_MPEG2Profile_Main = 2,
|
| 258 |
+
AM_MPEG2Profile_SNRScalable = 3,
|
| 259 |
+
AM_MPEG2Profile_SpatiallyScalable = 4,
|
| 260 |
+
AM_MPEG2Profile_High = 5
|
| 261 |
+
};
|
| 262 |
+
|
| 263 |
+
#define AMINTERLACE_IsInterlaced 0x00000001 // if 0, other interlace bits are irrelevent
|
| 264 |
+
#define AMINTERLACE_1FieldPerSample 0x00000002 // else 2 fields per media sample
|
| 265 |
+
#define AMINTERLACE_Field1First 0x00000004 // else Field 2 is first; top field in PAL is field 1, top field in NTSC is field 2?
|
| 266 |
+
#define AMINTERLACE_UNUSED 0x00000008 //
|
| 267 |
+
#define AMINTERLACE_FieldPatternMask 0x00000030 // use this mask with AMINTERLACE_FieldPat*
|
| 268 |
+
#define AMINTERLACE_FieldPatField1Only 0x00000000 // stream never contains a Field2
|
| 269 |
+
#define AMINTERLACE_FieldPatField2Only 0x00000010 // stream never contains a Field1
|
| 270 |
+
#define AMINTERLACE_FieldPatBothRegular 0x00000020 // There will be a Field2 for every Field1 (required for Weave?)
|
| 271 |
+
#define AMINTERLACE_FieldPatBothIrregular 0x00000030 // Random pattern of Field1s and Field2s
|
| 272 |
+
#define AMINTERLACE_DisplayModeMask 0x000000c0
|
| 273 |
+
#define AMINTERLACE_DisplayModeBobOnly 0x00000000
|
| 274 |
+
#define AMINTERLACE_DisplayModeWeaveOnly 0x00000040
|
| 275 |
+
#define AMINTERLACE_DisplayModeBobOrWeave 0x00000080
|
| 276 |
+
|
| 277 |
+
#define AMCOPYPROTECT_RestrictDuplication 0x00000001 // duplication of this stream should be restricted
|
| 278 |
+
|
| 279 |
+
#define AMMPEG2_DoPanScan 0x00000001 //if set, the MPEG-2 video decoder should crop output image
|
| 280 |
+
// based on pan-scan vectors in picture_display_extension
|
| 281 |
+
// and change the picture aspect ratio accordingly.
|
| 282 |
+
#define AMMPEG2_DVDLine21Field1 0x00000002 //if set, the MPEG-2 decoder must be able to produce an output
|
| 283 |
+
// pin for DVD style closed caption data found in GOP layer of field 1
|
| 284 |
+
#define AMMPEG2_DVDLine21Field2 0x00000004 //if set, the MPEG-2 decoder must be able to produce an output
|
| 285 |
+
// pin for DVD style closed caption data found in GOP layer of field 2
|
| 286 |
+
#define AMMPEG2_SourceIsLetterboxed 0x00000008 //if set, indicates that black bars have been encoded in the top
|
| 287 |
+
// and bottom of the video.
|
| 288 |
+
#define AMMPEG2_FilmCameraMode 0x00000010 //if set, indicates "film mode" used for 625/50 content. If cleared,
|
| 289 |
+
// indicates that "camera mode" was used.
|
| 290 |
+
#define AMMPEG2_LetterboxAnalogOut 0x00000020 //if set and this stream is sent to an analog output, it should
|
| 291 |
+
// be letterboxed. Streams sent to VGA should be letterboxed only by renderers.
|
| 292 |
+
#define AMMPEG2_DSS_UserData 0x00000040 //if set, the MPEG-2 decoder must process DSS style user data
|
| 293 |
+
#define AMMPEG2_DVB_UserData 0x00000080 //if set, the MPEG-2 decoder must process DVB style user data
|
| 294 |
+
#define AMMPEG2_27MhzTimebase 0x00000100 //if set, the PTS,DTS timestamps advance at 27MHz rather than 90KHz
|
| 295 |
+
|
| 296 |
+
#define AMMPEG2_WidescreenAnalogOut 0x00000200 //if set and this stream is sent to an analog output, it should
|
| 297 |
+
// be in widescreen format (4x3 content should be centered on a 16x9 output).
|
| 298 |
+
// Streams sent to VGA should be widescreened only by renderers.
|
| 299 |
+
|
| 300 |
+
// PRESENT in dwReserved1 field in VIDEOINFOHEADER2
|
| 301 |
+
#define AMCONTROL_USED 0x00000001 // Used to test if these flags are supported. Set and test for AcceptMediaType.
|
| 302 |
+
// If rejected, then you cannot use the AMCONTROL flags (send 0 for dwReserved1)
|
| 303 |
+
#define AMCONTROL_PAD_TO_4x3 0x00000002 // if set means display the image in a 4x3 area
|
| 304 |
+
#define AMCONTROL_PAD_TO_16x9 0x00000004 // if set means display the image in a 16x9 area
|
| 305 |
+
#define AMCONTROL_COLORINFO_PRESENT 0x00000080 // if set, indicates DXVA color info is present in the upper (24) bits of the dwControlFlags
|
| 306 |
+
|
| 307 |
+
typedef struct tagVIDEOINFOHEADER2 {
|
| 308 |
+
RECT rcSource;
|
| 309 |
+
RECT rcTarget;
|
| 310 |
+
DWORD dwBitRate;
|
| 311 |
+
DWORD dwBitErrorRate;
|
| 312 |
+
REFERENCE_TIME AvgTimePerFrame;
|
| 313 |
+
DWORD dwInterlaceFlags; // use AMINTERLACE_* defines. Reject connection if undefined bits are not 0
|
| 314 |
+
DWORD dwCopyProtectFlags; // use AMCOPYPROTECT_* defines. Reject connection if undefined bits are not 0
|
| 315 |
+
DWORD dwPictAspectRatioX; // X dimension of picture aspect ratio, e.g. 16 for 16x9 display
|
| 316 |
+
DWORD dwPictAspectRatioY; // Y dimension of picture aspect ratio, e.g. 9 for 16x9 display
|
| 317 |
+
union {
|
| 318 |
+
DWORD dwControlFlags; // use AMCONTROL_* defines, use this from now on
|
| 319 |
+
DWORD dwReserved1; // for backward compatiblity (was "must be 0"; connection rejected otherwise)
|
| 320 |
+
};
|
| 321 |
+
DWORD dwReserved2; // must be 0; reject connection otherwise
|
| 322 |
+
BITMAPINFOHEADER bmiHeader;
|
| 323 |
+
} VIDEOINFOHEADER2;
|
| 324 |
+
|
| 325 |
+
typedef struct tagMPEG2VIDEOINFO {
|
| 326 |
+
VIDEOINFOHEADER2 hdr;
|
| 327 |
+
DWORD dwStartTimeCode; // ?? not used for DVD ??
|
| 328 |
+
DWORD cbSequenceHeader; // is 0 for DVD (no sequence header)
|
| 329 |
+
DWORD dwProfile; // use enum MPEG2Profile
|
| 330 |
+
DWORD dwLevel; // use enum MPEG2Level
|
| 331 |
+
DWORD dwFlags; // use AMMPEG2_* defines. Reject connection if undefined bits are not 0
|
| 332 |
+
DWORD dwSequenceHeader[1]; // DWORD instead of Byte for alignment purposes
|
| 333 |
+
// For MPEG-2, if a sequence_header is included, the sequence_extension
|
| 334 |
+
// should also be included
|
| 335 |
+
} MPEG2VIDEOINFO;
|
| 336 |
+
|
| 337 |
+
#define SIZE_MPEG2VIDEOINFO(pv) (FIELD_OFFSET(MPEG2VIDEOINFO, dwSequenceHeader[0]) + (pv)->cbSequenceHeader)
|
| 338 |
+
|
| 339 |
+
// do not use
|
| 340 |
+
#define MPEG1_SEQUENCE_INFO(pv) ((const BYTE *)(pv)->bSequenceHeader)
|
| 341 |
+
|
| 342 |
+
// use this macro instead, the previous only works for MPEG1VIDEOINFO structures
|
| 343 |
+
#define MPEG2_SEQUENCE_INFO(pv) ((const BYTE *)(pv)->dwSequenceHeader)
|
| 344 |
+
|
| 345 |
+
|
| 346 |
+
//===================================================================================
|
| 347 |
+
// flags for dwTypeSpecificFlags in AM_SAMPLE2_PROPERTIES which define type specific
|
| 348 |
+
// data in IMediaSample2
|
| 349 |
+
//===================================================================================
|
| 350 |
+
|
| 351 |
+
#define AM_VIDEO_FLAG_FIELD_MASK 0x0003L // use this mask to check whether the sample is field1 or field2 or frame
|
| 352 |
+
#define AM_VIDEO_FLAG_INTERLEAVED_FRAME 0x0000L // the sample is a frame (remember to use AM_VIDEO_FLAG_FIELD_MASK when using this)
|
| 353 |
+
#define AM_VIDEO_FLAG_FIELD1 0x0001L // the sample is field1 (remember to use AM_VIDEO_FLAG_FIELD_MASK when using this)
|
| 354 |
+
#define AM_VIDEO_FLAG_FIELD2 0x0002L // the sample is the field2 (remember to use AM_VIDEO_FLAG_FIELD_MASK when using this)
|
| 355 |
+
#define AM_VIDEO_FLAG_FIELD1FIRST 0x0004L // if set means display field1 first, else display field2 first.
|
| 356 |
+
// this bit is irrelavant for 1FieldPerSample mode
|
| 357 |
+
#define AM_VIDEO_FLAG_WEAVE 0x0008L // if set use bob display mode else weave
|
| 358 |
+
#define AM_VIDEO_FLAG_IPB_MASK 0x0030L // use this mask to check whether the sample is I, P or B
|
| 359 |
+
#define AM_VIDEO_FLAG_I_SAMPLE 0x0000L // I Sample (remember to use AM_VIDEO_FLAG_IPB_MASK when using this)
|
| 360 |
+
#define AM_VIDEO_FLAG_P_SAMPLE 0x0010L // P Sample (remember to use AM_VIDEO_FLAG_IPB_MASK when using this)
|
| 361 |
+
#define AM_VIDEO_FLAG_B_SAMPLE 0x0020L // B Sample (remember to use AM_VIDEO_FLAG_IPB_MASK when using this)
|
| 362 |
+
#define AM_VIDEO_FLAG_REPEAT_FIELD 0x0040L // if set means display the field which has been displayed first again after displaying
|
| 363 |
+
// both fields first. This bit is irrelavant for 1FieldPerSample mode
|
| 364 |
+
|
| 365 |
+
// -----------------------------------------------------------------------
|
| 366 |
+
// AM_KSPROPSETID_DvdKaraoke property set definitions
|
| 367 |
+
// -----------------------------------------------------------------------
|
| 368 |
+
|
| 369 |
+
typedef struct tagAM_DvdKaraokeData
|
| 370 |
+
{
|
| 371 |
+
DWORD dwDownmix; // bitwise OR of AM_DvdKaraoke_Downmix flags
|
| 372 |
+
DWORD dwSpeakerAssignment; // AM_DvdKaraoke_SpeakerAssignment
|
| 373 |
+
} AM_DvdKaraokeData;
|
| 374 |
+
|
| 375 |
+
typedef enum {
|
| 376 |
+
AM_PROPERTY_DVDKARAOKE_ENABLE = 0, // BOOL
|
| 377 |
+
AM_PROPERTY_DVDKARAOKE_DATA = 1,
|
| 378 |
+
} AM_PROPERTY_DVDKARAOKE;
|
| 379 |
+
|
| 380 |
+
// -----------------------------------------------------------------------
|
| 381 |
+
// AM_KSPROPSETID_TSRateChange property set definitions for time stamp
|
| 382 |
+
// rate changes.
|
| 383 |
+
// -----------------------------------------------------------------------
|
| 384 |
+
|
| 385 |
+
typedef enum {
|
| 386 |
+
AM_RATE_SimpleRateChange = 1, // rw, use AM_SimpleRateChange
|
| 387 |
+
AM_RATE_ExactRateChange = 2, // rw, use AM_ExactRateChange
|
| 388 |
+
AM_RATE_MaxFullDataRate = 3, // r, use AM_MaxFullDataRate
|
| 389 |
+
AM_RATE_Step = 4, // w, use AM_Step
|
| 390 |
+
AM_RATE_UseRateVersion = 5, // w, use WORD
|
| 391 |
+
AM_RATE_QueryFullFrameRate =6, // r, use AM_QueryRate
|
| 392 |
+
AM_RATE_QueryLastRateSegPTS =7, // r, use REFERENCE_TIME
|
| 393 |
+
AM_RATE_CorrectTS = 8, // w, use LONG
|
| 394 |
+
AM_RATE_ReverseMaxFullDataRate = 9, // r, use AM_MaxFullDataRate
|
| 395 |
+
AM_RATE_ResetOnTimeDisc = 10, // rw, use DWORD - indicates supports new 'timeline reset on time discontinuity' sample
|
| 396 |
+
AM_RATE_QueryMapping = 11
|
| 397 |
+
} AM_PROPERTY_TS_RATE_CHANGE;
|
| 398 |
+
|
| 399 |
+
// -------------------------------------------------------------------
|
| 400 |
+
// AM_KSPROPSETID_DVD_RateChange property set definitions for new DVD
|
| 401 |
+
// rate change scheme.
|
| 402 |
+
// -------------------------------------------------------------------
|
| 403 |
+
|
| 404 |
+
typedef enum {
|
| 405 |
+
AM_RATE_ChangeRate = 1, // w, use AM_DVD_ChangeRate
|
| 406 |
+
AM_RATE_FullDataRateMax = 2, // r, use AM_MaxFullDataRate
|
| 407 |
+
AM_RATE_ReverseDecode = 3, // r, use LONG
|
| 408 |
+
AM_RATE_DecoderPosition = 4, // r, use AM_DVD_DecoderPosition
|
| 409 |
+
AM_RATE_DecoderVersion = 5 // r, use LONG
|
| 410 |
+
} AM_PROPERTY_DVD_RATE_CHANGE;
|
| 411 |
+
|
| 412 |
+
typedef struct {
|
| 413 |
+
// this is the simplest mechanism to set a time stamp rate change on
|
| 414 |
+
// a filter (simplest for the person setting the rate change, harder
|
| 415 |
+
// for the filter doing the rate change).
|
| 416 |
+
REFERENCE_TIME StartTime; //stream time at which to start this rate
|
| 417 |
+
LONG Rate; //new rate * 10000 (decimal)
|
| 418 |
+
} AM_SimpleRateChange;
|
| 419 |
+
|
| 420 |
+
typedef struct {
|
| 421 |
+
LONG lMaxForwardFullFrame ; // rate * 10000
|
| 422 |
+
LONG lMaxReverseFullFrame ; // rate * 10000
|
| 423 |
+
} AM_QueryRate ;
|
| 424 |
+
|
| 425 |
+
typedef struct {
|
| 426 |
+
REFERENCE_TIME OutputZeroTime; //input TS that maps to zero output TS
|
| 427 |
+
LONG Rate; //new rate * 10000 (decimal)
|
| 428 |
+
} AM_ExactRateChange;
|
| 429 |
+
|
| 430 |
+
typedef LONG AM_MaxFullDataRate; //rate * 10000 (decimal)
|
| 431 |
+
|
| 432 |
+
typedef DWORD AM_Step; // number of frame to step
|
| 433 |
+
|
| 434 |
+
// New rate change property set, structs. enums etc.
|
| 435 |
+
typedef struct {
|
| 436 |
+
REFERENCE_TIME StartInTime; // stream time (input) at which to start decoding at this rate
|
| 437 |
+
REFERENCE_TIME StartOutTime; // reference time (output) at which to start showing at this rate
|
| 438 |
+
LONG Rate; // new rate * 10000 (decimal)
|
| 439 |
+
} AM_DVD_ChangeRate ;
|
| 440 |
+
|
| 441 |
+
typedef LONGLONG AM_DVD_DecoderPosition ;
|
| 442 |
+
|
| 443 |
+
typedef enum {
|
| 444 |
+
DVD_DIR_FORWARD = 0,
|
| 445 |
+
DVD_DIR_BACKWARD = 1
|
| 446 |
+
} DVD_PLAY_DIRECTION ;
|
| 447 |
+
|
| 448 |
+
#ifdef __cplusplus
|
| 449 |
+
}
|
| 450 |
+
#endif // __cplusplus
|
| 451 |
+
|
| 452 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 453 |
+
#pragma endregion
|
| 454 |
+
|
| 455 |
+
#endif // __DVDMEDIA_H__
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dvp.h
ADDED
|
@@ -0,0 +1,977 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*==========================================================================;
|
| 2 |
+
*
|
| 3 |
+
* Copyright (C) Microsoft Corporation. All Rights Reserved.
|
| 4 |
+
*
|
| 5 |
+
* File: dvp.h
|
| 6 |
+
* Content: DirectDrawVideoPort include file
|
| 7 |
+
*
|
| 8 |
+
***************************************************************************/
|
| 9 |
+
|
| 10 |
+
#ifndef __DVP_INCLUDED__
|
| 11 |
+
#define __DVP_INCLUDED__
|
| 12 |
+
#include <winapifamily.h>
|
| 13 |
+
|
| 14 |
+
#pragma region Desktop Family
|
| 15 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
/*
|
| 19 |
+
* GUIDS used by DirectDrawVideoPort objects
|
| 20 |
+
*/
|
| 21 |
+
#if defined( _WIN32 ) && (!defined( _NO_COM ) || defined( DEFINE_GUID ))
|
| 22 |
+
DEFINE_GUID( IID_IDDVideoPortContainer, 0x6C142760,0xA733,0x11CE,0xA5,0x21,0x00,0x20,0xAF,0x0B,0xE5,0x60 );
|
| 23 |
+
DEFINE_GUID( IID_IDirectDrawVideoPort, 0xB36D93E0,0x2B43,0x11CF,0xA2,0xDE,0x00,0xAA,0x00,0xB9,0x33,0x56 );
|
| 24 |
+
DEFINE_GUID( IID_IDirectDrawVideoPortNotify, 0xA655FB94,0x0589,0x4E57,0xB3,0x33,0x56,0x7A,0x89,0x46,0x8C,0x88);
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
DEFINE_GUID( DDVPTYPE_E_HREFH_VREFH, 0x54F39980L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8);
|
| 29 |
+
DEFINE_GUID( DDVPTYPE_E_HREFH_VREFL, 0x92783220L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8);
|
| 30 |
+
DEFINE_GUID( DDVPTYPE_E_HREFL_VREFH, 0xA07A02E0L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8);
|
| 31 |
+
DEFINE_GUID( DDVPTYPE_E_HREFL_VREFL, 0xE09C77E0L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8);
|
| 32 |
+
DEFINE_GUID( DDVPTYPE_CCIR656, 0xFCA326A0L,0xDA60,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8);
|
| 33 |
+
DEFINE_GUID( DDVPTYPE_BROOKTREE, 0x1352A560L,0xDA61,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8);
|
| 34 |
+
DEFINE_GUID( DDVPTYPE_PHILIPS, 0x332CF160L,0xDA61,0x11CF,0x9B,0x06,0x00,0xA0,0xC9,0x03,0xA3,0xB8);
|
| 35 |
+
#endif
|
| 36 |
+
|
| 37 |
+
#ifndef GUID_DEFS_ONLY
|
| 38 |
+
|
| 39 |
+
#if defined( _WIN32 ) && !defined( _NO_COM )
|
| 40 |
+
#define COM_NO_WINDOWS_H
|
| 41 |
+
#include <objbase.h>
|
| 42 |
+
#else
|
| 43 |
+
#define IUnknown void
|
| 44 |
+
#endif
|
| 45 |
+
|
| 46 |
+
/*
|
| 47 |
+
* These definitions are required to allow polymorphic structure members (i.e. those
|
| 48 |
+
* that are referred to both as DWORDs and as pointers) to resolve into a type
|
| 49 |
+
* of correct size to hold the largest of those two types (i.e. pointer) on 64 bit
|
| 50 |
+
* systems. For 32 bit environments, ULONG_PTR resolves to a DWORD.
|
| 51 |
+
*/
|
| 52 |
+
#ifndef MAXULONG_PTR
|
| 53 |
+
#define ULONG_PTR DWORD
|
| 54 |
+
#endif //MAXULONG_PTR
|
| 55 |
+
|
| 56 |
+
#ifdef __cplusplus
|
| 57 |
+
extern "C" {
|
| 58 |
+
#endif
|
| 59 |
+
|
| 60 |
+
/*============================================================================
|
| 61 |
+
*
|
| 62 |
+
* DirectDraw Structures
|
| 63 |
+
*
|
| 64 |
+
* Various structures used to invoke DirectDraw.
|
| 65 |
+
*
|
| 66 |
+
*==========================================================================*/
|
| 67 |
+
|
| 68 |
+
struct IDirectDraw;
|
| 69 |
+
struct IDirectDrawSurface;
|
| 70 |
+
struct IDirectDrawPalette;
|
| 71 |
+
struct IDirectDrawClipper;
|
| 72 |
+
|
| 73 |
+
typedef struct IDDVideoPortContainer FAR *LPDDVIDEOPORTCONTAINER;
|
| 74 |
+
typedef struct IDirectDrawVideoPort FAR *LPDIRECTDRAWVIDEOPORT;
|
| 75 |
+
typedef struct IDirectDrawVideoPortNotify FAR *LPDIRECTDRAWVIDEOPORTNOTIFY;
|
| 76 |
+
|
| 77 |
+
typedef struct _DDVIDEOPORTCONNECT FAR *LPDDVIDEOPORTCONNECT;
|
| 78 |
+
typedef struct _DDVIDEOPORTCAPS FAR *LPDDVIDEOPORTCAPS;
|
| 79 |
+
typedef struct _DDVIDEOPORTDESC FAR *LPDDVIDEOPORTDESC;
|
| 80 |
+
typedef struct _DDVIDEOPORTINFO FAR *LPDDVIDEOPORTINFO;
|
| 81 |
+
typedef struct _DDVIDEOPORTBANDWIDTH FAR *LPDDVIDEOPORTBANDWIDTH;
|
| 82 |
+
typedef struct _DDVIDEOPORTSTATUS FAR *LPDDVIDEOPORTSTATUS;
|
| 83 |
+
typedef struct _DDVIDEOPORTNOTIFY FAR *LPDDVIDEOPORTNOTIFY;
|
| 84 |
+
|
| 85 |
+
typedef struct IDDVideoPortContainerVtbl DDVIDEOPORTCONTAINERCALLBACKS;
|
| 86 |
+
typedef struct IDirectDrawVideoPortVtbl DIRECTDRAWVIDEOPORTCALLBACKS;
|
| 87 |
+
typedef struct IDirectDrawVideoPortNotifyVtbl DIRECTDRAWVIDEOPORTNOTIFYCALLBACKS;
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
/*
|
| 91 |
+
* API's
|
| 92 |
+
*/
|
| 93 |
+
typedef HRESULT (FAR PASCAL * LPDDENUMVIDEOCALLBACK)(LPDDVIDEOPORTCAPS, LPVOID);
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
/*
|
| 97 |
+
* INTERACES FOLLOW:
|
| 98 |
+
* IDirectDrawVideoPort
|
| 99 |
+
* IVideoPort
|
| 100 |
+
*/
|
| 101 |
+
|
| 102 |
+
/*
|
| 103 |
+
* IDirectDrawVideoPortContainer
|
| 104 |
+
*/
|
| 105 |
+
#if defined( _WIN32 ) && !defined( _NO_COM )
|
| 106 |
+
#undef INTERFACE
|
| 107 |
+
#define INTERFACE IDDVideoPortContainer
|
| 108 |
+
DECLARE_INTERFACE_( IDDVideoPortContainer, IUnknown )
|
| 109 |
+
{
|
| 110 |
+
/*** IUnknown methods ***/
|
| 111 |
+
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE;
|
| 112 |
+
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
| 113 |
+
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
| 114 |
+
/*** IDirectDrawVideoPort methods ***/
|
| 115 |
+
STDMETHOD(CreateVideoPort)(THIS_ DWORD, LPDDVIDEOPORTDESC, LPDIRECTDRAWVIDEOPORT FAR *, IUnknown FAR *) PURE;
|
| 116 |
+
STDMETHOD(EnumVideoPorts)(THIS_ DWORD, LPDDVIDEOPORTCAPS, LPVOID,LPDDENUMVIDEOCALLBACK ) PURE;
|
| 117 |
+
STDMETHOD(GetVideoPortConnectInfo)(THIS_ DWORD, _Inout_ LPDWORD pcInfo, _Out_writes_to_opt_(*pcInfo, *pcInfo) LPDDVIDEOPORTCONNECT ) PURE;
|
| 118 |
+
STDMETHOD(QueryVideoPortStatus)(THIS_ DWORD, LPDDVIDEOPORTSTATUS ) PURE;
|
| 119 |
+
};
|
| 120 |
+
|
| 121 |
+
#if !defined(__cplusplus) || defined(CINTERFACE)
|
| 122 |
+
#define IVideoPortContainer_QueryInterface(p, a, b) (p)->lpVtbl->QueryInterface(p, a, b)
|
| 123 |
+
#define IVideoPortContainer_AddRef(p) (p)->lpVtbl->AddRef(p)
|
| 124 |
+
#define IVideoPortContainer_Release(p) (p)->lpVtbl->Release(p)
|
| 125 |
+
#define IVideoPortContainer_CreateVideoPort(p, a, b, c, d) (p)->lpVtbl->CreateVideoPort(p, a, b, c, d)
|
| 126 |
+
#define IVideoPortContainer_EnumVideoPorts(p, a, b, c, d) (p)->lpVtbl->EnumVideoPorts(p, a, b, c, d)
|
| 127 |
+
#define IVideoPortContainer_GetVideoPortConnectInfo(p, a, b, c) (p)->lpVtbl->GetVideoPortConnectInfo(p, a, b, c)
|
| 128 |
+
#define IVideoPortContainer_QueryVideoPortStatus(p, a, b) (p)->lpVtbl->QueryVideoPortStatus(p, a, b)
|
| 129 |
+
#else
|
| 130 |
+
#define IVideoPortContainer_QueryInterface(p, a, b) (p)->QueryInterface(a, b)
|
| 131 |
+
#define IVideoPortContainer_AddRef(p) (p)->AddRef()
|
| 132 |
+
#define IVideoPortContainer_Release(p) (p)->Release()
|
| 133 |
+
#define IVideoPortContainer_CreateVideoPort(p, a, b, c, d) (p)->CreateVideoPort(a, b, c, d)
|
| 134 |
+
#define IVideoPortContainer_EnumVideoPorts(p, a, b, c, d) (p)->EnumVideoPorts(a, b, c, d)
|
| 135 |
+
#define IVideoPortContainer_GetVideoPortConnectInfo(p, a, b, c) (p)->GetVideoPortConnectInfo(a, b, c)
|
| 136 |
+
#define IVideoPortContainer_QueryVideoPortStatus(p, a, b) (p)->QueryVideoPortStatus(a, b)
|
| 137 |
+
#endif
|
| 138 |
+
|
| 139 |
+
#endif
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
/*
|
| 143 |
+
* IDirectDrawVideoPort
|
| 144 |
+
*/
|
| 145 |
+
#if defined( _WIN32 ) && !defined( _NO_COM )
|
| 146 |
+
#undef INTERFACE
|
| 147 |
+
#define INTERFACE IDirectDrawVideoPort
|
| 148 |
+
DECLARE_INTERFACE_( IDirectDrawVideoPort, IUnknown )
|
| 149 |
+
{
|
| 150 |
+
/*** IUnknown methods ***/
|
| 151 |
+
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE;
|
| 152 |
+
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
| 153 |
+
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
| 154 |
+
/*** IVideoPort methods ***/
|
| 155 |
+
STDMETHOD(Flip)(THIS_ LPDIRECTDRAWSURFACE, DWORD) PURE;
|
| 156 |
+
STDMETHOD(GetBandwidthInfo)(THIS_ LPDDPIXELFORMAT, DWORD, DWORD, DWORD, LPDDVIDEOPORTBANDWIDTH) PURE;
|
| 157 |
+
STDMETHOD(GetColorControls)(THIS_ LPDDCOLORCONTROL) PURE;
|
| 158 |
+
STDMETHOD(GetInputFormats)(THIS_ LPDWORD lpNumFormats, _Out_writes_to_opt_(*lpNumFormats, *lpNumFormats) LPDDPIXELFORMAT, DWORD) PURE;
|
| 159 |
+
STDMETHOD(GetOutputFormats)(THIS_ LPDDPIXELFORMAT, LPDWORD lpNumFormats, _Out_writes_to_opt_(*lpNumFormats, *lpNumFormats) LPDDPIXELFORMAT, DWORD) PURE;
|
| 160 |
+
STDMETHOD(GetFieldPolarity)(THIS_ LPBOOL) PURE;
|
| 161 |
+
STDMETHOD(GetVideoLine)(THIS_ LPDWORD) PURE;
|
| 162 |
+
STDMETHOD(GetVideoSignalStatus)(THIS_ LPDWORD) PURE;
|
| 163 |
+
STDMETHOD(SetColorControls)(THIS_ LPDDCOLORCONTROL) PURE;
|
| 164 |
+
STDMETHOD(SetTargetSurface)(THIS_ LPDIRECTDRAWSURFACE, DWORD) PURE;
|
| 165 |
+
STDMETHOD(StartVideo)(THIS_ LPDDVIDEOPORTINFO) PURE;
|
| 166 |
+
STDMETHOD(StopVideo)(THIS) PURE;
|
| 167 |
+
STDMETHOD(UpdateVideo)(THIS_ LPDDVIDEOPORTINFO) PURE;
|
| 168 |
+
STDMETHOD(WaitForSync)(THIS_ DWORD, DWORD, DWORD) PURE;
|
| 169 |
+
};
|
| 170 |
+
|
| 171 |
+
#if !defined(__cplusplus) || defined(CINTERFACE)
|
| 172 |
+
#define IVideoPort_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
| 173 |
+
#define IVideoPort_AddRef(p) (p)->lpVtbl->AddRef(p)
|
| 174 |
+
#define IVideoPort_Release(p) (p)->lpVtbl->Release(p)
|
| 175 |
+
#define IVideoPort_SetTargetSurface(p,a,b) (p)->lpVtbl->SetTargetSurface(p,a,b)
|
| 176 |
+
#define IVideoPort_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
|
| 177 |
+
#define IVideoPort_GetBandwidthInfo(p,a,b,c,d,e) (p)->lpVtbl->GetBandwidthInfo(p,a,b,c,d,e)
|
| 178 |
+
#define IVideoPort_GetColorControls(p,a) (p)->lpVtbl->GetColorControls(p,a)
|
| 179 |
+
#define IVideoPort_GetInputFormats(p,a,b,c) (p)->lpVtbl->GetInputFormats(p,a,b,c)
|
| 180 |
+
#define IVideoPort_GetOutputFormats(p,a,b,c,d) (p)->lpVtbl->GetOutputFormats(p,a,b,c,d)
|
| 181 |
+
#define IVideoPort_GetFieldPolarity(p,a) (p)->lpVtbl->GetFieldPolarity(p,a)
|
| 182 |
+
#define IVideoPort_GetVideoLine(p,a) (p)->lpVtbl->GetVideoLine(p,a)
|
| 183 |
+
#define IVideoPort_GetVideoSignalStatus(p,a) (p)->lpVtbl->GetVideoSignalStatus(p,a)
|
| 184 |
+
#define IVideoPort_SetColorControls(p,a) (p)->lpVtbl->SetColorControls(p,a)
|
| 185 |
+
#define IVideoPort_StartVideo(p,a) (p)->lpVtbl->StartVideo(p,a)
|
| 186 |
+
#define IVideoPort_StopVideo(p) (p)->lpVtbl->StopVideo(p)
|
| 187 |
+
#define IVideoPort_UpdateVideo(p,a) (p)->lpVtbl->UpdateVideo(p,a)
|
| 188 |
+
#define IVideoPort_WaitForSync(p,a,b,c) (p)->lpVtbl->WaitForSync(p,a,b,c)
|
| 189 |
+
#else
|
| 190 |
+
#define IVideoPort_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
| 191 |
+
#define IVideoPort_AddRef(p) (p)->AddRef()
|
| 192 |
+
#define IVideoPort_Release(p) (p)->Release()
|
| 193 |
+
#define IVideoPort_SetTargetSurface(p,a,b) (p)->SetTargetSurface(a,b)
|
| 194 |
+
#define IVideoPort_Flip(p,a,b) (p)->Flip(a,b)
|
| 195 |
+
#define IVideoPort_GetBandwidthInfo(p,a,b,c,d,e) (p)->GetBandwidthInfo(a,b,c,d,e)
|
| 196 |
+
#define IVideoPort_GetColorControls(p,a) (p)->GetColorControls(a)
|
| 197 |
+
#define IVideoPort_GetInputFormats(p,a,b,c) (p)->GetInputFormats(a,b,c)
|
| 198 |
+
#define IVideoPort_GetOutputFormats(p,a,b,c,d) (p)->GetOutputFormats(a,b,c,d)
|
| 199 |
+
#define IVideoPort_GetFieldPolarity(p,a) (p)->GetFieldPolarity(a)
|
| 200 |
+
#define IVideoPort_GetVideoLine(p,a) (p)->GetVideoLine(a)
|
| 201 |
+
#define IVideoPort_GetVideoSignalStatus(p,a) (p)->GetVideoSignalStatus(a)
|
| 202 |
+
#define IVideoPort_SetColorControls(p,a) (p)->SetColorControls(a)
|
| 203 |
+
#define IVideoPort_StartVideo(p,a) (p)->StartVideo(a)
|
| 204 |
+
#define IVideoPort_StopVideo(p) (p)->StopVideo()
|
| 205 |
+
#define IVideoPort_UpdateVideo(p,a) (p)->UpdateVideo(a)
|
| 206 |
+
#define IVideoPort_WaitForSync(p,a,b,c) (p)->WaitForSync(a,b,c)
|
| 207 |
+
#endif
|
| 208 |
+
|
| 209 |
+
#endif
|
| 210 |
+
|
| 211 |
+
/*
|
| 212 |
+
* IDirectDrawVideoPort
|
| 213 |
+
*/
|
| 214 |
+
#if (_WIN32_WINNT >= _WIN32_WINNT_WINXP)
|
| 215 |
+
#if defined( _WIN32 ) && !defined( _NO_COM )
|
| 216 |
+
#undef INTERFACE
|
| 217 |
+
#define INTERFACE IDirectDrawVideoPortNotify
|
| 218 |
+
DECLARE_INTERFACE_( IDirectDrawVideoPortNotify, IUnknown )
|
| 219 |
+
{
|
| 220 |
+
/*** IUnknown methods ***/
|
| 221 |
+
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj) PURE;
|
| 222 |
+
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
| 223 |
+
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
| 224 |
+
/*** IVideoPort methods ***/
|
| 225 |
+
STDMETHOD(AcquireNotification)(THIS_ HANDLE *, LPDDVIDEOPORTNOTIFY) PURE;
|
| 226 |
+
STDMETHOD(ReleaseNotification)(THIS_ HANDLE) PURE;
|
| 227 |
+
};
|
| 228 |
+
|
| 229 |
+
#if !defined(__cplusplus) || defined(CINTERFACE)
|
| 230 |
+
#define IVideoPortNotify_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
| 231 |
+
#define IVideoPortNotify_AddRef(p) (p)->lpVtbl->AddRef(p)
|
| 232 |
+
#define IVideoPortNotify_Release(p) (p)->lpVtbl->Release(p)
|
| 233 |
+
#define IVideoPortNotify_AcquireNotification(p,a,b) (p)->lpVtbl->AcquireNotification(p,a,b)
|
| 234 |
+
#define IVideoPortNotify_ReleaseNotification(p,a) (p)->lpVtbl->ReleaseNotification(p,a)
|
| 235 |
+
#else
|
| 236 |
+
#define IVideoPortNotify_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
| 237 |
+
#define IVideoPortNotify_AddRef(p) (p)->AddRef()
|
| 238 |
+
#define IVideoPortNotify_Release(p) (p)->Release()
|
| 239 |
+
#define IVideoPortNotify_AcquireNotification(p,a,b) (p)->lpVtbl->AcquireNotification(a,b)
|
| 240 |
+
#define IVideoPortNotify_ReleaseNotification(p,a) (p)->lpVtbl->ReleaseNotification(a)
|
| 241 |
+
#endif
|
| 242 |
+
|
| 243 |
+
#endif
|
| 244 |
+
#endif
|
| 245 |
+
|
| 246 |
+
/*
|
| 247 |
+
* DDVIDEOPORTCONNECT
|
| 248 |
+
*/
|
| 249 |
+
typedef struct _DDVIDEOPORTCONNECT
|
| 250 |
+
{
|
| 251 |
+
DWORD dwSize; // size of the DDVIDEOPORTCONNECT structure
|
| 252 |
+
DWORD dwPortWidth; // Width of the video port
|
| 253 |
+
GUID guidTypeID; // Description of video port connection
|
| 254 |
+
DWORD dwFlags; // Connection flags
|
| 255 |
+
ULONG_PTR dwReserved1; // Reserved, set to zero.
|
| 256 |
+
} DDVIDEOPORTCONNECT;
|
| 257 |
+
|
| 258 |
+
|
| 259 |
+
/*
|
| 260 |
+
* DDVIDEOPORTCAPS
|
| 261 |
+
*/
|
| 262 |
+
typedef struct _DDVIDEOPORTCAPS
|
| 263 |
+
{
|
| 264 |
+
DWORD dwSize; // size of the DDVIDEOPORTCAPS structure
|
| 265 |
+
DWORD dwFlags; // indicates which fields contain data
|
| 266 |
+
DWORD dwMaxWidth; // max width of the video port field
|
| 267 |
+
DWORD dwMaxVBIWidth; // max width of the VBI data
|
| 268 |
+
DWORD dwMaxHeight; // max height of the video port field
|
| 269 |
+
DWORD dwVideoPortID; // Video port ID (0 - (dwMaxVideoPorts -1))
|
| 270 |
+
DWORD dwCaps; // Video port capabilities
|
| 271 |
+
DWORD dwFX; // More video port capabilities
|
| 272 |
+
DWORD dwNumAutoFlipSurfaces; // Max number of autoflippable surfaces allowed
|
| 273 |
+
DWORD dwAlignVideoPortBoundary; // Byte restriction of placement within the surface
|
| 274 |
+
DWORD dwAlignVideoPortPrescaleWidth;// Byte restriction of width after prescaling
|
| 275 |
+
DWORD dwAlignVideoPortCropBoundary; // Byte restriction of left cropping
|
| 276 |
+
DWORD dwAlignVideoPortCropWidth; // Byte restriction of cropping width
|
| 277 |
+
DWORD dwPreshrinkXStep; // Width can be shrunk in steps of 1/x
|
| 278 |
+
DWORD dwPreshrinkYStep; // Height can be shrunk in steps of 1/x
|
| 279 |
+
DWORD dwNumVBIAutoFlipSurfaces; // Max number of VBI autoflippable surfaces allowed
|
| 280 |
+
DWORD dwNumPreferredAutoflip; // Optimal number of autoflippable surfaces for hardware
|
| 281 |
+
WORD wNumFilterTapsX; // Number of taps the prescaler uses in the X direction (0 - no prescale, 1 - replication, etc.)
|
| 282 |
+
WORD wNumFilterTapsY; // Number of taps the prescaler uses in the Y direction (0 - no prescale, 1 - replication, etc.)
|
| 283 |
+
} DDVIDEOPORTCAPS;
|
| 284 |
+
|
| 285 |
+
/*
|
| 286 |
+
* The dwMaxWidth and dwMaxVBIWidth members are valid
|
| 287 |
+
*/
|
| 288 |
+
#define DDVPD_WIDTH 0x00000001l
|
| 289 |
+
|
| 290 |
+
/*
|
| 291 |
+
* The dwMaxHeight member is valid
|
| 292 |
+
*/
|
| 293 |
+
#define DDVPD_HEIGHT 0x00000002l
|
| 294 |
+
|
| 295 |
+
/*
|
| 296 |
+
* The dwVideoPortID member is valid
|
| 297 |
+
*/
|
| 298 |
+
#define DDVPD_ID 0x00000004l
|
| 299 |
+
|
| 300 |
+
/*
|
| 301 |
+
* The dwCaps member is valid
|
| 302 |
+
*/
|
| 303 |
+
#define DDVPD_CAPS 0x00000008l
|
| 304 |
+
|
| 305 |
+
/*
|
| 306 |
+
* The dwFX member is valid
|
| 307 |
+
*/
|
| 308 |
+
#define DDVPD_FX 0x00000010l
|
| 309 |
+
|
| 310 |
+
/*
|
| 311 |
+
* The dwNumAutoFlipSurfaces member is valid
|
| 312 |
+
*/
|
| 313 |
+
#define DDVPD_AUTOFLIP 0x00000020l
|
| 314 |
+
|
| 315 |
+
/*
|
| 316 |
+
* All of the alignment members are valid
|
| 317 |
+
*/
|
| 318 |
+
#define DDVPD_ALIGN 0x00000040l
|
| 319 |
+
|
| 320 |
+
/*
|
| 321 |
+
* The dwNumPreferredAutoflip member is valid
|
| 322 |
+
*/
|
| 323 |
+
#define DDVPD_PREFERREDAUTOFLIP 0x00000080l
|
| 324 |
+
|
| 325 |
+
/*
|
| 326 |
+
* The wNumFilterTapsX and wNumFilterTapsY fields are valid
|
| 327 |
+
*/
|
| 328 |
+
#define DDVPD_FILTERQUALITY 0x00000100l
|
| 329 |
+
|
| 330 |
+
/*
|
| 331 |
+
* DDVIDEOPORTDESC
|
| 332 |
+
*/
|
| 333 |
+
typedef struct _DDVIDEOPORTDESC
|
| 334 |
+
{
|
| 335 |
+
DWORD dwSize; // size of the DDVIDEOPORTDESC structure
|
| 336 |
+
DWORD dwFieldWidth; // width of the video port field
|
| 337 |
+
DWORD dwVBIWidth; // width of the VBI data
|
| 338 |
+
DWORD dwFieldHeight; // height of the video port field
|
| 339 |
+
DWORD dwMicrosecondsPerField; // Microseconds per video field
|
| 340 |
+
DWORD dwMaxPixelsPerSecond; // Maximum pixel rate per second
|
| 341 |
+
DWORD dwVideoPortID; // Video port ID (0 - (dwMaxVideoPorts -1))
|
| 342 |
+
DWORD dwReserved1; // Reserved for future use - set to zero (struct padding)
|
| 343 |
+
DDVIDEOPORTCONNECT VideoPortType; // Description of video port connection
|
| 344 |
+
ULONG_PTR dwReserved2; // Reserved for future use - set to zero
|
| 345 |
+
ULONG_PTR dwReserved3; // Reserved for future use - set to zero
|
| 346 |
+
} DDVIDEOPORTDESC;
|
| 347 |
+
|
| 348 |
+
|
| 349 |
+
/*
|
| 350 |
+
* DDVIDEOPORTINFO
|
| 351 |
+
*/
|
| 352 |
+
typedef struct _DDVIDEOPORTINFO
|
| 353 |
+
{
|
| 354 |
+
DWORD dwSize; // Size of the structure
|
| 355 |
+
DWORD dwOriginX; // Placement of the video data within the surface.
|
| 356 |
+
DWORD dwOriginY; // Placement of the video data within the surface.
|
| 357 |
+
DWORD dwVPFlags; // Video port options
|
| 358 |
+
RECT rCrop; // Cropping rectangle (optional).
|
| 359 |
+
DWORD dwPrescaleWidth; // Determines pre-scaling/zooming in the X direction (optional).
|
| 360 |
+
DWORD dwPrescaleHeight; // Determines pre-scaling/zooming in the Y direction (optional).
|
| 361 |
+
LPDDPIXELFORMAT lpddpfInputFormat; // Video format written to the video port
|
| 362 |
+
LPDDPIXELFORMAT lpddpfVBIInputFormat; // Input format of the VBI data
|
| 363 |
+
LPDDPIXELFORMAT lpddpfVBIOutputFormat;// Output format of the data
|
| 364 |
+
DWORD dwVBIHeight; // Specifies the number of lines of data within the vertical blanking interval.
|
| 365 |
+
ULONG_PTR dwReserved1; // Reserved for future use - set to zero
|
| 366 |
+
ULONG_PTR dwReserved2; // Reserved for future use - set to zero
|
| 367 |
+
} DDVIDEOPORTINFO;
|
| 368 |
+
|
| 369 |
+
|
| 370 |
+
/*
|
| 371 |
+
* DDVIDEOPORTBANDWIDTH
|
| 372 |
+
*/
|
| 373 |
+
typedef struct _DDVIDEOPORTBANDWIDTH
|
| 374 |
+
{
|
| 375 |
+
DWORD dwSize; // Size of the structure
|
| 376 |
+
DWORD dwCaps;
|
| 377 |
+
DWORD dwOverlay; // Zoom factor at which overlay is supported
|
| 378 |
+
DWORD dwColorkey; // Zoom factor at which overlay w/ colorkey is supported
|
| 379 |
+
DWORD dwYInterpolate; // Zoom factor at which overlay w/ Y interpolation is supported
|
| 380 |
+
DWORD dwYInterpAndColorkey; // Zoom factor at which ovelray w/ Y interpolation and colorkeying is supported
|
| 381 |
+
ULONG_PTR dwReserved1; // Reserved for future use - set to zero
|
| 382 |
+
ULONG_PTR dwReserved2; // Reserved for future use - set to zero
|
| 383 |
+
} DDVIDEOPORTBANDWIDTH;
|
| 384 |
+
|
| 385 |
+
|
| 386 |
+
/*
|
| 387 |
+
* DDVIDEOPORTSTATUS
|
| 388 |
+
*/
|
| 389 |
+
typedef struct _DDVIDEOPORTSTATUS
|
| 390 |
+
{
|
| 391 |
+
DWORD dwSize; // Size of the structure
|
| 392 |
+
BOOL bInUse; // TRUE if video port is currently being used
|
| 393 |
+
DWORD dwFlags; // Currently not used
|
| 394 |
+
DWORD dwReserved1; // Reserved for future use
|
| 395 |
+
DDVIDEOPORTCONNECT VideoPortType; // Information about the connection
|
| 396 |
+
ULONG_PTR dwReserved2; // Reserved for future use
|
| 397 |
+
ULONG_PTR dwReserved3; // Reserved for future use
|
| 398 |
+
} DDVIDEOPORTSTATUS;
|
| 399 |
+
|
| 400 |
+
/*
|
| 401 |
+
* DDVIDEOPORTNOTIFY
|
| 402 |
+
*/
|
| 403 |
+
typedef struct _DDVIDEOPORTNOTIFY
|
| 404 |
+
{
|
| 405 |
+
LARGE_INTEGER ApproximateTimeStamp; // Timestamp in the event notification
|
| 406 |
+
LONG lField; // 0 if even, 1 if odd, -1 if unknown
|
| 407 |
+
UINT dwSurfaceIndex; // Index in the surface chain of the surface that received the sample
|
| 408 |
+
LONG lDone; // Call InterlockedIncrement on this when done with sample
|
| 409 |
+
} DDVIDEOPORTNOTIFY;
|
| 410 |
+
|
| 411 |
+
|
| 412 |
+
/*============================================================================
|
| 413 |
+
*
|
| 414 |
+
* Video Port Flags
|
| 415 |
+
*
|
| 416 |
+
* All flags are bit flags.
|
| 417 |
+
*
|
| 418 |
+
*==========================================================================*/
|
| 419 |
+
|
| 420 |
+
/****************************************************************************
|
| 421 |
+
*
|
| 422 |
+
* VIDEOPORT DDVIDEOPORTCONNECT FLAGS
|
| 423 |
+
*
|
| 424 |
+
****************************************************************************/
|
| 425 |
+
|
| 426 |
+
/*
|
| 427 |
+
* When this is set by the driver and passed to the client, this
|
| 428 |
+
* indicates that the video port is capable of double clocking the data.
|
| 429 |
+
* When this is set by the client, this indicates that the video port
|
| 430 |
+
* should enable double clocking. This flag is only valid with external
|
| 431 |
+
* syncs.
|
| 432 |
+
*/
|
| 433 |
+
#define DDVPCONNECT_DOUBLECLOCK 0x00000001l
|
| 434 |
+
|
| 435 |
+
/*
|
| 436 |
+
* When this is set by the driver and passed to the client, this
|
| 437 |
+
* indicates that the video port is capable of using an external VACT
|
| 438 |
+
* signal. When this is set by the client, this indicates that the
|
| 439 |
+
* video port should use the external VACT signal.
|
| 440 |
+
*/
|
| 441 |
+
#define DDVPCONNECT_VACT 0x00000002l
|
| 442 |
+
|
| 443 |
+
/*
|
| 444 |
+
* When this is set by the driver and passed to the client, this
|
| 445 |
+
* indicates that the video port is capable of treating even fields
|
| 446 |
+
* like odd fields and visa versa. When this is set by the client,
|
| 447 |
+
* this indicates that the video port should treat even fields like odd
|
| 448 |
+
* fields.
|
| 449 |
+
*/
|
| 450 |
+
#define DDVPCONNECT_INVERTPOLARITY 0x00000004l
|
| 451 |
+
|
| 452 |
+
/*
|
| 453 |
+
* Indicates that any data written to the video port during the VREF
|
| 454 |
+
* period will not be written into the frame buffer. This flag is read only.
|
| 455 |
+
*/
|
| 456 |
+
#define DDVPCONNECT_DISCARDSVREFDATA 0x00000008l
|
| 457 |
+
|
| 458 |
+
/*
|
| 459 |
+
* When this is set be the driver and passed to the client, this
|
| 460 |
+
* indicates that the device will write half lines into the frame buffer
|
| 461 |
+
* if half lines are provided by the decoder. If this is set by the client,
|
| 462 |
+
* this indicates that the decoder will be supplying half lines.
|
| 463 |
+
*/
|
| 464 |
+
#define DDVPCONNECT_HALFLINE 0x00000010l
|
| 465 |
+
|
| 466 |
+
/*
|
| 467 |
+
* Indicates that the signal is interlaced. This flag is only
|
| 468 |
+
* set by the client.
|
| 469 |
+
*/
|
| 470 |
+
#define DDVPCONNECT_INTERLACED 0x00000020l
|
| 471 |
+
|
| 472 |
+
/*
|
| 473 |
+
* Indicates that video port is shareable and that this video port
|
| 474 |
+
* will use the even fields. This flag is only set by the client.
|
| 475 |
+
*/
|
| 476 |
+
#define DDVPCONNECT_SHAREEVEN 0x00000040l
|
| 477 |
+
|
| 478 |
+
/*
|
| 479 |
+
* Indicates that video port is shareable and that this video port
|
| 480 |
+
* will use the odd fields. This flag is only set by the client.
|
| 481 |
+
*/
|
| 482 |
+
#define DDVPCONNECT_SHAREODD 0x00000080l
|
| 483 |
+
|
| 484 |
+
/****************************************************************************
|
| 485 |
+
*
|
| 486 |
+
* VIDEOPORT DDVIDEOPORTDESC CAPS
|
| 487 |
+
*
|
| 488 |
+
****************************************************************************/
|
| 489 |
+
|
| 490 |
+
/*
|
| 491 |
+
* Flip can be performed automatically to avoid tearing.
|
| 492 |
+
*/
|
| 493 |
+
#define DDVPCAPS_AUTOFLIP 0x00000001l
|
| 494 |
+
|
| 495 |
+
/*
|
| 496 |
+
* Supports interlaced video
|
| 497 |
+
*/
|
| 498 |
+
#define DDVPCAPS_INTERLACED 0x00000002l
|
| 499 |
+
|
| 500 |
+
/*
|
| 501 |
+
* Supports non-interlaced video
|
| 502 |
+
*/
|
| 503 |
+
#define DDVPCAPS_NONINTERLACED 0x00000004l
|
| 504 |
+
|
| 505 |
+
/*
|
| 506 |
+
* Indicates that the device can return whether the current field
|
| 507 |
+
* of an interlaced signal is even or odd.
|
| 508 |
+
*/
|
| 509 |
+
#define DDVPCAPS_READBACKFIELD 0x00000008l
|
| 510 |
+
|
| 511 |
+
/*
|
| 512 |
+
* Indicates that the device can return the current line of video
|
| 513 |
+
* being written into the frame buffer.
|
| 514 |
+
*/
|
| 515 |
+
#define DDVPCAPS_READBACKLINE 0x00000010l
|
| 516 |
+
|
| 517 |
+
/*
|
| 518 |
+
* Allows two gen-locked video streams to share a single video port,
|
| 519 |
+
* where one stream uses the even fields and the other uses the odd
|
| 520 |
+
* fields. Separate parameters (including address, scaling,
|
| 521 |
+
* cropping, etc.) are maintained for both fields.)
|
| 522 |
+
*/
|
| 523 |
+
#define DDVPCAPS_SHAREABLE 0x00000020l
|
| 524 |
+
|
| 525 |
+
/*
|
| 526 |
+
* Even fields of video can be automatically discarded.
|
| 527 |
+
*/
|
| 528 |
+
#define DDVPCAPS_SKIPEVENFIELDS 0x00000040l
|
| 529 |
+
|
| 530 |
+
/*
|
| 531 |
+
* Odd fields of video can be automatically discarded.
|
| 532 |
+
*/
|
| 533 |
+
#define DDVPCAPS_SKIPODDFIELDS 0x00000080l
|
| 534 |
+
|
| 535 |
+
/*
|
| 536 |
+
* Indicates that the device is capable of driving the graphics
|
| 537 |
+
* VSYNC with the video port VSYNC.
|
| 538 |
+
*/
|
| 539 |
+
#define DDVPCAPS_SYNCMASTER 0x00000100l
|
| 540 |
+
|
| 541 |
+
/*
|
| 542 |
+
* Indicates that data within the vertical blanking interval can
|
| 543 |
+
* be written to a different surface.
|
| 544 |
+
*/
|
| 545 |
+
#define DDVPCAPS_VBISURFACE 0x00000200l
|
| 546 |
+
|
| 547 |
+
/*
|
| 548 |
+
* Indicates that the video port can perform color operations
|
| 549 |
+
* on the incoming data before it is written to the frame buffer.
|
| 550 |
+
*/
|
| 551 |
+
#define DDVPCAPS_COLORCONTROL 0x00000400l
|
| 552 |
+
|
| 553 |
+
/*
|
| 554 |
+
* Indicates that the video port can accept VBI data in a different
|
| 555 |
+
* width or format than the regular video data.
|
| 556 |
+
*/
|
| 557 |
+
#define DDVPCAPS_OVERSAMPLEDVBI 0x00000800l
|
| 558 |
+
|
| 559 |
+
/*
|
| 560 |
+
* Indicates that the video port can write data directly to system memory
|
| 561 |
+
*/
|
| 562 |
+
#define DDVPCAPS_SYSTEMMEMORY 0x00001000l
|
| 563 |
+
|
| 564 |
+
/*
|
| 565 |
+
* Indicates that the VBI and video portions of the video stream can
|
| 566 |
+
* be controlled by an independent processes.
|
| 567 |
+
*/
|
| 568 |
+
#define DDVPCAPS_VBIANDVIDEOINDEPENDENT 0x00002000l
|
| 569 |
+
|
| 570 |
+
/*
|
| 571 |
+
* Indicates that the video port contains high quality hardware
|
| 572 |
+
* de-interlacing hardware that should be used instead of the
|
| 573 |
+
* bob/weave algorithms.
|
| 574 |
+
*/
|
| 575 |
+
#define DDVPCAPS_HARDWAREDEINTERLACE 0x00004000l
|
| 576 |
+
|
| 577 |
+
|
| 578 |
+
/****************************************************************************
|
| 579 |
+
*
|
| 580 |
+
* VIDEOPORT DDVIDEOPORTDESC FX
|
| 581 |
+
*
|
| 582 |
+
****************************************************************************/
|
| 583 |
+
|
| 584 |
+
/*
|
| 585 |
+
* Limited cropping is available to crop out the vertical interval data.
|
| 586 |
+
*/
|
| 587 |
+
#define DDVPFX_CROPTOPDATA 0x00000001l
|
| 588 |
+
|
| 589 |
+
/*
|
| 590 |
+
* Incoming data can be cropped in the X direction before it is written
|
| 591 |
+
* to the surface.
|
| 592 |
+
*/
|
| 593 |
+
#define DDVPFX_CROPX 0x00000002l
|
| 594 |
+
|
| 595 |
+
/*
|
| 596 |
+
* Incoming data can be cropped in the Y direction before it is written
|
| 597 |
+
* to the surface.
|
| 598 |
+
*/
|
| 599 |
+
#define DDVPFX_CROPY 0x00000004l
|
| 600 |
+
|
| 601 |
+
/*
|
| 602 |
+
* Supports interleaving interlaced fields in memory.
|
| 603 |
+
*/
|
| 604 |
+
#define DDVPFX_INTERLEAVE 0x00000008l
|
| 605 |
+
|
| 606 |
+
/*
|
| 607 |
+
* Supports mirroring left to right as the video data is written
|
| 608 |
+
* into the frame buffer.
|
| 609 |
+
*/
|
| 610 |
+
#define DDVPFX_MIRRORLEFTRIGHT 0x00000010l
|
| 611 |
+
|
| 612 |
+
/*
|
| 613 |
+
* Supports mirroring top to bottom as the video data is written
|
| 614 |
+
* into the frame buffer.
|
| 615 |
+
*/
|
| 616 |
+
#define DDVPFX_MIRRORUPDOWN 0x00000020l
|
| 617 |
+
|
| 618 |
+
/*
|
| 619 |
+
* Data can be arbitrarily shrunk in the X direction before it
|
| 620 |
+
* is written to the surface.
|
| 621 |
+
*/
|
| 622 |
+
#define DDVPFX_PRESHRINKX 0x00000040l
|
| 623 |
+
|
| 624 |
+
/*
|
| 625 |
+
* Data can be arbitrarily shrunk in the Y direction before it
|
| 626 |
+
* is written to the surface.
|
| 627 |
+
*/
|
| 628 |
+
#define DDVPFX_PRESHRINKY 0x00000080l
|
| 629 |
+
|
| 630 |
+
/*
|
| 631 |
+
* Data can be binary shrunk (1/2, 1/4, 1/8, etc.) in the X
|
| 632 |
+
* direction before it is written to the surface.
|
| 633 |
+
*/
|
| 634 |
+
#define DDVPFX_PRESHRINKXB 0x00000100l
|
| 635 |
+
|
| 636 |
+
/*
|
| 637 |
+
* Data can be binary shrunk (1/2, 1/4, 1/8, etc.) in the Y
|
| 638 |
+
* direction before it is written to the surface.
|
| 639 |
+
*/
|
| 640 |
+
#define DDVPFX_PRESHRINKYB 0x00000200l
|
| 641 |
+
|
| 642 |
+
/*
|
| 643 |
+
* Data can be shrunk in increments of 1/x in the X direction
|
| 644 |
+
* (where X is specified in the DDVIDEOPORTCAPS.dwPreshrinkXStep)
|
| 645 |
+
* before it is written to the surface.
|
| 646 |
+
*/
|
| 647 |
+
#define DDVPFX_PRESHRINKXS 0x00000400l
|
| 648 |
+
|
| 649 |
+
/*
|
| 650 |
+
* Data can be shrunk in increments of 1/x in the Y direction
|
| 651 |
+
* (where X is specified in the DDVIDEOPORTCAPS.dwPreshrinkYStep)
|
| 652 |
+
* before it is written to the surface.
|
| 653 |
+
*/
|
| 654 |
+
#define DDVPFX_PRESHRINKYS 0x00000800l
|
| 655 |
+
|
| 656 |
+
/*
|
| 657 |
+
* Data can be arbitrarily stretched in the X direction before
|
| 658 |
+
* it is written to the surface.
|
| 659 |
+
*/
|
| 660 |
+
#define DDVPFX_PRESTRETCHX 0x00001000l
|
| 661 |
+
|
| 662 |
+
/*
|
| 663 |
+
* Data can be arbitrarily stretched in the Y direction before
|
| 664 |
+
* it is written to the surface.
|
| 665 |
+
*/
|
| 666 |
+
#define DDVPFX_PRESTRETCHY 0x00002000l
|
| 667 |
+
|
| 668 |
+
/*
|
| 669 |
+
* Data can be integer stretched in the X direction before it is
|
| 670 |
+
* written to the surface.
|
| 671 |
+
*/
|
| 672 |
+
#define DDVPFX_PRESTRETCHXN 0x00004000l
|
| 673 |
+
|
| 674 |
+
/*
|
| 675 |
+
* Data can be integer stretched in the Y direction before it is
|
| 676 |
+
* written to the surface.
|
| 677 |
+
*/
|
| 678 |
+
#define DDVPFX_PRESTRETCHYN 0x00008000l
|
| 679 |
+
|
| 680 |
+
/*
|
| 681 |
+
* Indicates that data within the vertical blanking interval can
|
| 682 |
+
* be converted independently of the remaining video data.
|
| 683 |
+
*/
|
| 684 |
+
#define DDVPFX_VBICONVERT 0x00010000l
|
| 685 |
+
|
| 686 |
+
/*
|
| 687 |
+
* Indicates that scaling can be disabled for data within the
|
| 688 |
+
* vertical blanking interval.
|
| 689 |
+
*/
|
| 690 |
+
#define DDVPFX_VBINOSCALE 0x00020000l
|
| 691 |
+
|
| 692 |
+
/*
|
| 693 |
+
* Indicates that the video data can ignore the left and right
|
| 694 |
+
* cropping coordinates when cropping oversampled VBI data.
|
| 695 |
+
*/
|
| 696 |
+
#define DDVPFX_IGNOREVBIXCROP 0x00040000l
|
| 697 |
+
|
| 698 |
+
/*
|
| 699 |
+
* Indicates that interleaving can be disabled for data within the
|
| 700 |
+
* vertical blanking interval.
|
| 701 |
+
*/
|
| 702 |
+
#define DDVPFX_VBINOINTERLEAVE 0x00080000l
|
| 703 |
+
|
| 704 |
+
|
| 705 |
+
/****************************************************************************
|
| 706 |
+
*
|
| 707 |
+
* VIDEOPORT DDVIDEOPORTINFO FLAGS
|
| 708 |
+
*
|
| 709 |
+
****************************************************************************/
|
| 710 |
+
|
| 711 |
+
/*
|
| 712 |
+
* Perform automatic flipping. Auto-flipping is performed between
|
| 713 |
+
* the overlay surface that was attached to the video port using
|
| 714 |
+
* IDirectDrawVideoPort::AttachSurface and the overlay surfaces that
|
| 715 |
+
* are attached to the surface via the IDirectDrawSurface::AttachSurface
|
| 716 |
+
* method. The flip order is the order in which the overlay surfaces
|
| 717 |
+
* were. attached.
|
| 718 |
+
*/
|
| 719 |
+
#define DDVP_AUTOFLIP 0x00000001l
|
| 720 |
+
|
| 721 |
+
/*
|
| 722 |
+
* Perform conversion using the ddpfOutputFormat information.
|
| 723 |
+
*/
|
| 724 |
+
#define DDVP_CONVERT 0x00000002l
|
| 725 |
+
|
| 726 |
+
/*
|
| 727 |
+
* Perform cropping using the specified rectangle.
|
| 728 |
+
*/
|
| 729 |
+
#define DDVP_CROP 0x00000004l
|
| 730 |
+
|
| 731 |
+
/*
|
| 732 |
+
* Indicates that interlaced fields should be interleaved in memory.
|
| 733 |
+
*/
|
| 734 |
+
#define DDVP_INTERLEAVE 0x00000008l
|
| 735 |
+
|
| 736 |
+
/*
|
| 737 |
+
* Indicates that the data should be mirrored left to right as it's
|
| 738 |
+
* written into the frame buffer.
|
| 739 |
+
*/
|
| 740 |
+
#define DDVP_MIRRORLEFTRIGHT 0x00000010l
|
| 741 |
+
|
| 742 |
+
/*
|
| 743 |
+
* Indicates that the data should be mirrored top to bottom as it's
|
| 744 |
+
* written into the frame buffer.
|
| 745 |
+
*/
|
| 746 |
+
#define DDVP_MIRRORUPDOWN 0x00000020l
|
| 747 |
+
|
| 748 |
+
/*
|
| 749 |
+
* Perform pre-scaling/zooming based on the pre-scale parameters.
|
| 750 |
+
*/
|
| 751 |
+
#define DDVP_PRESCALE 0x00000040l
|
| 752 |
+
|
| 753 |
+
/*
|
| 754 |
+
* Ignore input of even fields.
|
| 755 |
+
*/
|
| 756 |
+
#define DDVP_SKIPEVENFIELDS 0x00000080l
|
| 757 |
+
|
| 758 |
+
/*
|
| 759 |
+
* Ignore input of odd fields.
|
| 760 |
+
*/
|
| 761 |
+
#define DDVP_SKIPODDFIELDS 0x00000100l
|
| 762 |
+
|
| 763 |
+
/*
|
| 764 |
+
* Drive the graphics VSYNCs using the video port VYSNCs.
|
| 765 |
+
*/
|
| 766 |
+
#define DDVP_SYNCMASTER 0x00000200l
|
| 767 |
+
|
| 768 |
+
/*
|
| 769 |
+
* The ddpfVBIOutputFormatFormat member contains data that should be used
|
| 770 |
+
* to convert the data within the vertical blanking interval.
|
| 771 |
+
*/
|
| 772 |
+
#define DDVP_VBICONVERT 0x00000400l
|
| 773 |
+
|
| 774 |
+
/*
|
| 775 |
+
* Indicates that data within the vertical blanking interval
|
| 776 |
+
* should not be scaled.
|
| 777 |
+
*/
|
| 778 |
+
#define DDVP_VBINOSCALE 0x00000800l
|
| 779 |
+
|
| 780 |
+
/*
|
| 781 |
+
* Indicates that these bob/weave decisions should not be
|
| 782 |
+
* overriden by other interfaces.
|
| 783 |
+
*/
|
| 784 |
+
#define DDVP_OVERRIDEBOBWEAVE 0x00001000l
|
| 785 |
+
|
| 786 |
+
/*
|
| 787 |
+
* Indicates that the video data should ignore the left and right
|
| 788 |
+
* cropping coordinates when cropping the VBI data.
|
| 789 |
+
*/
|
| 790 |
+
#define DDVP_IGNOREVBIXCROP 0x00002000l
|
| 791 |
+
|
| 792 |
+
/*
|
| 793 |
+
* Indicates that interleaving can be disabled for data within the
|
| 794 |
+
* vertical blanking interval.
|
| 795 |
+
*/
|
| 796 |
+
#define DDVP_VBINOINTERLEAVE 0x00004000l
|
| 797 |
+
|
| 798 |
+
/*
|
| 799 |
+
* Indicates that the video port should use the hardware
|
| 800 |
+
* de-interlacing hardware.
|
| 801 |
+
*/
|
| 802 |
+
#define DDVP_HARDWAREDEINTERLACE 0x00008000l
|
| 803 |
+
|
| 804 |
+
/****************************************************************************
|
| 805 |
+
*
|
| 806 |
+
* DIRIRECTDRAWVIDEOPORT GETINPUTFORMAT/GETOUTPUTFORMAT FLAGS
|
| 807 |
+
*
|
| 808 |
+
****************************************************************************/
|
| 809 |
+
|
| 810 |
+
/*
|
| 811 |
+
* Return formats for the video data
|
| 812 |
+
*/
|
| 813 |
+
#define DDVPFORMAT_VIDEO 0x00000001l
|
| 814 |
+
|
| 815 |
+
/*
|
| 816 |
+
* Return formats for the VBI data
|
| 817 |
+
*/
|
| 818 |
+
#define DDVPFORMAT_VBI 0x00000002l
|
| 819 |
+
|
| 820 |
+
/****************************************************************************
|
| 821 |
+
*
|
| 822 |
+
* DIRIRECTDRAWVIDEOPORT SETTARGETSURFACE FLAGS
|
| 823 |
+
*
|
| 824 |
+
****************************************************************************/
|
| 825 |
+
|
| 826 |
+
/*
|
| 827 |
+
* Surface should receive video data (and VBI data if a surface
|
| 828 |
+
* is not explicitly attached for that purpose)
|
| 829 |
+
*/
|
| 830 |
+
#define DDVPTARGET_VIDEO 0x00000001l
|
| 831 |
+
|
| 832 |
+
/*
|
| 833 |
+
* Surface should receive VBI data
|
| 834 |
+
*/
|
| 835 |
+
#define DDVPTARGET_VBI 0x00000002l
|
| 836 |
+
|
| 837 |
+
|
| 838 |
+
/****************************************************************************
|
| 839 |
+
*
|
| 840 |
+
* DIRIRECTDRAWVIDEOPORT WAITFORSYNC FLAGS
|
| 841 |
+
*
|
| 842 |
+
****************************************************************************/
|
| 843 |
+
|
| 844 |
+
/*
|
| 845 |
+
* Waits until the beginning of the next VSYNC
|
| 846 |
+
*/
|
| 847 |
+
#define DDVPWAIT_BEGIN 0x00000001l
|
| 848 |
+
|
| 849 |
+
/*
|
| 850 |
+
* Waits until the end of the next/current VSYNC
|
| 851 |
+
*/
|
| 852 |
+
#define DDVPWAIT_END 0x00000002l
|
| 853 |
+
|
| 854 |
+
/*
|
| 855 |
+
* Waits until the beginning of the specified line
|
| 856 |
+
*/
|
| 857 |
+
#define DDVPWAIT_LINE 0x00000003l
|
| 858 |
+
|
| 859 |
+
/****************************************************************************
|
| 860 |
+
*
|
| 861 |
+
* DIRECTDRAWVIDEOPORT FLIP FLAGS
|
| 862 |
+
*
|
| 863 |
+
****************************************************************************/
|
| 864 |
+
|
| 865 |
+
/*
|
| 866 |
+
* Flips the normal video surface
|
| 867 |
+
*/
|
| 868 |
+
#define DDVPFLIP_VIDEO 0x00000001l
|
| 869 |
+
|
| 870 |
+
/*
|
| 871 |
+
* Flips the VBI surface
|
| 872 |
+
*/
|
| 873 |
+
#define DDVPFLIP_VBI 0x00000002l
|
| 874 |
+
|
| 875 |
+
/****************************************************************************
|
| 876 |
+
*
|
| 877 |
+
* DIRIRECTDRAWVIDEOPORT GETVIDEOSIGNALSTATUS VALUES
|
| 878 |
+
*
|
| 879 |
+
****************************************************************************/
|
| 880 |
+
|
| 881 |
+
/*
|
| 882 |
+
* No video signal is present at the video port
|
| 883 |
+
*/
|
| 884 |
+
#define DDVPSQ_NOSIGNAL 0x00000001l
|
| 885 |
+
|
| 886 |
+
/*
|
| 887 |
+
* A valid video signal is present at the video port
|
| 888 |
+
*/
|
| 889 |
+
#define DDVPSQ_SIGNALOK 0x00000002l
|
| 890 |
+
|
| 891 |
+
/****************************************************************************
|
| 892 |
+
*
|
| 893 |
+
* VIDEOPORTBANDWIDTH Flags
|
| 894 |
+
*
|
| 895 |
+
****************************************************************************/
|
| 896 |
+
|
| 897 |
+
/*
|
| 898 |
+
* The specified height/width refer to the size of the video port data
|
| 899 |
+
* written into memory, after prescaling has occured.
|
| 900 |
+
*/
|
| 901 |
+
#define DDVPB_VIDEOPORT 0x00000001l
|
| 902 |
+
|
| 903 |
+
/*
|
| 904 |
+
* The specified height/width refer to the source size of the overlay.
|
| 905 |
+
*/
|
| 906 |
+
#define DDVPB_OVERLAY 0x00000002l
|
| 907 |
+
|
| 908 |
+
/*
|
| 909 |
+
* This is a query for the device to return which caps this device requires.
|
| 910 |
+
*/
|
| 911 |
+
#define DDVPB_TYPE 0x00000004l
|
| 912 |
+
|
| 913 |
+
/****************************************************************************
|
| 914 |
+
*
|
| 915 |
+
* VIDEOPORTBANDWIDTH Caps
|
| 916 |
+
*
|
| 917 |
+
****************************************************************************/
|
| 918 |
+
|
| 919 |
+
/*
|
| 920 |
+
* The bandwidth for this device is dependant on the overlay source size.
|
| 921 |
+
*/
|
| 922 |
+
#define DDVPBCAPS_SOURCE 0x00000001l
|
| 923 |
+
|
| 924 |
+
/*
|
| 925 |
+
* The bandwidth for this device is dependant on the overlay destination
|
| 926 |
+
* size.
|
| 927 |
+
*/
|
| 928 |
+
#define DDVPBCAPS_DESTINATION 0x00000002l
|
| 929 |
+
|
| 930 |
+
/****************************************************************************
|
| 931 |
+
*
|
| 932 |
+
* DDVIDEOPORTCONTAINER CreateVideoPort flags
|
| 933 |
+
*
|
| 934 |
+
****************************************************************************/
|
| 935 |
+
|
| 936 |
+
/*
|
| 937 |
+
* The process only wants to control the VBI portion of the video stream.
|
| 938 |
+
*/
|
| 939 |
+
#define DDVPCREATE_VBIONLY 0x00000001l
|
| 940 |
+
|
| 941 |
+
/*
|
| 942 |
+
* The process only wants to control the non-VBI (video) portion of
|
| 943 |
+
* the video stream.
|
| 944 |
+
*/
|
| 945 |
+
#define DDVPCREATE_VIDEOONLY 0x00000002l
|
| 946 |
+
|
| 947 |
+
/****************************************************************************
|
| 948 |
+
*
|
| 949 |
+
* DDVIDEOPORTSTATUS flags
|
| 950 |
+
*
|
| 951 |
+
****************************************************************************/
|
| 952 |
+
|
| 953 |
+
/*
|
| 954 |
+
* The video port interface is only controlling the VBI portion of the
|
| 955 |
+
* video stream
|
| 956 |
+
*/
|
| 957 |
+
#define DDVPSTATUS_VBIONLY 0x00000001l
|
| 958 |
+
|
| 959 |
+
/*
|
| 960 |
+
* The video port interface is only controlling the video portion of the
|
| 961 |
+
* video stream
|
| 962 |
+
*/
|
| 963 |
+
#define DDVPSTATUS_VIDEOONLY 0x00000002l
|
| 964 |
+
|
| 965 |
+
|
| 966 |
+
#ifdef __cplusplus
|
| 967 |
+
};
|
| 968 |
+
#endif
|
| 969 |
+
|
| 970 |
+
#endif // GUID_DEFS_ONLY
|
| 971 |
+
|
| 972 |
+
|
| 973 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 974 |
+
#pragma endregion
|
| 975 |
+
|
| 976 |
+
#endif
|
| 977 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwmapi.h
ADDED
|
@@ -0,0 +1,698 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright (C) Microsoft Corporation. All rights reserved.
|
| 2 |
+
#ifndef _DWMAPI_H_
|
| 3 |
+
#define _DWMAPI_H_
|
| 4 |
+
|
| 5 |
+
#include <winapifamily.h>
|
| 6 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
#ifndef DWMAPI
|
| 10 |
+
#if !defined(_DWMAPI_)
|
| 11 |
+
#define DWMAPI EXTERN_C DECLSPEC_IMPORT HRESULT STDAPICALLTYPE
|
| 12 |
+
#define DWMAPI_(type) EXTERN_C DECLSPEC_IMPORT type STDAPICALLTYPE
|
| 13 |
+
#else
|
| 14 |
+
#define DWMAPI STDAPI
|
| 15 |
+
#define DWMAPI_(type) STDAPI_(type)
|
| 16 |
+
#endif /* _DWMAPI_ */
|
| 17 |
+
#endif /* DWMAPI */
|
| 18 |
+
|
| 19 |
+
#ifndef MILCORE_KERNEL_COMPONENT
|
| 20 |
+
#include <wtypes.h>
|
| 21 |
+
#include <uxtheme.h>
|
| 22 |
+
#endif
|
| 23 |
+
|
| 24 |
+
#include <pshpack1.h>
|
| 25 |
+
|
| 26 |
+
// Blur behind data structures
|
| 27 |
+
#define DWM_BB_ENABLE 0x00000001 // fEnable has been specified
|
| 28 |
+
#define DWM_BB_BLURREGION 0x00000002 // hRgnBlur has been specified
|
| 29 |
+
#define DWM_BB_TRANSITIONONMAXIMIZED 0x00000004 // fTransitionOnMaximized has been specified
|
| 30 |
+
|
| 31 |
+
typedef struct _DWM_BLURBEHIND
|
| 32 |
+
{
|
| 33 |
+
DWORD dwFlags;
|
| 34 |
+
BOOL fEnable;
|
| 35 |
+
HRGN hRgnBlur;
|
| 36 |
+
BOOL fTransitionOnMaximized;
|
| 37 |
+
} DWM_BLURBEHIND, *PDWM_BLURBEHIND;
|
| 38 |
+
|
| 39 |
+
// Window attributes
|
| 40 |
+
enum DWMWINDOWATTRIBUTE
|
| 41 |
+
{
|
| 42 |
+
DWMWA_NCRENDERING_ENABLED = 1, // [get] Is non-client rendering enabled/disabled
|
| 43 |
+
DWMWA_NCRENDERING_POLICY, // [set] DWMNCRENDERINGPOLICY - Non-client rendering policy
|
| 44 |
+
DWMWA_TRANSITIONS_FORCEDISABLED, // [set] Potentially enable/forcibly disable transitions
|
| 45 |
+
DWMWA_ALLOW_NCPAINT, // [set] Allow contents rendered in the non-client area to be visible on the DWM-drawn frame.
|
| 46 |
+
DWMWA_CAPTION_BUTTON_BOUNDS, // [get] Bounds of the caption button area in window-relative space.
|
| 47 |
+
DWMWA_NONCLIENT_RTL_LAYOUT, // [set] Is non-client content RTL mirrored
|
| 48 |
+
DWMWA_FORCE_ICONIC_REPRESENTATION, // [set] Force this window to display iconic thumbnails.
|
| 49 |
+
DWMWA_FLIP3D_POLICY, // [set] Designates how Flip3D will treat the window.
|
| 50 |
+
DWMWA_EXTENDED_FRAME_BOUNDS, // [get] Gets the extended frame bounds rectangle in screen space
|
| 51 |
+
DWMWA_HAS_ICONIC_BITMAP, // [set] Indicates an available bitmap when there is no better thumbnail representation.
|
| 52 |
+
DWMWA_DISALLOW_PEEK, // [set] Don't invoke Peek on the window.
|
| 53 |
+
DWMWA_EXCLUDED_FROM_PEEK, // [set] LivePreview exclusion information
|
| 54 |
+
DWMWA_CLOAK, // [set] Cloak or uncloak the window
|
| 55 |
+
DWMWA_CLOAKED, // [get] Gets the cloaked state of the window
|
| 56 |
+
DWMWA_FREEZE_REPRESENTATION, // [set] BOOL, Force this window to freeze the thumbnail without live update
|
| 57 |
+
DWMWA_PASSIVE_UPDATE_MODE, // [set] BOOL, Updates the window only when desktop composition runs for other reasons
|
| 58 |
+
DWMWA_USE_HOSTBACKDROPBRUSH, // [set] BOOL, Allows the use of host backdrop brushes for the window.
|
| 59 |
+
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.
|
| 60 |
+
DWMWA_WINDOW_CORNER_PREFERENCE = 33, // [set] WINDOW_CORNER_PREFERENCE, Controls the policy that rounds top-level window corners
|
| 61 |
+
DWMWA_BORDER_COLOR, // [set] COLORREF, The color of the thin border around a top-level window
|
| 62 |
+
DWMWA_CAPTION_COLOR, // [set] COLORREF, The color of the caption
|
| 63 |
+
DWMWA_TEXT_COLOR, // [set] COLORREF, The color of the caption text
|
| 64 |
+
DWMWA_VISIBLE_FRAME_BORDER_THICKNESS, // [get] UINT, width of the visible border around a thick frame window
|
| 65 |
+
DWMWA_SYSTEMBACKDROP_TYPE, // [get, set] SYSTEMBACKDROP_TYPE, Controls the system-drawn backdrop material of a window, including behind the non-client area.
|
| 66 |
+
DWMWA_REDIRECTIONBITMAP_ALPHA, // [set] BOOL, GDI redirection bitmap containspremultiplied alpha
|
| 67 |
+
DWMWA_LAST
|
| 68 |
+
};
|
| 69 |
+
|
| 70 |
+
typedef enum {
|
| 71 |
+
/*
|
| 72 |
+
* Let the system decide whether or not to round window corners
|
| 73 |
+
*/
|
| 74 |
+
DWMWCP_DEFAULT = 0,
|
| 75 |
+
|
| 76 |
+
/*
|
| 77 |
+
* Never round window corners
|
| 78 |
+
*/
|
| 79 |
+
DWMWCP_DONOTROUND = 1,
|
| 80 |
+
|
| 81 |
+
/*
|
| 82 |
+
* Round the corners if appropriate
|
| 83 |
+
*/
|
| 84 |
+
DWMWCP_ROUND = 2,
|
| 85 |
+
|
| 86 |
+
/*
|
| 87 |
+
* Round the corners if appropriate, with a small radius
|
| 88 |
+
*/
|
| 89 |
+
DWMWCP_ROUNDSMALL = 3
|
| 90 |
+
|
| 91 |
+
} DWM_WINDOW_CORNER_PREFERENCE;
|
| 92 |
+
|
| 93 |
+
// Use this constant to reset any window part colors to the system default behavior
|
| 94 |
+
#define DWMWA_COLOR_DEFAULT 0xFFFFFFFF
|
| 95 |
+
|
| 96 |
+
// Use this constant to specify that a window part should not be rendered
|
| 97 |
+
#define DWMWA_COLOR_NONE 0xFFFFFFFE
|
| 98 |
+
|
| 99 |
+
// Types used with DWMWA_SYSTEMBACKDROP_TYPE
|
| 100 |
+
enum DWM_SYSTEMBACKDROP_TYPE
|
| 101 |
+
{
|
| 102 |
+
DWMSBT_AUTO, // [Default] Let DWM automatically decide the system-drawn backdrop for this window.
|
| 103 |
+
DWMSBT_NONE, // Do not draw any system backdrop.
|
| 104 |
+
DWMSBT_MAINWINDOW, // Draw the backdrop material effect corresponding to a long-lived window.
|
| 105 |
+
DWMSBT_TRANSIENTWINDOW, // Draw the backdrop material effect corresponding to a transient window.
|
| 106 |
+
DWMSBT_TABBEDWINDOW, // Draw the backdrop material effect corresponding to a window with a tabbed title bar.
|
| 107 |
+
};
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
// Non-client rendering policy attribute values
|
| 111 |
+
enum DWMNCRENDERINGPOLICY
|
| 112 |
+
{
|
| 113 |
+
DWMNCRP_USEWINDOWSTYLE, // Enable/disable non-client rendering based on window style
|
| 114 |
+
DWMNCRP_DISABLED, // Disabled non-client rendering; window style is ignored
|
| 115 |
+
DWMNCRP_ENABLED, // Enabled non-client rendering; window style is ignored
|
| 116 |
+
DWMNCRP_LAST
|
| 117 |
+
};
|
| 118 |
+
|
| 119 |
+
// Values designating how Flip3D treats a given window.
|
| 120 |
+
enum DWMFLIP3DWINDOWPOLICY
|
| 121 |
+
{
|
| 122 |
+
DWMFLIP3D_DEFAULT, // Hide or include the window in Flip3D based on window style and visibility.
|
| 123 |
+
DWMFLIP3D_EXCLUDEBELOW, // Display the window under Flip3D and disabled.
|
| 124 |
+
DWMFLIP3D_EXCLUDEABOVE, // Display the window above Flip3D and enabled.
|
| 125 |
+
DWMFLIP3D_LAST
|
| 126 |
+
};
|
| 127 |
+
|
| 128 |
+
// Cloaked flags describing why a window is cloaked.
|
| 129 |
+
#define DWM_CLOAKED_APP 0x00000001
|
| 130 |
+
#define DWM_CLOAKED_SHELL 0x00000002
|
| 131 |
+
#define DWM_CLOAKED_INHERITED 0x00000004
|
| 132 |
+
|
| 133 |
+
#pragma region Thumbnails
|
| 134 |
+
typedef HANDLE HTHUMBNAIL;
|
| 135 |
+
typedef HTHUMBNAIL* PHTHUMBNAIL;
|
| 136 |
+
|
| 137 |
+
#pragma region Flags for DWM_THUMBNAIL_PROPERTIES
|
| 138 |
+
#define DWM_TNP_RECTDESTINATION 0x00000001 // A value for the "rcDestination" member has been specified.
|
| 139 |
+
#define DWM_TNP_RECTSOURCE 0x00000002 // A value for the "rcSource" member has been specified.
|
| 140 |
+
#define DWM_TNP_OPACITY 0x00000004 // A value for the "opacity" member has been specified.
|
| 141 |
+
#define DWM_TNP_VISIBLE 0x00000008 // A value for the "fVisible" member has been specified.
|
| 142 |
+
#define DWM_TNP_SOURCECLIENTAREAONLY 0x00000010 // A value for the "fSourceClientAreaOnly" member has been specified.
|
| 143 |
+
#pragma endregion
|
| 144 |
+
|
| 145 |
+
typedef struct _DWM_THUMBNAIL_PROPERTIES
|
| 146 |
+
{
|
| 147 |
+
DWORD dwFlags; // Specifies which members of this struct have been specified
|
| 148 |
+
RECT rcDestination; // The area in the destination window where the thumbnail will be rendered
|
| 149 |
+
RECT rcSource; // The region of the source window to use as the thumbnail. By default, the entire window is used as the thumbnail
|
| 150 |
+
BYTE opacity; // The opacity with which to render the thumbnail. 0 is fully transparent, while 255 is fully opaque. The default value is 255
|
| 151 |
+
BOOL fVisible; // Whether the thumbnail should be visible. The default is FALSE
|
| 152 |
+
BOOL fSourceClientAreaOnly; // Whether only the client area of the source window should be included in the thumbnail. The default is FALSE
|
| 153 |
+
} DWM_THUMBNAIL_PROPERTIES, *PDWM_THUMBNAIL_PROPERTIES;
|
| 154 |
+
#pragma endregion
|
| 155 |
+
|
| 156 |
+
// Video enabling apis
|
| 157 |
+
|
| 158 |
+
typedef ULONGLONG DWM_FRAME_COUNT;
|
| 159 |
+
typedef ULONGLONG QPC_TIME;
|
| 160 |
+
|
| 161 |
+
typedef struct _UNSIGNED_RATIO
|
| 162 |
+
{
|
| 163 |
+
UINT32 uiNumerator;
|
| 164 |
+
UINT32 uiDenominator;
|
| 165 |
+
} UNSIGNED_RATIO;
|
| 166 |
+
|
| 167 |
+
typedef struct _DWM_TIMING_INFO
|
| 168 |
+
{
|
| 169 |
+
UINT32 cbSize;
|
| 170 |
+
|
| 171 |
+
// Data on DWM composition overall
|
| 172 |
+
|
| 173 |
+
// Monitor refresh rate
|
| 174 |
+
UNSIGNED_RATIO rateRefresh;
|
| 175 |
+
|
| 176 |
+
// Actual period
|
| 177 |
+
QPC_TIME qpcRefreshPeriod;
|
| 178 |
+
|
| 179 |
+
// composition rate
|
| 180 |
+
UNSIGNED_RATIO rateCompose;
|
| 181 |
+
|
| 182 |
+
// QPC time at a VSync interupt
|
| 183 |
+
QPC_TIME qpcVBlank;
|
| 184 |
+
|
| 185 |
+
// DWM refresh count of the last vsync
|
| 186 |
+
// DWM refresh count is a 64bit number where zero is
|
| 187 |
+
// the first refresh the DWM woke up to process
|
| 188 |
+
DWM_FRAME_COUNT cRefresh;
|
| 189 |
+
|
| 190 |
+
// DX refresh count at the last Vsync Interupt
|
| 191 |
+
// DX refresh count is a 32bit number with zero
|
| 192 |
+
// being the first refresh after the card was initialized
|
| 193 |
+
// DX increments a counter when ever a VSync ISR is processed
|
| 194 |
+
// It is possible for DX to miss VSyncs
|
| 195 |
+
//
|
| 196 |
+
// There is not a fixed mapping between DX and DWM refresh counts
|
| 197 |
+
// because the DX will rollover and may miss VSync interupts
|
| 198 |
+
UINT cDXRefresh;
|
| 199 |
+
|
| 200 |
+
// QPC time at a compose time.
|
| 201 |
+
QPC_TIME qpcCompose;
|
| 202 |
+
|
| 203 |
+
// Frame number that was composed at qpcCompose
|
| 204 |
+
DWM_FRAME_COUNT cFrame;
|
| 205 |
+
|
| 206 |
+
// The present number DX uses to identify renderer frames
|
| 207 |
+
UINT cDXPresent;
|
| 208 |
+
|
| 209 |
+
// Refresh count of the frame that was composed at qpcCompose
|
| 210 |
+
DWM_FRAME_COUNT cRefreshFrame;
|
| 211 |
+
|
| 212 |
+
|
| 213 |
+
// DWM frame number that was last submitted
|
| 214 |
+
DWM_FRAME_COUNT cFrameSubmitted;
|
| 215 |
+
|
| 216 |
+
// DX Present number that was last submitted
|
| 217 |
+
UINT cDXPresentSubmitted;
|
| 218 |
+
|
| 219 |
+
// DWM frame number that was last confirmed presented
|
| 220 |
+
DWM_FRAME_COUNT cFrameConfirmed;
|
| 221 |
+
|
| 222 |
+
// DX Present number that was last confirmed presented
|
| 223 |
+
UINT cDXPresentConfirmed;
|
| 224 |
+
|
| 225 |
+
// The target refresh count of the last
|
| 226 |
+
// frame confirmed completed by the GPU
|
| 227 |
+
DWM_FRAME_COUNT cRefreshConfirmed;
|
| 228 |
+
|
| 229 |
+
// DX refresh count when the frame was confirmed presented
|
| 230 |
+
UINT cDXRefreshConfirmed;
|
| 231 |
+
|
| 232 |
+
// Number of frames the DWM presented late
|
| 233 |
+
// AKA Glitches
|
| 234 |
+
DWM_FRAME_COUNT cFramesLate;
|
| 235 |
+
|
| 236 |
+
// the number of composition frames that
|
| 237 |
+
// have been issued but not confirmed completed
|
| 238 |
+
UINT cFramesOutstanding;
|
| 239 |
+
|
| 240 |
+
|
| 241 |
+
// Following fields are only relavent when an HWND is specified
|
| 242 |
+
// Display frame
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
// Last frame displayed
|
| 246 |
+
DWM_FRAME_COUNT cFrameDisplayed;
|
| 247 |
+
|
| 248 |
+
// QPC time of the composition pass when the frame was displayed
|
| 249 |
+
QPC_TIME qpcFrameDisplayed;
|
| 250 |
+
|
| 251 |
+
// Count of the VSync when the frame should have become visible
|
| 252 |
+
DWM_FRAME_COUNT cRefreshFrameDisplayed;
|
| 253 |
+
|
| 254 |
+
// Complete frames: DX has notified the DWM that the frame is done rendering
|
| 255 |
+
|
| 256 |
+
// ID of the the last frame marked complete (starts at 0)
|
| 257 |
+
DWM_FRAME_COUNT cFrameComplete;
|
| 258 |
+
|
| 259 |
+
// QPC time when the last frame was marked complete
|
| 260 |
+
QPC_TIME qpcFrameComplete;
|
| 261 |
+
|
| 262 |
+
// Pending frames:
|
| 263 |
+
// The application has been submitted to DX but not completed by the GPU
|
| 264 |
+
|
| 265 |
+
// ID of the the last frame marked pending (starts at 0)
|
| 266 |
+
DWM_FRAME_COUNT cFramePending;
|
| 267 |
+
|
| 268 |
+
// QPC time when the last frame was marked pending
|
| 269 |
+
QPC_TIME qpcFramePending;
|
| 270 |
+
|
| 271 |
+
// number of unique frames displayed
|
| 272 |
+
DWM_FRAME_COUNT cFramesDisplayed;
|
| 273 |
+
|
| 274 |
+
// number of new completed frames that have been received
|
| 275 |
+
DWM_FRAME_COUNT cFramesComplete;
|
| 276 |
+
|
| 277 |
+
// number of new frames submitted to DX but not yet complete
|
| 278 |
+
DWM_FRAME_COUNT cFramesPending;
|
| 279 |
+
|
| 280 |
+
// number of frames available but not displayed, used or dropped
|
| 281 |
+
DWM_FRAME_COUNT cFramesAvailable;
|
| 282 |
+
|
| 283 |
+
// number of rendered frames that were never
|
| 284 |
+
// displayed because composition occured too late
|
| 285 |
+
DWM_FRAME_COUNT cFramesDropped;
|
| 286 |
+
|
| 287 |
+
// number of times an old frame was composed
|
| 288 |
+
// when a new frame should have been used
|
| 289 |
+
// but was not available
|
| 290 |
+
DWM_FRAME_COUNT cFramesMissed;
|
| 291 |
+
|
| 292 |
+
// the refresh at which the next frame is
|
| 293 |
+
// scheduled to be displayed
|
| 294 |
+
DWM_FRAME_COUNT cRefreshNextDisplayed;
|
| 295 |
+
|
| 296 |
+
// the refresh at which the next DX present is
|
| 297 |
+
// scheduled to be displayed
|
| 298 |
+
DWM_FRAME_COUNT cRefreshNextPresented;
|
| 299 |
+
|
| 300 |
+
// The total number of refreshes worth of content
|
| 301 |
+
// for this HWND that have been displayed by the DWM
|
| 302 |
+
// since DwmSetPresentParameters was called
|
| 303 |
+
DWM_FRAME_COUNT cRefreshesDisplayed;
|
| 304 |
+
|
| 305 |
+
// The total number of refreshes worth of content
|
| 306 |
+
// that have been presented by the application
|
| 307 |
+
// since DwmSetPresentParameters was called
|
| 308 |
+
DWM_FRAME_COUNT cRefreshesPresented;
|
| 309 |
+
|
| 310 |
+
|
| 311 |
+
// The actual refresh # when content for this
|
| 312 |
+
// window started to be displayed
|
| 313 |
+
// it may be different than that requested
|
| 314 |
+
// DwmSetPresentParameters
|
| 315 |
+
DWM_FRAME_COUNT cRefreshStarted;
|
| 316 |
+
|
| 317 |
+
// Total number of pixels DX redirected
|
| 318 |
+
// to the DWM.
|
| 319 |
+
// If Queueing is used the full buffer
|
| 320 |
+
// is transfered on each present.
|
| 321 |
+
// If not queuing it is possible only
|
| 322 |
+
// a dirty region is updated
|
| 323 |
+
ULONGLONG cPixelsReceived;
|
| 324 |
+
|
| 325 |
+
// Total number of pixels drawn.
|
| 326 |
+
// Does not take into account if
|
| 327 |
+
// if the window is only partial drawn
|
| 328 |
+
// do to clipping or dirty rect management
|
| 329 |
+
ULONGLONG cPixelsDrawn;
|
| 330 |
+
|
| 331 |
+
// The number of buffers in the flipchain
|
| 332 |
+
// that are empty. An application can
|
| 333 |
+
// present that number of times and guarantee
|
| 334 |
+
// it won't be blocked waiting for a buffer to
|
| 335 |
+
// become empty to present to
|
| 336 |
+
DWM_FRAME_COUNT cBuffersEmpty;
|
| 337 |
+
|
| 338 |
+
} DWM_TIMING_INFO;
|
| 339 |
+
|
| 340 |
+
typedef enum
|
| 341 |
+
{
|
| 342 |
+
// Use the first source frame that
|
| 343 |
+
// includes the first refresh of the output frame
|
| 344 |
+
DWM_SOURCE_FRAME_SAMPLING_POINT,
|
| 345 |
+
|
| 346 |
+
// use the source frame that includes the most
|
| 347 |
+
// refreshes of out the output frame
|
| 348 |
+
// in case of multiple source frames with the
|
| 349 |
+
// same coverage the last will be used
|
| 350 |
+
DWM_SOURCE_FRAME_SAMPLING_COVERAGE,
|
| 351 |
+
|
| 352 |
+
// Sentinel value
|
| 353 |
+
DWM_SOURCE_FRAME_SAMPLING_LAST
|
| 354 |
+
} DWM_SOURCE_FRAME_SAMPLING;
|
| 355 |
+
|
| 356 |
+
EXTERN_C __declspec(selectany) const UINT c_DwmMaxQueuedBuffers = 8;
|
| 357 |
+
EXTERN_C __declspec(selectany) const UINT c_DwmMaxMonitors = 16;
|
| 358 |
+
EXTERN_C __declspec(selectany) const UINT c_DwmMaxAdapters = 16;
|
| 359 |
+
|
| 360 |
+
#pragma warning(push)
|
| 361 |
+
#pragma warning(disable:4201)
|
| 362 |
+
typedef struct _DWM_PRESENT_PARAMETERS
|
| 363 |
+
{
|
| 364 |
+
UINT32 cbSize;
|
| 365 |
+
BOOL fQueue;
|
| 366 |
+
DWM_FRAME_COUNT cRefreshStart;
|
| 367 |
+
UINT cBuffer;
|
| 368 |
+
BOOL fUseSourceRate;
|
| 369 |
+
UNSIGNED_RATIO rateSource;
|
| 370 |
+
UINT cRefreshesPerFrame;
|
| 371 |
+
DWM_SOURCE_FRAME_SAMPLING eSampling;
|
| 372 |
+
} DWM_PRESENT_PARAMETERS;
|
| 373 |
+
#pragma warning(pop)
|
| 374 |
+
|
| 375 |
+
|
| 376 |
+
|
| 377 |
+
#define DWM_FRAME_DURATION_DEFAULT -1
|
| 378 |
+
|
| 379 |
+
DWMAPI_(BOOL)
|
| 380 |
+
DwmDefWindowProc(
|
| 381 |
+
_In_ HWND hWnd,
|
| 382 |
+
UINT msg,
|
| 383 |
+
WPARAM wParam,
|
| 384 |
+
LPARAM lParam,
|
| 385 |
+
_Out_ LRESULT *plResult
|
| 386 |
+
);
|
| 387 |
+
|
| 388 |
+
DWMAPI
|
| 389 |
+
DwmEnableBlurBehindWindow(
|
| 390 |
+
HWND hWnd,
|
| 391 |
+
_In_ const DWM_BLURBEHIND* pBlurBehind
|
| 392 |
+
);
|
| 393 |
+
|
| 394 |
+
#define DWM_EC_DISABLECOMPOSITION 0
|
| 395 |
+
#define DWM_EC_ENABLECOMPOSITION 1
|
| 396 |
+
|
| 397 |
+
|
| 398 |
+
DWMAPI
|
| 399 |
+
DwmEnableComposition(
|
| 400 |
+
UINT uCompositionAction
|
| 401 |
+
);
|
| 402 |
+
|
| 403 |
+
#if NTDDI_VERSION >= NTDDI_WIN8
|
| 404 |
+
#pragma deprecated (DwmEnableComposition)
|
| 405 |
+
#endif
|
| 406 |
+
|
| 407 |
+
DWMAPI
|
| 408 |
+
DwmEnableMMCSS(
|
| 409 |
+
BOOL fEnableMMCSS
|
| 410 |
+
);
|
| 411 |
+
|
| 412 |
+
DWMAPI
|
| 413 |
+
DwmExtendFrameIntoClientArea(
|
| 414 |
+
HWND hWnd,
|
| 415 |
+
_In_ const MARGINS* pMarInset
|
| 416 |
+
);
|
| 417 |
+
|
| 418 |
+
DWMAPI
|
| 419 |
+
DwmGetColorizationColor(
|
| 420 |
+
_Out_ DWORD* pcrColorization,
|
| 421 |
+
_Out_ BOOL* pfOpaqueBlend
|
| 422 |
+
);
|
| 423 |
+
|
| 424 |
+
DWMAPI
|
| 425 |
+
DwmGetCompositionTimingInfo(
|
| 426 |
+
HWND hwnd,
|
| 427 |
+
_Out_ DWM_TIMING_INFO* pTimingInfo
|
| 428 |
+
);
|
| 429 |
+
|
| 430 |
+
|
| 431 |
+
DWMAPI
|
| 432 |
+
DwmGetWindowAttribute(
|
| 433 |
+
HWND hwnd,
|
| 434 |
+
DWORD dwAttribute,
|
| 435 |
+
_Out_writes_bytes_(cbAttribute) PVOID pvAttribute,
|
| 436 |
+
DWORD cbAttribute
|
| 437 |
+
);
|
| 438 |
+
|
| 439 |
+
DWMAPI
|
| 440 |
+
DwmIsCompositionEnabled(
|
| 441 |
+
_Out_ BOOL* pfEnabled
|
| 442 |
+
);
|
| 443 |
+
|
| 444 |
+
DWMAPI
|
| 445 |
+
DwmModifyPreviousDxFrameDuration(
|
| 446 |
+
HWND hwnd,
|
| 447 |
+
INT cRefreshes,
|
| 448 |
+
BOOL fRelative
|
| 449 |
+
);
|
| 450 |
+
|
| 451 |
+
DWMAPI
|
| 452 |
+
DwmQueryThumbnailSourceSize(
|
| 453 |
+
HTHUMBNAIL hThumbnail,
|
| 454 |
+
_Out_ PSIZE pSize
|
| 455 |
+
);
|
| 456 |
+
|
| 457 |
+
DWMAPI
|
| 458 |
+
DwmRegisterThumbnail(
|
| 459 |
+
HWND hwndDestination,
|
| 460 |
+
HWND hwndSource,
|
| 461 |
+
_Out_ PHTHUMBNAIL phThumbnailId
|
| 462 |
+
);
|
| 463 |
+
|
| 464 |
+
DWMAPI
|
| 465 |
+
DwmSetDxFrameDuration(
|
| 466 |
+
HWND hwnd,
|
| 467 |
+
INT cRefreshes
|
| 468 |
+
);
|
| 469 |
+
|
| 470 |
+
DWMAPI
|
| 471 |
+
DwmSetPresentParameters(
|
| 472 |
+
HWND hwnd,
|
| 473 |
+
_Inout_ DWM_PRESENT_PARAMETERS* pPresentParams
|
| 474 |
+
);
|
| 475 |
+
|
| 476 |
+
DWMAPI
|
| 477 |
+
DwmSetWindowAttribute(
|
| 478 |
+
HWND hwnd,
|
| 479 |
+
DWORD dwAttribute,
|
| 480 |
+
_In_reads_bytes_(cbAttribute) LPCVOID pvAttribute,
|
| 481 |
+
DWORD cbAttribute
|
| 482 |
+
);
|
| 483 |
+
|
| 484 |
+
DWMAPI
|
| 485 |
+
DwmUnregisterThumbnail(
|
| 486 |
+
HTHUMBNAIL hThumbnailId
|
| 487 |
+
);
|
| 488 |
+
|
| 489 |
+
DWMAPI
|
| 490 |
+
DwmUpdateThumbnailProperties(
|
| 491 |
+
HTHUMBNAIL hThumbnailId,
|
| 492 |
+
_In_ const DWM_THUMBNAIL_PROPERTIES* ptnProperties
|
| 493 |
+
);
|
| 494 |
+
|
| 495 |
+
#if(_WIN32_WINNT >= 0x0601)
|
| 496 |
+
#define DWM_SIT_DISPLAYFRAME 0x00000001 // Display a window frame around the provided bitmap
|
| 497 |
+
|
| 498 |
+
DWMAPI DwmSetIconicThumbnail(
|
| 499 |
+
HWND hwnd,
|
| 500 |
+
HBITMAP hbmp,
|
| 501 |
+
DWORD dwSITFlags
|
| 502 |
+
);
|
| 503 |
+
|
| 504 |
+
DWMAPI DwmSetIconicLivePreviewBitmap(
|
| 505 |
+
HWND hwnd,
|
| 506 |
+
HBITMAP hbmp,
|
| 507 |
+
_In_opt_ POINT *pptClient,
|
| 508 |
+
DWORD dwSITFlags
|
| 509 |
+
);
|
| 510 |
+
|
| 511 |
+
DWMAPI DwmInvalidateIconicBitmaps(
|
| 512 |
+
HWND hwnd
|
| 513 |
+
);
|
| 514 |
+
|
| 515 |
+
#endif /* _WIN32_WINNT >= 0x0601 */
|
| 516 |
+
|
| 517 |
+
DWMAPI
|
| 518 |
+
DwmAttachMilContent(
|
| 519 |
+
_In_ HWND hwnd
|
| 520 |
+
);
|
| 521 |
+
|
| 522 |
+
DWMAPI
|
| 523 |
+
DwmDetachMilContent(
|
| 524 |
+
_In_ HWND hwnd
|
| 525 |
+
);
|
| 526 |
+
|
| 527 |
+
DWMAPI
|
| 528 |
+
DwmFlush();
|
| 529 |
+
|
| 530 |
+
#ifndef MILCORE_KERNEL_COMPONENT
|
| 531 |
+
#ifndef _MIL_MATRIX3X2D_DEFINED
|
| 532 |
+
|
| 533 |
+
typedef struct _MilMatrix3x2D
|
| 534 |
+
{
|
| 535 |
+
DOUBLE S_11;
|
| 536 |
+
DOUBLE S_12;
|
| 537 |
+
DOUBLE S_21;
|
| 538 |
+
DOUBLE S_22;
|
| 539 |
+
DOUBLE DX;
|
| 540 |
+
DOUBLE DY;
|
| 541 |
+
} MilMatrix3x2D;
|
| 542 |
+
|
| 543 |
+
#define _MIL_MATRIX3X2D_DEFINED
|
| 544 |
+
|
| 545 |
+
#endif // _MIL_MATRIX3X2D_DEFINED
|
| 546 |
+
|
| 547 |
+
#ifndef MILCORE_MIL_MATRIX3X2D_COMPAT_TYPEDEF
|
| 548 |
+
// Compatibility for Vista dwm api.
|
| 549 |
+
typedef MilMatrix3x2D MIL_MATRIX3X2D;
|
| 550 |
+
#define MILCORE_MIL_MATRIX3X2D_COMPAT_TYPEDEF
|
| 551 |
+
#endif // MILCORE_MIL_MATRIX3X2D_COMPAT_TYPEDEF
|
| 552 |
+
|
| 553 |
+
DWMAPI
|
| 554 |
+
DwmGetGraphicsStreamTransformHint(
|
| 555 |
+
UINT uIndex,
|
| 556 |
+
_Out_ MilMatrix3x2D *pTransform
|
| 557 |
+
);
|
| 558 |
+
|
| 559 |
+
DWMAPI
|
| 560 |
+
DwmGetGraphicsStreamClient(
|
| 561 |
+
UINT uIndex,
|
| 562 |
+
_Out_ UUID *pClientUuid
|
| 563 |
+
);
|
| 564 |
+
#endif // MILCORE_KERNEL_COMPONENT
|
| 565 |
+
|
| 566 |
+
DWMAPI
|
| 567 |
+
DwmGetTransportAttributes(
|
| 568 |
+
_Out_writes_(1) BOOL *pfIsRemoting,
|
| 569 |
+
_Out_writes_(1) BOOL *pfIsConnected,
|
| 570 |
+
_Out_writes_(1) DWORD *pDwGeneration
|
| 571 |
+
);
|
| 572 |
+
|
| 573 |
+
|
| 574 |
+
enum DWMTRANSITION_OWNEDWINDOW_TARGET
|
| 575 |
+
{
|
| 576 |
+
DWMTRANSITION_OWNEDWINDOW_NULL = -1,
|
| 577 |
+
DWMTRANSITION_OWNEDWINDOW_REPOSITION = 0,
|
| 578 |
+
};
|
| 579 |
+
|
| 580 |
+
DWMAPI
|
| 581 |
+
DwmTransitionOwnedWindow(
|
| 582 |
+
HWND hwnd,
|
| 583 |
+
enum DWMTRANSITION_OWNEDWINDOW_TARGET target
|
| 584 |
+
);
|
| 585 |
+
|
| 586 |
+
|
| 587 |
+
#if (NTDDI_VERSION >= NTDDI_WIN8)
|
| 588 |
+
|
| 589 |
+
enum GESTURE_TYPE
|
| 590 |
+
{
|
| 591 |
+
GT_PEN_TAP = 0,
|
| 592 |
+
GT_PEN_DOUBLETAP = 1,
|
| 593 |
+
GT_PEN_RIGHTTAP = 2,
|
| 594 |
+
GT_PEN_PRESSANDHOLD = 3,
|
| 595 |
+
GT_PEN_PRESSANDHOLDABORT = 4,
|
| 596 |
+
GT_TOUCH_TAP = 5,
|
| 597 |
+
GT_TOUCH_DOUBLETAP = 6,
|
| 598 |
+
GT_TOUCH_RIGHTTAP = 7,
|
| 599 |
+
GT_TOUCH_PRESSANDHOLD = 8,
|
| 600 |
+
GT_TOUCH_PRESSANDHOLDABORT = 9,
|
| 601 |
+
GT_TOUCH_PRESSANDTAP = 10,
|
| 602 |
+
};
|
| 603 |
+
|
| 604 |
+
DWMAPI
|
| 605 |
+
DwmRenderGesture(
|
| 606 |
+
_In_ enum GESTURE_TYPE gt,
|
| 607 |
+
_In_ UINT cContacts,
|
| 608 |
+
_In_reads_(cContacts) const DWORD *pdwPointerID,
|
| 609 |
+
_In_reads_(cContacts) const POINT *pPoints
|
| 610 |
+
);
|
| 611 |
+
|
| 612 |
+
DWMAPI
|
| 613 |
+
DwmTetherContact(
|
| 614 |
+
DWORD dwPointerID,
|
| 615 |
+
BOOL fEnable,
|
| 616 |
+
POINT ptTether
|
| 617 |
+
);
|
| 618 |
+
|
| 619 |
+
enum DWM_SHOWCONTACT
|
| 620 |
+
{
|
| 621 |
+
DWMSC_DOWN = 0x00000001,
|
| 622 |
+
DWMSC_UP = 0x00000002,
|
| 623 |
+
DWMSC_DRAG = 0x00000004,
|
| 624 |
+
DWMSC_HOLD = 0x00000008,
|
| 625 |
+
DWMSC_PENBARREL = 0x00000010,
|
| 626 |
+
|
| 627 |
+
DWMSC_NONE = 0x00000000,
|
| 628 |
+
DWMSC_ALL = 0xFFFFFFFF
|
| 629 |
+
};
|
| 630 |
+
DEFINE_ENUM_FLAG_OPERATORS(DWM_SHOWCONTACT);
|
| 631 |
+
|
| 632 |
+
DWMAPI
|
| 633 |
+
DwmShowContact(
|
| 634 |
+
DWORD dwPointerID,
|
| 635 |
+
enum DWM_SHOWCONTACT eShowContact
|
| 636 |
+
);
|
| 637 |
+
#endif // NTDDI_WIN8
|
| 638 |
+
|
| 639 |
+
|
| 640 |
+
#if (NTDDI_VERSION >= NTDDI_WIN10_RS4)
|
| 641 |
+
|
| 642 |
+
enum DWM_TAB_WINDOW_REQUIREMENTS
|
| 643 |
+
{
|
| 644 |
+
// This result means the window meets all requirements requested.
|
| 645 |
+
DWMTWR_NONE = 0x0000,
|
| 646 |
+
|
| 647 |
+
// In some configurations, admin/user setting or mode of the system means that windows won't be tabbed
|
| 648 |
+
// This requirement says that the system/mode must implement tabbing and if it does not
|
| 649 |
+
// nothing can be done to change this.
|
| 650 |
+
DWMTWR_IMPLEMENTED_BY_SYSTEM = 0x0001,
|
| 651 |
+
|
| 652 |
+
// The window has an owner or parent so is ineligible for tabbing.
|
| 653 |
+
DWMTWR_WINDOW_RELATIONSHIP = 0x0002,
|
| 654 |
+
|
| 655 |
+
// The window has styles that make it ineligible for tabbing.
|
| 656 |
+
// To be eligible windows must:
|
| 657 |
+
// Have the WS_OVERLAPPEDWINDOW (WS_CAPTION, WS_THICKFRAME, etc.) styles set.
|
| 658 |
+
// Not have WS_POPUP, WS_CHILD or WS_DLGFRAME set.
|
| 659 |
+
// Not have WS_EX_TOPMOST or WS_EX_TOOLWINDOW set.
|
| 660 |
+
DWMTWR_WINDOW_STYLES = 0x0004,
|
| 661 |
+
|
| 662 |
+
// The window has a region (set using SetWindowRgn) making it ineligible.
|
| 663 |
+
DWMTWR_WINDOW_REGION = 0x0008,
|
| 664 |
+
|
| 665 |
+
// The window is ineligible due to its Dwm configuration.
|
| 666 |
+
// It must not extended its client area into the title bar using DwmExtendFrameIntoClientArea
|
| 667 |
+
// It must not have DWMWA_NCRENDERING_POLICY set to DWMNCRP_ENABLED
|
| 668 |
+
DWMTWR_WINDOW_DWM_ATTRIBUTES = 0x0010,
|
| 669 |
+
|
| 670 |
+
// The window is ineligible due to it's margins, most likely due to custom handling in WM_NCCALCSIZE.
|
| 671 |
+
// The window must use the default window margins for the non-client area.
|
| 672 |
+
DWMTWR_WINDOW_MARGINS = 0x0020,
|
| 673 |
+
|
| 674 |
+
// The window has been explicitly opted out by setting DWMWA_TABBING_ENABLED to FALSE.
|
| 675 |
+
DWMTWR_TABBING_ENABLED = 0x0040,
|
| 676 |
+
|
| 677 |
+
// The user has configured this application to not participate in tabbing.
|
| 678 |
+
DWMTWR_USER_POLICY = 0x0080,
|
| 679 |
+
|
| 680 |
+
// The group policy has configured this application to not participate in tabbing.
|
| 681 |
+
DWMTWR_GROUP_POLICY = 0x0100,
|
| 682 |
+
|
| 683 |
+
// This is set if app compat has blocked tabs for this window. Can be overridden per window by setting
|
| 684 |
+
// DWMWA_TABBING_ENABLED to TRUE. That does not override any other tabbing requirements.
|
| 685 |
+
DWMTWR_APP_COMPAT = 0x0200
|
| 686 |
+
};
|
| 687 |
+
DEFINE_ENUM_FLAG_OPERATORS(DWM_TAB_WINDOW_REQUIREMENTS);
|
| 688 |
+
|
| 689 |
+
// Checks the requirements needed to get tabs in the application title bar.
|
| 690 |
+
DWMAPI DwmGetUnmetTabRequirements(_In_opt_ HWND appWindow, _Out_ enum DWM_TAB_WINDOW_REQUIREMENTS* value);
|
| 691 |
+
|
| 692 |
+
#endif // NTDDI_WIN10_RS4
|
| 693 |
+
|
| 694 |
+
|
| 695 |
+
#include <poppack.h>
|
| 696 |
+
|
| 697 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 698 |
+
#endif // _DWMAPI_H_
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwrite.h
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwrite_1.h
ADDED
|
@@ -0,0 +1,1926 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//+--------------------------------------------------------------------------
|
| 2 |
+
//
|
| 3 |
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
| 4 |
+
//
|
| 5 |
+
// Abstract:
|
| 6 |
+
// DirectX Typography Services public API definitions.
|
| 7 |
+
//
|
| 8 |
+
//----------------------------------------------------------------------------
|
| 9 |
+
|
| 10 |
+
#ifndef DWRITE_1_H_INCLUDED
|
| 11 |
+
#define DWRITE_1_H_INCLUDED
|
| 12 |
+
|
| 13 |
+
#pragma once
|
| 14 |
+
|
| 15 |
+
#include <DWrite.h>
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
/// <summary>
|
| 20 |
+
/// The overall kind of family.
|
| 21 |
+
/// </summary>
|
| 22 |
+
enum DWRITE_PANOSE_FAMILY
|
| 23 |
+
{
|
| 24 |
+
DWRITE_PANOSE_FAMILY_ANY = 0,
|
| 25 |
+
DWRITE_PANOSE_FAMILY_NO_FIT = 1,
|
| 26 |
+
DWRITE_PANOSE_FAMILY_TEXT_DISPLAY = 2,
|
| 27 |
+
DWRITE_PANOSE_FAMILY_SCRIPT = 3, // or hand written
|
| 28 |
+
DWRITE_PANOSE_FAMILY_DECORATIVE = 4,
|
| 29 |
+
DWRITE_PANOSE_FAMILY_SYMBOL = 5, // or symbol
|
| 30 |
+
DWRITE_PANOSE_FAMILY_PICTORIAL = DWRITE_PANOSE_FAMILY_SYMBOL
|
| 31 |
+
};
|
| 32 |
+
|
| 33 |
+
/// <summary>
|
| 34 |
+
/// Appearance of the serifs.
|
| 35 |
+
/// Present for families: 2-text
|
| 36 |
+
/// </summary>
|
| 37 |
+
enum DWRITE_PANOSE_SERIF_STYLE
|
| 38 |
+
{
|
| 39 |
+
DWRITE_PANOSE_SERIF_STYLE_ANY = 0,
|
| 40 |
+
DWRITE_PANOSE_SERIF_STYLE_NO_FIT = 1,
|
| 41 |
+
DWRITE_PANOSE_SERIF_STYLE_COVE = 2,
|
| 42 |
+
DWRITE_PANOSE_SERIF_STYLE_OBTUSE_COVE = 3,
|
| 43 |
+
DWRITE_PANOSE_SERIF_STYLE_SQUARE_COVE = 4,
|
| 44 |
+
DWRITE_PANOSE_SERIF_STYLE_OBTUSE_SQUARE_COVE = 5,
|
| 45 |
+
DWRITE_PANOSE_SERIF_STYLE_SQUARE = 6,
|
| 46 |
+
DWRITE_PANOSE_SERIF_STYLE_THIN = 7,
|
| 47 |
+
DWRITE_PANOSE_SERIF_STYLE_OVAL = 8,
|
| 48 |
+
DWRITE_PANOSE_SERIF_STYLE_EXAGGERATED = 9,
|
| 49 |
+
DWRITE_PANOSE_SERIF_STYLE_TRIANGLE = 10,
|
| 50 |
+
DWRITE_PANOSE_SERIF_STYLE_NORMAL_SANS = 11,
|
| 51 |
+
DWRITE_PANOSE_SERIF_STYLE_OBTUSE_SANS = 12,
|
| 52 |
+
DWRITE_PANOSE_SERIF_STYLE_PERPENDICULAR_SANS = 13,
|
| 53 |
+
DWRITE_PANOSE_SERIF_STYLE_FLARED = 14,
|
| 54 |
+
DWRITE_PANOSE_SERIF_STYLE_ROUNDED = 15,
|
| 55 |
+
DWRITE_PANOSE_SERIF_STYLE_SCRIPT = 16,
|
| 56 |
+
DWRITE_PANOSE_SERIF_STYLE_PERP_SANS = DWRITE_PANOSE_SERIF_STYLE_PERPENDICULAR_SANS,
|
| 57 |
+
DWRITE_PANOSE_SERIF_STYLE_BONE = DWRITE_PANOSE_SERIF_STYLE_OVAL
|
| 58 |
+
};
|
| 59 |
+
|
| 60 |
+
/// <summary>
|
| 61 |
+
/// PANOSE font weights. These roughly correspond to the DWRITE_FONT_WEIGHT's
|
| 62 |
+
/// using (panose_weight - 2) * 100.
|
| 63 |
+
/// Present for families: 2-text, 3-script, 4-decorative, 5-symbol
|
| 64 |
+
/// </summary>
|
| 65 |
+
enum DWRITE_PANOSE_WEIGHT
|
| 66 |
+
{
|
| 67 |
+
DWRITE_PANOSE_WEIGHT_ANY = 0,
|
| 68 |
+
DWRITE_PANOSE_WEIGHT_NO_FIT = 1,
|
| 69 |
+
DWRITE_PANOSE_WEIGHT_VERY_LIGHT = 2,
|
| 70 |
+
DWRITE_PANOSE_WEIGHT_LIGHT = 3,
|
| 71 |
+
DWRITE_PANOSE_WEIGHT_THIN = 4,
|
| 72 |
+
DWRITE_PANOSE_WEIGHT_BOOK = 5,
|
| 73 |
+
DWRITE_PANOSE_WEIGHT_MEDIUM = 6,
|
| 74 |
+
DWRITE_PANOSE_WEIGHT_DEMI = 7,
|
| 75 |
+
DWRITE_PANOSE_WEIGHT_BOLD = 8,
|
| 76 |
+
DWRITE_PANOSE_WEIGHT_HEAVY = 9,
|
| 77 |
+
DWRITE_PANOSE_WEIGHT_BLACK = 10,
|
| 78 |
+
DWRITE_PANOSE_WEIGHT_EXTRA_BLACK = 11,
|
| 79 |
+
DWRITE_PANOSE_WEIGHT_NORD = DWRITE_PANOSE_WEIGHT_EXTRA_BLACK
|
| 80 |
+
};
|
| 81 |
+
|
| 82 |
+
/// <summary>
|
| 83 |
+
/// Proportion of the glyph shape considering additional detail to standard
|
| 84 |
+
/// characters.
|
| 85 |
+
/// Present for families: 2-text
|
| 86 |
+
/// </summary>
|
| 87 |
+
enum DWRITE_PANOSE_PROPORTION
|
| 88 |
+
{
|
| 89 |
+
DWRITE_PANOSE_PROPORTION_ANY = 0,
|
| 90 |
+
DWRITE_PANOSE_PROPORTION_NO_FIT = 1,
|
| 91 |
+
DWRITE_PANOSE_PROPORTION_OLD_STYLE = 2,
|
| 92 |
+
DWRITE_PANOSE_PROPORTION_MODERN = 3,
|
| 93 |
+
DWRITE_PANOSE_PROPORTION_EVEN_WIDTH = 4,
|
| 94 |
+
DWRITE_PANOSE_PROPORTION_EXPANDED = 5,
|
| 95 |
+
DWRITE_PANOSE_PROPORTION_CONDENSED = 6,
|
| 96 |
+
DWRITE_PANOSE_PROPORTION_VERY_EXPANDED = 7,
|
| 97 |
+
DWRITE_PANOSE_PROPORTION_VERY_CONDENSED = 8,
|
| 98 |
+
DWRITE_PANOSE_PROPORTION_MONOSPACED = 9
|
| 99 |
+
};
|
| 100 |
+
|
| 101 |
+
/// <summary>
|
| 102 |
+
/// Ratio between thickest and thinnest point of the stroke for a letter such
|
| 103 |
+
/// as uppercase 'O'.
|
| 104 |
+
/// Present for families: 2-text, 3-script, 4-decorative
|
| 105 |
+
/// </summary>
|
| 106 |
+
enum DWRITE_PANOSE_CONTRAST
|
| 107 |
+
{
|
| 108 |
+
DWRITE_PANOSE_CONTRAST_ANY = 0,
|
| 109 |
+
DWRITE_PANOSE_CONTRAST_NO_FIT = 1,
|
| 110 |
+
DWRITE_PANOSE_CONTRAST_NONE = 2,
|
| 111 |
+
DWRITE_PANOSE_CONTRAST_VERY_LOW = 3,
|
| 112 |
+
DWRITE_PANOSE_CONTRAST_LOW = 4,
|
| 113 |
+
DWRITE_PANOSE_CONTRAST_MEDIUM_LOW = 5,
|
| 114 |
+
DWRITE_PANOSE_CONTRAST_MEDIUM = 6,
|
| 115 |
+
DWRITE_PANOSE_CONTRAST_MEDIUM_HIGH = 7,
|
| 116 |
+
DWRITE_PANOSE_CONTRAST_HIGH = 8,
|
| 117 |
+
DWRITE_PANOSE_CONTRAST_VERY_HIGH = 9,
|
| 118 |
+
DWRITE_PANOSE_CONTRAST_HORIZONTAL_LOW = 10,
|
| 119 |
+
DWRITE_PANOSE_CONTRAST_HORIZONTAL_MEDIUM = 11,
|
| 120 |
+
DWRITE_PANOSE_CONTRAST_HORIZONTAL_HIGH = 12,
|
| 121 |
+
DWRITE_PANOSE_CONTRAST_BROKEN = 13
|
| 122 |
+
};
|
| 123 |
+
|
| 124 |
+
/// <summary>
|
| 125 |
+
/// Relationship between thin and thick stems.
|
| 126 |
+
/// Present for families: 2-text
|
| 127 |
+
/// </summary>
|
| 128 |
+
enum DWRITE_PANOSE_STROKE_VARIATION
|
| 129 |
+
{
|
| 130 |
+
DWRITE_PANOSE_STROKE_VARIATION_ANY = 0,
|
| 131 |
+
DWRITE_PANOSE_STROKE_VARIATION_NO_FIT = 1,
|
| 132 |
+
DWRITE_PANOSE_STROKE_VARIATION_NO_VARIATION = 2,
|
| 133 |
+
DWRITE_PANOSE_STROKE_VARIATION_GRADUAL_DIAGONAL = 3,
|
| 134 |
+
DWRITE_PANOSE_STROKE_VARIATION_GRADUAL_TRANSITIONAL = 4,
|
| 135 |
+
DWRITE_PANOSE_STROKE_VARIATION_GRADUAL_VERTICAL = 5,
|
| 136 |
+
DWRITE_PANOSE_STROKE_VARIATION_GRADUAL_HORIZONTAL = 6,
|
| 137 |
+
DWRITE_PANOSE_STROKE_VARIATION_RAPID_VERTICAL = 7,
|
| 138 |
+
DWRITE_PANOSE_STROKE_VARIATION_RAPID_HORIZONTAL = 8,
|
| 139 |
+
DWRITE_PANOSE_STROKE_VARIATION_INSTANT_VERTICAL = 9,
|
| 140 |
+
DWRITE_PANOSE_STROKE_VARIATION_INSTANT_HORIZONTAL = 10
|
| 141 |
+
};
|
| 142 |
+
|
| 143 |
+
/// <summary>
|
| 144 |
+
/// Style of termination of stems and rounded letterforms.
|
| 145 |
+
/// Present for families: 2-text
|
| 146 |
+
/// </summary>
|
| 147 |
+
enum DWRITE_PANOSE_ARM_STYLE
|
| 148 |
+
{
|
| 149 |
+
DWRITE_PANOSE_ARM_STYLE_ANY = 0,
|
| 150 |
+
DWRITE_PANOSE_ARM_STYLE_NO_FIT = 1,
|
| 151 |
+
DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_HORIZONTAL = 2,
|
| 152 |
+
DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_WEDGE = 3,
|
| 153 |
+
DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_VERTICAL = 4,
|
| 154 |
+
DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_SINGLE_SERIF = 5,
|
| 155 |
+
DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_DOUBLE_SERIF = 6,
|
| 156 |
+
DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_HORIZONTAL = 7,
|
| 157 |
+
DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_WEDGE = 8,
|
| 158 |
+
DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_VERTICAL = 9,
|
| 159 |
+
DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_SINGLE_SERIF = 10,
|
| 160 |
+
DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_DOUBLE_SERIF = 11,
|
| 161 |
+
DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_HORZ = DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_HORIZONTAL,
|
| 162 |
+
DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_VERT = DWRITE_PANOSE_ARM_STYLE_STRAIGHT_ARMS_VERTICAL,
|
| 163 |
+
DWRITE_PANOSE_ARM_STYLE_BENT_ARMS_HORZ = DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_HORIZONTAL,
|
| 164 |
+
DWRITE_PANOSE_ARM_STYLE_BENT_ARMS_WEDGE = DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_WEDGE,
|
| 165 |
+
DWRITE_PANOSE_ARM_STYLE_BENT_ARMS_VERT = DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_VERTICAL,
|
| 166 |
+
DWRITE_PANOSE_ARM_STYLE_BENT_ARMS_SINGLE_SERIF = DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_SINGLE_SERIF,
|
| 167 |
+
DWRITE_PANOSE_ARM_STYLE_BENT_ARMS_DOUBLE_SERIF = DWRITE_PANOSE_ARM_STYLE_NONSTRAIGHT_ARMS_DOUBLE_SERIF
|
| 168 |
+
};
|
| 169 |
+
|
| 170 |
+
/// <summary>
|
| 171 |
+
/// Roundness of letterform.
|
| 172 |
+
/// Present for families: 2-text
|
| 173 |
+
/// </summary>
|
| 174 |
+
enum DWRITE_PANOSE_LETTERFORM
|
| 175 |
+
{
|
| 176 |
+
DWRITE_PANOSE_LETTERFORM_ANY = 0,
|
| 177 |
+
DWRITE_PANOSE_LETTERFORM_NO_FIT = 1,
|
| 178 |
+
DWRITE_PANOSE_LETTERFORM_NORMAL_CONTACT = 2,
|
| 179 |
+
DWRITE_PANOSE_LETTERFORM_NORMAL_WEIGHTED = 3,
|
| 180 |
+
DWRITE_PANOSE_LETTERFORM_NORMAL_BOXED = 4,
|
| 181 |
+
DWRITE_PANOSE_LETTERFORM_NORMAL_FLATTENED = 5,
|
| 182 |
+
DWRITE_PANOSE_LETTERFORM_NORMAL_ROUNDED = 6,
|
| 183 |
+
DWRITE_PANOSE_LETTERFORM_NORMAL_OFF_CENTER = 7,
|
| 184 |
+
DWRITE_PANOSE_LETTERFORM_NORMAL_SQUARE = 8,
|
| 185 |
+
DWRITE_PANOSE_LETTERFORM_OBLIQUE_CONTACT = 9,
|
| 186 |
+
DWRITE_PANOSE_LETTERFORM_OBLIQUE_WEIGHTED = 10,
|
| 187 |
+
DWRITE_PANOSE_LETTERFORM_OBLIQUE_BOXED = 11,
|
| 188 |
+
DWRITE_PANOSE_LETTERFORM_OBLIQUE_FLATTENED = 12,
|
| 189 |
+
DWRITE_PANOSE_LETTERFORM_OBLIQUE_ROUNDED = 13,
|
| 190 |
+
DWRITE_PANOSE_LETTERFORM_OBLIQUE_OFF_CENTER = 14,
|
| 191 |
+
DWRITE_PANOSE_LETTERFORM_OBLIQUE_SQUARE = 15
|
| 192 |
+
};
|
| 193 |
+
|
| 194 |
+
/// <summary>
|
| 195 |
+
/// Placement of midline across uppercase characters and treatment of diagonal
|
| 196 |
+
/// stem apexes.
|
| 197 |
+
/// Present for families: 2-text
|
| 198 |
+
/// </summary>
|
| 199 |
+
enum DWRITE_PANOSE_MIDLINE
|
| 200 |
+
{
|
| 201 |
+
DWRITE_PANOSE_MIDLINE_ANY = 0,
|
| 202 |
+
DWRITE_PANOSE_MIDLINE_NO_FIT = 1,
|
| 203 |
+
DWRITE_PANOSE_MIDLINE_STANDARD_TRIMMED = 2,
|
| 204 |
+
DWRITE_PANOSE_MIDLINE_STANDARD_POINTED = 3,
|
| 205 |
+
DWRITE_PANOSE_MIDLINE_STANDARD_SERIFED = 4,
|
| 206 |
+
DWRITE_PANOSE_MIDLINE_HIGH_TRIMMED = 5,
|
| 207 |
+
DWRITE_PANOSE_MIDLINE_HIGH_POINTED = 6,
|
| 208 |
+
DWRITE_PANOSE_MIDLINE_HIGH_SERIFED = 7,
|
| 209 |
+
DWRITE_PANOSE_MIDLINE_CONSTANT_TRIMMED = 8,
|
| 210 |
+
DWRITE_PANOSE_MIDLINE_CONSTANT_POINTED = 9,
|
| 211 |
+
DWRITE_PANOSE_MIDLINE_CONSTANT_SERIFED = 10,
|
| 212 |
+
DWRITE_PANOSE_MIDLINE_LOW_TRIMMED = 11,
|
| 213 |
+
DWRITE_PANOSE_MIDLINE_LOW_POINTED = 12,
|
| 214 |
+
DWRITE_PANOSE_MIDLINE_LOW_SERIFED = 13
|
| 215 |
+
};
|
| 216 |
+
|
| 217 |
+
/// <summary>
|
| 218 |
+
/// Relative size of lowercase letters and treament of diacritic marks
|
| 219 |
+
/// and uppercase glyphs.
|
| 220 |
+
/// Present for families: 2-text
|
| 221 |
+
/// </summary>
|
| 222 |
+
enum DWRITE_PANOSE_XHEIGHT
|
| 223 |
+
{
|
| 224 |
+
DWRITE_PANOSE_XHEIGHT_ANY = 0,
|
| 225 |
+
DWRITE_PANOSE_XHEIGHT_NO_FIT = 1,
|
| 226 |
+
DWRITE_PANOSE_XHEIGHT_CONSTANT_SMALL = 2,
|
| 227 |
+
DWRITE_PANOSE_XHEIGHT_CONSTANT_STANDARD = 3,
|
| 228 |
+
DWRITE_PANOSE_XHEIGHT_CONSTANT_LARGE = 4,
|
| 229 |
+
DWRITE_PANOSE_XHEIGHT_DUCKING_SMALL = 5,
|
| 230 |
+
DWRITE_PANOSE_XHEIGHT_DUCKING_STANDARD = 6,
|
| 231 |
+
DWRITE_PANOSE_XHEIGHT_DUCKING_LARGE = 7,
|
| 232 |
+
DWRITE_PANOSE_XHEIGHT_CONSTANT_STD = DWRITE_PANOSE_XHEIGHT_CONSTANT_STANDARD,
|
| 233 |
+
DWRITE_PANOSE_XHEIGHT_DUCKING_STD = DWRITE_PANOSE_XHEIGHT_DUCKING_STANDARD
|
| 234 |
+
};
|
| 235 |
+
|
| 236 |
+
/// <summary>
|
| 237 |
+
/// Kind of tool used to create character forms.
|
| 238 |
+
/// Present for families: 3-script
|
| 239 |
+
/// </summary>
|
| 240 |
+
enum DWRITE_PANOSE_TOOL_KIND
|
| 241 |
+
{
|
| 242 |
+
DWRITE_PANOSE_TOOL_KIND_ANY = 0,
|
| 243 |
+
DWRITE_PANOSE_TOOL_KIND_NO_FIT = 1,
|
| 244 |
+
DWRITE_PANOSE_TOOL_KIND_FLAT_NIB = 2,
|
| 245 |
+
DWRITE_PANOSE_TOOL_KIND_PRESSURE_POINT = 3,
|
| 246 |
+
DWRITE_PANOSE_TOOL_KIND_ENGRAVED = 4,
|
| 247 |
+
DWRITE_PANOSE_TOOL_KIND_BALL = 5,
|
| 248 |
+
DWRITE_PANOSE_TOOL_KIND_BRUSH = 6,
|
| 249 |
+
DWRITE_PANOSE_TOOL_KIND_ROUGH = 7,
|
| 250 |
+
DWRITE_PANOSE_TOOL_KIND_FELT_PEN_BRUSH_TIP = 8,
|
| 251 |
+
DWRITE_PANOSE_TOOL_KIND_WILD_BRUSH = 9
|
| 252 |
+
};
|
| 253 |
+
|
| 254 |
+
/// <summary>
|
| 255 |
+
/// Monospace vs proportional.
|
| 256 |
+
/// Present for families: 3-script, 5-symbol
|
| 257 |
+
/// </summary>
|
| 258 |
+
enum DWRITE_PANOSE_SPACING
|
| 259 |
+
{
|
| 260 |
+
DWRITE_PANOSE_SPACING_ANY = 0,
|
| 261 |
+
DWRITE_PANOSE_SPACING_NO_FIT = 1,
|
| 262 |
+
DWRITE_PANOSE_SPACING_PROPORTIONAL_SPACED = 2,
|
| 263 |
+
DWRITE_PANOSE_SPACING_MONOSPACED = 3,
|
| 264 |
+
};
|
| 265 |
+
|
| 266 |
+
/// <summary>
|
| 267 |
+
/// Ratio between width and height of the face.
|
| 268 |
+
/// Present for families: 3-script
|
| 269 |
+
/// </summary>
|
| 270 |
+
enum DWRITE_PANOSE_ASPECT_RATIO
|
| 271 |
+
{
|
| 272 |
+
DWRITE_PANOSE_ASPECT_RATIO_ANY = 0,
|
| 273 |
+
DWRITE_PANOSE_ASPECT_RATIO_NO_FIT = 1,
|
| 274 |
+
DWRITE_PANOSE_ASPECT_RATIO_VERY_CONDENSED = 2,
|
| 275 |
+
DWRITE_PANOSE_ASPECT_RATIO_CONDENSED = 3,
|
| 276 |
+
DWRITE_PANOSE_ASPECT_RATIO_NORMAL = 4,
|
| 277 |
+
DWRITE_PANOSE_ASPECT_RATIO_EXPANDED = 5,
|
| 278 |
+
DWRITE_PANOSE_ASPECT_RATIO_VERY_EXPANDED = 6
|
| 279 |
+
};
|
| 280 |
+
|
| 281 |
+
/// <summary>
|
| 282 |
+
/// Topology of letterforms.
|
| 283 |
+
/// Present for families: 3-script
|
| 284 |
+
/// </summary>
|
| 285 |
+
enum DWRITE_PANOSE_SCRIPT_TOPOLOGY
|
| 286 |
+
{
|
| 287 |
+
DWRITE_PANOSE_SCRIPT_TOPOLOGY_ANY = 0,
|
| 288 |
+
DWRITE_PANOSE_SCRIPT_TOPOLOGY_NO_FIT = 1,
|
| 289 |
+
DWRITE_PANOSE_SCRIPT_TOPOLOGY_ROMAN_DISCONNECTED = 2,
|
| 290 |
+
DWRITE_PANOSE_SCRIPT_TOPOLOGY_ROMAN_TRAILING = 3,
|
| 291 |
+
DWRITE_PANOSE_SCRIPT_TOPOLOGY_ROMAN_CONNECTED = 4,
|
| 292 |
+
DWRITE_PANOSE_SCRIPT_TOPOLOGY_CURSIVE_DISCONNECTED = 5,
|
| 293 |
+
DWRITE_PANOSE_SCRIPT_TOPOLOGY_CURSIVE_TRAILING = 6,
|
| 294 |
+
DWRITE_PANOSE_SCRIPT_TOPOLOGY_CURSIVE_CONNECTED = 7,
|
| 295 |
+
DWRITE_PANOSE_SCRIPT_TOPOLOGY_BLACKLETTER_DISCONNECTED = 8,
|
| 296 |
+
DWRITE_PANOSE_SCRIPT_TOPOLOGY_BLACKLETTER_TRAILING = 9,
|
| 297 |
+
DWRITE_PANOSE_SCRIPT_TOPOLOGY_BLACKLETTER_CONNECTED = 10
|
| 298 |
+
};
|
| 299 |
+
|
| 300 |
+
/// <summary>
|
| 301 |
+
/// General look of the face, considering slope and tails.
|
| 302 |
+
/// Present for families: 3-script
|
| 303 |
+
/// </summary>
|
| 304 |
+
enum DWRITE_PANOSE_SCRIPT_FORM
|
| 305 |
+
{
|
| 306 |
+
DWRITE_PANOSE_SCRIPT_FORM_ANY = 0,
|
| 307 |
+
DWRITE_PANOSE_SCRIPT_FORM_NO_FIT = 1,
|
| 308 |
+
DWRITE_PANOSE_SCRIPT_FORM_UPRIGHT_NO_WRAPPING = 2,
|
| 309 |
+
DWRITE_PANOSE_SCRIPT_FORM_UPRIGHT_SOME_WRAPPING = 3,
|
| 310 |
+
DWRITE_PANOSE_SCRIPT_FORM_UPRIGHT_MORE_WRAPPING = 4,
|
| 311 |
+
DWRITE_PANOSE_SCRIPT_FORM_UPRIGHT_EXTREME_WRAPPING = 5,
|
| 312 |
+
DWRITE_PANOSE_SCRIPT_FORM_OBLIQUE_NO_WRAPPING = 6,
|
| 313 |
+
DWRITE_PANOSE_SCRIPT_FORM_OBLIQUE_SOME_WRAPPING = 7,
|
| 314 |
+
DWRITE_PANOSE_SCRIPT_FORM_OBLIQUE_MORE_WRAPPING = 8,
|
| 315 |
+
DWRITE_PANOSE_SCRIPT_FORM_OBLIQUE_EXTREME_WRAPPING = 9,
|
| 316 |
+
DWRITE_PANOSE_SCRIPT_FORM_EXAGGERATED_NO_WRAPPING = 10,
|
| 317 |
+
DWRITE_PANOSE_SCRIPT_FORM_EXAGGERATED_SOME_WRAPPING = 11,
|
| 318 |
+
DWRITE_PANOSE_SCRIPT_FORM_EXAGGERATED_MORE_WRAPPING = 12,
|
| 319 |
+
DWRITE_PANOSE_SCRIPT_FORM_EXAGGERATED_EXTREME_WRAPPING = 13
|
| 320 |
+
};
|
| 321 |
+
|
| 322 |
+
/// <summary>
|
| 323 |
+
/// How character ends and miniscule ascenders are treated.
|
| 324 |
+
/// Present for families: 3-script
|
| 325 |
+
/// </summary>
|
| 326 |
+
enum DWRITE_PANOSE_FINIALS
|
| 327 |
+
{
|
| 328 |
+
DWRITE_PANOSE_FINIALS_ANY = 0,
|
| 329 |
+
DWRITE_PANOSE_FINIALS_NO_FIT = 1,
|
| 330 |
+
DWRITE_PANOSE_FINIALS_NONE_NO_LOOPS = 2,
|
| 331 |
+
DWRITE_PANOSE_FINIALS_NONE_CLOSED_LOOPS = 3,
|
| 332 |
+
DWRITE_PANOSE_FINIALS_NONE_OPEN_LOOPS = 4,
|
| 333 |
+
DWRITE_PANOSE_FINIALS_SHARP_NO_LOOPS = 5,
|
| 334 |
+
DWRITE_PANOSE_FINIALS_SHARP_CLOSED_LOOPS = 6,
|
| 335 |
+
DWRITE_PANOSE_FINIALS_SHARP_OPEN_LOOPS = 7,
|
| 336 |
+
DWRITE_PANOSE_FINIALS_TAPERED_NO_LOOPS = 8,
|
| 337 |
+
DWRITE_PANOSE_FINIALS_TAPERED_CLOSED_LOOPS = 9,
|
| 338 |
+
DWRITE_PANOSE_FINIALS_TAPERED_OPEN_LOOPS = 10,
|
| 339 |
+
DWRITE_PANOSE_FINIALS_ROUND_NO_LOOPS = 11,
|
| 340 |
+
DWRITE_PANOSE_FINIALS_ROUND_CLOSED_LOOPS = 12,
|
| 341 |
+
DWRITE_PANOSE_FINIALS_ROUND_OPEN_LOOPS = 13
|
| 342 |
+
};
|
| 343 |
+
|
| 344 |
+
/// <summary>
|
| 345 |
+
/// Relative size of the lowercase letters.
|
| 346 |
+
/// Present for families: 3-script
|
| 347 |
+
/// </summary>
|
| 348 |
+
enum DWRITE_PANOSE_XASCENT
|
| 349 |
+
{
|
| 350 |
+
DWRITE_PANOSE_XASCENT_ANY = 0,
|
| 351 |
+
DWRITE_PANOSE_XASCENT_NO_FIT = 1,
|
| 352 |
+
DWRITE_PANOSE_XASCENT_VERY_LOW = 2,
|
| 353 |
+
DWRITE_PANOSE_XASCENT_LOW = 3,
|
| 354 |
+
DWRITE_PANOSE_XASCENT_MEDIUM = 4,
|
| 355 |
+
DWRITE_PANOSE_XASCENT_HIGH = 5,
|
| 356 |
+
DWRITE_PANOSE_XASCENT_VERY_HIGH = 6
|
| 357 |
+
};
|
| 358 |
+
|
| 359 |
+
/// <summary>
|
| 360 |
+
/// General look of the face.
|
| 361 |
+
/// Present for families: 4-decorative
|
| 362 |
+
/// </summary>
|
| 363 |
+
enum DWRITE_PANOSE_DECORATIVE_CLASS
|
| 364 |
+
{
|
| 365 |
+
DWRITE_PANOSE_DECORATIVE_CLASS_ANY = 0,
|
| 366 |
+
DWRITE_PANOSE_DECORATIVE_CLASS_NO_FIT = 1,
|
| 367 |
+
DWRITE_PANOSE_DECORATIVE_CLASS_DERIVATIVE = 2,
|
| 368 |
+
DWRITE_PANOSE_DECORATIVE_CLASS_NONSTANDARD_TOPOLOGY = 3,
|
| 369 |
+
DWRITE_PANOSE_DECORATIVE_CLASS_NONSTANDARD_ELEMENTS = 4,
|
| 370 |
+
DWRITE_PANOSE_DECORATIVE_CLASS_NONSTANDARD_ASPECT = 5,
|
| 371 |
+
DWRITE_PANOSE_DECORATIVE_CLASS_INITIALS = 6,
|
| 372 |
+
DWRITE_PANOSE_DECORATIVE_CLASS_CARTOON = 7,
|
| 373 |
+
DWRITE_PANOSE_DECORATIVE_CLASS_PICTURE_STEMS = 8,
|
| 374 |
+
DWRITE_PANOSE_DECORATIVE_CLASS_ORNAMENTED = 9,
|
| 375 |
+
DWRITE_PANOSE_DECORATIVE_CLASS_TEXT_AND_BACKGROUND = 10,
|
| 376 |
+
DWRITE_PANOSE_DECORATIVE_CLASS_COLLAGE = 11,
|
| 377 |
+
DWRITE_PANOSE_DECORATIVE_CLASS_MONTAGE = 12
|
| 378 |
+
};
|
| 379 |
+
|
| 380 |
+
/// <summary>
|
| 381 |
+
/// Ratio between the width and height of the face.
|
| 382 |
+
/// Present for families: 4-decorative
|
| 383 |
+
/// </summary>
|
| 384 |
+
enum DWRITE_PANOSE_ASPECT
|
| 385 |
+
{
|
| 386 |
+
DWRITE_PANOSE_ASPECT_ANY = 0,
|
| 387 |
+
DWRITE_PANOSE_ASPECT_NO_FIT = 1,
|
| 388 |
+
DWRITE_PANOSE_ASPECT_SUPER_CONDENSED = 2,
|
| 389 |
+
DWRITE_PANOSE_ASPECT_VERY_CONDENSED = 3,
|
| 390 |
+
DWRITE_PANOSE_ASPECT_CONDENSED = 4,
|
| 391 |
+
DWRITE_PANOSE_ASPECT_NORMAL = 5,
|
| 392 |
+
DWRITE_PANOSE_ASPECT_EXTENDED = 6,
|
| 393 |
+
DWRITE_PANOSE_ASPECT_VERY_EXTENDED = 7,
|
| 394 |
+
DWRITE_PANOSE_ASPECT_SUPER_EXTENDED = 8,
|
| 395 |
+
DWRITE_PANOSE_ASPECT_MONOSPACED = 9
|
| 396 |
+
};
|
| 397 |
+
|
| 398 |
+
/// <summary>
|
| 399 |
+
/// Type of fill/line (treatment).
|
| 400 |
+
/// Present for families: 4-decorative
|
| 401 |
+
/// </summary>
|
| 402 |
+
enum DWRITE_PANOSE_FILL
|
| 403 |
+
{
|
| 404 |
+
DWRITE_PANOSE_FILL_ANY = 0,
|
| 405 |
+
DWRITE_PANOSE_FILL_NO_FIT = 1,
|
| 406 |
+
DWRITE_PANOSE_FILL_STANDARD_SOLID_FILL = 2,
|
| 407 |
+
DWRITE_PANOSE_FILL_NO_FILL = 3,
|
| 408 |
+
DWRITE_PANOSE_FILL_PATTERNED_FILL = 4,
|
| 409 |
+
DWRITE_PANOSE_FILL_COMPLEX_FILL = 5,
|
| 410 |
+
DWRITE_PANOSE_FILL_SHAPED_FILL = 6,
|
| 411 |
+
DWRITE_PANOSE_FILL_DRAWN_DISTRESSED = 7,
|
| 412 |
+
};
|
| 413 |
+
|
| 414 |
+
/// <summary>
|
| 415 |
+
/// Outline handling.
|
| 416 |
+
/// Present for families: 4-decorative
|
| 417 |
+
/// </summary>
|
| 418 |
+
enum DWRITE_PANOSE_LINING
|
| 419 |
+
{
|
| 420 |
+
DWRITE_PANOSE_LINING_ANY = 0,
|
| 421 |
+
DWRITE_PANOSE_LINING_NO_FIT = 1,
|
| 422 |
+
DWRITE_PANOSE_LINING_NONE = 2,
|
| 423 |
+
DWRITE_PANOSE_LINING_INLINE = 3,
|
| 424 |
+
DWRITE_PANOSE_LINING_OUTLINE = 4,
|
| 425 |
+
DWRITE_PANOSE_LINING_ENGRAVED = 5,
|
| 426 |
+
DWRITE_PANOSE_LINING_SHADOW = 6,
|
| 427 |
+
DWRITE_PANOSE_LINING_RELIEF = 7,
|
| 428 |
+
DWRITE_PANOSE_LINING_BACKDROP = 8
|
| 429 |
+
};
|
| 430 |
+
|
| 431 |
+
/// <summary>
|
| 432 |
+
/// Overall shape characteristics of the font.
|
| 433 |
+
/// Present for families: 4-decorative
|
| 434 |
+
/// </summary>
|
| 435 |
+
enum DWRITE_PANOSE_DECORATIVE_TOPOLOGY
|
| 436 |
+
{
|
| 437 |
+
DWRITE_PANOSE_DECORATIVE_TOPOLOGY_ANY = 0,
|
| 438 |
+
DWRITE_PANOSE_DECORATIVE_TOPOLOGY_NO_FIT = 1,
|
| 439 |
+
DWRITE_PANOSE_DECORATIVE_TOPOLOGY_STANDARD = 2,
|
| 440 |
+
DWRITE_PANOSE_DECORATIVE_TOPOLOGY_SQUARE = 3,
|
| 441 |
+
DWRITE_PANOSE_DECORATIVE_TOPOLOGY_MULTIPLE_SEGMENT = 4,
|
| 442 |
+
DWRITE_PANOSE_DECORATIVE_TOPOLOGY_ART_DECO = 5,
|
| 443 |
+
DWRITE_PANOSE_DECORATIVE_TOPOLOGY_UNEVEN_WEIGHTING = 6,
|
| 444 |
+
DWRITE_PANOSE_DECORATIVE_TOPOLOGY_DIVERSE_ARMS = 7,
|
| 445 |
+
DWRITE_PANOSE_DECORATIVE_TOPOLOGY_DIVERSE_FORMS = 8,
|
| 446 |
+
DWRITE_PANOSE_DECORATIVE_TOPOLOGY_LOMBARDIC_FORMS = 9,
|
| 447 |
+
DWRITE_PANOSE_DECORATIVE_TOPOLOGY_UPPER_CASE_IN_LOWER_CASE = 10,
|
| 448 |
+
DWRITE_PANOSE_DECORATIVE_TOPOLOGY_IMPLIED_TOPOLOGY = 11,
|
| 449 |
+
DWRITE_PANOSE_DECORATIVE_TOPOLOGY_HORSESHOE_E_AND_A = 12,
|
| 450 |
+
DWRITE_PANOSE_DECORATIVE_TOPOLOGY_CURSIVE = 13,
|
| 451 |
+
DWRITE_PANOSE_DECORATIVE_TOPOLOGY_BLACKLETTER = 14,
|
| 452 |
+
DWRITE_PANOSE_DECORATIVE_TOPOLOGY_SWASH_VARIANCE = 15
|
| 453 |
+
};
|
| 454 |
+
|
| 455 |
+
/// <summary>
|
| 456 |
+
/// Type of characters available in the font.
|
| 457 |
+
/// Present for families: 4-decorative
|
| 458 |
+
/// </summary>
|
| 459 |
+
enum DWRITE_PANOSE_CHARACTER_RANGES
|
| 460 |
+
{
|
| 461 |
+
DWRITE_PANOSE_CHARACTER_RANGES_ANY = 0,
|
| 462 |
+
DWRITE_PANOSE_CHARACTER_RANGES_NO_FIT = 1,
|
| 463 |
+
DWRITE_PANOSE_CHARACTER_RANGES_EXTENDED_COLLECTION = 2,
|
| 464 |
+
DWRITE_PANOSE_CHARACTER_RANGES_LITERALS = 3,
|
| 465 |
+
DWRITE_PANOSE_CHARACTER_RANGES_NO_LOWER_CASE = 4,
|
| 466 |
+
DWRITE_PANOSE_CHARACTER_RANGES_SMALL_CAPS = 5
|
| 467 |
+
};
|
| 468 |
+
|
| 469 |
+
/// <summary>
|
| 470 |
+
/// Kind of symbol set.
|
| 471 |
+
/// Present for families: 5-symbol
|
| 472 |
+
/// </summary>
|
| 473 |
+
enum DWRITE_PANOSE_SYMBOL_KIND
|
| 474 |
+
{
|
| 475 |
+
DWRITE_PANOSE_SYMBOL_KIND_ANY = 0,
|
| 476 |
+
DWRITE_PANOSE_SYMBOL_KIND_NO_FIT = 1,
|
| 477 |
+
DWRITE_PANOSE_SYMBOL_KIND_MONTAGES = 2,
|
| 478 |
+
DWRITE_PANOSE_SYMBOL_KIND_PICTURES = 3,
|
| 479 |
+
DWRITE_PANOSE_SYMBOL_KIND_SHAPES = 4,
|
| 480 |
+
DWRITE_PANOSE_SYMBOL_KIND_SCIENTIFIC = 5,
|
| 481 |
+
DWRITE_PANOSE_SYMBOL_KIND_MUSIC = 6,
|
| 482 |
+
DWRITE_PANOSE_SYMBOL_KIND_EXPERT = 7,
|
| 483 |
+
DWRITE_PANOSE_SYMBOL_KIND_PATTERNS = 8,
|
| 484 |
+
DWRITE_PANOSE_SYMBOL_KIND_BOARDERS = 9,
|
| 485 |
+
DWRITE_PANOSE_SYMBOL_KIND_ICONS = 10,
|
| 486 |
+
DWRITE_PANOSE_SYMBOL_KIND_LOGOS = 11,
|
| 487 |
+
DWRITE_PANOSE_SYMBOL_KIND_INDUSTRY_SPECIFIC = 12
|
| 488 |
+
};
|
| 489 |
+
|
| 490 |
+
/// <summary>
|
| 491 |
+
/// Aspect ratio of symbolic characters.
|
| 492 |
+
/// Present for families: 5-symbol
|
| 493 |
+
/// </summary>
|
| 494 |
+
enum DWRITE_PANOSE_SYMBOL_ASPECT_RATIO
|
| 495 |
+
{
|
| 496 |
+
DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_ANY = 0,
|
| 497 |
+
DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_NO_FIT = 1,
|
| 498 |
+
DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_NO_WIDTH = 2,
|
| 499 |
+
DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_EXCEPTIONALLY_WIDE = 3,
|
| 500 |
+
DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_SUPER_WIDE = 4,
|
| 501 |
+
DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_VERY_WIDE = 5,
|
| 502 |
+
DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_WIDE = 6,
|
| 503 |
+
DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_NORMAL = 7,
|
| 504 |
+
DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_NARROW = 8,
|
| 505 |
+
DWRITE_PANOSE_SYMBOL_ASPECT_RATIO_VERY_NARROW = 9
|
| 506 |
+
};
|
| 507 |
+
|
| 508 |
+
/// <summary>
|
| 509 |
+
/// Specifies the policy used by GetRecommendedRenderingMode to determine whether to
|
| 510 |
+
/// render glyphs in outline mode. Glyphs are rendered in outline mode by default at
|
| 511 |
+
/// large sizes for performance reasons, but how large (i.e., the outline threshold)
|
| 512 |
+
/// depends on the quality of outline rendering. If the graphics system renders anti-
|
| 513 |
+
/// aliased outlines then a relatively low threshold is used, but if the graphics
|
| 514 |
+
/// system renders aliased outlines then a much higher threshold is used.
|
| 515 |
+
/// </summary>
|
| 516 |
+
enum DWRITE_OUTLINE_THRESHOLD
|
| 517 |
+
{
|
| 518 |
+
DWRITE_OUTLINE_THRESHOLD_ANTIALIASED,
|
| 519 |
+
DWRITE_OUTLINE_THRESHOLD_ALIASED
|
| 520 |
+
};
|
| 521 |
+
|
| 522 |
+
/// <summary>
|
| 523 |
+
/// Baseline for text alignment.
|
| 524 |
+
/// </summary>
|
| 525 |
+
enum DWRITE_BASELINE
|
| 526 |
+
{
|
| 527 |
+
/// <summary>
|
| 528 |
+
/// The Roman baseline for horizontal, Central baseline for vertical.
|
| 529 |
+
/// </summary>
|
| 530 |
+
DWRITE_BASELINE_DEFAULT,
|
| 531 |
+
|
| 532 |
+
/// <summary>
|
| 533 |
+
/// The baseline used by alphabetic scripts such as Latin, Greek, Cyrillic.
|
| 534 |
+
/// </summary>
|
| 535 |
+
DWRITE_BASELINE_ROMAN,
|
| 536 |
+
|
| 537 |
+
/// <summary>
|
| 538 |
+
/// Central baseline, generally used for vertical text.
|
| 539 |
+
/// </summary>
|
| 540 |
+
DWRITE_BASELINE_CENTRAL,
|
| 541 |
+
|
| 542 |
+
/// <summary>
|
| 543 |
+
/// Mathematical baseline which math characters are centered on.
|
| 544 |
+
/// </summary>
|
| 545 |
+
DWRITE_BASELINE_MATH,
|
| 546 |
+
|
| 547 |
+
/// <summary>
|
| 548 |
+
/// Hanging baseline, used in scripts like Devanagari.
|
| 549 |
+
/// </summary>
|
| 550 |
+
DWRITE_BASELINE_HANGING,
|
| 551 |
+
|
| 552 |
+
/// <summary>
|
| 553 |
+
/// Ideographic bottom baseline for CJK, left in vertical.
|
| 554 |
+
/// </summary>
|
| 555 |
+
DWRITE_BASELINE_IDEOGRAPHIC_BOTTOM,
|
| 556 |
+
|
| 557 |
+
/// <summary>
|
| 558 |
+
/// Ideographic top baseline for CJK, right in vertical.
|
| 559 |
+
/// </summary>
|
| 560 |
+
DWRITE_BASELINE_IDEOGRAPHIC_TOP,
|
| 561 |
+
|
| 562 |
+
/// <summary>
|
| 563 |
+
/// The bottom-most extent in horizontal, left-most in vertical.
|
| 564 |
+
/// </summary>
|
| 565 |
+
DWRITE_BASELINE_MINIMUM,
|
| 566 |
+
|
| 567 |
+
/// <summary>
|
| 568 |
+
/// The top-most extent in horizontal, right-most in vertical.
|
| 569 |
+
/// </summary>
|
| 570 |
+
DWRITE_BASELINE_MAXIMUM,
|
| 571 |
+
};
|
| 572 |
+
|
| 573 |
+
/// <summary>
|
| 574 |
+
/// The desired kind of glyph orientation for the text. The client specifies
|
| 575 |
+
/// this to the analyzer as the desired orientation, but note this is the
|
| 576 |
+
/// client preference, and the constraints of the script will determine the
|
| 577 |
+
/// final presentation.
|
| 578 |
+
/// </summary>
|
| 579 |
+
enum DWRITE_VERTICAL_GLYPH_ORIENTATION
|
| 580 |
+
{
|
| 581 |
+
/// <summary>
|
| 582 |
+
/// In vertical layout, naturally horizontal scripts (Latin, Thai, Arabic,
|
| 583 |
+
/// Devanagari) rotate 90 degrees clockwise, while ideographic scripts
|
| 584 |
+
/// (Chinese, Japanese, Korean) remain upright, 0 degrees.
|
| 585 |
+
/// </summary>
|
| 586 |
+
DWRITE_VERTICAL_GLYPH_ORIENTATION_DEFAULT,
|
| 587 |
+
|
| 588 |
+
/// <summary>
|
| 589 |
+
/// Ideographic scripts and scripts that permit stacking
|
| 590 |
+
/// (Latin, Hebrew) are stacked in vertical reading layout.
|
| 591 |
+
/// Connected scripts (Arabic, Syriac, 'Phags-pa, Ogham),
|
| 592 |
+
/// which would otherwise look broken if glyphs were kept
|
| 593 |
+
/// at 0 degrees, remain connected and rotate.
|
| 594 |
+
/// </summary>
|
| 595 |
+
DWRITE_VERTICAL_GLYPH_ORIENTATION_STACKED,
|
| 596 |
+
};
|
| 597 |
+
|
| 598 |
+
/// <summary>
|
| 599 |
+
/// How the glyph is oriented to the x-axis. This is an output from the text
|
| 600 |
+
/// analyzer, dependent on the desired orientation, bidi level, and character
|
| 601 |
+
/// properties.
|
| 602 |
+
/// </summary>
|
| 603 |
+
enum DWRITE_GLYPH_ORIENTATION_ANGLE
|
| 604 |
+
{
|
| 605 |
+
/// <summary>
|
| 606 |
+
/// Glyph orientation is upright.
|
| 607 |
+
/// </summary>
|
| 608 |
+
DWRITE_GLYPH_ORIENTATION_ANGLE_0_DEGREES,
|
| 609 |
+
|
| 610 |
+
/// <summary>
|
| 611 |
+
/// Glyph orientation is rotated 90 clockwise.
|
| 612 |
+
/// </summary>
|
| 613 |
+
DWRITE_GLYPH_ORIENTATION_ANGLE_90_DEGREES,
|
| 614 |
+
|
| 615 |
+
/// <summary>
|
| 616 |
+
/// Glyph orientation is upside-down.
|
| 617 |
+
/// </summary>
|
| 618 |
+
DWRITE_GLYPH_ORIENTATION_ANGLE_180_DEGREES,
|
| 619 |
+
|
| 620 |
+
/// <summary>
|
| 621 |
+
/// Glyph orientation is rotated 270 clockwise.
|
| 622 |
+
/// </summary>
|
| 623 |
+
DWRITE_GLYPH_ORIENTATION_ANGLE_270_DEGREES,
|
| 624 |
+
};
|
| 625 |
+
|
| 626 |
+
|
| 627 |
+
struct DWRITE_FONT_METRICS1 : public DWRITE_FONT_METRICS
|
| 628 |
+
{
|
| 629 |
+
/// <summary>
|
| 630 |
+
/// Left edge of accumulated bounding blackbox of all glyphs in the font.
|
| 631 |
+
/// </summary>
|
| 632 |
+
INT16 glyphBoxLeft;
|
| 633 |
+
|
| 634 |
+
/// <summary>
|
| 635 |
+
/// Top edge of accumulated bounding blackbox of all glyphs in the font.
|
| 636 |
+
/// </summary>
|
| 637 |
+
INT16 glyphBoxTop;
|
| 638 |
+
|
| 639 |
+
/// <summary>
|
| 640 |
+
/// Right edge of accumulated bounding blackbox of all glyphs in the font.
|
| 641 |
+
/// </summary>
|
| 642 |
+
INT16 glyphBoxRight;
|
| 643 |
+
|
| 644 |
+
/// <summary>
|
| 645 |
+
/// Bottom edge of accumulated bounding blackbox of all glyphs in the font.
|
| 646 |
+
/// </summary>
|
| 647 |
+
INT16 glyphBoxBottom;
|
| 648 |
+
|
| 649 |
+
/// <summary>
|
| 650 |
+
/// Horizontal position of the subscript relative to the baseline origin.
|
| 651 |
+
/// This is typically negative (to the left) in italic/oblique fonts, and
|
| 652 |
+
/// zero in regular fonts.
|
| 653 |
+
/// </summary>
|
| 654 |
+
INT16 subscriptPositionX;
|
| 655 |
+
|
| 656 |
+
/// <summary>
|
| 657 |
+
/// Vertical position of the subscript relative to the baseline.
|
| 658 |
+
/// This is typically negative.
|
| 659 |
+
/// </summary>
|
| 660 |
+
INT16 subscriptPositionY;
|
| 661 |
+
|
| 662 |
+
/// <summary>
|
| 663 |
+
/// Horizontal size of the subscript em box in design units, used to
|
| 664 |
+
/// scale the simulated subscript relative to the full em box size.
|
| 665 |
+
/// This the numerator of the scaling ratio where denominator is the
|
| 666 |
+
/// design units per em. If this member is zero, the font does not specify
|
| 667 |
+
/// a scale factor, and the client should use its own policy.
|
| 668 |
+
/// </summary>
|
| 669 |
+
INT16 subscriptSizeX;
|
| 670 |
+
|
| 671 |
+
/// <summary>
|
| 672 |
+
/// Vertical size of the subscript em box in design units, used to
|
| 673 |
+
/// scale the simulated subscript relative to the full em box size.
|
| 674 |
+
/// This the numerator of the scaling ratio where denominator is the
|
| 675 |
+
/// design units per em. If this member is zero, the font does not specify
|
| 676 |
+
/// a scale factor, and the client should use its own policy.
|
| 677 |
+
/// </summary>
|
| 678 |
+
INT16 subscriptSizeY;
|
| 679 |
+
|
| 680 |
+
/// <summary>
|
| 681 |
+
/// Horizontal position of the superscript relative to the baseline origin.
|
| 682 |
+
/// This is typically positive (to the right) in italic/oblique fonts, and
|
| 683 |
+
/// zero in regular fonts.
|
| 684 |
+
/// </summary>
|
| 685 |
+
INT16 superscriptPositionX;
|
| 686 |
+
|
| 687 |
+
/// <summary>
|
| 688 |
+
/// Vertical position of the superscript relative to the baseline.
|
| 689 |
+
/// This is typically positive.
|
| 690 |
+
/// </summary>
|
| 691 |
+
INT16 superscriptPositionY;
|
| 692 |
+
|
| 693 |
+
/// <summary>
|
| 694 |
+
/// Horizontal size of the superscript em box in design units, used to
|
| 695 |
+
/// scale the simulated superscript relative to the full em box size.
|
| 696 |
+
/// This the numerator of the scaling ratio where denominator is the
|
| 697 |
+
/// design units per em. If this member is zero, the font does not specify
|
| 698 |
+
/// a scale factor, and the client should use its own policy.
|
| 699 |
+
/// </summary>
|
| 700 |
+
INT16 superscriptSizeX;
|
| 701 |
+
|
| 702 |
+
/// <summary>
|
| 703 |
+
/// Vertical size of the superscript em box in design units, used to
|
| 704 |
+
/// scale the simulated superscript relative to the full em box size.
|
| 705 |
+
/// This the numerator of the scaling ratio where denominator is the
|
| 706 |
+
/// design units per em. If this member is zero, the font does not specify
|
| 707 |
+
/// a scale factor, and the client should use its own policy.
|
| 708 |
+
/// </summary>
|
| 709 |
+
INT16 superscriptSizeY;
|
| 710 |
+
|
| 711 |
+
/// <summary>
|
| 712 |
+
/// Indicates that the ascent, descent, and lineGap are based on newer
|
| 713 |
+
/// 'typographic' values in the font, rather than legacy values.
|
| 714 |
+
/// </summary>
|
| 715 |
+
BOOL hasTypographicMetrics;
|
| 716 |
+
};
|
| 717 |
+
|
| 718 |
+
|
| 719 |
+
/// <summary>
|
| 720 |
+
/// Metrics for caret placement in a font.
|
| 721 |
+
/// </summary>
|
| 722 |
+
struct DWRITE_CARET_METRICS
|
| 723 |
+
{
|
| 724 |
+
/// <summary>
|
| 725 |
+
/// Vertical rise of the caret. Rise / Run yields the caret angle.
|
| 726 |
+
/// Rise = 1 for perfectly upright fonts (non-italic).
|
| 727 |
+
/// </summary>
|
| 728 |
+
INT16 slopeRise;
|
| 729 |
+
|
| 730 |
+
/// <summary>
|
| 731 |
+
/// Horizontal run of th caret. Rise / Run yields the caret angle.
|
| 732 |
+
/// Run = 0 for perfectly upright fonts (non-italic).
|
| 733 |
+
/// </summary>
|
| 734 |
+
INT16 slopeRun;
|
| 735 |
+
|
| 736 |
+
/// <summary>
|
| 737 |
+
/// Horizontal offset of the caret along the baseline for good appearance.
|
| 738 |
+
/// Offset = 0 for perfectly upright fonts (non-italic).
|
| 739 |
+
/// </summary>
|
| 740 |
+
INT16 offset;
|
| 741 |
+
};
|
| 742 |
+
|
| 743 |
+
|
| 744 |
+
/// <summary>
|
| 745 |
+
/// Typeface classification values, used for font selection and matching.
|
| 746 |
+
/// </summary>
|
| 747 |
+
/// <remarks>
|
| 748 |
+
/// Note the family type (index 0) is the only stable entry in the 10-byte
|
| 749 |
+
/// array, as all the following entries can change dynamically depending on
|
| 750 |
+
/// context of the first field.
|
| 751 |
+
/// </remarks>
|
| 752 |
+
union DWRITE_PANOSE
|
| 753 |
+
{
|
| 754 |
+
UINT8 values[10];
|
| 755 |
+
|
| 756 |
+
UINT8 familyKind; // this is the only field that never changes meaning
|
| 757 |
+
|
| 758 |
+
struct
|
| 759 |
+
{
|
| 760 |
+
UINT8 familyKind; // = 2 for text
|
| 761 |
+
UINT8 serifStyle;
|
| 762 |
+
UINT8 weight;
|
| 763 |
+
UINT8 proportion;
|
| 764 |
+
UINT8 contrast;
|
| 765 |
+
UINT8 strokeVariation;
|
| 766 |
+
UINT8 armStyle;
|
| 767 |
+
UINT8 letterform;
|
| 768 |
+
UINT8 midline;
|
| 769 |
+
UINT8 xHeight;
|
| 770 |
+
} text;
|
| 771 |
+
|
| 772 |
+
struct
|
| 773 |
+
{
|
| 774 |
+
UINT8 familyKind; // = 3 for script
|
| 775 |
+
UINT8 toolKind;
|
| 776 |
+
UINT8 weight;
|
| 777 |
+
UINT8 spacing;
|
| 778 |
+
UINT8 aspectRatio;
|
| 779 |
+
UINT8 contrast;
|
| 780 |
+
UINT8 scriptTopology;
|
| 781 |
+
UINT8 scriptForm;
|
| 782 |
+
UINT8 finials;
|
| 783 |
+
UINT8 xAscent;
|
| 784 |
+
} script;
|
| 785 |
+
|
| 786 |
+
struct
|
| 787 |
+
{
|
| 788 |
+
UINT8 familyKind; // = 4 for decorative
|
| 789 |
+
UINT8 decorativeClass;
|
| 790 |
+
UINT8 weight;
|
| 791 |
+
UINT8 aspect;
|
| 792 |
+
UINT8 contrast;
|
| 793 |
+
UINT8 serifVariant;
|
| 794 |
+
UINT8 fill; // treatment
|
| 795 |
+
UINT8 lining;
|
| 796 |
+
UINT8 decorativeTopology;
|
| 797 |
+
UINT8 characterRange;
|
| 798 |
+
} decorative;
|
| 799 |
+
|
| 800 |
+
struct
|
| 801 |
+
{
|
| 802 |
+
UINT8 familyKind; // = 5 for symbol
|
| 803 |
+
UINT8 symbolKind;
|
| 804 |
+
UINT8 weight;
|
| 805 |
+
UINT8 spacing;
|
| 806 |
+
UINT8 aspectRatioAndContrast; // hard coded to no-fit (1)
|
| 807 |
+
UINT8 aspectRatio94;
|
| 808 |
+
UINT8 aspectRatio119;
|
| 809 |
+
UINT8 aspectRatio157;
|
| 810 |
+
UINT8 aspectRatio163;
|
| 811 |
+
UINT8 aspectRatio211;
|
| 812 |
+
} symbol;
|
| 813 |
+
};
|
| 814 |
+
|
| 815 |
+
|
| 816 |
+
/// <summary>
|
| 817 |
+
/// Range of Unicode codepoints.
|
| 818 |
+
/// </summary>
|
| 819 |
+
struct DWRITE_UNICODE_RANGE
|
| 820 |
+
{
|
| 821 |
+
/// <summary>
|
| 822 |
+
/// The first codepoint in the Unicode range.
|
| 823 |
+
/// </summary>
|
| 824 |
+
UINT32 first;
|
| 825 |
+
|
| 826 |
+
/// <summary>
|
| 827 |
+
/// The last codepoint in the Unicode range.
|
| 828 |
+
/// </summary>
|
| 829 |
+
UINT32 last;
|
| 830 |
+
};
|
| 831 |
+
|
| 832 |
+
|
| 833 |
+
/// <summary>
|
| 834 |
+
/// Script-specific properties for caret navigation and justification.
|
| 835 |
+
/// </summary>
|
| 836 |
+
struct DWRITE_SCRIPT_PROPERTIES
|
| 837 |
+
{
|
| 838 |
+
/// <summary>
|
| 839 |
+
/// The standardized four character code for the given script.
|
| 840 |
+
/// Note these only include the general Unicode scripts, not any
|
| 841 |
+
/// additional ISO 15924 scripts for bibliographic distinction
|
| 842 |
+
/// (for example, Fraktur Latin vs Gaelic Latin).
|
| 843 |
+
/// http://unicode.org/iso15924/iso15924-codes.html
|
| 844 |
+
/// </summary>
|
| 845 |
+
UINT32 isoScriptCode;
|
| 846 |
+
|
| 847 |
+
/// <summary>
|
| 848 |
+
/// The standardized numeric code, ranging 0-999.
|
| 849 |
+
/// http://unicode.org/iso15924/iso15924-codes.html
|
| 850 |
+
/// </summary>
|
| 851 |
+
UINT32 isoScriptNumber;
|
| 852 |
+
|
| 853 |
+
/// <summary>
|
| 854 |
+
/// Number of characters to estimate look-ahead for complex scripts.
|
| 855 |
+
/// Latin and all Kana are generally 1. Indic scripts are up to 15,
|
| 856 |
+
/// and most others are 8. Note that combining marks and variation
|
| 857 |
+
/// selectors can produce clusters longer than these look-aheads,
|
| 858 |
+
/// so this estimate is considered typical language use. Diacritics
|
| 859 |
+
/// must be tested explicitly separately.
|
| 860 |
+
/// </summary>
|
| 861 |
+
UINT32 clusterLookahead;
|
| 862 |
+
|
| 863 |
+
/// <summary>
|
| 864 |
+
/// Appropriate character to elongate the given script for justification.
|
| 865 |
+
///
|
| 866 |
+
/// Examples:
|
| 867 |
+
/// Arabic - U+0640 Tatweel
|
| 868 |
+
/// Ogham - U+1680 Ogham Space Mark
|
| 869 |
+
/// </summary>
|
| 870 |
+
UINT32 justificationCharacter;
|
| 871 |
+
|
| 872 |
+
/// <summary>
|
| 873 |
+
/// Restrict the caret to whole clusters, like Thai and Devanagari. Scripts
|
| 874 |
+
/// such as Arabic by default allow navigation between clusters. Others
|
| 875 |
+
/// like Thai always navigate across whole clusters.
|
| 876 |
+
/// </summary>
|
| 877 |
+
UINT32 restrictCaretToClusters : 1;
|
| 878 |
+
|
| 879 |
+
/// <summary>
|
| 880 |
+
/// The language uses dividers between words, such as spaces between Latin
|
| 881 |
+
/// or the Ethiopic wordspace.
|
| 882 |
+
///
|
| 883 |
+
/// Examples: Latin, Greek, Devanagari, Ethiopic
|
| 884 |
+
/// Excludes: Chinese, Korean, Thai.
|
| 885 |
+
/// </summary>
|
| 886 |
+
UINT32 usesWordDividers : 1;
|
| 887 |
+
|
| 888 |
+
/// <summary>
|
| 889 |
+
/// The characters are discrete units from each other. This includes both
|
| 890 |
+
/// block scripts and clustered scripts.
|
| 891 |
+
///
|
| 892 |
+
/// Examples: Latin, Greek, Cyrillic, Hebrew, Chinese, Thai
|
| 893 |
+
/// </summary>
|
| 894 |
+
UINT32 isDiscreteWriting : 1;
|
| 895 |
+
|
| 896 |
+
/// <summary>
|
| 897 |
+
/// The language is a block script, expanding between characters.
|
| 898 |
+
///
|
| 899 |
+
/// Examples: Chinese, Japanese, Korean, Bopomofo.
|
| 900 |
+
/// </summary>
|
| 901 |
+
UINT32 isBlockWriting : 1;
|
| 902 |
+
|
| 903 |
+
/// <summary>
|
| 904 |
+
/// The language is justified within glyph clusters, not just between glyph
|
| 905 |
+
/// clusters. One such as the character sequence is Thai Lu and Sara Am
|
| 906 |
+
/// (U+E026, U+E033) which form a single cluster but still expand between
|
| 907 |
+
/// them.
|
| 908 |
+
///
|
| 909 |
+
/// Examples: Thai, Lao, Khmer
|
| 910 |
+
/// </summary>
|
| 911 |
+
UINT32 isDistributedWithinCluster : 1;
|
| 912 |
+
|
| 913 |
+
/// <summary>
|
| 914 |
+
/// The script's clusters are connected to each other (such as the
|
| 915 |
+
/// baseline-linked Devanagari), and no separation should be added
|
| 916 |
+
/// between characters. Note that cursively linked scripts like Arabic
|
| 917 |
+
/// are also connected (but not all connected scripts are
|
| 918 |
+
/// cursive).
|
| 919 |
+
///
|
| 920 |
+
/// Examples: Devanagari, Arabic, Syriac, Bengali, Gurmukhi, Ogham
|
| 921 |
+
/// Excludes: Latin, Chinese, Thaana
|
| 922 |
+
/// </summary>
|
| 923 |
+
UINT32 isConnectedWriting : 1;
|
| 924 |
+
|
| 925 |
+
/// <summary>
|
| 926 |
+
/// The script is naturally cursive (Arabic/Syriac), meaning it uses other
|
| 927 |
+
/// justification methods like kashida extension rather than intercharacter
|
| 928 |
+
/// spacing. Note that although other scripts like Latin and Japanese may
|
| 929 |
+
/// actually support handwritten cursive forms, they are not considered
|
| 930 |
+
/// cursive scripts.
|
| 931 |
+
///
|
| 932 |
+
/// Examples: Arabic, Syriac, Mongolian
|
| 933 |
+
/// Excludes: Thaana, Devanagari, Latin, Chinese
|
| 934 |
+
/// </summary>
|
| 935 |
+
UINT32 isCursiveWriting : 1;
|
| 936 |
+
|
| 937 |
+
UINT32 reserved : 25;
|
| 938 |
+
};
|
| 939 |
+
|
| 940 |
+
|
| 941 |
+
/// <summary>
|
| 942 |
+
/// Justification information per glyph.
|
| 943 |
+
/// </summary>
|
| 944 |
+
struct DWRITE_JUSTIFICATION_OPPORTUNITY
|
| 945 |
+
{
|
| 946 |
+
/// <summary>
|
| 947 |
+
/// Minimum amount of expansion to apply to the side of the glyph.
|
| 948 |
+
/// This may vary from 0 to infinity, typically being zero except
|
| 949 |
+
/// for kashida.
|
| 950 |
+
/// </summary>
|
| 951 |
+
FLOAT expansionMinimum;
|
| 952 |
+
|
| 953 |
+
/// <summary>
|
| 954 |
+
/// Maximum amount of expansion to apply to the side of the glyph.
|
| 955 |
+
/// This may vary from 0 to infinity, being zero for fixed-size characters
|
| 956 |
+
/// and connected scripts, and non-zero for discrete scripts, and non-zero
|
| 957 |
+
/// for cursive scripts at expansion points.
|
| 958 |
+
/// </summary>
|
| 959 |
+
FLOAT expansionMaximum;
|
| 960 |
+
|
| 961 |
+
/// <summary>
|
| 962 |
+
/// Maximum amount of compression to apply to the side of the glyph.
|
| 963 |
+
/// This may vary from 0 up to the glyph cluster size.
|
| 964 |
+
/// </summary>
|
| 965 |
+
FLOAT compressionMaximum;
|
| 966 |
+
|
| 967 |
+
/// <summary>
|
| 968 |
+
/// Priority of this expansion point. Larger priorities are applied later,
|
| 969 |
+
/// while priority zero does nothing.
|
| 970 |
+
/// </summary>
|
| 971 |
+
UINT32 expansionPriority : 8;
|
| 972 |
+
|
| 973 |
+
/// <summary>
|
| 974 |
+
/// Priority of this compression point. Larger priorities are applied later,
|
| 975 |
+
/// while priority zero does nothing.
|
| 976 |
+
/// </summary>
|
| 977 |
+
UINT32 compressionPriority : 8;
|
| 978 |
+
|
| 979 |
+
/// <summary>
|
| 980 |
+
/// Allow this expansion point to use up any remaining slack space even
|
| 981 |
+
/// after all expansion priorities have been used up.
|
| 982 |
+
/// </summary>
|
| 983 |
+
UINT32 allowResidualExpansion : 1;
|
| 984 |
+
|
| 985 |
+
/// <summary>
|
| 986 |
+
/// Allow this compression point to use up any remaining space even after
|
| 987 |
+
/// all compression priorities have been used up.
|
| 988 |
+
/// </summary>
|
| 989 |
+
UINT32 allowResidualCompression : 1;
|
| 990 |
+
|
| 991 |
+
/// <summary>
|
| 992 |
+
/// Apply expansion/compression to the leading edge of the glyph. This will
|
| 993 |
+
/// be false for connected scripts, fixed-size characters, and diacritics.
|
| 994 |
+
/// It is generally false within a multi-glyph cluster, unless the script
|
| 995 |
+
/// allows expansion of glyphs within a cluster, like Thai.
|
| 996 |
+
/// </summary>
|
| 997 |
+
UINT32 applyToLeadingEdge : 1;
|
| 998 |
+
|
| 999 |
+
/// <summary>
|
| 1000 |
+
/// Apply expansion/compression to the trailing edge of the glyph. This will
|
| 1001 |
+
/// be false for connected scripts, fixed-size characters, and diacritics.
|
| 1002 |
+
/// It is generally false within a multi-glyph cluster, unless the script
|
| 1003 |
+
/// allows expansion of glyphs within a cluster, like Thai.
|
| 1004 |
+
/// </summary>
|
| 1005 |
+
UINT32 applyToTrailingEdge : 1;
|
| 1006 |
+
|
| 1007 |
+
UINT32 reserved : 12;
|
| 1008 |
+
};
|
| 1009 |
+
|
| 1010 |
+
|
| 1011 |
+
interface IDWriteTextAnalysisSource1;
|
| 1012 |
+
interface IDWriteTextAnalysisSink1;
|
| 1013 |
+
interface IDWriteRenderingParams1;
|
| 1014 |
+
|
| 1015 |
+
/// <summary>
|
| 1016 |
+
/// The root factory interface for all DWrite objects.
|
| 1017 |
+
/// </summary>
|
| 1018 |
+
interface DWRITE_DECLARE_INTERFACE("30572f99-dac6-41db-a16e-0486307e606a") IDWriteFactory1 : public IDWriteFactory
|
| 1019 |
+
{
|
| 1020 |
+
/// <summary>
|
| 1021 |
+
/// Gets a font collection representing the set of end-user defined
|
| 1022 |
+
/// custom fonts.
|
| 1023 |
+
/// </summary>
|
| 1024 |
+
/// <param name="fontCollection">Receives a pointer to the EUDC font
|
| 1025 |
+
/// collection object, or NULL in case of failure.</param>
|
| 1026 |
+
/// <param name="checkForUpdates">If this parameter is nonzero, the
|
| 1027 |
+
/// function performs an immediate check for changes to the set of
|
| 1028 |
+
/// EUDC fonts. If this parameter is FALSE, the function will still
|
| 1029 |
+
/// detect changes, but there may be some latency. For example, an
|
| 1030 |
+
/// application might specify TRUE if it has itself just modified a
|
| 1031 |
+
/// font and wants to be sure the font collection contains that font.
|
| 1032 |
+
/// </param>
|
| 1033 |
+
/// <returns>
|
| 1034 |
+
/// Standard HRESULT error code. Note that if no EUDC is set on the system,
|
| 1035 |
+
/// the returned collection will be empty, meaning it will return success
|
| 1036 |
+
/// but GetFontFamilyCount will be zero.
|
| 1037 |
+
/// </returns>
|
| 1038 |
+
/// <remarks>
|
| 1039 |
+
/// Querying via IDWriteFontCollection::FindFamilyName for a specific
|
| 1040 |
+
/// family (like MS Gothic) will return the matching family-specific EUDC
|
| 1041 |
+
/// font if one exists. Querying for "" will return the global EUDC font.
|
| 1042 |
+
/// For example, if you were matching an EUDC character within a run of
|
| 1043 |
+
/// the base font PMingLiu, you would retrieve the corresponding EUDC font
|
| 1044 |
+
/// face using GetEudcFontCollection, then FindFamilyName with "PMingLiu",
|
| 1045 |
+
/// followed by GetFontFamily and CreateFontFace.
|
| 1046 |
+
///
|
| 1047 |
+
/// Be aware that eudcedit.exe can create placeholder empty glyphs that
|
| 1048 |
+
/// have zero advance width and no glyph outline. Although they are present
|
| 1049 |
+
/// in the font (HasCharacter returns true), you are best to ignore
|
| 1050 |
+
/// these and continue on with font fallback in your layout if the metrics
|
| 1051 |
+
/// for the glyph are zero.
|
| 1052 |
+
/// </remarks>
|
| 1053 |
+
STDMETHOD(GetEudcFontCollection)(
|
| 1054 |
+
_COM_Outptr_ IDWriteFontCollection** fontCollection,
|
| 1055 |
+
BOOL checkForUpdates = FALSE
|
| 1056 |
+
) PURE;
|
| 1057 |
+
|
| 1058 |
+
/// <summary>
|
| 1059 |
+
/// Creates a rendering parameters object with the specified properties.
|
| 1060 |
+
/// </summary>
|
| 1061 |
+
/// <param name="gamma">The gamma value used for gamma correction, which must be greater than zero and cannot exceed 256.</param>
|
| 1062 |
+
/// <param name="enhancedContrast">The amount of contrast enhancement, zero or greater.</param>
|
| 1063 |
+
/// <param name="enhancedContrastGrayscale">The amount of contrast enhancement to use for grayscale antialiasing, zero or greater.</param>
|
| 1064 |
+
/// <param name="clearTypeLevel">The degree of ClearType level, from 0.0f (no ClearType) to 1.0f (full ClearType).</param>
|
| 1065 |
+
/// <param name="pixelGeometry">The geometry of a device pixel.</param>
|
| 1066 |
+
/// <param name="renderingMode">Method of rendering glyphs. In most cases, this should be DWRITE_RENDERING_MODE_DEFAULT to automatically use an appropriate mode.</param>
|
| 1067 |
+
/// <param name="renderingParams">Holds the newly created rendering parameters object, or NULL in case of failure.</param>
|
| 1068 |
+
/// <returns>
|
| 1069 |
+
/// Standard HRESULT error code.
|
| 1070 |
+
/// </returns>
|
| 1071 |
+
STDMETHOD(CreateCustomRenderingParams)(
|
| 1072 |
+
FLOAT gamma,
|
| 1073 |
+
FLOAT enhancedContrast,
|
| 1074 |
+
FLOAT enhancedContrastGrayscale,
|
| 1075 |
+
FLOAT clearTypeLevel,
|
| 1076 |
+
DWRITE_PIXEL_GEOMETRY pixelGeometry,
|
| 1077 |
+
DWRITE_RENDERING_MODE renderingMode,
|
| 1078 |
+
_COM_Outptr_ IDWriteRenderingParams1** renderingParams
|
| 1079 |
+
) PURE;
|
| 1080 |
+
|
| 1081 |
+
using IDWriteFactory::CreateCustomRenderingParams;
|
| 1082 |
+
};
|
| 1083 |
+
|
| 1084 |
+
|
| 1085 |
+
/// <summary>
|
| 1086 |
+
/// The interface that represents an absolute reference to a font face.
|
| 1087 |
+
/// It contains font face type, appropriate file references and face identification data.
|
| 1088 |
+
/// Various font data such as metrics, names and glyph outlines is obtained from IDWriteFontFace.
|
| 1089 |
+
/// </summary>
|
| 1090 |
+
interface DWRITE_DECLARE_INTERFACE("a71efdb4-9fdb-4838-ad90-cfc3be8c3daf") IDWriteFontFace1 : public IDWriteFontFace
|
| 1091 |
+
{
|
| 1092 |
+
/// <summary>
|
| 1093 |
+
/// Gets common metrics for the font in design units.
|
| 1094 |
+
/// These metrics are applicable to all the glyphs within a font,
|
| 1095 |
+
/// and are used by applications for layout calculations.
|
| 1096 |
+
/// </summary>
|
| 1097 |
+
/// <param name="fontMetrics">Metrics structure to fill in.</param>
|
| 1098 |
+
STDMETHOD_(void, GetMetrics)(
|
| 1099 |
+
_Out_ DWRITE_FONT_METRICS1* fontMetrics
|
| 1100 |
+
) PURE;
|
| 1101 |
+
|
| 1102 |
+
/// <summary>
|
| 1103 |
+
/// Gets common metrics for the font in design units.
|
| 1104 |
+
/// These metrics are applicable to all the glyphs within a font,
|
| 1105 |
+
/// and are used by applications for layout calculations.
|
| 1106 |
+
/// </summary>
|
| 1107 |
+
/// <param name="emSize">Logical size of the font in DIP units. A DIP
|
| 1108 |
+
/// ("device-independent pixel") equals 1/96 inch.</param>
|
| 1109 |
+
/// <param name="pixelsPerDip">Number of physical pixels per DIP. For
|
| 1110 |
+
/// example, if the DPI of the rendering surface is 96 this value is
|
| 1111 |
+
/// 1.0f. If the DPI is 120, this value is 120.0f/96.</param>
|
| 1112 |
+
/// <param name="transform">Optional transform applied to the glyphs and
|
| 1113 |
+
/// their positions. This transform is applied after the scaling
|
| 1114 |
+
/// specified by the font size and pixelsPerDip.</param>
|
| 1115 |
+
/// <param name="fontMetrics">Font metrics structure to fill in.</param>
|
| 1116 |
+
/// <returns>
|
| 1117 |
+
/// Standard HRESULT error code.
|
| 1118 |
+
/// </returns>
|
| 1119 |
+
STDMETHOD(GetGdiCompatibleMetrics)(
|
| 1120 |
+
FLOAT emSize,
|
| 1121 |
+
FLOAT pixelsPerDip,
|
| 1122 |
+
_In_opt_ DWRITE_MATRIX const* transform,
|
| 1123 |
+
_Out_ DWRITE_FONT_METRICS1* fontMetrics
|
| 1124 |
+
) PURE;
|
| 1125 |
+
|
| 1126 |
+
/// <summary>
|
| 1127 |
+
/// Gets caret metrics for the font in design units. These are used by
|
| 1128 |
+
/// text editors for drawing the correct caret placement/slant.
|
| 1129 |
+
/// </summary>
|
| 1130 |
+
/// <param name="caretMetrics">Metrics structure to fill in.</param>
|
| 1131 |
+
STDMETHOD_(void, GetCaretMetrics)(
|
| 1132 |
+
_Out_ DWRITE_CARET_METRICS* caretMetrics
|
| 1133 |
+
) PURE;
|
| 1134 |
+
|
| 1135 |
+
/// <summary>
|
| 1136 |
+
/// Returns the list of character ranges supported by the font, which is
|
| 1137 |
+
/// useful for scenarios like character picking, glyph display, and
|
| 1138 |
+
/// efficient font selection lookup. This is similar to GDI's
|
| 1139 |
+
/// GetFontUnicodeRanges, except that it returns the full Unicode range,
|
| 1140 |
+
/// not just 16-bit UCS-2.
|
| 1141 |
+
/// </summary>
|
| 1142 |
+
/// <param name="maxRangeCount">Maximum number of character ranges passed
|
| 1143 |
+
/// in from the client.</param>
|
| 1144 |
+
/// <param name="unicodeRanges">Array of character ranges.</param>
|
| 1145 |
+
/// <param name="actualRangeCount">Actual number of character ranges,
|
| 1146 |
+
/// regardless of the maximum count.</param>
|
| 1147 |
+
/// <remarks>
|
| 1148 |
+
/// These ranges are from the cmap, not the OS/2::ulCodePageRange1.
|
| 1149 |
+
/// </remarks>
|
| 1150 |
+
/// <returns>
|
| 1151 |
+
/// Standard HRESULT error code.
|
| 1152 |
+
/// </returns>
|
| 1153 |
+
STDMETHOD(GetUnicodeRanges)(
|
| 1154 |
+
UINT32 maxRangeCount,
|
| 1155 |
+
_Out_writes_to_opt_(maxRangeCount, *actualRangeCount) DWRITE_UNICODE_RANGE* unicodeRanges,
|
| 1156 |
+
_Out_ UINT32* actualRangeCount
|
| 1157 |
+
) PURE;
|
| 1158 |
+
|
| 1159 |
+
/// <summary>
|
| 1160 |
+
/// Returns true if the font is monospaced, meaning its characters are the
|
| 1161 |
+
/// same fixed-pitch width (non-proportional).
|
| 1162 |
+
/// </summary>
|
| 1163 |
+
STDMETHOD_(BOOL, IsMonospacedFont)() PURE;
|
| 1164 |
+
|
| 1165 |
+
/// <summary>
|
| 1166 |
+
/// Returns the advances in design units for a sequences of glyphs.
|
| 1167 |
+
/// </summary>
|
| 1168 |
+
/// <param name="glyphCount">Number of glyphs to retrieve advances for.</param>
|
| 1169 |
+
/// <param name="glyphIndices">Array of glyph id's to retrieve advances for.</param>
|
| 1170 |
+
/// <param name="glyphAdvances">Returned advances in font design units for
|
| 1171 |
+
/// each glyph.</param>
|
| 1172 |
+
/// <param name="isSideways">Retrieve the glyph's vertical advance height
|
| 1173 |
+
/// rather than horizontal advance widths.</param>
|
| 1174 |
+
/// <remarks>
|
| 1175 |
+
/// This is equivalent to calling GetGlyphMetrics and using only the
|
| 1176 |
+
/// advance width/height.
|
| 1177 |
+
/// </remarks>
|
| 1178 |
+
/// <returns>
|
| 1179 |
+
/// Standard HRESULT error code.
|
| 1180 |
+
/// </returns>
|
| 1181 |
+
STDMETHOD(GetDesignGlyphAdvances)(
|
| 1182 |
+
UINT32 glyphCount,
|
| 1183 |
+
_In_reads_(glyphCount) UINT16 const* glyphIndices,
|
| 1184 |
+
_Out_writes_(glyphCount) INT32* glyphAdvances,
|
| 1185 |
+
BOOL isSideways = FALSE
|
| 1186 |
+
) PURE;
|
| 1187 |
+
|
| 1188 |
+
/// <summary>
|
| 1189 |
+
/// Returns the pixel-aligned advances for a sequences of glyphs, the same
|
| 1190 |
+
/// as GetGdiCompatibleGlyphMetrics would return.
|
| 1191 |
+
/// </summary>
|
| 1192 |
+
/// <param name="emSize">Logical size of the font in DIP units. A DIP
|
| 1193 |
+
/// ("device-independent pixel") equals 1/96 inch.</param>
|
| 1194 |
+
/// <param name="pixelsPerDip">Number of physical pixels per DIP. For
|
| 1195 |
+
/// example, if the DPI of the rendering surface is 96 this value is
|
| 1196 |
+
/// 1.0f. If the DPI is 120, this value is 120.0f/96.</param>
|
| 1197 |
+
/// <param name="transform">Optional transform applied to the glyphs and
|
| 1198 |
+
/// their positions. This transform is applied after the scaling
|
| 1199 |
+
/// specified by the font size and pixelsPerDip.</param>
|
| 1200 |
+
/// <param name="useGdiNatural">When FALSE, the metrics are the same as
|
| 1201 |
+
/// GDI aliased text (DWRITE_MEASURING_MODE_GDI_CLASSIC). When TRUE,
|
| 1202 |
+
/// the metrics are the same as those measured by GDI using a font
|
| 1203 |
+
/// using CLEARTYPE_NATURAL_QUALITY (DWRITE_MEASURING_MODE_GDI_NATURAL).</param>
|
| 1204 |
+
/// <param name="isSideways">Retrieve the glyph's vertical advances rather
|
| 1205 |
+
/// than horizontal advances.</param>
|
| 1206 |
+
/// <param name="glyphCount">Total glyphs to retrieve adjustments for.</param>
|
| 1207 |
+
/// <param name="glyphIndices">Array of glyph id's to retrieve advances.</param>
|
| 1208 |
+
/// <param name="glyphAdvances">Returned advances in font design units for
|
| 1209 |
+
/// each glyph.</param>
|
| 1210 |
+
/// <remarks>
|
| 1211 |
+
/// This is equivalent to calling GetGdiCompatibleGlyphMetrics and using only
|
| 1212 |
+
/// the advance width/height. Like GetGdiCompatibleGlyphMetrics, these are in
|
| 1213 |
+
/// design units, meaning they must be scaled down by
|
| 1214 |
+
/// DWRITE_FONT_METRICS::designUnitsPerEm.
|
| 1215 |
+
/// </remarks>
|
| 1216 |
+
/// <returns>
|
| 1217 |
+
/// Standard HRESULT error code.
|
| 1218 |
+
/// </returns>
|
| 1219 |
+
STDMETHOD(GetGdiCompatibleGlyphAdvances)(
|
| 1220 |
+
FLOAT emSize,
|
| 1221 |
+
FLOAT pixelsPerDip,
|
| 1222 |
+
_In_opt_ DWRITE_MATRIX const* transform,
|
| 1223 |
+
BOOL useGdiNatural,
|
| 1224 |
+
BOOL isSideways,
|
| 1225 |
+
UINT32 glyphCount,
|
| 1226 |
+
_In_reads_(glyphCount) UINT16 const* glyphIndices,
|
| 1227 |
+
_Out_writes_(glyphCount) INT32* glyphAdvances
|
| 1228 |
+
) PURE;
|
| 1229 |
+
|
| 1230 |
+
/// <summary>
|
| 1231 |
+
/// Retrieves the kerning pair adjustments from the font's kern table.
|
| 1232 |
+
/// </summary>
|
| 1233 |
+
/// <param name="glyphCount">Number of glyphs to retrieve adjustments for.</param>
|
| 1234 |
+
/// <param name="glyphIndices">Array of glyph id's to retrieve adjustments
|
| 1235 |
+
/// for.</param>
|
| 1236 |
+
/// <param name="glyphAdvanceAdjustments">Returned advances in font design units for
|
| 1237 |
+
/// each glyph. The last glyph adjustment is zero.</param>
|
| 1238 |
+
/// <remarks>
|
| 1239 |
+
/// This is not a direct replacement for GDI's character based
|
| 1240 |
+
/// GetKerningPairs, but it serves the same role, without the client
|
| 1241 |
+
/// needing to cache them locally. It also uses glyph id's directly
|
| 1242 |
+
/// rather than UCS-2 characters (how the kern table actually stores
|
| 1243 |
+
/// them) which avoids glyph collapse and ambiguity, such as the dash
|
| 1244 |
+
/// and hyphen, or space and non-breaking space.
|
| 1245 |
+
/// </remarks>
|
| 1246 |
+
/// <remarks>
|
| 1247 |
+
/// Newer fonts may have only GPOS kerning instead of the legacy pair
|
| 1248 |
+
/// table kerning. Such fonts, like Gabriola, will only return 0's for
|
| 1249 |
+
/// adjustments. This function does not virtualize and flatten these
|
| 1250 |
+
/// GPOS entries into kerning pairs.
|
| 1251 |
+
/// </remarks>
|
| 1252 |
+
/// <returns>
|
| 1253 |
+
/// Standard HRESULT error code.
|
| 1254 |
+
/// </returns>
|
| 1255 |
+
STDMETHOD(GetKerningPairAdjustments)(
|
| 1256 |
+
UINT32 glyphCount,
|
| 1257 |
+
_In_reads_(glyphCount) UINT16 const* glyphIndices,
|
| 1258 |
+
_Out_writes_(glyphCount) INT32* glyphAdvanceAdjustments
|
| 1259 |
+
) PURE;
|
| 1260 |
+
|
| 1261 |
+
/// <summary>
|
| 1262 |
+
/// Returns whether or not the font supports pair-kerning.
|
| 1263 |
+
/// </summary>
|
| 1264 |
+
/// <remarks>
|
| 1265 |
+
/// If the font does not support pair table kerning, there is no need to
|
| 1266 |
+
/// call GetKerningPairAdjustments (it would be all zeroes).
|
| 1267 |
+
/// </remarks>
|
| 1268 |
+
/// <returns>
|
| 1269 |
+
/// Whether the font supports kerning pairs.
|
| 1270 |
+
/// </returns>
|
| 1271 |
+
STDMETHOD_(BOOL, HasKerningPairs)() PURE;
|
| 1272 |
+
|
| 1273 |
+
/// <summary>
|
| 1274 |
+
/// Determines the recommended text rendering mode to be used based on the
|
| 1275 |
+
/// font, size, world transform, and measuring mode.
|
| 1276 |
+
/// </summary>
|
| 1277 |
+
/// <param name="fontEmSize">Logical font size in DIPs.</param>
|
| 1278 |
+
/// <param name="dpiX">Number of pixels per logical inch in the horizontal direction.</param>
|
| 1279 |
+
/// <param name="dpiY">Number of pixels per logical inch in the vertical direction.</param>
|
| 1280 |
+
/// <param name="transform">Specifies the world transform.</param>
|
| 1281 |
+
/// <param name="outlineThreshold">Specifies the quality of the graphics system's outline rendering,
|
| 1282 |
+
/// affects the size threshold above which outline rendering is used.</param>
|
| 1283 |
+
/// <param name="measuringMode">Specifies the method used to measure during text layout. For proper
|
| 1284 |
+
/// glyph spacing, the function returns a rendering mode that is compatible with the specified
|
| 1285 |
+
/// measuring mode.</param>
|
| 1286 |
+
/// <param name="renderingMode">Receives the recommended rendering mode.</param>
|
| 1287 |
+
/// <remarks>
|
| 1288 |
+
/// This method should be used to determine the actual rendering mode in cases where the rendering
|
| 1289 |
+
/// mode of the rendering params object is DWRITE_RENDERING_MODE_DEFAULT.
|
| 1290 |
+
/// </remarks>
|
| 1291 |
+
/// <returns>
|
| 1292 |
+
/// Standard HRESULT error code.
|
| 1293 |
+
/// </returns>
|
| 1294 |
+
STDMETHOD(GetRecommendedRenderingMode)(
|
| 1295 |
+
FLOAT fontEmSize,
|
| 1296 |
+
FLOAT dpiX,
|
| 1297 |
+
FLOAT dpiY,
|
| 1298 |
+
_In_opt_ DWRITE_MATRIX const* transform,
|
| 1299 |
+
BOOL isSideways,
|
| 1300 |
+
DWRITE_OUTLINE_THRESHOLD outlineThreshold,
|
| 1301 |
+
DWRITE_MEASURING_MODE measuringMode,
|
| 1302 |
+
_Out_ DWRITE_RENDERING_MODE* renderingMode
|
| 1303 |
+
) PURE;
|
| 1304 |
+
|
| 1305 |
+
/// <summary>
|
| 1306 |
+
/// Retrieves the vertical forms of the nominal glyphs retrieved from
|
| 1307 |
+
/// GetGlyphIndices, using the font's 'vert' table. This is used in
|
| 1308 |
+
/// CJK vertical layout so the correct characters are shown.
|
| 1309 |
+
/// </summary>
|
| 1310 |
+
/// <param name="glyphCount">Number of glyphs to retrieve.</param>
|
| 1311 |
+
/// <param name="nominalGlyphIndices">Original glyph indices from cmap.</param>
|
| 1312 |
+
/// <param name="verticalGlyphIndices">The vertical form of glyph indices.</param>
|
| 1313 |
+
/// <remarks>
|
| 1314 |
+
/// Call GetGlyphIndices to get the nominal glyph indices, followed by
|
| 1315 |
+
/// calling this to remap the to the substituted forms, when the run
|
| 1316 |
+
/// is sideways, and the font has vertical glyph variants.
|
| 1317 |
+
/// </remarks>
|
| 1318 |
+
/// <returns>
|
| 1319 |
+
/// Standard HRESULT error code.
|
| 1320 |
+
/// </returns>
|
| 1321 |
+
STDMETHOD(GetVerticalGlyphVariants)(
|
| 1322 |
+
UINT32 glyphCount,
|
| 1323 |
+
_In_reads_(glyphCount) UINT16 const* nominalGlyphIndices,
|
| 1324 |
+
_Out_writes_(glyphCount) UINT16* verticalGlyphIndices
|
| 1325 |
+
) PURE;
|
| 1326 |
+
|
| 1327 |
+
/// <summary>
|
| 1328 |
+
/// Returns whether or not the font has any vertical glyph variants.
|
| 1329 |
+
/// </summary>
|
| 1330 |
+
/// <remarks>
|
| 1331 |
+
/// For OpenType fonts, this will return true if the font contains a 'vert'
|
| 1332 |
+
/// feature.
|
| 1333 |
+
/// </remarks>
|
| 1334 |
+
/// <returns>
|
| 1335 |
+
/// True if the font contains vertical glyph variants.
|
| 1336 |
+
/// </returns>
|
| 1337 |
+
STDMETHOD_(BOOL, HasVerticalGlyphVariants)() PURE;
|
| 1338 |
+
|
| 1339 |
+
using IDWriteFontFace::GetMetrics;
|
| 1340 |
+
using IDWriteFontFace::GetGdiCompatibleMetrics;
|
| 1341 |
+
using IDWriteFontFace::GetRecommendedRenderingMode;
|
| 1342 |
+
};
|
| 1343 |
+
|
| 1344 |
+
|
| 1345 |
+
/// <summary>
|
| 1346 |
+
/// The IDWriteFont interface represents a physical font in a font collection.
|
| 1347 |
+
/// </summary>
|
| 1348 |
+
interface DWRITE_DECLARE_INTERFACE("acd16696-8c14-4f5d-877e-fe3fc1d32738") IDWriteFont1 : public IDWriteFont
|
| 1349 |
+
{
|
| 1350 |
+
/// <summary>
|
| 1351 |
+
/// Gets common metrics for the font in design units.
|
| 1352 |
+
/// These metrics are applicable to all the glyphs within a font,
|
| 1353 |
+
/// and are used by applications for layout calculations.
|
| 1354 |
+
/// </summary>
|
| 1355 |
+
/// <param name="fontMetrics">Metrics structure to fill in.</param>
|
| 1356 |
+
STDMETHOD_(void, GetMetrics)(
|
| 1357 |
+
_Out_ DWRITE_FONT_METRICS1* fontMetrics
|
| 1358 |
+
) PURE;
|
| 1359 |
+
|
| 1360 |
+
using IDWriteFont::GetMetrics;
|
| 1361 |
+
|
| 1362 |
+
/// <summary>
|
| 1363 |
+
/// Gets the PANOSE values from the font, used for font selection and
|
| 1364 |
+
/// matching.
|
| 1365 |
+
/// </summary>
|
| 1366 |
+
/// <param name="panose">PANOSE structure to fill in.</param>
|
| 1367 |
+
/// <remarks>
|
| 1368 |
+
/// The function does not simulate these, such as substituting a weight or
|
| 1369 |
+
/// proportion inferred on other values. If the font does not specify them,
|
| 1370 |
+
/// they are all set to 'any' (0).
|
| 1371 |
+
/// </remarks>
|
| 1372 |
+
STDMETHOD_(void, GetPanose)(
|
| 1373 |
+
_Out_ DWRITE_PANOSE* panose
|
| 1374 |
+
) PURE;
|
| 1375 |
+
|
| 1376 |
+
/// <summary>
|
| 1377 |
+
/// Returns the list of character ranges supported by the font, which is
|
| 1378 |
+
/// useful for scenarios like character picking, glyph display, and
|
| 1379 |
+
/// efficient font selection lookup. This is similar to GDI's
|
| 1380 |
+
/// GetFontUnicodeRanges, except that it returns the full Unicode range,
|
| 1381 |
+
/// not just 16-bit UCS-2.
|
| 1382 |
+
/// </summary>
|
| 1383 |
+
/// <param name="maxRangeCount">Maximum number of character ranges passed
|
| 1384 |
+
/// in from the client.</param>
|
| 1385 |
+
/// <param name="unicodeRanges">Array of character ranges.</param>
|
| 1386 |
+
/// <param name="actualRangeCount">Actual number of character ranges,
|
| 1387 |
+
/// regardless of the maximum count.</param>
|
| 1388 |
+
/// <remarks>
|
| 1389 |
+
/// These ranges are from the cmap, not the OS/2::ulCodePageRange1.
|
| 1390 |
+
/// </remarks>
|
| 1391 |
+
/// <returns>
|
| 1392 |
+
/// Standard HRESULT error code.
|
| 1393 |
+
/// </returns>
|
| 1394 |
+
STDMETHOD(GetUnicodeRanges)(
|
| 1395 |
+
UINT32 maxRangeCount,
|
| 1396 |
+
_Out_writes_to_opt_(maxRangeCount, *actualRangeCount) DWRITE_UNICODE_RANGE* unicodeRanges,
|
| 1397 |
+
_Out_ UINT32* actualRangeCount
|
| 1398 |
+
) PURE;
|
| 1399 |
+
|
| 1400 |
+
/// <summary>
|
| 1401 |
+
/// Returns true if the font is monospaced, meaning its characters are the
|
| 1402 |
+
/// same fixed-pitch width (non-proportional).
|
| 1403 |
+
/// </summary>
|
| 1404 |
+
STDMETHOD_(BOOL, IsMonospacedFont)() PURE;
|
| 1405 |
+
};
|
| 1406 |
+
|
| 1407 |
+
/// <summary>
|
| 1408 |
+
/// The interface that represents text rendering settings for glyph rasterization and filtering.
|
| 1409 |
+
/// </summary>
|
| 1410 |
+
interface DWRITE_DECLARE_INTERFACE("94413cf4-a6fc-4248-8b50-6674348fcad3") IDWriteRenderingParams1 : public IDWriteRenderingParams
|
| 1411 |
+
{
|
| 1412 |
+
/// <summary>
|
| 1413 |
+
/// Gets the amount of contrast enhancement to use for grayscale antialiasing.
|
| 1414 |
+
/// Valid values are greater than or equal to zero.
|
| 1415 |
+
/// </summary>
|
| 1416 |
+
STDMETHOD_(FLOAT, GetGrayscaleEnhancedContrast)() PURE;
|
| 1417 |
+
};
|
| 1418 |
+
|
| 1419 |
+
/// <summary>
|
| 1420 |
+
/// Analyzes various text properties for complex script processing.
|
| 1421 |
+
/// </summary>
|
| 1422 |
+
interface DWRITE_DECLARE_INTERFACE("80DAD800-E21F-4E83-96CE-BFCCE500DB7C") IDWriteTextAnalyzer1 : public IDWriteTextAnalyzer
|
| 1423 |
+
{
|
| 1424 |
+
/// <summary>
|
| 1425 |
+
/// Applies spacing between characters, properly adjusting glyph clusters
|
| 1426 |
+
/// and diacritics.
|
| 1427 |
+
/// </summary>
|
| 1428 |
+
/// <param name="leadingSpacing">The spacing before each character, in reading order.</param>
|
| 1429 |
+
/// <param name="trailingSpacing">The spacing after each character, in reading order.</param>
|
| 1430 |
+
/// <param name="minimumAdvanceWidth">The minimum advance of each character,
|
| 1431 |
+
/// to prevent characters from becoming too thin or zero-width. This
|
| 1432 |
+
/// must be zero or greater.</param>
|
| 1433 |
+
/// <param name="textLength">The length of the clustermap and original text.</param>
|
| 1434 |
+
/// <param name="glyphCount">The number of glyphs.</param>
|
| 1435 |
+
/// <param name="clusterMap">Mapping from character ranges to glyph ranges.</param>
|
| 1436 |
+
/// <param name="glyphAdvances">The advance width of each glyph.</param>
|
| 1437 |
+
/// <param name="glyphOffsets">The offset of the origin of each glyph.</param>
|
| 1438 |
+
/// <param name="glyphProperties">Properties of each glyph, from GetGlyphs.</param>
|
| 1439 |
+
/// <param name="modifiedGlyphAdvances">The new advance width of each glyph.</param>
|
| 1440 |
+
/// <param name="modifiedGlyphOffsets">The new offset of the origin of each glyph.</param>
|
| 1441 |
+
/// <remarks>
|
| 1442 |
+
/// The input and output advances/offsets are allowed to alias the same array.
|
| 1443 |
+
/// </remarks>
|
| 1444 |
+
/// <returns>
|
| 1445 |
+
/// Standard HRESULT error code.
|
| 1446 |
+
/// </returns>
|
| 1447 |
+
STDMETHOD(ApplyCharacterSpacing)(
|
| 1448 |
+
FLOAT leadingSpacing,
|
| 1449 |
+
FLOAT trailingSpacing,
|
| 1450 |
+
FLOAT minimumAdvanceWidth,
|
| 1451 |
+
UINT32 textLength,
|
| 1452 |
+
UINT32 glyphCount,
|
| 1453 |
+
_In_reads_(textLength) UINT16 const* clusterMap,
|
| 1454 |
+
_In_reads_(glyphCount) FLOAT const* glyphAdvances,
|
| 1455 |
+
_In_reads_(glyphCount) DWRITE_GLYPH_OFFSET const* glyphOffsets,
|
| 1456 |
+
_In_reads_(glyphCount) DWRITE_SHAPING_GLYPH_PROPERTIES const* glyphProperties,
|
| 1457 |
+
_Out_writes_(glyphCount) FLOAT* modifiedGlyphAdvances,
|
| 1458 |
+
_Out_writes_(glyphCount) DWRITE_GLYPH_OFFSET* modifiedGlyphOffsets
|
| 1459 |
+
) PURE;
|
| 1460 |
+
|
| 1461 |
+
/// <summary>
|
| 1462 |
+
/// Retrieves the given baseline from the font.
|
| 1463 |
+
/// </summary>
|
| 1464 |
+
/// <param name="fontFace">The font face to read.</param>
|
| 1465 |
+
/// <param name="baseline">The baseline of interest.</param>
|
| 1466 |
+
/// <param name="isVertical">Whether the baseline is vertical or horizontal.</param>
|
| 1467 |
+
/// <param name="isSimulationAllowed">Simulate the baseline if it is missing in the font.</param>
|
| 1468 |
+
/// <param name="scriptAnalysis">Script analysis result from AnalyzeScript.</param>
|
| 1469 |
+
/// <param name="localeName">The language of the run.</param>
|
| 1470 |
+
/// <param name="baselineCoordinate">The baseline coordinate value in design units.</param>
|
| 1471 |
+
/// <param name="exists">Whether the returned baseline exists in the font.</param>
|
| 1472 |
+
/// <remarks>
|
| 1473 |
+
/// If the baseline does not exist in the font, it is not considered an
|
| 1474 |
+
/// error, but the function will return exists = false. You may then use
|
| 1475 |
+
/// heuristics to calculate the missing base, or, if the flag
|
| 1476 |
+
/// simulationAllowed is true, the function will compute a reasonable
|
| 1477 |
+
/// approximation for you.
|
| 1478 |
+
/// </remarks>
|
| 1479 |
+
/// <returns>
|
| 1480 |
+
/// Standard HRESULT error code.
|
| 1481 |
+
/// </returns>
|
| 1482 |
+
STDMETHOD(GetBaseline)(
|
| 1483 |
+
_In_ IDWriteFontFace* fontFace,
|
| 1484 |
+
DWRITE_BASELINE baseline,
|
| 1485 |
+
BOOL isVertical,
|
| 1486 |
+
BOOL isSimulationAllowed,
|
| 1487 |
+
DWRITE_SCRIPT_ANALYSIS scriptAnalysis,
|
| 1488 |
+
_In_opt_z_ WCHAR const* localeName,
|
| 1489 |
+
_Out_ INT32* baselineCoordinate,
|
| 1490 |
+
_Out_ BOOL* exists
|
| 1491 |
+
) PURE;
|
| 1492 |
+
|
| 1493 |
+
/// <summary>
|
| 1494 |
+
/// Analyzes a text range for script orientation, reading text and
|
| 1495 |
+
/// attributes from the source and reporting results to the sink.
|
| 1496 |
+
/// </summary>
|
| 1497 |
+
/// <param name="analysisSource">Source object to analyze.</param>
|
| 1498 |
+
/// <param name="textPosition">Starting position within the source object.</param>
|
| 1499 |
+
/// <param name="textLength">Length to analyze.</param>
|
| 1500 |
+
/// <param name="analysisSink">Callback object.</param>
|
| 1501 |
+
/// <returns>
|
| 1502 |
+
/// Standard HRESULT error code.
|
| 1503 |
+
/// </returns>
|
| 1504 |
+
/// <remarks>
|
| 1505 |
+
/// All bidi analysis should be resolved before calling this.
|
| 1506 |
+
/// </remarks>
|
| 1507 |
+
STDMETHOD(AnalyzeVerticalGlyphOrientation)(
|
| 1508 |
+
_In_ IDWriteTextAnalysisSource1* analysisSource,
|
| 1509 |
+
UINT32 textPosition,
|
| 1510 |
+
UINT32 textLength,
|
| 1511 |
+
_In_ IDWriteTextAnalysisSink1* analysisSink
|
| 1512 |
+
) PURE;
|
| 1513 |
+
|
| 1514 |
+
/// <summary>
|
| 1515 |
+
/// Returns 2x3 transform matrix for the respective angle to draw the
|
| 1516 |
+
/// glyph run.
|
| 1517 |
+
/// </summary>
|
| 1518 |
+
/// <param name="glyphOrientationAngle">The angle reported into
|
| 1519 |
+
/// SetGlyphOrientation.</param>
|
| 1520 |
+
/// <param name="isSideways">Whether the run's glyphs are sideways or not.</param>
|
| 1521 |
+
/// <param name="transform">Returned transform.</param>
|
| 1522 |
+
/// </remarks>
|
| 1523 |
+
/// <returns>
|
| 1524 |
+
/// Standard HRESULT error code.
|
| 1525 |
+
/// </returns>
|
| 1526 |
+
/// <remarks>
|
| 1527 |
+
/// The returned displacement is zero.
|
| 1528 |
+
/// </remarks>
|
| 1529 |
+
STDMETHOD(GetGlyphOrientationTransform)(
|
| 1530 |
+
DWRITE_GLYPH_ORIENTATION_ANGLE glyphOrientationAngle,
|
| 1531 |
+
BOOL isSideways,
|
| 1532 |
+
_Out_ DWRITE_MATRIX* transform
|
| 1533 |
+
) PURE;
|
| 1534 |
+
|
| 1535 |
+
/// <summary>
|
| 1536 |
+
/// Returns the properties for a given script.
|
| 1537 |
+
/// </summary>
|
| 1538 |
+
/// <param name="scriptAnalysis">The script for a run of text returned
|
| 1539 |
+
/// from IDWriteTextAnalyzer::AnalyzeScript.</param>
|
| 1540 |
+
/// <param name="scriptProperties">Information for the script.</param>
|
| 1541 |
+
/// <returns>
|
| 1542 |
+
/// Returns properties for the given script. If the script is invalid,
|
| 1543 |
+
/// it returns generic properties for the unknown script and E_INVALIDARG.
|
| 1544 |
+
/// </returns>
|
| 1545 |
+
STDMETHOD(GetScriptProperties)(
|
| 1546 |
+
DWRITE_SCRIPT_ANALYSIS scriptAnalysis,
|
| 1547 |
+
_Out_ DWRITE_SCRIPT_PROPERTIES* scriptProperties
|
| 1548 |
+
) PURE;
|
| 1549 |
+
|
| 1550 |
+
/// <summary>
|
| 1551 |
+
/// Determines the complexity of text, and whether or not full script
|
| 1552 |
+
/// shaping needs to be called (GetGlyphs).
|
| 1553 |
+
/// </summary>
|
| 1554 |
+
/// <param name="fontFace">The font face to read.</param>
|
| 1555 |
+
/// <param name="textLength">Length of the text to check.</param>
|
| 1556 |
+
/// <param name="textString">The text to check for complexity. This string
|
| 1557 |
+
/// may be UTF-16, but any supplementary characters will be considered
|
| 1558 |
+
/// complex.</param>
|
| 1559 |
+
/// <param name="isTextSimple">If true, the text is simple, and the
|
| 1560 |
+
/// glyphIndices array will already have the nominal glyphs for you.
|
| 1561 |
+
/// Otherwise you need to call GetGlyphs to properly shape complex
|
| 1562 |
+
/// scripts and OpenType features.
|
| 1563 |
+
/// </param>
|
| 1564 |
+
/// <param name="textLengthRead">The length read of the text run with the
|
| 1565 |
+
/// same complexity, simple or complex. You may call again from that
|
| 1566 |
+
/// point onward.</param>
|
| 1567 |
+
/// <param name="glyphIndices">Optional glyph indices for the text. If the
|
| 1568 |
+
/// function returned that the text was simple, you already have the
|
| 1569 |
+
/// glyphs you need. Otherwise the glyph indices are not meaningful,
|
| 1570 |
+
/// and you should call shaping instead.</param>
|
| 1571 |
+
/// <remarks>
|
| 1572 |
+
/// Text is not simple if the characters are part of a script that has
|
| 1573 |
+
/// complex shaping requirements, require bidi analysis, combine with
|
| 1574 |
+
/// other characters, reside in the supplementary planes, or have glyphs
|
| 1575 |
+
/// which participate in standard OpenType features. The length returned
|
| 1576 |
+
/// will not split combining marks from their base characters.
|
| 1577 |
+
/// </remarks>
|
| 1578 |
+
/// <returns>
|
| 1579 |
+
/// Standard HRESULT error code.
|
| 1580 |
+
/// </returns>
|
| 1581 |
+
STDMETHOD(GetTextComplexity)(
|
| 1582 |
+
_In_reads_(textLength) WCHAR const* textString,
|
| 1583 |
+
UINT32 textLength,
|
| 1584 |
+
_In_ IDWriteFontFace* fontFace,
|
| 1585 |
+
_Out_ BOOL* isTextSimple,
|
| 1586 |
+
_Out_range_(0, textLength) UINT32* textLengthRead,
|
| 1587 |
+
_Out_writes_to_opt_(textLength, *textLengthRead) UINT16* glyphIndices
|
| 1588 |
+
) PURE;
|
| 1589 |
+
|
| 1590 |
+
/// <summary>
|
| 1591 |
+
/// Retrieves justification opportunity information for each of the glyphs
|
| 1592 |
+
/// given the text and shaping glyph properties.
|
| 1593 |
+
/// </summary>
|
| 1594 |
+
/// <param name="fontFace">Font face that was used for shaping. This is
|
| 1595 |
+
/// mainly important for returning correct results of the kashida
|
| 1596 |
+
/// width.</param>
|
| 1597 |
+
/// <param name="fontEmSize">Font em size used for the glyph run.</param>
|
| 1598 |
+
/// <param name="scriptAnalysis">Script of the text from the itemizer.</param>
|
| 1599 |
+
/// <param name="textLength">Length of the text.</param>
|
| 1600 |
+
/// <param name="glyphCount">Number of glyphs.</param>
|
| 1601 |
+
/// <param name="textString">Characters used to produce the glyphs.</param>
|
| 1602 |
+
/// <param name="clusterMap">Clustermap produced from shaping.</param>
|
| 1603 |
+
/// <param name="glyphProperties">Glyph properties produced from shaping.</param>
|
| 1604 |
+
/// <param name="justificationOpportunities">Receives information for the
|
| 1605 |
+
/// allowed justification expansion/compression for each glyph.</param>
|
| 1606 |
+
/// <remarks>
|
| 1607 |
+
/// This function is called per-run, after shaping is done via GetGlyphs().
|
| 1608 |
+
/// Note this function only supports natural metrics (DWRITE_MEASURING_MODE_NATURAL).
|
| 1609 |
+
/// </remarks>
|
| 1610 |
+
/// <returns>
|
| 1611 |
+
/// Standard HRESULT error code.
|
| 1612 |
+
/// </returns>
|
| 1613 |
+
STDMETHOD(GetJustificationOpportunities)(
|
| 1614 |
+
_In_opt_ IDWriteFontFace* fontFace,
|
| 1615 |
+
FLOAT fontEmSize,
|
| 1616 |
+
DWRITE_SCRIPT_ANALYSIS scriptAnalysis,
|
| 1617 |
+
UINT32 textLength,
|
| 1618 |
+
UINT32 glyphCount,
|
| 1619 |
+
_In_reads_(textLength) WCHAR const* textString,
|
| 1620 |
+
_In_reads_(textLength) UINT16 const* clusterMap,
|
| 1621 |
+
_In_reads_(glyphCount) DWRITE_SHAPING_GLYPH_PROPERTIES const* glyphProperties,
|
| 1622 |
+
_Out_writes_(glyphCount) DWRITE_JUSTIFICATION_OPPORTUNITY* justificationOpportunities
|
| 1623 |
+
) PURE;
|
| 1624 |
+
|
| 1625 |
+
/// <summary>
|
| 1626 |
+
/// Justifies an array of glyph advances to fit the line width.
|
| 1627 |
+
/// </summary>
|
| 1628 |
+
/// <param name="lineWidth">Width of the line.</param>
|
| 1629 |
+
/// <param name="glyphCount">Number of glyphs.</param>
|
| 1630 |
+
/// <param name="justificationOpportunities">Opportunities per glyph. Call
|
| 1631 |
+
/// GetJustificationOpportunities() to get suitable opportunities
|
| 1632 |
+
/// according to script.</param>
|
| 1633 |
+
/// <param name="glyphAdvances">Original glyph advances from shaping.</param>
|
| 1634 |
+
/// <param name="glyphOffsets">Original glyph offsets from shaping.</param>
|
| 1635 |
+
/// <param name="justifiedGlyphAdvances">Justified glyph advances.</param>
|
| 1636 |
+
/// <param name="justifiedGlyphOffsets">Justified glyph offsets.</param>
|
| 1637 |
+
/// <remarks>
|
| 1638 |
+
/// This is called after all the opportunities have been collected, and it
|
| 1639 |
+
/// spans across the entire line. The input and output arrays are allowed
|
| 1640 |
+
/// to alias each other, permitting in-place update.
|
| 1641 |
+
/// </remarks>
|
| 1642 |
+
/// <returns>
|
| 1643 |
+
/// Standard HRESULT error code.
|
| 1644 |
+
/// </returns>
|
| 1645 |
+
STDMETHOD(JustifyGlyphAdvances)(
|
| 1646 |
+
FLOAT lineWidth,
|
| 1647 |
+
UINT32 glyphCount,
|
| 1648 |
+
_In_reads_(glyphCount) DWRITE_JUSTIFICATION_OPPORTUNITY const* justificationOpportunities,
|
| 1649 |
+
_In_reads_(glyphCount) FLOAT const* glyphAdvances,
|
| 1650 |
+
_In_reads_(glyphCount) DWRITE_GLYPH_OFFSET const* glyphOffsets,
|
| 1651 |
+
_Out_writes_(glyphCount) FLOAT* justifiedGlyphAdvances,
|
| 1652 |
+
_Out_writes_opt_(glyphCount) DWRITE_GLYPH_OFFSET* justifiedGlyphOffsets
|
| 1653 |
+
) PURE;
|
| 1654 |
+
|
| 1655 |
+
/// <summary>
|
| 1656 |
+
/// Fills in new glyphs for complex scripts where justification increased
|
| 1657 |
+
/// the advances of glyphs, such as Arabic with kashida.
|
| 1658 |
+
/// </summary>
|
| 1659 |
+
/// <param name="fontFace">Font face used for shaping.</param>
|
| 1660 |
+
/// <param name="fontEmSize">Font em size used for the glyph run.</param>
|
| 1661 |
+
/// <param name="scriptAnalysis">Script of the text from the itemizer.</param>
|
| 1662 |
+
/// <param name="textLength">Length of the text.</param>
|
| 1663 |
+
/// <param name="glyphCount">Number of glyphs.</param>
|
| 1664 |
+
/// <param name="maxGlyphCount">Maximum number of output glyphs allocated
|
| 1665 |
+
/// by caller.</param>
|
| 1666 |
+
/// <param name="clusterMap">Clustermap produced from shaping.</param>
|
| 1667 |
+
/// <param name="glyphIndices">Original glyphs produced from shaping.</param>
|
| 1668 |
+
/// <param name="glyphAdvances">Original glyph advances produced from shaping.</param>
|
| 1669 |
+
/// <param name="justifiedGlyphAdvances">Justified glyph advances from
|
| 1670 |
+
/// JustifyGlyphAdvances().</param>
|
| 1671 |
+
/// <param name="justifiedGlyphOffsets">Justified glyph offsets from
|
| 1672 |
+
/// JustifyGlyphAdvances().</param>
|
| 1673 |
+
/// <param name="glyphProperties">Properties of each glyph, from GetGlyphs.</param>
|
| 1674 |
+
/// <param name="actualGlyphCount">The new glyph count written to the
|
| 1675 |
+
/// modified arrays, or the needed glyph count if the size is not
|
| 1676 |
+
/// large enough.</param>
|
| 1677 |
+
/// <param name="modifiedClusterMap">Updated clustermap.</param>
|
| 1678 |
+
/// <param name="modifiedGlyphIndices">Updated glyphs with new glyphs
|
| 1679 |
+
/// inserted where needed.</param>
|
| 1680 |
+
/// <param name="modifiedGlyphAdvances">Updated glyph advances.</param>
|
| 1681 |
+
/// <param name="modifiedGlyphOffsets">Updated glyph offsets.</param>
|
| 1682 |
+
/// <remarks>
|
| 1683 |
+
/// This is called after the line has been justified, and it is per-run.
|
| 1684 |
+
/// It only needs to be called if the script has a specific justification
|
| 1685 |
+
/// character via GetScriptProperties, and it is mainly for cursive scripts
|
| 1686 |
+
/// like Arabic. If maxGlyphCount is not large enough, the error
|
| 1687 |
+
/// E_NOT_SUFFICIENT_BUFFER will be returned, with actualGlyphCount holding
|
| 1688 |
+
/// the final/needed glyph count.
|
| 1689 |
+
/// </remarks>
|
| 1690 |
+
/// <returns>
|
| 1691 |
+
/// Standard HRESULT error code.
|
| 1692 |
+
/// </returns>
|
| 1693 |
+
STDMETHOD(GetJustifiedGlyphs)(
|
| 1694 |
+
_In_opt_ IDWriteFontFace* fontFace,
|
| 1695 |
+
FLOAT fontEmSize,
|
| 1696 |
+
DWRITE_SCRIPT_ANALYSIS scriptAnalysis,
|
| 1697 |
+
UINT32 textLength,
|
| 1698 |
+
UINT32 glyphCount,
|
| 1699 |
+
UINT32 maxGlyphCount,
|
| 1700 |
+
_In_reads_opt_(textLength) UINT16 const* clusterMap,
|
| 1701 |
+
_In_reads_(glyphCount) UINT16 const* glyphIndices,
|
| 1702 |
+
_In_reads_(glyphCount) FLOAT const* glyphAdvances,
|
| 1703 |
+
_In_reads_(glyphCount) FLOAT const* justifiedGlyphAdvances,
|
| 1704 |
+
_In_reads_(glyphCount) DWRITE_GLYPH_OFFSET const* justifiedGlyphOffsets,
|
| 1705 |
+
_In_reads_(glyphCount) DWRITE_SHAPING_GLYPH_PROPERTIES const* glyphProperties,
|
| 1706 |
+
_Out_range_(glyphCount, maxGlyphCount) UINT32* actualGlyphCount,
|
| 1707 |
+
_Out_writes_opt_(textLength) UINT16* modifiedClusterMap,
|
| 1708 |
+
_Out_writes_to_(maxGlyphCount, *actualGlyphCount) UINT16* modifiedGlyphIndices,
|
| 1709 |
+
_Out_writes_to_(maxGlyphCount, *actualGlyphCount) FLOAT* modifiedGlyphAdvances,
|
| 1710 |
+
_Out_writes_to_(maxGlyphCount, *actualGlyphCount) DWRITE_GLYPH_OFFSET* modifiedGlyphOffsets
|
| 1711 |
+
) PURE;
|
| 1712 |
+
};
|
| 1713 |
+
|
| 1714 |
+
|
| 1715 |
+
/// <summary>
|
| 1716 |
+
/// The interface implemented by the client to provide needed information to
|
| 1717 |
+
/// the text analyzer, such as the text and associated text properties.
|
| 1718 |
+
/// If any of these callbacks returns an error, the analysis functions will
|
| 1719 |
+
/// stop prematurely and return a callback error.
|
| 1720 |
+
/// </summary>
|
| 1721 |
+
interface DWRITE_DECLARE_INTERFACE("639CFAD8-0FB4-4B21-A58A-067920120009") IDWriteTextAnalysisSource1 : public IDWriteTextAnalysisSource
|
| 1722 |
+
{
|
| 1723 |
+
/// <summary>
|
| 1724 |
+
/// The text analyzer calls back to this to get the desired glyph
|
| 1725 |
+
/// orientation and resolved bidi level, which it uses along with the
|
| 1726 |
+
/// script properties of the text to determine the actual orientation of
|
| 1727 |
+
/// each character, which it reports back to the client via the sink
|
| 1728 |
+
/// SetGlyphOrientation method.
|
| 1729 |
+
/// </summary>
|
| 1730 |
+
/// <param name="textPosition">First position of the piece to obtain. All
|
| 1731 |
+
/// positions are in UTF-16 code-units, not whole characters, which
|
| 1732 |
+
/// matters when supplementary characters are used.</param>
|
| 1733 |
+
/// <param name="textLength">Number of UTF-16 units of the retrieved chunk.
|
| 1734 |
+
/// The returned length is not the length of the block, but the length
|
| 1735 |
+
/// remaining in the block, from the given position until its end.
|
| 1736 |
+
/// So querying for a position that is 75 positions into a 100
|
| 1737 |
+
/// postition block would return 25.</param>
|
| 1738 |
+
/// <param name="glyphOrientation">The type of glyph orientation the
|
| 1739 |
+
/// client wants for this range, up to the returned text length.</param>
|
| 1740 |
+
/// <param name="bidiLevel">The bidi level for this range up to
|
| 1741 |
+
/// the returned text length, which comes from an earlier
|
| 1742 |
+
/// bidirectional analysis.</param>
|
| 1743 |
+
/// <returns>
|
| 1744 |
+
/// Standard HRESULT error code. Returning an error will abort the
|
| 1745 |
+
/// analysis.
|
| 1746 |
+
/// </returns>
|
| 1747 |
+
STDMETHOD(GetVerticalGlyphOrientation)(
|
| 1748 |
+
UINT32 textPosition,
|
| 1749 |
+
_Out_ UINT32* textLength,
|
| 1750 |
+
_Out_ DWRITE_VERTICAL_GLYPH_ORIENTATION* glyphOrientation,
|
| 1751 |
+
_Out_ UINT8* bidiLevel
|
| 1752 |
+
) PURE;
|
| 1753 |
+
};
|
| 1754 |
+
|
| 1755 |
+
|
| 1756 |
+
/// <summary>
|
| 1757 |
+
/// The interface implemented by the client to receive the
|
| 1758 |
+
/// output of the text analyzers.
|
| 1759 |
+
/// </summary>
|
| 1760 |
+
interface DWRITE_DECLARE_INTERFACE("B0D941A0-85E7-4D8B-9FD3-5CED9934482A") IDWriteTextAnalysisSink1 : public IDWriteTextAnalysisSink
|
| 1761 |
+
{
|
| 1762 |
+
/// <summary>
|
| 1763 |
+
/// The text analyzer calls back to this to report the actual orientation
|
| 1764 |
+
/// of each character for shaping and drawing.
|
| 1765 |
+
/// </summary>
|
| 1766 |
+
/// <param name="textPosition">Starting position to report from.</param>
|
| 1767 |
+
/// <param name="textLength">Number of UTF-16 units of the reported range.</param>
|
| 1768 |
+
/// <param name="glyphOrientationAngle">Angle of the glyphs within the text
|
| 1769 |
+
/// range (pass to GetGlyphOrientationTransform to get the world
|
| 1770 |
+
/// relative transform).</param>
|
| 1771 |
+
/// <param name="adjustedBidiLevel">The adjusted bidi level to be used by
|
| 1772 |
+
/// the client layout for reordering runs. This will differ from the
|
| 1773 |
+
/// resolved bidi level retrieved from the source for cases such as
|
| 1774 |
+
/// Arabic stacked top-to-bottom, where the glyphs are still shaped
|
| 1775 |
+
/// as RTL, but the runs are TTB along with any CJK or Latin.</param>
|
| 1776 |
+
/// <param name="isSideways">Whether the glyphs are rotated on their side,
|
| 1777 |
+
/// which is the default case for CJK and the case stacked Latin</param>
|
| 1778 |
+
/// <param name="isRightToLeft">Whether the script should be shaped as
|
| 1779 |
+
/// right-to-left. For Arabic stacked top-to-bottom, even when the
|
| 1780 |
+
/// adjusted bidi level is coerced to an even level, this will still
|
| 1781 |
+
/// be true.</param>
|
| 1782 |
+
/// <returns>
|
| 1783 |
+
/// A successful code or error code to abort analysis.
|
| 1784 |
+
/// </returns>
|
| 1785 |
+
STDMETHOD(SetGlyphOrientation)(
|
| 1786 |
+
UINT32 textPosition,
|
| 1787 |
+
UINT32 textLength,
|
| 1788 |
+
DWRITE_GLYPH_ORIENTATION_ANGLE glyphOrientationAngle,
|
| 1789 |
+
UINT8 adjustedBidiLevel,
|
| 1790 |
+
BOOL isSideways,
|
| 1791 |
+
BOOL isRightToLeft
|
| 1792 |
+
) PURE;
|
| 1793 |
+
};
|
| 1794 |
+
|
| 1795 |
+
|
| 1796 |
+
/// <summary>
|
| 1797 |
+
/// The IDWriteTextLayout1 interface represents a block of text after it has
|
| 1798 |
+
/// been fully analyzed and formatted.
|
| 1799 |
+
///
|
| 1800 |
+
/// All coordinates are in device independent pixels (DIPs).
|
| 1801 |
+
/// </summary>
|
| 1802 |
+
interface DWRITE_DECLARE_INTERFACE("9064D822-80A7-465C-A986-DF65F78B8FEB") IDWriteTextLayout1 : public IDWriteTextLayout
|
| 1803 |
+
{
|
| 1804 |
+
/// <summary>
|
| 1805 |
+
/// Enables/disables pair-kerning on the given range.
|
| 1806 |
+
/// </summary>
|
| 1807 |
+
/// <param name="isPairKerningEnabled">The Boolean flag indicates whether text is pair-kerned.</param>
|
| 1808 |
+
/// <param name="textRange">Text range to which this change applies.</param>
|
| 1809 |
+
/// <returns>
|
| 1810 |
+
/// Standard HRESULT error code.
|
| 1811 |
+
/// </returns>
|
| 1812 |
+
STDMETHOD(SetPairKerning)(
|
| 1813 |
+
BOOL isPairKerningEnabled,
|
| 1814 |
+
DWRITE_TEXT_RANGE textRange
|
| 1815 |
+
) PURE;
|
| 1816 |
+
|
| 1817 |
+
/// <summary>
|
| 1818 |
+
/// Get whether or not pair-kerning is enabled at given position.
|
| 1819 |
+
/// </summary>
|
| 1820 |
+
/// <param name="currentPosition">The current text position.</param>
|
| 1821 |
+
/// <param name="isPairKerningEnabled">The Boolean flag indicates whether text is pair-kerned.</param>
|
| 1822 |
+
/// <param name="textRange">The position range of the current format.</param>
|
| 1823 |
+
/// <returns>
|
| 1824 |
+
/// Standard HRESULT error code.
|
| 1825 |
+
/// </returns>
|
| 1826 |
+
STDMETHOD(GetPairKerning)(
|
| 1827 |
+
UINT32 currentPosition,
|
| 1828 |
+
_Out_ BOOL* isPairKerningEnabled,
|
| 1829 |
+
_Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL
|
| 1830 |
+
) PURE;
|
| 1831 |
+
|
| 1832 |
+
/// <summary>
|
| 1833 |
+
/// Sets the spacing between characters.
|
| 1834 |
+
/// </summary>
|
| 1835 |
+
/// <param name="leadingSpacing">The spacing before each character, in reading order.</param>
|
| 1836 |
+
/// <param name="trailingSpacing">The spacing after each character, in reading order.</param>
|
| 1837 |
+
/// <param name="minimumAdvanceWidth">The minimum advance of each character,
|
| 1838 |
+
/// to prevent characters from becoming too thin or zero-width. This
|
| 1839 |
+
/// must be zero or greater.</param>
|
| 1840 |
+
/// <param name="textRange">Text range to which this change applies.</param>
|
| 1841 |
+
/// <returns>
|
| 1842 |
+
/// Standard HRESULT error code.
|
| 1843 |
+
/// </returns>
|
| 1844 |
+
STDMETHOD(SetCharacterSpacing)(
|
| 1845 |
+
FLOAT leadingSpacing,
|
| 1846 |
+
FLOAT trailingSpacing,
|
| 1847 |
+
FLOAT minimumAdvanceWidth,
|
| 1848 |
+
DWRITE_TEXT_RANGE textRange
|
| 1849 |
+
) PURE;
|
| 1850 |
+
|
| 1851 |
+
/// <summary>
|
| 1852 |
+
/// Gets the spacing between characters.
|
| 1853 |
+
/// </summary>
|
| 1854 |
+
/// <param name="currentPosition">The current text position.</param>
|
| 1855 |
+
/// <param name="leadingSpacing">The spacing before each character, in reading order.</param>
|
| 1856 |
+
/// <param name="trailingSpacing">The spacing after each character, in reading order.</param>
|
| 1857 |
+
/// <param name="minimumAdvanceWidth">The minimum advance of each character,
|
| 1858 |
+
/// to prevent characters from becoming too thin or zero-width. This
|
| 1859 |
+
/// must be zero or greater.</param>
|
| 1860 |
+
/// <param name="textRange">The position range of the current format.</param>
|
| 1861 |
+
/// <returns>
|
| 1862 |
+
/// Standard HRESULT error code.
|
| 1863 |
+
/// </returns>
|
| 1864 |
+
STDMETHOD(GetCharacterSpacing)(
|
| 1865 |
+
UINT32 currentPosition,
|
| 1866 |
+
_Out_ FLOAT* leadingSpacing,
|
| 1867 |
+
_Out_ FLOAT* trailingSpacing,
|
| 1868 |
+
_Out_ FLOAT* minimumAdvanceWidth,
|
| 1869 |
+
_Out_opt_ DWRITE_TEXT_RANGE* textRange = NULL
|
| 1870 |
+
) PURE;
|
| 1871 |
+
};
|
| 1872 |
+
|
| 1873 |
+
/// <summary>
|
| 1874 |
+
/// Represents the type of antialiasing to use for text when the rendering mode calls for
|
| 1875 |
+
/// antialiasing.
|
| 1876 |
+
/// </summary>
|
| 1877 |
+
enum DWRITE_TEXT_ANTIALIAS_MODE
|
| 1878 |
+
{
|
| 1879 |
+
/// <summary>
|
| 1880 |
+
/// ClearType antialiasing computes coverage independently for the red, green, and blue
|
| 1881 |
+
/// color elements of each pixel. This allows for more detail than conventional antialiasing.
|
| 1882 |
+
/// However, because there is no one alpha value for each pixel, ClearType is not suitable
|
| 1883 |
+
/// rendering text onto a transparent intermediate bitmap.
|
| 1884 |
+
/// </summary>
|
| 1885 |
+
DWRITE_TEXT_ANTIALIAS_MODE_CLEARTYPE,
|
| 1886 |
+
|
| 1887 |
+
/// <summary>
|
| 1888 |
+
/// Grayscale antialiasing computes one coverage value for each pixel. Because the alpha
|
| 1889 |
+
/// value of each pixel is well-defined, text can be rendered onto a transparent bitmap,
|
| 1890 |
+
/// which can then be composited with other content. Note that grayscale rendering with
|
| 1891 |
+
/// IDWriteBitmapRenderTarget1 uses premultiplied alpha.
|
| 1892 |
+
/// </summary>
|
| 1893 |
+
DWRITE_TEXT_ANTIALIAS_MODE_GRAYSCALE
|
| 1894 |
+
};
|
| 1895 |
+
|
| 1896 |
+
/// <summary>
|
| 1897 |
+
/// Encapsulates a 32-bit device independent bitmap and device context, which can be used for rendering glyphs.
|
| 1898 |
+
/// </summary>
|
| 1899 |
+
interface DWRITE_DECLARE_INTERFACE("791e8298-3ef3-4230-9880-c9bdecc42064") IDWriteBitmapRenderTarget1 : public IDWriteBitmapRenderTarget
|
| 1900 |
+
{
|
| 1901 |
+
/// <summary>
|
| 1902 |
+
/// Gets the current text antialiasing mode of the bitmap render target.
|
| 1903 |
+
/// </summary>
|
| 1904 |
+
/// <returns>
|
| 1905 |
+
/// Returns the antialiasing mode.
|
| 1906 |
+
/// </returns>
|
| 1907 |
+
STDMETHOD_(DWRITE_TEXT_ANTIALIAS_MODE, GetTextAntialiasMode)() PURE;
|
| 1908 |
+
|
| 1909 |
+
/// <summary>
|
| 1910 |
+
/// Sets the current text antialiasing mode of the bitmap render target.
|
| 1911 |
+
/// </summary>
|
| 1912 |
+
/// <returns>
|
| 1913 |
+
/// Returns S_OK if successful, or E_INVALIDARG if the argument is not valid.
|
| 1914 |
+
/// </returns>
|
| 1915 |
+
/// <remarks>
|
| 1916 |
+
/// The antialiasing mode of a newly-created bitmap render target defaults to
|
| 1917 |
+
/// DWRITE_TEXT_ANTIALIAS_MODE_CLEARTYPE. An application can change the antialiasing
|
| 1918 |
+
/// mode by calling SetTextAntialiasMode. For example, an application might specify
|
| 1919 |
+
/// grayscale antialiasing when rendering text onto a transparent bitmap.
|
| 1920 |
+
/// </remarks>
|
| 1921 |
+
STDMETHOD(SetTextAntialiasMode)(
|
| 1922 |
+
DWRITE_TEXT_ANTIALIAS_MODE antialiasMode
|
| 1923 |
+
) PURE;
|
| 1924 |
+
};
|
| 1925 |
+
|
| 1926 |
+
#endif /* DWRITE_1_H_INCLUDED */
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwrite_2.h
ADDED
|
@@ -0,0 +1,980 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//+--------------------------------------------------------------------------
|
| 2 |
+
//
|
| 3 |
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
| 4 |
+
//
|
| 5 |
+
// Abstract:
|
| 6 |
+
// DirectX Typography Services public API definitions.
|
| 7 |
+
//
|
| 8 |
+
//----------------------------------------------------------------------------
|
| 9 |
+
|
| 10 |
+
#ifndef DWRITE_2_H_INCLUDED
|
| 11 |
+
#define DWRITE_2_H_INCLUDED
|
| 12 |
+
|
| 13 |
+
#pragma once
|
| 14 |
+
|
| 15 |
+
#include <DWrite_1.h>
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
interface IDWriteFontFallback;
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
/// <summary>
|
| 22 |
+
/// How to align glyphs to the margin.
|
| 23 |
+
/// </summary>
|
| 24 |
+
enum DWRITE_OPTICAL_ALIGNMENT
|
| 25 |
+
{
|
| 26 |
+
/// <summary>
|
| 27 |
+
/// Align to the default metrics of the glyph.
|
| 28 |
+
/// </summary>
|
| 29 |
+
DWRITE_OPTICAL_ALIGNMENT_NONE,
|
| 30 |
+
|
| 31 |
+
/// <summary>
|
| 32 |
+
/// Align glyphs to the margins. Without this, some small whitespace
|
| 33 |
+
/// may be present between the text and the margin from the glyph's side
|
| 34 |
+
/// bearing values. Note that glyphs may still overhang outside the
|
| 35 |
+
/// margin, such as flourishes or italic slants.
|
| 36 |
+
/// </summary>
|
| 37 |
+
DWRITE_OPTICAL_ALIGNMENT_NO_SIDE_BEARINGS,
|
| 38 |
+
};
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
/// <summary>
|
| 42 |
+
/// Whether to enable grid-fitting of glyph outlines (a.k.a. hinting).
|
| 43 |
+
/// </summary>
|
| 44 |
+
enum DWRITE_GRID_FIT_MODE
|
| 45 |
+
{
|
| 46 |
+
/// <summary>
|
| 47 |
+
/// Choose grid fitting base on the font's gasp table information.
|
| 48 |
+
/// </summary>
|
| 49 |
+
DWRITE_GRID_FIT_MODE_DEFAULT,
|
| 50 |
+
|
| 51 |
+
/// <summary>
|
| 52 |
+
/// Always disable grid fitting, using the ideal glyph outlines.
|
| 53 |
+
/// </summary>
|
| 54 |
+
DWRITE_GRID_FIT_MODE_DISABLED,
|
| 55 |
+
|
| 56 |
+
/// <summary>
|
| 57 |
+
/// Enable grid fitting, adjusting glyph outlines for device pixel display.
|
| 58 |
+
/// </summary>
|
| 59 |
+
DWRITE_GRID_FIT_MODE_ENABLED
|
| 60 |
+
};
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
/// <summary>
|
| 64 |
+
/// Overall metrics associated with text after layout.
|
| 65 |
+
/// All coordinates are in device independent pixels (DIPs).
|
| 66 |
+
/// </summary>
|
| 67 |
+
struct DWRITE_TEXT_METRICS1 : DWRITE_TEXT_METRICS
|
| 68 |
+
{
|
| 69 |
+
/// <summary>
|
| 70 |
+
/// The height of the formatted text taking into account the
|
| 71 |
+
/// trailing whitespace at the end of each line, which will
|
| 72 |
+
/// matter for vertical reading directions.
|
| 73 |
+
/// </summary>
|
| 74 |
+
FLOAT heightIncludingTrailingWhitespace;
|
| 75 |
+
};
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
/// <summary>
|
| 79 |
+
/// The text renderer interface represents a set of application-defined
|
| 80 |
+
/// callbacks that perform rendering of text, inline objects, and decorations
|
| 81 |
+
/// such as underlines.
|
| 82 |
+
/// </summary>
|
| 83 |
+
interface DWRITE_DECLARE_INTERFACE("D3E0E934-22A0-427E-AAE4-7D9574B59DB1") IDWriteTextRenderer1 : public IDWriteTextRenderer
|
| 84 |
+
{
|
| 85 |
+
/// <summary>
|
| 86 |
+
/// IDWriteTextLayout::Draw calls this function to instruct the client to
|
| 87 |
+
/// render a run of glyphs.
|
| 88 |
+
/// </summary>
|
| 89 |
+
/// <param name="clientDrawingContext">The context passed to
|
| 90 |
+
/// IDWriteTextLayout::Draw.</param>
|
| 91 |
+
/// <param name="baselineOriginX">X-coordinate of the baseline.</param>
|
| 92 |
+
/// <param name="baselineOriginY">Y-coordinate of the baseline.</param>
|
| 93 |
+
/// <param name="orientationAngle">Orientation of the glyph run.</param>
|
| 94 |
+
/// <param name="measuringMode">Specifies measuring method for glyphs in
|
| 95 |
+
/// the run. Renderer implementations may choose different rendering
|
| 96 |
+
/// modes for given measuring methods, but best results are seen when
|
| 97 |
+
/// the rendering mode matches the corresponding measuring mode:
|
| 98 |
+
/// DWRITE_RENDERING_MODE_CLEARTYPE_NATURAL for DWRITE_MEASURING_MODE_NATURAL
|
| 99 |
+
/// DWRITE_RENDERING_MODE_CLEARTYPE_GDI_CLASSIC for DWRITE_MEASURING_MODE_GDI_CLASSIC
|
| 100 |
+
/// DWRITE_RENDERING_MODE_CLEARTYPE_GDI_NATURAL for DWRITE_MEASURING_MODE_GDI_NATURAL
|
| 101 |
+
/// </param>
|
| 102 |
+
/// <param name="glyphRun">The glyph run to draw.</param>
|
| 103 |
+
/// <param name="glyphRunDescription">Properties of the characters
|
| 104 |
+
/// associated with this run.</param>
|
| 105 |
+
/// <param name="clientDrawingEffect">The drawing effect set in
|
| 106 |
+
/// IDWriteTextLayout::SetDrawingEffect.</param>
|
| 107 |
+
/// <returns>
|
| 108 |
+
/// Standard HRESULT error code.
|
| 109 |
+
/// </returns>
|
| 110 |
+
/// <remarks>
|
| 111 |
+
/// If a non-identity orientation is passed, the glyph run should be
|
| 112 |
+
/// rotated around the given baseline x and y coordinates. The function
|
| 113 |
+
/// IDWriteAnalyzer2::GetGlyphOrientationTransform will return the
|
| 114 |
+
/// necessary transform for you, which can be combined with any existing
|
| 115 |
+
/// world transform on the drawing context.
|
| 116 |
+
/// </remarks>
|
| 117 |
+
STDMETHOD(DrawGlyphRun)(
|
| 118 |
+
_In_opt_ void* clientDrawingContext,
|
| 119 |
+
FLOAT baselineOriginX,
|
| 120 |
+
FLOAT baselineOriginY,
|
| 121 |
+
DWRITE_GLYPH_ORIENTATION_ANGLE orientationAngle,
|
| 122 |
+
DWRITE_MEASURING_MODE measuringMode,
|
| 123 |
+
_In_ DWRITE_GLYPH_RUN const* glyphRun,
|
| 124 |
+
_In_ DWRITE_GLYPH_RUN_DESCRIPTION const* glyphRunDescription,
|
| 125 |
+
_In_opt_ IUnknown* clientDrawingEffect
|
| 126 |
+
) PURE;
|
| 127 |
+
|
| 128 |
+
/// <summary>
|
| 129 |
+
/// IDWriteTextLayout::Draw calls this function to instruct the client to draw
|
| 130 |
+
/// an underline.
|
| 131 |
+
/// </summary>
|
| 132 |
+
/// <param name="clientDrawingContext">The context passed to
|
| 133 |
+
/// IDWriteTextLayout::Draw.</param>
|
| 134 |
+
/// <param name="baselineOriginX">X-coordinate of the baseline.</param>
|
| 135 |
+
/// <param name="baselineOriginY">Y-coordinate of the baseline.</param>
|
| 136 |
+
/// <param name="orientationAngle">Orientation of the underline.</param>
|
| 137 |
+
/// <param name="underline">Underline logical information.</param>
|
| 138 |
+
/// <param name="clientDrawingEffect">The drawing effect set in
|
| 139 |
+
/// IDWriteTextLayout::SetDrawingEffect.</param>
|
| 140 |
+
/// <returns>
|
| 141 |
+
/// Standard HRESULT error code.
|
| 142 |
+
/// </returns>
|
| 143 |
+
/// <remarks>
|
| 144 |
+
/// A single underline can be broken into multiple calls, depending on
|
| 145 |
+
/// how the formatting changes attributes. If font sizes/styles change
|
| 146 |
+
/// within an underline, the thickness and offset will be averaged
|
| 147 |
+
/// weighted according to characters.
|
| 148 |
+
///
|
| 149 |
+
/// To get the correct top coordinate of the underline rect, add
|
| 150 |
+
/// underline::offset to the baseline's Y. Otherwise the underline will
|
| 151 |
+
/// be immediately under the text. The x coordinate will always be passed
|
| 152 |
+
/// as the left side, regardless of text directionality. This simplifies
|
| 153 |
+
/// drawing and reduces the problem of round-off that could potentially
|
| 154 |
+
/// cause gaps or a double stamped alpha blend. To avoid alpha overlap,
|
| 155 |
+
/// round the end points to the nearest device pixel.
|
| 156 |
+
/// </remarks>
|
| 157 |
+
STDMETHOD(DrawUnderline)(
|
| 158 |
+
_In_opt_ void* clientDrawingContext,
|
| 159 |
+
FLOAT baselineOriginX,
|
| 160 |
+
FLOAT baselineOriginY,
|
| 161 |
+
DWRITE_GLYPH_ORIENTATION_ANGLE orientationAngle,
|
| 162 |
+
_In_ DWRITE_UNDERLINE const* underline,
|
| 163 |
+
_In_opt_ IUnknown* clientDrawingEffect
|
| 164 |
+
) PURE;
|
| 165 |
+
|
| 166 |
+
/// <summary>
|
| 167 |
+
/// IDWriteTextLayout::Draw calls this function to instruct the client to draw
|
| 168 |
+
/// a strikethrough.
|
| 169 |
+
/// </summary>
|
| 170 |
+
/// <param name="clientDrawingContext">The context passed to
|
| 171 |
+
/// IDWriteTextLayout::Draw.</param>
|
| 172 |
+
/// <param name="baselineOriginX">X-coordinate of the baseline.</param>
|
| 173 |
+
/// <param name="baselineOriginY">Y-coordinate of the baseline.</param>
|
| 174 |
+
/// <param name="orientationAngle">Orientation of the strikethrough.</param>
|
| 175 |
+
/// <param name="strikethrough">Strikethrough logical information.</param>
|
| 176 |
+
/// <param name="clientDrawingEffect">The drawing effect set in
|
| 177 |
+
/// IDWriteTextLayout::SetDrawingEffect.</param>
|
| 178 |
+
/// <returns>
|
| 179 |
+
/// Standard HRESULT error code.
|
| 180 |
+
/// </returns>
|
| 181 |
+
/// <remarks>
|
| 182 |
+
/// A single strikethrough can be broken into multiple calls, depending on
|
| 183 |
+
/// how the formatting changes attributes. Strikethrough is not averaged
|
| 184 |
+
/// across font sizes/styles changes.
|
| 185 |
+
/// To get the correct top coordinate of the strikethrough rect,
|
| 186 |
+
/// add strikethrough::offset to the baseline's Y.
|
| 187 |
+
/// Like underlines, the x coordinate will always be passed as the left side,
|
| 188 |
+
/// regardless of text directionality.
|
| 189 |
+
/// </remarks>
|
| 190 |
+
STDMETHOD(DrawStrikethrough)(
|
| 191 |
+
_In_opt_ void* clientDrawingContext,
|
| 192 |
+
FLOAT baselineOriginX,
|
| 193 |
+
FLOAT baselineOriginY,
|
| 194 |
+
DWRITE_GLYPH_ORIENTATION_ANGLE orientationAngle,
|
| 195 |
+
_In_ DWRITE_STRIKETHROUGH const* strikethrough,
|
| 196 |
+
_In_opt_ IUnknown* clientDrawingEffect
|
| 197 |
+
) PURE;
|
| 198 |
+
|
| 199 |
+
/// <summary>
|
| 200 |
+
/// IDWriteTextLayout::Draw calls this application callback when it needs to
|
| 201 |
+
/// draw an inline object.
|
| 202 |
+
/// </summary>
|
| 203 |
+
/// <param name="clientDrawingContext">The context passed to
|
| 204 |
+
/// IDWriteTextLayout::Draw.</param>
|
| 205 |
+
/// <param name="originX">X-coordinate at the top-left corner of the
|
| 206 |
+
/// inline object.</param>
|
| 207 |
+
/// <param name="originY">Y-coordinate at the top-left corner of the
|
| 208 |
+
/// inline object.</param>
|
| 209 |
+
/// <param name="orientationAngle">Orientation of the inline object.</param>
|
| 210 |
+
/// <param name="inlineObject">The object set using IDWriteTextLayout::SetInlineObject.</param>
|
| 211 |
+
/// <param name="isSideways">The object should be drawn on its side.</param>
|
| 212 |
+
/// <param name="isRightToLeft">The object is in an right-to-left context
|
| 213 |
+
/// and should be drawn flipped.</param>
|
| 214 |
+
/// <param name="clientDrawingEffect">The drawing effect set in
|
| 215 |
+
/// IDWriteTextLayout::SetDrawingEffect.</param>
|
| 216 |
+
/// <returns>
|
| 217 |
+
/// Standard HRESULT error code.
|
| 218 |
+
/// </returns>
|
| 219 |
+
/// <remarks>
|
| 220 |
+
/// The right-to-left flag is a hint to draw the appropriate visual for
|
| 221 |
+
/// that reading direction. For example, it would look strange to draw an
|
| 222 |
+
/// arrow pointing to the right to indicate a submenu. The sideways flag
|
| 223 |
+
/// similarly hints that the object is drawn in a different orientation.
|
| 224 |
+
/// If a non-identity orientation is passed, the top left of the inline
|
| 225 |
+
/// object should be rotated around the given x and y coordinates.
|
| 226 |
+
/// IDWriteAnalyzer2::GetGlyphOrientationTransform returns the necessary
|
| 227 |
+
/// transform for this.
|
| 228 |
+
/// </remarks>
|
| 229 |
+
STDMETHOD(DrawInlineObject)(
|
| 230 |
+
_In_opt_ void* clientDrawingContext,
|
| 231 |
+
FLOAT originX,
|
| 232 |
+
FLOAT originY,
|
| 233 |
+
DWRITE_GLYPH_ORIENTATION_ANGLE orientationAngle,
|
| 234 |
+
_In_ IDWriteInlineObject* inlineObject,
|
| 235 |
+
BOOL isSideways,
|
| 236 |
+
BOOL isRightToLeft,
|
| 237 |
+
_In_opt_ IUnknown* clientDrawingEffect
|
| 238 |
+
) PURE;
|
| 239 |
+
|
| 240 |
+
using IDWriteTextRenderer::DrawGlyphRun;
|
| 241 |
+
using IDWriteTextRenderer::DrawUnderline;
|
| 242 |
+
using IDWriteTextRenderer::DrawStrikethrough;
|
| 243 |
+
using IDWriteTextRenderer::DrawInlineObject;
|
| 244 |
+
};
|
| 245 |
+
|
| 246 |
+
|
| 247 |
+
/// <summary>
|
| 248 |
+
/// The format of text used for text layout.
|
| 249 |
+
/// </summary>
|
| 250 |
+
/// <remarks>
|
| 251 |
+
/// This object may not be thread-safe and it may carry the state of text format change.
|
| 252 |
+
/// </remarks>
|
| 253 |
+
interface DWRITE_DECLARE_INTERFACE("5F174B49-0D8B-4CFB-8BCA-F1CCE9D06C67") IDWriteTextFormat1 : public IDWriteTextFormat
|
| 254 |
+
{
|
| 255 |
+
/// <summary>
|
| 256 |
+
/// Set the preferred orientation of glyphs when using a vertical reading direction.
|
| 257 |
+
/// </summary>
|
| 258 |
+
/// <param name="glyphOrientation">Preferred glyph orientation.</param>
|
| 259 |
+
/// <returns>
|
| 260 |
+
/// Standard HRESULT error code.
|
| 261 |
+
/// </returns>
|
| 262 |
+
STDMETHOD(SetVerticalGlyphOrientation)(
|
| 263 |
+
DWRITE_VERTICAL_GLYPH_ORIENTATION glyphOrientation
|
| 264 |
+
) PURE;
|
| 265 |
+
|
| 266 |
+
/// <summary>
|
| 267 |
+
/// Get the preferred orientation of glyphs when using a vertical reading
|
| 268 |
+
/// direction.
|
| 269 |
+
/// </summary>
|
| 270 |
+
STDMETHOD_(DWRITE_VERTICAL_GLYPH_ORIENTATION, GetVerticalGlyphOrientation)() PURE;
|
| 271 |
+
|
| 272 |
+
/// <summary>
|
| 273 |
+
/// Set whether or not the last word on the last line is wrapped.
|
| 274 |
+
/// </summary>
|
| 275 |
+
/// <param name="isLastLineWrappingEnabled">Line wrapping option.</param>
|
| 276 |
+
/// <returns>
|
| 277 |
+
/// Standard HRESULT error code.
|
| 278 |
+
/// </returns>
|
| 279 |
+
STDMETHOD(SetLastLineWrapping)(
|
| 280 |
+
BOOL isLastLineWrappingEnabled
|
| 281 |
+
) PURE;
|
| 282 |
+
|
| 283 |
+
/// <summary>
|
| 284 |
+
/// Get whether or not the last word on the last line is wrapped.
|
| 285 |
+
/// </summary>
|
| 286 |
+
STDMETHOD_(BOOL, GetLastLineWrapping)() PURE;
|
| 287 |
+
|
| 288 |
+
/// <summary>
|
| 289 |
+
/// Set how the glyphs align to the edges the margin. Default behavior is
|
| 290 |
+
/// to align glyphs using their default glyphs metrics which include side
|
| 291 |
+
/// bearings.
|
| 292 |
+
/// </summary>
|
| 293 |
+
/// <param name="opticalAlignment">Optical alignment option.</param>
|
| 294 |
+
/// <returns>
|
| 295 |
+
/// Standard HRESULT error code.
|
| 296 |
+
/// </returns>
|
| 297 |
+
STDMETHOD(SetOpticalAlignment)(
|
| 298 |
+
DWRITE_OPTICAL_ALIGNMENT opticalAlignment
|
| 299 |
+
) PURE;
|
| 300 |
+
|
| 301 |
+
/// <summary>
|
| 302 |
+
/// Get how the glyphs align to the edges the margin.
|
| 303 |
+
/// </summary>
|
| 304 |
+
STDMETHOD_(DWRITE_OPTICAL_ALIGNMENT, GetOpticalAlignment)() PURE;
|
| 305 |
+
|
| 306 |
+
/// <summary>
|
| 307 |
+
/// Apply a custom font fallback onto layout. If none is specified,
|
| 308 |
+
/// layout uses the system fallback list.
|
| 309 |
+
/// </summary>
|
| 310 |
+
/// <param name="fontFallback">Custom font fallback created from
|
| 311 |
+
/// IDWriteFontFallbackBuilder::CreateFontFallback or from
|
| 312 |
+
/// IDWriteFactory2::GetSystemFontFallback.</param>
|
| 313 |
+
/// <returns>
|
| 314 |
+
/// Standard HRESULT error code.
|
| 315 |
+
/// </returns>
|
| 316 |
+
STDMETHOD(SetFontFallback)(
|
| 317 |
+
IDWriteFontFallback* fontFallback
|
| 318 |
+
) PURE;
|
| 319 |
+
|
| 320 |
+
/// <summary>
|
| 321 |
+
/// Get the current font fallback object.
|
| 322 |
+
/// </summary>
|
| 323 |
+
STDMETHOD(GetFontFallback)(
|
| 324 |
+
__out IDWriteFontFallback** fontFallback
|
| 325 |
+
) PURE;
|
| 326 |
+
};
|
| 327 |
+
|
| 328 |
+
|
| 329 |
+
/// <summary>
|
| 330 |
+
/// The text layout interface represents a block of text after it has
|
| 331 |
+
/// been fully analyzed and formatted.
|
| 332 |
+
///
|
| 333 |
+
/// All coordinates are in device independent pixels (DIPs).
|
| 334 |
+
/// </summary>
|
| 335 |
+
interface DWRITE_DECLARE_INTERFACE("1093C18F-8D5E-43F0-B064-0917311B525E") IDWriteTextLayout2 : public IDWriteTextLayout1
|
| 336 |
+
{
|
| 337 |
+
/// <summary>
|
| 338 |
+
/// GetMetrics retrieves overall metrics for the formatted string.
|
| 339 |
+
/// </summary>
|
| 340 |
+
/// <param name="textMetrics">The returned metrics.</param>
|
| 341 |
+
/// <returns>
|
| 342 |
+
/// Standard HRESULT error code.
|
| 343 |
+
/// </returns>
|
| 344 |
+
/// <remarks>
|
| 345 |
+
/// Drawing effects like underline and strikethrough do not contribute
|
| 346 |
+
/// to the text size, which is essentially the sum of advance widths and
|
| 347 |
+
/// line heights. Additionally, visible swashes and other graphic
|
| 348 |
+
/// adornments may extend outside the returned width and height.
|
| 349 |
+
/// </remarks>
|
| 350 |
+
STDMETHOD(GetMetrics)(
|
| 351 |
+
_Out_ DWRITE_TEXT_METRICS1* textMetrics
|
| 352 |
+
) PURE;
|
| 353 |
+
|
| 354 |
+
using IDWriteTextLayout::GetMetrics;
|
| 355 |
+
|
| 356 |
+
/// <summary>
|
| 357 |
+
/// Set the preferred orientation of glyphs when using a vertical reading direction.
|
| 358 |
+
/// </summary>
|
| 359 |
+
/// <param name="glyphOrientation">Preferred glyph orientation.</param>
|
| 360 |
+
/// <returns>
|
| 361 |
+
/// Standard HRESULT error code.
|
| 362 |
+
/// </returns>
|
| 363 |
+
STDMETHOD(SetVerticalGlyphOrientation)(
|
| 364 |
+
DWRITE_VERTICAL_GLYPH_ORIENTATION glyphOrientation
|
| 365 |
+
) PURE;
|
| 366 |
+
|
| 367 |
+
/// <summary>
|
| 368 |
+
/// Get the preferred orientation of glyphs when using a vertical reading
|
| 369 |
+
/// direction.
|
| 370 |
+
/// </summary>
|
| 371 |
+
STDMETHOD_(DWRITE_VERTICAL_GLYPH_ORIENTATION, GetVerticalGlyphOrientation)() PURE;
|
| 372 |
+
|
| 373 |
+
/// <summary>
|
| 374 |
+
/// Set whether or not the last word on the last line is wrapped.
|
| 375 |
+
/// </summary>
|
| 376 |
+
/// <param name="isLastLineWrappingEnabled">Line wrapping option.</param>
|
| 377 |
+
/// <returns>
|
| 378 |
+
/// Standard HRESULT error code.
|
| 379 |
+
/// </returns>
|
| 380 |
+
STDMETHOD(SetLastLineWrapping)(
|
| 381 |
+
BOOL isLastLineWrappingEnabled
|
| 382 |
+
) PURE;
|
| 383 |
+
|
| 384 |
+
/// <summary>
|
| 385 |
+
/// Get whether or not the last word on the last line is wrapped.
|
| 386 |
+
/// </summary>
|
| 387 |
+
STDMETHOD_(BOOL, GetLastLineWrapping)() PURE;
|
| 388 |
+
|
| 389 |
+
/// <summary>
|
| 390 |
+
/// Set how the glyphs align to the edges the margin. Default behavior is
|
| 391 |
+
/// to align glyphs using their default glyphs metrics which include side
|
| 392 |
+
/// bearings.
|
| 393 |
+
/// </summary>
|
| 394 |
+
/// <param name="opticalAlignment">Optical alignment option.</param>
|
| 395 |
+
/// <returns>
|
| 396 |
+
/// Standard HRESULT error code.
|
| 397 |
+
/// </returns>
|
| 398 |
+
STDMETHOD(SetOpticalAlignment)(
|
| 399 |
+
DWRITE_OPTICAL_ALIGNMENT opticalAlignment
|
| 400 |
+
) PURE;
|
| 401 |
+
|
| 402 |
+
/// <summary>
|
| 403 |
+
/// Get how the glyphs align to the edges the margin.
|
| 404 |
+
/// </summary>
|
| 405 |
+
STDMETHOD_(DWRITE_OPTICAL_ALIGNMENT, GetOpticalAlignment)() PURE;
|
| 406 |
+
|
| 407 |
+
/// <summary>
|
| 408 |
+
/// Apply a custom font fallback onto layout. If none is specified,
|
| 409 |
+
/// layout uses the system fallback list.
|
| 410 |
+
/// </summary>
|
| 411 |
+
/// <param name="fontFallback">Custom font fallback created from
|
| 412 |
+
/// IDWriteFontFallbackBuilder::CreateFontFallback or
|
| 413 |
+
/// IDWriteFactory2::GetSystemFontFallback.</param>
|
| 414 |
+
/// <returns>
|
| 415 |
+
/// Standard HRESULT error code.
|
| 416 |
+
/// </returns>
|
| 417 |
+
STDMETHOD(SetFontFallback)(
|
| 418 |
+
IDWriteFontFallback* fontFallback
|
| 419 |
+
) PURE;
|
| 420 |
+
|
| 421 |
+
/// <summary>
|
| 422 |
+
/// Get the current font fallback object.
|
| 423 |
+
/// </summary>
|
| 424 |
+
STDMETHOD(GetFontFallback)(
|
| 425 |
+
__out IDWriteFontFallback** fontFallback
|
| 426 |
+
) PURE;
|
| 427 |
+
};
|
| 428 |
+
|
| 429 |
+
|
| 430 |
+
/// <summary>
|
| 431 |
+
/// The text analyzer interface represents a set of application-defined
|
| 432 |
+
/// callbacks that perform rendering of text, inline objects, and decorations
|
| 433 |
+
/// such as underlines.
|
| 434 |
+
/// </summary>
|
| 435 |
+
interface DWRITE_DECLARE_INTERFACE("553A9FF3-5693-4DF7-B52B-74806F7F2EB9") IDWriteTextAnalyzer2 : public IDWriteTextAnalyzer1
|
| 436 |
+
{
|
| 437 |
+
/// <summary>
|
| 438 |
+
/// Returns 2x3 transform matrix for the respective angle to draw the
|
| 439 |
+
/// glyph run or other object.
|
| 440 |
+
/// </summary>
|
| 441 |
+
/// <param name="glyphOrientationAngle">The angle reported to one of the application callbacks,
|
| 442 |
+
/// including IDWriteTextAnalysisSink1::SetGlyphOrientation and IDWriteTextRenderer1::Draw*.</param>
|
| 443 |
+
/// <param name="isSideways">Whether the run's glyphs are sideways or not.</param>
|
| 444 |
+
/// <param name="originX">X origin of the element, be it a glyph run or underline or other.</param>
|
| 445 |
+
/// <param name="originY">Y origin of the element, be it a glyph run or underline or other.</param>
|
| 446 |
+
/// <param name="transform">Returned transform.</param>
|
| 447 |
+
/// <returns>
|
| 448 |
+
/// Standard HRESULT error code.
|
| 449 |
+
/// </returns>
|
| 450 |
+
/// <remarks>
|
| 451 |
+
/// This rotates around the given origin x and y, returning a translation component
|
| 452 |
+
/// such that the glyph run, text decoration, or inline object is drawn with the
|
| 453 |
+
/// right orientation at the expected coordinate.
|
| 454 |
+
/// </remarks>
|
| 455 |
+
STDMETHOD(GetGlyphOrientationTransform)(
|
| 456 |
+
DWRITE_GLYPH_ORIENTATION_ANGLE glyphOrientationAngle,
|
| 457 |
+
BOOL isSideways,
|
| 458 |
+
FLOAT originX,
|
| 459 |
+
FLOAT originY,
|
| 460 |
+
_Out_ DWRITE_MATRIX* transform
|
| 461 |
+
) PURE;
|
| 462 |
+
|
| 463 |
+
/// <summary>
|
| 464 |
+
/// Returns a list of typographic feature tags for the given script and language.
|
| 465 |
+
/// </summary>
|
| 466 |
+
/// <param name="fontFace">The font face to get features from.</param>
|
| 467 |
+
/// <param name="scriptAnalysis">Script analysis result from AnalyzeScript.</param>
|
| 468 |
+
/// <param name="localeName">The locale to use when selecting the feature,
|
| 469 |
+
/// such en-us or ja-jp.</param>
|
| 470 |
+
/// <param name="maxTagCount">Maximum tag count.</param>
|
| 471 |
+
/// <param name="actualTagCount">Actual tag count. If greater than
|
| 472 |
+
/// maxTagCount, E_NOT_SUFFICIENT_BUFFER is returned, and the call
|
| 473 |
+
/// should be retried with a larger buffer.</param>
|
| 474 |
+
/// <param name="tags">Feature tag list.</param>
|
| 475 |
+
/// <returns>
|
| 476 |
+
/// Standard HRESULT error code.
|
| 477 |
+
/// </returns>
|
| 478 |
+
STDMETHOD(GetTypographicFeatures)(
|
| 479 |
+
IDWriteFontFace* fontFace,
|
| 480 |
+
DWRITE_SCRIPT_ANALYSIS scriptAnalysis,
|
| 481 |
+
_In_opt_z_ WCHAR const* localeName,
|
| 482 |
+
UINT32 maxTagCount,
|
| 483 |
+
_Out_ UINT32* actualTagCount,
|
| 484 |
+
_Out_writes_(maxTagCount) DWRITE_FONT_FEATURE_TAG* tags
|
| 485 |
+
) PURE;
|
| 486 |
+
|
| 487 |
+
/// <summary>
|
| 488 |
+
/// Returns an array of which glyphs are affected by a given feature.
|
| 489 |
+
/// </summary>
|
| 490 |
+
/// <param name="fontFace">The font face to read glyph information from.</param>
|
| 491 |
+
/// <param name="scriptAnalysis">Script analysis result from AnalyzeScript.</param>
|
| 492 |
+
/// <param name="localeName">The locale to use when selecting the feature,
|
| 493 |
+
/// such en-us or ja-jp.</param>
|
| 494 |
+
/// <param name="featureTag">OpenType feature name to use, which may be one
|
| 495 |
+
/// of the DWRITE_FONT_FEATURE_TAG values or a custom feature using
|
| 496 |
+
/// DWRITE_MAKE_OPENTYPE_TAG.</param>
|
| 497 |
+
/// <param name="glyphCount">Number of glyph indices to check.</param>
|
| 498 |
+
/// <param name="glyphIndices">Glyph indices to check for feature application.</param>
|
| 499 |
+
/// <param name="featureApplies">Output of which glyphs are affected by the
|
| 500 |
+
/// feature, where for each glyph affected, the respective array index
|
| 501 |
+
/// will be 1. The result is returned per-glyph without regard to
|
| 502 |
+
/// neighboring context of adjacent glyphs.</param>
|
| 503 |
+
/// </remarks>
|
| 504 |
+
/// <returns>
|
| 505 |
+
/// Standard HRESULT error code.
|
| 506 |
+
/// </returns>
|
| 507 |
+
STDMETHOD(CheckTypographicFeature)(
|
| 508 |
+
IDWriteFontFace* fontFace,
|
| 509 |
+
DWRITE_SCRIPT_ANALYSIS scriptAnalysis,
|
| 510 |
+
_In_opt_z_ WCHAR const* localeName,
|
| 511 |
+
DWRITE_FONT_FEATURE_TAG featureTag,
|
| 512 |
+
UINT32 glyphCount,
|
| 513 |
+
_In_reads_(glyphCount) UINT16 const* glyphIndices,
|
| 514 |
+
_Out_writes_(glyphCount) UINT8* featureApplies
|
| 515 |
+
) PURE;
|
| 516 |
+
|
| 517 |
+
using IDWriteTextAnalyzer1::GetGlyphOrientationTransform;
|
| 518 |
+
};
|
| 519 |
+
|
| 520 |
+
|
| 521 |
+
/// <summary>
|
| 522 |
+
/// A font fallback definition used for mapping characters to fonts capable of
|
| 523 |
+
/// supporting them.
|
| 524 |
+
/// </summary>
|
| 525 |
+
interface DWRITE_DECLARE_INTERFACE("EFA008F9-F7A1-48BF-B05C-F224713CC0FF") IDWriteFontFallback : public IUnknown
|
| 526 |
+
{
|
| 527 |
+
/// <summary>
|
| 528 |
+
/// Determines an appropriate font to use to render the range of text.
|
| 529 |
+
/// </summary>
|
| 530 |
+
/// <param name="source">The text source implementation holds the text and
|
| 531 |
+
/// locale.</param>
|
| 532 |
+
/// <param name="textLength">Length of the text to analyze.</param>
|
| 533 |
+
/// <param name="baseFontCollection">Default font collection to use.</param>
|
| 534 |
+
/// <param name="baseFamilyName">Family name of the base font. If you pass
|
| 535 |
+
/// null, no matching will be done against the family.</param>
|
| 536 |
+
/// <param name="baseWeight">Desired weight.</param>
|
| 537 |
+
/// <param name="baseStyle">Desired style.</param>
|
| 538 |
+
/// <param name="baseStretch">Desired stretch.</param>
|
| 539 |
+
/// <param name="mappedLength">Length of text mapped to the mapped font.
|
| 540 |
+
/// This will always be less or equal to the input text length and
|
| 541 |
+
/// greater than zero (if the text length is non-zero) so that the
|
| 542 |
+
/// caller advances at least one character each call.</param>
|
| 543 |
+
/// <param name="mappedFont">The font that should be used to render the
|
| 544 |
+
/// first mappedLength characters of the text. If it returns NULL,
|
| 545 |
+
/// then no known font can render the text, and mappedLength is the
|
| 546 |
+
/// number of unsupported characters to skip.</param>
|
| 547 |
+
/// <param name="scale">Scale factor to multiply the em size of the
|
| 548 |
+
/// returned font by.</param>
|
| 549 |
+
/// <returns>
|
| 550 |
+
/// Standard HRESULT error code.
|
| 551 |
+
/// </returns>
|
| 552 |
+
STDMETHOD(MapCharacters)(
|
| 553 |
+
IDWriteTextAnalysisSource* analysisSource,
|
| 554 |
+
UINT32 textPosition,
|
| 555 |
+
UINT32 textLength,
|
| 556 |
+
_In_opt_ IDWriteFontCollection* baseFontCollection,
|
| 557 |
+
_In_opt_z_ wchar_t const* baseFamilyName,
|
| 558 |
+
DWRITE_FONT_WEIGHT baseWeight,
|
| 559 |
+
DWRITE_FONT_STYLE baseStyle,
|
| 560 |
+
DWRITE_FONT_STRETCH baseStretch,
|
| 561 |
+
_Out_range_(0, textLength) UINT32* mappedLength,
|
| 562 |
+
_COM_Outptr_result_maybenull_ IDWriteFont** mappedFont,
|
| 563 |
+
_Out_ FLOAT* scale
|
| 564 |
+
) PURE;
|
| 565 |
+
};
|
| 566 |
+
|
| 567 |
+
|
| 568 |
+
/// <summary>
|
| 569 |
+
/// Builder used to create a font fallback definition by appending a series of
|
| 570 |
+
/// fallback mappings, followed by a creation call.
|
| 571 |
+
/// </summary>
|
| 572 |
+
/// <remarks>
|
| 573 |
+
/// This object may not be thread-safe.
|
| 574 |
+
/// </remarks>
|
| 575 |
+
interface DWRITE_DECLARE_INTERFACE("FD882D06-8ABA-4FB8-B849-8BE8B73E14DE") IDWriteFontFallbackBuilder : public IUnknown
|
| 576 |
+
{
|
| 577 |
+
/// <summary>
|
| 578 |
+
/// Appends a single mapping to the list. Call this once for each additional mapping.
|
| 579 |
+
/// </summary>
|
| 580 |
+
/// <param name="ranges">Unicode ranges that apply to this mapping.</param>
|
| 581 |
+
/// <param name="rangesCount">Number of Unicode ranges.</param>
|
| 582 |
+
/// <param name="localeName">Locale of the context (e.g. document locale).</param>
|
| 583 |
+
/// <param name="baseFamilyName">Base family name to match against, if applicable.</param>
|
| 584 |
+
/// <param name="fontCollection">Explicit font collection for this mapping (optional).</param>
|
| 585 |
+
/// <param name="targetFamilyNames">List of target family name strings.</param>
|
| 586 |
+
/// <param name="targetFamilyNamesCount">Number of target family names.</param>
|
| 587 |
+
/// <param name="scale">Scale factor to multiply the result target font by.</param>
|
| 588 |
+
/// <returns>
|
| 589 |
+
/// Standard HRESULT error code.
|
| 590 |
+
/// </returns>
|
| 591 |
+
STDMETHOD(AddMapping)(
|
| 592 |
+
_In_reads_(rangesCount) DWRITE_UNICODE_RANGE const* ranges,
|
| 593 |
+
UINT32 rangesCount,
|
| 594 |
+
_In_reads_(targetFamilyNamesCount) WCHAR const** targetFamilyNames,
|
| 595 |
+
UINT32 targetFamilyNamesCount,
|
| 596 |
+
_In_opt_ IDWriteFontCollection* fontCollection = NULL,
|
| 597 |
+
_In_opt_z_ WCHAR const* localeName = NULL,
|
| 598 |
+
_In_opt_z_ WCHAR const* baseFamilyName = NULL,
|
| 599 |
+
FLOAT scale = 1.0f
|
| 600 |
+
) PURE;
|
| 601 |
+
|
| 602 |
+
/// <summary>
|
| 603 |
+
/// Appends all the mappings from an existing font fallback object.
|
| 604 |
+
/// </summary>
|
| 605 |
+
/// <param name="fontFallback">Font fallback to read mappings from.</param>
|
| 606 |
+
/// <returns>
|
| 607 |
+
/// Standard HRESULT error code.
|
| 608 |
+
/// </returns>
|
| 609 |
+
STDMETHOD(AddMappings)(
|
| 610 |
+
IDWriteFontFallback* fontFallback
|
| 611 |
+
) PURE;
|
| 612 |
+
|
| 613 |
+
/// <summary>
|
| 614 |
+
/// Creates the finalized fallback object from the mappings added.
|
| 615 |
+
/// </summary>
|
| 616 |
+
/// <param name="fontFallback">Created fallback list.</param>
|
| 617 |
+
/// <returns>
|
| 618 |
+
/// Standard HRESULT error code.
|
| 619 |
+
/// </returns>
|
| 620 |
+
STDMETHOD(CreateFontFallback)(
|
| 621 |
+
_COM_Outptr_ IDWriteFontFallback** fontFallback
|
| 622 |
+
) PURE;
|
| 623 |
+
};
|
| 624 |
+
|
| 625 |
+
/// <summary>
|
| 626 |
+
/// DWRITE_COLOR_F
|
| 627 |
+
/// </summary>
|
| 628 |
+
#ifndef D3DCOLORVALUE_DEFINED
|
| 629 |
+
|
| 630 |
+
typedef struct _D3DCOLORVALUE {
|
| 631 |
+
union {
|
| 632 |
+
FLOAT r;
|
| 633 |
+
FLOAT dvR;
|
| 634 |
+
};
|
| 635 |
+
union {
|
| 636 |
+
FLOAT g;
|
| 637 |
+
FLOAT dvG;
|
| 638 |
+
};
|
| 639 |
+
union {
|
| 640 |
+
FLOAT b;
|
| 641 |
+
FLOAT dvB;
|
| 642 |
+
};
|
| 643 |
+
union {
|
| 644 |
+
FLOAT a;
|
| 645 |
+
FLOAT dvA;
|
| 646 |
+
};
|
| 647 |
+
} D3DCOLORVALUE;
|
| 648 |
+
|
| 649 |
+
#define D3DCOLORVALUE_DEFINED
|
| 650 |
+
#endif // D3DCOLORVALUE_DEFINED
|
| 651 |
+
|
| 652 |
+
typedef D3DCOLORVALUE DWRITE_COLOR_F;
|
| 653 |
+
|
| 654 |
+
/// <summary>
|
| 655 |
+
/// The IDWriteFont interface represents a physical font in a font collection.
|
| 656 |
+
/// </summary>
|
| 657 |
+
interface DWRITE_DECLARE_INTERFACE("29748ed6-8c9c-4a6a-be0b-d912e8538944") IDWriteFont2 : public IDWriteFont1
|
| 658 |
+
{
|
| 659 |
+
/// <summary>
|
| 660 |
+
/// Returns TRUE if the font contains tables that can provide color information
|
| 661 |
+
/// (including COLR, CPAL, SVG, CBDT, sbix tables), or FALSE if not. Note that
|
| 662 |
+
/// TRUE is returned even in the case when the font tables contain only grayscale
|
| 663 |
+
/// images.
|
| 664 |
+
/// </summary>
|
| 665 |
+
STDMETHOD_(BOOL, IsColorFont)() PURE;
|
| 666 |
+
};
|
| 667 |
+
|
| 668 |
+
/// <summary>
|
| 669 |
+
/// The interface that represents an absolute reference to a font face.
|
| 670 |
+
/// It contains font face type, appropriate file references and face identification data.
|
| 671 |
+
/// Various font data such as metrics, names and glyph outlines is obtained from IDWriteFontFace.
|
| 672 |
+
/// </summary>
|
| 673 |
+
interface DWRITE_DECLARE_INTERFACE("d8b768ff-64bc-4e66-982b-ec8e87f693f7") IDWriteFontFace2 : public IDWriteFontFace1
|
| 674 |
+
{
|
| 675 |
+
/// <summary>
|
| 676 |
+
/// Returns TRUE if the font contains tables that can provide color information
|
| 677 |
+
/// (including COLR, CPAL, SVG, CBDT, sbix tables), or FALSE if not. Note that
|
| 678 |
+
/// TRUE is returned even in the case when the font tables contain only grayscale
|
| 679 |
+
/// images.
|
| 680 |
+
/// </summary>
|
| 681 |
+
STDMETHOD_(BOOL, IsColorFont)() PURE;
|
| 682 |
+
|
| 683 |
+
/// <summary>
|
| 684 |
+
/// Returns the number of color palettes defined by the font. The return
|
| 685 |
+
/// value is zero if the font has no color information. Color fonts must
|
| 686 |
+
/// have at least one palette, with palette index zero being the default.
|
| 687 |
+
/// </summary>
|
| 688 |
+
STDMETHOD_(UINT32, GetColorPaletteCount)() PURE;
|
| 689 |
+
|
| 690 |
+
/// <summary>
|
| 691 |
+
/// Returns the number of entries in each color palette. All color palettes
|
| 692 |
+
/// in a font have the same number of palette entries. The return value is
|
| 693 |
+
/// zero if the font has no color information.
|
| 694 |
+
/// </summary>
|
| 695 |
+
STDMETHOD_(UINT32, GetPaletteEntryCount)() PURE;
|
| 696 |
+
|
| 697 |
+
/// <summary>
|
| 698 |
+
/// Reads color values from the font's color palette.
|
| 699 |
+
/// </summary>
|
| 700 |
+
/// <param name="colorPaletteIndex">Zero-based index of the color palette. If the
|
| 701 |
+
/// font does not have a palette with the specified index, the method returns
|
| 702 |
+
/// DWRITE_E_NOCOLOR.<param>
|
| 703 |
+
/// <param name="firstEntryIndex">Zero-based index of the first palette entry
|
| 704 |
+
/// to read.</param>
|
| 705 |
+
/// <param name="entryCount">Number of palette entries to read.</param>
|
| 706 |
+
/// <param name="paletteEntries">Array that receives the color values.<param>
|
| 707 |
+
/// <returns>
|
| 708 |
+
/// Standard HRESULT error code.
|
| 709 |
+
/// The return value is E_INVALIDARG if firstEntryIndex + entryCount is greater
|
| 710 |
+
/// than the actual number of palette entries as returned by GetPaletteEntryCount.
|
| 711 |
+
/// The return value is DWRITE_E_NOCOLOR if the font does not have a palette
|
| 712 |
+
/// with the specified palette index.
|
| 713 |
+
/// </returns>
|
| 714 |
+
STDMETHOD(GetPaletteEntries)(
|
| 715 |
+
UINT32 colorPaletteIndex,
|
| 716 |
+
UINT32 firstEntryIndex,
|
| 717 |
+
UINT32 entryCount,
|
| 718 |
+
_Out_writes_(entryCount) DWRITE_COLOR_F* paletteEntries
|
| 719 |
+
) PURE;
|
| 720 |
+
|
| 721 |
+
/// <summary>
|
| 722 |
+
/// Determines the recommended text rendering and grid-fit mode to be used based on the
|
| 723 |
+
/// font, size, world transform, and measuring mode.
|
| 724 |
+
/// </summary>
|
| 725 |
+
/// <param name="fontEmSize">Logical font size in DIPs.</param>
|
| 726 |
+
/// <param name="dpiX">Number of pixels per logical inch in the horizontal direction.</param>
|
| 727 |
+
/// <param name="dpiY">Number of pixels per logical inch in the vertical direction.</param>
|
| 728 |
+
/// <param name="transform">Specifies the world transform.</param>
|
| 729 |
+
/// <param name="outlineThreshold">Specifies the quality of the graphics system's outline rendering,
|
| 730 |
+
/// affects the size threshold above which outline rendering is used.</param>
|
| 731 |
+
/// <param name="measuringMode">Specifies the method used to measure during text layout. For proper
|
| 732 |
+
/// glyph spacing, the function returns a rendering mode that is compatible with the specified
|
| 733 |
+
/// measuring mode.</param>
|
| 734 |
+
/// <param name="renderingParams">Rendering parameters object. This parameter is necessary in case the rendering parameters
|
| 735 |
+
/// object overrides the rendering mode.</param>
|
| 736 |
+
/// <param name="renderingMode">Receives the recommended rendering mode.</param>
|
| 737 |
+
/// <param name="gridFitMode">Receives the recommended grid-fit mode.</param>
|
| 738 |
+
/// <remarks>
|
| 739 |
+
/// This method should be used to determine the actual rendering mode in cases where the rendering
|
| 740 |
+
/// mode of the rendering params object is DWRITE_RENDERING_MODE_DEFAULT, and the actual grid-fit
|
| 741 |
+
/// mode when the rendering params object is DWRITE_GRID_FIT_MODE_DEFAULT.
|
| 742 |
+
/// </remarks>
|
| 743 |
+
/// <returns>
|
| 744 |
+
/// Standard HRESULT error code.
|
| 745 |
+
/// </returns>
|
| 746 |
+
STDMETHOD(GetRecommendedRenderingMode)(
|
| 747 |
+
FLOAT fontEmSize,
|
| 748 |
+
FLOAT dpiX,
|
| 749 |
+
FLOAT dpiY,
|
| 750 |
+
_In_opt_ DWRITE_MATRIX const* transform,
|
| 751 |
+
BOOL isSideways,
|
| 752 |
+
DWRITE_OUTLINE_THRESHOLD outlineThreshold,
|
| 753 |
+
DWRITE_MEASURING_MODE measuringMode,
|
| 754 |
+
_In_opt_ IDWriteRenderingParams* renderingParams,
|
| 755 |
+
_Out_ DWRITE_RENDERING_MODE* renderingMode,
|
| 756 |
+
_Out_ DWRITE_GRID_FIT_MODE* gridFitMode
|
| 757 |
+
) PURE;
|
| 758 |
+
|
| 759 |
+
using IDWriteFontFace1::GetRecommendedRenderingMode;
|
| 760 |
+
};
|
| 761 |
+
|
| 762 |
+
/// <summary>
|
| 763 |
+
/// Reserved palette entry index that does not specify any palette entry.
|
| 764 |
+
/// </summary>
|
| 765 |
+
#define DWRITE_NO_PALETTE_INDEX 0xFFFF
|
| 766 |
+
|
| 767 |
+
/// <summary>
|
| 768 |
+
/// Represents a color glyph run. The IDWriteFactory2::TranslateColorGlyphRun
|
| 769 |
+
/// method returns an ordered collection of color glyph runs, which can be
|
| 770 |
+
/// layered on top of each other to produce a color representation of the
|
| 771 |
+
/// given base glyph run.
|
| 772 |
+
/// </summary>
|
| 773 |
+
struct DWRITE_COLOR_GLYPH_RUN
|
| 774 |
+
{
|
| 775 |
+
/// <summary>
|
| 776 |
+
/// Glyph run to render.
|
| 777 |
+
/// </summary>
|
| 778 |
+
DWRITE_GLYPH_RUN glyphRun;
|
| 779 |
+
|
| 780 |
+
/// <summary>
|
| 781 |
+
/// Optional glyph run description.
|
| 782 |
+
/// </summary>
|
| 783 |
+
_Maybenull_ DWRITE_GLYPH_RUN_DESCRIPTION* glyphRunDescription;
|
| 784 |
+
|
| 785 |
+
/// <summary>
|
| 786 |
+
/// Location at which to draw this glyph run.
|
| 787 |
+
/// </summary>
|
| 788 |
+
FLOAT baselineOriginX;
|
| 789 |
+
FLOAT baselineOriginY;
|
| 790 |
+
|
| 791 |
+
/// <summary>
|
| 792 |
+
/// Color to use for this layer, if any. If the paletteIndex member is
|
| 793 |
+
/// DWRITE_NO_PALETTE_INDEX (0xFFFF) then no color is specifed by the font,
|
| 794 |
+
/// this member is set to { 0, 0, 0, 0 }, and the client should use the
|
| 795 |
+
/// current foreground brush. Otherwise, this member is set to a color from
|
| 796 |
+
/// the font's color palette, i.e., the same color that would be returned
|
| 797 |
+
/// by IDWriteFontFace2::GetPaletteEntries for the current palette index.
|
| 798 |
+
/// </summary>
|
| 799 |
+
DWRITE_COLOR_F runColor;
|
| 800 |
+
|
| 801 |
+
/// <summary>
|
| 802 |
+
/// Zero-based index of this layer's color entry in the current color
|
| 803 |
+
/// palette, or DWRITE_NO_PALETTE_INDEX (0xFFFF) if this layer
|
| 804 |
+
/// is to be rendered using the current foreground brush.
|
| 805 |
+
/// </summary>
|
| 806 |
+
UINT16 paletteIndex;
|
| 807 |
+
};
|
| 808 |
+
|
| 809 |
+
/// <summary>
|
| 810 |
+
/// Enumerator for an ordered collection of color glyph runs.
|
| 811 |
+
/// </summary>
|
| 812 |
+
interface DWRITE_DECLARE_INTERFACE("d31fbe17-f157-41a2-8d24-cb779e0560e8") IDWriteColorGlyphRunEnumerator : public IUnknown
|
| 813 |
+
{
|
| 814 |
+
/// <summary>
|
| 815 |
+
/// Advances to the first or next color run. The runs are enumerated
|
| 816 |
+
/// in order from back to front.
|
| 817 |
+
/// </summary>
|
| 818 |
+
/// <param name="hasRun">Receives TRUE if there is a current run or
|
| 819 |
+
/// FALSE if the end of the sequence has been reached.</param>
|
| 820 |
+
/// <returns>
|
| 821 |
+
/// Standard HRESULT error code.
|
| 822 |
+
/// </returns>
|
| 823 |
+
STDMETHOD(MoveNext)(
|
| 824 |
+
_Out_ BOOL* hasRun
|
| 825 |
+
) PURE;
|
| 826 |
+
|
| 827 |
+
/// <summary>
|
| 828 |
+
/// Gets the current color glyph run.
|
| 829 |
+
/// </summary>
|
| 830 |
+
/// <param name="colorGlyphRun">Receives a pointer to the color
|
| 831 |
+
/// glyph run. The pointer remains valid until the next call to
|
| 832 |
+
/// MoveNext or until the interface is released.</param>
|
| 833 |
+
/// <returns>
|
| 834 |
+
/// Standard HRESULT error code. An error is returned if there is
|
| 835 |
+
/// no current glyph run, i.e., if MoveNext has not yet been called
|
| 836 |
+
/// or if the end of the sequence has been reached.
|
| 837 |
+
/// </returns>
|
| 838 |
+
STDMETHOD(GetCurrentRun)(
|
| 839 |
+
_Outptr_ DWRITE_COLOR_GLYPH_RUN const** colorGlyphRun
|
| 840 |
+
) PURE;
|
| 841 |
+
};
|
| 842 |
+
|
| 843 |
+
/// <summary>
|
| 844 |
+
/// The interface that represents text rendering settings for glyph rasterization and filtering.
|
| 845 |
+
/// </summary>
|
| 846 |
+
interface DWRITE_DECLARE_INTERFACE("F9D711C3-9777-40AE-87E8-3E5AF9BF0948") IDWriteRenderingParams2 : public IDWriteRenderingParams1
|
| 847 |
+
{
|
| 848 |
+
/// <summary>
|
| 849 |
+
/// Gets the grid fitting mode.
|
| 850 |
+
/// </summary>
|
| 851 |
+
STDMETHOD_(DWRITE_GRID_FIT_MODE, GetGridFitMode)() PURE;
|
| 852 |
+
};
|
| 853 |
+
|
| 854 |
+
/// <summary>
|
| 855 |
+
/// The root factory interface for all DWrite objects.
|
| 856 |
+
/// </summary>
|
| 857 |
+
interface DWRITE_DECLARE_INTERFACE("0439fc60-ca44-4994-8dee-3a9af7b732ec") IDWriteFactory2 : public IDWriteFactory1
|
| 858 |
+
{
|
| 859 |
+
/// <summary>
|
| 860 |
+
/// Get the system-appropriate font fallback mapping list.
|
| 861 |
+
/// </summary>
|
| 862 |
+
/// <param name="fontFallback">The system fallback list.</param>
|
| 863 |
+
/// <returns>
|
| 864 |
+
/// Standard HRESULT error code.
|
| 865 |
+
/// </returns>
|
| 866 |
+
STDMETHOD(GetSystemFontFallback)(
|
| 867 |
+
_COM_Outptr_ IDWriteFontFallback** fontFallback
|
| 868 |
+
) PURE;
|
| 869 |
+
|
| 870 |
+
/// <summary>
|
| 871 |
+
/// Create a custom font fallback builder.
|
| 872 |
+
/// </summary>
|
| 873 |
+
/// <param name="fontFallbackBuilder">Empty font fallback builder.</param>
|
| 874 |
+
/// <returns>
|
| 875 |
+
/// Standard HRESULT error code.
|
| 876 |
+
/// </returns>
|
| 877 |
+
STDMETHOD(CreateFontFallbackBuilder)(
|
| 878 |
+
_COM_Outptr_ IDWriteFontFallbackBuilder** fontFallbackBuilder
|
| 879 |
+
) PURE;
|
| 880 |
+
|
| 881 |
+
/// <summary>
|
| 882 |
+
/// Translates a glyph run to a sequence of color glyph runs, which can be
|
| 883 |
+
/// rendered to produce a color representation of the original "base" run.
|
| 884 |
+
/// </summary>
|
| 885 |
+
/// <param name="baselineOriginX">Horizontal origin of the base glyph run in
|
| 886 |
+
/// pre-transform coordinates.</param>
|
| 887 |
+
/// <param name="baselineOriginY">Vertical origin of the base glyph run in
|
| 888 |
+
/// pre-transform coordinates.</param>
|
| 889 |
+
/// <param name="glyphRun">Pointer to the original "base" glyph run.</param>
|
| 890 |
+
/// <param name="glyphRunDescription">Optional glyph run description.</param>
|
| 891 |
+
/// <param name="measuringMode">Measuring mode, needed to compute the origins
|
| 892 |
+
/// of each glyph.</param>
|
| 893 |
+
/// <param name="worldToDeviceTransform">Matrix converting from the client's
|
| 894 |
+
/// coordinate space to device coordinates (pixels), i.e., the world transform
|
| 895 |
+
/// multiplied by any DPI scaling.</param>
|
| 896 |
+
/// <param name="colorPaletteIndex">Zero-based index of the color palette to use.
|
| 897 |
+
/// Valid indices are less than the number of palettes in the font, as returned
|
| 898 |
+
/// by IDWriteFontFace2::GetColorPaletteCount.</param>
|
| 899 |
+
/// <param name="colorLayers">If the function succeeds, receives a pointer
|
| 900 |
+
/// to an enumerator object that can be used to obtain the color glyph runs.
|
| 901 |
+
/// If the base run has no color glyphs, then the output pointer is NULL
|
| 902 |
+
/// and the method returns DWRITE_E_NOCOLOR.</param>
|
| 903 |
+
/// <returns>
|
| 904 |
+
/// Returns DWRITE_E_NOCOLOR if the font has no color information, the base
|
| 905 |
+
/// glyph run does not contain any color glyphs, or the specified color palette
|
| 906 |
+
/// index is out of range. In this case, the client should render the base glyph
|
| 907 |
+
/// run. Otherwise, returns a standard HRESULT error code.
|
| 908 |
+
/// </returns>
|
| 909 |
+
STDMETHOD(TranslateColorGlyphRun)(
|
| 910 |
+
FLOAT baselineOriginX,
|
| 911 |
+
FLOAT baselineOriginY,
|
| 912 |
+
_In_ DWRITE_GLYPH_RUN const* glyphRun,
|
| 913 |
+
_In_opt_ DWRITE_GLYPH_RUN_DESCRIPTION const* glyphRunDescription,
|
| 914 |
+
DWRITE_MEASURING_MODE measuringMode,
|
| 915 |
+
_In_opt_ DWRITE_MATRIX const* worldToDeviceTransform,
|
| 916 |
+
UINT32 colorPaletteIndex,
|
| 917 |
+
_COM_Outptr_ IDWriteColorGlyphRunEnumerator** colorLayers
|
| 918 |
+
) PURE;
|
| 919 |
+
|
| 920 |
+
/// <summary>
|
| 921 |
+
/// Creates a rendering parameters object with the specified properties.
|
| 922 |
+
/// </summary>
|
| 923 |
+
/// <param name="gamma">The gamma value used for gamma correction, which must be greater than zero and cannot exceed 256.</param>
|
| 924 |
+
/// <param name="enhancedContrast">The amount of contrast enhancement, zero or greater.</param>
|
| 925 |
+
/// <param name="clearTypeLevel">The degree of ClearType level, from 0.0f (no ClearType) to 1.0f (full ClearType).</param>
|
| 926 |
+
/// <param name="pixelGeometry">The geometry of a device pixel.</param>
|
| 927 |
+
/// <param name="renderingMode">Method of rendering glyphs. In most cases, this should be DWRITE_RENDERING_MODE_DEFAULT to automatically use an appropriate mode.</param>
|
| 928 |
+
/// <param name="gridFitMode">How to grid fit glyph outlines. In most cases, this should be DWRITE_GRID_FIT_DEFAULT to automatically choose an appropriate mode.</param>
|
| 929 |
+
/// <param name="renderingParams">Holds the newly created rendering parameters object, or NULL in case of failure.</param>
|
| 930 |
+
/// <returns>
|
| 931 |
+
/// Standard HRESULT error code.
|
| 932 |
+
/// </returns>
|
| 933 |
+
STDMETHOD(CreateCustomRenderingParams)(
|
| 934 |
+
FLOAT gamma,
|
| 935 |
+
FLOAT enhancedContrast,
|
| 936 |
+
FLOAT grayscaleEnhancedContrast,
|
| 937 |
+
FLOAT clearTypeLevel,
|
| 938 |
+
DWRITE_PIXEL_GEOMETRY pixelGeometry,
|
| 939 |
+
DWRITE_RENDERING_MODE renderingMode,
|
| 940 |
+
DWRITE_GRID_FIT_MODE gridFitMode,
|
| 941 |
+
_COM_Outptr_ IDWriteRenderingParams2** renderingParams
|
| 942 |
+
) PURE;
|
| 943 |
+
|
| 944 |
+
using IDWriteFactory::CreateCustomRenderingParams;
|
| 945 |
+
using IDWriteFactory1::CreateCustomRenderingParams;
|
| 946 |
+
|
| 947 |
+
/// <summary>
|
| 948 |
+
/// Creates a glyph run analysis object, which encapsulates information
|
| 949 |
+
/// used to render a glyph run.
|
| 950 |
+
/// </summary>
|
| 951 |
+
/// <param name="glyphRun">Structure specifying the properties of the glyph run.</param>
|
| 952 |
+
/// <param name="transform">Optional transform applied to the glyphs and their positions. This transform is applied after the
|
| 953 |
+
/// scaling specified by the emSize and pixelsPerDip.</param>
|
| 954 |
+
/// <param name="renderingMode">Specifies the rendering mode, which must be one of the raster rendering modes (i.e., not default
|
| 955 |
+
/// and not outline).</param>
|
| 956 |
+
/// <param name="measuringMode">Specifies the method to measure glyphs.</param>
|
| 957 |
+
/// <param name="gridFitMode">How to grid-fit glyph outlines. This must be non-default.</param>
|
| 958 |
+
/// <param name="baselineOriginX">Horizontal position of the baseline origin, in DIPs.</param>
|
| 959 |
+
/// <param name="baselineOriginY">Vertical position of the baseline origin, in DIPs.</param>
|
| 960 |
+
/// <param name="glyphRunAnalysis">Receives a pointer to the newly created object.</param>
|
| 961 |
+
/// <returns>
|
| 962 |
+
/// Standard HRESULT error code.
|
| 963 |
+
/// </returns>
|
| 964 |
+
STDMETHOD(CreateGlyphRunAnalysis)(
|
| 965 |
+
_In_ DWRITE_GLYPH_RUN const* glyphRun,
|
| 966 |
+
_In_opt_ DWRITE_MATRIX const* transform,
|
| 967 |
+
DWRITE_RENDERING_MODE renderingMode,
|
| 968 |
+
DWRITE_MEASURING_MODE measuringMode,
|
| 969 |
+
DWRITE_GRID_FIT_MODE gridFitMode,
|
| 970 |
+
DWRITE_TEXT_ANTIALIAS_MODE antialiasMode,
|
| 971 |
+
FLOAT baselineOriginX,
|
| 972 |
+
FLOAT baselineOriginY,
|
| 973 |
+
_COM_Outptr_ IDWriteGlyphRunAnalysis** glyphRunAnalysis
|
| 974 |
+
) PURE;
|
| 975 |
+
|
| 976 |
+
using IDWriteFactory::CreateGlyphRunAnalysis;
|
| 977 |
+
};
|
| 978 |
+
|
| 979 |
+
|
| 980 |
+
#endif /* DWRITE_2_H_INCLUDED */
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dwrite_3.h
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dx95type.h
ADDED
|
@@ -0,0 +1,789 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/******************************Module*Header*******************************\
|
| 2 |
+
*
|
| 3 |
+
* Module Name: dx95type.h
|
| 4 |
+
*
|
| 5 |
+
* Portability module for NT kernel-mode DirectX components created from
|
| 6 |
+
* Win95 sources
|
| 7 |
+
*
|
| 8 |
+
* Copyright (c) Microsoft Corp. All Rights Reserved.
|
| 9 |
+
*
|
| 10 |
+
\**************************************************************************/
|
| 11 |
+
|
| 12 |
+
#ifndef __DX95TYPE_H__
|
| 13 |
+
#define __DX95TYPE_H__
|
| 14 |
+
#include <winapifamily.h>
|
| 15 |
+
|
| 16 |
+
#pragma region Desktop Family
|
| 17 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
// Basic includes
|
| 21 |
+
#ifndef NODXINCLUDES
|
| 22 |
+
#ifdef WINNT
|
| 23 |
+
#include <stddef.h>
|
| 24 |
+
// Includes ddrawint.h and d3dnthal.h
|
| 25 |
+
#include <winddi.h>
|
| 26 |
+
#else // WINNT
|
| 27 |
+
#include <ddrawi.h>
|
| 28 |
+
#include <d3dhal.h>
|
| 29 |
+
#endif // WINNT
|
| 30 |
+
#endif // NODXINCLUDES
|
| 31 |
+
|
| 32 |
+
// Simple memory allocation of N bytes
|
| 33 |
+
#ifndef NODXMALLOC
|
| 34 |
+
#ifdef WINNT
|
| 35 |
+
#define DXMALLOC(n) EngAllocMem(0, n, 'amxD')
|
| 36 |
+
#define DXMALLOCZ(n) EngAllocMem(FL_ZERO_MEMORY, n, 'amxD')
|
| 37 |
+
#define DXFREE(p) EngFreeMem(p)
|
| 38 |
+
#else // WINNT
|
| 39 |
+
#define DXMALLOC(n) HeapAlloc(GetProcessHeap(), 0, n)
|
| 40 |
+
#define DXMALLOCZ(n) HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, n)
|
| 41 |
+
#define DXFREE(n) HeapFree(GetProcessHeap(), 0, n)
|
| 42 |
+
#endif // WINNT
|
| 43 |
+
#endif // NODXMALLOC
|
| 44 |
+
|
| 45 |
+
// Surface and palette access macros
|
| 46 |
+
#ifndef NODXLCL
|
| 47 |
+
#ifdef WINNT
|
| 48 |
+
#define DDS_LCL(pdds) (pdds)
|
| 49 |
+
#define DDP_LCL(pddp) (pddp)
|
| 50 |
+
#else // WINNT
|
| 51 |
+
#define DDS_LCL(pdds) (((DDRAWI_DDRAWSURFACE_INT *)(pdds))->lpLcl)
|
| 52 |
+
#define DDP_LCL(pddp) (((DDRAWI_DDRAWPALETTE_INT *)(pddp))->lpLcl)
|
| 53 |
+
#endif // WINNT
|
| 54 |
+
#define DDS_LCL_OR_NULL(pdds) ((pdds) == NULL ? NULL : DDS_LCL(pdds))
|
| 55 |
+
#define DDP_LCL_OR_NULL(pddp) ((pddp) == NULL ? NULL : DDP_LCL(pddp))
|
| 56 |
+
#endif // NODXLCL
|
| 57 |
+
|
| 58 |
+
// Typedefs and defines to create a Win95-like compilation environment
|
| 59 |
+
|
| 60 |
+
#ifndef NODX95TYPES
|
| 61 |
+
#ifdef WINNT
|
| 62 |
+
|
| 63 |
+
typedef D3DNTHALDEVICEDESC_V1 D3DDEVICEDESC_V1;
|
| 64 |
+
typedef PDD_SURFACE_LOCAL LPDDRAWI_DDRAWSURFACE_LCL;
|
| 65 |
+
typedef PDD_SURFACE_MORE LPDDRAWI_DDRAWSURFACE_MORE;
|
| 66 |
+
typedef PDD_SURFACE_GLOBAL LPDDRAWI_DDRAWSURFACE_GBL;
|
| 67 |
+
typedef PDD_DIRECTDRAW_GLOBAL LPDDRAWI_DIRECTDRAW_GBL;
|
| 68 |
+
typedef PDD_ATTACHLIST LPATTACHLIST;
|
| 69 |
+
|
| 70 |
+
typedef DDNTCORECAPS DDCORECAPS;
|
| 71 |
+
typedef PDDNTCORECAPS LPDDCORECAPS;
|
| 72 |
+
typedef DD_HALINFO DDHALINFO;
|
| 73 |
+
typedef PDD_HALINFO LPDDHALINFO;
|
| 74 |
+
typedef DD_MORECAPS DDMORECAPS;
|
| 75 |
+
typedef PDD_MORECAPS LPDDMORECAPS;
|
| 76 |
+
|
| 77 |
+
// DirectDraw HAL function data structures
|
| 78 |
+
|
| 79 |
+
typedef PDD_CREATEPALETTEDATA LPDDHAL_CREATEPALETTEDATA;
|
| 80 |
+
typedef PDD_CREATESURFACEDATA LPDDHAL_CREATESURFACEDATA;
|
| 81 |
+
typedef PDD_CREATESURFACEEXDATA LPDDHAL_CREATESURFACEEXDATA;
|
| 82 |
+
typedef PDD_CANCREATESURFACEDATA LPDDHAL_CANCREATESURFACEDATA;
|
| 83 |
+
typedef PDD_WAITFORVERTICALBLANKDATA LPDDHAL_WAITFORVERTICALBLANKDATA;
|
| 84 |
+
typedef PDD_DESTROYDRIVERDATA LPDDHAL_DESTROYDRIVERDATA;
|
| 85 |
+
typedef PDD_SETMODEDATA LPDDHAL_SETMODEDATA;
|
| 86 |
+
typedef PDD_DRVSETCOLORKEYDATA LPDDHAL_DRVSETCOLORKEYDATA;
|
| 87 |
+
typedef PDD_GETSCANLINEDATA LPDDHAL_GETSCANLINEDATA;
|
| 88 |
+
typedef PDD_MAPMEMORYDATA LPDDHAL_MAPMEMORYDATA;
|
| 89 |
+
typedef PDD_SETEXCLUSIVEMODEDATA LPDDHAL_SETEXCLUSIVEMODEDATA;
|
| 90 |
+
typedef PDD_FLIPTOGDISURFACEDATA LPDDHAL_FLIPTOGDISURFACEDATA;
|
| 91 |
+
typedef PDD_UPDATENONLOCALHEAPDATA LPDDHAL_UPDATENONLOCALHEAPDATA;
|
| 92 |
+
typedef PDD_GETHEAPALIGNMENTDATA LPDDHAL_GETHEAPALIGNMENTDATA;
|
| 93 |
+
typedef DD_CREATEPALETTEDATA DDHAL_CREATEPALETTEDATA;
|
| 94 |
+
typedef DD_CREATESURFACEDATA DDHAL_CREATESURFACEDATA;
|
| 95 |
+
typedef DD_CREATESURFACEEXDATA DDHAL_CREATESURFACEEXDATA;
|
| 96 |
+
typedef DD_CANCREATESURFACEDATA DDHAL_CANCREATESURFACEDATA;
|
| 97 |
+
typedef DD_WAITFORVERTICALBLANKDATA DDHAL_WAITFORVERTICALBLANKDATA;
|
| 98 |
+
typedef DD_DRVSETCOLORKEYDATA DDHAL_DRVSETCOLORKEYDATA;
|
| 99 |
+
typedef DD_GETSCANLINEDATA DDHAL_GETSCANLINEDATA;
|
| 100 |
+
typedef DD_MAPMEMORYDATA DDHAL_MAPMEMORYDATA;
|
| 101 |
+
typedef DD_SETEXCLUSIVEMODEDATA DDHAL_SETEXCLUSIVEMODEDATA;
|
| 102 |
+
typedef DD_FLIPTOGDISURFACEDATA DDHAL_FLIPTOGDISURFACEDATA;
|
| 103 |
+
typedef DD_UPDATENONLOCALHEAPDATA DDHAL_UPDATENONLOCALHEAPDATA;
|
| 104 |
+
|
| 105 |
+
typedef PDD_DESTROYPALETTEDATA LPDDHAL_DESTROYPALETTEDATA;
|
| 106 |
+
typedef PDD_SETENTRIESDATA LPDDHAL_SETENTRIESDATA;
|
| 107 |
+
typedef DD_DESTROYPALETTEDATA DDHAL_DESTROYPALETTEDATA;
|
| 108 |
+
typedef DD_SETENTRIESDATA DDHAL_SETENTRIESDATA;
|
| 109 |
+
|
| 110 |
+
typedef PDD_BLTDATA LPDDHAL_BLTDATA;
|
| 111 |
+
typedef PDD_LOCKDATA LPDDHAL_LOCKDATA;
|
| 112 |
+
typedef PDD_UNLOCKDATA LPDDHAL_UNLOCKDATA;
|
| 113 |
+
typedef PDD_UPDATEOVERLAYDATA LPDDHAL_UPDATEOVERLAYDATA;
|
| 114 |
+
typedef PDD_SETOVERLAYPOSITIONDATA LPDDHAL_SETOVERLAYPOSITIONDATA;
|
| 115 |
+
typedef PDD_SETPALETTEDATA LPDDHAL_SETPALETTEDATA;
|
| 116 |
+
typedef PDD_FLIPDATA LPDDHAL_FLIPDATA;
|
| 117 |
+
typedef PDD_DESTROYSURFACEDATA LPDDHAL_DESTROYSURFACEDATA;
|
| 118 |
+
typedef PDD_SETCLIPLISTDATA LPDDHAL_SETCLIPLISTDATA;
|
| 119 |
+
typedef PDD_ADDATTACHEDSURFACEDATA LPDDHAL_ADDATTACHEDSURFACEDATA;
|
| 120 |
+
typedef PDD_SETCOLORKEYDATA LPDDHAL_SETCOLORKEYDATA;
|
| 121 |
+
typedef PDD_GETBLTSTATUSDATA LPDDHAL_GETBLTSTATUSDATA;
|
| 122 |
+
typedef PDD_GETFLIPSTATUSDATA LPDDHAL_GETFLIPSTATUSDATA;
|
| 123 |
+
typedef PDD_GETAVAILDRIVERMEMORYDATA LPDDHAL_GETAVAILDRIVERMEMORYDATA;
|
| 124 |
+
typedef PDD_GETDRIVERINFODATA LPDDHAL_GETDRIVERINFODATA;
|
| 125 |
+
typedef PDD_GETDRIVERSTATEDATA LPDDHAL_GETDRIVERSTATEDATA;
|
| 126 |
+
typedef PDD_DESTROYDDLOCALDATA LPDDHAL_DESTROYDDLOCALDATA;
|
| 127 |
+
typedef DD_BLTDATA DDHAL_BLTDATA;
|
| 128 |
+
typedef DD_LOCKDATA DDHAL_LOCKDATA;
|
| 129 |
+
typedef DD_UNLOCKDATA DDHAL_UNLOCKDATA;
|
| 130 |
+
typedef DD_UPDATEOVERLAYDATA DDHAL_UPDATEOVERLAYDATA;
|
| 131 |
+
typedef DD_SETOVERLAYPOSITIONDATA DDHAL_SETOVERLAYPOSITIONDATA;
|
| 132 |
+
typedef DD_SETPALETTEDATA DDHAL_SETPALETTEDATA;
|
| 133 |
+
typedef DD_FLIPDATA DDHAL_FLIPDATA;
|
| 134 |
+
typedef DD_DESTROYSURFACEDATA DDHAL_DESTROYSURFACEDATA;
|
| 135 |
+
typedef DD_SETCLIPLISTDATA DDHAL_SETCLIPLISTDATA;
|
| 136 |
+
typedef DD_ADDATTACHEDSURFACEDATA DDHAL_ADDATTACHEDSURFACEDATA;
|
| 137 |
+
typedef DD_SETCOLORKEYDATA DDHAL_SETCOLORKEYDATA;
|
| 138 |
+
typedef DD_GETBLTSTATUSDATA DDHAL_GETBLTSTATUSDATA;
|
| 139 |
+
typedef DD_GETFLIPSTATUSDATA DDHAL_GETFLIPSTATUSDATA;
|
| 140 |
+
typedef DD_GETAVAILDRIVERMEMORYDATA DDHAL_GETAVAILDRIVERMEMORYDATA;
|
| 141 |
+
typedef DD_GETDRIVERINFODATA DDHAL_GETDRIVERINFODATA;
|
| 142 |
+
typedef DD_GETDRIVERSTATEDATA DDHAL_GETDRIVERSTATEDATA;
|
| 143 |
+
typedef DD_DESTROYDDLOCALDATA DDHAL_DESTROYDDLOCALDATA;
|
| 144 |
+
|
| 145 |
+
typedef PDD_CANCREATEVPORTDATA LPDDHAL_CANCREATEVPORTDATA;
|
| 146 |
+
typedef PDD_CREATEVPORTDATA LPDDHAL_CREATEVPORTDATA;
|
| 147 |
+
typedef PDD_FLIPVPORTDATA LPDDHAL_FLIPVPORTDATA;
|
| 148 |
+
typedef PDD_GETVPORTCONNECTDATA LPDDHAL_GETVPORTCONNECTDATA;
|
| 149 |
+
typedef PDD_GETVPORTBANDWIDTHDATA LPDDHAL_GETVPORTBANDWIDTHDATA;
|
| 150 |
+
typedef PDD_GETVPORTINPUTFORMATDATA LPDDHAL_GETVPORTINPUTFORMATDATA;
|
| 151 |
+
typedef PDD_GETVPORTOUTPUTFORMATDATA LPDDHAL_GETVPORTOUTPUTFORMATDATA;
|
| 152 |
+
typedef PDD_GETVPORTFIELDDATA LPDDHAL_GETVPORTFIELDDATA;
|
| 153 |
+
typedef PDD_GETVPORTLINEDATA LPDDHAL_GETVPORTLINEDATA;
|
| 154 |
+
typedef PDD_DESTROYVPORTDATA LPDDHAL_DESTROYVPORTDATA;
|
| 155 |
+
typedef PDD_GETVPORTFLIPSTATUSDATA LPDDHAL_GETVPORTFLIPSTATUSDATA;
|
| 156 |
+
typedef PDD_UPDATEVPORTDATA LPDDHAL_UPDATEVPORTDATA;
|
| 157 |
+
typedef PDD_WAITFORVPORTSYNCDATA LPDDHAL_WAITFORVPORTSYNCDATA;
|
| 158 |
+
typedef PDD_GETVPORTSIGNALDATA LPDDHAL_GETVPORTSIGNALDATA;
|
| 159 |
+
typedef PDD_VPORTCOLORDATA LPDDHAL_VPORTCOLORDATA;
|
| 160 |
+
typedef DD_CANCREATEVPORTDATA DDHAL_CANCREATEVPORTDATA;
|
| 161 |
+
typedef DD_CREATEVPORTDATA DDHAL_CREATEVPORTDATA;
|
| 162 |
+
typedef DD_FLIPVPORTDATA DDHAL_FLIPVPORTDATA;
|
| 163 |
+
typedef DD_GETVPORTCONNECTDATA DDHAL_GETVPORTCONNECTDATA;
|
| 164 |
+
typedef DD_GETVPORTBANDWIDTHDATA DDHAL_GETVPORTBANDWIDTHDATA;
|
| 165 |
+
typedef DD_GETVPORTINPUTFORMATDATA DDHAL_GETVPORTINPUTFORMATDATA;
|
| 166 |
+
typedef DD_GETVPORTOUTPUTFORMATDATA DDHAL_GETVPORTOUTPUTFORMATDATA;
|
| 167 |
+
typedef DD_GETVPORTFIELDDATA DDHAL_GETVPORTFIELDDATA;
|
| 168 |
+
typedef DD_GETVPORTLINEDATA DDHAL_GETVPORTLINEDATA;
|
| 169 |
+
typedef DD_DESTROYVPORTDATA DDHAL_DESTROYVPORTDATA;
|
| 170 |
+
typedef DD_GETVPORTFLIPSTATUSDATA DDHAL_GETVPORTFLIPSTATUSDATA;
|
| 171 |
+
typedef DD_UPDATEVPORTDATA DDHAL_UPDATEVPORTDATA;
|
| 172 |
+
typedef DD_WAITFORVPORTSYNCDATA DDHAL_WAITFORVPORTSYNCDATA;
|
| 173 |
+
typedef DD_GETVPORTSIGNALDATA DDHAL_GETVPORTSIGNALDATA;
|
| 174 |
+
typedef DD_VPORTCOLORDATA DDHAL_VPORTCOLORDATA;
|
| 175 |
+
|
| 176 |
+
typedef PDD_COLORCONTROLDATA LPDDHAL_COLORCONTROLDATA;
|
| 177 |
+
typedef DD_COLORCONTROLDATA DDHAL_COLORCONTROLDATA;
|
| 178 |
+
|
| 179 |
+
typedef PDD_SYNCSURFACEDATA LPDDHAL_SYNCSURFACEDATA;
|
| 180 |
+
typedef PDD_SYNCVIDEOPORTDATA LPDDHAL_SYNCVIDEOPORTDATA;
|
| 181 |
+
typedef DD_SYNCSURFACEDATA DDHAL_SYNCSURFACEDATA;
|
| 182 |
+
typedef DD_SYNCVIDEOPORTDATA DDHAL_SYNCVIDEOPORTDATA;
|
| 183 |
+
|
| 184 |
+
typedef PDD_GETMOCOMPGUIDSDATA LPDDHAL_GETMOCOMPGUIDSDATA;
|
| 185 |
+
typedef PDD_GETMOCOMPFORMATSDATA LPDDHAL_GETMOCOMPFORMATSDATA;
|
| 186 |
+
typedef PDD_CREATEMOCOMPDATA LPDDHAL_CREATEMOCOMPDATA;
|
| 187 |
+
typedef PDD_GETMOCOMPCOMPBUFFDATA LPDDHAL_GETMOCOMPCOMPBUFFDATA;
|
| 188 |
+
typedef PDD_GETINTERNALMOCOMPDATA LPDDHAL_GETINTERNALMOCOMPDATA;
|
| 189 |
+
typedef PDD_BEGINMOCOMPFRAMEDATA LPDDHAL_BEGINMOCOMPFRAMEDATA;
|
| 190 |
+
typedef PDD_ENDMOCOMPFRAMEDATA LPDDHAL_ENDMOCOMPFRAMEDATA;
|
| 191 |
+
typedef PDD_RENDERMOCOMPDATA LPDDHAL_RENDERMOCOMPDATA;
|
| 192 |
+
typedef PDD_QUERYMOCOMPSTATUSDATA LPDDHAL_QUERYMOCOMPSTATUSDATA;
|
| 193 |
+
typedef PDD_DESTROYMOCOMPDATA LPDDHAL_DESTROYMOCOMPDATA;
|
| 194 |
+
typedef DD_GETMOCOMPGUIDSDATA DDHAL_GETMOCOMPGUIDSDATA;
|
| 195 |
+
typedef DD_GETMOCOMPFORMATSDATA DDHAL_GETMOCOMPFORMATSDATA;
|
| 196 |
+
typedef DD_CREATEMOCOMPDATA DDHAL_CREATEMOCOMPDATA;
|
| 197 |
+
typedef DD_GETMOCOMPCOMPBUFFDATA DDHAL_GETMOCOMPCOMPBUFFDATA;
|
| 198 |
+
typedef DD_GETINTERNALMOCOMPDATA DDHAL_GETINTERNALMOCOMPDATA;
|
| 199 |
+
typedef DD_BEGINMOCOMPFRAMEDATA DDHAL_BEGINMOCOMPFRAMEDATA;
|
| 200 |
+
typedef DD_ENDMOCOMPFRAMEDATA DDHAL_ENDMOCOMPFRAMEDATA;
|
| 201 |
+
typedef DD_RENDERMOCOMPDATA DDHAL_RENDERMOCOMPDATA;
|
| 202 |
+
typedef DD_QUERYMOCOMPSTATUSDATA DDHAL_QUERYMOCOMPSTATUSDATA;
|
| 203 |
+
typedef DD_DESTROYMOCOMPDATA DDHAL_DESTROYMOCOMPDATA;
|
| 204 |
+
|
| 205 |
+
// DirectDraw HAL call backs
|
| 206 |
+
|
| 207 |
+
typedef PDD_SETCOLORKEY LPDDHAL_SETCOLORKEY;
|
| 208 |
+
typedef PDD_CANCREATESURFACE LPDDHAL_CANCREATESURFACE;
|
| 209 |
+
typedef PDD_WAITFORVERTICALBLANK LPDDHAL_WAITFORVERTICALBLANK;
|
| 210 |
+
typedef PDD_CREATESURFACE LPDDHAL_CREATESURFACE;
|
| 211 |
+
typedef PDD_DESTROYDRIVER LPDDHAL_DESTROYDRIVER;
|
| 212 |
+
typedef PDD_SETMODE LPDDHAL_SETMODE;
|
| 213 |
+
typedef PDD_CREATEPALETTE LPDDHAL_CREATEPALETTE;
|
| 214 |
+
typedef PDD_GETSCANLINE LPDDHAL_GETSCANLINE;
|
| 215 |
+
typedef PDD_MAPMEMORY LPDDHAL_MAPMEMORY;
|
| 216 |
+
typedef PDD_GETAVAILDRIVERMEMORY LPDDHAL_GETAVAILDRIVERMEMORY;
|
| 217 |
+
typedef PDD_GETDRIVERINFODATA LPDDHAL_GETDRIVERINFODATA;
|
| 218 |
+
typedef PDD_SYNCSURFACEDATA LPDDHAL_SYNCSURFACEDATA;
|
| 219 |
+
typedef PDD_SYNCVIDEOPORTDATA LPDDHAL_SYNCVIDEOPORTDATA;
|
| 220 |
+
typedef PDD_SETEXCLUSIVEMODE LPDDHAL_SETEXCLUSIVEMODE;
|
| 221 |
+
typedef PDD_FLIPTOGDISURFACE LPDDHAL_FLIPTOGDISURFACE;
|
| 222 |
+
|
| 223 |
+
typedef PDD_ALPHABLT LPDDHAL_ALPHABLT;
|
| 224 |
+
typedef PDD_CREATESURFACEEX LPDDHAL_CREATESURFACEEX;
|
| 225 |
+
typedef PDD_GETDRIVERSTATE LPDDHAL_GETDRIVERSTATE;
|
| 226 |
+
|
| 227 |
+
typedef PDD_PALCB_DESTROYPALETTE LPDDHALPALCB_DESTROYPALETTE;
|
| 228 |
+
typedef PDD_PALCB_SETENTRIES LPDDHALPALCB_SETENTRIES;
|
| 229 |
+
|
| 230 |
+
typedef PDD_SURFCB_LOCK LPDDHALSURFCB_LOCK;
|
| 231 |
+
typedef PDD_SURFCB_UNLOCK LPDDHALSURFCB_UNLOCK;
|
| 232 |
+
typedef PDD_SURFCB_BLT LPDDHALSURFCB_BLT;
|
| 233 |
+
typedef PDD_SURFCB_UPDATEOVERLAY LPDDHALSURFCB_UPDATEOVERLAY;
|
| 234 |
+
typedef PDD_SURFCB_SETOVERLAYPOSITION LPDDHALSURFCB_SETOVERLAYPOSITION;
|
| 235 |
+
typedef PDD_SURFCB_SETPALETTE LPDDHALSURFCB_SETPALETTE;
|
| 236 |
+
typedef PDD_SURFCB_FLIP LPDDHALSURFCB_FLIP;
|
| 237 |
+
typedef PDD_SURFCB_DESTROYSURFACE LPDDHALSURFCB_DESTROYSURFACE;
|
| 238 |
+
typedef PDD_SURFCB_SETCLIPLIST LPDDHALSURFCB_SETCLIPLIST;
|
| 239 |
+
typedef PDD_SURFCB_ADDATTACHEDSURFACE LPDDHALSURFCB_ADDATTACHEDSURFACE;
|
| 240 |
+
typedef PDD_SURFCB_SETCOLORKEY LPDDHALSURFCB_SETCOLORKEY;
|
| 241 |
+
typedef PDD_SURFCB_GETBLTSTATUS LPDDHALSURFCB_GETBLTSTATUS;
|
| 242 |
+
typedef PDD_SURFCB_GETFLIPSTATUS LPDDHALSURFCB_GETFLIPSTATUS;
|
| 243 |
+
|
| 244 |
+
typedef PDD_VPORTCB_CANCREATEVIDEOPORT LPDDHALVPORTCB_CANCREATEVIDEOPORT;
|
| 245 |
+
typedef PDD_VPORTCB_CREATEVIDEOPORT LPDDHALVPORTCB_CREATEVIDEOPORT;
|
| 246 |
+
typedef PDD_VPORTCB_FLIP LPDDHALVPORTCB_FLIP;
|
| 247 |
+
typedef PDD_VPORTCB_GETBANDWIDTH LPDDHALVPORTCB_GETBANDWIDTH;
|
| 248 |
+
typedef PDD_VPORTCB_GETINPUTFORMATS LPDDHALVPORTCB_GETINPUTFORMATS;
|
| 249 |
+
typedef PDD_VPORTCB_GETOUTPUTFORMATS LPDDHALVPORTCB_GETOUTPUTFORMATS;
|
| 250 |
+
typedef PDD_VPORTCB_GETFIELD LPDDHALVPORTCB_GETFIELD;
|
| 251 |
+
typedef PDD_VPORTCB_GETLINE LPDDHALVPORTCB_GETLINE;
|
| 252 |
+
typedef PDD_VPORTCB_GETVPORTCONNECT LPDDHALVPORTCB_GETVPORTCONNECT;
|
| 253 |
+
typedef PDD_VPORTCB_DESTROYVPORT LPDDHALVPORTCB_DESTROYVPORT;
|
| 254 |
+
typedef PDD_VPORTCB_GETFLIPSTATUS LPDDHALVPORTCB_GETFLIPSTATUS;
|
| 255 |
+
typedef PDD_VPORTCB_UPDATE LPDDHALVPORTCB_UPDATE;
|
| 256 |
+
typedef PDD_VPORTCB_WAITFORSYNC LPDDHALVPORTCB_WAITFORSYNC;
|
| 257 |
+
typedef PDD_VPORTCB_GETSIGNALSTATUS LPDDHALVPORTCB_GETSIGNALSTATUS;
|
| 258 |
+
typedef PDD_VPORTCB_COLORCONTROL LPDDHALVPORTCB_COLORCONTROL;
|
| 259 |
+
|
| 260 |
+
typedef PDD_MOCOMPCB_GETGUIDS LPDDHALMOCOMPCB_GETGUIDS;
|
| 261 |
+
typedef PDD_MOCOMPCB_GETFORMATS LPDDHALMOCOMPCB_GETFORMATS;
|
| 262 |
+
typedef PDD_MOCOMPCB_CREATE LPDDHALMOCOMPCB_CREATE;
|
| 263 |
+
typedef PDD_MOCOMPCB_GETCOMPBUFFINFO LPDDHALMOCOMPCB_GETCOMPBUFFINFO;
|
| 264 |
+
typedef PDD_MOCOMPCB_GETINTERNALINFO LPDDHALMOCOMPCB_GETINTERNALINFO;
|
| 265 |
+
typedef PDD_MOCOMPCB_BEGINFRAME LPDDHALMOCOMPCB_BEGINFRAME;
|
| 266 |
+
typedef PDD_MOCOMPCB_ENDFRAME LPDDHALMOCOMPCB_ENDFRAME;
|
| 267 |
+
typedef PDD_MOCOMPCB_RENDER LPDDHALMOCOMPCB_RENDER;
|
| 268 |
+
typedef PDD_MOCOMPCB_QUERYSTATUS LPDDHALMOCOMPCB_QUERYSTATUS;
|
| 269 |
+
typedef PDD_MOCOMPCB_DESTROY LPDDHALMOCOMPCB_DESTROY;
|
| 270 |
+
|
| 271 |
+
typedef DD_CALLBACKS DDHAL_DDCALLBACKS;
|
| 272 |
+
typedef DD_PALETTECALLBACKS DDHAL_DDPALETTECALLBACKS;
|
| 273 |
+
typedef DD_SURFACECALLBACKS DDHAL_DDSURFACECALLBACKS;
|
| 274 |
+
typedef DD_VIDEOPORTCALLBACKS DDHAL_DDVIDEOPORTCALLBACKS;
|
| 275 |
+
typedef DD_COLORCONTROLCALLBACKS DDHAL_DDCOLORCONTROLCALLBACKS;
|
| 276 |
+
typedef DD_KERNELCALLBACKS DDHAL_DDKERNELCALLBACKS;
|
| 277 |
+
typedef DD_MOTIONCOMPCALLBACKS DDHAL_DDMOTIONCOMPCALLBACKS;
|
| 278 |
+
typedef DD_MISCELLANEOUS2CALLBACKS DDHAL_DDMISCELLANEOUS2CALLBACKS;
|
| 279 |
+
typedef DD_D3DBUFCALLBACKS DDHAL_D3DBUFCALLBACKS;
|
| 280 |
+
typedef DD_NTCALLBACKS DDHAL_DDNTCALLBACKS;
|
| 281 |
+
|
| 282 |
+
typedef PDD_CALLBACKS LPDDHAL_DDCALLBACKS;
|
| 283 |
+
typedef PDD_PALETTECALLBACKS LPDDHAL_DDPALETTECALLBACKS;
|
| 284 |
+
typedef PDD_SURFACECALLBACKS LPDDHAL_DDSURFACECALLBACKS;
|
| 285 |
+
typedef PDD_VIDEOPORTCALLBACKS LPDDHAL_DDVIDEOPORTCALLBACKS;
|
| 286 |
+
typedef PDD_COLORCONTROLCALLBACKS LPDDHAL_DDCOLORCONTROLCALLBACKS;
|
| 287 |
+
typedef PDD_KERNELCALLBACKS LPDDHAL_DDKERNELCALLBACKS;
|
| 288 |
+
typedef PDD_MOTIONCOMPCALLBACKS LPDDHAL_DDMOTIONCOMPCALLBACKS;
|
| 289 |
+
typedef PDD_MISCELLANEOUS2CALLBACKS LPDDHAL_DDMISCELLANEOUS2CALLBACKS;
|
| 290 |
+
typedef PDD_D3DBUFCALLBACKS LPDDHAL_D3DBUFCALLBACKS;
|
| 291 |
+
typedef PDD_NTCALLBACKS LPDDHAL_DDNTCALLBACKS;
|
| 292 |
+
|
| 293 |
+
// bit definition for dwFlags in dwPaletteFlags in D3DHAL_DP2SETPALETTE
|
| 294 |
+
#define DDRAWIPAL_256 0x00000001l // 256 entry palette
|
| 295 |
+
#define DDRAWIPAL_16 0x00000002l // 16 entry palette
|
| 296 |
+
#define DDRAWIPAL_GDI 0x00000004l // palette allocated through GDI
|
| 297 |
+
#define DDRAWIPAL_STORED_8 0x00000008l // palette stored as 8bpp/entry
|
| 298 |
+
#define DDRAWIPAL_STORED_16 0x00000010l // palette stored as 16bpp/entry
|
| 299 |
+
#define DDRAWIPAL_STORED_24 0x00000020l // palette stored as 24bpp/entry
|
| 300 |
+
#define DDRAWIPAL_EXCLUSIVE 0x00000040l // palette being used in exclusive mode
|
| 301 |
+
#define DDRAWIPAL_INHEL 0x00000080l // palette is done in the hel
|
| 302 |
+
#define DDRAWIPAL_DIRTY 0x00000100l // gdi palette out 'o sync
|
| 303 |
+
#define DDRAWIPAL_ALLOW256 0x00000200l // can fully update palette
|
| 304 |
+
#define DDRAWIPAL_4 0x00000400l // 4 entry palette
|
| 305 |
+
#define DDRAWIPAL_2 0x00000800l // 2 entry palette
|
| 306 |
+
#define DDRAWIPAL_STORED_8INDEX 0x00001000l // palette stored as 8-bit index into dst palette
|
| 307 |
+
#define DDRAWIPAL_ALPHA 0x00002000l // palette entries contain alpha
|
| 308 |
+
|
| 309 |
+
typedef D3DNTHAL_CALLBACKS D3DHAL_CALLBACKS;
|
| 310 |
+
typedef D3DNTHAL_GLOBALDRIVERDATA D3DHAL_GLOBALDRIVERDATA;
|
| 311 |
+
typedef D3DNTHAL_CONTEXTCREATEDATA D3DHAL_CONTEXTCREATEDATA;
|
| 312 |
+
typedef D3DNTHAL_CONTEXTDESTROYDATA D3DHAL_CONTEXTDESTROYDATA;
|
| 313 |
+
typedef D3DNTHAL_CONTEXTDESTROYALLDATA D3DHAL_CONTEXTDESTROYALLDATA;
|
| 314 |
+
typedef D3DNTHAL_SCENECAPTUREDATA D3DHAL_SCENECAPTUREDATA;
|
| 315 |
+
typedef D3DNTHAL_TEXTURECREATEDATA D3DHAL_TEXTURECREATEDATA;
|
| 316 |
+
typedef D3DNTHAL_TEXTUREDESTROYDATA D3DHAL_TEXTUREDESTROYDATA;
|
| 317 |
+
typedef D3DNTHAL_TEXTURESWAPDATA D3DHAL_TEXTURESWAPDATA;
|
| 318 |
+
typedef D3DNTHAL_TEXTUREGETSURFDATA D3DHAL_TEXTUREGETSURFDATA;
|
| 319 |
+
|
| 320 |
+
typedef D3DNTHAL_CALLBACKS2 D3DHAL_CALLBACKS2;
|
| 321 |
+
typedef D3DNTHAL_SETRENDERTARGETDATA D3DHAL_SETRENDERTARGETDATA;
|
| 322 |
+
|
| 323 |
+
typedef D3DNTHAL_CALLBACKS3 D3DHAL_CALLBACKS3;
|
| 324 |
+
typedef D3DNTHAL_CLEAR2DATA D3DHAL_CLEAR2DATA;
|
| 325 |
+
typedef D3DNTHAL_VALIDATETEXTURESTAGESTATEDATA D3DHAL_VALIDATETEXTURESTAGESTATEDATA;
|
| 326 |
+
typedef D3DNTHAL_DRAWPRIMITIVES2DATA D3DHAL_DRAWPRIMITIVES2DATA;
|
| 327 |
+
typedef D3DNTHAL_D3DEXTENDEDCAPS D3DHAL_D3DEXTENDEDCAPS;
|
| 328 |
+
|
| 329 |
+
typedef LPD3DNTHAL_CALLBACKS LPD3DHAL_CALLBACKS;
|
| 330 |
+
typedef LPD3DNTHAL_GLOBALDRIVERDATA LPD3DHAL_GLOBALDRIVERDATA;
|
| 331 |
+
typedef LPD3DNTHAL_CONTEXTCREATEDATA LPD3DHAL_CONTEXTCREATEDATA;
|
| 332 |
+
typedef LPD3DNTHAL_CONTEXTDESTROYDATA LPD3DHAL_CONTEXTDESTROYDATA;
|
| 333 |
+
typedef LPD3DNTHAL_CONTEXTDESTROYALLDATA LPD3DHAL_CONTEXTDESTROYALLDATA;
|
| 334 |
+
typedef LPD3DNTHAL_SCENECAPTUREDATA LPD3DHAL_SCENECAPTUREDATA;
|
| 335 |
+
typedef LPD3DNTHAL_TEXTURECREATEDATA LPD3DHAL_TEXTURECREATEDATA;
|
| 336 |
+
typedef LPD3DNTHAL_TEXTUREDESTROYDATA LPD3DHAL_TEXTUREDESTROYDATA;
|
| 337 |
+
typedef LPD3DNTHAL_TEXTURESWAPDATA LPD3DHAL_TEXTURESWAPDATA;
|
| 338 |
+
typedef LPD3DNTHAL_TEXTUREGETSURFDATA LPD3DHAL_TEXTUREGETSURFDATA;
|
| 339 |
+
|
| 340 |
+
typedef LPD3DNTHAL_CALLBACKS2 LPD3DHAL_CALLBACKS2;
|
| 341 |
+
typedef LPD3DNTHAL_SETRENDERTARGETDATA LPD3DHAL_SETRENDERTARGETDATA;
|
| 342 |
+
|
| 343 |
+
typedef LPD3DNTHAL_CALLBACKS3 LPD3DHAL_CALLBACKS3;
|
| 344 |
+
typedef LPD3DNTHAL_CLEAR2DATA LPD3DHAL_CLEAR2DATA;
|
| 345 |
+
typedef LPD3DNTHAL_VALIDATETEXTURESTAGESTATEDATA LPD3DHAL_VALIDATETEXTURESTAGESTATEDATA;
|
| 346 |
+
typedef LPD3DNTHAL_DRAWPRIMITIVES2DATA LPD3DHAL_DRAWPRIMITIVES2DATA;
|
| 347 |
+
typedef LPD3DNTHAL_D3DEXTENDEDCAPS LPD3DHAL_D3DEXTENDEDCAPS;
|
| 348 |
+
|
| 349 |
+
#define D3DHAL2_CB32_SETRENDERTARGET D3DNTHAL2_CB32_SETRENDERTARGET
|
| 350 |
+
|
| 351 |
+
#define D3DHAL_CONTEXT_BAD D3DNTHAL_CONTEXT_BAD
|
| 352 |
+
#define D3DHAL_OUTOFCONTEXTS D3DNTHAL_OUTOFCONTEXTS
|
| 353 |
+
#define D3DHALSTATE_GET_RENDER D3DNTHALSTATE_GET_RENDER
|
| 354 |
+
#define D3DHAL_SCENE_CAPTURE_START D3DNTHAL_SCENE_CAPTURE_START
|
| 355 |
+
#define D3DHAL_SCENE_CAPTURE_END D3DNTHAL_SCENE_CAPTURE_END
|
| 356 |
+
|
| 357 |
+
#define D3DHAL3_CB32_CLEAR2 D3DNTHAL3_CB32_CLEAR2
|
| 358 |
+
#define D3DHAL3_CB32_RESERVED D3DNTHAL3_CB32_RESERVED
|
| 359 |
+
#define D3DHAL3_CB32_VALIDATETEXTURESTAGESTATE D3DNTHAL3_CB32_VALIDATETEXTURESTAGESTATE
|
| 360 |
+
#define D3DHAL3_CB32_DRAWPRIMITIVES2 D3DNTHAL3_CB32_DRAWPRIMITIVES2
|
| 361 |
+
|
| 362 |
+
//-----------------------------------------------------------------------------
|
| 363 |
+
// DrawPrimitives2 DDI
|
| 364 |
+
//-----------------------------------------------------------------------------
|
| 365 |
+
typedef D3DNTHAL_DP2COMMAND D3DHAL_DP2COMMAND;
|
| 366 |
+
typedef LPDNT3DHAL_DP2COMMAND LPD3DHAL_DP2COMMAND;
|
| 367 |
+
typedef D3DNTHAL_DP2OPERATION D3DHAL_DP2OPERATION;
|
| 368 |
+
typedef D3DNTHAL_DP2POINTS D3DHAL_DP2POINTS;
|
| 369 |
+
typedef D3DNTHAL_DP2LINELIST D3DHAL_DP2LINELIST;
|
| 370 |
+
typedef D3DNTHAL_DP2INDEXEDLINELIST D3DHAL_DP2INDEXEDLINELIST;
|
| 371 |
+
typedef D3DNTHAL_DP2LINESTRIP D3DHAL_DP2LINESTRIP;
|
| 372 |
+
typedef D3DNTHAL_DP2INDEXEDLINESTRIP D3DHAL_DP2INDEXEDLINESTRIP;
|
| 373 |
+
typedef D3DNTHAL_DP2TRIANGLELIST D3DHAL_DP2TRIANGLELIST;
|
| 374 |
+
typedef D3DNTHAL_DP2INDEXEDTRIANGLELIST D3DHAL_DP2INDEXEDTRIANGLELIST;
|
| 375 |
+
typedef D3DNTHAL_DP2INDEXEDTRIANGLELIST2 D3DHAL_DP2INDEXEDTRIANGLELIST2;
|
| 376 |
+
typedef D3DNTHAL_DP2TRIANGLESTRIP D3DHAL_DP2TRIANGLESTRIP;
|
| 377 |
+
typedef D3DNTHAL_DP2INDEXEDTRIANGLESTRIP D3DHAL_DP2INDEXEDTRIANGLESTRIP;
|
| 378 |
+
typedef D3DNTHAL_DP2TRIANGLEFAN D3DHAL_DP2TRIANGLEFAN;
|
| 379 |
+
typedef D3DNTHAL_DP2INDEXEDTRIANGLEFAN D3DHAL_DP2INDEXEDTRIANGLEFAN;
|
| 380 |
+
typedef D3DNTHAL_DP2RENDERSTATE D3DHAL_DP2RENDERSTATE;
|
| 381 |
+
typedef D3DNTHAL_DP2TEXTURESTAGESTATE D3DHAL_DP2TEXTURESTAGESTATE;
|
| 382 |
+
typedef D3DNTHAL_DP2TRIANGLEFAN_IMM D3DHAL_DP2TRIANGLEFAN_IMM;
|
| 383 |
+
typedef D3DNTHAL_DP2STARTVERTEX D3DHAL_DP2STARTVERTEX;
|
| 384 |
+
typedef D3DNTHAL_DP2VIEWPORTINFO D3DHAL_DP2VIEWPORTINFO;
|
| 385 |
+
typedef D3DNTHAL_DP2WINFO D3DHAL_DP2WINFO;
|
| 386 |
+
typedef D3DNTHAL_DP2SETPALETTE D3DHAL_DP2SETPALETTE;
|
| 387 |
+
typedef D3DNTHAL_DP2UPDATEPALETTE D3DHAL_DP2UPDATEPALETTE;
|
| 388 |
+
typedef D3DNTHAL_DP2ZRANGE D3DHAL_DP2ZRANGE;
|
| 389 |
+
typedef D3DNTHAL_DP2SETMATERIAL D3DHAL_DP2SETMATERIAL;
|
| 390 |
+
typedef D3DNTHAL_DP2SETLIGHT D3DHAL_DP2SETLIGHT;
|
| 391 |
+
typedef D3DNTHAL_DP2SETCLIPPLANE D3DHAL_DP2SETCLIPPLANE;
|
| 392 |
+
typedef D3DNTHAL_DP2CREATELIGHT D3DHAL_DP2CREATELIGHT;
|
| 393 |
+
typedef D3DNTHAL_DP2SETTRANSFORM D3DHAL_DP2SETTRANSFORM;
|
| 394 |
+
typedef D3DNTHAL_DP2EXT D3DHAL_DP2EXT;
|
| 395 |
+
typedef D3DNTHAL_DP2TEXBLT D3DHAL_DP2TEXBLT;
|
| 396 |
+
typedef D3DNTHAL_DP2STATESET D3DHAL_DP2STATESET;
|
| 397 |
+
typedef D3DNTHAL_DP2SETPRIORITY D3DHAL_DP2SETPRIORITY;
|
| 398 |
+
typedef D3DNTHAL_DP2SETRENDERTARGET D3DHAL_DP2SETRENDERTARGET;
|
| 399 |
+
typedef D3DNTHAL_DP2CLEAR D3DHAL_DP2CLEAR;
|
| 400 |
+
typedef D3DNTHAL_DP2SETTEXLOD D3DHAL_DP2SETTEXLOD;
|
| 401 |
+
|
| 402 |
+
#define D3DDP2OP_POINTS D3DNTDP2OP_POINTS
|
| 403 |
+
#define D3DDP2OP_INDEXEDLINELIST D3DNTDP2OP_INDEXEDLINELIST
|
| 404 |
+
#define D3DDP2OP_INDEXEDLINELIST2 D3DNTDP2OP_INDEXEDLINELIST2
|
| 405 |
+
#define D3DDP2OP_INDEXEDTRIANGLELIST D3DNTDP2OP_INDEXEDTRIANGLELIST
|
| 406 |
+
#define D3DDP2OP_INDEXEDTRIANGLELIST2 D3DNTDP2OP_INDEXEDTRIANGLELIST2
|
| 407 |
+
#define D3DDP2OP_RENDERSTATE D3DNTDP2OP_RENDERSTATE
|
| 408 |
+
#define D3DDP2OP_LINELIST D3DNTDP2OP_LINELIST
|
| 409 |
+
#define D3DDP2OP_LINESTRIP D3DNTDP2OP_LINESTRIP
|
| 410 |
+
#define D3DDP2OP_INDEXEDLINESTRIP D3DNTDP2OP_INDEXEDLINESTRIP
|
| 411 |
+
#define D3DDP2OP_TRIANGLELIST D3DNTDP2OP_TRIANGLELIST
|
| 412 |
+
#define D3DDP2OP_TRIANGLESTRIP D3DNTDP2OP_TRIANGLESTRIP
|
| 413 |
+
#define D3DDP2OP_INDEXEDTRIANGLESTRIP D3DNTDP2OP_INDEXEDTRIANGLESTRIP
|
| 414 |
+
#define D3DDP2OP_TRIANGLEFAN D3DNTDP2OP_TRIANGLEFAN
|
| 415 |
+
#define D3DDP2OP_INDEXEDTRIANGLEFAN D3DNTDP2OP_INDEXEDTRIANGLEFAN
|
| 416 |
+
#define D3DDP2OP_TRIANGLEFAN_IMM D3DNTDP2OP_TRIANGLEFAN_IMM
|
| 417 |
+
#define D3DDP2OP_LINELIST_IMM D3DNTDP2OP_LINELIST_IMM
|
| 418 |
+
#define D3DDP2OP_TEXTURESTAGESTATE D3DNTDP2OP_TEXTURESTAGESTATE
|
| 419 |
+
#define D3DDP2OP_VIEWPORTINFO D3DNTDP2OP_VIEWPORTINFO
|
| 420 |
+
#define D3DDP2OP_WINFO D3DNTDP2OP_WINFO
|
| 421 |
+
#define D3DDP2OP_SETPALETTE D3DNTDP2OP_SETPALETTE
|
| 422 |
+
#define D3DDP2OP_UPDATEPALETTE D3DNTDP2OP_UPDATEPALETTE
|
| 423 |
+
|
| 424 |
+
#define D3DDP2OP_ZRANGE D3DNTDP2OP_ZRANGE
|
| 425 |
+
#define D3DDP2OP_SETMATERIAL D3DNTDP2OP_SETMATERIAL
|
| 426 |
+
#define D3DDP2OP_SETLIGHT D3DNTDP2OP_SETLIGHT
|
| 427 |
+
#define D3DDP2OP_CREATELIGHT D3DNTDP2OP_CREATELIGHT
|
| 428 |
+
#define D3DDP2OP_SETTRANSFORM D3DNTDP2OP_SETTRANSFORM
|
| 429 |
+
#define D3DDP2OP_TEXBLT D3DNTDP2OP_TEXBLT
|
| 430 |
+
#define D3DDP2OP_STATESET D3DNTDP2OP_STATESET
|
| 431 |
+
#define D3DDP2OP_SETPRIORITY D3DNTDP2OP_SETPRIORITY
|
| 432 |
+
#define D3DDP2OP_SETRENDERTARGET D3DNTDP2OP_SETRENDERTARGET
|
| 433 |
+
#define D3DDP2OP_CLEAR D3DNTDP2OP_CLEAR
|
| 434 |
+
#define D3DDP2OP_SETTEXLOD D3DNTDP2OP_SETTEXLOD
|
| 435 |
+
#define D3DDP2OP_SETCLIPPLANE D3DNTDP2OP_SETCLIPPLANE
|
| 436 |
+
|
| 437 |
+
#define D3DERR_COMMAND_UNPARSED D3DNTERR_COMMAND_UNPARSED
|
| 438 |
+
#define D3DHALDP2_USERMEMVERTICES D3DNTHALDP2_USERMEMVERTICES
|
| 439 |
+
#define D3DHALDP2_EXECUTEBUFFER D3DNTHALDP2_EXECUTEBUFFER
|
| 440 |
+
#define D3DHALDP2_SWAPVERTEXBUFFER D3DNTHALDP2_SWAPVERTEXBUFFER
|
| 441 |
+
#define D3DHALDP2_SWAPCOMMANDBUFFER D3DNTHALDP2_SWAPCOMMANDBUFFER
|
| 442 |
+
#define D3DHALDP2_REQVERTEXBUFSIZE D3DNTHALDP2_REQVERTEXBUFSIZE
|
| 443 |
+
#define D3DHALDP2_REQCOMMANDBUFSIZE D3DNTHALDP2_REQCOMMANDBUFSIZE
|
| 444 |
+
#define D3DHALDP2_VIDMEMVERTEXBUF D3DNTHALDP2_VIDMEMVERTEXBUF
|
| 445 |
+
#define D3DHALDP2_VIDMEMCOMMANDBUF D3DNTHALDP2_VIDMEMCOMMANDBUF
|
| 446 |
+
|
| 447 |
+
|
| 448 |
+
#define PFND3DPARSEUNKNOWNCOMMAND PFND3DNTPARSEUNKNOWNCOMMAND
|
| 449 |
+
|
| 450 |
+
#if(DIRECT3D_VERSION >= 0x0800 )
|
| 451 |
+
#define D3DDP2OP_CREATEVERTEXSHADER D3DNTDP2OP_CREATEVERTEXSHADER
|
| 452 |
+
#define D3DDP2OP_DELETEVERTEXSHADER D3DNTDP2OP_DELETEVERTEXSHADER
|
| 453 |
+
#define D3DDP2OP_SETVERTEXSHADER D3DNTDP2OP_SETVERTEXSHADER
|
| 454 |
+
#define D3DDP2OP_SETVERTEXSHADERCONST D3DNTDP2OP_SETVERTEXSHADERCONST
|
| 455 |
+
#define D3DDP2OP_SETSTREAMSOURCE D3DNTDP2OP_SETSTREAMSOURCE
|
| 456 |
+
#define D3DDP2OP_SETSTREAMSOURCEUM D3DNTDP2OP_SETSTREAMSOURCEUM
|
| 457 |
+
#define D3DDP2OP_SETINDICES D3DNTDP2OP_SETINDICES
|
| 458 |
+
#define D3DDP2OP_DRAWPRIMITIVE D3DNTDP2OP_DRAWPRIMITIVE
|
| 459 |
+
#define D3DDP2OP_DRAWINDEXEDPRIMITIVE D3DNTDP2OP_DRAWINDEXEDPRIMITIVE
|
| 460 |
+
#define D3DDP2OP_CREATEPIXELSHADER D3DNTDP2OP_CREATEPIXELSHADER
|
| 461 |
+
#define D3DDP2OP_DELETEPIXELSHADER D3DNTDP2OP_DELETEPIXELSHADER
|
| 462 |
+
#define D3DDP2OP_SETPIXELSHADER D3DNTDP2OP_SETPIXELSHADER
|
| 463 |
+
#define D3DDP2OP_SETPIXELSHADERCONST D3DNTDP2OP_SETPIXELSHADERCONST
|
| 464 |
+
#define D3DDP2OP_CLIPPEDTRIANGLEFAN D3DNTDP2OP_CLIPPEDTRIANGLEFAN
|
| 465 |
+
#define D3DDP2OP_DRAWPRIMITIVE2 D3DNTDP2OP_DRAWPRIMITIVE2
|
| 466 |
+
#define D3DDP2OP_DRAWINDEXEDPRIMITIVE2 D3DNTDP2OP_DRAWINDEXEDPRIMITIVE2
|
| 467 |
+
#define D3DDP2OP_DRAWRECTPATCH D3DNTDP2OP_DRAWRECTPATCH
|
| 468 |
+
#define D3DDP2OP_DRAWTRIPATCH D3DNTDP2OP_DRAWTRIPATCH
|
| 469 |
+
#define D3DDP2OP_VOLUMEBLT D3DNTDP2OP_VOLUMEBLT
|
| 470 |
+
#define D3DDP2OP_BUFFERBLT D3DNTDP2OP_BUFFERBLT
|
| 471 |
+
#define D3DDP2OP_MULTIPLYTRANSFORM D3DNTDP2OP_MULTIPLYTRANSFORM
|
| 472 |
+
#define D3DDP2OP_ADDDIRTYRECT D3DNTDP2OP_ADDDIRTYRECT
|
| 473 |
+
#define D3DDP2OP_ADDDIRTYBOX D3DNTDP2OP_ADDDIRTYBOX
|
| 474 |
+
|
| 475 |
+
#if(DIRECT3D_VERSION >= 0x0900 )
|
| 476 |
+
#define D3DDP2OP_CREATEVERTEXSHADERDECL D3DNTDP2OP_CREATEVERTEXSHADERDECL
|
| 477 |
+
#define D3DDP2OP_DELETEVERTEXSHADERDECL D3DNTDP2OP_DELETEVERTEXSHADERDECL
|
| 478 |
+
#define D3DDP2OP_SETVERTEXSHADERDECL D3DNTDP2OP_SETVERTEXSHADERDECL
|
| 479 |
+
#define D3DDP2OP_CREATEVERTEXSHADERFUNC D3DNTDP2OP_CREATEVERTEXSHADERFUNC
|
| 480 |
+
#define D3DDP2OP_DELETEVERTEXSHADERFUNC D3DNTDP2OP_DELETEVERTEXSHADERFUNC
|
| 481 |
+
#define D3DDP2OP_SETVERTEXSHADERFUNC D3DNTDP2OP_SETVERTEXSHADERFUNC
|
| 482 |
+
#define D3DDP2OP_SETVERTEXSHADERCONSTI D3DNTDP2OP_SETVERTEXSHADERCONSTI
|
| 483 |
+
#define D3DDP2OP_SETSCISSORRECT D3DNTDP2OP_SETSCISSORRECT
|
| 484 |
+
#define D3DDP2OP_SETSTREAMSOURCE2 D3DNTDP2OP_SETSTREAMSOURCE2
|
| 485 |
+
#define D3DDP2OP_BLT D3DNTDP2OP_BLT
|
| 486 |
+
#define D3DDP2OP_COLORFILL D3DNTDP2OP_COLORFILL
|
| 487 |
+
#define D3DDP2OP_SETVERTEXSHADERCONSTB D3DNTDP2OP_SETVERTEXSHADERCONSTB
|
| 488 |
+
#define D3DDP2OP_CREATEQUERY D3DNTDP2OP_CREATEQUERY
|
| 489 |
+
#define D3DDP2OP_DELETEQUERY D3DNTDP2OP_DELETEQUERY
|
| 490 |
+
#define D3DDP2OP_ISSUEQUERY D3DNTDP2OP_ISSUEQUERY
|
| 491 |
+
#define D3DDP2OP_SETRENDERTARGET2 D3DNTDP2OP_SETRENDERTARGET2
|
| 492 |
+
#define D3DDP2OP_SETDEPTHSTENCIL D3DNTDP2OP_SETDEPTHSTENCIL
|
| 493 |
+
#define D3DDP2OP_RESPONSECONTINUE D3DNTDP2OP_RESPONSECONTINUE
|
| 494 |
+
#define D3DDP2OP_RESPONSEQUERY D3DNTDP2OP_RESPONSEQUERY
|
| 495 |
+
#define D3DDP2OP_GENERATEMIPSUBLEVELS D3DNTDP2OP_GENERATEMIPSUBLEVELS
|
| 496 |
+
#define D3DDP2OP_SETPIXELSHADERCONSTI D3DNTDP2OP_SETPIXELSHADERCONSTI
|
| 497 |
+
#define D3DDP2OP_SETPIXELSHADERCONSTB D3DNTDP2OP_SETPIXELSHADERCONSTB
|
| 498 |
+
#define D3DDP2OP_SETSTREAMSOURCEFREQ D3DNTDP2OP_SETSTREAMSOURCEFREQ
|
| 499 |
+
#define D3DDP2OP_SURFACEBLT D3DNTDP2OP_SURFACEBLT
|
| 500 |
+
#endif // (DIRECT3D_VERSION >= 0x0900 )
|
| 501 |
+
|
| 502 |
+
|
| 503 |
+
#define D3DHAL_STATESETCREATE D3DNTHAL_STATESETCREATE
|
| 504 |
+
#define D3DCLEAR_COMPUTERECTS D3DNTCLEAR_COMPUTERECTS
|
| 505 |
+
|
| 506 |
+
typedef D3DNTHAL_DP2MULTIPLYTRANSFORM D3DHAL_DP2MULTIPLYTRANSFORM;
|
| 507 |
+
typedef LPD3DNTHAL_DP2MULTIPLYTRANSFORM LPD3DHAL_DP2MULTIPLYTRANSFORM;
|
| 508 |
+
typedef D3DNTHAL_DP2VERTEXSHADER D3DHAL_DP2VERTEXSHADER ;
|
| 509 |
+
typedef LPD3DNTHAL_DP2VERTEXSHADER LPD3DHAL_DP2VERTEXSHADER;
|
| 510 |
+
|
| 511 |
+
typedef D3DNTHAL_DP2CREATEVERTEXSHADER D3DHAL_DP2CREATEVERTEXSHADER;
|
| 512 |
+
typedef LPD3DNTHAL_DP2CREATEVERTEXSHADER LPD3DHAL_DP2CREATEVERTEXSHADER;
|
| 513 |
+
typedef D3DNTHAL_DP2SETVERTEXSHADERCONST D3DHAL_DP2SETVERTEXSHADERCONST;
|
| 514 |
+
typedef LPD3DNTHAL_DP2SETVERTEXSHADERCONST LPD3DHAL_DP2SETVERTEXSHADERCONST;
|
| 515 |
+
typedef D3DNTHAL_DP2SETSTREAMSOURCE D3DHAL_DP2SETSTREAMSOURCE;
|
| 516 |
+
typedef LPD3DNTHAL_DP2SETSTREAMSOURCE LPD3DHAL_DP2SETSTREAMSOURCE;
|
| 517 |
+
typedef D3DNTHAL_DP2SETSTREAMSOURCEUM D3DHAL_DP2SETSTREAMSOURCEUM;
|
| 518 |
+
typedef LPD3DNTHAL_DP2SETSTREAMSOURCEUM LPD3DHAL_DP2SETSTREAMSOURCEUM;
|
| 519 |
+
typedef D3DNTHAL_DP2SETINDICES D3DHAL_DP2SETINDICES;
|
| 520 |
+
typedef LPD3DNTHAL_DP2SETINDICES LPD3DHAL_DP2SETINDICES;
|
| 521 |
+
typedef D3DNTHAL_DP2DRAWPRIMITIVE D3DHAL_DP2DRAWPRIMITIVE;
|
| 522 |
+
typedef LPD3DNTHAL_DP2DRAWPRIMITIVE LPD3DHAL_DP2DRAWPRIMITIVE;
|
| 523 |
+
typedef D3DNTHAL_DP2DRAWINDEXEDPRIMITIVE D3DHAL_DP2DRAWINDEXEDPRIMITIVE;
|
| 524 |
+
typedef LPD3DNTHAL_DP2DRAWINDEXEDPRIMITIVE LPD3DHAL_DP2DRAWINDEXEDPRIMITIVE;
|
| 525 |
+
typedef D3DNTHAL_CLIPPEDTRIANGLEFAN D3DHAL_CLIPPEDTRIANGLEFAN;
|
| 526 |
+
typedef LPD3DNTHAL_CLIPPEDTRIANGLEFAN LPD3DHAL_CLIPPEDTRIANGLEFAN;
|
| 527 |
+
typedef D3DNTHAL_DP2DRAWPRIMITIVE2 D3DHAL_DP2DRAWPRIMITIVE2;
|
| 528 |
+
typedef LPD3DNTHAL_DP2DRAWPRIMITIVE2 LPD3DHAL_DP2DRAWPRIMITIVE2;
|
| 529 |
+
typedef D3DNTHAL_DP2DRAWINDEXEDPRIMITIVE2 D3DHAL_DP2DRAWINDEXEDPRIMITIVE2;
|
| 530 |
+
typedef LPD3DNTHAL_DP2DRAWINDEXEDPRIMITIVE2 LPD3DHAL_DP2DRAWINDEXEDPRIMITIVE2;
|
| 531 |
+
typedef D3DNTHAL_DP2PIXELSHADER D3DHAL_DP2PIXELSHADER;
|
| 532 |
+
typedef LPD3DNTHAL_DP2PIXELSHADER LPD3DHAL_DP2PIXELSHADER;
|
| 533 |
+
typedef D3DNTHAL_DP2CREATEPIXELSHADER D3DHAL_DP2CREATEPIXELSHADER;
|
| 534 |
+
typedef LPD3DNTHAL_DP2CREATEPIXELSHADER LPD3DHAL_DP2CREATEPIXELSHADER;
|
| 535 |
+
typedef D3DNTHAL_DP2SETPIXELSHADERCONST D3DHAL_DP2SETPIXELSHADERCONST;
|
| 536 |
+
typedef LPD3DNTHAL_DP2SETPIXELSHADERCONST LPD3DHAL_DP2SETPIXELSHADERCONST;
|
| 537 |
+
|
| 538 |
+
#define RTPATCHFLAG_HASSEGS _NT_RTPATCHFLAG_HASSEGS
|
| 539 |
+
#define RTPATCHFLAG_HASINFO _NT_RTPATCHFLAG_HASINFO
|
| 540 |
+
|
| 541 |
+
typedef D3DNTHAL_DP2DRAWRECTPATCH D3DHAL_DP2DRAWRECTPATCH;
|
| 542 |
+
typedef LPD3DNTHAL_DP2DRAWRECTPATCH LPD3DHAL_DP2DRAWRECTPATCH;
|
| 543 |
+
typedef D3DNTHAL_DP2DRAWTRIPATCH D3DHAL_DP2DRAWTRIPATCH;
|
| 544 |
+
typedef LPD3DNTHAL_DP2DRAWTRIPATCH LPD3DHAL_DP2DRAWTRIPATCH;
|
| 545 |
+
typedef D3DNTHAL_DP2VOLUMEBLT D3DHAL_DP2VOLUMEBLT;
|
| 546 |
+
typedef LPD3DNTHAL_DP2VOLUMEBLT LPD3DHAL_DP2VOLUMEBLT;
|
| 547 |
+
typedef D3DNTHAL_DP2BUFFERBLT D3DHAL_DP2BUFFERBLT;
|
| 548 |
+
typedef LPD3DNTHAL_DP2BUFFERBLT LPD3DHAL_DP2BUFFERBLT;
|
| 549 |
+
typedef D3DNTHAL_DP2ADDDIRTYRECT D3DHAL_DP2ADDDIRTYRECT;
|
| 550 |
+
typedef LPD3DNTHAL_DP2ADDDIRTYRECT LPD3DHAL_DP2ADDDIRTYRECT;
|
| 551 |
+
typedef D3DNTHAL_DP2ADDDIRTYBOX D3DHAL_DP2ADDDIRTYBOX;
|
| 552 |
+
typedef LPD3DNTHAL_DP2ADDDIRTYBOX LPD3DHAL_DP2ADDDIRTYBOX;
|
| 553 |
+
|
| 554 |
+
#if(DIRECT3D_VERSION >= 0x0900 )
|
| 555 |
+
typedef D3DNTHAL_DP2CREATEVERTEXSHADERDECL D3DHAL_DP2CREATEVERTEXSHADERDECL;
|
| 556 |
+
typedef LPD3DNTHAL_DP2CREATEVERTEXSHADERDECL LPD3DHAL_DP2CREATEVERTEXSHADERDECL;
|
| 557 |
+
typedef D3DNTHAL_DP2CREATEVERTEXSHADERFUNC D3DHAL_DP2CREATEVERTEXSHADERFUNC;
|
| 558 |
+
typedef LPD3DNTHAL_DP2CREATEVERTEXSHADERFUNC LPD3DHAL_DP2CREATEVERTEXSHADERFUNC;
|
| 559 |
+
typedef D3DNTHAL_DP2SETSTREAMSOURCE2 D3DHAL_DP2SETSTREAMSOURCE2;
|
| 560 |
+
typedef LPD3DNTHAL_DP2SETSTREAMSOURCE2 LPD3DHAL_DP2SETSTREAMSOURCE2;
|
| 561 |
+
typedef D3DNTHAL_DP2SETSCISSORRECT D3DHAL_DP2SETSCISSORRECT;
|
| 562 |
+
typedef LPD3DNTHAL_DP2SETSCISSORRECT LPD3DHAL_DP2SETSCISSORRECT;
|
| 563 |
+
typedef D3DNTHAL_DP2BLT D3DHAL_DP2BLT;
|
| 564 |
+
typedef LPD3DNTHAL_DP2BLT LPD3DHAL_DP2BLT;
|
| 565 |
+
typedef D3DNTHAL_DP2COLORFILL D3DHAL_DP2COLORFILL;
|
| 566 |
+
typedef LPD3DNTHAL_DP2COLORFILL LPD3DHAL_DP2COLORFILL;
|
| 567 |
+
typedef D3DNTHAL_DP2SETVERTEXSHADERCONSTB D3DHAL_DP2SETVERTEXSHADERCONSTB;
|
| 568 |
+
typedef LPD3DNTHAL_DP2SETVERTEXSHADERCONSTB LPD3DHAL_DP2SETVERTEXSHADERCONSTB;
|
| 569 |
+
typedef D3DNTHAL_DP2SETRENDERTARGET2 D3DHAL_DP2SETRENDERTARGET2;
|
| 570 |
+
typedef LPD3DNTHAL_DP2SETRENDERTARGET2 LPD3DHAL_DP2SETRENDERTARGET2;
|
| 571 |
+
typedef D3DNTHAL_DP2SETDEPTHSTENCIL D3DHAL_DP2SETDEPTHSTENCIL;
|
| 572 |
+
typedef LPD3DNTHAL_DP2SETDEPTHSTENCIL LPD3DHAL_DP2SETDEPTHSTENCIL;
|
| 573 |
+
typedef D3DNTHAL_DP2CREATEQUERY D3DHAL_DP2CREATEQUERY;
|
| 574 |
+
typedef LPD3DNTHAL_DP2CREATEQUERY LPD3DHAL_DP2CREATEQUERY;
|
| 575 |
+
typedef D3DNTHAL_DP2DELETEQUERY D3DHAL_DP2DELETEQUERY;
|
| 576 |
+
typedef LPD3DNTHAL_DP2DELETEQUERY LPD3DHAL_DP2DELETEQUERY;
|
| 577 |
+
typedef D3DNTHAL_DP2ISSUEQUERY D3DHAL_DP2ISSUEQUERY;
|
| 578 |
+
typedef LPD3DNTHAL_DP2ISSUEQUERY LPD3DHAL_DP2ISSUEQUERY;
|
| 579 |
+
typedef D3DNTHAL_DP2GENERATEMIPSUBLEVELS D3DHAL_DP2GENERATEMIPSUBLEVELS;
|
| 580 |
+
typedef LPD3DNTHAL_DP2GENERATEMIPSUBLEVELS LPD3DHAL_DP2GENERATEMIPSUBLEVELS;
|
| 581 |
+
typedef D3DNTHAL_DP2RESPONSE D3DHAL_DP2RESPONSE;
|
| 582 |
+
typedef LPD3DNTHAL_DP2RESPONSE LPD3DHAL_DP2RESPONSE;
|
| 583 |
+
typedef D3DNTHAL_DP2RESPONSEQUERY D3DHAL_DP2RESPONSEQUERY;
|
| 584 |
+
typedef LPD3DNTHAL_DP2RESPONSEQUERY LPD3DHAL_DP2RESPONSEQUERY;
|
| 585 |
+
typedef D3DNTHAL_DP2SETVERTEXSHADERCONSTI D3DHAL_DP2SETVERTEXSHADERCONSTI;
|
| 586 |
+
typedef LPD3DNTHAL_DP2SETVERTEXSHADERCONSTI LPD3DHAL_DP2SETVERTEXSHADERCONSTI;
|
| 587 |
+
typedef D3DNTHAL_DP2SETPIXELSHADERCONSTI D3DHAL_DP2SETPIXELSHADERCONSTI;
|
| 588 |
+
typedef LPD3DNTHAL_DP2SETPIXELSHADERCONSTI LPD3DHAL_DP2SETPIXELSHADERCONSTI;
|
| 589 |
+
typedef D3DNTHAL_DP2SETPIXELSHADERCONSTB D3DHAL_DP2SETPIXELSHADERCONSTB;
|
| 590 |
+
typedef LPD3DNTHAL_DP2SETPIXELSHADERCONSTB LPD3DHAL_DP2SETPIXELSHADERCONSTB;
|
| 591 |
+
typedef D3DNTHAL_DP2SETSTREAMSOURCEFREQ D3DHAL_DP2SETSTREAMSOURCEFREQ;
|
| 592 |
+
typedef LPD3DNTHAL_DP2SETSTREAMSOURCEFREQ LPD3DHAL_DP2SETSTREAMSOURCEFREQ;
|
| 593 |
+
typedef D3DNTHAL_DP2SURFACEBLT D3DHAL_DP2SURFACEBLT;
|
| 594 |
+
typedef LPD3DNTHAL_DP2SURFACEBLT LPD3DHAL_DP2SURFACEBLT;
|
| 595 |
+
typedef _NT_D3DLINEPATTERN D3DLINEPATTERN;
|
| 596 |
+
#endif // (DIRECT3D_VERSION >= 0x0900 )
|
| 597 |
+
|
| 598 |
+
#define D3DSI_GETREGTYPE _NT_D3DSI_GETREGTYPE
|
| 599 |
+
#if(DIRECT3D_VERSION >= 0x0900 )
|
| 600 |
+
#define D3DSI_GETUSAGE _NT_D3DSI_GETUSAGE
|
| 601 |
+
#define D3DSI_GETUSAGEINDEX _NT_D3DSI_GETUSAGEINDEX
|
| 602 |
+
#define D3DSI_GETINSTLENGTH _NT_D3DSI_GETINSTLENGTH
|
| 603 |
+
#endif // (DIRECT3D_VERSION >= 0x0900 )
|
| 604 |
+
#define D3DSI_GETREGNUM _NT_D3DSI_GETREGNUM
|
| 605 |
+
#define D3DSI_GETOPCODE _NT_D3DSI_GETOPCODE
|
| 606 |
+
#define D3DSI_GETWRITEMASK _NT_D3DSI_GETWRITEMASK
|
| 607 |
+
#define D3DVS_GETSWIZZLECOMP _NT_D3DVS_GETSWIZZLECOMP
|
| 608 |
+
#define D3DVS_GETSWIZZLE _NT_D3DVS_GETSWIZZLE
|
| 609 |
+
#define D3DVS_GETSRCMODIFIER _NT_D3DVS_GETSRCMODIFIER
|
| 610 |
+
#define D3DVS_GETADDRESSMODE _NT_D3DVS_GETADDRESSMODE
|
| 611 |
+
|
| 612 |
+
#define D3DRS_DELETERTPATCH _NT_D3DRS_DELETERTPATCH
|
| 613 |
+
|
| 614 |
+
typedef DDNT_GETDRIVERINFO2DATA DD_GETDRIVERINFO2DATA;
|
| 615 |
+
|
| 616 |
+
#if(DIRECT3D_VERSION >= 0x0900)
|
| 617 |
+
typedef DDNT_GETD3DQUERYCOUNTDATA DD_GETD3DQUERYCOUNTDATA;
|
| 618 |
+
typedef DDNT_GETD3DQUERYDATA DD_GETD3DQUERYDATA;
|
| 619 |
+
typedef DDNT_GETDDIVERSIONDATA DD_GETDDIVERSIONDATA;
|
| 620 |
+
#endif // (DIRECT3D_VERSION >= 0x0900)
|
| 621 |
+
|
| 622 |
+
#define GUID_GetDriverInfo2 _NT_GUID_GetDriverInfo2
|
| 623 |
+
#define D3DGDI2_MAGIC _NT_D3DGDI2_MAGIC
|
| 624 |
+
|
| 625 |
+
#define D3DGDI2_TYPE_GETD3DCAPS8 _NT_D3DGDI2_TYPE_GETD3DCAPS8
|
| 626 |
+
#define D3DGDI2_TYPE_GETFORMATCOUNT _NT_D3DGDI2_TYPE_GETFORMATCOUNT
|
| 627 |
+
#define D3DGDI2_TYPE_GETFORMAT _NT_D3DGDI2_TYPE_GETFORMAT
|
| 628 |
+
#define D3DGDI2_TYPE_DXVERSION _NT_D3DGDI2_TYPE_DXVERSION
|
| 629 |
+
#define D3DGDI2_TYPE_DEFERRED_AGP_AWARE _NT_D3DGDI2_TYPE_DEFERRED_AGP_AWARE
|
| 630 |
+
#define D3DGDI2_TYPE_FREE_DEFERRED_AGP _NT_D3DGDI2_TYPE_FREE_DEFERRED_AGP
|
| 631 |
+
#define D3DGDI2_TYPE_DEFER_AGP_FREES _NT_D3DGDI2_TYPE_DEFER_AGP_FREES
|
| 632 |
+
#if(DIRECT3D_VERSION >= 0x0900)
|
| 633 |
+
#define D3DGDI2_TYPE_GETD3DCAPS9 _NT_D3DGDI2_TYPE_GETD3DCAPS9
|
| 634 |
+
#define D3DGDI2_TYPE_GETEXTENDEDMODECOUNT _NT_D3DGDI2_TYPE_GETEXTENDEDMODECOUNT
|
| 635 |
+
#define D3DGDI2_TYPE_GETEXTENDEDMODE _NT_D3DGDI2_TYPE_GETEXTENDEDMODE
|
| 636 |
+
#define D3DGDI2_TYPE_GETADAPTERGROUP _NT_D3DGDI2_TYPE_GETADAPTERGROUP
|
| 637 |
+
#define D3DGDI2_TYPE_GETMULTISAMPLEQUALITYLEVELS _NT_D3DGDI2_TYPE_GETMULTISAMPLEQUALITYLEVELS
|
| 638 |
+
#define D3DGDI2_TYPE_GETD3DQUERYCOUNT _NT_D3DGDI2_TYPE_GETD3DQUERYCOUNT
|
| 639 |
+
#define D3DGDI2_TYPE_GETD3DQUERY _NT_D3DGDI2_TYPE_GETD3DQUERY
|
| 640 |
+
#define D3DGDI2_TYPE_GETDDIVERSION _NT_D3DGDI2_TYPE_GETDDIVERSION
|
| 641 |
+
|
| 642 |
+
#endif // (DIRECT3D_VERSION >= 0x0900)
|
| 643 |
+
|
| 644 |
+
typedef DDNT_GETFORMATCOUNTDATA DD_GETFORMATCOUNTDATA;
|
| 645 |
+
typedef DDNT_GETFORMATDATA DD_GETFORMATDATA;
|
| 646 |
+
typedef DDNT_DXVERSION DD_DXVERSION;
|
| 647 |
+
typedef DDNT_DEFERRED_AGP_AWARE_DATA DD_DEFERRED_AGP_AWARE_DATA;
|
| 648 |
+
typedef DDNT_FREE_DEFERRED_AGP_DATA DD_FREE_DEFERRED_AGP_DATA;
|
| 649 |
+
#if(DIRECT3D_VERSION >= 0x0900)
|
| 650 |
+
typedef DDNT_GETEXTENDEDMODECOUNTDATA DD_GETEXTENDEDMODECOUNTDATA;
|
| 651 |
+
typedef DDNT_GETEXTENDEDMODEDATA DD_GETEXTENDEDMODEDATA;
|
| 652 |
+
typedef DDNT_GETADAPTERGROUPDATA DD_GETADAPTERGROUPDATA;
|
| 653 |
+
typedef DDNT_MULTISAMPLEQUALITYLEVELSDATA DD_MULTISAMPLEQUALITYLEVELSDATA;
|
| 654 |
+
#endif // (DIRECT3D_VERSION >= 0x0900)
|
| 655 |
+
|
| 656 |
+
#define D3DDEVCAPS_HWVERTEXBUFFER _NT_D3DDEVCAPS_HWVERTEXBUFFER
|
| 657 |
+
#define D3DDEVCAPS_HWINDEXBUFFER _NT_D3DDEVCAPS_HWINDEXBUFFER
|
| 658 |
+
#define D3DDEVCAPS_SUBVOLUMELOCK _NT_D3DDEVCAPS_SUBVOLUMELOCK
|
| 659 |
+
|
| 660 |
+
#define D3DPMISCCAPS_FOGINFVF _NT_D3DPMISCCAPS_FOGINFVF
|
| 661 |
+
#define D3DFVF_FOG _NT_D3DFVF_FOG
|
| 662 |
+
|
| 663 |
+
#define D3DFMT_D32 _NT_D3DFMT_D32
|
| 664 |
+
#define D3DFMT_S1D15 _NT_D3DFMT_S1D15
|
| 665 |
+
#define D3DFMT_D15S1 _NT_D3DFMT_D15S1
|
| 666 |
+
#define D3DFMT_S8D24 _NT_D3DFMT_S8D24
|
| 667 |
+
#define D3DFMT_D24S8 _NT_D3DFMT_D24S8
|
| 668 |
+
#define D3DFMT_X8D24 _NT_D3DFMT_X8D24
|
| 669 |
+
#define D3DFMT_D24X8 _NT_D3DFMT_D24X8
|
| 670 |
+
#define D3DFMT_X4S4D24 _NT_D3DFMT_X4S4D24
|
| 671 |
+
#define D3DFMT_D24X4S4 _NT_D3DFMT_D24X4S4
|
| 672 |
+
|
| 673 |
+
#define D3DVS_INPUTREG_MAX_V1_1 _NT_D3DVS_INPUTREG_MAX_V1_1
|
| 674 |
+
#define D3DVS_TEMPREG_MAX_V1_1 _NT_D3DVS_TEMPREG_MAX_V1_1
|
| 675 |
+
#define D3DVS_CONSTREG_MAX_V1_1 _NT_D3DVS_CONSTREG_MAX_V1_1
|
| 676 |
+
#define D3DVS_TCRDOUTREG_MAX_V1_1 _NT_D3DVS_TCRDOUTREG_MAX_V1_1
|
| 677 |
+
#define D3DVS_ADDRREG_MAX_V1_1 _NT_D3DVS_ADDRREG_MAX_V1_1
|
| 678 |
+
#define D3DVS_ATTROUTREG_MAX_V1_1 _NT_D3DVS_ATTROUTREG_MAX_V1_1
|
| 679 |
+
#define D3DVS_MAXINSTRUCTIONCOUNT_V1_1 _NT_D3DVS_MAXINSTRUCTIONCOUNT_V1_1
|
| 680 |
+
|
| 681 |
+
#define D3DPS_INPUTREG_MAX_DX8 _NT_D3DPS_INPUTREG_MAX_DX8
|
| 682 |
+
#define D3DPS_TEMPREG_MAX_DX8 _NT_D3DPS_TEMPREG_MAX_DX8
|
| 683 |
+
#define D3DPS_CONSTREG_MAX_DX8 _NT_D3DPS_CONSTREG_MAX_DX8
|
| 684 |
+
#define D3DPS_TEXTUREREG_MAX_DX8 _NT_D3DPS_TEXTUREREG_MAX_DX8
|
| 685 |
+
|
| 686 |
+
#endif // (DIRECT3D_VERSION >= 0x0800 )
|
| 687 |
+
|
| 688 |
+
#ifdef DX8DDK_DX7HAL_DEFINES
|
| 689 |
+
|
| 690 |
+
// Some legacy (<=DX7) definitions that are in d3dhal.h
|
| 691 |
+
|
| 692 |
+
#define D3DHAL_TSS_MAXSTAGES D3DNTHAL_TSS_MAXSTAGES
|
| 693 |
+
typedef PDD_DIRECTDRAW_LOCAL LPDDRAWI_DIRECTDRAW_LCL;
|
| 694 |
+
|
| 695 |
+
typedef D3DNTHAL_DP2OPERATION *LPD3DHAL_DP2OPERATION;
|
| 696 |
+
typedef D3DNTHAL_DP2POINTS *LPD3DHAL_DP2POINTS;
|
| 697 |
+
typedef D3DNTHAL_DP2LINELIST *LPD3DHAL_DP2LINELIST;
|
| 698 |
+
typedef D3DNTHAL_DP2INDEXEDLINELIST *LPD3DHAL_DP2INDEXEDLINELIST;
|
| 699 |
+
typedef D3DNTHAL_DP2LINESTRIP *LPD3DHAL_DP2LINESTRIP;
|
| 700 |
+
typedef D3DNTHAL_DP2INDEXEDLINESTRIP *LPD3DHAL_DP2INDEXEDLINESTRIP;
|
| 701 |
+
typedef D3DNTHAL_DP2TRIANGLELIST *LPD3DHAL_DP2TRIANGLELIST;
|
| 702 |
+
typedef D3DNTHAL_DP2INDEXEDTRIANGLELIST *LPD3DHAL_DP2INDEXEDTRIANGLELIST;
|
| 703 |
+
typedef D3DNTHAL_DP2INDEXEDTRIANGLELIST2 *LPD3DHAL_DP2INDEXEDTRIANGLELIST2;
|
| 704 |
+
typedef D3DNTHAL_DP2TRIANGLESTRIP *LPD3DHAL_DP2TRIANGLESTRIP;
|
| 705 |
+
typedef D3DNTHAL_DP2INDEXEDTRIANGLESTRIP *LPD3DHAL_DP2INDEXEDTRIANGLESTRIP;
|
| 706 |
+
typedef D3DNTHAL_DP2TRIANGLEFAN *LPD3DHAL_DP2TRIANGLEFAN;
|
| 707 |
+
typedef D3DNTHAL_DP2INDEXEDTRIANGLEFAN *LPD3DHAL_DP2INDEXEDTRIANGLEFAN;
|
| 708 |
+
typedef D3DNTHAL_DP2RENDERSTATE *LPD3DHAL_DP2RENDERSTATE;
|
| 709 |
+
typedef D3DNTHAL_DP2TEXTURESTAGESTATE *LPD3DHAL_DP2TEXTURESTAGESTATE;
|
| 710 |
+
typedef D3DNTHAL_DP2TRIANGLEFAN_IMM *LPD3DHAL_DP2TRIANGLEFAN_IMM;
|
| 711 |
+
typedef D3DNTHAL_DP2STARTVERTEX *LPD3DHAL_DP2STARTVERTEX;
|
| 712 |
+
typedef D3DNTHAL_DP2VIEWPORTINFO *LPD3DHAL_DP2VIEWPORTINFO;
|
| 713 |
+
typedef D3DNTHAL_DP2WINFO *LPD3DHAL_DP2WINFO;
|
| 714 |
+
typedef D3DNTHAL_DP2SETPALETTE *LPD3DHAL_DP2SETPALETTE;
|
| 715 |
+
typedef D3DNTHAL_DP2UPDATEPALETTE *LPD3DHAL_DP2UPDATEPALETTE;
|
| 716 |
+
typedef D3DNTHAL_DP2ZRANGE *LPD3DHAL_DP2ZRANGE;
|
| 717 |
+
typedef D3DNTHAL_DP2SETMATERIAL *LPD3DHAL_DP2SETMATERIAL;
|
| 718 |
+
typedef D3DNTHAL_DP2SETLIGHT *LPD3DHAL_DP2SETLIGHT;
|
| 719 |
+
typedef D3DNTHAL_DP2SETCLIPPLANE *LPD3DHAL_DP2SETCLIPPLANE;
|
| 720 |
+
typedef D3DNTHAL_DP2CREATELIGHT *LPD3DHAL_DP2CREATELIGHT;
|
| 721 |
+
typedef D3DNTHAL_DP2SETTRANSFORM *LPD3DHAL_DP2SETTRANSFORM;
|
| 722 |
+
typedef D3DNTHAL_DP2EXT *LPD3DHAL_DP2EXT;
|
| 723 |
+
typedef D3DNTHAL_DP2TEXBLT *LPD3DHAL_DP2TEXBLT;
|
| 724 |
+
typedef D3DNTHAL_DP2STATESET *LPD3DHAL_DP2STATESET;
|
| 725 |
+
typedef D3DNTHAL_DP2SETPRIORITY *LPD3DHAL_DP2SETPRIORITY;
|
| 726 |
+
typedef D3DNTHAL_DP2SETRENDERTARGET *LPD3DHAL_DP2SETRENDERTARGET;
|
| 727 |
+
typedef D3DNTHAL_DP2CLEAR *LPD3DHAL_DP2CLEAR;
|
| 728 |
+
typedef D3DNTHAL_DP2SETTEXLOD *LPD3DHAL_DP2SETTEXLOD;
|
| 729 |
+
|
| 730 |
+
// Values for dwDataType in D3DHAL_DP2SETLIGHT
|
| 731 |
+
#define D3DHAL_SETLIGHT_ENABLE 0
|
| 732 |
+
#define D3DHAL_SETLIGHT_DISABLE 1
|
| 733 |
+
// If this is set, light data will be passed in after the
|
| 734 |
+
// D3DLIGHT7 structure
|
| 735 |
+
#define D3DHAL_SETLIGHT_DATA 2
|
| 736 |
+
|
| 737 |
+
#define D3DHAL_NUMCLIPVERTICES 20
|
| 738 |
+
|
| 739 |
+
#define D3DTSS_MAX ((D3DTEXTURESTAGESTATETYPE)33)
|
| 740 |
+
|
| 741 |
+
/*
|
| 742 |
+
* If DX8 driver wants to support pre-DX8 applications, it should use these
|
| 743 |
+
* definitions for pre-DX8 world matrices
|
| 744 |
+
*/
|
| 745 |
+
#define D3DTRANSFORMSTATE_WORLD_DX7 1
|
| 746 |
+
#define D3DTRANSFORMSTATE_WORLD1_DX7 4
|
| 747 |
+
#define D3DTRANSFORMSTATE_WORLD2_DX7 5
|
| 748 |
+
#define D3DTRANSFORMSTATE_WORLD3_DX7 6
|
| 749 |
+
|
| 750 |
+
/*
|
| 751 |
+
* Generally needed maximum state structure sizes. Note that the copy of
|
| 752 |
+
* these in refrasti.hpp must be kept in sync with these.
|
| 753 |
+
*/
|
| 754 |
+
|
| 755 |
+
#define D3DHAL_MAX_RSTATES (D3DRENDERSTATE_WRAPBIAS + 128)
|
| 756 |
+
/* Last state offset for combined render state and texture stage array + 1 */
|
| 757 |
+
#define D3DHAL_MAX_RSTATES_AND_STAGES \
|
| 758 |
+
(D3DHAL_TSS_RENDERSTATEBASE + \
|
| 759 |
+
D3DHAL_TSS_MAXSTAGES * D3DHAL_TSS_STATESPERSTAGE)
|
| 760 |
+
/* Last texture state ID */
|
| 761 |
+
#define D3DHAL_MAX_TEXTURESTATES (13)
|
| 762 |
+
/* Last texture state ID + 1 */
|
| 763 |
+
#define D3DHAL_TEXTURESTATEBUF_SIZE (D3DHAL_MAX_TEXTURESTATES+1)
|
| 764 |
+
|
| 765 |
+
/*
|
| 766 |
+
* If no dwNumVertices is given, this is what will be used.
|
| 767 |
+
*/
|
| 768 |
+
#define D3DHAL_DEFAULT_TL_NUM ((32 * 1024) / sizeof (D3DTLVERTEX))
|
| 769 |
+
#define D3DHAL_DEFAULT_H_NUM ((32 * 1024) / sizeof (D3DHVERTEX))
|
| 770 |
+
|
| 771 |
+
typedef D3DDEVICEDESC_V1 *LPD3DDEVICEDESC_V1;
|
| 772 |
+
#define D3DDEVICEDESCSIZE_V1 (sizeof(D3DDEVICEDESC_V1))
|
| 773 |
+
|
| 774 |
+
#define D3DHAL_GLOBALDRIVERDATASIZE (sizeof(D3DHAL_GLOBALDRIVERDATA))
|
| 775 |
+
|
| 776 |
+
#define D3DHAL_D3DEXTENDEDCAPSSIZE (sizeof(D3DHAL_D3DEXTENDEDCAPS))
|
| 777 |
+
|
| 778 |
+
#endif // DX8DDK_DX7HAL_DEFINES
|
| 779 |
+
|
| 780 |
+
|
| 781 |
+
|
| 782 |
+
#endif // WINNT
|
| 783 |
+
#endif // NODX95TYPES
|
| 784 |
+
|
| 785 |
+
|
| 786 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 787 |
+
#pragma endregion
|
| 788 |
+
|
| 789 |
+
#endif // __DX95TYPE_H__
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxcapi.h
ADDED
|
@@ -0,0 +1,1218 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 3 |
+
// //
|
| 4 |
+
// dxcapi.h //
|
| 5 |
+
// Copyright (C) Microsoft Corporation. All rights reserved. //
|
| 6 |
+
// This file is distributed under the University of Illinois Open Source //
|
| 7 |
+
// License. See LICENSE.TXT for details. //
|
| 8 |
+
// //
|
| 9 |
+
// Provides declarations for the DirectX Compiler API entry point. //
|
| 10 |
+
// //
|
| 11 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 12 |
+
|
| 13 |
+
#ifndef __DXC_API__
|
| 14 |
+
#define __DXC_API__
|
| 15 |
+
|
| 16 |
+
#ifdef _WIN32
|
| 17 |
+
#ifndef DXC_API_IMPORT
|
| 18 |
+
#define DXC_API_IMPORT __declspec(dllimport)
|
| 19 |
+
#endif
|
| 20 |
+
#else
|
| 21 |
+
#ifndef DXC_API_IMPORT
|
| 22 |
+
#define DXC_API_IMPORT __attribute__ ((visibility ("default")))
|
| 23 |
+
#endif
|
| 24 |
+
#endif
|
| 25 |
+
|
| 26 |
+
#ifdef _WIN32
|
| 27 |
+
|
| 28 |
+
#ifndef CROSS_PLATFORM_UUIDOF
|
| 29 |
+
// Warning: This macro exists in WinAdapter.h as well
|
| 30 |
+
#define CROSS_PLATFORM_UUIDOF(interface, spec) \
|
| 31 |
+
struct __declspec(uuid(spec)) interface;
|
| 32 |
+
#endif
|
| 33 |
+
|
| 34 |
+
#else
|
| 35 |
+
|
| 36 |
+
#include <dlfcn.h>
|
| 37 |
+
#include "WinAdapter.h"
|
| 38 |
+
#endif
|
| 39 |
+
|
| 40 |
+
struct IMalloc;
|
| 41 |
+
|
| 42 |
+
struct IDxcIncludeHandler;
|
| 43 |
+
|
| 44 |
+
/// \brief Typedef for DxcCreateInstance function pointer.
|
| 45 |
+
///
|
| 46 |
+
/// This can be used with GetProcAddress to get the DxcCreateInstance function.
|
| 47 |
+
typedef HRESULT (__stdcall *DxcCreateInstanceProc)(
|
| 48 |
+
_In_ REFCLSID rclsid,
|
| 49 |
+
_In_ REFIID riid,
|
| 50 |
+
_Out_ LPVOID* ppv
|
| 51 |
+
);
|
| 52 |
+
|
| 53 |
+
/// \brief Typedef for DxcCreateInstance2 function pointer.
|
| 54 |
+
///
|
| 55 |
+
/// This can be used with GetProcAddress to get the DxcCreateInstance2 function.
|
| 56 |
+
typedef HRESULT(__stdcall *DxcCreateInstance2Proc)(
|
| 57 |
+
_In_ IMalloc *pMalloc,
|
| 58 |
+
_In_ REFCLSID rclsid,
|
| 59 |
+
_In_ REFIID riid,
|
| 60 |
+
_Out_ LPVOID* ppv
|
| 61 |
+
);
|
| 62 |
+
|
| 63 |
+
/// \brief Creates a single uninitialized object of the class associated with a
|
| 64 |
+
/// specified CLSID.
|
| 65 |
+
///
|
| 66 |
+
/// \param rclsid The CLSID associated with the data and code that will be used
|
| 67 |
+
/// to create the object.
|
| 68 |
+
///
|
| 69 |
+
/// \param riid A reference to the identifier of the interface to be used to
|
| 70 |
+
/// communicate with the object.
|
| 71 |
+
///
|
| 72 |
+
/// \param ppv Address of pointer variable that receives the interface pointer
|
| 73 |
+
/// requested in riid. Upon successful return, *ppv contains the requested
|
| 74 |
+
/// interface pointer. Upon failure, *ppv contains NULL.
|
| 75 |
+
///
|
| 76 |
+
/// While this function is similar to CoCreateInstance, there is no COM
|
| 77 |
+
/// involvement.
|
| 78 |
+
extern "C"
|
| 79 |
+
DXC_API_IMPORT HRESULT __stdcall DxcCreateInstance(
|
| 80 |
+
_In_ REFCLSID rclsid,
|
| 81 |
+
_In_ REFIID riid,
|
| 82 |
+
_Out_ LPVOID* ppv
|
| 83 |
+
);
|
| 84 |
+
|
| 85 |
+
/// \brief Version of DxcCreateInstance that takes an IMalloc interface.
|
| 86 |
+
///
|
| 87 |
+
/// This can be used to create an instance of the compiler with a custom memory allocator.
|
| 88 |
+
extern "C"
|
| 89 |
+
DXC_API_IMPORT HRESULT __stdcall DxcCreateInstance2(
|
| 90 |
+
_In_ IMalloc *pMalloc,
|
| 91 |
+
_In_ REFCLSID rclsid,
|
| 92 |
+
_In_ REFIID riid,
|
| 93 |
+
_Out_ LPVOID* ppv
|
| 94 |
+
);
|
| 95 |
+
|
| 96 |
+
// For convenience, equivalent definitions to CP_UTF8 and CP_UTF16.
|
| 97 |
+
#define DXC_CP_UTF8 65001
|
| 98 |
+
#define DXC_CP_UTF16 1200
|
| 99 |
+
#define DXC_CP_UTF32 12000
|
| 100 |
+
// Use DXC_CP_ACP for: Binary; ANSI Text; Autodetect UTF with BOM
|
| 101 |
+
#define DXC_CP_ACP 0
|
| 102 |
+
|
| 103 |
+
/// Codepage for "wide" characters - UTF16 on Windows, UTF32 on other platforms.
|
| 104 |
+
#ifdef _WIN32
|
| 105 |
+
#define DXC_CP_WIDE DXC_CP_UTF16
|
| 106 |
+
#else
|
| 107 |
+
#define DXC_CP_WIDE DXC_CP_UTF32
|
| 108 |
+
#endif
|
| 109 |
+
|
| 110 |
+
/// Indicates that the shader hash was computed taking into account source
|
| 111 |
+
/// information (-Zss).
|
| 112 |
+
#define DXC_HASHFLAG_INCLUDES_SOURCE 1
|
| 113 |
+
|
| 114 |
+
/// Hash digest type for ShaderHash.
|
| 115 |
+
typedef struct DxcShaderHash {
|
| 116 |
+
UINT32 Flags; ///< DXC_HASHFLAG_*
|
| 117 |
+
BYTE HashDigest[16]; ///< The hash digest
|
| 118 |
+
} DxcShaderHash;
|
| 119 |
+
|
| 120 |
+
#define DXC_FOURCC(ch0, ch1, ch2, ch3) ( \
|
| 121 |
+
(UINT32)(UINT8)(ch0) | (UINT32)(UINT8)(ch1) << 8 | \
|
| 122 |
+
(UINT32)(UINT8)(ch2) << 16 | (UINT32)(UINT8)(ch3) << 24 \
|
| 123 |
+
)
|
| 124 |
+
#define DXC_PART_PDB DXC_FOURCC('I', 'L', 'D', 'B')
|
| 125 |
+
#define DXC_PART_PDB_NAME DXC_FOURCC('I', 'L', 'D', 'N')
|
| 126 |
+
#define DXC_PART_PRIVATE_DATA DXC_FOURCC('P', 'R', 'I', 'V')
|
| 127 |
+
#define DXC_PART_ROOT_SIGNATURE DXC_FOURCC('R', 'T', 'S', '0')
|
| 128 |
+
#define DXC_PART_DXIL DXC_FOURCC('D', 'X', 'I', 'L')
|
| 129 |
+
#define DXC_PART_REFLECTION_DATA DXC_FOURCC('S', 'T', 'A', 'T')
|
| 130 |
+
#define DXC_PART_SHADER_HASH DXC_FOURCC('H', 'A', 'S', 'H')
|
| 131 |
+
#define DXC_PART_INPUT_SIGNATURE DXC_FOURCC('I', 'S', 'G', '1')
|
| 132 |
+
#define DXC_PART_OUTPUT_SIGNATURE DXC_FOURCC('O', 'S', 'G', '1')
|
| 133 |
+
#define DXC_PART_PATCH_CONSTANT_SIGNATURE DXC_FOURCC('P', 'S', 'G', '1')
|
| 134 |
+
|
| 135 |
+
// Some option arguments are defined here for continuity with D3DCompile
|
| 136 |
+
// interface.
|
| 137 |
+
#define DXC_ARG_DEBUG L"-Zi"
|
| 138 |
+
#define DXC_ARG_SKIP_VALIDATION L"-Vd"
|
| 139 |
+
#define DXC_ARG_SKIP_OPTIMIZATIONS L"-Od"
|
| 140 |
+
#define DXC_ARG_PACK_MATRIX_ROW_MAJOR L"-Zpr"
|
| 141 |
+
#define DXC_ARG_PACK_MATRIX_COLUMN_MAJOR L"-Zpc"
|
| 142 |
+
#define DXC_ARG_AVOID_FLOW_CONTROL L"-Gfa"
|
| 143 |
+
#define DXC_ARG_PREFER_FLOW_CONTROL L"-Gfp"
|
| 144 |
+
#define DXC_ARG_ENABLE_STRICTNESS L"-Ges"
|
| 145 |
+
#define DXC_ARG_ENABLE_BACKWARDS_COMPATIBILITY L"-Gec"
|
| 146 |
+
#define DXC_ARG_IEEE_STRICTNESS L"-Gis"
|
| 147 |
+
#define DXC_ARG_OPTIMIZATION_LEVEL0 L"-O0"
|
| 148 |
+
#define DXC_ARG_OPTIMIZATION_LEVEL1 L"-O1"
|
| 149 |
+
#define DXC_ARG_OPTIMIZATION_LEVEL2 L"-O2"
|
| 150 |
+
#define DXC_ARG_OPTIMIZATION_LEVEL3 L"-O3"
|
| 151 |
+
#define DXC_ARG_WARNINGS_ARE_ERRORS L"-WX"
|
| 152 |
+
#define DXC_ARG_RESOURCES_MAY_ALIAS L"-res_may_alias"
|
| 153 |
+
#define DXC_ARG_ALL_RESOURCES_BOUND L"-all_resources_bound"
|
| 154 |
+
#define DXC_ARG_DEBUG_NAME_FOR_SOURCE L"-Zss"
|
| 155 |
+
#define DXC_ARG_DEBUG_NAME_FOR_BINARY L"-Zsb"
|
| 156 |
+
|
| 157 |
+
CROSS_PLATFORM_UUIDOF(IDxcBlob, "8BA5FB08-5195-40e2-AC58-0D989C3A0102")
|
| 158 |
+
/// \brief A sized buffer that can be passed in and out of DXC APIs.
|
| 159 |
+
///
|
| 160 |
+
/// This is an alias of ID3D10Blob and ID3DBlob.
|
| 161 |
+
struct IDxcBlob : public IUnknown {
|
| 162 |
+
public:
|
| 163 |
+
/// \brief Retrieves a pointer to the blob's data.
|
| 164 |
+
virtual LPVOID STDMETHODCALLTYPE GetBufferPointer(void) = 0;
|
| 165 |
+
|
| 166 |
+
/// \brief Retrieves the size, in bytes, of the blob's data.
|
| 167 |
+
virtual SIZE_T STDMETHODCALLTYPE GetBufferSize(void) = 0;
|
| 168 |
+
};
|
| 169 |
+
|
| 170 |
+
CROSS_PLATFORM_UUIDOF(IDxcBlobEncoding, "7241d424-2646-4191-97c0-98e96e42fc68")
|
| 171 |
+
/// \brief A blob that might have a known encoding.
|
| 172 |
+
struct IDxcBlobEncoding : public IDxcBlob {
|
| 173 |
+
public:
|
| 174 |
+
/// \brief Retrieve the encoding for this blob.
|
| 175 |
+
///
|
| 176 |
+
/// \param pKnown Pointer to a variable that will be set to TRUE if the
|
| 177 |
+
/// encoding is known.
|
| 178 |
+
///
|
| 179 |
+
/// \param pCodePage Pointer to variable that will be set to the encoding used
|
| 180 |
+
/// for this blog.
|
| 181 |
+
///
|
| 182 |
+
/// If the encoding is not known then pCodePage will be set to CP_ACP.
|
| 183 |
+
virtual HRESULT STDMETHODCALLTYPE GetEncoding(_Out_ BOOL *pKnown,
|
| 184 |
+
_Out_ UINT32 *pCodePage) = 0;
|
| 185 |
+
};
|
| 186 |
+
|
| 187 |
+
CROSS_PLATFORM_UUIDOF(IDxcBlobWide, "A3F84EAB-0FAA-497E-A39C-EE6ED60B2D84")
|
| 188 |
+
/// \brief A blob containing a null-terminated wide string.
|
| 189 |
+
///
|
| 190 |
+
/// This uses the native wide character encoding (utf16 on Windows, utf32 on
|
| 191 |
+
/// Linux).
|
| 192 |
+
///
|
| 193 |
+
/// The value returned by GetBufferSize() is the size of the buffer, in bytes,
|
| 194 |
+
/// including the null-terminator.
|
| 195 |
+
///
|
| 196 |
+
/// This interface is used to return output name strings DXC. Other string
|
| 197 |
+
/// output blobs, such as errors/warnings, preprocessed HLSL, or other text are
|
| 198 |
+
/// returned using encodings based on the -encoding option passed to the
|
| 199 |
+
/// compiler.
|
| 200 |
+
struct IDxcBlobWide : public IDxcBlobEncoding {
|
| 201 |
+
public:
|
| 202 |
+
/// \brief Retrieves a pointer to the string stored in this blob.
|
| 203 |
+
virtual LPCWSTR STDMETHODCALLTYPE GetStringPointer(void) = 0;
|
| 204 |
+
|
| 205 |
+
/// \brief Retrieves the length of the string stored in this blob, in
|
| 206 |
+
/// characters, excluding the null-terminator.
|
| 207 |
+
virtual SIZE_T STDMETHODCALLTYPE GetStringLength(void) = 0;
|
| 208 |
+
};
|
| 209 |
+
|
| 210 |
+
CROSS_PLATFORM_UUIDOF(IDxcBlobUtf8, "3DA636C9-BA71-4024-A301-30CBF125305B")
|
| 211 |
+
/// \brief A blob containing a UTF-8 encoded string.
|
| 212 |
+
///
|
| 213 |
+
/// The value returned by GetBufferSize() is the size of the buffer, in bytes,
|
| 214 |
+
/// including the null-terminator.
|
| 215 |
+
///
|
| 216 |
+
/// Depending on the -encoding option passed to the compiler, this interface is
|
| 217 |
+
/// used to return string output blobs, such as errors/warnings, preprocessed
|
| 218 |
+
/// HLSL, or other text. Output name strings always use IDxcBlobWide.
|
| 219 |
+
struct IDxcBlobUtf8 : public IDxcBlobEncoding {
|
| 220 |
+
public:
|
| 221 |
+
/// \brief Retrieves a pointer to the string stored in this blob.
|
| 222 |
+
virtual LPCSTR STDMETHODCALLTYPE GetStringPointer(void) = 0;
|
| 223 |
+
|
| 224 |
+
/// \brief Retrieves the length of the string stored in this blob, in
|
| 225 |
+
/// characters, excluding the null-terminator.
|
| 226 |
+
virtual SIZE_T STDMETHODCALLTYPE GetStringLength(void) = 0;
|
| 227 |
+
};
|
| 228 |
+
|
| 229 |
+
#ifdef _WIN32
|
| 230 |
+
/// IDxcBlobUtf16 is a legacy alias for IDxcBlobWide on Win32.
|
| 231 |
+
typedef IDxcBlobWide IDxcBlobUtf16;
|
| 232 |
+
#endif
|
| 233 |
+
|
| 234 |
+
CROSS_PLATFORM_UUIDOF(IDxcIncludeHandler, "7f61fc7d-950d-467f-b3e3-3c02fb49187c")
|
| 235 |
+
/// \brief Interface for handling include directives.
|
| 236 |
+
///
|
| 237 |
+
/// This interface can be implemented to customize handling of include
|
| 238 |
+
/// directives.
|
| 239 |
+
///
|
| 240 |
+
/// Use IDxcUtils::CreateDefaultIncludeHandler to create a default
|
| 241 |
+
/// implementation that reads include files from the filesystem.
|
| 242 |
+
///
|
| 243 |
+
struct IDxcIncludeHandler : public IUnknown {
|
| 244 |
+
/// \brief Load a source file to be included by the compiler.
|
| 245 |
+
///
|
| 246 |
+
/// \param pFilename Candidate filename.
|
| 247 |
+
///
|
| 248 |
+
/// \param ppIncludeSource Resultant source object for included file, nullptr
|
| 249 |
+
/// if not found.
|
| 250 |
+
virtual HRESULT STDMETHODCALLTYPE LoadSource(
|
| 251 |
+
_In_z_ LPCWSTR pFilename,
|
| 252 |
+
_COM_Outptr_result_maybenull_ IDxcBlob **ppIncludeSource
|
| 253 |
+
) = 0;
|
| 254 |
+
};
|
| 255 |
+
|
| 256 |
+
/// \brief Structure for supplying bytes or text input to Dxc APIs.
|
| 257 |
+
typedef struct DxcBuffer {
|
| 258 |
+
/// \brief Pointer to the start of the buffer.
|
| 259 |
+
LPCVOID Ptr;
|
| 260 |
+
|
| 261 |
+
/// \brief Size of the buffer in bytes.
|
| 262 |
+
SIZE_T Size;
|
| 263 |
+
|
| 264 |
+
/// \brief Encoding of the buffer.
|
| 265 |
+
///
|
| 266 |
+
/// Use Encoding = 0 for non-text bytes, ANSI text, or unknown with BOM.
|
| 267 |
+
UINT Encoding;
|
| 268 |
+
} DxcText;
|
| 269 |
+
|
| 270 |
+
/// \brief Structure for supplying defines to Dxc APIs.
|
| 271 |
+
struct DxcDefine {
|
| 272 |
+
LPCWSTR Name; ///< The define name.
|
| 273 |
+
_Maybenull_ LPCWSTR Value; ///< Optional value for the define.
|
| 274 |
+
};
|
| 275 |
+
|
| 276 |
+
CROSS_PLATFORM_UUIDOF(IDxcCompilerArgs, "73EFFE2A-70DC-45F8-9690-EFF64C02429D")
|
| 277 |
+
/// \brief Interface for managing arguments passed to DXC.
|
| 278 |
+
///
|
| 279 |
+
/// Use IDxcUtils::BuildArguments to create an instance of this interface.
|
| 280 |
+
struct IDxcCompilerArgs : public IUnknown {
|
| 281 |
+
/// \brief Retrieve the array of arguments.
|
| 282 |
+
///
|
| 283 |
+
/// This can be passed directly to the pArguments parameter of the Compile()
|
| 284 |
+
/// method.
|
| 285 |
+
virtual LPCWSTR* STDMETHODCALLTYPE GetArguments() = 0;
|
| 286 |
+
|
| 287 |
+
/// \brief Retrieve the number of arguments.
|
| 288 |
+
///
|
| 289 |
+
/// This can be passed directly to the argCount parameter of the Compile()
|
| 290 |
+
/// method.
|
| 291 |
+
virtual UINT32 STDMETHODCALLTYPE GetCount() = 0;
|
| 292 |
+
|
| 293 |
+
/// \brief Add additional arguments to this list of compiler arguments.
|
| 294 |
+
virtual HRESULT STDMETHODCALLTYPE AddArguments(
|
| 295 |
+
_In_opt_count_(argCount) LPCWSTR *pArguments, ///< Array of pointers to arguments to add.
|
| 296 |
+
_In_ UINT32 argCount ///< Number of arguments to add.
|
| 297 |
+
) = 0;
|
| 298 |
+
|
| 299 |
+
/// \brief Add additional UTF-8 encoded arguments to this list of compiler
|
| 300 |
+
/// arguments.
|
| 301 |
+
virtual HRESULT STDMETHODCALLTYPE AddArgumentsUTF8(
|
| 302 |
+
_In_opt_count_(argCount)LPCSTR *pArguments, ///< Array of pointers to UTF-8 arguments to add.
|
| 303 |
+
_In_ UINT32 argCount ///< Number of arguments to add.
|
| 304 |
+
) = 0;
|
| 305 |
+
|
| 306 |
+
/// \brief Add additional defines to this list of compiler arguments.
|
| 307 |
+
virtual HRESULT STDMETHODCALLTYPE AddDefines(
|
| 308 |
+
_In_count_(defineCount) const DxcDefine *pDefines, ///< Array of defines.
|
| 309 |
+
_In_ UINT32 defineCount ///< Number of defines.
|
| 310 |
+
) = 0;
|
| 311 |
+
};
|
| 312 |
+
|
| 313 |
+
//////////////////////////
|
| 314 |
+
// Legacy Interfaces
|
| 315 |
+
/////////////////////////
|
| 316 |
+
|
| 317 |
+
CROSS_PLATFORM_UUIDOF(IDxcLibrary, "e5204dc7-d18c-4c3c-bdfb-851673980fe7")
|
| 318 |
+
/// \deprecated IDxcUtils replaces IDxcLibrary; please use IDxcUtils insted.
|
| 319 |
+
struct IDxcLibrary : public IUnknown {
|
| 320 |
+
/// \deprecated
|
| 321 |
+
virtual HRESULT STDMETHODCALLTYPE SetMalloc(_In_opt_ IMalloc *pMalloc) = 0;
|
| 322 |
+
|
| 323 |
+
/// \deprecated
|
| 324 |
+
virtual HRESULT STDMETHODCALLTYPE CreateBlobFromBlob(
|
| 325 |
+
_In_ IDxcBlob *pBlob, UINT32 offset, UINT32 length, _COM_Outptr_ IDxcBlob **ppResult) = 0;
|
| 326 |
+
|
| 327 |
+
/// \deprecated
|
| 328 |
+
virtual HRESULT STDMETHODCALLTYPE CreateBlobFromFile(
|
| 329 |
+
_In_z_ LPCWSTR pFileName, _In_opt_ UINT32* codePage,
|
| 330 |
+
_COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) = 0;
|
| 331 |
+
|
| 332 |
+
/// \deprecated
|
| 333 |
+
virtual HRESULT STDMETHODCALLTYPE CreateBlobWithEncodingFromPinned(
|
| 334 |
+
_In_bytecount_(size) LPCVOID pText, UINT32 size, UINT32 codePage,
|
| 335 |
+
_COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) = 0;
|
| 336 |
+
|
| 337 |
+
/// \deprecated
|
| 338 |
+
virtual HRESULT STDMETHODCALLTYPE CreateBlobWithEncodingOnHeapCopy(
|
| 339 |
+
_In_bytecount_(size) LPCVOID pText, UINT32 size, UINT32 codePage,
|
| 340 |
+
_COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) = 0;
|
| 341 |
+
|
| 342 |
+
/// \deprecated
|
| 343 |
+
virtual HRESULT STDMETHODCALLTYPE CreateBlobWithEncodingOnMalloc(
|
| 344 |
+
_In_bytecount_(size) LPCVOID pText, IMalloc *pIMalloc, UINT32 size, UINT32 codePage,
|
| 345 |
+
_COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) = 0;
|
| 346 |
+
|
| 347 |
+
/// \deprecated
|
| 348 |
+
virtual HRESULT STDMETHODCALLTYPE CreateIncludeHandler(
|
| 349 |
+
_COM_Outptr_ IDxcIncludeHandler **ppResult) = 0;
|
| 350 |
+
|
| 351 |
+
/// \deprecated
|
| 352 |
+
virtual HRESULT STDMETHODCALLTYPE CreateStreamFromBlobReadOnly(
|
| 353 |
+
_In_ IDxcBlob *pBlob, _COM_Outptr_ IStream **ppStream) = 0;
|
| 354 |
+
|
| 355 |
+
/// \deprecated
|
| 356 |
+
virtual HRESULT STDMETHODCALLTYPE GetBlobAsUtf8(
|
| 357 |
+
_In_ IDxcBlob *pBlob, _COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) = 0;
|
| 358 |
+
|
| 359 |
+
// Renamed from GetBlobAsUtf16 to GetBlobAsWide
|
| 360 |
+
/// \deprecated
|
| 361 |
+
virtual HRESULT STDMETHODCALLTYPE GetBlobAsWide(
|
| 362 |
+
_In_ IDxcBlob *pBlob, _COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) = 0;
|
| 363 |
+
|
| 364 |
+
#ifdef _WIN32
|
| 365 |
+
// Alias to GetBlobAsWide on Win32
|
| 366 |
+
/// \deprecated
|
| 367 |
+
inline HRESULT GetBlobAsUtf16(
|
| 368 |
+
_In_ IDxcBlob *pBlob, _COM_Outptr_ IDxcBlobEncoding **pBlobEncoding) {
|
| 369 |
+
return this->GetBlobAsWide(pBlob, pBlobEncoding);
|
| 370 |
+
}
|
| 371 |
+
#endif
|
| 372 |
+
};
|
| 373 |
+
|
| 374 |
+
CROSS_PLATFORM_UUIDOF(IDxcOperationResult, "CEDB484A-D4E9-445A-B991-CA21CA157DC2")
|
| 375 |
+
/// \brief The results of a DXC operation.
|
| 376 |
+
///
|
| 377 |
+
/// Note: IDxcResult replaces IDxcOperationResult and should be used wherever
|
| 378 |
+
/// possible.
|
| 379 |
+
struct IDxcOperationResult : public IUnknown {
|
| 380 |
+
/// \brief Retrieve the overall status of the operation.
|
| 381 |
+
virtual HRESULT STDMETHODCALLTYPE GetStatus(_Out_ HRESULT *pStatus) = 0;
|
| 382 |
+
|
| 383 |
+
/// \brief Retrieve the primary output of the operation.
|
| 384 |
+
///
|
| 385 |
+
/// This corresponds to:
|
| 386 |
+
/// * DXC_OUT_OBJECT - Compile() with shader or library target
|
| 387 |
+
/// * DXC_OUT_DISASSEMBLY - Disassemble()
|
| 388 |
+
/// * DXC_OUT_HLSL - Compile() with -P
|
| 389 |
+
/// * DXC_OUT_ROOT_SIGNATURE - Compile() with rootsig_* target
|
| 390 |
+
virtual HRESULT STDMETHODCALLTYPE GetResult(_COM_Outptr_result_maybenull_ IDxcBlob **ppResult) = 0;
|
| 391 |
+
|
| 392 |
+
/// \brief Retrieves the error buffer from the operation, if there is one.
|
| 393 |
+
///
|
| 394 |
+
// This corresponds to calling IDxcResult::GetOutput() with DXC_OUT_ERRORS.
|
| 395 |
+
virtual HRESULT STDMETHODCALLTYPE GetErrorBuffer(_COM_Outptr_result_maybenull_ IDxcBlobEncoding **ppErrors) = 0;
|
| 396 |
+
};
|
| 397 |
+
|
| 398 |
+
CROSS_PLATFORM_UUIDOF(IDxcCompiler, "8c210bf3-011f-4422-8d70-6f9acb8db617")
|
| 399 |
+
/// \deprecated Please use IDxcCompiler3 instead.
|
| 400 |
+
struct IDxcCompiler : public IUnknown {
|
| 401 |
+
/// \brief Compile a single entry point to the target shader model.
|
| 402 |
+
///
|
| 403 |
+
/// \deprecated Please use IDxcCompiler3::Compile() instead.
|
| 404 |
+
virtual HRESULT STDMETHODCALLTYPE Compile(
|
| 405 |
+
_In_ IDxcBlob *pSource, // Source text to compile.
|
| 406 |
+
_In_opt_z_ LPCWSTR pSourceName, // Optional file name for pSource. Used in errors and include handlers.
|
| 407 |
+
_In_opt_z_ LPCWSTR pEntryPoint, // Entry point name.
|
| 408 |
+
_In_z_ LPCWSTR pTargetProfile, // Shader profile to compile.
|
| 409 |
+
_In_opt_count_(argCount) LPCWSTR *pArguments, // Array of pointers to arguments.
|
| 410 |
+
_In_ UINT32 argCount, // Number of arguments.
|
| 411 |
+
_In_count_(defineCount)
|
| 412 |
+
const DxcDefine *pDefines, // Array of defines.
|
| 413 |
+
_In_ UINT32 defineCount, // Number of defines.
|
| 414 |
+
_In_opt_ IDxcIncludeHandler *pIncludeHandler, // User-provided interface to handle #include directives (optional).
|
| 415 |
+
_COM_Outptr_ IDxcOperationResult **ppResult // Compiler output status, buffer, and errors.
|
| 416 |
+
) = 0;
|
| 417 |
+
|
| 418 |
+
/// \brief Preprocess source text.
|
| 419 |
+
///
|
| 420 |
+
/// \deprecated Please use IDxcCompiler3::Compile() with the "-P" argument instead.
|
| 421 |
+
virtual HRESULT STDMETHODCALLTYPE Preprocess(
|
| 422 |
+
_In_ IDxcBlob *pSource, // Source text to preprocess.
|
| 423 |
+
_In_opt_z_ LPCWSTR pSourceName, // Optional file name for pSource. Used in errors and include handlers.
|
| 424 |
+
_In_opt_count_(argCount) LPCWSTR *pArguments, // Array of pointers to arguments.
|
| 425 |
+
_In_ UINT32 argCount, // Number of arguments.
|
| 426 |
+
_In_count_(defineCount)
|
| 427 |
+
const DxcDefine *pDefines, // Array of defines.
|
| 428 |
+
_In_ UINT32 defineCount, // Number of defines.
|
| 429 |
+
_In_opt_ IDxcIncludeHandler *pIncludeHandler, // user-provided interface to handle #include directives (optional).
|
| 430 |
+
_COM_Outptr_ IDxcOperationResult **ppResult // Preprocessor output status, buffer, and errors.
|
| 431 |
+
) = 0;
|
| 432 |
+
|
| 433 |
+
/// \brief Disassemble a program.
|
| 434 |
+
///
|
| 435 |
+
/// \deprecated Please use IDxcCompiler3::Disassemble() instead.
|
| 436 |
+
virtual HRESULT STDMETHODCALLTYPE Disassemble(
|
| 437 |
+
_In_ IDxcBlob *pSource, // Program to disassemble.
|
| 438 |
+
_COM_Outptr_ IDxcBlobEncoding **ppDisassembly // Disassembly text.
|
| 439 |
+
) = 0;
|
| 440 |
+
};
|
| 441 |
+
|
| 442 |
+
CROSS_PLATFORM_UUIDOF(IDxcCompiler2, "A005A9D9-B8BB-4594-B5C9-0E633BEC4D37")
|
| 443 |
+
/// \deprecated Please use IDxcCompiler3 instead.
|
| 444 |
+
struct IDxcCompiler2 : public IDxcCompiler {
|
| 445 |
+
/// \brief Compile a single entry point to the target shader model with debug information.
|
| 446 |
+
///
|
| 447 |
+
/// \deprecated Please use IDxcCompiler3::Compile() instead.
|
| 448 |
+
virtual HRESULT STDMETHODCALLTYPE CompileWithDebug(
|
| 449 |
+
_In_ IDxcBlob *pSource, // Source text to compile.
|
| 450 |
+
_In_opt_z_ LPCWSTR pSourceName, // Optional file name for pSource. Used in errors and include handlers.
|
| 451 |
+
_In_opt_z_ LPCWSTR pEntryPoint, // Entry point name.
|
| 452 |
+
_In_z_ LPCWSTR pTargetProfile, // Shader profile to compile.
|
| 453 |
+
_In_opt_count_(argCount) LPCWSTR *pArguments, // Array of pointers to arguments.
|
| 454 |
+
_In_ UINT32 argCount, // Number of arguments.
|
| 455 |
+
_In_count_(defineCount)
|
| 456 |
+
const DxcDefine *pDefines, // Array of defines.
|
| 457 |
+
_In_ UINT32 defineCount, // Number of defines.
|
| 458 |
+
_In_opt_ IDxcIncludeHandler *pIncludeHandler, // user-provided interface to handle #include directives (optional).
|
| 459 |
+
_COM_Outptr_ IDxcOperationResult **ppResult, // Compiler output status, buffer, and errors.
|
| 460 |
+
_Outptr_opt_result_z_ LPWSTR *ppDebugBlobName,// Suggested file name for debug blob. Must be CoTaskMemFree()'d.
|
| 461 |
+
_COM_Outptr_opt_ IDxcBlob **ppDebugBlob // Debug blob.
|
| 462 |
+
) = 0;
|
| 463 |
+
};
|
| 464 |
+
|
| 465 |
+
CROSS_PLATFORM_UUIDOF(IDxcLinker, "F1B5BE2A-62DD-4327-A1C2-42AC1E1E78E6")
|
| 466 |
+
/// \brief DXC linker interface.
|
| 467 |
+
///
|
| 468 |
+
/// Use DxcCreateInstance with CLSID_DxcLinker to obtain an instance of this
|
| 469 |
+
/// interface.
|
| 470 |
+
struct IDxcLinker : public IUnknown {
|
| 471 |
+
public:
|
| 472 |
+
/// \brief Register a library with name to reference it later.
|
| 473 |
+
virtual HRESULT RegisterLibrary(
|
| 474 |
+
_In_opt_ LPCWSTR pLibName, ///< Name of the library.
|
| 475 |
+
_In_ IDxcBlob *pLib ///< Library blob.
|
| 476 |
+
) = 0;
|
| 477 |
+
|
| 478 |
+
/// \brief Links the shader and produces a shader blob that the Direct3D
|
| 479 |
+
/// runtime can use.
|
| 480 |
+
virtual HRESULT STDMETHODCALLTYPE Link(
|
| 481 |
+
_In_opt_ LPCWSTR pEntryName, ///< Entry point name.
|
| 482 |
+
_In_ LPCWSTR pTargetProfile, ///< shader profile to link.
|
| 483 |
+
_In_count_(libCount)
|
| 484 |
+
const LPCWSTR *pLibNames, ///< Array of library names to link.
|
| 485 |
+
_In_ UINT32 libCount, ///< Number of libraries to link.
|
| 486 |
+
_In_opt_count_(argCount) const LPCWSTR *pArguments, ///< Array of pointers to arguments.
|
| 487 |
+
_In_ UINT32 argCount, ///< Number of arguments.
|
| 488 |
+
_COM_Outptr_
|
| 489 |
+
IDxcOperationResult **ppResult ///< Linker output status, buffer, and errors.
|
| 490 |
+
) = 0;
|
| 491 |
+
};
|
| 492 |
+
|
| 493 |
+
/////////////////////////
|
| 494 |
+
// Latest interfaces. Please use these.
|
| 495 |
+
////////////////////////
|
| 496 |
+
|
| 497 |
+
CROSS_PLATFORM_UUIDOF(IDxcUtils, "4605C4CB-2019-492A-ADA4-65F20BB7D67F")
|
| 498 |
+
/// \brief Various utility functions for DXC.
|
| 499 |
+
///
|
| 500 |
+
/// Use DxcCreateInstance with CLSID_DxcUtils to obtain an instance of this
|
| 501 |
+
/// interface.
|
| 502 |
+
///
|
| 503 |
+
/// IDxcUtils replaces IDxcLibrary.
|
| 504 |
+
struct IDxcUtils : public IUnknown {
|
| 505 |
+
/// \brief Create a sub-blob that holds a reference to the outer blob and
|
| 506 |
+
/// points to its memory.
|
| 507 |
+
///
|
| 508 |
+
/// \param pBlob The outer blob.
|
| 509 |
+
///
|
| 510 |
+
/// \param offset The offset inside the outer blob.
|
| 511 |
+
///
|
| 512 |
+
/// \param length The size, in bytes, of the buffer to reference from the
|
| 513 |
+
/// output blob.
|
| 514 |
+
///
|
| 515 |
+
/// \param ppResult Address of the pointer that receives a pointer to the
|
| 516 |
+
/// newly created blob.
|
| 517 |
+
virtual HRESULT STDMETHODCALLTYPE CreateBlobFromBlob(
|
| 518 |
+
_In_ IDxcBlob *pBlob, UINT32 offset, UINT32 length, _COM_Outptr_ IDxcBlob **ppResult) = 0;
|
| 519 |
+
|
| 520 |
+
// For codePage, use 0 (or DXC_CP_ACP) for raw binary or ANSI code page.
|
| 521 |
+
|
| 522 |
+
/// \brief Create a blob referencing existing memory, with no copy.
|
| 523 |
+
///
|
| 524 |
+
/// \param pData Pointer to buffer containing the contents of the new blob.
|
| 525 |
+
///
|
| 526 |
+
/// \param size The size of the pData buffer, in bytes.
|
| 527 |
+
///
|
| 528 |
+
/// \param codePage The code page to use if the blob contains text. Use
|
| 529 |
+
/// DXC_CP_ACP for binary or ANSI code page.
|
| 530 |
+
///
|
| 531 |
+
/// \param ppBlobEncoding Address of the pointer that receives a pointer to
|
| 532 |
+
/// the newly created blob.
|
| 533 |
+
///
|
| 534 |
+
/// The user must manage the memory lifetime separately.
|
| 535 |
+
///
|
| 536 |
+
/// This replaces IDxcLibrary::CreateBlobWithEncodingFromPinned.
|
| 537 |
+
virtual HRESULT STDMETHODCALLTYPE CreateBlobFromPinned(
|
| 538 |
+
_In_bytecount_(size) LPCVOID pData, UINT32 size, UINT32 codePage,
|
| 539 |
+
_COM_Outptr_ IDxcBlobEncoding **ppBlobEncoding) = 0;
|
| 540 |
+
|
| 541 |
+
/// \brief Create a blob, taking ownership of memory allocated with the
|
| 542 |
+
/// supplied allocator.
|
| 543 |
+
///
|
| 544 |
+
/// \param pData Pointer to buffer containing the contents of the new blob.
|
| 545 |
+
///
|
| 546 |
+
/// \param pIMalloc The memory allocator to use.
|
| 547 |
+
///
|
| 548 |
+
/// \param size The size of thee pData buffer, in bytes.
|
| 549 |
+
///
|
| 550 |
+
/// \param codePage The code page to use if the blob contains text. Use
|
| 551 |
+
/// DXC_CP_ACP for binary or ANSI code page.
|
| 552 |
+
///
|
| 553 |
+
/// \param ppBlobEncoding Address of the pointer that receives a pointer to
|
| 554 |
+
/// the newly created blob.
|
| 555 |
+
///
|
| 556 |
+
/// This replaces IDxcLibrary::CreateBlobWithEncodingOnMalloc.
|
| 557 |
+
virtual HRESULT STDMETHODCALLTYPE MoveToBlob(
|
| 558 |
+
_In_bytecount_(size) LPCVOID pData, IMalloc *pIMalloc, UINT32 size, UINT32 codePage,
|
| 559 |
+
_COM_Outptr_ IDxcBlobEncoding **ppBlobEncoding) = 0;
|
| 560 |
+
|
| 561 |
+
/// \brief Create a blob containing a copy of the existing data.
|
| 562 |
+
///
|
| 563 |
+
/// \param pData Pointer to buffer containing the contents of the new blob.
|
| 564 |
+
///
|
| 565 |
+
/// \param size The size of thee pData buffer, in bytes.
|
| 566 |
+
///
|
| 567 |
+
/// \param codePage The code page to use if the blob contains text. Use
|
| 568 |
+
/// DXC_CP_ACP for binary or ANSI code page.
|
| 569 |
+
///
|
| 570 |
+
/// \param ppBlobEncoding Address of the pointer that receives a pointer to
|
| 571 |
+
/// the newly created blob.
|
| 572 |
+
///
|
| 573 |
+
/// The new blob and its contents are allocated with the current allocator.
|
| 574 |
+
/// This replaces IDxcLibrary::CreateBlobWithEncodingOnHeapCopy.
|
| 575 |
+
virtual HRESULT STDMETHODCALLTYPE CreateBlob(
|
| 576 |
+
_In_bytecount_(size) LPCVOID pData, UINT32 size, UINT32 codePage,
|
| 577 |
+
_COM_Outptr_ IDxcBlobEncoding **ppBlobEncoding) = 0;
|
| 578 |
+
|
| 579 |
+
/// \brief Create a blob with data loaded from a file.
|
| 580 |
+
///
|
| 581 |
+
/// \param pFileName The name of the file to load from.
|
| 582 |
+
///
|
| 583 |
+
/// \param pCodePage Optional code page to use if the blob contains text. Pass
|
| 584 |
+
/// NULL for binary data.
|
| 585 |
+
///
|
| 586 |
+
/// \param ppBlobEncoding Address of the pointer that receives a pointer to
|
| 587 |
+
/// the newly created blob.
|
| 588 |
+
///
|
| 589 |
+
/// The new blob and its contents are allocated with the current allocator.
|
| 590 |
+
/// This replaces IDxcLibrary::CreateBlobFromFile.
|
| 591 |
+
virtual HRESULT STDMETHODCALLTYPE LoadFile(
|
| 592 |
+
_In_z_ LPCWSTR pFileName, _In_opt_ UINT32* pCodePage,
|
| 593 |
+
_COM_Outptr_ IDxcBlobEncoding **ppBlobEncoding) = 0;
|
| 594 |
+
|
| 595 |
+
/// \brief Create a stream that reads data from a blob.
|
| 596 |
+
///
|
| 597 |
+
/// \param pBlob The blob to read from.
|
| 598 |
+
///
|
| 599 |
+
/// \param ppStream Address of the pointer that receives a pointer to the
|
| 600 |
+
/// newly created stream.
|
| 601 |
+
virtual HRESULT STDMETHODCALLTYPE CreateReadOnlyStreamFromBlob(
|
| 602 |
+
_In_ IDxcBlob *pBlob, _COM_Outptr_ IStream **ppStream) = 0;
|
| 603 |
+
|
| 604 |
+
/// \brief Create default file-based include handler.
|
| 605 |
+
///
|
| 606 |
+
/// \param ppResult Address of the pointer that receives a pointer to the
|
| 607 |
+
/// newly created include handler.
|
| 608 |
+
virtual HRESULT STDMETHODCALLTYPE CreateDefaultIncludeHandler(
|
| 609 |
+
_COM_Outptr_ IDxcIncludeHandler **ppResult) = 0;
|
| 610 |
+
|
| 611 |
+
/// \brief Convert or return matching encoded text blob as UTF-8.
|
| 612 |
+
///
|
| 613 |
+
/// \param pBlob The blob to convert.
|
| 614 |
+
///
|
| 615 |
+
/// \param ppBlobEncoding Address of the pointer that receives a pointer to
|
| 616 |
+
/// the newly created blob.
|
| 617 |
+
virtual HRESULT STDMETHODCALLTYPE GetBlobAsUtf8(
|
| 618 |
+
_In_ IDxcBlob *pBlob, _COM_Outptr_ IDxcBlobUtf8 **ppBlobEncoding) = 0;
|
| 619 |
+
|
| 620 |
+
/// \brief Convert or return matching encoded text blob as UTF-16.
|
| 621 |
+
///
|
| 622 |
+
/// \param pBlob The blob to convert.
|
| 623 |
+
///
|
| 624 |
+
/// \param ppBlobEncoding Address of the pointer that receives a pointer to
|
| 625 |
+
/// the newly created blob.
|
| 626 |
+
virtual HRESULT STDMETHODCALLTYPE GetBlobAsWide(
|
| 627 |
+
_In_ IDxcBlob *pBlob, _COM_Outptr_ IDxcBlobWide **ppBlobEncoding) = 0;
|
| 628 |
+
|
| 629 |
+
#ifdef _WIN32
|
| 630 |
+
/// \brief Convert or return matching encoded text blob as UTF-16.
|
| 631 |
+
///
|
| 632 |
+
/// \param pBlob The blob to convert.
|
| 633 |
+
///
|
| 634 |
+
/// \param ppBlobEncoding Address of the pointer that receives a pointer to
|
| 635 |
+
/// the newly created blob.
|
| 636 |
+
///
|
| 637 |
+
/// Alias to GetBlobAsWide on Win32.
|
| 638 |
+
inline HRESULT GetBlobAsUtf16(
|
| 639 |
+
_In_ IDxcBlob *pBlob, _COM_Outptr_ IDxcBlobWide **ppBlobEncoding) {
|
| 640 |
+
return this->GetBlobAsWide(pBlob, ppBlobEncoding);
|
| 641 |
+
}
|
| 642 |
+
#endif
|
| 643 |
+
|
| 644 |
+
/// \brief Retrieve a single part from a DXIL container.
|
| 645 |
+
///
|
| 646 |
+
/// \param pShader The shader to retrieve the part from.
|
| 647 |
+
///
|
| 648 |
+
/// \param DxcPart The part to retrieve (eg DXC_PART_ROOT_SIGNATURE).
|
| 649 |
+
///
|
| 650 |
+
/// \param ppPartData Address of the pointer that receives a pointer to the
|
| 651 |
+
/// part.
|
| 652 |
+
///
|
| 653 |
+
/// \param pPartSizeInBytes Address of the pointer that receives the size of
|
| 654 |
+
/// the part.
|
| 655 |
+
///
|
| 656 |
+
/// The returned pointer points inside the buffer passed in pShader.
|
| 657 |
+
virtual HRESULT STDMETHODCALLTYPE GetDxilContainerPart(
|
| 658 |
+
_In_ const DxcBuffer *pShader,
|
| 659 |
+
_In_ UINT32 DxcPart,
|
| 660 |
+
_Outptr_result_nullonfailure_ void **ppPartData,
|
| 661 |
+
_Out_ UINT32 *pPartSizeInBytes) = 0;
|
| 662 |
+
|
| 663 |
+
/// \brief Create reflection interface from serialized DXIL container or the
|
| 664 |
+
/// DXC_OUT_REFLECTION blob contents.
|
| 665 |
+
///
|
| 666 |
+
/// \param pData The source data.
|
| 667 |
+
///
|
| 668 |
+
/// \param iid The interface ID of the reflection interface to create.
|
| 669 |
+
///
|
| 670 |
+
/// \param ppvReflection Address of the pointer that receives a pointer to the
|
| 671 |
+
/// newly created reflection interface.
|
| 672 |
+
///
|
| 673 |
+
/// Use this with interfaces such as ID3D12ShaderReflection.
|
| 674 |
+
virtual HRESULT STDMETHODCALLTYPE CreateReflection(
|
| 675 |
+
_In_ const DxcBuffer *pData, REFIID iid, void **ppvReflection) = 0;
|
| 676 |
+
|
| 677 |
+
/// \brief Build arguments that can be passed to the Compile method.
|
| 678 |
+
virtual HRESULT STDMETHODCALLTYPE BuildArguments(
|
| 679 |
+
_In_opt_z_ LPCWSTR pSourceName, ///< Optional file name for pSource. Used in errors and include handlers.
|
| 680 |
+
_In_opt_z_ LPCWSTR pEntryPoint, ///< Entry point name (-E).
|
| 681 |
+
_In_z_ LPCWSTR pTargetProfile, ///< Shader profile to compile (-T).
|
| 682 |
+
_In_opt_count_(argCount) LPCWSTR *pArguments, ///< Array of pointers to arguments.
|
| 683 |
+
_In_ UINT32 argCount, ///< Number of arguments.
|
| 684 |
+
_In_count_(defineCount)
|
| 685 |
+
const DxcDefine *pDefines, ///< Array of defines.
|
| 686 |
+
_In_ UINT32 defineCount, ///< Number of defines.
|
| 687 |
+
_COM_Outptr_ IDxcCompilerArgs **ppArgs ///< Arguments you can use with Compile() method.
|
| 688 |
+
) = 0;
|
| 689 |
+
|
| 690 |
+
/// \brief Retrieve the hash and contents of a shader PDB.
|
| 691 |
+
///
|
| 692 |
+
/// \param pPDBBlob The blob containing the PDB.
|
| 693 |
+
///
|
| 694 |
+
/// \param ppHash Address of the pointer that receives a pointer to the hash
|
| 695 |
+
/// blob.
|
| 696 |
+
///
|
| 697 |
+
/// \param ppContainer Address of the pointer that receives a pointer to the
|
| 698 |
+
/// bloc containing the contents of the PDB.
|
| 699 |
+
///
|
| 700 |
+
virtual HRESULT STDMETHODCALLTYPE GetPDBContents(
|
| 701 |
+
_In_ IDxcBlob *pPDBBlob, _COM_Outptr_ IDxcBlob **ppHash, _COM_Outptr_ IDxcBlob **ppContainer) = 0;
|
| 702 |
+
};
|
| 703 |
+
|
| 704 |
+
/// \brief Specifies the kind of output to retrieve from a IDxcResult.
|
| 705 |
+
///
|
| 706 |
+
/// Note: text outputs returned from version 2 APIs are UTF-8 or UTF-16 based on
|
| 707 |
+
/// the -encoding option passed to the compiler.
|
| 708 |
+
typedef enum DXC_OUT_KIND {
|
| 709 |
+
DXC_OUT_NONE = 0, ///< No output.
|
| 710 |
+
DXC_OUT_OBJECT = 1, ///< IDxcBlob - Shader or library object.
|
| 711 |
+
DXC_OUT_ERRORS = 2, ///< IDxcBlobUtf8 or IDxcBlobWide.
|
| 712 |
+
DXC_OUT_PDB = 3, ///< IDxcBlob.
|
| 713 |
+
DXC_OUT_SHADER_HASH = 4, ///< IDxcBlob - DxcShaderHash of shader or shader with source info (-Zsb/-Zss).
|
| 714 |
+
DXC_OUT_DISASSEMBLY = 5, ///< IDxcBlobUtf8 or IDxcBlobWide - from Disassemble.
|
| 715 |
+
DXC_OUT_HLSL = 6, ///< IDxcBlobUtf8 or IDxcBlobWide - from Preprocessor or Rewriter.
|
| 716 |
+
DXC_OUT_TEXT = 7, ///< IDxcBlobUtf8 or IDxcBlobWide - other text, such as -ast-dump or -Odump.
|
| 717 |
+
DXC_OUT_REFLECTION = 8, ///< IDxcBlob - RDAT part with reflection data.
|
| 718 |
+
DXC_OUT_ROOT_SIGNATURE = 9, ///< IDxcBlob - Serialized root signature output.
|
| 719 |
+
DXC_OUT_EXTRA_OUTPUTS = 10,///< IDxcExtraOutputs - Extra outputs.
|
| 720 |
+
DXC_OUT_REMARKS = 11, ///< IDxcBlobUtf8 or IDxcBlobWide - text directed at stdout.
|
| 721 |
+
DXC_OUT_TIME_REPORT = 12, ///< IDxcBlobUtf8 or IDxcBlobWide - text directed at stdout.
|
| 722 |
+
DXC_OUT_TIME_TRACE = 13, ///< IDxcBlobUtf8 or IDxcBlobWide - text directed at stdout.
|
| 723 |
+
|
| 724 |
+
DXC_OUT_LAST = DXC_OUT_TIME_TRACE, ///< Last value for a counter.
|
| 725 |
+
|
| 726 |
+
DXC_OUT_NUM_ENUMS,
|
| 727 |
+
DXC_OUT_FORCE_DWORD = 0xFFFFFFFF
|
| 728 |
+
} DXC_OUT_KIND;
|
| 729 |
+
|
| 730 |
+
static_assert(DXC_OUT_NUM_ENUMS == DXC_OUT_LAST + 1,
|
| 731 |
+
"DXC_OUT_* Enum added and last value not updated.");
|
| 732 |
+
|
| 733 |
+
CROSS_PLATFORM_UUIDOF(IDxcResult, "58346CDA-DDE7-4497-9461-6F87AF5E0659")
|
| 734 |
+
/// \brief Result of a DXC operation.
|
| 735 |
+
///
|
| 736 |
+
/// DXC operations may have multiple outputs, such as a shader object and
|
| 737 |
+
/// errors. This interface provides access to the outputs.
|
| 738 |
+
struct IDxcResult : public IDxcOperationResult {
|
| 739 |
+
/// \brief Determines whether or not this result has the specified output.
|
| 740 |
+
///
|
| 741 |
+
/// \param dxcOutKind The kind of output to check for.
|
| 742 |
+
virtual BOOL STDMETHODCALLTYPE HasOutput(_In_ DXC_OUT_KIND dxcOutKind) = 0;
|
| 743 |
+
|
| 744 |
+
/// \brief Retrieves the specified output.
|
| 745 |
+
///
|
| 746 |
+
/// \param dxcOutKind The kind of output to retrieve.
|
| 747 |
+
///
|
| 748 |
+
/// \param iid The interface ID of the output interface.
|
| 749 |
+
///
|
| 750 |
+
/// \param ppvObject Address of the pointer that receives a pointer to the
|
| 751 |
+
/// output.
|
| 752 |
+
///
|
| 753 |
+
/// \param ppOutputName Optional address of a pointer to receive the name
|
| 754 |
+
/// blob, if there is one.
|
| 755 |
+
virtual HRESULT STDMETHODCALLTYPE GetOutput(_In_ DXC_OUT_KIND dxcOutKind,
|
| 756 |
+
_In_ REFIID iid, _COM_Outptr_opt_result_maybenull_ void **ppvObject,
|
| 757 |
+
_COM_Outptr_ IDxcBlobWide **ppOutputName) = 0;
|
| 758 |
+
|
| 759 |
+
/// \brief Retrieves the number of outputs available in this result.
|
| 760 |
+
virtual UINT32 GetNumOutputs() = 0;
|
| 761 |
+
|
| 762 |
+
/// \brief Retrieves the output kind at the specified index.
|
| 763 |
+
virtual DXC_OUT_KIND GetOutputByIndex(UINT32 Index) = 0;
|
| 764 |
+
|
| 765 |
+
/// \brief Retrieves the primary output kind for this result.
|
| 766 |
+
///
|
| 767 |
+
/// See IDxcOperationResult::GetResult() for more information on the primary
|
| 768 |
+
/// output kinds.
|
| 769 |
+
virtual DXC_OUT_KIND PrimaryOutput() = 0;
|
| 770 |
+
};
|
| 771 |
+
|
| 772 |
+
// Special names for extra output that should get written to specific streams.
|
| 773 |
+
#define DXC_EXTRA_OUTPUT_NAME_STDOUT L"*stdout*"
|
| 774 |
+
#define DXC_EXTRA_OUTPUT_NAME_STDERR L"*stderr*"
|
| 775 |
+
|
| 776 |
+
CROSS_PLATFORM_UUIDOF(IDxcExtraOutputs, "319b37a2-a5c2-494a-a5de-4801b2faf989")
|
| 777 |
+
/// \brief Additional outputs from a DXC operation.
|
| 778 |
+
///
|
| 779 |
+
/// This can be used to obtain outputs that don't have an explicit DXC_OUT_KIND.
|
| 780 |
+
/// Use DXC_OUT_EXTRA_OUTPUTS to obtain instances of this.
|
| 781 |
+
struct IDxcExtraOutputs : public IUnknown {
|
| 782 |
+
/// \brief Retrieves the number of outputs available
|
| 783 |
+
virtual UINT32 STDMETHODCALLTYPE GetOutputCount() = 0;
|
| 784 |
+
|
| 785 |
+
/// \brief Retrieves the specified output.
|
| 786 |
+
///
|
| 787 |
+
/// \param uIndex The index of the output to retrieve.
|
| 788 |
+
///
|
| 789 |
+
/// \param iid The interface ID of the output interface.
|
| 790 |
+
///
|
| 791 |
+
/// \param ppvObject Optional address of the pointer that receives a pointer
|
| 792 |
+
/// to the output if there is one.
|
| 793 |
+
///
|
| 794 |
+
/// \param ppOutputType Optional address of the pointer that receives the
|
| 795 |
+
/// output type name blob if there is one.
|
| 796 |
+
///
|
| 797 |
+
/// \param ppOutputName Optional address of the pointer that receives the
|
| 798 |
+
/// output name blob if there is one.
|
| 799 |
+
virtual HRESULT STDMETHODCALLTYPE GetOutput(_In_ UINT32 uIndex,
|
| 800 |
+
_In_ REFIID iid, _COM_Outptr_opt_result_maybenull_ void **ppvObject,
|
| 801 |
+
_COM_Outptr_opt_result_maybenull_ IDxcBlobWide **ppOutputType,
|
| 802 |
+
_COM_Outptr_opt_result_maybenull_ IDxcBlobWide **ppOutputName) = 0;
|
| 803 |
+
};
|
| 804 |
+
|
| 805 |
+
CROSS_PLATFORM_UUIDOF(IDxcCompiler3, "228B4687-5A6A-4730-900C-9702B2203F54")
|
| 806 |
+
/// \brief Interface to the DirectX Shader Compiler.
|
| 807 |
+
///
|
| 808 |
+
/// Use DxcCreateInstance with CLSID_DxcCompiler to obtain an instance of this
|
| 809 |
+
/// interface.
|
| 810 |
+
struct IDxcCompiler3 : public IUnknown {
|
| 811 |
+
/// \brief Compile a shader.
|
| 812 |
+
///
|
| 813 |
+
/// IDxcUtils::BuildArguments can be used to assist building the pArguments
|
| 814 |
+
/// and argCount parameters.
|
| 815 |
+
///
|
| 816 |
+
/// Depending on the arguments, this method can be used to:
|
| 817 |
+
///
|
| 818 |
+
/// * Compile a single entry point to the target shader model,
|
| 819 |
+
/// * Compile a library to a library target (-T lib_*)
|
| 820 |
+
/// * Compile a root signature (-T rootsig_*),
|
| 821 |
+
/// * Preprocess HLSL source (-P).
|
| 822 |
+
virtual HRESULT STDMETHODCALLTYPE Compile(
|
| 823 |
+
_In_ const DxcBuffer *pSource, ///< Source text to compile.
|
| 824 |
+
_In_opt_count_(argCount) LPCWSTR *pArguments, ///< Array of pointers to arguments.
|
| 825 |
+
_In_ UINT32 argCount, ///< Number of arguments.
|
| 826 |
+
_In_opt_ IDxcIncludeHandler *pIncludeHandler, ///< user-provided interface to handle include directives (optional).
|
| 827 |
+
_In_ REFIID riid, ///< Interface ID for the result.
|
| 828 |
+
_Out_ LPVOID *ppResult ///< IDxcResult: status, buffer, and errors.
|
| 829 |
+
) = 0;
|
| 830 |
+
|
| 831 |
+
/// \brief Disassemble a program.
|
| 832 |
+
virtual HRESULT STDMETHODCALLTYPE Disassemble(
|
| 833 |
+
_In_ const DxcBuffer *pObject, ///< Program to disassemble: dxil container or bitcode.
|
| 834 |
+
_In_ REFIID riid, ///< Interface ID for the result.
|
| 835 |
+
_Out_ LPVOID *ppResult ///< IDxcResult: status, disassembly text, and errors.
|
| 836 |
+
) = 0;
|
| 837 |
+
};
|
| 838 |
+
|
| 839 |
+
static const UINT32 DxcValidatorFlags_Default = 0;
|
| 840 |
+
static const UINT32 DxcValidatorFlags_InPlaceEdit = 1; // Validator is allowed to update shader blob in-place.
|
| 841 |
+
static const UINT32 DxcValidatorFlags_RootSignatureOnly = 2;
|
| 842 |
+
static const UINT32 DxcValidatorFlags_ModuleOnly = 4;
|
| 843 |
+
static const UINT32 DxcValidatorFlags_ValidMask = 0x7;
|
| 844 |
+
|
| 845 |
+
CROSS_PLATFORM_UUIDOF(IDxcValidator, "A6E82BD2-1FD7-4826-9811-2857E797F49A")
|
| 846 |
+
/// \brief Interface to DXC shader validator.
|
| 847 |
+
///
|
| 848 |
+
/// Use DxcCreateInstance with CLSID_DxcValidator to obtain an instance of this.
|
| 849 |
+
struct IDxcValidator : public IUnknown {
|
| 850 |
+
/// \brief Validate a shader.
|
| 851 |
+
virtual HRESULT STDMETHODCALLTYPE Validate(
|
| 852 |
+
_In_ IDxcBlob *pShader, ///< Shader to validate.
|
| 853 |
+
_In_ UINT32 Flags, ///< Validation flags.
|
| 854 |
+
_COM_Outptr_ IDxcOperationResult **ppResult ///< Validation output status, buffer, and errors.
|
| 855 |
+
) = 0;
|
| 856 |
+
};
|
| 857 |
+
|
| 858 |
+
CROSS_PLATFORM_UUIDOF(IDxcValidator2, "458e1fd1-b1b2-4750-a6e1-9c10f03bed92")
|
| 859 |
+
/// \brief Interface to DXC shader validator.
|
| 860 |
+
///
|
| 861 |
+
/// Use DxcCreateInstance with CLSID_DxcValidator to obtain an instance of this.
|
| 862 |
+
struct IDxcValidator2 : public IDxcValidator {
|
| 863 |
+
/// \brief Validate a shader with optional debug bitcode.
|
| 864 |
+
virtual HRESULT STDMETHODCALLTYPE ValidateWithDebug(
|
| 865 |
+
_In_ IDxcBlob *pShader, ///< Shader to validate.
|
| 866 |
+
_In_ UINT32 Flags, ///< Validation flags.
|
| 867 |
+
_In_opt_ DxcBuffer *pOptDebugBitcode, ///< Optional debug module bitcode to provide line numbers.
|
| 868 |
+
_COM_Outptr_ IDxcOperationResult **ppResult ///< Validation output status, buffer, and errors.
|
| 869 |
+
) = 0;
|
| 870 |
+
};
|
| 871 |
+
|
| 872 |
+
CROSS_PLATFORM_UUIDOF(IDxcContainerBuilder, "334b1f50-2292-4b35-99a1-25588d8c17fe")
|
| 873 |
+
/// \brief Interface to DXC container builder.
|
| 874 |
+
///
|
| 875 |
+
/// Use DxcCreateInstance with CLSID_DxcContainerBuilder to obtain an instance of this.
|
| 876 |
+
struct IDxcContainerBuilder : public IUnknown {
|
| 877 |
+
/// \brief Load a DxilContainer to the builder.
|
| 878 |
+
virtual HRESULT STDMETHODCALLTYPE Load(_In_ IDxcBlob *pDxilContainerHeader) = 0;
|
| 879 |
+
|
| 880 |
+
/// \brief Add a part to the container.
|
| 881 |
+
///
|
| 882 |
+
/// \param fourCC The part identifier (eg DXC_PART_PDB).
|
| 883 |
+
///
|
| 884 |
+
/// \param pSource The source blob.
|
| 885 |
+
virtual HRESULT STDMETHODCALLTYPE AddPart(_In_ UINT32 fourCC, _In_ IDxcBlob *pSource) = 0;
|
| 886 |
+
|
| 887 |
+
/// \brief Remove a part from the container.
|
| 888 |
+
///
|
| 889 |
+
/// \param fourCC The part identifier (eg DXC_PART_PDB).
|
| 890 |
+
///
|
| 891 |
+
/// \return S_OK on success, DXC_E_MISSING_PART if the part was not found, or
|
| 892 |
+
/// other standard HRESULT error code.
|
| 893 |
+
virtual HRESULT STDMETHODCALLTYPE RemovePart(_In_ UINT32 fourCC) = 0;
|
| 894 |
+
|
| 895 |
+
/// \brief Build the container.
|
| 896 |
+
///
|
| 897 |
+
/// \param ppResult Pointer to variable to receive the result.
|
| 898 |
+
virtual HRESULT STDMETHODCALLTYPE SerializeContainer(_Out_ IDxcOperationResult **ppResult) = 0;
|
| 899 |
+
};
|
| 900 |
+
|
| 901 |
+
CROSS_PLATFORM_UUIDOF(IDxcAssembler, "091f7a26-1c1f-4948-904b-e6e3a8a771d5")
|
| 902 |
+
/// \brief Interface to DxcAssembler.
|
| 903 |
+
///
|
| 904 |
+
/// Use DxcCreateInstance with CLSID_DxcAssembler to obtain an instance of this.
|
| 905 |
+
struct IDxcAssembler : public IUnknown {
|
| 906 |
+
/// \brief Assemble DXIL in LL or LLVM bitcode to DXIL container.
|
| 907 |
+
virtual HRESULT STDMETHODCALLTYPE AssembleToContainer(
|
| 908 |
+
_In_ IDxcBlob *pShader, ///< Shader to assemble.
|
| 909 |
+
_COM_Outptr_ IDxcOperationResult **ppResult ///< Assembly output status, buffer, and errors.
|
| 910 |
+
) = 0;
|
| 911 |
+
};
|
| 912 |
+
|
| 913 |
+
CROSS_PLATFORM_UUIDOF(IDxcContainerReflection, "d2c21b26-8350-4bdc-976a-331ce6f4c54c")
|
| 914 |
+
/// \brief Interface to DxcContainerReflection.
|
| 915 |
+
///
|
| 916 |
+
/// Use DxcCreateInstance with CLSID_DxcContainerReflection to obtain an
|
| 917 |
+
/// instance of this.
|
| 918 |
+
struct IDxcContainerReflection : public IUnknown {
|
| 919 |
+
/// \brief Choose the container to perform reflection on
|
| 920 |
+
///
|
| 921 |
+
/// \param pContainer The container to load. If null is passed then this
|
| 922 |
+
/// instance will release any held resources.
|
| 923 |
+
virtual HRESULT STDMETHODCALLTYPE Load(_In_ IDxcBlob *pContainer) = 0;
|
| 924 |
+
|
| 925 |
+
/// \brief Retrieves the number of parts in the container.
|
| 926 |
+
///
|
| 927 |
+
/// \param pResult Pointer to variable to receive the result.
|
| 928 |
+
///
|
| 929 |
+
/// \return S_OK on success, E_NOT_VALID_STATE if a container has not been
|
| 930 |
+
/// loaded using Load(), or other standard HRESULT error codes.
|
| 931 |
+
virtual HRESULT STDMETHODCALLTYPE GetPartCount(_Out_ UINT32 *pResult) = 0;
|
| 932 |
+
|
| 933 |
+
/// \brief Retrieve the kind of a specified part.
|
| 934 |
+
///
|
| 935 |
+
/// \param idx The index of the part to retrieve the kind of.
|
| 936 |
+
///
|
| 937 |
+
/// \param pResult Pointer to variable to receive the result.
|
| 938 |
+
///
|
| 939 |
+
/// \return S_OK on success, E_NOT_VALID_STATE if a container has not been
|
| 940 |
+
/// loaded using Load(), E_BOUND if idx is out of bounds, or other standard
|
| 941 |
+
/// HRESULT error codes.
|
| 942 |
+
virtual HRESULT STDMETHODCALLTYPE GetPartKind(UINT32 idx, _Out_ UINT32 *pResult) = 0;
|
| 943 |
+
|
| 944 |
+
/// \brief Retrieve the content of a specified part.
|
| 945 |
+
///
|
| 946 |
+
/// \param idx The index of the part to retrieve.
|
| 947 |
+
///
|
| 948 |
+
/// \param ppResult Pointer to variable to receive the result.
|
| 949 |
+
///
|
| 950 |
+
/// \return S_OK on success, E_NOT_VALID_STATE if a container has not been
|
| 951 |
+
/// loaded using Load(), E_BOUND if idx is out of bounds, or other standard
|
| 952 |
+
/// HRESULT error codes.
|
| 953 |
+
virtual HRESULT STDMETHODCALLTYPE GetPartContent(UINT32 idx, _COM_Outptr_ IDxcBlob **ppResult) = 0;
|
| 954 |
+
|
| 955 |
+
/// \brief Retrieve the index of the first part with the specified kind.
|
| 956 |
+
///
|
| 957 |
+
/// \param kind The kind to search for.
|
| 958 |
+
///
|
| 959 |
+
/// \param pResult Pointer to variable to receive the index of the matching
|
| 960 |
+
/// part.
|
| 961 |
+
///
|
| 962 |
+
/// \return S_OK on success, E_NOT_VALID_STATE if a container has not been
|
| 963 |
+
/// loaded using Load(), HRESULT_FROM_WIN32(ERROR_NOT_FOUND) if there is no
|
| 964 |
+
/// part with the specified kind, or other standard HRESULT error codes.
|
| 965 |
+
virtual HRESULT STDMETHODCALLTYPE FindFirstPartKind(UINT32 kind, _Out_ UINT32 *pResult) = 0;
|
| 966 |
+
|
| 967 |
+
/// \brief Retrieve the reflection interface for a specified part.
|
| 968 |
+
///
|
| 969 |
+
/// \param idx The index of the part to retrieve the reflection interface of.
|
| 970 |
+
///
|
| 971 |
+
/// \param iid The IID of the interface to retrieve.
|
| 972 |
+
///
|
| 973 |
+
/// \param ppvObject Pointer to variable to receive the result.
|
| 974 |
+
///
|
| 975 |
+
/// Use this with interfaces such as ID3D12ShaderReflection.
|
| 976 |
+
///
|
| 977 |
+
/// \return S_OK on success, E_NOT_VALID_STATE if a container has not been
|
| 978 |
+
/// loaded using Load(), E_BOUND if idx is out of bounds, or other standard
|
| 979 |
+
/// HRESULT error codes.
|
| 980 |
+
virtual HRESULT STDMETHODCALLTYPE GetPartReflection(UINT32 idx, REFIID iid, void **ppvObject) = 0;
|
| 981 |
+
};
|
| 982 |
+
|
| 983 |
+
CROSS_PLATFORM_UUIDOF(IDxcOptimizerPass, "AE2CD79F-CC22-453F-9B6B-B124E7A5204C")
|
| 984 |
+
/// \brief An optimizer pass.
|
| 985 |
+
///
|
| 986 |
+
/// Instances of this can be obtained via IDxcOptimizer::GetAvailablePass.
|
| 987 |
+
struct IDxcOptimizerPass : public IUnknown {
|
| 988 |
+
virtual HRESULT STDMETHODCALLTYPE GetOptionName(_COM_Outptr_ LPWSTR *ppResult) = 0;
|
| 989 |
+
virtual HRESULT STDMETHODCALLTYPE GetDescription(_COM_Outptr_ LPWSTR *ppResult) = 0;
|
| 990 |
+
virtual HRESULT STDMETHODCALLTYPE GetOptionArgCount(_Out_ UINT32 *pCount) = 0;
|
| 991 |
+
virtual HRESULT STDMETHODCALLTYPE GetOptionArgName(UINT32 argIndex, _COM_Outptr_ LPWSTR *ppResult) = 0;
|
| 992 |
+
virtual HRESULT STDMETHODCALLTYPE GetOptionArgDescription(UINT32 argIndex, _COM_Outptr_ LPWSTR *ppResult) = 0;
|
| 993 |
+
};
|
| 994 |
+
|
| 995 |
+
CROSS_PLATFORM_UUIDOF(IDxcOptimizer, "25740E2E-9CBA-401B-9119-4FB42F39F270")
|
| 996 |
+
/// \brief Interface to DxcOptimizer.
|
| 997 |
+
///
|
| 998 |
+
/// Use DxcCreateInstance with CLSID_DxcOptimizer to obtain an instance of this.
|
| 999 |
+
struct IDxcOptimizer : public IUnknown {
|
| 1000 |
+
virtual HRESULT STDMETHODCALLTYPE GetAvailablePassCount(_Out_ UINT32 *pCount) = 0;
|
| 1001 |
+
virtual HRESULT STDMETHODCALLTYPE GetAvailablePass(UINT32 index, _COM_Outptr_ IDxcOptimizerPass** ppResult) = 0;
|
| 1002 |
+
virtual HRESULT STDMETHODCALLTYPE RunOptimizer(IDxcBlob *pBlob,
|
| 1003 |
+
_In_count_(optionCount) LPCWSTR *ppOptions, UINT32 optionCount,
|
| 1004 |
+
_COM_Outptr_ IDxcBlob **pOutputModule,
|
| 1005 |
+
_COM_Outptr_opt_ IDxcBlobEncoding **ppOutputText) = 0;
|
| 1006 |
+
};
|
| 1007 |
+
|
| 1008 |
+
static const UINT32 DxcVersionInfoFlags_None = 0;
|
| 1009 |
+
static const UINT32 DxcVersionInfoFlags_Debug = 1; // Matches VS_FF_DEBUG
|
| 1010 |
+
static const UINT32 DxcVersionInfoFlags_Internal = 2; // Internal Validator (non-signing)
|
| 1011 |
+
|
| 1012 |
+
CROSS_PLATFORM_UUIDOF(IDxcVersionInfo, "b04f5b50-2059-4f12-a8ff-a1e0cde1cc7e")
|
| 1013 |
+
/// \brief PDB Version information.
|
| 1014 |
+
///
|
| 1015 |
+
/// Use IDxcPdbUtils2::GetVersionInfo to obtain an instance of this.
|
| 1016 |
+
struct IDxcVersionInfo : public IUnknown {
|
| 1017 |
+
virtual HRESULT STDMETHODCALLTYPE GetVersion(_Out_ UINT32 *pMajor, _Out_ UINT32 *pMinor) = 0;
|
| 1018 |
+
virtual HRESULT STDMETHODCALLTYPE GetFlags(_Out_ UINT32 *pFlags) = 0;
|
| 1019 |
+
};
|
| 1020 |
+
|
| 1021 |
+
CROSS_PLATFORM_UUIDOF(IDxcVersionInfo2, "fb6904c4-42f0-4b62-9c46-983af7da7c83")
|
| 1022 |
+
/// \brief PDB Version Information.
|
| 1023 |
+
///
|
| 1024 |
+
/// Use IDxcPdbUtils2::GetVersionInfo to obtain a IDxcVersionInfo interface, and
|
| 1025 |
+
/// then use QueryInterface to obtain an instance of this interface from it.
|
| 1026 |
+
struct IDxcVersionInfo2 : public IDxcVersionInfo {
|
| 1027 |
+
virtual HRESULT STDMETHODCALLTYPE GetCommitInfo(
|
| 1028 |
+
_Out_ UINT32 *pCommitCount, ///< The total number commits.
|
| 1029 |
+
_Outptr_result_z_ char **pCommitHash ///< The SHA of the latest commit. Must be CoTaskMemFree()'d.
|
| 1030 |
+
) = 0;
|
| 1031 |
+
};
|
| 1032 |
+
|
| 1033 |
+
CROSS_PLATFORM_UUIDOF(IDxcVersionInfo3, "5e13e843-9d25-473c-9ad2-03b2d0b44b1e")
|
| 1034 |
+
/// \brief PDB Version Information.
|
| 1035 |
+
///
|
| 1036 |
+
/// Use IDxcPdbUtils2::GetVersionInfo to obtain a IDxcVersionInfo interface, and
|
| 1037 |
+
/// then use QueryInterface to obtain an instance of this interface from it.
|
| 1038 |
+
struct IDxcVersionInfo3 : public IUnknown {
|
| 1039 |
+
virtual HRESULT STDMETHODCALLTYPE GetCustomVersionString(
|
| 1040 |
+
_Outptr_result_z_ char **pVersionString ///< Custom version string for compiler. Must be CoTaskMemFree()'d.
|
| 1041 |
+
) = 0;
|
| 1042 |
+
};
|
| 1043 |
+
|
| 1044 |
+
struct DxcArgPair {
|
| 1045 |
+
const WCHAR *pName;
|
| 1046 |
+
const WCHAR *pValue;
|
| 1047 |
+
};
|
| 1048 |
+
|
| 1049 |
+
CROSS_PLATFORM_UUIDOF(IDxcPdbUtils, "E6C9647E-9D6A-4C3B-B94C-524B5A6C343D")
|
| 1050 |
+
/// \deprecated Please use IDxcPdbUtils2 instead.
|
| 1051 |
+
struct IDxcPdbUtils : public IUnknown {
|
| 1052 |
+
virtual HRESULT STDMETHODCALLTYPE Load(_In_ IDxcBlob *pPdbOrDxil) = 0;
|
| 1053 |
+
|
| 1054 |
+
virtual HRESULT STDMETHODCALLTYPE GetSourceCount(_Out_ UINT32 *pCount) = 0;
|
| 1055 |
+
virtual HRESULT STDMETHODCALLTYPE GetSource(_In_ UINT32 uIndex, _COM_Outptr_ IDxcBlobEncoding **ppResult) = 0;
|
| 1056 |
+
virtual HRESULT STDMETHODCALLTYPE GetSourceName(_In_ UINT32 uIndex, _Outptr_result_z_ BSTR *pResult) = 0;
|
| 1057 |
+
|
| 1058 |
+
virtual HRESULT STDMETHODCALLTYPE GetFlagCount(_Out_ UINT32 *pCount) = 0;
|
| 1059 |
+
virtual HRESULT STDMETHODCALLTYPE GetFlag(_In_ UINT32 uIndex, _Outptr_result_z_ BSTR *pResult) = 0;
|
| 1060 |
+
|
| 1061 |
+
virtual HRESULT STDMETHODCALLTYPE GetArgCount(_Out_ UINT32 *pCount) = 0;
|
| 1062 |
+
virtual HRESULT STDMETHODCALLTYPE GetArg(_In_ UINT32 uIndex, _Outptr_result_z_ BSTR *pResult) = 0;
|
| 1063 |
+
|
| 1064 |
+
virtual HRESULT STDMETHODCALLTYPE GetArgPairCount(_Out_ UINT32 *pCount) = 0;
|
| 1065 |
+
virtual HRESULT STDMETHODCALLTYPE GetArgPair(_In_ UINT32 uIndex, _Outptr_result_z_ BSTR *pName, _Outptr_result_z_ BSTR *pValue) = 0;
|
| 1066 |
+
|
| 1067 |
+
virtual HRESULT STDMETHODCALLTYPE GetDefineCount(_Out_ UINT32 *pCount) = 0;
|
| 1068 |
+
virtual HRESULT STDMETHODCALLTYPE GetDefine(_In_ UINT32 uIndex, _Outptr_result_z_ BSTR *pResult) = 0;
|
| 1069 |
+
|
| 1070 |
+
virtual HRESULT STDMETHODCALLTYPE GetTargetProfile(_Outptr_result_z_ BSTR *pResult) = 0;
|
| 1071 |
+
virtual HRESULT STDMETHODCALLTYPE GetEntryPoint(_Outptr_result_z_ BSTR *pResult) = 0;
|
| 1072 |
+
virtual HRESULT STDMETHODCALLTYPE GetMainFileName(_Outptr_result_z_ BSTR *pResult) = 0;
|
| 1073 |
+
|
| 1074 |
+
virtual HRESULT STDMETHODCALLTYPE GetHash(_COM_Outptr_ IDxcBlob **ppResult) = 0;
|
| 1075 |
+
virtual HRESULT STDMETHODCALLTYPE GetName(_Outptr_result_z_ BSTR *pResult) = 0;
|
| 1076 |
+
|
| 1077 |
+
virtual BOOL STDMETHODCALLTYPE IsFullPDB() = 0;
|
| 1078 |
+
virtual HRESULT STDMETHODCALLTYPE GetFullPDB(_COM_Outptr_ IDxcBlob **ppFullPDB) = 0;
|
| 1079 |
+
|
| 1080 |
+
virtual HRESULT STDMETHODCALLTYPE GetVersionInfo(_COM_Outptr_ IDxcVersionInfo **ppVersionInfo) = 0;
|
| 1081 |
+
|
| 1082 |
+
virtual HRESULT STDMETHODCALLTYPE SetCompiler(_In_ IDxcCompiler3 *pCompiler) = 0;
|
| 1083 |
+
virtual HRESULT STDMETHODCALLTYPE CompileForFullPDB(_COM_Outptr_ IDxcResult **ppResult) = 0;
|
| 1084 |
+
virtual HRESULT STDMETHODCALLTYPE OverrideArgs(_In_ DxcArgPair *pArgPairs, UINT32 uNumArgPairs) = 0;
|
| 1085 |
+
virtual HRESULT STDMETHODCALLTYPE OverrideRootSignature(_In_ const WCHAR *pRootSignature) = 0;
|
| 1086 |
+
};
|
| 1087 |
+
|
| 1088 |
+
CROSS_PLATFORM_UUIDOF(IDxcPdbUtils2, "4315D938-F369-4F93-95A2-252017CC3807")
|
| 1089 |
+
/// \brief DxcPdbUtils interface.
|
| 1090 |
+
///
|
| 1091 |
+
/// Use DxcCreateInstance with CLSID_DxcPdbUtils to create an instance of this.
|
| 1092 |
+
struct IDxcPdbUtils2 : public IUnknown {
|
| 1093 |
+
virtual HRESULT STDMETHODCALLTYPE Load(_In_ IDxcBlob *pPdbOrDxil) = 0;
|
| 1094 |
+
|
| 1095 |
+
virtual HRESULT STDMETHODCALLTYPE GetSourceCount(_Out_ UINT32 *pCount) = 0;
|
| 1096 |
+
virtual HRESULT STDMETHODCALLTYPE GetSource(_In_ UINT32 uIndex, _COM_Outptr_ IDxcBlobEncoding **ppResult) = 0;
|
| 1097 |
+
virtual HRESULT STDMETHODCALLTYPE GetSourceName(_In_ UINT32 uIndex, _COM_Outptr_ IDxcBlobWide **ppResult) = 0;
|
| 1098 |
+
|
| 1099 |
+
virtual HRESULT STDMETHODCALLTYPE GetLibraryPDBCount(UINT32 *pCount) = 0;
|
| 1100 |
+
virtual HRESULT STDMETHODCALLTYPE GetLibraryPDB(_In_ UINT32 uIndex, _COM_Outptr_ IDxcPdbUtils2 **ppOutPdbUtils, _COM_Outptr_opt_result_maybenull_ IDxcBlobWide **ppLibraryName) = 0;
|
| 1101 |
+
|
| 1102 |
+
virtual HRESULT STDMETHODCALLTYPE GetFlagCount(_Out_ UINT32 *pCount) = 0;
|
| 1103 |
+
virtual HRESULT STDMETHODCALLTYPE GetFlag(_In_ UINT32 uIndex, _COM_Outptr_ IDxcBlobWide **ppResult) = 0;
|
| 1104 |
+
|
| 1105 |
+
virtual HRESULT STDMETHODCALLTYPE GetArgCount(_Out_ UINT32 *pCount) = 0;
|
| 1106 |
+
virtual HRESULT STDMETHODCALLTYPE GetArg(_In_ UINT32 uIndex, _COM_Outptr_ IDxcBlobWide **ppResult) = 0;
|
| 1107 |
+
|
| 1108 |
+
virtual HRESULT STDMETHODCALLTYPE GetArgPairCount(_Out_ UINT32 *pCount) = 0;
|
| 1109 |
+
virtual HRESULT STDMETHODCALLTYPE GetArgPair(_In_ UINT32 uIndex, _COM_Outptr_result_maybenull_ IDxcBlobWide **ppName, _COM_Outptr_result_maybenull_ IDxcBlobWide **ppValue) = 0;
|
| 1110 |
+
|
| 1111 |
+
virtual HRESULT STDMETHODCALLTYPE GetDefineCount(_Out_ UINT32 *pCount) = 0;
|
| 1112 |
+
virtual HRESULT STDMETHODCALLTYPE GetDefine(_In_ UINT32 uIndex, _COM_Outptr_ IDxcBlobWide **ppResult) = 0;
|
| 1113 |
+
|
| 1114 |
+
virtual HRESULT STDMETHODCALLTYPE GetTargetProfile(_COM_Outptr_result_maybenull_ IDxcBlobWide **ppResult) = 0;
|
| 1115 |
+
virtual HRESULT STDMETHODCALLTYPE GetEntryPoint(_COM_Outptr_result_maybenull_ IDxcBlobWide **ppResult) = 0;
|
| 1116 |
+
virtual HRESULT STDMETHODCALLTYPE GetMainFileName(_COM_Outptr_result_maybenull_ IDxcBlobWide **ppResult) = 0;
|
| 1117 |
+
|
| 1118 |
+
virtual HRESULT STDMETHODCALLTYPE GetHash(_COM_Outptr_result_maybenull_ IDxcBlob **ppResult) = 0;
|
| 1119 |
+
virtual HRESULT STDMETHODCALLTYPE GetName(_COM_Outptr_result_maybenull_ IDxcBlobWide **ppResult) = 0;
|
| 1120 |
+
|
| 1121 |
+
virtual HRESULT STDMETHODCALLTYPE GetVersionInfo(_COM_Outptr_result_maybenull_ IDxcVersionInfo **ppVersionInfo) = 0;
|
| 1122 |
+
|
| 1123 |
+
virtual HRESULT STDMETHODCALLTYPE GetCustomToolchainID(_Out_ UINT32 *pID) = 0;
|
| 1124 |
+
virtual HRESULT STDMETHODCALLTYPE GetCustomToolchainData(_COM_Outptr_result_maybenull_ IDxcBlob **ppBlob) = 0;
|
| 1125 |
+
|
| 1126 |
+
virtual HRESULT STDMETHODCALLTYPE GetWholeDxil(_COM_Outptr_result_maybenull_ IDxcBlob **ppResult) = 0;
|
| 1127 |
+
|
| 1128 |
+
virtual BOOL STDMETHODCALLTYPE IsFullPDB() = 0;
|
| 1129 |
+
virtual BOOL STDMETHODCALLTYPE IsPDBRef() = 0;
|
| 1130 |
+
};
|
| 1131 |
+
|
| 1132 |
+
// Note: __declspec(selectany) requires 'extern'
|
| 1133 |
+
// On Linux __declspec(selectany) is removed and using 'extern' results in link error.
|
| 1134 |
+
#ifdef _MSC_VER
|
| 1135 |
+
#define CLSID_SCOPE __declspec(selectany) extern
|
| 1136 |
+
#else
|
| 1137 |
+
#define CLSID_SCOPE
|
| 1138 |
+
#endif
|
| 1139 |
+
|
| 1140 |
+
CLSID_SCOPE const CLSID CLSID_DxcCompiler = {
|
| 1141 |
+
0x73e22d93,
|
| 1142 |
+
0xe6ce,
|
| 1143 |
+
0x47f3,
|
| 1144 |
+
{0xb5, 0xbf, 0xf0, 0x66, 0x4f, 0x39, 0xc1, 0xb0}};
|
| 1145 |
+
|
| 1146 |
+
// {EF6A8087-B0EA-4D56-9E45-D07E1A8B7806}
|
| 1147 |
+
CLSID_SCOPE const GUID CLSID_DxcLinker = {
|
| 1148 |
+
0xef6a8087,
|
| 1149 |
+
0xb0ea,
|
| 1150 |
+
0x4d56,
|
| 1151 |
+
{0x9e, 0x45, 0xd0, 0x7e, 0x1a, 0x8b, 0x78, 0x6}};
|
| 1152 |
+
|
| 1153 |
+
// {CD1F6B73-2AB0-484D-8EDC-EBE7A43CA09F}
|
| 1154 |
+
CLSID_SCOPE const CLSID CLSID_DxcDiaDataSource = {
|
| 1155 |
+
0xcd1f6b73,
|
| 1156 |
+
0x2ab0,
|
| 1157 |
+
0x484d,
|
| 1158 |
+
{0x8e, 0xdc, 0xeb, 0xe7, 0xa4, 0x3c, 0xa0, 0x9f}};
|
| 1159 |
+
|
| 1160 |
+
// {3E56AE82-224D-470F-A1A1-FE3016EE9F9D}
|
| 1161 |
+
CLSID_SCOPE const CLSID CLSID_DxcCompilerArgs = {
|
| 1162 |
+
0x3e56ae82,
|
| 1163 |
+
0x224d,
|
| 1164 |
+
0x470f,
|
| 1165 |
+
{0xa1, 0xa1, 0xfe, 0x30, 0x16, 0xee, 0x9f, 0x9d}};
|
| 1166 |
+
|
| 1167 |
+
// {6245D6AF-66E0-48FD-80B4-4D271796748C}
|
| 1168 |
+
CLSID_SCOPE const GUID CLSID_DxcLibrary = {
|
| 1169 |
+
0x6245d6af,
|
| 1170 |
+
0x66e0,
|
| 1171 |
+
0x48fd,
|
| 1172 |
+
{0x80, 0xb4, 0x4d, 0x27, 0x17, 0x96, 0x74, 0x8c}};
|
| 1173 |
+
|
| 1174 |
+
CLSID_SCOPE const GUID CLSID_DxcUtils = CLSID_DxcLibrary;
|
| 1175 |
+
|
| 1176 |
+
// {8CA3E215-F728-4CF3-8CDD-88AF917587A1}
|
| 1177 |
+
CLSID_SCOPE const GUID CLSID_DxcValidator = {
|
| 1178 |
+
0x8ca3e215,
|
| 1179 |
+
0xf728,
|
| 1180 |
+
0x4cf3,
|
| 1181 |
+
{0x8c, 0xdd, 0x88, 0xaf, 0x91, 0x75, 0x87, 0xa1}};
|
| 1182 |
+
|
| 1183 |
+
// {D728DB68-F903-4F80-94CD-DCCF76EC7151}
|
| 1184 |
+
CLSID_SCOPE const GUID CLSID_DxcAssembler = {
|
| 1185 |
+
0xd728db68,
|
| 1186 |
+
0xf903,
|
| 1187 |
+
0x4f80,
|
| 1188 |
+
{0x94, 0xcd, 0xdc, 0xcf, 0x76, 0xec, 0x71, 0x51}};
|
| 1189 |
+
|
| 1190 |
+
// {b9f54489-55b8-400c-ba3a-1675e4728b91}
|
| 1191 |
+
CLSID_SCOPE const GUID CLSID_DxcContainerReflection = {
|
| 1192 |
+
0xb9f54489,
|
| 1193 |
+
0x55b8,
|
| 1194 |
+
0x400c,
|
| 1195 |
+
{0xba, 0x3a, 0x16, 0x75, 0xe4, 0x72, 0x8b, 0x91}};
|
| 1196 |
+
|
| 1197 |
+
// {AE2CD79F-CC22-453F-9B6B-B124E7A5204C}
|
| 1198 |
+
CLSID_SCOPE const GUID CLSID_DxcOptimizer = {
|
| 1199 |
+
0xae2cd79f,
|
| 1200 |
+
0xcc22,
|
| 1201 |
+
0x453f,
|
| 1202 |
+
{0x9b, 0x6b, 0xb1, 0x24, 0xe7, 0xa5, 0x20, 0x4c}};
|
| 1203 |
+
|
| 1204 |
+
// {94134294-411f-4574-b4d0-8741e25240d2}
|
| 1205 |
+
CLSID_SCOPE const GUID CLSID_DxcContainerBuilder = {
|
| 1206 |
+
0x94134294,
|
| 1207 |
+
0x411f,
|
| 1208 |
+
0x4574,
|
| 1209 |
+
{0xb4, 0xd0, 0x87, 0x41, 0xe2, 0x52, 0x40, 0xd2}};
|
| 1210 |
+
|
| 1211 |
+
// {54621dfb-f2ce-457e-ae8c-ec355faeec7c}
|
| 1212 |
+
CLSID_SCOPE const GUID CLSID_DxcPdbUtils = {
|
| 1213 |
+
0x54621dfb,
|
| 1214 |
+
0xf2ce,
|
| 1215 |
+
0x457e,
|
| 1216 |
+
{0xae, 0x8c, 0xec, 0x35, 0x5f, 0xae, 0xec, 0x7c}};
|
| 1217 |
+
|
| 1218 |
+
#endif
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxcore.h
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/************************************************************
|
| 2 |
+
* *
|
| 3 |
+
* Copyright (c) Microsoft Corporation. *
|
| 4 |
+
* Licensed under the MIT license. *
|
| 5 |
+
* *
|
| 6 |
+
************************************************************/
|
| 7 |
+
|
| 8 |
+
#ifndef _DXCOREEXTMODULE_H_
|
| 9 |
+
#define _DXCOREEXTMODULE_H_
|
| 10 |
+
|
| 11 |
+
#include <winapifamily.h>
|
| 12 |
+
#include "dxcore_interface.h"
|
| 13 |
+
|
| 14 |
+
#pragma region Application Family or OneCore Family
|
| 15 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM)
|
| 16 |
+
|
| 17 |
+
#if (_WIN32_WINNT >= _WIN32_WINNT_WIN10)
|
| 18 |
+
|
| 19 |
+
STDAPI
|
| 20 |
+
DXCoreCreateAdapterFactory(
|
| 21 |
+
REFIID riid,
|
| 22 |
+
_COM_Outptr_ void** ppvFactory
|
| 23 |
+
);
|
| 24 |
+
|
| 25 |
+
template <class T>
|
| 26 |
+
HRESULT
|
| 27 |
+
DXCoreCreateAdapterFactory(
|
| 28 |
+
_COM_Outptr_ T** ppvFactory
|
| 29 |
+
)
|
| 30 |
+
{
|
| 31 |
+
return DXCoreCreateAdapterFactory(IID_PPV_ARGS(ppvFactory));
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
#endif // (_WIN32_WINNT >= _WIN32_WINNT_WIN10)
|
| 35 |
+
|
| 36 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_SYSTEM) */
|
| 37 |
+
#pragma endregion
|
| 38 |
+
|
| 39 |
+
#endif // _DXCOREEXTMODULE_H_
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxcore_interface.h
ADDED
|
@@ -0,0 +1,497 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//
|
| 2 |
+
// DXCore Interface
|
| 3 |
+
// Copyright (C) Microsoft Corporation.
|
| 4 |
+
// Licensed under the MIT license.
|
| 5 |
+
//
|
| 6 |
+
|
| 7 |
+
#ifndef __dxcore_interface_h__
|
| 8 |
+
#define __dxcore_interface_h__
|
| 9 |
+
|
| 10 |
+
#ifndef COM_NO_WINDOWS_H
|
| 11 |
+
#include "windows.h"
|
| 12 |
+
#include "ole2.h"
|
| 13 |
+
#endif /*COM_NO_WINDOWS_H*/
|
| 14 |
+
|
| 15 |
+
#include <stdint.h>
|
| 16 |
+
|
| 17 |
+
#ifdef __cplusplus
|
| 18 |
+
|
| 19 |
+
#define _FACDXCORE 0x880
|
| 20 |
+
#define MAKE_DXCORE_HRESULT( code ) MAKE_HRESULT( 1, _FACDXCORE, code )
|
| 21 |
+
|
| 22 |
+
enum class DXCoreAdapterProperty : uint32_t
|
| 23 |
+
{
|
| 24 |
+
InstanceLuid = 0,
|
| 25 |
+
DriverVersion = 1,
|
| 26 |
+
DriverDescription = 2,
|
| 27 |
+
HardwareID = 3, // Use HardwareIDParts instead, if available.
|
| 28 |
+
KmdModelVersion = 4,
|
| 29 |
+
ComputePreemptionGranularity = 5,
|
| 30 |
+
GraphicsPreemptionGranularity = 6,
|
| 31 |
+
DedicatedAdapterMemory = 7,
|
| 32 |
+
DedicatedSystemMemory = 8,
|
| 33 |
+
SharedSystemMemory = 9,
|
| 34 |
+
AcgCompatible = 10,
|
| 35 |
+
IsHardware = 11,
|
| 36 |
+
IsIntegrated = 12,
|
| 37 |
+
IsDetachable = 13,
|
| 38 |
+
HardwareIDParts = 14,
|
| 39 |
+
PhysicalAdapterCount = 15,
|
| 40 |
+
AdapterEngineCount = 16,
|
| 41 |
+
AdapterEngineName = 17,
|
| 42 |
+
};
|
| 43 |
+
|
| 44 |
+
enum class DXCoreAdapterState : uint32_t
|
| 45 |
+
{
|
| 46 |
+
IsDriverUpdateInProgress = 0,
|
| 47 |
+
AdapterMemoryBudget = 1,
|
| 48 |
+
AdapterMemoryUsageBytes = 2,
|
| 49 |
+
AdapterMemoryUsageByProcessBytes = 3,
|
| 50 |
+
AdapterEngineRunningTimeMicroseconds = 4,
|
| 51 |
+
AdapterEngineRunningTimeByProcessMicroseconds = 5,
|
| 52 |
+
AdapterTemperatureCelsius = 6,
|
| 53 |
+
AdapterInUseProcessCount = 7,
|
| 54 |
+
AdapterInUseProcessSet = 8,
|
| 55 |
+
AdapterEngineFrequencyHertz = 9,
|
| 56 |
+
AdapterMemoryFrequencyHertz = 10
|
| 57 |
+
};
|
| 58 |
+
|
| 59 |
+
enum class DXCoreSegmentGroup : uint32_t
|
| 60 |
+
{
|
| 61 |
+
Local = 0,
|
| 62 |
+
NonLocal = 1
|
| 63 |
+
};
|
| 64 |
+
|
| 65 |
+
enum class DXCoreNotificationType : uint32_t
|
| 66 |
+
{
|
| 67 |
+
AdapterListStale = 0,
|
| 68 |
+
AdapterNoLongerValid = 1,
|
| 69 |
+
AdapterBudgetChange = 2,
|
| 70 |
+
AdapterHardwareContentProtectionTeardown = 3
|
| 71 |
+
};
|
| 72 |
+
|
| 73 |
+
enum class DXCoreAdapterPreference : uint32_t
|
| 74 |
+
{
|
| 75 |
+
Hardware = 0,
|
| 76 |
+
MinimumPower = 1,
|
| 77 |
+
HighPerformance = 2
|
| 78 |
+
};
|
| 79 |
+
|
| 80 |
+
enum class DXCoreWorkload : uint32_t
|
| 81 |
+
{
|
| 82 |
+
Graphics = 0,
|
| 83 |
+
Compute = 1,
|
| 84 |
+
Media = 2,
|
| 85 |
+
MachineLearning = 3,
|
| 86 |
+
};
|
| 87 |
+
|
| 88 |
+
enum class DXCoreRuntimeFilterFlags : uint32_t
|
| 89 |
+
{
|
| 90 |
+
None = 0x0,
|
| 91 |
+
D3D11 = 0x1,
|
| 92 |
+
D3D12 = 0x2
|
| 93 |
+
};
|
| 94 |
+
|
| 95 |
+
DEFINE_ENUM_FLAG_OPERATORS(DXCoreRuntimeFilterFlags);
|
| 96 |
+
|
| 97 |
+
enum class DXCoreHardwareTypeFilterFlags : uint32_t
|
| 98 |
+
{
|
| 99 |
+
None = 0x0,
|
| 100 |
+
GPU = 0x1,
|
| 101 |
+
ComputeAccelerator = 0x2,
|
| 102 |
+
NPU = 0x4,
|
| 103 |
+
MediaAccelerator = 0x8
|
| 104 |
+
};
|
| 105 |
+
|
| 106 |
+
DEFINE_ENUM_FLAG_OPERATORS(DXCoreHardwareTypeFilterFlags);
|
| 107 |
+
|
| 108 |
+
struct DXCoreHardwareID
|
| 109 |
+
{
|
| 110 |
+
uint32_t vendorID;
|
| 111 |
+
uint32_t deviceID;
|
| 112 |
+
uint32_t subSysID;
|
| 113 |
+
uint32_t revision;
|
| 114 |
+
};
|
| 115 |
+
|
| 116 |
+
struct DXCoreHardwareIDParts
|
| 117 |
+
{
|
| 118 |
+
uint32_t vendorID;
|
| 119 |
+
uint32_t deviceID;
|
| 120 |
+
uint32_t subSystemID;
|
| 121 |
+
uint32_t subVendorID;
|
| 122 |
+
uint32_t revisionID;
|
| 123 |
+
};
|
| 124 |
+
|
| 125 |
+
struct DXCoreAdapterMemoryBudgetNodeSegmentGroup
|
| 126 |
+
{
|
| 127 |
+
uint32_t nodeIndex;
|
| 128 |
+
DXCoreSegmentGroup segmentGroup;
|
| 129 |
+
};
|
| 130 |
+
|
| 131 |
+
struct DXCoreAdapterMemoryBudget
|
| 132 |
+
{
|
| 133 |
+
uint64_t budget;
|
| 134 |
+
uint64_t currentUsage;
|
| 135 |
+
uint64_t availableForReservation;
|
| 136 |
+
uint64_t currentReservation;
|
| 137 |
+
};
|
| 138 |
+
|
| 139 |
+
struct DXCoreAdapterEngineIndex
|
| 140 |
+
{
|
| 141 |
+
uint32_t physicalAdapterIndex;
|
| 142 |
+
uint32_t engineIndex;
|
| 143 |
+
};
|
| 144 |
+
|
| 145 |
+
struct DXCoreEngineQueryInput
|
| 146 |
+
{
|
| 147 |
+
DXCoreAdapterEngineIndex adapterEngineIndex;
|
| 148 |
+
uint32_t processId;
|
| 149 |
+
};
|
| 150 |
+
|
| 151 |
+
struct DXCoreEngineQueryOutput
|
| 152 |
+
{
|
| 153 |
+
uint64_t runningTime;
|
| 154 |
+
bool processQuerySucceeded;
|
| 155 |
+
};
|
| 156 |
+
|
| 157 |
+
enum class DXCoreMemoryType : uint32_t
|
| 158 |
+
{
|
| 159 |
+
Dedicated = 0,
|
| 160 |
+
Shared = 1
|
| 161 |
+
};
|
| 162 |
+
|
| 163 |
+
struct DXCoreMemoryUsage
|
| 164 |
+
{
|
| 165 |
+
uint64_t committed;
|
| 166 |
+
uint64_t resident;
|
| 167 |
+
};
|
| 168 |
+
|
| 169 |
+
struct DXCoreMemoryQueryInput
|
| 170 |
+
{
|
| 171 |
+
uint32_t physicalAdapterIndex;
|
| 172 |
+
DXCoreMemoryType memoryType;
|
| 173 |
+
};
|
| 174 |
+
|
| 175 |
+
struct DXCoreProcessMemoryQueryInput
|
| 176 |
+
{
|
| 177 |
+
uint32_t physicalAdapterIndex;
|
| 178 |
+
DXCoreMemoryType memoryType;
|
| 179 |
+
uint32_t processId;
|
| 180 |
+
};
|
| 181 |
+
|
| 182 |
+
struct DXCoreProcessMemoryQueryOutput
|
| 183 |
+
{
|
| 184 |
+
DXCoreMemoryUsage memoryUsage;
|
| 185 |
+
bool processQuerySucceeded;
|
| 186 |
+
};
|
| 187 |
+
|
| 188 |
+
struct DXCoreAdapterProcessSetQueryInput
|
| 189 |
+
{
|
| 190 |
+
uint32_t arraySize;
|
| 191 |
+
_Field_size_(arraySize) uint32_t* processIds;
|
| 192 |
+
};
|
| 193 |
+
|
| 194 |
+
struct DXCoreAdapterProcessSetQueryOutput
|
| 195 |
+
{
|
| 196 |
+
uint32_t processesWritten;
|
| 197 |
+
uint32_t processesTotal;
|
| 198 |
+
};
|
| 199 |
+
|
| 200 |
+
struct DXCoreEngineNamePropertyInput
|
| 201 |
+
{
|
| 202 |
+
DXCoreAdapterEngineIndex adapterEngineIndex;
|
| 203 |
+
uint32_t engineNameLength;
|
| 204 |
+
_Field_size_(engineNameLength) wchar_t *engineName;
|
| 205 |
+
};
|
| 206 |
+
|
| 207 |
+
struct DXCoreEngineNamePropertyOutput
|
| 208 |
+
{
|
| 209 |
+
uint32_t engineNameLength;
|
| 210 |
+
};
|
| 211 |
+
|
| 212 |
+
struct DXCoreFrequencyQueryOutput
|
| 213 |
+
{
|
| 214 |
+
uint64_t frequency;
|
| 215 |
+
uint64_t maxFrequency;
|
| 216 |
+
uint64_t maxOverclockedFrequency;
|
| 217 |
+
};
|
| 218 |
+
|
| 219 |
+
typedef void (STDMETHODCALLTYPE *PFN_DXCORE_NOTIFICATION_CALLBACK)(
|
| 220 |
+
DXCoreNotificationType notificationType,
|
| 221 |
+
_In_ IUnknown *object,
|
| 222 |
+
_In_opt_ void *context);
|
| 223 |
+
|
| 224 |
+
static_assert(sizeof(bool) == 1, "bool assumed as one byte");
|
| 225 |
+
|
| 226 |
+
DEFINE_GUID(IID_IDXCoreAdapterFactory, 0x78ee5945, 0xc36e, 0x4b13, 0xa6, 0x69, 0x00, 0x5d, 0xd1, 0x1c, 0x0f, 0x06);
|
| 227 |
+
DEFINE_GUID(IID_IDXCoreAdapterFactory1, 0xd5682e19, 0x6d21, 0x401c, 0x82, 0x7a, 0x9a, 0x51, 0xa4, 0xea, 0x35, 0xd7);
|
| 228 |
+
DEFINE_GUID(IID_IDXCoreAdapterList, 0x526c7776, 0x40e9, 0x459b, 0xb7, 0x11, 0xf3, 0x2a, 0xd7, 0x6d, 0xfc, 0x28);
|
| 229 |
+
DEFINE_GUID(IID_IDXCoreAdapter, 0xf0db4c7f, 0xfe5a, 0x42a2, 0xbd, 0x62, 0xf2, 0xa6, 0xcf, 0x6f, 0xc8, 0x3e);
|
| 230 |
+
DEFINE_GUID(IID_IDXCoreAdapter1, 0xa0783366, 0xcfa3, 0x43be, 0x9d, 0x79, 0x55, 0xb2, 0xda, 0x97, 0xc6, 0x3c);
|
| 231 |
+
|
| 232 |
+
DEFINE_GUID(DXCORE_ADAPTER_ATTRIBUTE_D3D11_GRAPHICS, 0x8c47866b, 0x7583, 0x450d, 0xf0, 0xf0, 0x6b, 0xad, 0xa8, 0x95, 0xaf, 0x4b);
|
| 233 |
+
DEFINE_GUID(DXCORE_ADAPTER_ATTRIBUTE_D3D12_GRAPHICS, 0x0c9ece4d, 0x2f6e, 0x4f01, 0x8c, 0x96, 0xe8, 0x9e, 0x33, 0x1b, 0x47, 0xb1);
|
| 234 |
+
DEFINE_GUID(DXCORE_ADAPTER_ATTRIBUTE_D3D12_CORE_COMPUTE, 0x248e2800, 0xa793, 0x4724, 0xab, 0xaa, 0x23, 0xa6, 0xde, 0x1b, 0xe0, 0x90);
|
| 235 |
+
DEFINE_GUID(DXCORE_ADAPTER_ATTRIBUTE_D3D12_GENERIC_ML, 0xb71b0d41, 0x1088, 0x422f, 0xa2, 0x7c, 0x2, 0x50, 0xb7, 0xd3, 0xa9, 0x88);
|
| 236 |
+
DEFINE_GUID(DXCORE_ADAPTER_ATTRIBUTE_D3D12_GENERIC_MEDIA, 0x8eb2c848, 0x82f6, 0x4b49, 0xaa, 0x87, 0xae, 0xcf, 0xcf, 0x1, 0x74, 0xc6);
|
| 237 |
+
|
| 238 |
+
DEFINE_GUID(DXCORE_HARDWARE_TYPE_ATTRIBUTE_GPU, 0xb69eb219, 0x3ded, 0x4464, 0x97, 0x9f, 0xa0, 0xb, 0xd4, 0x68, 0x70, 0x6);
|
| 239 |
+
DEFINE_GUID(DXCORE_HARDWARE_TYPE_ATTRIBUTE_COMPUTE_ACCELERATOR, 0xe0b195da, 0x58ef, 0x4a22, 0x90, 0xf1, 0x1f, 0x28, 0x16, 0x9c, 0xab, 0x8d);
|
| 240 |
+
DEFINE_GUID(DXCORE_HARDWARE_TYPE_ATTRIBUTE_NPU, 0xd46140c4, 0xadd7, 0x451b, 0x9e, 0x56, 0x6, 0xfe, 0x8c, 0x3b, 0x58, 0xed);
|
| 241 |
+
DEFINE_GUID(DXCORE_HARDWARE_TYPE_ATTRIBUTE_MEDIA_ACCELERATOR, 0x66bdb96a, 0x50b, 0x44c7, 0xa4, 0xfd, 0xd1, 0x44, 0xce, 0xa, 0xb4, 0x43);
|
| 242 |
+
|
| 243 |
+
/* interface IDXCoreAdapter */
|
| 244 |
+
MIDL_INTERFACE("f0db4c7f-fe5a-42a2-bd62-f2a6cf6fc83e")
|
| 245 |
+
IDXCoreAdapter : public IUnknown
|
| 246 |
+
{
|
| 247 |
+
public:
|
| 248 |
+
virtual bool STDMETHODCALLTYPE IsValid() = 0;
|
| 249 |
+
|
| 250 |
+
virtual bool STDMETHODCALLTYPE IsAttributeSupported(
|
| 251 |
+
REFGUID attributeGUID) = 0;
|
| 252 |
+
|
| 253 |
+
virtual bool STDMETHODCALLTYPE IsPropertySupported(
|
| 254 |
+
DXCoreAdapterProperty property) = 0;
|
| 255 |
+
|
| 256 |
+
virtual HRESULT STDMETHODCALLTYPE GetProperty(
|
| 257 |
+
DXCoreAdapterProperty property,
|
| 258 |
+
size_t bufferSize,
|
| 259 |
+
_Out_writes_bytes_(bufferSize) void *propertyData) = 0;
|
| 260 |
+
|
| 261 |
+
template <class T>
|
| 262 |
+
HRESULT GetProperty(
|
| 263 |
+
DXCoreAdapterProperty property,
|
| 264 |
+
_Out_writes_bytes_(sizeof(T)) T *propertyData)
|
| 265 |
+
{
|
| 266 |
+
return GetProperty(property,
|
| 267 |
+
sizeof(T),
|
| 268 |
+
(void*)propertyData);
|
| 269 |
+
}
|
| 270 |
+
|
| 271 |
+
virtual HRESULT STDMETHODCALLTYPE GetPropertySize(
|
| 272 |
+
DXCoreAdapterProperty property,
|
| 273 |
+
_Out_ size_t *bufferSize) = 0;
|
| 274 |
+
|
| 275 |
+
virtual bool STDMETHODCALLTYPE IsQueryStateSupported(
|
| 276 |
+
DXCoreAdapterState property) = 0;
|
| 277 |
+
|
| 278 |
+
virtual HRESULT STDMETHODCALLTYPE QueryState(
|
| 279 |
+
DXCoreAdapterState state,
|
| 280 |
+
size_t inputStateDetailsSize,
|
| 281 |
+
_In_reads_bytes_opt_(inputStateDetailsSize) const void *inputStateDetails,
|
| 282 |
+
size_t outputBufferSize,
|
| 283 |
+
_Out_writes_bytes_(outputBufferSize) void *outputBuffer) = 0;
|
| 284 |
+
|
| 285 |
+
template <class T1, class T2>
|
| 286 |
+
HRESULT QueryState(
|
| 287 |
+
DXCoreAdapterState state,
|
| 288 |
+
_In_reads_bytes_opt_(sizeof(T1)) const T1 *inputStateDetails,
|
| 289 |
+
_Out_writes_bytes_(sizeof(T2)) T2 *outputBuffer)
|
| 290 |
+
{
|
| 291 |
+
return QueryState(state,
|
| 292 |
+
sizeof(T1),
|
| 293 |
+
(const void*)inputStateDetails,
|
| 294 |
+
sizeof(T2),
|
| 295 |
+
(void*)outputBuffer);
|
| 296 |
+
}
|
| 297 |
+
|
| 298 |
+
template <class T>
|
| 299 |
+
HRESULT QueryState(
|
| 300 |
+
DXCoreAdapterState state,
|
| 301 |
+
_Out_writes_bytes_(sizeof(T)) T *outputBuffer)
|
| 302 |
+
{
|
| 303 |
+
return QueryState(state,
|
| 304 |
+
0,
|
| 305 |
+
nullptr,
|
| 306 |
+
sizeof(T),
|
| 307 |
+
(void*)outputBuffer);
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
virtual bool STDMETHODCALLTYPE IsSetStateSupported(
|
| 311 |
+
DXCoreAdapterState property) = 0;
|
| 312 |
+
|
| 313 |
+
virtual HRESULT STDMETHODCALLTYPE SetState(
|
| 314 |
+
DXCoreAdapterState state,
|
| 315 |
+
size_t inputStateDetailsSize,
|
| 316 |
+
_In_reads_bytes_opt_(inputStateDetailsSize) const void *inputStateDetails,
|
| 317 |
+
size_t inputDataSize,
|
| 318 |
+
_In_reads_bytes_(inputDataSize) const void *inputData) = 0;
|
| 319 |
+
|
| 320 |
+
template <class T1, class T2>
|
| 321 |
+
HRESULT SetState(
|
| 322 |
+
DXCoreAdapterState state,
|
| 323 |
+
const T1 *inputStateDetails,
|
| 324 |
+
const T2 *inputData)
|
| 325 |
+
{
|
| 326 |
+
return SetState(state,
|
| 327 |
+
sizeof(T1),
|
| 328 |
+
(const void*)inputStateDetails,
|
| 329 |
+
sizeof(T2),
|
| 330 |
+
(const void*)inputData);
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
+
virtual HRESULT STDMETHODCALLTYPE GetFactory(
|
| 334 |
+
REFIID riid,
|
| 335 |
+
_COM_Outptr_ void** ppvFactory
|
| 336 |
+
) = 0;
|
| 337 |
+
|
| 338 |
+
template <class T>
|
| 339 |
+
HRESULT GetFactory(
|
| 340 |
+
_COM_Outptr_ T** ppvFactory
|
| 341 |
+
)
|
| 342 |
+
{
|
| 343 |
+
return GetFactory(IID_PPV_ARGS(ppvFactory));
|
| 344 |
+
}
|
| 345 |
+
};
|
| 346 |
+
|
| 347 |
+
/* interface IDXCoreAdapter1 */
|
| 348 |
+
MIDL_INTERFACE("a0783366-cfa3-43be-9d79-55b2da97c63c")
|
| 349 |
+
IDXCoreAdapter1 : public IDXCoreAdapter
|
| 350 |
+
{
|
| 351 |
+
public:
|
| 352 |
+
virtual HRESULT STDMETHODCALLTYPE GetPropertyWithInput(
|
| 353 |
+
DXCoreAdapterProperty property,
|
| 354 |
+
size_t inputPropertyDetailsSize,
|
| 355 |
+
_In_reads_bytes_opt_(inputPropertyDetailsSize) const void *inputPropertyDetails,
|
| 356 |
+
size_t outputBufferSize,
|
| 357 |
+
_Out_writes_bytes_(outputBufferSize) void *outputBuffer) = 0;
|
| 358 |
+
|
| 359 |
+
template <class T1, class T2>
|
| 360 |
+
HRESULT GetPropertyWithInput(
|
| 361 |
+
DXCoreAdapterProperty property,
|
| 362 |
+
_In_reads_bytes_opt_(sizeof(T1)) const T1 *inputPropertyDetails,
|
| 363 |
+
_Out_writes_bytes_(sizeof(T2)) T2 *outputBuffer)
|
| 364 |
+
{
|
| 365 |
+
return GetPropertyWithInput(property,
|
| 366 |
+
sizeof(T1),
|
| 367 |
+
(const void*)inputPropertyDetails,
|
| 368 |
+
sizeof(T2),
|
| 369 |
+
(void*)outputBuffer);
|
| 370 |
+
}
|
| 371 |
+
};
|
| 372 |
+
|
| 373 |
+
/* interface IDXCoreAdapterList */
|
| 374 |
+
MIDL_INTERFACE("526c7776-40e9-459b-b711-f32ad76dfc28")
|
| 375 |
+
IDXCoreAdapterList : public IUnknown
|
| 376 |
+
{
|
| 377 |
+
public:
|
| 378 |
+
virtual HRESULT STDMETHODCALLTYPE GetAdapter(
|
| 379 |
+
uint32_t index,
|
| 380 |
+
REFIID riid,
|
| 381 |
+
_COM_Outptr_ void **ppvAdapter) = 0;
|
| 382 |
+
|
| 383 |
+
template<class T>
|
| 384 |
+
HRESULT STDMETHODCALLTYPE GetAdapter(
|
| 385 |
+
uint32_t index,
|
| 386 |
+
_COM_Outptr_ T **ppvAdapter)
|
| 387 |
+
{
|
| 388 |
+
return GetAdapter(index,
|
| 389 |
+
IID_PPV_ARGS(ppvAdapter));
|
| 390 |
+
}
|
| 391 |
+
|
| 392 |
+
virtual uint32_t STDMETHODCALLTYPE GetAdapterCount() = 0;
|
| 393 |
+
|
| 394 |
+
virtual bool STDMETHODCALLTYPE IsStale() = 0;
|
| 395 |
+
|
| 396 |
+
virtual HRESULT STDMETHODCALLTYPE GetFactory(
|
| 397 |
+
REFIID riid,
|
| 398 |
+
_COM_Outptr_ void** ppvFactory
|
| 399 |
+
) = 0;
|
| 400 |
+
|
| 401 |
+
template <class T>
|
| 402 |
+
HRESULT GetFactory(
|
| 403 |
+
_COM_Outptr_ T** ppvFactory
|
| 404 |
+
)
|
| 405 |
+
{
|
| 406 |
+
return GetFactory(IID_PPV_ARGS(ppvFactory));
|
| 407 |
+
}
|
| 408 |
+
|
| 409 |
+
virtual HRESULT STDMETHODCALLTYPE Sort(
|
| 410 |
+
uint32_t numPreferences,
|
| 411 |
+
_In_reads_(numPreferences) const DXCoreAdapterPreference* preferences) = 0;
|
| 412 |
+
|
| 413 |
+
virtual bool STDMETHODCALLTYPE IsAdapterPreferenceSupported(
|
| 414 |
+
DXCoreAdapterPreference preference) = 0;
|
| 415 |
+
};
|
| 416 |
+
|
| 417 |
+
/* interface IDXCoreAdapterFactory */
|
| 418 |
+
MIDL_INTERFACE("78ee5945-c36e-4b13-a669-005dd11c0f06")
|
| 419 |
+
IDXCoreAdapterFactory : public IUnknown
|
| 420 |
+
{
|
| 421 |
+
public:
|
| 422 |
+
|
| 423 |
+
virtual HRESULT STDMETHODCALLTYPE CreateAdapterList(
|
| 424 |
+
uint32_t numAttributes,
|
| 425 |
+
_In_reads_(numAttributes) const GUID *filterAttributes,
|
| 426 |
+
REFIID riid,
|
| 427 |
+
_COM_Outptr_ void **ppvAdapterList) = 0;
|
| 428 |
+
|
| 429 |
+
template<class T>
|
| 430 |
+
HRESULT STDMETHODCALLTYPE CreateAdapterList(
|
| 431 |
+
uint32_t numAttributes,
|
| 432 |
+
_In_reads_(numAttributes) const GUID *filterAttributes,
|
| 433 |
+
_COM_Outptr_ T **ppvAdapterList)
|
| 434 |
+
{
|
| 435 |
+
return CreateAdapterList(numAttributes,
|
| 436 |
+
filterAttributes,
|
| 437 |
+
IID_PPV_ARGS(ppvAdapterList));
|
| 438 |
+
}
|
| 439 |
+
|
| 440 |
+
virtual HRESULT STDMETHODCALLTYPE GetAdapterByLuid(
|
| 441 |
+
const LUID &adapterLUID,
|
| 442 |
+
REFIID riid,
|
| 443 |
+
_COM_Outptr_ void **ppvAdapter) = 0;
|
| 444 |
+
|
| 445 |
+
template<class T>
|
| 446 |
+
HRESULT STDMETHODCALLTYPE GetAdapterByLuid(
|
| 447 |
+
const LUID &adapterLUID,
|
| 448 |
+
_COM_Outptr_ T **ppvAdapter)
|
| 449 |
+
{
|
| 450 |
+
return GetAdapterByLuid(adapterLUID,
|
| 451 |
+
IID_PPV_ARGS(ppvAdapter));
|
| 452 |
+
}
|
| 453 |
+
|
| 454 |
+
virtual bool STDMETHODCALLTYPE IsNotificationTypeSupported(
|
| 455 |
+
DXCoreNotificationType notificationType) = 0;
|
| 456 |
+
|
| 457 |
+
virtual HRESULT STDMETHODCALLTYPE RegisterEventNotification(
|
| 458 |
+
_In_ IUnknown *dxCoreObject,
|
| 459 |
+
DXCoreNotificationType notificationType,
|
| 460 |
+
_In_ PFN_DXCORE_NOTIFICATION_CALLBACK callbackFunction,
|
| 461 |
+
_In_opt_ void *callbackContext,
|
| 462 |
+
_Out_ uint32_t *eventCookie) = 0;
|
| 463 |
+
|
| 464 |
+
virtual HRESULT STDMETHODCALLTYPE UnregisterEventNotification(
|
| 465 |
+
uint32_t eventCookie) = 0;
|
| 466 |
+
};
|
| 467 |
+
|
| 468 |
+
/* interface IDXCoreAdapterFactory1 */
|
| 469 |
+
MIDL_INTERFACE("d5682e19-6d21-401c-827a-9a51a4ea35d7")
|
| 470 |
+
IDXCoreAdapterFactory1 : public IDXCoreAdapterFactory
|
| 471 |
+
{
|
| 472 |
+
public:
|
| 473 |
+
virtual HRESULT STDMETHODCALLTYPE CreateAdapterListByWorkload(
|
| 474 |
+
DXCoreWorkload workload,
|
| 475 |
+
DXCoreRuntimeFilterFlags runtimeFilter,
|
| 476 |
+
DXCoreHardwareTypeFilterFlags hardwareTypeFilter,
|
| 477 |
+
REFIID riid,
|
| 478 |
+
_COM_Outptr_ void **ppvAdapterList) = 0;
|
| 479 |
+
|
| 480 |
+
template<class T>
|
| 481 |
+
HRESULT STDMETHODCALLTYPE CreateAdapterListByWorkload(
|
| 482 |
+
DXCoreWorkload workload,
|
| 483 |
+
DXCoreRuntimeFilterFlags runtimeFilter,
|
| 484 |
+
DXCoreHardwareTypeFilterFlags hardwareTypeFilter,
|
| 485 |
+
_COM_Outptr_ T **ppvAdapterList)
|
| 486 |
+
{
|
| 487 |
+
return CreateAdapterListByWorkload(workload,
|
| 488 |
+
runtimeFilter,
|
| 489 |
+
hardwareTypeFilter,
|
| 490 |
+
IID_PPV_ARGS(ppvAdapterList));
|
| 491 |
+
}
|
| 492 |
+
};
|
| 493 |
+
|
| 494 |
+
#endif // __cplusplus
|
| 495 |
+
|
| 496 |
+
#endif // __dxcore_interface_h__
|
| 497 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxdiag.h
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*==========================================================================;
|
| 2 |
+
*
|
| 3 |
+
* Copyright (C) Microsoft Corporation. All Rights Reserved.
|
| 4 |
+
*
|
| 5 |
+
* File: dxdiag.h
|
| 6 |
+
* Content: DirectX Diagnostic Tool include file
|
| 7 |
+
*
|
| 8 |
+
****************************************************************************/
|
| 9 |
+
|
| 10 |
+
#ifndef _DXDIAG_H_
|
| 11 |
+
#define _DXDIAG_H_
|
| 12 |
+
#include <winapifamily.h>
|
| 13 |
+
|
| 14 |
+
#pragma region Desktop Family
|
| 15 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
#include <ole2.h> // for DECLARE_INTERFACE_ and HRESULT
|
| 19 |
+
|
| 20 |
+
// This identifier is passed to IDxDiagProvider::Initialize in order to ensure that an
|
| 21 |
+
// application was built against the correct header files. This number is
|
| 22 |
+
// incremented whenever a header (or other) change would require applications
|
| 23 |
+
// to be rebuilt. If the version doesn't match, IDxDiagProvider::Initialize will fail.
|
| 24 |
+
// (The number itself has no meaning.)
|
| 25 |
+
#define DXDIAG_DX9_SDK_VERSION 111
|
| 26 |
+
|
| 27 |
+
#ifdef __cplusplus
|
| 28 |
+
extern "C" {
|
| 29 |
+
#endif
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
/****************************************************************************
|
| 33 |
+
*
|
| 34 |
+
* DxDiag Errors
|
| 35 |
+
*
|
| 36 |
+
****************************************************************************/
|
| 37 |
+
#define DXDIAG_E_INSUFFICIENT_BUFFER ((HRESULT)0x8007007AL) // HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER)
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
/****************************************************************************
|
| 41 |
+
*
|
| 42 |
+
* DxDiag CLSIDs
|
| 43 |
+
*
|
| 44 |
+
****************************************************************************/
|
| 45 |
+
|
| 46 |
+
// {A65B8071-3BFE-4213-9A5B-491DA4461CA7}
|
| 47 |
+
DEFINE_GUID(CLSID_DxDiagProvider,
|
| 48 |
+
0xA65B8071, 0x3BFE, 0x4213, 0x9A, 0x5B, 0x49, 0x1D, 0xA4, 0x46, 0x1C, 0xA7);
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
/****************************************************************************
|
| 52 |
+
*
|
| 53 |
+
* DxDiag Interface IIDs
|
| 54 |
+
*
|
| 55 |
+
****************************************************************************/
|
| 56 |
+
|
| 57 |
+
// {9C6B4CB0-23F8-49CC-A3ED-45A55000A6D2}
|
| 58 |
+
DEFINE_GUID(IID_IDxDiagProvider,
|
| 59 |
+
0x9C6B4CB0, 0x23F8, 0x49CC, 0xA3, 0xED, 0x45, 0xA5, 0x50, 0x00, 0xA6, 0xD2);
|
| 60 |
+
|
| 61 |
+
// {0x7D0F462F-0x4064-0x4862-BC7F-933E5058C10F}
|
| 62 |
+
DEFINE_GUID(IID_IDxDiagContainer,
|
| 63 |
+
0x7D0F462F, 0x4064, 0x4862, 0xBC, 0x7F, 0x93, 0x3E, 0x50, 0x58, 0xC1, 0x0F);
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
/****************************************************************************
|
| 67 |
+
*
|
| 68 |
+
* DxDiag Interface Pointer definitions
|
| 69 |
+
*
|
| 70 |
+
****************************************************************************/
|
| 71 |
+
|
| 72 |
+
typedef struct IDxDiagProvider *LPDXDIAGPROVIDER, *PDXDIAGPROVIDER;
|
| 73 |
+
|
| 74 |
+
typedef struct IDxDiagContainer *LPDXDIAGCONTAINER, *PDXDIAGCONTAINER;
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
/****************************************************************************
|
| 78 |
+
*
|
| 79 |
+
* DxDiag Structures
|
| 80 |
+
*
|
| 81 |
+
****************************************************************************/
|
| 82 |
+
|
| 83 |
+
typedef struct _DXDIAG_INIT_PARAMS
|
| 84 |
+
{
|
| 85 |
+
DWORD dwSize; // Size of this structure.
|
| 86 |
+
DWORD dwDxDiagHeaderVersion; // Pass in DXDIAG_DX9_SDK_VERSION. This verifies
|
| 87 |
+
// the header and dll are correctly matched.
|
| 88 |
+
BOOL bAllowWHQLChecks; // If true, allow dxdiag to check if drivers are
|
| 89 |
+
// digital signed as logo'd by WHQL which may
|
| 90 |
+
// connect via internet to update WHQL certificates.
|
| 91 |
+
VOID* pReserved; // Reserved. Must be NULL.
|
| 92 |
+
} DXDIAG_INIT_PARAMS;
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
/****************************************************************************
|
| 96 |
+
*
|
| 97 |
+
* DxDiag Application Interfaces
|
| 98 |
+
*
|
| 99 |
+
****************************************************************************/
|
| 100 |
+
|
| 101 |
+
//
|
| 102 |
+
// COM definition for IDxDiagProvider
|
| 103 |
+
//
|
| 104 |
+
#undef INTERFACE // External COM Implementation
|
| 105 |
+
#define INTERFACE IDxDiagProvider
|
| 106 |
+
DECLARE_INTERFACE_(IDxDiagProvider,IUnknown)
|
| 107 |
+
{
|
| 108 |
+
/*** IUnknown methods ***/
|
| 109 |
+
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID *ppvObj) PURE;
|
| 110 |
+
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
| 111 |
+
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
| 112 |
+
|
| 113 |
+
/*** IDxDiagProvider methods ***/
|
| 114 |
+
STDMETHOD(Initialize) (THIS_ DXDIAG_INIT_PARAMS* pParams) PURE;
|
| 115 |
+
STDMETHOD(GetRootContainer) (THIS_ struct IDxDiagContainer **ppInstance) PURE;
|
| 116 |
+
};
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
//
|
| 120 |
+
// COM definition for IDxDiagContainer
|
| 121 |
+
//
|
| 122 |
+
#undef INTERFACE // External COM Implementation
|
| 123 |
+
#define INTERFACE IDxDiagContainer
|
| 124 |
+
DECLARE_INTERFACE_(IDxDiagContainer,IUnknown)
|
| 125 |
+
{
|
| 126 |
+
/*** IUnknown methods ***/
|
| 127 |
+
STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID *ppvObj) PURE;
|
| 128 |
+
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
|
| 129 |
+
STDMETHOD_(ULONG,Release) (THIS) PURE;
|
| 130 |
+
|
| 131 |
+
/*** IDxDiagContainer methods ***/
|
| 132 |
+
STDMETHOD(GetNumberOfChildContainers) (THIS_ DWORD *pdwCount) PURE;
|
| 133 |
+
STDMETHOD(EnumChildContainerNames) (THIS_ DWORD dwIndex, LPWSTR pwszContainer, DWORD cchContainer) PURE;
|
| 134 |
+
STDMETHOD(GetChildContainer) (THIS_ LPCWSTR pwszContainer, IDxDiagContainer **ppInstance) PURE;
|
| 135 |
+
STDMETHOD(GetNumberOfProps) (THIS_ DWORD *pdwCount) PURE;
|
| 136 |
+
STDMETHOD(EnumPropNames) (THIS_ DWORD dwIndex, LPWSTR pwszPropName, DWORD cchPropName) PURE;
|
| 137 |
+
STDMETHOD(GetProp) (THIS_ LPCWSTR pwszPropName, VARIANT *pvarProp) PURE;
|
| 138 |
+
};
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
/****************************************************************************
|
| 142 |
+
*
|
| 143 |
+
* DxDiag application interface macros
|
| 144 |
+
*
|
| 145 |
+
****************************************************************************/
|
| 146 |
+
|
| 147 |
+
#if !defined(__cplusplus) || defined(CINTERFACE)
|
| 148 |
+
|
| 149 |
+
#define IDxDiagProvider_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
| 150 |
+
#define IDxDiagProvider_AddRef(p) (p)->lpVtbl->AddRef(p)
|
| 151 |
+
#define IDxDiagProvider_Release(p) (p)->lpVtbl->Release(p)
|
| 152 |
+
#define IDxDiagProvider_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
|
| 153 |
+
#define IDxDiagProvider_GetRootContainer(p,a) (p)->lpVtbl->GetRootContainer(p,a)
|
| 154 |
+
|
| 155 |
+
#define IDxDiagContainer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
| 156 |
+
#define IDxDiagContainer_AddRef(p) (p)->lpVtbl->AddRef(p)
|
| 157 |
+
#define IDxDiagContainer_Release(p) (p)->lpVtbl->Release(p)
|
| 158 |
+
#define IDxDiagContainer_GetNumberOfChildContainers(p,a) (p)->lpVtbl->GetNumberOfChildContainers(p,a)
|
| 159 |
+
#define IDxDiagContainer_EnumChildContainerNames(p,a,b,c) (p)->lpVtbl->EnumChildContainerNames(p,a,b,c)
|
| 160 |
+
#define IDxDiagContainer_GetChildContainer(p,a,b) (p)->lpVtbl->GetChildContainer(p,a,b)
|
| 161 |
+
#define IDxDiagContainer_GetNumberOfProps(p,a) (p)->lpVtbl->GetNumberOfProps(p,a)
|
| 162 |
+
#define IDxDiagContainer_EnumProps(p,a,b) (p)->lpVtbl->EnumProps(p,a,b,c)
|
| 163 |
+
#define IDxDiagContainer_GetProp(p,a,b) (p)->lpVtbl->GetProp(p,a,b)
|
| 164 |
+
|
| 165 |
+
#else /* C++ */
|
| 166 |
+
|
| 167 |
+
#define IDxDiagProvider_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
|
| 168 |
+
#define IDxDiagProvider_AddRef(p) (p)->AddRef(p)
|
| 169 |
+
#define IDxDiagProvider_Release(p) (p)->Release(p)
|
| 170 |
+
#define IDxDiagProvider_Initialize(p,a,b) (p)->Initialize(p,a,b)
|
| 171 |
+
#define IDxDiagProvider_GetRootContainer(p,a) (p)->GetRootContainer(p,a)
|
| 172 |
+
|
| 173 |
+
#define IDxDiagContainer_QueryInterface(p,a,b) (p)->QueryInterface(p,a,b)
|
| 174 |
+
#define IDxDiagContainer_AddRef(p) (p)->AddRef(p)
|
| 175 |
+
#define IDxDiagContainer_Release(p) (p)->Release(p)
|
| 176 |
+
#define IDxDiagContainer_GetNumberOfChildContainers(p,a) (p)->GetNumberOfChildContainers(p,a)
|
| 177 |
+
#define IDxDiagContainer_EnumChildContainerNames(p,a,b,c) (p)->EnumChildContainerNames(p,a,b,c)
|
| 178 |
+
#define IDxDiagContainer_GetChildContainer(p,a,b) (p)->GetChildContainer(p,a,b)
|
| 179 |
+
#define IDxDiagContainer_GetNumberOfProps(p,a) (p)->GetNumberOfProps(p,a)
|
| 180 |
+
#define IDxDiagContainer_EnumProps(p,a,b) (p)->EnumProps(p,a,b,c)
|
| 181 |
+
#define IDxDiagContainer_GetProp(p,a,b) (p)->GetProp(p,a,b)
|
| 182 |
+
|
| 183 |
+
#endif
|
| 184 |
+
|
| 185 |
+
|
| 186 |
+
#ifdef __cplusplus
|
| 187 |
+
}
|
| 188 |
+
#endif
|
| 189 |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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*==========================================================================;
|
| 2 |
+
*
|
| 3 |
+
* Copyright (C) Microsoft Corporation. All Rights Reserved.
|
| 4 |
+
*
|
| 5 |
+
* Content: DXGI Basic Device Driver Interface Definitions
|
| 6 |
+
*
|
| 7 |
+
***************************************************************************/
|
| 8 |
+
|
| 9 |
+
#ifndef _DXGIDDI_H
|
| 10 |
+
#define _DXGIDDI_H
|
| 11 |
+
#include <winapifamily.h>
|
| 12 |
+
|
| 13 |
+
#pragma region Desktop Family
|
| 14 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
#include "dxgicommon.h"
|
| 19 |
+
#include "dxgitype.h"
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
//--------------------------------------------------------------------------------------------------------
|
| 23 |
+
// DXGI error codes
|
| 24 |
+
//--------------------------------------------------------------------------------------------------------
|
| 25 |
+
#define _FACDXGI_DDI 0x87b
|
| 26 |
+
#define MAKE_DXGI_DDI_HRESULT( code ) MAKE_HRESULT( 1, _FACDXGI_DDI, code )
|
| 27 |
+
#define MAKE_DXGI_DDI_STATUS( code ) MAKE_HRESULT( 0, _FACDXGI_DDI, code )
|
| 28 |
+
|
| 29 |
+
// DXGI DDI error codes have moved to winerror.h
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
//========================================================================================================
|
| 33 |
+
// This is the standard DDI that any DXGI-enabled user-mode driver should support
|
| 34 |
+
//
|
| 35 |
+
|
| 36 |
+
//--------------------------------------------------------------------------------------------------------
|
| 37 |
+
typedef UINT_PTR DXGI_DDI_HDEVICE;
|
| 38 |
+
typedef UINT_PTR DXGI_DDI_HRESOURCE;
|
| 39 |
+
|
| 40 |
+
//--------------------------------------------------------------------------------------------------------
|
| 41 |
+
typedef enum DXGI_DDI_RESIDENCY
|
| 42 |
+
{
|
| 43 |
+
DXGI_DDI_RESIDENCY_FULLY_RESIDENT = 1,
|
| 44 |
+
DXGI_DDI_RESIDENCY_RESIDENT_IN_SHARED_MEMORY = 2,
|
| 45 |
+
DXGI_DDI_RESIDENCY_EVICTED_TO_DISK = 3,
|
| 46 |
+
} DXGI_DDI_RESIDENCY;
|
| 47 |
+
|
| 48 |
+
//--------------------------------------------------------------------------------------------------------
|
| 49 |
+
typedef enum DXGI_DDI_FLIP_INTERVAL_TYPE
|
| 50 |
+
{
|
| 51 |
+
DXGI_DDI_FLIP_INTERVAL_IMMEDIATE = 0,
|
| 52 |
+
DXGI_DDI_FLIP_INTERVAL_ONE = 1,
|
| 53 |
+
DXGI_DDI_FLIP_INTERVAL_TWO = 2,
|
| 54 |
+
DXGI_DDI_FLIP_INTERVAL_THREE = 3,
|
| 55 |
+
DXGI_DDI_FLIP_INTERVAL_FOUR = 4,
|
| 56 |
+
|
| 57 |
+
// For the sync interval override in the present callbacks, IMMEDIATE means the API
|
| 58 |
+
// semantic of sync interval 0, where IMMEDIATE_ALLOW_TEARING is equivalent to the addition
|
| 59 |
+
// of the ALLOW_TEARING API flags.
|
| 60 |
+
DXGI_DDI_FLIP_INTERVAL_IMMEDIATE_ALLOW_TEARING = 5,
|
| 61 |
+
} DXGI_DDI_FLIP_INTERVAL_TYPE;
|
| 62 |
+
|
| 63 |
+
//--------------------------------------------------------------------------------------------------------
|
| 64 |
+
typedef struct DXGI_DDI_PRESENT_FLAGS
|
| 65 |
+
{
|
| 66 |
+
union
|
| 67 |
+
{
|
| 68 |
+
struct
|
| 69 |
+
{
|
| 70 |
+
UINT Blt : 1; // 0x00000001
|
| 71 |
+
UINT Flip : 1; // 0x00000002
|
| 72 |
+
UINT PreferRight : 1; // 0x00000004
|
| 73 |
+
UINT TemporaryMono : 1; // 0x00000008
|
| 74 |
+
UINT AllowTearing : 1; // 0x00000010
|
| 75 |
+
UINT AllowFlexibleRefresh : 1; // 0x00000020
|
| 76 |
+
UINT NoScanoutTransform : 1; // 0x00000040
|
| 77 |
+
UINT Reserved :25;
|
| 78 |
+
};
|
| 79 |
+
UINT Value;
|
| 80 |
+
};
|
| 81 |
+
} DXGI_DDI_PRESENT_FLAGS;
|
| 82 |
+
|
| 83 |
+
//--------------------------------------------------------------------------------------------------------
|
| 84 |
+
typedef struct DXGI_DDI_ARG_PRESENT
|
| 85 |
+
{
|
| 86 |
+
DXGI_DDI_HDEVICE hDevice; //in
|
| 87 |
+
DXGI_DDI_HRESOURCE hSurfaceToPresent; //in
|
| 88 |
+
UINT SrcSubResourceIndex; // Index of surface level
|
| 89 |
+
DXGI_DDI_HRESOURCE hDstResource; // if non-zero, it's the destination of the present
|
| 90 |
+
UINT DstSubResourceIndex; // Index of surface level
|
| 91 |
+
void * pDXGIContext; // opaque: Pass this to the Present callback
|
| 92 |
+
DXGI_DDI_PRESENT_FLAGS Flags; // Presentation flags.
|
| 93 |
+
DXGI_DDI_FLIP_INTERVAL_TYPE FlipInterval; // Presentation interval (flip only)
|
| 94 |
+
}DXGI_DDI_ARG_PRESENT;
|
| 95 |
+
|
| 96 |
+
//--------------------------------------------------------------------------------------------------------
|
| 97 |
+
typedef struct DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES
|
| 98 |
+
{
|
| 99 |
+
DXGI_DDI_HDEVICE hDevice; //in
|
| 100 |
+
CONST DXGI_DDI_HRESOURCE* pResources; //in: Array of Resources to rotate identities; 0 <= 1, 1 <= 2, etc.
|
| 101 |
+
UINT Resources;
|
| 102 |
+
} DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES;
|
| 103 |
+
|
| 104 |
+
typedef struct DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS
|
| 105 |
+
{
|
| 106 |
+
DXGI_DDI_HDEVICE hDevice; //in
|
| 107 |
+
DXGI_GAMMA_CONTROL_CAPABILITIES * pGammaCapabilities; //in/out
|
| 108 |
+
} DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS;
|
| 109 |
+
|
| 110 |
+
typedef struct DXGI_DDI_ARG_SET_GAMMA_CONTROL
|
| 111 |
+
{
|
| 112 |
+
DXGI_DDI_HDEVICE hDevice; //in
|
| 113 |
+
DXGI_GAMMA_CONTROL GammaControl; //in
|
| 114 |
+
} DXGI_DDI_ARG_SET_GAMMA_CONTROL;
|
| 115 |
+
|
| 116 |
+
typedef struct DXGI_DDI_ARG_SETDISPLAYMODE
|
| 117 |
+
{
|
| 118 |
+
DXGI_DDI_HDEVICE hDevice; //in
|
| 119 |
+
DXGI_DDI_HRESOURCE hResource; // Source surface
|
| 120 |
+
UINT SubResourceIndex; // Index of surface level
|
| 121 |
+
} DXGI_DDI_ARG_SETDISPLAYMODE;
|
| 122 |
+
|
| 123 |
+
typedef struct DXGI_DDI_ARG_SETRESOURCEPRIORITY
|
| 124 |
+
{
|
| 125 |
+
DXGI_DDI_HDEVICE hDevice; //in
|
| 126 |
+
DXGI_DDI_HRESOURCE hResource; //in
|
| 127 |
+
UINT Priority; //in
|
| 128 |
+
} DXGI_DDI_ARG_SETRESOURCEPRIORITY;
|
| 129 |
+
|
| 130 |
+
typedef struct DXGI_DDI_ARG_QUERYRESOURCERESIDENCY
|
| 131 |
+
{
|
| 132 |
+
DXGI_DDI_HDEVICE hDevice; //in
|
| 133 |
+
_Field_size_( Resources ) CONST DXGI_DDI_HRESOURCE * pResources; //in
|
| 134 |
+
_Field_size_( Resources ) DXGI_DDI_RESIDENCY * pStatus; //out
|
| 135 |
+
SIZE_T Resources; //in
|
| 136 |
+
} DXGI_DDI_ARG_QUERYRESOURCERESIDENCY;
|
| 137 |
+
|
| 138 |
+
//--------------------------------------------------------------------------------------------------------
|
| 139 |
+
// Remarks: Fractional value used to represent vertical and horizontal frequencies of a video mode
|
| 140 |
+
// (i.e. VSync and HSync). Vertical frequencies are stored in Hz. Horizontal frequencies
|
| 141 |
+
// are stored in KHz.
|
| 142 |
+
// The dynamic range of this encoding format, given 10^-7 resolution is {0..(2^32 - 1) / 10^7},
|
| 143 |
+
// which translates to {0..428.4967296} [Hz] for vertical frequencies and {0..428.4967296} [KHz]
|
| 144 |
+
// for horizontal frequencies. This sub-microseconds precision range should be acceptable even
|
| 145 |
+
// for a pro-video application (error in one microsecond for video signal synchronization would
|
| 146 |
+
// imply a time drift with a cycle of 10^7/(60*60*24) = 115.741 days.
|
| 147 |
+
//
|
| 148 |
+
// If rational number with a finite fractional sequence, use denominator of form 10^(length of fractional sequence).
|
| 149 |
+
// If rational number without a finite fractional sequence, or a sequence exceeding the precision allowed by the
|
| 150 |
+
// dynamic range of the denominator, or an irrational number, use an appropriate ratio of integers which best
|
| 151 |
+
// represents the value.
|
| 152 |
+
//
|
| 153 |
+
typedef struct DXGI_DDI_RATIONAL
|
| 154 |
+
{
|
| 155 |
+
UINT Numerator;
|
| 156 |
+
UINT Denominator;
|
| 157 |
+
} DXGI_DDI_RATIONAL;
|
| 158 |
+
|
| 159 |
+
//--------------------------------------------------------------------------------------------------------
|
| 160 |
+
typedef enum DXGI_DDI_MODE_SCANLINE_ORDER
|
| 161 |
+
{
|
| 162 |
+
DXGI_DDI_MODE_SCANLINE_ORDER_UNSPECIFIED = 0,
|
| 163 |
+
DXGI_DDI_MODE_SCANLINE_ORDER_PROGRESSIVE = 1,
|
| 164 |
+
DXGI_DDI_MODE_SCANLINE_ORDER_UPPER_FIELD_FIRST = 2,
|
| 165 |
+
DXGI_DDI_MODE_SCANLINE_ORDER_LOWER_FIELD_FIRST = 3,
|
| 166 |
+
} DXGI_DDI_MODE_SCANLINE_ORDER;
|
| 167 |
+
|
| 168 |
+
typedef enum DXGI_DDI_MODE_SCALING
|
| 169 |
+
{
|
| 170 |
+
DXGI_DDI_MODE_SCALING_UNSPECIFIED = 0,
|
| 171 |
+
DXGI_DDI_MODE_SCALING_STRETCHED = 1,
|
| 172 |
+
DXGI_DDI_MODE_SCALING_CENTERED = 2,
|
| 173 |
+
} DXGI_DDI_MODE_SCALING;
|
| 174 |
+
|
| 175 |
+
typedef enum DXGI_DDI_MODE_ROTATION
|
| 176 |
+
{
|
| 177 |
+
DXGI_DDI_MODE_ROTATION_UNSPECIFIED = 0,
|
| 178 |
+
DXGI_DDI_MODE_ROTATION_IDENTITY = 1,
|
| 179 |
+
DXGI_DDI_MODE_ROTATION_ROTATE90 = 2,
|
| 180 |
+
DXGI_DDI_MODE_ROTATION_ROTATE180 = 3,
|
| 181 |
+
DXGI_DDI_MODE_ROTATION_ROTATE270 = 4,
|
| 182 |
+
} DXGI_DDI_MODE_ROTATION;
|
| 183 |
+
|
| 184 |
+
typedef struct DXGI_DDI_MODE_DESC
|
| 185 |
+
{
|
| 186 |
+
UINT Width;
|
| 187 |
+
UINT Height;
|
| 188 |
+
DXGI_FORMAT Format;
|
| 189 |
+
DXGI_DDI_RATIONAL RefreshRate;
|
| 190 |
+
DXGI_DDI_MODE_SCANLINE_ORDER ScanlineOrdering;
|
| 191 |
+
DXGI_DDI_MODE_ROTATION Rotation;
|
| 192 |
+
DXGI_DDI_MODE_SCALING Scaling;
|
| 193 |
+
} DXGI_DDI_MODE_DESC;
|
| 194 |
+
|
| 195 |
+
// Bit indicates that UMD has the option to prevent this Resource from ever being a Primary
|
| 196 |
+
// UMD can prevent the actual flip (from optional primary to regular primary) and use a copy
|
| 197 |
+
// operation, during Present. Thus, it's possible the UMD can opt out of this Resource being
|
| 198 |
+
// actually used as a primary.
|
| 199 |
+
#define DXGI_DDI_PRIMARY_OPTIONAL 0x1
|
| 200 |
+
|
| 201 |
+
// Bit indicates that the Primary really represents the IDENTITY rotation, eventhough it will
|
| 202 |
+
// be used with non-IDENTITY display modes, since the application will take on the burden of
|
| 203 |
+
// honoring the output orientation by rotating, say the viewport and projection matrix.
|
| 204 |
+
#define DXGI_DDI_PRIMARY_NONPREROTATED 0x2
|
| 205 |
+
|
| 206 |
+
|
| 207 |
+
// Bit indicates that the primary is stereoscopic.
|
| 208 |
+
#define DXGI_DDI_PRIMARY_STEREO 0x4
|
| 209 |
+
|
| 210 |
+
// Bit indicates that this primary will be used for indirect presentation
|
| 211 |
+
#define DXGI_DDI_PRIMARY_INDIRECT 0x8
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
// Bit indicates that the driver cannot tolerate setting any subresource of the specified
|
| 215 |
+
// resource as a primary. The UMD should set this bit at resource creation time if it
|
| 216 |
+
// chooses to implement presentation from this surface via a copy operation. The DXGI
|
| 217 |
+
// runtime will not employ flip-style presentation if this bit is set
|
| 218 |
+
#define DXGI_DDI_PRIMARY_DRIVER_FLAG_NO_SCANOUT 0x1
|
| 219 |
+
|
| 220 |
+
typedef struct DXGI_DDI_PRIMARY_DESC
|
| 221 |
+
{
|
| 222 |
+
UINT Flags; // [in]
|
| 223 |
+
D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId; // [in]
|
| 224 |
+
DXGI_DDI_MODE_DESC ModeDesc; // [in]
|
| 225 |
+
UINT DriverFlags; // [out] Filled by the driver
|
| 226 |
+
} DXGI_DDI_PRIMARY_DESC;
|
| 227 |
+
|
| 228 |
+
typedef struct DXGI_DDI_ARG_BLT_FLAGS
|
| 229 |
+
{
|
| 230 |
+
union
|
| 231 |
+
{
|
| 232 |
+
struct
|
| 233 |
+
{
|
| 234 |
+
UINT Resolve : 1; // 0x00000001
|
| 235 |
+
UINT Convert : 1; // 0x00000002
|
| 236 |
+
UINT Stretch : 1; // 0x00000004
|
| 237 |
+
UINT Present : 1; // 0x00000008
|
| 238 |
+
UINT Reserved :28;
|
| 239 |
+
};
|
| 240 |
+
UINT Value;
|
| 241 |
+
};
|
| 242 |
+
} DXGI_DDI_ARG_BLT_FLAGS;
|
| 243 |
+
|
| 244 |
+
typedef struct DXGI_DDI_ARG_BLT
|
| 245 |
+
{
|
| 246 |
+
DXGI_DDI_HDEVICE hDevice; //in
|
| 247 |
+
DXGI_DDI_HRESOURCE hDstResource; //in
|
| 248 |
+
UINT DstSubresource; //in
|
| 249 |
+
UINT DstLeft; //in
|
| 250 |
+
UINT DstTop; //in
|
| 251 |
+
UINT DstRight; //in
|
| 252 |
+
UINT DstBottom; //in
|
| 253 |
+
DXGI_DDI_HRESOURCE hSrcResource; //in
|
| 254 |
+
UINT SrcSubresource; //in
|
| 255 |
+
DXGI_DDI_ARG_BLT_FLAGS Flags; //in
|
| 256 |
+
DXGI_DDI_MODE_ROTATION Rotate; //in
|
| 257 |
+
} DXGI_DDI_ARG_BLT;
|
| 258 |
+
|
| 259 |
+
typedef struct DXGI_DDI_ARG_RESOLVESHAREDRESOURCE
|
| 260 |
+
{
|
| 261 |
+
DXGI_DDI_HDEVICE hDevice; //in
|
| 262 |
+
DXGI_DDI_HRESOURCE hResource; //in
|
| 263 |
+
} DXGI_DDI_ARG_RESOLVESHAREDRESOURCE;
|
| 264 |
+
|
| 265 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8)
|
| 266 |
+
typedef struct DXGI_DDI_ARG_BLT1
|
| 267 |
+
{
|
| 268 |
+
DXGI_DDI_HDEVICE hDevice; //in
|
| 269 |
+
DXGI_DDI_HRESOURCE hDstResource; //in
|
| 270 |
+
UINT DstSubresource; //in
|
| 271 |
+
UINT DstLeft; //in
|
| 272 |
+
UINT DstTop; //in
|
| 273 |
+
UINT DstRight; //in
|
| 274 |
+
UINT DstBottom; //in
|
| 275 |
+
DXGI_DDI_HRESOURCE hSrcResource; //in
|
| 276 |
+
UINT SrcSubresource; //in
|
| 277 |
+
UINT SrcLeft; //in
|
| 278 |
+
UINT SrcTop; //in
|
| 279 |
+
UINT SrcRight; //in
|
| 280 |
+
UINT SrcBottom; //in
|
| 281 |
+
DXGI_DDI_ARG_BLT_FLAGS Flags; //in
|
| 282 |
+
DXGI_DDI_MODE_ROTATION Rotate; //in
|
| 283 |
+
} DXGI_DDI_ARG_BLT1;
|
| 284 |
+
|
| 285 |
+
typedef struct _DXGI_DDI_ARG_OFFERRESOURCES {
|
| 286 |
+
DXGI_DDI_HDEVICE hDevice; //in: device that created the resources
|
| 287 |
+
const DXGI_DDI_HRESOURCE* pResources; //in: array of resources to reset
|
| 288 |
+
UINT Resources; //in: number of elements in pResources
|
| 289 |
+
D3DDDI_OFFER_PRIORITY Priority; //in: priority with which to reset the resources
|
| 290 |
+
} DXGI_DDI_ARG_OFFERRESOURCES;
|
| 291 |
+
|
| 292 |
+
typedef struct _DXGI_DDI_ARG_RECLAIMRESOURCES {
|
| 293 |
+
DXGI_DDI_HDEVICE hDevice; //in: device that created the resources
|
| 294 |
+
const DXGI_DDI_HRESOURCE *pResources; //in: array of resources to reset
|
| 295 |
+
BOOL *pDiscarded; //out: optional array of booleans specifying whether each resource was discarded
|
| 296 |
+
UINT Resources; //in: number of elements in pResources and pDiscarded
|
| 297 |
+
} DXGI_DDI_ARG_RECLAIMRESOURCES;
|
| 298 |
+
|
| 299 |
+
//-----------------------------------------------------------------------------------------------------------
|
| 300 |
+
// Multi Plane Overlay DDI
|
| 301 |
+
//
|
| 302 |
+
|
| 303 |
+
#define DXGI_DDI_MAX_MULTIPLANE_OVERLAY_ALLOCATIONS 16
|
| 304 |
+
|
| 305 |
+
typedef struct DXGI_DDI_MULTIPLANE_OVERLAY_CAPS
|
| 306 |
+
{
|
| 307 |
+
UINT MaxPlanes; // Total number of planes supported (including the DWM's primary)
|
| 308 |
+
UINT NumCapabilityGroups; // Number of plane types supported.
|
| 309 |
+
} DXGI_DDI_MULTIPLANE_OVERLAY_CAPS;
|
| 310 |
+
|
| 311 |
+
|
| 312 |
+
typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS
|
| 313 |
+
{
|
| 314 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_ROTATION_WITHOUT_INDEPENDENT_FLIP = 0x1,
|
| 315 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_VERTICAL_FLIP = 0x2,
|
| 316 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_HORIZONTAL_FLIP = 0x4,
|
| 317 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_DEINTERLACE = 0x8,
|
| 318 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_STEREO = 0x10, // D3D10 or above only.
|
| 319 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_RGB = 0x20,
|
| 320 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_YUV = 0x40,
|
| 321 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_BILINEAR_FILTER = 0x80, // Can do bilinear stretching
|
| 322 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_HIGH_FILTER = 0x100, // Can do better than bilinear stretching
|
| 323 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_ROTATION = 0x200,
|
| 324 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_FULLSCREEN_POST_COMPOSITION = 0x400,
|
| 325 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_RESERVED1 = 0x800,
|
| 326 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_SHARED = 0x1000,
|
| 327 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_IMMEDIATE = 0x2000,
|
| 328 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS_PLANE0_FOR_VIRTUAL_MODE_ONLY = 0x4000,
|
| 329 |
+
} DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS;
|
| 330 |
+
|
| 331 |
+
typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS
|
| 332 |
+
{
|
| 333 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS_SEPARATE = 0x1,
|
| 334 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS_ROW_INTERLEAVED = 0x4,
|
| 335 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS_COLUMN_INTERLEAVED = 0x8,
|
| 336 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS_CHECKERBOARD = 0x10,
|
| 337 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS_FLIP_MODE = 0x20,
|
| 338 |
+
} DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS;
|
| 339 |
+
|
| 340 |
+
typedef struct DXGI_DDI_MULTIPLANE_OVERLAY_GROUP_CAPS
|
| 341 |
+
{
|
| 342 |
+
UINT NumPlanes;
|
| 343 |
+
float MaxStretchFactor;
|
| 344 |
+
float MaxShrinkFactor;
|
| 345 |
+
UINT OverlayCaps; // DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS
|
| 346 |
+
UINT StereoCaps; // DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS
|
| 347 |
+
} DXGI_DDI_MULTIPLANE_OVERLAY_GROUP_CAPS;
|
| 348 |
+
|
| 349 |
+
typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_FLAGS
|
| 350 |
+
{
|
| 351 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_FLAG_VERTICAL_FLIP = 0x1,
|
| 352 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_FLAG_HORIZONTAL_FLIP = 0x2,
|
| 353 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_FLAG_FULLSCREEN_POST_COMPOSITION = 0x4,
|
| 354 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_FLAG_NO_SCANOUT_TRANFORMATION = 0x8,
|
| 355 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_FLAG_NO_RENDER_PRESENT = 0x10,
|
| 356 |
+
} DXGI_DDI_MULTIPLANE_OVERLAY_FLAGS;
|
| 357 |
+
|
| 358 |
+
typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_BLEND
|
| 359 |
+
{
|
| 360 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_BLEND_OPAQUE = 0x0,
|
| 361 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_BLEND_ALPHABLEND = 0x1,
|
| 362 |
+
} DXGI_DDI_MULTIPLANE_OVERLAY_BLEND;
|
| 363 |
+
|
| 364 |
+
typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_VIDEO_FRAME_FORMAT
|
| 365 |
+
{
|
| 366 |
+
DXGI_DDI_MULIIPLANE_OVERLAY_VIDEO_FRAME_FORMAT_PROGRESSIVE = 0,
|
| 367 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_VIDEO_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1,
|
| 368 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_VIDEO_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2
|
| 369 |
+
} DXGI_DDI_MULTIPLANE_OVERLAY_VIDEO_FRAME_FORMAT;
|
| 370 |
+
|
| 371 |
+
typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_YCbCr_FLAGS
|
| 372 |
+
{
|
| 373 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_YCbCr_FLAG_NOMINAL_RANGE = 0x1, // 16 - 235 vs. 0 - 255
|
| 374 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_YCbCr_FLAG_BT709 = 0x2, // BT.709 vs. BT.601
|
| 375 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_YCbCr_FLAG_xvYCC = 0x4, // xvYCC vs. conventional YCbCr
|
| 376 |
+
} DXGI_DDI_MULTIPLANE_OVERLAY_YCbCr_FLAGS;
|
| 377 |
+
|
| 378 |
+
typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT
|
| 379 |
+
{
|
| 380 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_MONO = 0,
|
| 381 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_HORIZONTAL = 1,
|
| 382 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_VERTICAL = 2,
|
| 383 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_SEPARATE = 3,
|
| 384 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_MONO_OFFSET = 4,
|
| 385 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_ROW_INTERLEAVED = 5,
|
| 386 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_COLUMN_INTERLEAVED = 6,
|
| 387 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT_CHECKERBOARD = 7
|
| 388 |
+
} DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT;
|
| 389 |
+
|
| 390 |
+
typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_MODE
|
| 391 |
+
{
|
| 392 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_NONE = 0,
|
| 393 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_FRAME0 = 1,
|
| 394 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_FRAME1 = 2,
|
| 395 |
+
} DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_MODE;
|
| 396 |
+
|
| 397 |
+
typedef enum DXGI_DDI_MULTIPLANE_OVERLAY_STRETCH_QUALITY
|
| 398 |
+
{
|
| 399 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STRETCH_QUALITY_BILINEAR = 0x1, // Bilinear
|
| 400 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STRETCH_QUALITY_HIGH = 0x2, // Maximum
|
| 401 |
+
} DXGI_DDI_MULTIPLANE_OVERLAY_STRETCH_QUALITY;
|
| 402 |
+
|
| 403 |
+
typedef struct DXGI_DDI_MULTIPLANE_OVERLAY_ATTRIBUTES
|
| 404 |
+
{
|
| 405 |
+
UINT Flags; // DXGI_DDI_MULTIPLANE_OVERLAY_FLAGS
|
| 406 |
+
RECT SrcRect;
|
| 407 |
+
RECT DstRect;
|
| 408 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // M1
|
| 409 |
+
RECT ClipRect;
|
| 410 |
+
#endif
|
| 411 |
+
DXGI_DDI_MODE_ROTATION Rotation;
|
| 412 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_BLEND Blend;
|
| 413 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // MP
|
| 414 |
+
UINT DirtyRectCount;
|
| 415 |
+
RECT* pDirtyRects;
|
| 416 |
+
#else
|
| 417 |
+
UINT NumFilters;
|
| 418 |
+
void* pFilters;
|
| 419 |
+
#endif
|
| 420 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_VIDEO_FRAME_FORMAT VideoFrameFormat;
|
| 421 |
+
UINT YCbCrFlags; // DXGI_DDI_MULTIPLANE_OVERLAY_YCbCr_FLAGS
|
| 422 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT StereoFormat;
|
| 423 |
+
BOOL StereoLeftViewFrame0;
|
| 424 |
+
BOOL StereoBaseViewFrame0;
|
| 425 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_MODE StereoFlipMode;
|
| 426 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // M1
|
| 427 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STRETCH_QUALITY StretchQuality;
|
| 428 |
+
#endif
|
| 429 |
+
} DXGI_DDI_MULTIPLANE_OVERLAY_ATTRIBUTES;
|
| 430 |
+
|
| 431 |
+
|
| 432 |
+
typedef struct _DXGI_DDI_ARG_GETMULTIPLANEOVERLAYCAPS
|
| 433 |
+
{
|
| 434 |
+
DXGI_DDI_HDEVICE hDevice;
|
| 435 |
+
D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId;
|
| 436 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_CAPS MultiplaneOverlayCaps;
|
| 437 |
+
} DXGI_DDI_ARG_GETMULTIPLANEOVERLAYCAPS;
|
| 438 |
+
|
| 439 |
+
typedef struct _DXGI_DDI_ARG_GETMULTIPLANEOVERLAYGROUPCAPS
|
| 440 |
+
{
|
| 441 |
+
DXGI_DDI_HDEVICE hDevice;
|
| 442 |
+
D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId;
|
| 443 |
+
UINT GroupIndex;
|
| 444 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_GROUP_CAPS MultiplaneOverlayGroupCaps;
|
| 445 |
+
} DXGI_DDI_ARG_GETMULTIPLANEOVERLAYGROUPCAPS;
|
| 446 |
+
|
| 447 |
+
typedef struct DXGI_DDI_CHECK_MULTIPLANEOVERLAYSUPPORT_PLANE_INFO
|
| 448 |
+
{
|
| 449 |
+
DXGI_DDI_HRESOURCE hResource;
|
| 450 |
+
UINT SubResourceIndex;
|
| 451 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_ATTRIBUTES PlaneAttributes;
|
| 452 |
+
} DXGI_DDI_CHECK_MULTIPLANE_OVERLAY_SUPPORT_PLANE_INFO;
|
| 453 |
+
|
| 454 |
+
typedef struct _DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYSUPPORT
|
| 455 |
+
{
|
| 456 |
+
DXGI_DDI_HDEVICE hDevice;
|
| 457 |
+
D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId;
|
| 458 |
+
UINT NumPlaneInfo;
|
| 459 |
+
DXGI_DDI_CHECK_MULTIPLANE_OVERLAY_SUPPORT_PLANE_INFO* pPlaneInfo;
|
| 460 |
+
BOOL Supported; // out: driver to fill TRUE/FALSE
|
| 461 |
+
} DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYSUPPORT;
|
| 462 |
+
|
| 463 |
+
typedef struct _DXGI_DDI_PRESENT_MULTIPLANE_OVERLAY
|
| 464 |
+
{
|
| 465 |
+
UINT LayerIndex;
|
| 466 |
+
BOOL Enabled;
|
| 467 |
+
DXGI_DDI_HRESOURCE hResource;
|
| 468 |
+
UINT SubResourceIndex;
|
| 469 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_ATTRIBUTES PlaneAttributes;
|
| 470 |
+
} DXGI_DDI_PRESENT_MULTIPLANE_OVERLAY;
|
| 471 |
+
|
| 472 |
+
typedef struct _DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY
|
| 473 |
+
{
|
| 474 |
+
DXGI_DDI_HDEVICE hDevice;
|
| 475 |
+
void * pDXGIContext;
|
| 476 |
+
|
| 477 |
+
D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId;
|
| 478 |
+
DXGI_DDI_PRESENT_FLAGS Flags;
|
| 479 |
+
DXGI_DDI_FLIP_INTERVAL_TYPE FlipInterval;
|
| 480 |
+
|
| 481 |
+
UINT PresentPlaneCount;
|
| 482 |
+
DXGI_DDI_PRESENT_MULTIPLANE_OVERLAY* pPresentPlanes;
|
| 483 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // M1
|
| 484 |
+
UINT Reserved;
|
| 485 |
+
#endif
|
| 486 |
+
} DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY;
|
| 487 |
+
|
| 488 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8)
|
| 489 |
+
|
| 490 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // M1
|
| 491 |
+
|
| 492 |
+
typedef struct _DXGI_DDI_ARG_CHECKPRESENTDURATIONSUPPORT
|
| 493 |
+
{
|
| 494 |
+
DXGI_DDI_HDEVICE hDevice;
|
| 495 |
+
D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId;
|
| 496 |
+
UINT DesiredPresentDuration;
|
| 497 |
+
UINT ClosestSmallerDuration; // out
|
| 498 |
+
UINT ClosestLargerDuration; //out
|
| 499 |
+
} DXGI_DDI_ARG_CHECKPRESENTDURATIONSUPPORT;
|
| 500 |
+
|
| 501 |
+
typedef struct DXGI_DDI_ARG_PRESENTSURFACE
|
| 502 |
+
{
|
| 503 |
+
DXGI_DDI_HRESOURCE hSurface; // In
|
| 504 |
+
UINT SubResourceIndex; // Index of surface level
|
| 505 |
+
} DXGI_DDI_ARG_PRESENTSURFACE;
|
| 506 |
+
|
| 507 |
+
typedef struct DXGI_DDI_ARG_PRESENT1
|
| 508 |
+
{
|
| 509 |
+
DXGI_DDI_HDEVICE hDevice; //in
|
| 510 |
+
CONST DXGI_DDI_ARG_PRESENTSURFACE* phSurfacesToPresent; //in
|
| 511 |
+
UINT SurfacesToPresent; //in
|
| 512 |
+
DXGI_DDI_HRESOURCE hDstResource; // if non-zero, it's the destination of the present
|
| 513 |
+
UINT DstSubResourceIndex; // Index of surface level
|
| 514 |
+
void * pDXGIContext; // opaque: Pass this to the Present callback
|
| 515 |
+
DXGI_DDI_PRESENT_FLAGS Flags; // Presentation flags.
|
| 516 |
+
DXGI_DDI_FLIP_INTERVAL_TYPE FlipInterval; // Presentation interval (flip only)
|
| 517 |
+
UINT Reserved;
|
| 518 |
+
CONST RECT* pDirtyRects; // in: Array of dirty rects
|
| 519 |
+
UINT DirtyRects; // in: Number of dirty rects
|
| 520 |
+
|
| 521 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_0)
|
| 522 |
+
// out: for LDA only.
|
| 523 |
+
// Only WDDM2.0 drivers should write this value
|
| 524 |
+
// The number of physical back buffer per logical back buffer.
|
| 525 |
+
UINT BackBufferMultiplicity;
|
| 526 |
+
#endif
|
| 527 |
+
|
| 528 |
+
} DXGI_DDI_ARG_PRESENT1;
|
| 529 |
+
|
| 530 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // M1
|
| 531 |
+
|
| 532 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_0)
|
| 533 |
+
|
| 534 |
+
typedef struct _DXGI_DDI_ARG_TRIMRESIDENCYSET
|
| 535 |
+
{
|
| 536 |
+
DXGI_DDI_HDEVICE hDevice;
|
| 537 |
+
D3DDDI_TRIMRESIDENCYSET_FLAGS TrimFlags;
|
| 538 |
+
UINT64 NumBytesToTrim;
|
| 539 |
+
} DXGI_DDI_ARG_TRIMRESIDENCYSET;
|
| 540 |
+
|
| 541 |
+
typedef struct _DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYCOLORSPACESUPPORT
|
| 542 |
+
{
|
| 543 |
+
DXGI_DDI_HDEVICE hDevice;
|
| 544 |
+
D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId;
|
| 545 |
+
DXGI_FORMAT Format;
|
| 546 |
+
D3DDDI_COLOR_SPACE_TYPE ColorSpace;
|
| 547 |
+
BOOL Supported; // out
|
| 548 |
+
} DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYCOLORSPACESUPPORT;
|
| 549 |
+
|
| 550 |
+
typedef struct DXGI_DDI_MULTIPLANE_OVERLAY_ATTRIBUTES1
|
| 551 |
+
{
|
| 552 |
+
UINT Flags; // DXGI_DDI_MULTIPLANE_OVERLAY_FLAGS
|
| 553 |
+
RECT SrcRect;
|
| 554 |
+
RECT DstRect;
|
| 555 |
+
RECT ClipRect;
|
| 556 |
+
DXGI_DDI_MODE_ROTATION Rotation;
|
| 557 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_BLEND Blend;
|
| 558 |
+
UINT DirtyRectCount;
|
| 559 |
+
RECT* pDirtyRects;
|
| 560 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_VIDEO_FRAME_FORMAT VideoFrameFormat;
|
| 561 |
+
D3DDDI_COLOR_SPACE_TYPE ColorSpace;
|
| 562 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT StereoFormat;
|
| 563 |
+
BOOL StereoLeftViewFrame0;
|
| 564 |
+
BOOL StereoBaseViewFrame0;
|
| 565 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_MODE StereoFlipMode;
|
| 566 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_STRETCH_QUALITY StretchQuality;
|
| 567 |
+
UINT ColorKey;
|
| 568 |
+
} DXGI_DDI_MULTIPLANE_OVERLAY_ATTRIBUTES1;
|
| 569 |
+
|
| 570 |
+
typedef struct _DXGI_DDI_PRESENT_MULTIPLANE_OVERLAY1
|
| 571 |
+
{
|
| 572 |
+
UINT LayerIndex;
|
| 573 |
+
BOOL Enabled;
|
| 574 |
+
DXGI_DDI_HRESOURCE hResource;
|
| 575 |
+
UINT SubResourceIndex;
|
| 576 |
+
DXGI_DDI_MULTIPLANE_OVERLAY_ATTRIBUTES1 PlaneAttributes;
|
| 577 |
+
} DXGI_DDI_PRESENT_MULTIPLANE_OVERLAY1;
|
| 578 |
+
|
| 579 |
+
typedef struct _DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY1
|
| 580 |
+
{
|
| 581 |
+
DXGI_DDI_HDEVICE hDevice;
|
| 582 |
+
void * pDXGIContext;
|
| 583 |
+
|
| 584 |
+
D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId;
|
| 585 |
+
DXGI_DDI_PRESENT_FLAGS Flags;
|
| 586 |
+
DXGI_DDI_FLIP_INTERVAL_TYPE FlipInterval;
|
| 587 |
+
|
| 588 |
+
UINT PresentPlaneCount;
|
| 589 |
+
DXGI_DDI_PRESENT_MULTIPLANE_OVERLAY1* pPresentPlanes;
|
| 590 |
+
} DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY1;
|
| 591 |
+
|
| 592 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_0)
|
| 593 |
+
|
| 594 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_1_1)
|
| 595 |
+
|
| 596 |
+
typedef struct _DXGI_DDI_ARG_OFFERRESOURCES1
|
| 597 |
+
{
|
| 598 |
+
_In_ DXGI_DDI_HDEVICE hDevice; //in: device that created the resources
|
| 599 |
+
_In_reads_(Resources) const DXGI_DDI_HRESOURCE* pResources; //in: array of resources to reset
|
| 600 |
+
_In_ UINT Resources; //in: number of elements in pResources
|
| 601 |
+
_In_ D3DDDI_OFFER_PRIORITY Priority; //in: priority with which to reset the resources
|
| 602 |
+
_In_ D3DDDI_OFFER_FLAGS Flags; //in: flags specifying additional behaviors on offer
|
| 603 |
+
} DXGI_DDI_ARG_OFFERRESOURCES1;
|
| 604 |
+
|
| 605 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_1_1)
|
| 606 |
+
|
| 607 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_1_2)
|
| 608 |
+
|
| 609 |
+
typedef struct _DXGI_DDI_ARG_RECLAIMRESOURCES1
|
| 610 |
+
{
|
| 611 |
+
DXGI_DDI_HDEVICE hDevice; //in: device that created the resources
|
| 612 |
+
const DXGI_DDI_HRESOURCE *pResources; //in: array of resources to reset
|
| 613 |
+
D3DDDI_RECLAIM_RESULT *pResults; //out: array of results specifying whether each resource was
|
| 614 |
+
// successfully reclaimed, discarded, or has no commitment
|
| 615 |
+
UINT Resources; //in: number of elements in pResources and pDiscarded
|
| 616 |
+
} DXGI_DDI_ARG_RECLAIMRESOURCES1;
|
| 617 |
+
|
| 618 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_1_2)
|
| 619 |
+
|
| 620 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2)
|
| 621 |
+
|
| 622 |
+
typedef struct DXGI1_6_1_DDI_ARG_PRESENT
|
| 623 |
+
{
|
| 624 |
+
DXGI_DDI_HDEVICE hDevice; //in
|
| 625 |
+
CONST DXGI_DDI_ARG_PRESENTSURFACE* phSurfacesToPresent; //in
|
| 626 |
+
UINT SurfacesToPresent; //in
|
| 627 |
+
DXGI_DDI_HRESOURCE hDstResource; // if non-zero, it's the destination of the present
|
| 628 |
+
UINT DstSubResourceIndex; // Index of surface level
|
| 629 |
+
void * pDXGIContext; // opaque: Pass this to the Present callback
|
| 630 |
+
DXGI_DDI_PRESENT_FLAGS Flags; // Presentation flags.
|
| 631 |
+
DXGI_DDI_FLIP_INTERVAL_TYPE FlipInterval; // Presentation interval (flip only)
|
| 632 |
+
DXGI_DDI_MODE_ROTATION RotationHint; // in: Hint that the contents of the frame are rotated with respect to scanout.
|
| 633 |
+
CONST RECT* pDirtyRects; // in: Array of dirty rects
|
| 634 |
+
UINT DirtyRects; // in: Number of dirty rects
|
| 635 |
+
|
| 636 |
+
// out: for LDA only.
|
| 637 |
+
// The number of physical back buffer per logical back buffer.
|
| 638 |
+
UINT BackBufferMultiplicity;
|
| 639 |
+
} DXGI1_6_1_DDI_ARG_PRESENT;
|
| 640 |
+
|
| 641 |
+
typedef struct DXGI1_6_1_DDI_ARG_PRESENTMULTIPLANEOVERLAY
|
| 642 |
+
{
|
| 643 |
+
DXGI_DDI_HDEVICE hDevice;
|
| 644 |
+
void * pDXGIContext;
|
| 645 |
+
|
| 646 |
+
D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId;
|
| 647 |
+
DXGI_DDI_PRESENT_FLAGS Flags;
|
| 648 |
+
DXGI_DDI_FLIP_INTERVAL_TYPE FlipInterval;
|
| 649 |
+
|
| 650 |
+
UINT PresentPlaneCount;
|
| 651 |
+
DXGI_DDI_PRESENT_MULTIPLANE_OVERLAY1* pPresentPlanes;
|
| 652 |
+
DXGI_DDI_MODE_ROTATION* pRotationHints;
|
| 653 |
+
} DXGI1_6_1_DDI_ARG_PRESENTMULTIPLANEOVERLAY;
|
| 654 |
+
|
| 655 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2)
|
| 656 |
+
|
| 657 |
+
//--------------------------------------------------------------------------------------------------------
|
| 658 |
+
typedef struct DXGI_DDI_BASE_FUNCTIONS
|
| 659 |
+
{
|
| 660 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*);
|
| 661 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*);
|
| 662 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*);
|
| 663 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*);
|
| 664 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*);
|
| 665 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*);
|
| 666 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*);
|
| 667 |
+
}DXGI_DDI_BASE_FUNCTIONS;
|
| 668 |
+
|
| 669 |
+
//--------------------------------------------------------------------------------------------------------
|
| 670 |
+
typedef struct DXGI1_1_DDI_BASE_FUNCTIONS
|
| 671 |
+
{
|
| 672 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*);
|
| 673 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*);
|
| 674 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*);
|
| 675 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*);
|
| 676 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*);
|
| 677 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*);
|
| 678 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*);
|
| 679 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnResolveSharedResource ) (DXGI_DDI_ARG_RESOLVESHAREDRESOURCE*);
|
| 680 |
+
}DXGI1_1_DDI_BASE_FUNCTIONS;
|
| 681 |
+
|
| 682 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8)
|
| 683 |
+
|
| 684 |
+
//--------------------------------------------------------------------------------------------------------
|
| 685 |
+
typedef struct DXGI1_2_DDI_BASE_FUNCTIONS
|
| 686 |
+
{
|
| 687 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*);
|
| 688 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*);
|
| 689 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*);
|
| 690 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*);
|
| 691 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*);
|
| 692 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*);
|
| 693 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*);
|
| 694 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnResolveSharedResource ) (DXGI_DDI_ARG_RESOLVESHAREDRESOURCE*);
|
| 695 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt1 ) (DXGI_DDI_ARG_BLT1*);
|
| 696 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnOfferResources ) (DXGI_DDI_ARG_OFFERRESOURCES*);
|
| 697 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnReclaimResources ) (DXGI_DDI_ARG_RECLAIMRESOURCES*);
|
| 698 |
+
// Use IS_DXGI_MULTIPLANE_OVERLAY_FUNCTIONS macro to determine these functions fields are available
|
| 699 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYCAPS*);
|
| 700 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayFilterRange ) (void*);
|
| 701 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckMultiplaneOverlaySupport ) (DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYSUPPORT*);
|
| 702 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay ) (DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY*);
|
| 703 |
+
}DXGI1_2_DDI_BASE_FUNCTIONS;
|
| 704 |
+
|
| 705 |
+
#endif
|
| 706 |
+
|
| 707 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // M1
|
| 708 |
+
|
| 709 |
+
//--------------------------------------------------------------------------------------------------------
|
| 710 |
+
typedef struct DXGI1_3_DDI_BASE_FUNCTIONS
|
| 711 |
+
{
|
| 712 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*);
|
| 713 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*);
|
| 714 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*);
|
| 715 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*);
|
| 716 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*);
|
| 717 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*);
|
| 718 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*);
|
| 719 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnResolveSharedResource ) (DXGI_DDI_ARG_RESOLVESHAREDRESOURCE*);
|
| 720 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt1 ) (DXGI_DDI_ARG_BLT1*);
|
| 721 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnOfferResources ) (DXGI_DDI_ARG_OFFERRESOURCES*);
|
| 722 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnReclaimResources ) (DXGI_DDI_ARG_RECLAIMRESOURCES*);
|
| 723 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYCAPS*);
|
| 724 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayGroupCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYGROUPCAPS*);
|
| 725 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved1 ) (void*);
|
| 726 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay ) (DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY*);
|
| 727 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved2 ) (void*);
|
| 728 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent1 ) (DXGI_DDI_ARG_PRESENT1*);
|
| 729 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckPresentDurationSupport ) (DXGI_DDI_ARG_CHECKPRESENTDURATIONSUPPORT*);
|
| 730 |
+
}DXGI1_3_DDI_BASE_FUNCTIONS;
|
| 731 |
+
|
| 732 |
+
#endif
|
| 733 |
+
|
| 734 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_0)
|
| 735 |
+
|
| 736 |
+
//--------------------------------------------------------------------------------------------------------
|
| 737 |
+
typedef struct DXGI1_4_DDI_BASE_FUNCTIONS
|
| 738 |
+
{
|
| 739 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*);
|
| 740 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*);
|
| 741 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*);
|
| 742 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*);
|
| 743 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*);
|
| 744 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*);
|
| 745 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*);
|
| 746 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnResolveSharedResource ) (DXGI_DDI_ARG_RESOLVESHAREDRESOURCE*);
|
| 747 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt1 ) (DXGI_DDI_ARG_BLT1*);
|
| 748 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnOfferResources ) (DXGI_DDI_ARG_OFFERRESOURCES*);
|
| 749 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnReclaimResources ) (DXGI_DDI_ARG_RECLAIMRESOURCES*);
|
| 750 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYCAPS*);
|
| 751 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayGroupCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYGROUPCAPS*);
|
| 752 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved1 ) (void*);
|
| 753 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay ) (DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY*);
|
| 754 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved2 ) (void*);
|
| 755 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent1 ) (DXGI_DDI_ARG_PRESENT1*);
|
| 756 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckPresentDurationSupport ) (DXGI_DDI_ARG_CHECKPRESENTDURATIONSUPPORT*);
|
| 757 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnTrimResidencySet ) (DXGI_DDI_ARG_TRIMRESIDENCYSET*);
|
| 758 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckMultiplaneOverlayColorSpaceSupport ) (DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYCOLORSPACESUPPORT*);
|
| 759 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay1 ) (DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY1*);
|
| 760 |
+
}DXGI1_4_DDI_BASE_FUNCTIONS;
|
| 761 |
+
|
| 762 |
+
#endif
|
| 763 |
+
|
| 764 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_1_1)
|
| 765 |
+
|
| 766 |
+
//--------------------------------------------------------------------------------------------------------
|
| 767 |
+
typedef struct DXGI1_5_DDI_BASE_FUNCTIONS
|
| 768 |
+
{
|
| 769 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*);
|
| 770 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*);
|
| 771 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*);
|
| 772 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*);
|
| 773 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*);
|
| 774 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*);
|
| 775 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*);
|
| 776 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnResolveSharedResource ) (DXGI_DDI_ARG_RESOLVESHAREDRESOURCE*);
|
| 777 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt1 ) (DXGI_DDI_ARG_BLT1*);
|
| 778 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnOfferResources1 ) (DXGI_DDI_ARG_OFFERRESOURCES1*);
|
| 779 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnReclaimResources ) (DXGI_DDI_ARG_RECLAIMRESOURCES*);
|
| 780 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYCAPS*);
|
| 781 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayGroupCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYGROUPCAPS*);
|
| 782 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved1 ) (void*);
|
| 783 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay ) (DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY*);
|
| 784 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved2 ) (void*);
|
| 785 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent1 ) (DXGI_DDI_ARG_PRESENT1*);
|
| 786 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckPresentDurationSupport ) (DXGI_DDI_ARG_CHECKPRESENTDURATIONSUPPORT*);
|
| 787 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnTrimResidencySet ) (DXGI_DDI_ARG_TRIMRESIDENCYSET*);
|
| 788 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckMultiplaneOverlayColorSpaceSupport ) (DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYCOLORSPACESUPPORT*);
|
| 789 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay1 ) (DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY1*);
|
| 790 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnReclaimResources1 ) (DXGI_DDI_ARG_RECLAIMRESOURCES1*);
|
| 791 |
+
}DXGI1_5_DDI_BASE_FUNCTIONS;
|
| 792 |
+
|
| 793 |
+
#endif
|
| 794 |
+
|
| 795 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2)
|
| 796 |
+
|
| 797 |
+
//--------------------------------------------------------------------------------------------------------
|
| 798 |
+
typedef struct DXGI1_6_1_DDI_BASE_FUNCTIONS
|
| 799 |
+
{
|
| 800 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*);
|
| 801 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*);
|
| 802 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*);
|
| 803 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*);
|
| 804 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*);
|
| 805 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*);
|
| 806 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*);
|
| 807 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnResolveSharedResource ) (DXGI_DDI_ARG_RESOLVESHAREDRESOURCE*);
|
| 808 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt1 ) (DXGI_DDI_ARG_BLT1*);
|
| 809 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnOfferResources1 ) (DXGI_DDI_ARG_OFFERRESOURCES1*);
|
| 810 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnReclaimResources ) (DXGI_DDI_ARG_RECLAIMRESOURCES*);
|
| 811 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYCAPS*);
|
| 812 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnGetMultiplaneOverlayGroupCaps ) (DXGI_DDI_ARG_GETMULTIPLANEOVERLAYGROUPCAPS*);
|
| 813 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved1 ) (void*);
|
| 814 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay ) (DXGI_DDI_ARG_PRESENTMULTIPLANEOVERLAY*);
|
| 815 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnReserved2 ) (void*);
|
| 816 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent1 ) (DXGI1_6_1_DDI_ARG_PRESENT*);
|
| 817 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckPresentDurationSupport ) (DXGI_DDI_ARG_CHECKPRESENTDURATIONSUPPORT*);
|
| 818 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnTrimResidencySet ) (DXGI_DDI_ARG_TRIMRESIDENCYSET*);
|
| 819 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnCheckMultiplaneOverlayColorSpaceSupport ) (DXGI_DDI_ARG_CHECKMULTIPLANEOVERLAYCOLORSPACESUPPORT*);
|
| 820 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnPresentMultiplaneOverlay1 ) (DXGI1_6_1_DDI_ARG_PRESENTMULTIPLANEOVERLAY*);
|
| 821 |
+
HRESULT ( __stdcall /*APIENTRY*/ * pfnReclaimResources1 ) (DXGI_DDI_ARG_RECLAIMRESOURCES1*);
|
| 822 |
+
}DXGI1_6_1_DDI_BASE_FUNCTIONS;
|
| 823 |
+
|
| 824 |
+
#endif
|
| 825 |
+
|
| 826 |
+
|
| 827 |
+
//========================================================================================================
|
| 828 |
+
// DXGI callback definitions.
|
| 829 |
+
//
|
| 830 |
+
|
| 831 |
+
|
| 832 |
+
//--------------------------------------------------------------------------------------------------------
|
| 833 |
+
|
| 834 |
+
typedef struct DXGIDDICB_PRESENT
|
| 835 |
+
{
|
| 836 |
+
D3DKMT_HANDLE hSrcAllocation; // in: The allocation of which content will be presented
|
| 837 |
+
D3DKMT_HANDLE hDstAllocation; // in: if non-zero, it's the destination allocation of the present
|
| 838 |
+
void * pDXGIContext; // opaque: Fill this with the value in DXGI_DDI_ARG_PRESENT.pDXGIContext
|
| 839 |
+
HANDLE hContext; // in: Context being submitted to.
|
| 840 |
+
UINT BroadcastContextCount; // in: Specifies the number of context
|
| 841 |
+
// to broadcast this present operation to.
|
| 842 |
+
// Only supported for flip operation.
|
| 843 |
+
HANDLE BroadcastContext[D3DDDI_MAX_BROADCAST_CONTEXT]; // in: Specifies the handle of the context to
|
| 844 |
+
// broadcast to.
|
| 845 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_0)
|
| 846 |
+
_Field_size_(BroadcastContextCount)
|
| 847 |
+
D3DKMT_HANDLE* BroadcastSrcAllocation; // in: LDA
|
| 848 |
+
_Field_size_opt_(BroadcastContextCount)
|
| 849 |
+
D3DKMT_HANDLE* BroadcastDstAllocation; // in: LDA
|
| 850 |
+
UINT PrivateDriverDataSize; // in:
|
| 851 |
+
_Field_size_bytes_(PrivateDriverDataSize)
|
| 852 |
+
PVOID pPrivateDriverData; // in: Private driver data to pass to DdiPresent and DdiSetVidPnSourceAddress
|
| 853 |
+
BOOLEAN bOptimizeForComposition; // out: DWM is involved in composition
|
| 854 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_0)
|
| 855 |
+
|
| 856 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2)
|
| 857 |
+
BOOL SyncIntervalOverrideValid;
|
| 858 |
+
DXGI_DDI_FLIP_INTERVAL_TYPE SyncIntervalOverride;
|
| 859 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2)
|
| 860 |
+
} DXGIDDICB_PRESENT;
|
| 861 |
+
|
| 862 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8)
|
| 863 |
+
typedef struct DXGIDDI_MULTIPLANE_OVERLAY_ALLOCATION_INFO
|
| 864 |
+
{
|
| 865 |
+
D3DKMT_HANDLE PresentAllocation;
|
| 866 |
+
UINT SubResourceIndex;
|
| 867 |
+
} DXGIDDI_MULTIPLANE_OVERLAY_ALLOCATION_INFO;
|
| 868 |
+
|
| 869 |
+
typedef struct DXGIDDICB_PRESENT_MULTIPLANE_OVERLAY
|
| 870 |
+
{
|
| 871 |
+
void * pDXGIContext; // opaque: Fill this with the value in DXGI_DDI_ARG_PRESENT.pDXGIContext
|
| 872 |
+
HANDLE hContext;
|
| 873 |
+
|
| 874 |
+
UINT BroadcastContextCount;
|
| 875 |
+
HANDLE BroadcastContext[D3DDDI_MAX_BROADCAST_CONTEXT];
|
| 876 |
+
|
| 877 |
+
DWORD AllocationInfoCount;
|
| 878 |
+
DXGIDDI_MULTIPLANE_OVERLAY_ALLOCATION_INFO AllocationInfo[DXGI_DDI_MAX_MULTIPLANE_OVERLAY_ALLOCATIONS];
|
| 879 |
+
} DXGIDDICB_PRESENT_MULTIPLANE_OVERLAY;
|
| 880 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8)
|
| 881 |
+
|
| 882 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_1)
|
| 883 |
+
typedef struct DXGIDDI_MULTIPLANE_OVERLAY_PLANE_INFO
|
| 884 |
+
{
|
| 885 |
+
UINT ContextCount;
|
| 886 |
+
_Field_size_(ContextCount)
|
| 887 |
+
HANDLE* pContextList;
|
| 888 |
+
_Field_size_(ContextCount)
|
| 889 |
+
D3DKMT_HANDLE* pAllocationList;
|
| 890 |
+
|
| 891 |
+
UINT DriverPrivateDataSize;
|
| 892 |
+
_Field_size_bytes_(DriverPrivateDataSize)
|
| 893 |
+
VOID* pDriverPrivateData;
|
| 894 |
+
|
| 895 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2)
|
| 896 |
+
BOOL SyncIntervalOverrideValid;
|
| 897 |
+
DXGI_DDI_FLIP_INTERVAL_TYPE SyncIntervalOverride;
|
| 898 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2)
|
| 899 |
+
} DXGIDDI_MULTIPLANE_OVERLAY_PLANE_INFO;
|
| 900 |
+
|
| 901 |
+
typedef struct DXGIDDICB_PRESENT_MULTIPLANE_OVERLAY1
|
| 902 |
+
{
|
| 903 |
+
void * pDXGIContext; // opaque: Fill this with the value in DXGI_DDI_ARG_PRESENT.pDXGIContext
|
| 904 |
+
DWORD PresentPlaneCount;
|
| 905 |
+
_Field_size_(PresentPlaneCount)
|
| 906 |
+
DXGIDDI_MULTIPLANE_OVERLAY_PLANE_INFO** ppPresentPlanes;
|
| 907 |
+
} DXGIDDICB_PRESENT_MULTIPLANE_OVERLAY1;
|
| 908 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_1)
|
| 909 |
+
|
| 910 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_4_2)
|
| 911 |
+
|
| 912 |
+
typedef struct DXGIDDICB_SUBMITPRESENTBLTTOHWQUEUE
|
| 913 |
+
{
|
| 914 |
+
D3DKMT_HANDLE hSrcAllocation; // in: The allocation of which content will be presented
|
| 915 |
+
D3DKMT_HANDLE hDstAllocation; // in: The destination allocation of the present
|
| 916 |
+
void * pDXGIContext; // opaque: Fill this with the value in DXGI_DDI_ARG_PRESENT.pDXGIContext
|
| 917 |
+
HANDLE hHwQueue; // in: Hardware queue being submitted to.
|
| 918 |
+
UINT64 HwQueueProgressFenceId; // Hardware queue progress fence ID that will be signaled when the Present Blt is done on the GPU
|
| 919 |
+
|
| 920 |
+
UINT PrivateDriverDataSize;
|
| 921 |
+
_Field_size_bytes_(PrivateDriverDataSize)
|
| 922 |
+
PVOID pPrivateDriverData; // in: Private driver data to pass to DdiPresent
|
| 923 |
+
} DXGIDDICB_SUBMITPRESENTBLTTOHWQUEUE;
|
| 924 |
+
|
| 925 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_4_2)
|
| 926 |
+
|
| 927 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_5_2)
|
| 928 |
+
|
| 929 |
+
typedef struct DXGIDDICB_SUBMITPRESENTTOHWQUEUE
|
| 930 |
+
{
|
| 931 |
+
void * pDXGIContext; // opaque: Fill this with the value in DXGI_DDI_ARG_PRESENT.pDXGIContext
|
| 932 |
+
_Field_size_(BroadcastHwQueueCount)
|
| 933 |
+
D3DKMT_HANDLE* BroadcastSrcAllocations; // in: allocations which content will be presented
|
| 934 |
+
_Field_size_opt_(BroadcastHwQueueCount)
|
| 935 |
+
D3DKMT_HANDLE* BroadcastDstAllocations; // in: if non-zero, it's the destination allocations of the present
|
| 936 |
+
HANDLE* hHwQueues; // in: hardware queues being submitted to.
|
| 937 |
+
UINT BroadcastHwQueueCount; // in: the number of broadcast hardware queues
|
| 938 |
+
UINT PrivateDriverDataSize; // in: private driver data size in bytes
|
| 939 |
+
_Field_size_bytes_(PrivateDriverDataSize)
|
| 940 |
+
PVOID pPrivateDriverData; // in: private driver data to pass to DdiPresent
|
| 941 |
+
|
| 942 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_6_2)
|
| 943 |
+
|
| 944 |
+
BOOLEAN bOptimizeForComposition; // out: DWM is involved in composition
|
| 945 |
+
|
| 946 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_6_2)
|
| 947 |
+
|
| 948 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_6_3)
|
| 949 |
+
|
| 950 |
+
BOOL SyncIntervalOverrideValid;
|
| 951 |
+
DXGI_DDI_FLIP_INTERVAL_TYPE SyncIntervalOverride;
|
| 952 |
+
|
| 953 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_6_3)
|
| 954 |
+
|
| 955 |
+
} DXGIDDICB_SUBMITPRESENTTOHWQUEUE;
|
| 956 |
+
|
| 957 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_5_2)
|
| 958 |
+
|
| 959 |
+
|
| 960 |
+
|
| 961 |
+
typedef _Check_return_ HRESULT (APIENTRY CALLBACK *PFNDDXGIDDI_PRESENTCB)(
|
| 962 |
+
_In_ HANDLE hDevice, _In_ DXGIDDICB_PRESENT*);
|
| 963 |
+
|
| 964 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8)
|
| 965 |
+
typedef _Check_return_ HRESULT (APIENTRY CALLBACK *PFNDDXGIDDI_PRESENT_MULTIPLANE_OVERLAYCB)(
|
| 966 |
+
_In_ HANDLE hDevice, _In_ CONST DXGIDDICB_PRESENT_MULTIPLANE_OVERLAY*);
|
| 967 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8)
|
| 968 |
+
|
| 969 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_1)
|
| 970 |
+
typedef _Check_return_ HRESULT (APIENTRY CALLBACK *PFNDDXGIDDI_PRESENT_MULTIPLANE_OVERLAY1CB)(
|
| 971 |
+
_In_ HANDLE hDevice, _In_ CONST DXGIDDICB_PRESENT_MULTIPLANE_OVERLAY1*);
|
| 972 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_1)
|
| 973 |
+
|
| 974 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_4_2)
|
| 975 |
+
|
| 976 |
+
typedef _Check_return_ HRESULT (APIENTRY CALLBACK *PFNDDXGIDDI_SUBMITPRESENTBLTTOHWQUEUECB)(
|
| 977 |
+
_In_ HANDLE hDevice, _In_ DXGIDDICB_SUBMITPRESENTBLTTOHWQUEUE*);
|
| 978 |
+
|
| 979 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_4_2)
|
| 980 |
+
|
| 981 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_5_2)
|
| 982 |
+
|
| 983 |
+
typedef _Check_return_ HRESULT (APIENTRY CALLBACK *PFNDDXGIDDI_SUBMITPRESENTTOHWQUEUECB)(
|
| 984 |
+
_In_ HANDLE hDevice, _In_ DXGIDDICB_SUBMITPRESENTTOHWQUEUE*);
|
| 985 |
+
|
| 986 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_5_2)
|
| 987 |
+
|
| 988 |
+
//--------------------------------------------------------------------------------------------------------
|
| 989 |
+
typedef struct DXGI_DDI_BASE_CALLBACKS
|
| 990 |
+
{
|
| 991 |
+
PFNDDXGIDDI_PRESENTCB pfnPresentCb;
|
| 992 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8)
|
| 993 |
+
// Use IS_DXGI_MULTIPLANE_OVERLAY_FUNCTIONS macro to check if field is available.
|
| 994 |
+
PFNDDXGIDDI_PRESENT_MULTIPLANE_OVERLAYCB pfnPresentMultiplaneOverlayCb;
|
| 995 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8)
|
| 996 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_1)
|
| 997 |
+
// Use IS_DXGI1_6_BASE_FUNCTIONS macro to check if field is available.
|
| 998 |
+
PFNDDXGIDDI_PRESENT_MULTIPLANE_OVERLAY1CB pfnPresentMultiplaneOverlay1Cb;
|
| 999 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_1)
|
| 1000 |
+
|
| 1001 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_4_2)
|
| 1002 |
+
PFNDDXGIDDI_SUBMITPRESENTBLTTOHWQUEUECB pfnSubmitPresentBltToHwQueueCb;
|
| 1003 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_4_2)
|
| 1004 |
+
|
| 1005 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_5_2)
|
| 1006 |
+
PFNDDXGIDDI_SUBMITPRESENTTOHWQUEUECB pfnSubmitPresentToHwQueueCb;
|
| 1007 |
+
#endif // (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_5_2)
|
| 1008 |
+
} DXGI_DDI_BASE_CALLBACKS;
|
| 1009 |
+
|
| 1010 |
+
//========================================================================================================
|
| 1011 |
+
// DXGI basic DDI device creation arguments
|
| 1012 |
+
|
| 1013 |
+
typedef struct DXGI_DDI_BASE_ARGS
|
| 1014 |
+
{
|
| 1015 |
+
DXGI_DDI_BASE_CALLBACKS *pDXGIBaseCallbacks; // in: The driver should record this pointer for later use
|
| 1016 |
+
union
|
| 1017 |
+
{
|
| 1018 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_2_2)
|
| 1019 |
+
DXGI1_6_1_DDI_BASE_FUNCTIONS *pDXGIDDIBaseFunctions6_1; // in/out: The driver should fill the denoted struct with DXGI base driver entry points
|
| 1020 |
+
#endif
|
| 1021 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_1_1)
|
| 1022 |
+
DXGI1_5_DDI_BASE_FUNCTIONS *pDXGIDDIBaseFunctions6; // in/out: The driver should fill the denoted struct with DXGI base driver entry points
|
| 1023 |
+
#endif
|
| 1024 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM2_0)
|
| 1025 |
+
DXGI1_4_DDI_BASE_FUNCTIONS *pDXGIDDIBaseFunctions5; // in/out: The driver should fill the denoted struct with DXGI base driver entry points
|
| 1026 |
+
#endif
|
| 1027 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WDDM1_3) // M1
|
| 1028 |
+
DXGI1_3_DDI_BASE_FUNCTIONS *pDXGIDDIBaseFunctions4; // in/out: The driver should fill the denoted struct with DXGI base driver entry points
|
| 1029 |
+
#endif
|
| 1030 |
+
#if (D3D_UMD_INTERFACE_VERSION >= D3D_UMD_INTERFACE_VERSION_WIN8)
|
| 1031 |
+
DXGI1_2_DDI_BASE_FUNCTIONS *pDXGIDDIBaseFunctions3; // in/out: The driver should fill the denoted struct with DXGI base driver entry points
|
| 1032 |
+
#endif
|
| 1033 |
+
DXGI1_1_DDI_BASE_FUNCTIONS *pDXGIDDIBaseFunctions2; // in/out: The driver should fill the denoted struct with DXGI base driver entry points
|
| 1034 |
+
DXGI_DDI_BASE_FUNCTIONS *pDXGIDDIBaseFunctions; // in/out: The driver should fill the denoted struct with DXGI base driver entry points
|
| 1035 |
+
};
|
| 1036 |
+
} DXGI_DDI_BASE_ARGS;
|
| 1037 |
+
|
| 1038 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 1039 |
+
#pragma endregion
|
| 1040 |
+
|
| 1041 |
+
#endif /* _DXGIDDI_H */
|
| 1042 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxgidebug.h
ADDED
|
@@ -0,0 +1,1054 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
|
| 3 |
+
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
/* File created by MIDL compiler version 8.01.0628 */
|
| 7 |
+
/* @@MIDL_FILE_HEADING( ) */
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
/* verify that the <rpcndr.h> version is high enough to compile this file*/
|
| 12 |
+
#ifndef __REQUIRED_RPCNDR_H_VERSION__
|
| 13 |
+
#define __REQUIRED_RPCNDR_H_VERSION__ 501
|
| 14 |
+
#endif
|
| 15 |
+
|
| 16 |
+
/* verify that the <rpcsal.h> version is high enough to compile this file*/
|
| 17 |
+
#ifndef __REQUIRED_RPCSAL_H_VERSION__
|
| 18 |
+
#define __REQUIRED_RPCSAL_H_VERSION__ 100
|
| 19 |
+
#endif
|
| 20 |
+
|
| 21 |
+
#include "rpc.h"
|
| 22 |
+
#include "rpcndr.h"
|
| 23 |
+
|
| 24 |
+
#ifndef __RPCNDR_H_VERSION__
|
| 25 |
+
#error this stub requires an updated version of <rpcndr.h>
|
| 26 |
+
#endif /* __RPCNDR_H_VERSION__ */
|
| 27 |
+
|
| 28 |
+
#ifndef COM_NO_WINDOWS_H
|
| 29 |
+
#include "windows.h"
|
| 30 |
+
#include "ole2.h"
|
| 31 |
+
#endif /*COM_NO_WINDOWS_H*/
|
| 32 |
+
|
| 33 |
+
#ifndef __dxgidebug_h__
|
| 34 |
+
#define __dxgidebug_h__
|
| 35 |
+
|
| 36 |
+
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
| 37 |
+
#pragma once
|
| 38 |
+
#endif
|
| 39 |
+
|
| 40 |
+
#ifndef DECLSPEC_XFGVIRT
|
| 41 |
+
#if defined(_CONTROL_FLOW_GUARD_XFG)
|
| 42 |
+
#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func))
|
| 43 |
+
#else
|
| 44 |
+
#define DECLSPEC_XFGVIRT(base, func)
|
| 45 |
+
#endif
|
| 46 |
+
#endif
|
| 47 |
+
|
| 48 |
+
/* Forward Declarations */
|
| 49 |
+
|
| 50 |
+
#ifndef __IDXGIInfoQueue_FWD_DEFINED__
|
| 51 |
+
#define __IDXGIInfoQueue_FWD_DEFINED__
|
| 52 |
+
typedef interface IDXGIInfoQueue IDXGIInfoQueue;
|
| 53 |
+
|
| 54 |
+
#endif /* __IDXGIInfoQueue_FWD_DEFINED__ */
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
#ifndef __IDXGIDebug_FWD_DEFINED__
|
| 58 |
+
#define __IDXGIDebug_FWD_DEFINED__
|
| 59 |
+
typedef interface IDXGIDebug IDXGIDebug;
|
| 60 |
+
|
| 61 |
+
#endif /* __IDXGIDebug_FWD_DEFINED__ */
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
#ifndef __IDXGIDebug1_FWD_DEFINED__
|
| 65 |
+
#define __IDXGIDebug1_FWD_DEFINED__
|
| 66 |
+
typedef interface IDXGIDebug1 IDXGIDebug1;
|
| 67 |
+
|
| 68 |
+
#endif /* __IDXGIDebug1_FWD_DEFINED__ */
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
/* header files for imported files */
|
| 72 |
+
#include "oaidl.h"
|
| 73 |
+
#include "ocidl.h"
|
| 74 |
+
|
| 75 |
+
#ifdef __cplusplus
|
| 76 |
+
extern "C"{
|
| 77 |
+
#endif
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
/* interface __MIDL_itf_dxgidebug_0000_0000 */
|
| 81 |
+
/* [local] */
|
| 82 |
+
|
| 83 |
+
#include <winapifamily.h>
|
| 84 |
+
#pragma region Application Family
|
| 85 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES)
|
| 86 |
+
#define DXGI_DEBUG_BINARY_VERSION ( 1 )
|
| 87 |
+
|
| 88 |
+
typedef
|
| 89 |
+
enum DXGI_DEBUG_RLO_FLAGS
|
| 90 |
+
{
|
| 91 |
+
DXGI_DEBUG_RLO_SUMMARY = 0x1,
|
| 92 |
+
DXGI_DEBUG_RLO_DETAIL = 0x2,
|
| 93 |
+
DXGI_DEBUG_RLO_IGNORE_INTERNAL = 0x4,
|
| 94 |
+
DXGI_DEBUG_RLO_ALL = 0x7
|
| 95 |
+
} DXGI_DEBUG_RLO_FLAGS;
|
| 96 |
+
|
| 97 |
+
typedef GUID DXGI_DEBUG_ID;
|
| 98 |
+
|
| 99 |
+
DEFINE_GUID(DXGI_DEBUG_ALL, 0xe48ae283, 0xda80, 0x490b, 0x87, 0xe6, 0x43, 0xe9, 0xa9, 0xcf, 0xda, 0x8);
|
| 100 |
+
DEFINE_GUID(DXGI_DEBUG_DX, 0x35cdd7fc, 0x13b2, 0x421d, 0xa5, 0xd7, 0x7e, 0x44, 0x51, 0x28, 0x7d, 0x64);
|
| 101 |
+
DEFINE_GUID(DXGI_DEBUG_DXGI, 0x25cddaa4, 0xb1c6, 0x47e1, 0xac, 0x3e, 0x98, 0x87, 0x5b, 0x5a, 0x2e, 0x2a);
|
| 102 |
+
DEFINE_GUID(DXGI_DEBUG_APP, 0x6cd6e01, 0x4219, 0x4ebd, 0x87, 0x9, 0x27, 0xed, 0x23, 0x36, 0xc, 0x62);
|
| 103 |
+
typedef
|
| 104 |
+
enum DXGI_INFO_QUEUE_MESSAGE_CATEGORY
|
| 105 |
+
{
|
| 106 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_UNKNOWN = 0,
|
| 107 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_MISCELLANEOUS = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_UNKNOWN + 1 ) ,
|
| 108 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_INITIALIZATION = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_MISCELLANEOUS + 1 ) ,
|
| 109 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_CLEANUP = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_INITIALIZATION + 1 ) ,
|
| 110 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_COMPILATION = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_CLEANUP + 1 ) ,
|
| 111 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_CREATION = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_COMPILATION + 1 ) ,
|
| 112 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_SETTING = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_CREATION + 1 ) ,
|
| 113 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_GETTING = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_SETTING + 1 ) ,
|
| 114 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_RESOURCE_MANIPULATION = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_GETTING + 1 ) ,
|
| 115 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_EXECUTION = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_RESOURCE_MANIPULATION + 1 ) ,
|
| 116 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_SHADER = ( DXGI_INFO_QUEUE_MESSAGE_CATEGORY_EXECUTION + 1 )
|
| 117 |
+
} DXGI_INFO_QUEUE_MESSAGE_CATEGORY;
|
| 118 |
+
|
| 119 |
+
typedef
|
| 120 |
+
enum DXGI_INFO_QUEUE_MESSAGE_SEVERITY
|
| 121 |
+
{
|
| 122 |
+
DXGI_INFO_QUEUE_MESSAGE_SEVERITY_CORRUPTION = 0,
|
| 123 |
+
DXGI_INFO_QUEUE_MESSAGE_SEVERITY_ERROR = ( DXGI_INFO_QUEUE_MESSAGE_SEVERITY_CORRUPTION + 1 ) ,
|
| 124 |
+
DXGI_INFO_QUEUE_MESSAGE_SEVERITY_WARNING = ( DXGI_INFO_QUEUE_MESSAGE_SEVERITY_ERROR + 1 ) ,
|
| 125 |
+
DXGI_INFO_QUEUE_MESSAGE_SEVERITY_INFO = ( DXGI_INFO_QUEUE_MESSAGE_SEVERITY_WARNING + 1 ) ,
|
| 126 |
+
DXGI_INFO_QUEUE_MESSAGE_SEVERITY_MESSAGE = ( DXGI_INFO_QUEUE_MESSAGE_SEVERITY_INFO + 1 )
|
| 127 |
+
} DXGI_INFO_QUEUE_MESSAGE_SEVERITY;
|
| 128 |
+
|
| 129 |
+
typedef int DXGI_INFO_QUEUE_MESSAGE_ID;
|
| 130 |
+
|
| 131 |
+
#define DXGI_INFO_QUEUE_MESSAGE_ID_STRING_FROM_APPLICATION 0
|
| 132 |
+
typedef struct DXGI_INFO_QUEUE_MESSAGE
|
| 133 |
+
{
|
| 134 |
+
DXGI_DEBUG_ID Producer;
|
| 135 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category;
|
| 136 |
+
DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity;
|
| 137 |
+
DXGI_INFO_QUEUE_MESSAGE_ID ID;
|
| 138 |
+
/* [annotation] */
|
| 139 |
+
_Field_size_(DescriptionByteLength) const char *pDescription;
|
| 140 |
+
SIZE_T DescriptionByteLength;
|
| 141 |
+
} DXGI_INFO_QUEUE_MESSAGE;
|
| 142 |
+
|
| 143 |
+
typedef struct DXGI_INFO_QUEUE_FILTER_DESC
|
| 144 |
+
{
|
| 145 |
+
UINT NumCategories;
|
| 146 |
+
/* [annotation] */
|
| 147 |
+
_Field_size_(NumCategories) DXGI_INFO_QUEUE_MESSAGE_CATEGORY *pCategoryList;
|
| 148 |
+
UINT NumSeverities;
|
| 149 |
+
/* [annotation] */
|
| 150 |
+
_Field_size_(NumSeverities) DXGI_INFO_QUEUE_MESSAGE_SEVERITY *pSeverityList;
|
| 151 |
+
UINT NumIDs;
|
| 152 |
+
/* [annotation] */
|
| 153 |
+
_Field_size_(NumIDs) DXGI_INFO_QUEUE_MESSAGE_ID *pIDList;
|
| 154 |
+
} DXGI_INFO_QUEUE_FILTER_DESC;
|
| 155 |
+
|
| 156 |
+
typedef struct DXGI_INFO_QUEUE_FILTER
|
| 157 |
+
{
|
| 158 |
+
DXGI_INFO_QUEUE_FILTER_DESC AllowList;
|
| 159 |
+
DXGI_INFO_QUEUE_FILTER_DESC DenyList;
|
| 160 |
+
} DXGI_INFO_QUEUE_FILTER;
|
| 161 |
+
|
| 162 |
+
#define DXGI_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT 1024
|
| 163 |
+
HRESULT WINAPI DXGIGetDebugInterface(REFIID riid, void **ppDebug);
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
extern RPC_IF_HANDLE __MIDL_itf_dxgidebug_0000_0000_v0_0_c_ifspec;
|
| 167 |
+
extern RPC_IF_HANDLE __MIDL_itf_dxgidebug_0000_0000_v0_0_s_ifspec;
|
| 168 |
+
|
| 169 |
+
#ifndef __IDXGIInfoQueue_INTERFACE_DEFINED__
|
| 170 |
+
#define __IDXGIInfoQueue_INTERFACE_DEFINED__
|
| 171 |
+
|
| 172 |
+
/* interface IDXGIInfoQueue */
|
| 173 |
+
/* [unique][local][object][uuid] */
|
| 174 |
+
|
| 175 |
+
|
| 176 |
+
EXTERN_C const IID IID_IDXGIInfoQueue;
|
| 177 |
+
|
| 178 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 179 |
+
|
| 180 |
+
MIDL_INTERFACE("D67441C7-672A-476f-9E82-CD55B44949CE")
|
| 181 |
+
IDXGIInfoQueue : public IUnknown
|
| 182 |
+
{
|
| 183 |
+
public:
|
| 184 |
+
virtual HRESULT STDMETHODCALLTYPE SetMessageCountLimit(
|
| 185 |
+
/* [annotation] */
|
| 186 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 187 |
+
/* [annotation] */
|
| 188 |
+
_In_ UINT64 MessageCountLimit) = 0;
|
| 189 |
+
|
| 190 |
+
virtual void STDMETHODCALLTYPE ClearStoredMessages(
|
| 191 |
+
/* [annotation] */
|
| 192 |
+
_In_ DXGI_DEBUG_ID Producer) = 0;
|
| 193 |
+
|
| 194 |
+
virtual HRESULT STDMETHODCALLTYPE GetMessage(
|
| 195 |
+
/* [annotation] */
|
| 196 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 197 |
+
/* [annotation] */
|
| 198 |
+
_In_ UINT64 MessageIndex,
|
| 199 |
+
/* [annotation] */
|
| 200 |
+
_Out_writes_bytes_opt_(*pMessageByteLength) DXGI_INFO_QUEUE_MESSAGE *pMessage,
|
| 201 |
+
/* [annotation] */
|
| 202 |
+
_Inout_ SIZE_T *pMessageByteLength) = 0;
|
| 203 |
+
|
| 204 |
+
virtual UINT64 STDMETHODCALLTYPE GetNumStoredMessagesAllowedByRetrievalFilters(
|
| 205 |
+
/* [annotation] */
|
| 206 |
+
_In_ DXGI_DEBUG_ID Producer) = 0;
|
| 207 |
+
|
| 208 |
+
virtual UINT64 STDMETHODCALLTYPE GetNumStoredMessages(
|
| 209 |
+
/* [annotation] */
|
| 210 |
+
_In_ DXGI_DEBUG_ID Producer) = 0;
|
| 211 |
+
|
| 212 |
+
virtual UINT64 STDMETHODCALLTYPE GetNumMessagesDiscardedByMessageCountLimit(
|
| 213 |
+
/* [annotation] */
|
| 214 |
+
_In_ DXGI_DEBUG_ID Producer) = 0;
|
| 215 |
+
|
| 216 |
+
virtual UINT64 STDMETHODCALLTYPE GetMessageCountLimit(
|
| 217 |
+
/* [annotation] */
|
| 218 |
+
_In_ DXGI_DEBUG_ID Producer) = 0;
|
| 219 |
+
|
| 220 |
+
virtual UINT64 STDMETHODCALLTYPE GetNumMessagesAllowedByStorageFilter(
|
| 221 |
+
/* [annotation] */
|
| 222 |
+
_In_ DXGI_DEBUG_ID Producer) = 0;
|
| 223 |
+
|
| 224 |
+
virtual UINT64 STDMETHODCALLTYPE GetNumMessagesDeniedByStorageFilter(
|
| 225 |
+
/* [annotation] */
|
| 226 |
+
_In_ DXGI_DEBUG_ID Producer) = 0;
|
| 227 |
+
|
| 228 |
+
virtual HRESULT STDMETHODCALLTYPE AddStorageFilterEntries(
|
| 229 |
+
/* [annotation] */
|
| 230 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 231 |
+
/* [annotation] */
|
| 232 |
+
_In_ DXGI_INFO_QUEUE_FILTER *pFilter) = 0;
|
| 233 |
+
|
| 234 |
+
virtual HRESULT STDMETHODCALLTYPE GetStorageFilter(
|
| 235 |
+
/* [annotation] */
|
| 236 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 237 |
+
/* [annotation] */
|
| 238 |
+
_Out_writes_bytes_opt_(*pFilterByteLength) DXGI_INFO_QUEUE_FILTER *pFilter,
|
| 239 |
+
/* [annotation] */
|
| 240 |
+
_Inout_ SIZE_T *pFilterByteLength) = 0;
|
| 241 |
+
|
| 242 |
+
virtual void STDMETHODCALLTYPE ClearStorageFilter(
|
| 243 |
+
/* [annotation] */
|
| 244 |
+
_In_ DXGI_DEBUG_ID Producer) = 0;
|
| 245 |
+
|
| 246 |
+
virtual HRESULT STDMETHODCALLTYPE PushEmptyStorageFilter(
|
| 247 |
+
/* [annotation] */
|
| 248 |
+
_In_ DXGI_DEBUG_ID Producer) = 0;
|
| 249 |
+
|
| 250 |
+
virtual HRESULT STDMETHODCALLTYPE PushDenyAllStorageFilter(
|
| 251 |
+
/* [annotation] */
|
| 252 |
+
_In_ DXGI_DEBUG_ID Producer) = 0;
|
| 253 |
+
|
| 254 |
+
virtual HRESULT STDMETHODCALLTYPE PushCopyOfStorageFilter(
|
| 255 |
+
/* [annotation] */
|
| 256 |
+
_In_ DXGI_DEBUG_ID Producer) = 0;
|
| 257 |
+
|
| 258 |
+
virtual HRESULT STDMETHODCALLTYPE PushStorageFilter(
|
| 259 |
+
/* [annotation] */
|
| 260 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 261 |
+
/* [annotation] */
|
| 262 |
+
_In_ DXGI_INFO_QUEUE_FILTER *pFilter) = 0;
|
| 263 |
+
|
| 264 |
+
virtual void STDMETHODCALLTYPE PopStorageFilter(
|
| 265 |
+
/* [annotation] */
|
| 266 |
+
_In_ DXGI_DEBUG_ID Producer) = 0;
|
| 267 |
+
|
| 268 |
+
virtual UINT STDMETHODCALLTYPE GetStorageFilterStackSize(
|
| 269 |
+
/* [annotation] */
|
| 270 |
+
_In_ DXGI_DEBUG_ID Producer) = 0;
|
| 271 |
+
|
| 272 |
+
virtual HRESULT STDMETHODCALLTYPE AddRetrievalFilterEntries(
|
| 273 |
+
/* [annotation] */
|
| 274 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 275 |
+
/* [annotation] */
|
| 276 |
+
_In_ DXGI_INFO_QUEUE_FILTER *pFilter) = 0;
|
| 277 |
+
|
| 278 |
+
virtual HRESULT STDMETHODCALLTYPE GetRetrievalFilter(
|
| 279 |
+
/* [annotation] */
|
| 280 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 281 |
+
/* [annotation] */
|
| 282 |
+
_Out_writes_bytes_opt_(*pFilterByteLength) DXGI_INFO_QUEUE_FILTER *pFilter,
|
| 283 |
+
/* [annotation] */
|
| 284 |
+
_Inout_ SIZE_T *pFilterByteLength) = 0;
|
| 285 |
+
|
| 286 |
+
virtual void STDMETHODCALLTYPE ClearRetrievalFilter(
|
| 287 |
+
/* [annotation] */
|
| 288 |
+
_In_ DXGI_DEBUG_ID Producer) = 0;
|
| 289 |
+
|
| 290 |
+
virtual HRESULT STDMETHODCALLTYPE PushEmptyRetrievalFilter(
|
| 291 |
+
/* [annotation] */
|
| 292 |
+
_In_ DXGI_DEBUG_ID Producer) = 0;
|
| 293 |
+
|
| 294 |
+
virtual HRESULT STDMETHODCALLTYPE PushDenyAllRetrievalFilter(
|
| 295 |
+
/* [annotation] */
|
| 296 |
+
_In_ DXGI_DEBUG_ID Producer) = 0;
|
| 297 |
+
|
| 298 |
+
virtual HRESULT STDMETHODCALLTYPE PushCopyOfRetrievalFilter(
|
| 299 |
+
/* [annotation] */
|
| 300 |
+
_In_ DXGI_DEBUG_ID Producer) = 0;
|
| 301 |
+
|
| 302 |
+
virtual HRESULT STDMETHODCALLTYPE PushRetrievalFilter(
|
| 303 |
+
/* [annotation] */
|
| 304 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 305 |
+
/* [annotation] */
|
| 306 |
+
_In_ DXGI_INFO_QUEUE_FILTER *pFilter) = 0;
|
| 307 |
+
|
| 308 |
+
virtual void STDMETHODCALLTYPE PopRetrievalFilter(
|
| 309 |
+
/* [annotation] */
|
| 310 |
+
_In_ DXGI_DEBUG_ID Producer) = 0;
|
| 311 |
+
|
| 312 |
+
virtual UINT STDMETHODCALLTYPE GetRetrievalFilterStackSize(
|
| 313 |
+
/* [annotation] */
|
| 314 |
+
_In_ DXGI_DEBUG_ID Producer) = 0;
|
| 315 |
+
|
| 316 |
+
virtual HRESULT STDMETHODCALLTYPE AddMessage(
|
| 317 |
+
/* [annotation] */
|
| 318 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 319 |
+
/* [annotation] */
|
| 320 |
+
_In_ DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category,
|
| 321 |
+
/* [annotation] */
|
| 322 |
+
_In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity,
|
| 323 |
+
/* [annotation] */
|
| 324 |
+
_In_ DXGI_INFO_QUEUE_MESSAGE_ID ID,
|
| 325 |
+
/* [annotation] */
|
| 326 |
+
_In_ LPCSTR pDescription) = 0;
|
| 327 |
+
|
| 328 |
+
virtual HRESULT STDMETHODCALLTYPE AddApplicationMessage(
|
| 329 |
+
/* [annotation] */
|
| 330 |
+
_In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity,
|
| 331 |
+
/* [annotation] */
|
| 332 |
+
_In_ LPCSTR pDescription) = 0;
|
| 333 |
+
|
| 334 |
+
virtual HRESULT STDMETHODCALLTYPE SetBreakOnCategory(
|
| 335 |
+
/* [annotation] */
|
| 336 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 337 |
+
/* [annotation] */
|
| 338 |
+
_In_ DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category,
|
| 339 |
+
/* [annotation] */
|
| 340 |
+
_In_ BOOL bEnable) = 0;
|
| 341 |
+
|
| 342 |
+
virtual HRESULT STDMETHODCALLTYPE SetBreakOnSeverity(
|
| 343 |
+
/* [annotation] */
|
| 344 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 345 |
+
/* [annotation] */
|
| 346 |
+
_In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity,
|
| 347 |
+
/* [annotation] */
|
| 348 |
+
_In_ BOOL bEnable) = 0;
|
| 349 |
+
|
| 350 |
+
virtual HRESULT STDMETHODCALLTYPE SetBreakOnID(
|
| 351 |
+
/* [annotation] */
|
| 352 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 353 |
+
/* [annotation] */
|
| 354 |
+
_In_ DXGI_INFO_QUEUE_MESSAGE_ID ID,
|
| 355 |
+
/* [annotation] */
|
| 356 |
+
_In_ BOOL bEnable) = 0;
|
| 357 |
+
|
| 358 |
+
virtual BOOL STDMETHODCALLTYPE GetBreakOnCategory(
|
| 359 |
+
/* [annotation] */
|
| 360 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 361 |
+
/* [annotation] */
|
| 362 |
+
_In_ DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category) = 0;
|
| 363 |
+
|
| 364 |
+
virtual BOOL STDMETHODCALLTYPE GetBreakOnSeverity(
|
| 365 |
+
/* [annotation] */
|
| 366 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 367 |
+
/* [annotation] */
|
| 368 |
+
_In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity) = 0;
|
| 369 |
+
|
| 370 |
+
virtual BOOL STDMETHODCALLTYPE GetBreakOnID(
|
| 371 |
+
/* [annotation] */
|
| 372 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 373 |
+
/* [annotation] */
|
| 374 |
+
_In_ DXGI_INFO_QUEUE_MESSAGE_ID ID) = 0;
|
| 375 |
+
|
| 376 |
+
virtual void STDMETHODCALLTYPE SetMuteDebugOutput(
|
| 377 |
+
/* [annotation] */
|
| 378 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 379 |
+
/* [annotation] */
|
| 380 |
+
_In_ BOOL bMute) = 0;
|
| 381 |
+
|
| 382 |
+
virtual BOOL STDMETHODCALLTYPE GetMuteDebugOutput(
|
| 383 |
+
/* [annotation] */
|
| 384 |
+
_In_ DXGI_DEBUG_ID Producer) = 0;
|
| 385 |
+
|
| 386 |
+
};
|
| 387 |
+
|
| 388 |
+
|
| 389 |
+
#else /* C style interface */
|
| 390 |
+
|
| 391 |
+
typedef struct IDXGIInfoQueueVtbl
|
| 392 |
+
{
|
| 393 |
+
BEGIN_INTERFACE
|
| 394 |
+
|
| 395 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 396 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 397 |
+
IDXGIInfoQueue * This,
|
| 398 |
+
/* [in] */ REFIID riid,
|
| 399 |
+
/* [annotation][iid_is][out] */
|
| 400 |
+
_COM_Outptr_ void **ppvObject);
|
| 401 |
+
|
| 402 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 403 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 404 |
+
IDXGIInfoQueue * This);
|
| 405 |
+
|
| 406 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 407 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 408 |
+
IDXGIInfoQueue * This);
|
| 409 |
+
|
| 410 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, SetMessageCountLimit)
|
| 411 |
+
HRESULT ( STDMETHODCALLTYPE *SetMessageCountLimit )(
|
| 412 |
+
IDXGIInfoQueue * This,
|
| 413 |
+
/* [annotation] */
|
| 414 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 415 |
+
/* [annotation] */
|
| 416 |
+
_In_ UINT64 MessageCountLimit);
|
| 417 |
+
|
| 418 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, ClearStoredMessages)
|
| 419 |
+
void ( STDMETHODCALLTYPE *ClearStoredMessages )(
|
| 420 |
+
IDXGIInfoQueue * This,
|
| 421 |
+
/* [annotation] */
|
| 422 |
+
_In_ DXGI_DEBUG_ID Producer);
|
| 423 |
+
|
| 424 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetMessage)
|
| 425 |
+
HRESULT ( STDMETHODCALLTYPE *GetMessage )(
|
| 426 |
+
IDXGIInfoQueue * This,
|
| 427 |
+
/* [annotation] */
|
| 428 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 429 |
+
/* [annotation] */
|
| 430 |
+
_In_ UINT64 MessageIndex,
|
| 431 |
+
/* [annotation] */
|
| 432 |
+
_Out_writes_bytes_opt_(*pMessageByteLength) DXGI_INFO_QUEUE_MESSAGE *pMessage,
|
| 433 |
+
/* [annotation] */
|
| 434 |
+
_Inout_ SIZE_T *pMessageByteLength);
|
| 435 |
+
|
| 436 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetNumStoredMessagesAllowedByRetrievalFilters)
|
| 437 |
+
UINT64 ( STDMETHODCALLTYPE *GetNumStoredMessagesAllowedByRetrievalFilters )(
|
| 438 |
+
IDXGIInfoQueue * This,
|
| 439 |
+
/* [annotation] */
|
| 440 |
+
_In_ DXGI_DEBUG_ID Producer);
|
| 441 |
+
|
| 442 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetNumStoredMessages)
|
| 443 |
+
UINT64 ( STDMETHODCALLTYPE *GetNumStoredMessages )(
|
| 444 |
+
IDXGIInfoQueue * This,
|
| 445 |
+
/* [annotation] */
|
| 446 |
+
_In_ DXGI_DEBUG_ID Producer);
|
| 447 |
+
|
| 448 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetNumMessagesDiscardedByMessageCountLimit)
|
| 449 |
+
UINT64 ( STDMETHODCALLTYPE *GetNumMessagesDiscardedByMessageCountLimit )(
|
| 450 |
+
IDXGIInfoQueue * This,
|
| 451 |
+
/* [annotation] */
|
| 452 |
+
_In_ DXGI_DEBUG_ID Producer);
|
| 453 |
+
|
| 454 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetMessageCountLimit)
|
| 455 |
+
UINT64 ( STDMETHODCALLTYPE *GetMessageCountLimit )(
|
| 456 |
+
IDXGIInfoQueue * This,
|
| 457 |
+
/* [annotation] */
|
| 458 |
+
_In_ DXGI_DEBUG_ID Producer);
|
| 459 |
+
|
| 460 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetNumMessagesAllowedByStorageFilter)
|
| 461 |
+
UINT64 ( STDMETHODCALLTYPE *GetNumMessagesAllowedByStorageFilter )(
|
| 462 |
+
IDXGIInfoQueue * This,
|
| 463 |
+
/* [annotation] */
|
| 464 |
+
_In_ DXGI_DEBUG_ID Producer);
|
| 465 |
+
|
| 466 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetNumMessagesDeniedByStorageFilter)
|
| 467 |
+
UINT64 ( STDMETHODCALLTYPE *GetNumMessagesDeniedByStorageFilter )(
|
| 468 |
+
IDXGIInfoQueue * This,
|
| 469 |
+
/* [annotation] */
|
| 470 |
+
_In_ DXGI_DEBUG_ID Producer);
|
| 471 |
+
|
| 472 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, AddStorageFilterEntries)
|
| 473 |
+
HRESULT ( STDMETHODCALLTYPE *AddStorageFilterEntries )(
|
| 474 |
+
IDXGIInfoQueue * This,
|
| 475 |
+
/* [annotation] */
|
| 476 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 477 |
+
/* [annotation] */
|
| 478 |
+
_In_ DXGI_INFO_QUEUE_FILTER *pFilter);
|
| 479 |
+
|
| 480 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetStorageFilter)
|
| 481 |
+
HRESULT ( STDMETHODCALLTYPE *GetStorageFilter )(
|
| 482 |
+
IDXGIInfoQueue * This,
|
| 483 |
+
/* [annotation] */
|
| 484 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 485 |
+
/* [annotation] */
|
| 486 |
+
_Out_writes_bytes_opt_(*pFilterByteLength) DXGI_INFO_QUEUE_FILTER *pFilter,
|
| 487 |
+
/* [annotation] */
|
| 488 |
+
_Inout_ SIZE_T *pFilterByteLength);
|
| 489 |
+
|
| 490 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, ClearStorageFilter)
|
| 491 |
+
void ( STDMETHODCALLTYPE *ClearStorageFilter )(
|
| 492 |
+
IDXGIInfoQueue * This,
|
| 493 |
+
/* [annotation] */
|
| 494 |
+
_In_ DXGI_DEBUG_ID Producer);
|
| 495 |
+
|
| 496 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushEmptyStorageFilter)
|
| 497 |
+
HRESULT ( STDMETHODCALLTYPE *PushEmptyStorageFilter )(
|
| 498 |
+
IDXGIInfoQueue * This,
|
| 499 |
+
/* [annotation] */
|
| 500 |
+
_In_ DXGI_DEBUG_ID Producer);
|
| 501 |
+
|
| 502 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushDenyAllStorageFilter)
|
| 503 |
+
HRESULT ( STDMETHODCALLTYPE *PushDenyAllStorageFilter )(
|
| 504 |
+
IDXGIInfoQueue * This,
|
| 505 |
+
/* [annotation] */
|
| 506 |
+
_In_ DXGI_DEBUG_ID Producer);
|
| 507 |
+
|
| 508 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushCopyOfStorageFilter)
|
| 509 |
+
HRESULT ( STDMETHODCALLTYPE *PushCopyOfStorageFilter )(
|
| 510 |
+
IDXGIInfoQueue * This,
|
| 511 |
+
/* [annotation] */
|
| 512 |
+
_In_ DXGI_DEBUG_ID Producer);
|
| 513 |
+
|
| 514 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushStorageFilter)
|
| 515 |
+
HRESULT ( STDMETHODCALLTYPE *PushStorageFilter )(
|
| 516 |
+
IDXGIInfoQueue * This,
|
| 517 |
+
/* [annotation] */
|
| 518 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 519 |
+
/* [annotation] */
|
| 520 |
+
_In_ DXGI_INFO_QUEUE_FILTER *pFilter);
|
| 521 |
+
|
| 522 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, PopStorageFilter)
|
| 523 |
+
void ( STDMETHODCALLTYPE *PopStorageFilter )(
|
| 524 |
+
IDXGIInfoQueue * This,
|
| 525 |
+
/* [annotation] */
|
| 526 |
+
_In_ DXGI_DEBUG_ID Producer);
|
| 527 |
+
|
| 528 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetStorageFilterStackSize)
|
| 529 |
+
UINT ( STDMETHODCALLTYPE *GetStorageFilterStackSize )(
|
| 530 |
+
IDXGIInfoQueue * This,
|
| 531 |
+
/* [annotation] */
|
| 532 |
+
_In_ DXGI_DEBUG_ID Producer);
|
| 533 |
+
|
| 534 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, AddRetrievalFilterEntries)
|
| 535 |
+
HRESULT ( STDMETHODCALLTYPE *AddRetrievalFilterEntries )(
|
| 536 |
+
IDXGIInfoQueue * This,
|
| 537 |
+
/* [annotation] */
|
| 538 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 539 |
+
/* [annotation] */
|
| 540 |
+
_In_ DXGI_INFO_QUEUE_FILTER *pFilter);
|
| 541 |
+
|
| 542 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetRetrievalFilter)
|
| 543 |
+
HRESULT ( STDMETHODCALLTYPE *GetRetrievalFilter )(
|
| 544 |
+
IDXGIInfoQueue * This,
|
| 545 |
+
/* [annotation] */
|
| 546 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 547 |
+
/* [annotation] */
|
| 548 |
+
_Out_writes_bytes_opt_(*pFilterByteLength) DXGI_INFO_QUEUE_FILTER *pFilter,
|
| 549 |
+
/* [annotation] */
|
| 550 |
+
_Inout_ SIZE_T *pFilterByteLength);
|
| 551 |
+
|
| 552 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, ClearRetrievalFilter)
|
| 553 |
+
void ( STDMETHODCALLTYPE *ClearRetrievalFilter )(
|
| 554 |
+
IDXGIInfoQueue * This,
|
| 555 |
+
/* [annotation] */
|
| 556 |
+
_In_ DXGI_DEBUG_ID Producer);
|
| 557 |
+
|
| 558 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushEmptyRetrievalFilter)
|
| 559 |
+
HRESULT ( STDMETHODCALLTYPE *PushEmptyRetrievalFilter )(
|
| 560 |
+
IDXGIInfoQueue * This,
|
| 561 |
+
/* [annotation] */
|
| 562 |
+
_In_ DXGI_DEBUG_ID Producer);
|
| 563 |
+
|
| 564 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushDenyAllRetrievalFilter)
|
| 565 |
+
HRESULT ( STDMETHODCALLTYPE *PushDenyAllRetrievalFilter )(
|
| 566 |
+
IDXGIInfoQueue * This,
|
| 567 |
+
/* [annotation] */
|
| 568 |
+
_In_ DXGI_DEBUG_ID Producer);
|
| 569 |
+
|
| 570 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushCopyOfRetrievalFilter)
|
| 571 |
+
HRESULT ( STDMETHODCALLTYPE *PushCopyOfRetrievalFilter )(
|
| 572 |
+
IDXGIInfoQueue * This,
|
| 573 |
+
/* [annotation] */
|
| 574 |
+
_In_ DXGI_DEBUG_ID Producer);
|
| 575 |
+
|
| 576 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, PushRetrievalFilter)
|
| 577 |
+
HRESULT ( STDMETHODCALLTYPE *PushRetrievalFilter )(
|
| 578 |
+
IDXGIInfoQueue * This,
|
| 579 |
+
/* [annotation] */
|
| 580 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 581 |
+
/* [annotation] */
|
| 582 |
+
_In_ DXGI_INFO_QUEUE_FILTER *pFilter);
|
| 583 |
+
|
| 584 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, PopRetrievalFilter)
|
| 585 |
+
void ( STDMETHODCALLTYPE *PopRetrievalFilter )(
|
| 586 |
+
IDXGIInfoQueue * This,
|
| 587 |
+
/* [annotation] */
|
| 588 |
+
_In_ DXGI_DEBUG_ID Producer);
|
| 589 |
+
|
| 590 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetRetrievalFilterStackSize)
|
| 591 |
+
UINT ( STDMETHODCALLTYPE *GetRetrievalFilterStackSize )(
|
| 592 |
+
IDXGIInfoQueue * This,
|
| 593 |
+
/* [annotation] */
|
| 594 |
+
_In_ DXGI_DEBUG_ID Producer);
|
| 595 |
+
|
| 596 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, AddMessage)
|
| 597 |
+
HRESULT ( STDMETHODCALLTYPE *AddMessage )(
|
| 598 |
+
IDXGIInfoQueue * This,
|
| 599 |
+
/* [annotation] */
|
| 600 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 601 |
+
/* [annotation] */
|
| 602 |
+
_In_ DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category,
|
| 603 |
+
/* [annotation] */
|
| 604 |
+
_In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity,
|
| 605 |
+
/* [annotation] */
|
| 606 |
+
_In_ DXGI_INFO_QUEUE_MESSAGE_ID ID,
|
| 607 |
+
/* [annotation] */
|
| 608 |
+
_In_ LPCSTR pDescription);
|
| 609 |
+
|
| 610 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, AddApplicationMessage)
|
| 611 |
+
HRESULT ( STDMETHODCALLTYPE *AddApplicationMessage )(
|
| 612 |
+
IDXGIInfoQueue * This,
|
| 613 |
+
/* [annotation] */
|
| 614 |
+
_In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity,
|
| 615 |
+
/* [annotation] */
|
| 616 |
+
_In_ LPCSTR pDescription);
|
| 617 |
+
|
| 618 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, SetBreakOnCategory)
|
| 619 |
+
HRESULT ( STDMETHODCALLTYPE *SetBreakOnCategory )(
|
| 620 |
+
IDXGIInfoQueue * This,
|
| 621 |
+
/* [annotation] */
|
| 622 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 623 |
+
/* [annotation] */
|
| 624 |
+
_In_ DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category,
|
| 625 |
+
/* [annotation] */
|
| 626 |
+
_In_ BOOL bEnable);
|
| 627 |
+
|
| 628 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, SetBreakOnSeverity)
|
| 629 |
+
HRESULT ( STDMETHODCALLTYPE *SetBreakOnSeverity )(
|
| 630 |
+
IDXGIInfoQueue * This,
|
| 631 |
+
/* [annotation] */
|
| 632 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 633 |
+
/* [annotation] */
|
| 634 |
+
_In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity,
|
| 635 |
+
/* [annotation] */
|
| 636 |
+
_In_ BOOL bEnable);
|
| 637 |
+
|
| 638 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, SetBreakOnID)
|
| 639 |
+
HRESULT ( STDMETHODCALLTYPE *SetBreakOnID )(
|
| 640 |
+
IDXGIInfoQueue * This,
|
| 641 |
+
/* [annotation] */
|
| 642 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 643 |
+
/* [annotation] */
|
| 644 |
+
_In_ DXGI_INFO_QUEUE_MESSAGE_ID ID,
|
| 645 |
+
/* [annotation] */
|
| 646 |
+
_In_ BOOL bEnable);
|
| 647 |
+
|
| 648 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetBreakOnCategory)
|
| 649 |
+
BOOL ( STDMETHODCALLTYPE *GetBreakOnCategory )(
|
| 650 |
+
IDXGIInfoQueue * This,
|
| 651 |
+
/* [annotation] */
|
| 652 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 653 |
+
/* [annotation] */
|
| 654 |
+
_In_ DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category);
|
| 655 |
+
|
| 656 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetBreakOnSeverity)
|
| 657 |
+
BOOL ( STDMETHODCALLTYPE *GetBreakOnSeverity )(
|
| 658 |
+
IDXGIInfoQueue * This,
|
| 659 |
+
/* [annotation] */
|
| 660 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 661 |
+
/* [annotation] */
|
| 662 |
+
_In_ DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity);
|
| 663 |
+
|
| 664 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetBreakOnID)
|
| 665 |
+
BOOL ( STDMETHODCALLTYPE *GetBreakOnID )(
|
| 666 |
+
IDXGIInfoQueue * This,
|
| 667 |
+
/* [annotation] */
|
| 668 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 669 |
+
/* [annotation] */
|
| 670 |
+
_In_ DXGI_INFO_QUEUE_MESSAGE_ID ID);
|
| 671 |
+
|
| 672 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, SetMuteDebugOutput)
|
| 673 |
+
void ( STDMETHODCALLTYPE *SetMuteDebugOutput )(
|
| 674 |
+
IDXGIInfoQueue * This,
|
| 675 |
+
/* [annotation] */
|
| 676 |
+
_In_ DXGI_DEBUG_ID Producer,
|
| 677 |
+
/* [annotation] */
|
| 678 |
+
_In_ BOOL bMute);
|
| 679 |
+
|
| 680 |
+
DECLSPEC_XFGVIRT(IDXGIInfoQueue, GetMuteDebugOutput)
|
| 681 |
+
BOOL ( STDMETHODCALLTYPE *GetMuteDebugOutput )(
|
| 682 |
+
IDXGIInfoQueue * This,
|
| 683 |
+
/* [annotation] */
|
| 684 |
+
_In_ DXGI_DEBUG_ID Producer);
|
| 685 |
+
|
| 686 |
+
END_INTERFACE
|
| 687 |
+
} IDXGIInfoQueueVtbl;
|
| 688 |
+
|
| 689 |
+
interface IDXGIInfoQueue
|
| 690 |
+
{
|
| 691 |
+
CONST_VTBL struct IDXGIInfoQueueVtbl *lpVtbl;
|
| 692 |
+
};
|
| 693 |
+
|
| 694 |
+
|
| 695 |
+
|
| 696 |
+
#ifdef COBJMACROS
|
| 697 |
+
|
| 698 |
+
|
| 699 |
+
#define IDXGIInfoQueue_QueryInterface(This,riid,ppvObject) \
|
| 700 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 701 |
+
|
| 702 |
+
#define IDXGIInfoQueue_AddRef(This) \
|
| 703 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 704 |
+
|
| 705 |
+
#define IDXGIInfoQueue_Release(This) \
|
| 706 |
+
( (This)->lpVtbl -> Release(This) )
|
| 707 |
+
|
| 708 |
+
|
| 709 |
+
#define IDXGIInfoQueue_SetMessageCountLimit(This,Producer,MessageCountLimit) \
|
| 710 |
+
( (This)->lpVtbl -> SetMessageCountLimit(This,Producer,MessageCountLimit) )
|
| 711 |
+
|
| 712 |
+
#define IDXGIInfoQueue_ClearStoredMessages(This,Producer) \
|
| 713 |
+
( (This)->lpVtbl -> ClearStoredMessages(This,Producer) )
|
| 714 |
+
|
| 715 |
+
#define IDXGIInfoQueue_GetMessage(This,Producer,MessageIndex,pMessage,pMessageByteLength) \
|
| 716 |
+
( (This)->lpVtbl -> GetMessage(This,Producer,MessageIndex,pMessage,pMessageByteLength) )
|
| 717 |
+
|
| 718 |
+
#define IDXGIInfoQueue_GetNumStoredMessagesAllowedByRetrievalFilters(This,Producer) \
|
| 719 |
+
( (This)->lpVtbl -> GetNumStoredMessagesAllowedByRetrievalFilters(This,Producer) )
|
| 720 |
+
|
| 721 |
+
#define IDXGIInfoQueue_GetNumStoredMessages(This,Producer) \
|
| 722 |
+
( (This)->lpVtbl -> GetNumStoredMessages(This,Producer) )
|
| 723 |
+
|
| 724 |
+
#define IDXGIInfoQueue_GetNumMessagesDiscardedByMessageCountLimit(This,Producer) \
|
| 725 |
+
( (This)->lpVtbl -> GetNumMessagesDiscardedByMessageCountLimit(This,Producer) )
|
| 726 |
+
|
| 727 |
+
#define IDXGIInfoQueue_GetMessageCountLimit(This,Producer) \
|
| 728 |
+
( (This)->lpVtbl -> GetMessageCountLimit(This,Producer) )
|
| 729 |
+
|
| 730 |
+
#define IDXGIInfoQueue_GetNumMessagesAllowedByStorageFilter(This,Producer) \
|
| 731 |
+
( (This)->lpVtbl -> GetNumMessagesAllowedByStorageFilter(This,Producer) )
|
| 732 |
+
|
| 733 |
+
#define IDXGIInfoQueue_GetNumMessagesDeniedByStorageFilter(This,Producer) \
|
| 734 |
+
( (This)->lpVtbl -> GetNumMessagesDeniedByStorageFilter(This,Producer) )
|
| 735 |
+
|
| 736 |
+
#define IDXGIInfoQueue_AddStorageFilterEntries(This,Producer,pFilter) \
|
| 737 |
+
( (This)->lpVtbl -> AddStorageFilterEntries(This,Producer,pFilter) )
|
| 738 |
+
|
| 739 |
+
#define IDXGIInfoQueue_GetStorageFilter(This,Producer,pFilter,pFilterByteLength) \
|
| 740 |
+
( (This)->lpVtbl -> GetStorageFilter(This,Producer,pFilter,pFilterByteLength) )
|
| 741 |
+
|
| 742 |
+
#define IDXGIInfoQueue_ClearStorageFilter(This,Producer) \
|
| 743 |
+
( (This)->lpVtbl -> ClearStorageFilter(This,Producer) )
|
| 744 |
+
|
| 745 |
+
#define IDXGIInfoQueue_PushEmptyStorageFilter(This,Producer) \
|
| 746 |
+
( (This)->lpVtbl -> PushEmptyStorageFilter(This,Producer) )
|
| 747 |
+
|
| 748 |
+
#define IDXGIInfoQueue_PushDenyAllStorageFilter(This,Producer) \
|
| 749 |
+
( (This)->lpVtbl -> PushDenyAllStorageFilter(This,Producer) )
|
| 750 |
+
|
| 751 |
+
#define IDXGIInfoQueue_PushCopyOfStorageFilter(This,Producer) \
|
| 752 |
+
( (This)->lpVtbl -> PushCopyOfStorageFilter(This,Producer) )
|
| 753 |
+
|
| 754 |
+
#define IDXGIInfoQueue_PushStorageFilter(This,Producer,pFilter) \
|
| 755 |
+
( (This)->lpVtbl -> PushStorageFilter(This,Producer,pFilter) )
|
| 756 |
+
|
| 757 |
+
#define IDXGIInfoQueue_PopStorageFilter(This,Producer) \
|
| 758 |
+
( (This)->lpVtbl -> PopStorageFilter(This,Producer) )
|
| 759 |
+
|
| 760 |
+
#define IDXGIInfoQueue_GetStorageFilterStackSize(This,Producer) \
|
| 761 |
+
( (This)->lpVtbl -> GetStorageFilterStackSize(This,Producer) )
|
| 762 |
+
|
| 763 |
+
#define IDXGIInfoQueue_AddRetrievalFilterEntries(This,Producer,pFilter) \
|
| 764 |
+
( (This)->lpVtbl -> AddRetrievalFilterEntries(This,Producer,pFilter) )
|
| 765 |
+
|
| 766 |
+
#define IDXGIInfoQueue_GetRetrievalFilter(This,Producer,pFilter,pFilterByteLength) \
|
| 767 |
+
( (This)->lpVtbl -> GetRetrievalFilter(This,Producer,pFilter,pFilterByteLength) )
|
| 768 |
+
|
| 769 |
+
#define IDXGIInfoQueue_ClearRetrievalFilter(This,Producer) \
|
| 770 |
+
( (This)->lpVtbl -> ClearRetrievalFilter(This,Producer) )
|
| 771 |
+
|
| 772 |
+
#define IDXGIInfoQueue_PushEmptyRetrievalFilter(This,Producer) \
|
| 773 |
+
( (This)->lpVtbl -> PushEmptyRetrievalFilter(This,Producer) )
|
| 774 |
+
|
| 775 |
+
#define IDXGIInfoQueue_PushDenyAllRetrievalFilter(This,Producer) \
|
| 776 |
+
( (This)->lpVtbl -> PushDenyAllRetrievalFilter(This,Producer) )
|
| 777 |
+
|
| 778 |
+
#define IDXGIInfoQueue_PushCopyOfRetrievalFilter(This,Producer) \
|
| 779 |
+
( (This)->lpVtbl -> PushCopyOfRetrievalFilter(This,Producer) )
|
| 780 |
+
|
| 781 |
+
#define IDXGIInfoQueue_PushRetrievalFilter(This,Producer,pFilter) \
|
| 782 |
+
( (This)->lpVtbl -> PushRetrievalFilter(This,Producer,pFilter) )
|
| 783 |
+
|
| 784 |
+
#define IDXGIInfoQueue_PopRetrievalFilter(This,Producer) \
|
| 785 |
+
( (This)->lpVtbl -> PopRetrievalFilter(This,Producer) )
|
| 786 |
+
|
| 787 |
+
#define IDXGIInfoQueue_GetRetrievalFilterStackSize(This,Producer) \
|
| 788 |
+
( (This)->lpVtbl -> GetRetrievalFilterStackSize(This,Producer) )
|
| 789 |
+
|
| 790 |
+
#define IDXGIInfoQueue_AddMessage(This,Producer,Category,Severity,ID,pDescription) \
|
| 791 |
+
( (This)->lpVtbl -> AddMessage(This,Producer,Category,Severity,ID,pDescription) )
|
| 792 |
+
|
| 793 |
+
#define IDXGIInfoQueue_AddApplicationMessage(This,Severity,pDescription) \
|
| 794 |
+
( (This)->lpVtbl -> AddApplicationMessage(This,Severity,pDescription) )
|
| 795 |
+
|
| 796 |
+
#define IDXGIInfoQueue_SetBreakOnCategory(This,Producer,Category,bEnable) \
|
| 797 |
+
( (This)->lpVtbl -> SetBreakOnCategory(This,Producer,Category,bEnable) )
|
| 798 |
+
|
| 799 |
+
#define IDXGIInfoQueue_SetBreakOnSeverity(This,Producer,Severity,bEnable) \
|
| 800 |
+
( (This)->lpVtbl -> SetBreakOnSeverity(This,Producer,Severity,bEnable) )
|
| 801 |
+
|
| 802 |
+
#define IDXGIInfoQueue_SetBreakOnID(This,Producer,ID,bEnable) \
|
| 803 |
+
( (This)->lpVtbl -> SetBreakOnID(This,Producer,ID,bEnable) )
|
| 804 |
+
|
| 805 |
+
#define IDXGIInfoQueue_GetBreakOnCategory(This,Producer,Category) \
|
| 806 |
+
( (This)->lpVtbl -> GetBreakOnCategory(This,Producer,Category) )
|
| 807 |
+
|
| 808 |
+
#define IDXGIInfoQueue_GetBreakOnSeverity(This,Producer,Severity) \
|
| 809 |
+
( (This)->lpVtbl -> GetBreakOnSeverity(This,Producer,Severity) )
|
| 810 |
+
|
| 811 |
+
#define IDXGIInfoQueue_GetBreakOnID(This,Producer,ID) \
|
| 812 |
+
( (This)->lpVtbl -> GetBreakOnID(This,Producer,ID) )
|
| 813 |
+
|
| 814 |
+
#define IDXGIInfoQueue_SetMuteDebugOutput(This,Producer,bMute) \
|
| 815 |
+
( (This)->lpVtbl -> SetMuteDebugOutput(This,Producer,bMute) )
|
| 816 |
+
|
| 817 |
+
#define IDXGIInfoQueue_GetMuteDebugOutput(This,Producer) \
|
| 818 |
+
( (This)->lpVtbl -> GetMuteDebugOutput(This,Producer) )
|
| 819 |
+
|
| 820 |
+
#endif /* COBJMACROS */
|
| 821 |
+
|
| 822 |
+
|
| 823 |
+
#endif /* C style interface */
|
| 824 |
+
|
| 825 |
+
|
| 826 |
+
|
| 827 |
+
|
| 828 |
+
#endif /* __IDXGIInfoQueue_INTERFACE_DEFINED__ */
|
| 829 |
+
|
| 830 |
+
|
| 831 |
+
#ifndef __IDXGIDebug_INTERFACE_DEFINED__
|
| 832 |
+
#define __IDXGIDebug_INTERFACE_DEFINED__
|
| 833 |
+
|
| 834 |
+
/* interface IDXGIDebug */
|
| 835 |
+
/* [unique][local][object][uuid] */
|
| 836 |
+
|
| 837 |
+
|
| 838 |
+
EXTERN_C const IID IID_IDXGIDebug;
|
| 839 |
+
|
| 840 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 841 |
+
|
| 842 |
+
MIDL_INTERFACE("119E7452-DE9E-40fe-8806-88F90C12B441")
|
| 843 |
+
IDXGIDebug : public IUnknown
|
| 844 |
+
{
|
| 845 |
+
public:
|
| 846 |
+
virtual HRESULT STDMETHODCALLTYPE ReportLiveObjects(
|
| 847 |
+
GUID apiid,
|
| 848 |
+
DXGI_DEBUG_RLO_FLAGS flags) = 0;
|
| 849 |
+
|
| 850 |
+
};
|
| 851 |
+
|
| 852 |
+
|
| 853 |
+
#else /* C style interface */
|
| 854 |
+
|
| 855 |
+
typedef struct IDXGIDebugVtbl
|
| 856 |
+
{
|
| 857 |
+
BEGIN_INTERFACE
|
| 858 |
+
|
| 859 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 860 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 861 |
+
IDXGIDebug * This,
|
| 862 |
+
/* [in] */ REFIID riid,
|
| 863 |
+
/* [annotation][iid_is][out] */
|
| 864 |
+
_COM_Outptr_ void **ppvObject);
|
| 865 |
+
|
| 866 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 867 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 868 |
+
IDXGIDebug * This);
|
| 869 |
+
|
| 870 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 871 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 872 |
+
IDXGIDebug * This);
|
| 873 |
+
|
| 874 |
+
DECLSPEC_XFGVIRT(IDXGIDebug, ReportLiveObjects)
|
| 875 |
+
HRESULT ( STDMETHODCALLTYPE *ReportLiveObjects )(
|
| 876 |
+
IDXGIDebug * This,
|
| 877 |
+
GUID apiid,
|
| 878 |
+
DXGI_DEBUG_RLO_FLAGS flags);
|
| 879 |
+
|
| 880 |
+
END_INTERFACE
|
| 881 |
+
} IDXGIDebugVtbl;
|
| 882 |
+
|
| 883 |
+
interface IDXGIDebug
|
| 884 |
+
{
|
| 885 |
+
CONST_VTBL struct IDXGIDebugVtbl *lpVtbl;
|
| 886 |
+
};
|
| 887 |
+
|
| 888 |
+
|
| 889 |
+
|
| 890 |
+
#ifdef COBJMACROS
|
| 891 |
+
|
| 892 |
+
|
| 893 |
+
#define IDXGIDebug_QueryInterface(This,riid,ppvObject) \
|
| 894 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 895 |
+
|
| 896 |
+
#define IDXGIDebug_AddRef(This) \
|
| 897 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 898 |
+
|
| 899 |
+
#define IDXGIDebug_Release(This) \
|
| 900 |
+
( (This)->lpVtbl -> Release(This) )
|
| 901 |
+
|
| 902 |
+
|
| 903 |
+
#define IDXGIDebug_ReportLiveObjects(This,apiid,flags) \
|
| 904 |
+
( (This)->lpVtbl -> ReportLiveObjects(This,apiid,flags) )
|
| 905 |
+
|
| 906 |
+
#endif /* COBJMACROS */
|
| 907 |
+
|
| 908 |
+
|
| 909 |
+
#endif /* C style interface */
|
| 910 |
+
|
| 911 |
+
|
| 912 |
+
|
| 913 |
+
|
| 914 |
+
#endif /* __IDXGIDebug_INTERFACE_DEFINED__ */
|
| 915 |
+
|
| 916 |
+
|
| 917 |
+
#ifndef __IDXGIDebug1_INTERFACE_DEFINED__
|
| 918 |
+
#define __IDXGIDebug1_INTERFACE_DEFINED__
|
| 919 |
+
|
| 920 |
+
/* interface IDXGIDebug1 */
|
| 921 |
+
/* [unique][local][object][uuid] */
|
| 922 |
+
|
| 923 |
+
|
| 924 |
+
EXTERN_C const IID IID_IDXGIDebug1;
|
| 925 |
+
|
| 926 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 927 |
+
|
| 928 |
+
MIDL_INTERFACE("c5a05f0c-16f2-4adf-9f4d-a8c4d58ac550")
|
| 929 |
+
IDXGIDebug1 : public IDXGIDebug
|
| 930 |
+
{
|
| 931 |
+
public:
|
| 932 |
+
virtual void STDMETHODCALLTYPE EnableLeakTrackingForThread( void) = 0;
|
| 933 |
+
|
| 934 |
+
virtual void STDMETHODCALLTYPE DisableLeakTrackingForThread( void) = 0;
|
| 935 |
+
|
| 936 |
+
virtual BOOL STDMETHODCALLTYPE IsLeakTrackingEnabledForThread( void) = 0;
|
| 937 |
+
|
| 938 |
+
};
|
| 939 |
+
|
| 940 |
+
|
| 941 |
+
#else /* C style interface */
|
| 942 |
+
|
| 943 |
+
typedef struct IDXGIDebug1Vtbl
|
| 944 |
+
{
|
| 945 |
+
BEGIN_INTERFACE
|
| 946 |
+
|
| 947 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 948 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 949 |
+
IDXGIDebug1 * This,
|
| 950 |
+
/* [in] */ REFIID riid,
|
| 951 |
+
/* [annotation][iid_is][out] */
|
| 952 |
+
_COM_Outptr_ void **ppvObject);
|
| 953 |
+
|
| 954 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 955 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 956 |
+
IDXGIDebug1 * This);
|
| 957 |
+
|
| 958 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 959 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 960 |
+
IDXGIDebug1 * This);
|
| 961 |
+
|
| 962 |
+
DECLSPEC_XFGVIRT(IDXGIDebug, ReportLiveObjects)
|
| 963 |
+
HRESULT ( STDMETHODCALLTYPE *ReportLiveObjects )(
|
| 964 |
+
IDXGIDebug1 * This,
|
| 965 |
+
GUID apiid,
|
| 966 |
+
DXGI_DEBUG_RLO_FLAGS flags);
|
| 967 |
+
|
| 968 |
+
DECLSPEC_XFGVIRT(IDXGIDebug1, EnableLeakTrackingForThread)
|
| 969 |
+
void ( STDMETHODCALLTYPE *EnableLeakTrackingForThread )(
|
| 970 |
+
IDXGIDebug1 * This);
|
| 971 |
+
|
| 972 |
+
DECLSPEC_XFGVIRT(IDXGIDebug1, DisableLeakTrackingForThread)
|
| 973 |
+
void ( STDMETHODCALLTYPE *DisableLeakTrackingForThread )(
|
| 974 |
+
IDXGIDebug1 * This);
|
| 975 |
+
|
| 976 |
+
DECLSPEC_XFGVIRT(IDXGIDebug1, IsLeakTrackingEnabledForThread)
|
| 977 |
+
BOOL ( STDMETHODCALLTYPE *IsLeakTrackingEnabledForThread )(
|
| 978 |
+
IDXGIDebug1 * This);
|
| 979 |
+
|
| 980 |
+
END_INTERFACE
|
| 981 |
+
} IDXGIDebug1Vtbl;
|
| 982 |
+
|
| 983 |
+
interface IDXGIDebug1
|
| 984 |
+
{
|
| 985 |
+
CONST_VTBL struct IDXGIDebug1Vtbl *lpVtbl;
|
| 986 |
+
};
|
| 987 |
+
|
| 988 |
+
|
| 989 |
+
|
| 990 |
+
#ifdef COBJMACROS
|
| 991 |
+
|
| 992 |
+
|
| 993 |
+
#define IDXGIDebug1_QueryInterface(This,riid,ppvObject) \
|
| 994 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 995 |
+
|
| 996 |
+
#define IDXGIDebug1_AddRef(This) \
|
| 997 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 998 |
+
|
| 999 |
+
#define IDXGIDebug1_Release(This) \
|
| 1000 |
+
( (This)->lpVtbl -> Release(This) )
|
| 1001 |
+
|
| 1002 |
+
|
| 1003 |
+
#define IDXGIDebug1_ReportLiveObjects(This,apiid,flags) \
|
| 1004 |
+
( (This)->lpVtbl -> ReportLiveObjects(This,apiid,flags) )
|
| 1005 |
+
|
| 1006 |
+
|
| 1007 |
+
#define IDXGIDebug1_EnableLeakTrackingForThread(This) \
|
| 1008 |
+
( (This)->lpVtbl -> EnableLeakTrackingForThread(This) )
|
| 1009 |
+
|
| 1010 |
+
#define IDXGIDebug1_DisableLeakTrackingForThread(This) \
|
| 1011 |
+
( (This)->lpVtbl -> DisableLeakTrackingForThread(This) )
|
| 1012 |
+
|
| 1013 |
+
#define IDXGIDebug1_IsLeakTrackingEnabledForThread(This) \
|
| 1014 |
+
( (This)->lpVtbl -> IsLeakTrackingEnabledForThread(This) )
|
| 1015 |
+
|
| 1016 |
+
#endif /* COBJMACROS */
|
| 1017 |
+
|
| 1018 |
+
|
| 1019 |
+
#endif /* C style interface */
|
| 1020 |
+
|
| 1021 |
+
|
| 1022 |
+
|
| 1023 |
+
|
| 1024 |
+
#endif /* __IDXGIDebug1_INTERFACE_DEFINED__ */
|
| 1025 |
+
|
| 1026 |
+
|
| 1027 |
+
/* interface __MIDL_itf_dxgidebug_0000_0003 */
|
| 1028 |
+
/* [local] */
|
| 1029 |
+
|
| 1030 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */
|
| 1031 |
+
#pragma endregion
|
| 1032 |
+
#pragma region Desktop Family
|
| 1033 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 1034 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 1035 |
+
#pragma endregion
|
| 1036 |
+
DEFINE_GUID(IID_IDXGIInfoQueue,0xD67441C7,0x672A,0x476f,0x9E,0x82,0xCD,0x55,0xB4,0x49,0x49,0xCE);
|
| 1037 |
+
DEFINE_GUID(IID_IDXGIDebug,0x119E7452,0xDE9E,0x40fe,0x88,0x06,0x88,0xF9,0x0C,0x12,0xB4,0x41);
|
| 1038 |
+
DEFINE_GUID(IID_IDXGIDebug1,0xc5a05f0c,0x16f2,0x4adf,0x9f,0x4d,0xa8,0xc4,0xd5,0x8a,0xc5,0x50);
|
| 1039 |
+
|
| 1040 |
+
|
| 1041 |
+
extern RPC_IF_HANDLE __MIDL_itf_dxgidebug_0000_0003_v0_0_c_ifspec;
|
| 1042 |
+
extern RPC_IF_HANDLE __MIDL_itf_dxgidebug_0000_0003_v0_0_s_ifspec;
|
| 1043 |
+
|
| 1044 |
+
/* Additional Prototypes for ALL interfaces */
|
| 1045 |
+
|
| 1046 |
+
/* end of Additional Prototypes */
|
| 1047 |
+
|
| 1048 |
+
#ifdef __cplusplus
|
| 1049 |
+
}
|
| 1050 |
+
#endif
|
| 1051 |
+
|
| 1052 |
+
#endif
|
| 1053 |
+
|
| 1054 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxgidebug.idl
ADDED
|
@@ -0,0 +1,456 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//////////////////////////////////////////////////////////////////////////////////////////////
|
| 2 |
+
// //
|
| 3 |
+
// DXGIDebug.idl //
|
| 4 |
+
// //
|
| 5 |
+
// Contains interface definitions for the DXGI Debug Binary. //
|
| 6 |
+
// //
|
| 7 |
+
// Copyright (c) Microsoft Corporation. //
|
| 8 |
+
// //
|
| 9 |
+
//////////////////////////////////////////////////////////////////////////////////////////////
|
| 10 |
+
|
| 11 |
+
import "oaidl.idl";
|
| 12 |
+
import "ocidl.idl";
|
| 13 |
+
|
| 14 |
+
cpp_quote("#include <winapifamily.h>")
|
| 15 |
+
|
| 16 |
+
#pragma region Application Family
|
| 17 |
+
cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES)")
|
| 18 |
+
|
| 19 |
+
const UINT DXGI_DEBUG_BINARY_VERSION = 1;
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
typedef enum DXGI_DEBUG_RLO_FLAGS
|
| 23 |
+
{
|
| 24 |
+
DXGI_DEBUG_RLO_SUMMARY = 0x1,
|
| 25 |
+
DXGI_DEBUG_RLO_DETAIL = 0x2,
|
| 26 |
+
DXGI_DEBUG_RLO_IGNORE_INTERNAL = 0x4,
|
| 27 |
+
DXGI_DEBUG_RLO_ALL = 0x7,
|
| 28 |
+
} DXGI_DEBUG_RLO_FLAGS;
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
//==================================================================================================================================
|
| 32 |
+
//
|
| 33 |
+
// DXGI Debug Producer GUIDs
|
| 34 |
+
//
|
| 35 |
+
//==================================================================================================================================
|
| 36 |
+
typedef GUID DXGI_DEBUG_ID;
|
| 37 |
+
cpp_quote("DEFINE_GUID(DXGI_DEBUG_ALL, 0xe48ae283, 0xda80, 0x490b, 0x87, 0xe6, 0x43, 0xe9, 0xa9, 0xcf, 0xda, 0x8);")
|
| 38 |
+
cpp_quote("DEFINE_GUID(DXGI_DEBUG_DX, 0x35cdd7fc, 0x13b2, 0x421d, 0xa5, 0xd7, 0x7e, 0x44, 0x51, 0x28, 0x7d, 0x64);")
|
| 39 |
+
cpp_quote("DEFINE_GUID(DXGI_DEBUG_DXGI, 0x25cddaa4, 0xb1c6, 0x47e1, 0xac, 0x3e, 0x98, 0x87, 0x5b, 0x5a, 0x2e, 0x2a);")
|
| 40 |
+
cpp_quote("DEFINE_GUID(DXGI_DEBUG_APP, 0x6cd6e01, 0x4219, 0x4ebd, 0x87, 0x9, 0x27, 0xed, 0x23, 0x36, 0xc, 0x62);")
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
//==================================================================================================================================
|
| 44 |
+
//
|
| 45 |
+
// Info Queue
|
| 46 |
+
//
|
| 47 |
+
//==================================================================================================================================
|
| 48 |
+
|
| 49 |
+
typedef enum DXGI_INFO_QUEUE_MESSAGE_CATEGORY {
|
| 50 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_UNKNOWN,
|
| 51 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_MISCELLANEOUS,
|
| 52 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_INITIALIZATION,
|
| 53 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_CLEANUP,
|
| 54 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_COMPILATION,
|
| 55 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_CREATION,
|
| 56 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_SETTING,
|
| 57 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_STATE_GETTING,
|
| 58 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_RESOURCE_MANIPULATION,
|
| 59 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_EXECUTION,
|
| 60 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY_SHADER,
|
| 61 |
+
} DXGI_INFO_QUEUE_MESSAGE_CATEGORY;
|
| 62 |
+
|
| 63 |
+
typedef enum DXGI_INFO_QUEUE_MESSAGE_SEVERITY {
|
| 64 |
+
DXGI_INFO_QUEUE_MESSAGE_SEVERITY_CORRUPTION,
|
| 65 |
+
DXGI_INFO_QUEUE_MESSAGE_SEVERITY_ERROR,
|
| 66 |
+
DXGI_INFO_QUEUE_MESSAGE_SEVERITY_WARNING,
|
| 67 |
+
DXGI_INFO_QUEUE_MESSAGE_SEVERITY_INFO,
|
| 68 |
+
DXGI_INFO_QUEUE_MESSAGE_SEVERITY_MESSAGE
|
| 69 |
+
} DXGI_INFO_QUEUE_MESSAGE_SEVERITY;
|
| 70 |
+
|
| 71 |
+
typedef int DXGI_INFO_QUEUE_MESSAGE_ID;
|
| 72 |
+
cpp_quote("#define DXGI_INFO_QUEUE_MESSAGE_ID_STRING_FROM_APPLICATION 0")
|
| 73 |
+
|
| 74 |
+
typedef struct DXGI_INFO_QUEUE_MESSAGE {
|
| 75 |
+
DXGI_DEBUG_ID Producer;
|
| 76 |
+
DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category;
|
| 77 |
+
DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity;
|
| 78 |
+
DXGI_INFO_QUEUE_MESSAGE_ID ID;
|
| 79 |
+
[annotation("_Field_size_(DescriptionByteLength)")] const char* pDescription;
|
| 80 |
+
SIZE_T DescriptionByteLength;
|
| 81 |
+
} DXGI_INFO_QUEUE_MESSAGE;
|
| 82 |
+
|
| 83 |
+
typedef struct DXGI_INFO_QUEUE_FILTER_DESC
|
| 84 |
+
{
|
| 85 |
+
UINT NumCategories;
|
| 86 |
+
[annotation("_Field_size_(NumCategories)")] DXGI_INFO_QUEUE_MESSAGE_CATEGORY* pCategoryList;
|
| 87 |
+
|
| 88 |
+
UINT NumSeverities;
|
| 89 |
+
[annotation("_Field_size_(NumSeverities)")] DXGI_INFO_QUEUE_MESSAGE_SEVERITY* pSeverityList;
|
| 90 |
+
|
| 91 |
+
UINT NumIDs;
|
| 92 |
+
[annotation("_Field_size_(NumIDs)")] DXGI_INFO_QUEUE_MESSAGE_ID* pIDList;
|
| 93 |
+
} DXGI_INFO_QUEUE_FILTER_DESC;
|
| 94 |
+
|
| 95 |
+
// To use, memset to 0, then fill in what you need.
|
| 96 |
+
typedef struct DXGI_INFO_QUEUE_FILTER
|
| 97 |
+
{
|
| 98 |
+
DXGI_INFO_QUEUE_FILTER_DESC AllowList;
|
| 99 |
+
DXGI_INFO_QUEUE_FILTER_DESC DenyList;
|
| 100 |
+
} DXGI_INFO_QUEUE_FILTER;
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
cpp_quote("#define DXGI_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT 1024")
|
| 105 |
+
|
| 106 |
+
cpp_quote( "HRESULT WINAPI DXGIGetDebugInterface(REFIID riid, void **ppDebug);" )
|
| 107 |
+
|
| 108 |
+
//=============================================================================
|
| 109 |
+
// IDXGIInfoQueue
|
| 110 |
+
//
|
| 111 |
+
// Logs DX Messages.
|
| 112 |
+
// This interface is a singleton per process. Debug DX devices will log messages
|
| 113 |
+
// to this object which can be retrieved through its APIs.
|
| 114 |
+
//
|
| 115 |
+
//
|
| 116 |
+
[ uuid( D67441C7-672A-476f-9E82-CD55B44949CE ), object, local, pointer_default( unique ) ]
|
| 117 |
+
|
| 118 |
+
interface IDXGIInfoQueue
|
| 119 |
+
: IUnknown
|
| 120 |
+
{
|
| 121 |
+
//=========================================================================
|
| 122 |
+
// Methods for configuring how much data is stored in the queue.
|
| 123 |
+
|
| 124 |
+
// SetMessageCountLimit()
|
| 125 |
+
// This sets how many messages are stored for a given producer. When the queue
|
| 126 |
+
// is full, new messages coming in push old messages out (for that producer).
|
| 127 |
+
// Passing -1 to SetMessageCountLimit means the queue has
|
| 128 |
+
// unlimited size (go until out of memory or ClearStoredMessages()).
|
| 129 |
+
// The default message count size is DXGI_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT
|
| 130 |
+
// Returns S_OK or E_INVALIDARG.
|
| 131 |
+
HRESULT SetMessageCountLimit(
|
| 132 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer,
|
| 133 |
+
[annotation("_In_")] UINT64 MessageCountLimit );
|
| 134 |
+
|
| 135 |
+
// ClearStoredMessages
|
| 136 |
+
void ClearStoredMessages(
|
| 137 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer);
|
| 138 |
+
|
| 139 |
+
//=========================================================================
|
| 140 |
+
// Methods for retrieving data or statistics from the queue.
|
| 141 |
+
|
| 142 |
+
// GetMessage()
|
| 143 |
+
// Retrieves messages, one at a time, from the queue which pass any
|
| 144 |
+
// retrieval filter currently defined.
|
| 145 |
+
//
|
| 146 |
+
// Call GetMessage with (DXGI_INFO_QUEUE_PRODUCER_ALL) to get messages
|
| 147 |
+
// from all producers.
|
| 148 |
+
//
|
| 149 |
+
// The MessageIndex parameter is a 0 based index into the results passing
|
| 150 |
+
// the filter. The number of results is returned by
|
| 151 |
+
// GetNumStoredMessagesAllowedByRetrievalFilter().
|
| 152 |
+
//
|
| 153 |
+
// Note this does not remove the message from the queue.
|
| 154 |
+
//
|
| 155 |
+
// pMessageByteLength inputs the size of the buffer passed in via
|
| 156 |
+
// pMessage, and outputs the size of the message. pMessage can be NULL
|
| 157 |
+
// when the size of the required buffer is being queried (return S_FALSE).
|
| 158 |
+
//
|
| 159 |
+
// NOTE: The returned buffer pMessage is NOT just the size of DXGI_INFO_QUEUE_MESSAGE,
|
| 160 |
+
// it includes extra memory after the DXGI_INFO_QUEUE_MESSAGE for storing the string
|
| 161 |
+
// description, which is pointed to from within DXGI_INFO_QUEUE_MESSAGE. Therefore
|
| 162 |
+
// applications should check the size needed for pMessage as described above.
|
| 163 |
+
//
|
| 164 |
+
// Watch out for thread safety when making consecutive calls first to
|
| 165 |
+
// determine the buffer size required and then to pass in the buffer and
|
| 166 |
+
// retrieve the message, and also between calling
|
| 167 |
+
// GetNumStoredMessagesAllowedByRetrievalFilter() and enumerating through
|
| 168 |
+
// the results via GetMessagE().
|
| 169 |
+
//
|
| 170 |
+
// Returns: S_OK, S_FALSE, E_INVALIDARG or E_OUTOFMEMORY.
|
| 171 |
+
HRESULT GetMessage(
|
| 172 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer,
|
| 173 |
+
[annotation("_In_")] UINT64 MessageIndex,
|
| 174 |
+
[annotation("_Out_writes_bytes_opt_(*pMessageByteLength)")] DXGI_INFO_QUEUE_MESSAGE* pMessage,
|
| 175 |
+
[annotation("_Inout_")] SIZE_T* pMessageByteLength );
|
| 176 |
+
|
| 177 |
+
// GetNumStoredMessagesAllowedByRetrievalFilter()
|
| 178 |
+
// Returns how many messages that are currently in the queue which
|
| 179 |
+
// pass the retrieval filter.
|
| 180 |
+
// The MessageIndex parameter to GetMessage() indexes
|
| 181 |
+
// an array of this many results.
|
| 182 |
+
UINT64 GetNumStoredMessagesAllowedByRetrievalFilters(
|
| 183 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer);
|
| 184 |
+
|
| 185 |
+
// GetNumStoredMessages()
|
| 186 |
+
// Returns how many messages are currently stored in the queue for the specified producer.
|
| 187 |
+
UINT64 GetNumStoredMessages(
|
| 188 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer);
|
| 189 |
+
|
| 190 |
+
// GetNumMessagesDiscardedByMessageCountLimit() for the specified producer.
|
| 191 |
+
UINT64 GetNumMessagesDiscardedByMessageCountLimit(
|
| 192 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer);
|
| 193 |
+
|
| 194 |
+
// GetMessageCountLimit
|
| 195 |
+
// This is how many messages can be stored in the queue for the specified producer.
|
| 196 |
+
// When the queue is full, new messages coming in push old messages out.
|
| 197 |
+
// -1 means there is no limit.
|
| 198 |
+
UINT64 GetMessageCountLimit(
|
| 199 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer);
|
| 200 |
+
|
| 201 |
+
// GetNumMessagesAllowedByStorageFilter()
|
| 202 |
+
// Returns how many messages sent to the queue passed
|
| 203 |
+
// whatever storage filter was active upon receipt of
|
| 204 |
+
// the message.
|
| 205 |
+
// This can be a larger value than the message count limit,
|
| 206 |
+
// returned by GetMessageCountLimit(), since old messages are discarded
|
| 207 |
+
// when the queue is full to prevent overflow.
|
| 208 |
+
UINT64 GetNumMessagesAllowedByStorageFilter(
|
| 209 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer);
|
| 210 |
+
|
| 211 |
+
// GetNumMessagesDeniedByStorageFilter()
|
| 212 |
+
UINT64 GetNumMessagesDeniedByStorageFilter(
|
| 213 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer);
|
| 214 |
+
|
| 215 |
+
|
| 216 |
+
//=========================================================================
|
| 217 |
+
// Methods for filtering what gets stored in the queue
|
| 218 |
+
|
| 219 |
+
// AddStorageFilterEntries()
|
| 220 |
+
// Adds to the existing entries at top of stack
|
| 221 |
+
// Returns: S_OK, E_INVALIDARG or E_OUTOFMEMORY.
|
| 222 |
+
HRESULT AddStorageFilterEntries(
|
| 223 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer,
|
| 224 |
+
[annotation("_In_")] DXGI_INFO_QUEUE_FILTER* pFilter );
|
| 225 |
+
|
| 226 |
+
// GetStorageFilter()
|
| 227 |
+
// Gets all entries at top of stack.
|
| 228 |
+
// The application must allocate the output buffer. The size required can be
|
| 229 |
+
// queried by passing null for pFilter and looking at the returned
|
| 230 |
+
// pFilterByteLength (HRESULT is S_FALSE). Note that DXGI_INFO_QUEUE_FILTER contains
|
| 231 |
+
// pointers - these will point to locations within the same
|
| 232 |
+
// contiguous buffer - *pFilterByteLength is the total storage needed for all
|
| 233 |
+
// data. So the application needs to only allocate/free the memory for pFilter.
|
| 234 |
+
// Returns S_OK, S_FALSE, E_INVALIDARG or E_OUTOFMEMORY
|
| 235 |
+
HRESULT GetStorageFilter(
|
| 236 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer,
|
| 237 |
+
[annotation("_Out_writes_bytes_opt_(*pFilterByteLength)")] DXGI_INFO_QUEUE_FILTER* pFilter,
|
| 238 |
+
[annotation("_Inout_")] SIZE_T* pFilterByteLength );
|
| 239 |
+
|
| 240 |
+
// ClearStorageFilter()
|
| 241 |
+
// Clears filter at the top of the stack (if there is one)
|
| 242 |
+
void ClearStorageFilter(
|
| 243 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer);
|
| 244 |
+
|
| 245 |
+
// PushEmptyStorageFilter()
|
| 246 |
+
// Push an empty storage filter on the stack to allow local filtering changes.
|
| 247 |
+
// For convenience, this is automatically called by SetStorageFilter()
|
| 248 |
+
// if the stack is empty. Thus if the stack is not needed, filters can be
|
| 249 |
+
// defined without ever bothering to push or pop.
|
| 250 |
+
// Returns S_OK or E_OUTOFMEMORY
|
| 251 |
+
HRESULT PushEmptyStorageFilter(
|
| 252 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer);
|
| 253 |
+
|
| 254 |
+
// PushDenyAllStorageFilter()
|
| 255 |
+
// Push a storage filter that denies all messages. This is for convience to
|
| 256 |
+
// silence all messages from a given producer. Messages that are not stored
|
| 257 |
+
// in the InfoQueue are not displayed to debug output.
|
| 258 |
+
// A deny all will be a filter with all of the severities in the deny list.
|
| 259 |
+
// Returns S_OK or E_OUTOFMEMORY
|
| 260 |
+
HRESULT PushDenyAllStorageFilter(
|
| 261 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer);
|
| 262 |
+
|
| 263 |
+
// PushCopyOfStorageFilter()
|
| 264 |
+
// Push a copy of the current filter so that local modifications can be made
|
| 265 |
+
// starting from what currently exists.
|
| 266 |
+
// Returns S_OK or E_OUTOFMEMORY
|
| 267 |
+
HRESULT PushCopyOfStorageFilter(
|
| 268 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer);
|
| 269 |
+
|
| 270 |
+
|
| 271 |
+
// PushStorageFilter()
|
| 272 |
+
// Push a filter passed as a parameter onto the stack. This is
|
| 273 |
+
// just a helper for calling PushEmptyStorageFilter() followed
|
| 274 |
+
// by AddStorageFilterEntries()
|
| 275 |
+
// Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY.
|
| 276 |
+
HRESULT PushStorageFilter(
|
| 277 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer,
|
| 278 |
+
[annotation("_In_")] DXGI_INFO_QUEUE_FILTER* pFilter );
|
| 279 |
+
|
| 280 |
+
// PopStorageFilter()
|
| 281 |
+
// Pop the current storage filter off the stack (if there is one)
|
| 282 |
+
void PopStorageFilter(
|
| 283 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer);
|
| 284 |
+
|
| 285 |
+
// GetStorageFilterStackSize()
|
| 286 |
+
UINT GetStorageFilterStackSize(
|
| 287 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer);
|
| 288 |
+
|
| 289 |
+
//=========================================================================
|
| 290 |
+
// Methods for filtering what gets read out of the queue by GetMessage().
|
| 291 |
+
|
| 292 |
+
// AddRetrievalFilterEntries()
|
| 293 |
+
// Adds to the existing entries at top of stack
|
| 294 |
+
// Returns: S_OK, E_INVALIDARG or E_OUTOFMEMORY.
|
| 295 |
+
HRESULT AddRetrievalFilterEntries(
|
| 296 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer,
|
| 297 |
+
[annotation("_In_")] DXGI_INFO_QUEUE_FILTER* pFilter );
|
| 298 |
+
|
| 299 |
+
// GetRetrievalFilter()
|
| 300 |
+
// Gets all entries at top of stack.
|
| 301 |
+
// The application must allocate the output buffer. The size required can be
|
| 302 |
+
// queried by passing null for pFilter and looking at the returned
|
| 303 |
+
// pFilterByteLength (HRESULT is S_FALSE). Note that DXGI_INFO_QUEUE_FILTER contains
|
| 304 |
+
// pointers - these will point to locations within the same
|
| 305 |
+
// contiguous buffer - *pFilterByteLength is the total storage needed for all
|
| 306 |
+
// data. So the application needs to only allocate/free the memory for pFilter.
|
| 307 |
+
// Returns S_OK, S_FALSE, E_INVALIDARG or E_OUTOFMEMORY
|
| 308 |
+
HRESULT GetRetrievalFilter(
|
| 309 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer,
|
| 310 |
+
[annotation("_Out_writes_bytes_opt_(*pFilterByteLength)")] DXGI_INFO_QUEUE_FILTER* pFilter,
|
| 311 |
+
[annotation("_Inout_")] SIZE_T* pFilterByteLength );
|
| 312 |
+
|
| 313 |
+
// ClearRetrievalFilter()
|
| 314 |
+
// Clears filter at the top of the stack (if there is one)
|
| 315 |
+
void ClearRetrievalFilter(
|
| 316 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer);
|
| 317 |
+
|
| 318 |
+
// PushEmptyRetrievalFilter()
|
| 319 |
+
// Push an empty retrieval filter on the stack to allow local filtering changes.
|
| 320 |
+
// For convenience, this is automatically called by SetRetrievalFilter()
|
| 321 |
+
// if the stack is empty. Thus if the stack is not needed, filters can be
|
| 322 |
+
// defined without ever bothering to push or pop.
|
| 323 |
+
// Returns S_OK or E_OUTOFMEMORY
|
| 324 |
+
HRESULT PushEmptyRetrievalFilter(
|
| 325 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer);
|
| 326 |
+
|
| 327 |
+
// PushDenyAllRetrievalFilter()
|
| 328 |
+
// Push a retrieval filter that denies all messages. This is for convience to
|
| 329 |
+
// ignore all messages from a given producer.
|
| 330 |
+
// A deny all will be a filter with all of the severities in the deny list.
|
| 331 |
+
// Returns S_OK or E_OUTOFMEMORY
|
| 332 |
+
HRESULT PushDenyAllRetrievalFilter(
|
| 333 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer);
|
| 334 |
+
|
| 335 |
+
// PushCopyOfRetrievalFilter()
|
| 336 |
+
// Push a copy of the current filter so that local modifications can be made
|
| 337 |
+
// starting from what currently exists.
|
| 338 |
+
// Returns S_OK or E_OUTOFMEMORY
|
| 339 |
+
HRESULT PushCopyOfRetrievalFilter(
|
| 340 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer);
|
| 341 |
+
|
| 342 |
+
// PushRetrievalFilter()
|
| 343 |
+
// Push a filter passed as a parameter onto the stack. This is
|
| 344 |
+
// just a helper for calling PushEmptyRetrievalFilter() followed
|
| 345 |
+
// by AddRetrievalFilterEntries()
|
| 346 |
+
// Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY.
|
| 347 |
+
HRESULT PushRetrievalFilter(
|
| 348 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer,
|
| 349 |
+
[annotation("_In_")] DXGI_INFO_QUEUE_FILTER* pFilter );
|
| 350 |
+
|
| 351 |
+
// PopRetrievalFilter()
|
| 352 |
+
// Pop the current storage filter off the stack (if there is one)
|
| 353 |
+
void PopRetrievalFilter(
|
| 354 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer);
|
| 355 |
+
|
| 356 |
+
// GetRetrievalFilterStackSize()
|
| 357 |
+
UINT GetRetrievalFilterStackSize(
|
| 358 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer);
|
| 359 |
+
|
| 360 |
+
//=========================================================================
|
| 361 |
+
// Methods for adding entries to the queue.
|
| 362 |
+
|
| 363 |
+
// AddMessage()
|
| 364 |
+
// This is used by DX components to log messages. Nothing stops
|
| 365 |
+
// applications from calling this, but it isn't particularly useful.
|
| 366 |
+
// If an application wishes to insert custom strings into the queue,
|
| 367 |
+
// AddApplicationMessage() below is suggested. See below.
|
| 368 |
+
//
|
| 369 |
+
// Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY
|
| 370 |
+
HRESULT AddMessage(
|
| 371 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer,
|
| 372 |
+
[annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category,
|
| 373 |
+
[annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity,
|
| 374 |
+
[annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_ID ID,
|
| 375 |
+
[annotation("_In_")] LPCSTR pDescription);
|
| 376 |
+
|
| 377 |
+
// AddApplicationMessage()
|
| 378 |
+
// This is a convenience for applications that want
|
| 379 |
+
// to insert strings of their own into the queue, perhaps to log issues
|
| 380 |
+
// of its own, or to mark out points in time in the queue. This
|
| 381 |
+
// has the same effect as calling AddMessage() above with the
|
| 382 |
+
// following settings:
|
| 383 |
+
// Category = DXGI_INFO_QUEUE_MESSAGE_CATEGORY_APPLICATION_DEFINED
|
| 384 |
+
// Severity = <app selects from DXGI_INFO_QUEUE_MESSAGE_SEVERITY>
|
| 385 |
+
// ID = DXGI_INFO_QUEUE_MESSAGE_ID_STRING_FROM_APPLICATION
|
| 386 |
+
// pDescription = <application provided string>
|
| 387 |
+
//
|
| 388 |
+
// Returns S_OK, E_INVALIDARG or E_OUTOFMEMORY
|
| 389 |
+
HRESULT AddApplicationMessage(
|
| 390 |
+
[annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity,
|
| 391 |
+
[annotation("_In_")] LPCSTR pDescription);
|
| 392 |
+
|
| 393 |
+
//=========================================================================
|
| 394 |
+
// Methods for breaking on errors that pass the storage filter.
|
| 395 |
+
HRESULT SetBreakOnCategory(
|
| 396 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer,
|
| 397 |
+
[annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category,
|
| 398 |
+
[annotation("_In_")] BOOL bEnable );
|
| 399 |
+
HRESULT SetBreakOnSeverity(
|
| 400 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer,
|
| 401 |
+
[annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity,
|
| 402 |
+
[annotation("_In_")] BOOL bEnable );
|
| 403 |
+
HRESULT SetBreakOnID(
|
| 404 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer,
|
| 405 |
+
[annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_ID ID,
|
| 406 |
+
[annotation("_In_")] BOOL bEnable );
|
| 407 |
+
|
| 408 |
+
BOOL GetBreakOnCategory(
|
| 409 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer,
|
| 410 |
+
[annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_CATEGORY Category );
|
| 411 |
+
BOOL GetBreakOnSeverity(
|
| 412 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer,
|
| 413 |
+
[annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_SEVERITY Severity );
|
| 414 |
+
BOOL GetBreakOnID(
|
| 415 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer,
|
| 416 |
+
[annotation("_In_")] DXGI_INFO_QUEUE_MESSAGE_ID ID );
|
| 417 |
+
|
| 418 |
+
//=========================================================================
|
| 419 |
+
// Methods for muting debug spew from the InfoQueue
|
| 420 |
+
void SetMuteDebugOutput(
|
| 421 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer,
|
| 422 |
+
[annotation("_In_")] BOOL bMute );
|
| 423 |
+
BOOL GetMuteDebugOutput(
|
| 424 |
+
[annotation("_In_")] DXGI_DEBUG_ID Producer);
|
| 425 |
+
};
|
| 426 |
+
|
| 427 |
+
[ uuid(119E7452-DE9E-40fe-8806-88F90C12B441), object, local, pointer_default( unique ) ]
|
| 428 |
+
interface IDXGIDebug
|
| 429 |
+
: IUnknown
|
| 430 |
+
{
|
| 431 |
+
HRESULT ReportLiveObjects(GUID apiid, DXGI_DEBUG_RLO_FLAGS flags);
|
| 432 |
+
};
|
| 433 |
+
|
| 434 |
+
[ uuid(c5a05f0c-16f2-4adf-9f4d-a8c4d58ac550), object, local, pointer_default( unique ) ]
|
| 435 |
+
interface IDXGIDebug1
|
| 436 |
+
: IDXGIDebug
|
| 437 |
+
{
|
| 438 |
+
void EnableLeakTrackingForThread();
|
| 439 |
+
void DisableLeakTrackingForThread();
|
| 440 |
+
BOOL IsLeakTrackingEnabledForThread();
|
| 441 |
+
};
|
| 442 |
+
|
| 443 |
+
cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP | WINAPI_PARTITION_GAMES) */")
|
| 444 |
+
#pragma endregion
|
| 445 |
+
|
| 446 |
+
#pragma region Desktop Family
|
| 447 |
+
cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
|
| 448 |
+
|
| 449 |
+
|
| 450 |
+
cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */")
|
| 451 |
+
#pragma endregion
|
| 452 |
+
|
| 453 |
+
|
| 454 |
+
cpp_quote( "DEFINE_GUID(IID_IDXGIInfoQueue,0xD67441C7,0x672A,0x476f,0x9E,0x82,0xCD,0x55,0xB4,0x49,0x49,0xCE);" )
|
| 455 |
+
cpp_quote( "DEFINE_GUID(IID_IDXGIDebug,0x119E7452,0xDE9E,0x40fe,0x88,0x06,0x88,0xF9,0x0C,0x12,0xB4,0x41);" )
|
| 456 |
+
cpp_quote( "DEFINE_GUID(IID_IDXGIDebug1,0xc5a05f0c,0x16f2,0x4adf,0x9f,0x4d,0xa8,0xc4,0xd5,0x8a,0xc5,0x50);" )
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxmini.h
ADDED
|
@@ -0,0 +1,356 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*==========================================================================;
|
| 2 |
+
*
|
| 3 |
+
* Copyright (C) Microsoft Corporation. All Rights Reserved.
|
| 4 |
+
*
|
| 5 |
+
* File: dxmini.h
|
| 6 |
+
* Content: Miniport support for DirectDraw DXAPI. This file is
|
| 7 |
+
* analagous to Win95's ddkmmini.h.
|
| 8 |
+
*
|
| 9 |
+
***************************************************************************/
|
| 10 |
+
|
| 11 |
+
#include <winapifamily.h>
|
| 12 |
+
|
| 13 |
+
#ifndef __DXMINI_INCLUDED__
|
| 14 |
+
#define __DXMINI_INCLUDED__
|
| 15 |
+
|
| 16 |
+
#pragma region Desktop Family
|
| 17 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 18 |
+
|
| 19 |
+
DEFINE_GUID(GUID_DxApi, 0x8a79bef0, 0xb915, 0x11d0, 0x91, 0x44, 0x08, 0x00, 0x36, 0xd2, 0xef, 0x02);
|
| 20 |
+
|
| 21 |
+
#ifndef GUID_DEFS_ONLY
|
| 22 |
+
/*============================================================================
|
| 23 |
+
*
|
| 24 |
+
* MDL structure for handling pagelocked memory. This is copied from WDM.H
|
| 25 |
+
*
|
| 26 |
+
*==========================================================================*/
|
| 27 |
+
|
| 28 |
+
#ifndef MDL_MAPPING_FLAGS
|
| 29 |
+
|
| 30 |
+
typedef struct _MDL {
|
| 31 |
+
struct _MDL *MdlNext;
|
| 32 |
+
short MdlSize;
|
| 33 |
+
short MdlFlags;
|
| 34 |
+
struct _EPROCESS *Process;
|
| 35 |
+
ULONG *lpMappedSystemVa;
|
| 36 |
+
ULONG *lpStartVa;
|
| 37 |
+
ULONG ByteCount;
|
| 38 |
+
ULONG ByteOffset;
|
| 39 |
+
} MDL;
|
| 40 |
+
typedef MDL *PMDL;
|
| 41 |
+
|
| 42 |
+
#define MDL_MAPPED_TO_SYSTEM_VA 0x0001
|
| 43 |
+
#define MDL_PAGES_LOCKED 0x0002
|
| 44 |
+
#define MDL_SOURCE_IS_NONPAGED_POOL 0x0004
|
| 45 |
+
#define MDL_ALLOCATED_FIXED_SIZE 0x0008
|
| 46 |
+
#define MDL_PARTIAL 0x0010
|
| 47 |
+
#define MDL_PARTIAL_HAS_BEEN_MAPPED 0x0020
|
| 48 |
+
#define MDL_IO_PAGE_READ 0x0040
|
| 49 |
+
#define MDL_WRITE_OPERATION 0x0080
|
| 50 |
+
#define MDL_PARENT_MAPPED_SYSTEM_VA 0x0100
|
| 51 |
+
#define MDL_LOCK_HELD 0x0200
|
| 52 |
+
#define MDL_SCATTER_GATHER_VA 0x0400
|
| 53 |
+
#define MDL_IO_SPACE 0x0800
|
| 54 |
+
#define MDL_NETWORK_HEADER 0x1000
|
| 55 |
+
#define MDL_MAPPING_CAN_FAIL 0x2000
|
| 56 |
+
#define MDL_ALLOCATED_MUST_SUCCEED 0x4000
|
| 57 |
+
#define MDL_64_BIT_VA 0x8000
|
| 58 |
+
|
| 59 |
+
#define MDL_MAPPING_FLAGS (MDL_MAPPED_TO_SYSTEM_VA | \
|
| 60 |
+
MDL_PAGES_LOCKED | \
|
| 61 |
+
MDL_SOURCE_IS_NONPAGED_POOL | \
|
| 62 |
+
MDL_PARTIAL_HAS_BEEN_MAPPED | \
|
| 63 |
+
MDL_PARENT_MAPPED_SYSTEM_VA | \
|
| 64 |
+
MDL_LOCK_HELD | \
|
| 65 |
+
MDL_SYSTEM_VA | \
|
| 66 |
+
MDL_IO_SPACE )
|
| 67 |
+
#endif
|
| 68 |
+
|
| 69 |
+
/*============================================================================
|
| 70 |
+
*
|
| 71 |
+
* Error values that may be returned by the miniport
|
| 72 |
+
*
|
| 73 |
+
*==========================================================================*/
|
| 74 |
+
|
| 75 |
+
#define DX_OK 0x0
|
| 76 |
+
#define DXERR_UNSUPPORTED 0x80004001
|
| 77 |
+
#define DXERR_GENERIC 0x80004005
|
| 78 |
+
#define DXERR_OUTOFCAPS 0x88760168
|
| 79 |
+
|
| 80 |
+
/*============================================================================
|
| 81 |
+
*
|
| 82 |
+
* Structures maintained by DirectDraw
|
| 83 |
+
*
|
| 84 |
+
*==========================================================================*/
|
| 85 |
+
|
| 86 |
+
#define DDOVER_AUTOFLIP 0x00100000l
|
| 87 |
+
#define DDOVER_BOB 0x00200000l
|
| 88 |
+
#define DDOVER_OVERRIDEBOBWEAVE 0x00400000l
|
| 89 |
+
#define DDOVER_INTERLEAVED 0x00800000l
|
| 90 |
+
|
| 91 |
+
//
|
| 92 |
+
// Data for every DXAPI surface
|
| 93 |
+
//
|
| 94 |
+
|
| 95 |
+
typedef struct _DDSURFACEDATA {
|
| 96 |
+
DWORD ddsCaps; // Ring 3 creation caps
|
| 97 |
+
DWORD dwSurfaceOffset; // Offset in frame buffer of surface
|
| 98 |
+
ULONG_PTR fpLockPtr; // Surface lock ptr
|
| 99 |
+
DWORD dwWidth; // Surface width
|
| 100 |
+
DWORD dwHeight; // Surface height
|
| 101 |
+
LONG lPitch; // Surface pitch
|
| 102 |
+
DWORD dwOverlayFlags; // DDOVER_XX flags
|
| 103 |
+
DWORD dwOverlayOffset; // Offset in frame buffer of overlay
|
| 104 |
+
DWORD dwOverlaySrcWidth; // Src width of overlay
|
| 105 |
+
DWORD dwOverlaySrcHeight; // Src height of overlay
|
| 106 |
+
DWORD dwOverlayDestWidth; // Dest width of overlay
|
| 107 |
+
DWORD dwOverlayDestHeight; // Dest height of overlay
|
| 108 |
+
DWORD dwVideoPortId; // ID of video port (-1 if not connected to a video port)
|
| 109 |
+
DWORD dwFormatFlags;
|
| 110 |
+
DWORD dwFormatFourCC;
|
| 111 |
+
DWORD dwFormatBitCount;
|
| 112 |
+
DWORD dwRBitMask;
|
| 113 |
+
DWORD dwGBitMask;
|
| 114 |
+
DWORD dwBBitMask;
|
| 115 |
+
ULONG dwDriverReserved1; // Reserved for the HAL/Miniport
|
| 116 |
+
ULONG dwDriverReserved2; // Reserved for the HAL/Miniport
|
| 117 |
+
ULONG dwDriverReserved3; // Reserved for the HAL/Miniport
|
| 118 |
+
ULONG dwDriverReserved4; // Reserved for the HAL/Miniport
|
| 119 |
+
} DDSURFACEDATA, *LPDDSURFACEDATA;
|
| 120 |
+
|
| 121 |
+
//
|
| 122 |
+
// Data for every DXAPI video port
|
| 123 |
+
//
|
| 124 |
+
|
| 125 |
+
typedef struct DDVIDEOPORTDATA {
|
| 126 |
+
DWORD dwVideoPortId; // ID of video port (0 - MaxVideoPorts-1)
|
| 127 |
+
DWORD dwVPFlags; // Video port DDVP_ option flags
|
| 128 |
+
DWORD dwOriginOffset; // Start address relative to surface
|
| 129 |
+
DWORD dwHeight; // Height of total video region (per field)
|
| 130 |
+
DWORD dwVBIHeight; // Height of VBI region (per field)
|
| 131 |
+
ULONG dwDriverReserved1; // Reserved for the HAL/Miniport
|
| 132 |
+
ULONG dwDriverReserved2; // Reserved for the HAL/Miniport
|
| 133 |
+
ULONG dwDriverReserved3; // Reserved for the HAL/Miniport
|
| 134 |
+
} DDVIDEOPORTDATA, *LPDDVIDEOPORTDATA;
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
/*============================================================================
|
| 138 |
+
*
|
| 139 |
+
* Structures used to communicate with the Miniport
|
| 140 |
+
*
|
| 141 |
+
*==========================================================================*/
|
| 142 |
+
|
| 143 |
+
typedef struct _DX_IRQDATA {
|
| 144 |
+
DWORD dwIrqFlags; // DDIRQ_ flags ORed in by miniport
|
| 145 |
+
} DX_IRQDATA, *PDX_IRQDATA;
|
| 146 |
+
|
| 147 |
+
typedef VOID (*PDX_IRQCALLBACK)(PDX_IRQDATA pIrqData);
|
| 148 |
+
|
| 149 |
+
#define DDIRQ_DISPLAY_VSYNC 0x00000001l
|
| 150 |
+
#define DDIRQ_BUSMASTER 0x00000002l
|
| 151 |
+
#define DDIRQ_VPORT0_VSYNC 0x00000004l
|
| 152 |
+
#define DDIRQ_VPORT0_LINE 0x00000008l
|
| 153 |
+
#define DDIRQ_VPORT1_VSYNC 0x00000010l
|
| 154 |
+
#define DDIRQ_VPORT1_LINE 0x00000020l
|
| 155 |
+
#define DDIRQ_VPORT2_VSYNC 0x00000040l
|
| 156 |
+
#define DDIRQ_VPORT2_LINE 0x00000080l
|
| 157 |
+
#define DDIRQ_VPORT3_VSYNC 0x00000100l
|
| 158 |
+
#define DDIRQ_VPORT3_LINE 0x00000200l
|
| 159 |
+
#define DDIRQ_VPORT4_VSYNC 0x00000400l
|
| 160 |
+
#define DDIRQ_VPORT4_LINE 0x00000800l
|
| 161 |
+
#define DDIRQ_VPORT5_VSYNC 0x00001000l
|
| 162 |
+
#define DDIRQ_VPORT5_LINE 0x00002000l
|
| 163 |
+
#define DDIRQ_VPORT6_VSYNC 0x00004000l
|
| 164 |
+
#define DDIRQ_VPORT6_LINE 0x00008000l
|
| 165 |
+
#define DDIRQ_VPORT7_VSYNC 0x00010000l
|
| 166 |
+
#define DDIRQ_VPORT7_LINE 0x00020000l
|
| 167 |
+
#define DDIRQ_VPORT8_VSYNC 0x00040000l
|
| 168 |
+
#define DDIRQ_VPORT8_LINE 0x00080000l
|
| 169 |
+
#define DDIRQ_VPORT9_VSYNC 0x00010000l
|
| 170 |
+
#define DDIRQ_VPORT9_LINE 0x00020000l
|
| 171 |
+
|
| 172 |
+
// output from DxGetIrqInfo
|
| 173 |
+
typedef struct _DDGETIRQINFO {
|
| 174 |
+
DWORD dwFlags;
|
| 175 |
+
} DDGETIRQINFO, *PDDGETIRQINFO;
|
| 176 |
+
#define IRQINFO_HANDLED 0x01 // Miniport is managing IRQ
|
| 177 |
+
#define IRQINFO_NOTHANDLED 0x02 // Not supported on NT
|
| 178 |
+
|
| 179 |
+
// input to DxEnableIrq
|
| 180 |
+
typedef struct _DDENABLEIRQINFO {
|
| 181 |
+
DWORD dwIRQSources;
|
| 182 |
+
DWORD dwLine; // Line for DDIRQ_VPORTx_LINE interrupt
|
| 183 |
+
PDX_IRQCALLBACK IRQCallback; // Miniport calls this when IRQ happens
|
| 184 |
+
PDX_IRQDATA lpIRQData; // Parameter to be passed to IRQCallback
|
| 185 |
+
} DDENABLEIRQINFO, *PDDENABLEIRQINFO;
|
| 186 |
+
|
| 187 |
+
// input to DxSkipNextField
|
| 188 |
+
typedef struct _DDSKIPNEXTFIELDINFO {
|
| 189 |
+
LPDDVIDEOPORTDATA lpVideoPortData;
|
| 190 |
+
DWORD dwSkipFlags;
|
| 191 |
+
} DDSKIPNEXTFIELDINFO, *PDDSKIPNEXTFIELDINFO;
|
| 192 |
+
|
| 193 |
+
#define DDSKIP_SKIPNEXT 1
|
| 194 |
+
#define DDSKIP_ENABLENEXT 2
|
| 195 |
+
|
| 196 |
+
// intput to DxBobNextField
|
| 197 |
+
typedef struct _DDBOBNEXTFIELDINFO {
|
| 198 |
+
LPDDSURFACEDATA lpSurface;
|
| 199 |
+
} DDBOBNEXTFIELDINFO, *PDDBOBNEXTFIELDINFO;
|
| 200 |
+
|
| 201 |
+
// intput to DxSetState
|
| 202 |
+
typedef struct _DDSETSTATEININFO {
|
| 203 |
+
LPDDSURFACEDATA lpSurfaceData;
|
| 204 |
+
LPDDVIDEOPORTDATA lpVideoPortData;
|
| 205 |
+
} DDSETSTATEININFO, *PDDSETSTATEININFO;
|
| 206 |
+
|
| 207 |
+
// output from DxSetState
|
| 208 |
+
typedef struct _DDSETSTATEOUTINFO {
|
| 209 |
+
BOOL bSoftwareAutoflip;
|
| 210 |
+
DWORD dwSurfaceIndex;
|
| 211 |
+
DWORD dwVBISurfaceIndex;
|
| 212 |
+
} DDSETSTATEOUTINFO, *PDDSETSTATEOUTINFO;
|
| 213 |
+
|
| 214 |
+
// input to DxLock
|
| 215 |
+
typedef struct _DDLOCKININFO {
|
| 216 |
+
LPDDSURFACEDATA lpSurfaceData;
|
| 217 |
+
} DDLOCKININFO, *PDDLOCKININFO;
|
| 218 |
+
|
| 219 |
+
// output from DxLock
|
| 220 |
+
typedef struct _DDLOCKOUTINFO {
|
| 221 |
+
ULONG_PTR dwSurfacePtr;
|
| 222 |
+
} DDLOCKOUTINFO, *PDDLOCKOUTINFO;
|
| 223 |
+
|
| 224 |
+
// input to DxFlipOverlay
|
| 225 |
+
typedef struct _DDFLIPOVERLAYINFO {
|
| 226 |
+
LPDDSURFACEDATA lpCurrentSurface;
|
| 227 |
+
LPDDSURFACEDATA lpTargetSurface;
|
| 228 |
+
DWORD dwFlags;
|
| 229 |
+
} DDFLIPOVERLAYINFO, *PDDFLIPOVERLAYINFO;
|
| 230 |
+
|
| 231 |
+
// intput to DxFlipVideoPort
|
| 232 |
+
typedef struct _DDFLIPVIDEOPORTINFO {
|
| 233 |
+
LPDDVIDEOPORTDATA lpVideoPortData;
|
| 234 |
+
LPDDSURFACEDATA lpCurrentSurface;
|
| 235 |
+
LPDDSURFACEDATA lpTargetSurface;
|
| 236 |
+
DWORD dwFlipVPFlags;
|
| 237 |
+
} DDFLIPVIDEOPORTINFO, *PDDFLIPVIDEOPORTINFO;
|
| 238 |
+
|
| 239 |
+
#define DDVPFLIP_VIDEO 0x00000001l
|
| 240 |
+
#define DDVPFLIP_VBI 0x00000002l
|
| 241 |
+
|
| 242 |
+
// input to DxGetPolarity
|
| 243 |
+
typedef struct _DDGETPOLARITYININFO {
|
| 244 |
+
LPDDVIDEOPORTDATA lpVideoPortData;
|
| 245 |
+
} DDGETPOLARITYININFO, *PDDGETPOLARITYININFO;
|
| 246 |
+
|
| 247 |
+
// output from DxGetPolarity
|
| 248 |
+
typedef struct _DDGETPOLARITYOUTINFO {
|
| 249 |
+
DWORD bPolarity;
|
| 250 |
+
} DDGETPOLARITYOUTINFO, *PDDGETPOLARITYOUTINFO;
|
| 251 |
+
|
| 252 |
+
// input to DxGetCurrentAutoflipSurface
|
| 253 |
+
typedef struct _DDGETCURRENTAUTOFLIPININFO {
|
| 254 |
+
LPDDVIDEOPORTDATA lpVideoPortData;
|
| 255 |
+
} DDGETCURRENTAUTOFLIPININFO, *PDDGETCURRENTAUTOFLIPININFO;
|
| 256 |
+
|
| 257 |
+
// output from DxGetCurrentAutoflipSurface
|
| 258 |
+
typedef struct _DDGETCURRENTAUTOFLIPOUTINFO {
|
| 259 |
+
DWORD dwSurfaceIndex;
|
| 260 |
+
DWORD dwVBISurfaceIndex;
|
| 261 |
+
} DDGETCURRENTAUTOFLIPOUTINFO, *PDDGETCURRENTAUTOFLIPOUTINFO;
|
| 262 |
+
|
| 263 |
+
// input to DxGetPreviousAutoflipSurface
|
| 264 |
+
typedef struct _DDGETPREVIOUSAUTOFLIPININFO {
|
| 265 |
+
LPDDVIDEOPORTDATA lpVideoPortData;
|
| 266 |
+
} DDGETPREVIOUSAUTOFLIPININFO, *PDDGETPREVIOUSAUTOFLIPININFO;
|
| 267 |
+
|
| 268 |
+
// output from DxGetPreviousAutoflipSurface
|
| 269 |
+
typedef struct _DDGETPREVIOUSAUTOFLIPOUTINFO {
|
| 270 |
+
DWORD dwSurfaceIndex;
|
| 271 |
+
DWORD dwVBISurfaceIndex;
|
| 272 |
+
} DDGETPREVIOUSAUTOFLIPOUTINFO, *PDDGETPREVIOUSAUTOFLIPOUTINFO;
|
| 273 |
+
|
| 274 |
+
// intput to DxTransfer
|
| 275 |
+
typedef struct _DDTRANSFERININFO {
|
| 276 |
+
LPDDSURFACEDATA lpSurfaceData;
|
| 277 |
+
DWORD dwStartLine;
|
| 278 |
+
DWORD dwEndLine;
|
| 279 |
+
ULONG_PTR dwTransferID;
|
| 280 |
+
DWORD dwTransferFlags;
|
| 281 |
+
PMDL lpDestMDL;
|
| 282 |
+
} DDTRANSFERININFO, *PDDTRANSFERININFO;
|
| 283 |
+
|
| 284 |
+
#define DDTRANSFER_SYSTEMMEMORY 0x00000001
|
| 285 |
+
#define DDTRANSFER_NONLOCALVIDMEM 0x00000002
|
| 286 |
+
#define DDTRANSFER_INVERT 0x00000004
|
| 287 |
+
#define DDTRANSFER_CANCEL 0x00000080
|
| 288 |
+
#define DDTRANSFER_HALFLINES 0x00000100
|
| 289 |
+
|
| 290 |
+
// output from DxTransfer
|
| 291 |
+
typedef struct _DDTRANSFEROUTINFO {
|
| 292 |
+
DWORD dwBufferPolarity;
|
| 293 |
+
} DDTRANSFEROUTINFO, *PDDTRANSFEROUTINFO;
|
| 294 |
+
|
| 295 |
+
// output from DxGetTransferStatus
|
| 296 |
+
typedef struct _DDGETTRANSFERSTATUSOUTINFO {
|
| 297 |
+
DWORD_PTR dwTransferID;
|
| 298 |
+
} DDGETTRANSFERSTATUSOUTINFO, *PDDGETTRANSFEROUTINFO;
|
| 299 |
+
|
| 300 |
+
/*============================================================================
|
| 301 |
+
*
|
| 302 |
+
* DXAPI function prototypes
|
| 303 |
+
*
|
| 304 |
+
*==========================================================================*/
|
| 305 |
+
|
| 306 |
+
typedef DWORD (*PDX_GETIRQINFO)(PVOID,PVOID,PDDGETIRQINFO);
|
| 307 |
+
typedef DWORD (*PDX_ENABLEIRQ)(PVOID,PDDENABLEIRQINFO,PVOID);
|
| 308 |
+
typedef DWORD (*PDX_SKIPNEXTFIELD)(PVOID,PDDSKIPNEXTFIELDINFO,PVOID);
|
| 309 |
+
typedef DWORD (*PDX_BOBNEXTFIELD)(PVOID,PDDBOBNEXTFIELDINFO,PVOID);
|
| 310 |
+
typedef DWORD (*PDX_SETSTATE)(PVOID,PDDSETSTATEININFO,PDDSETSTATEOUTINFO);
|
| 311 |
+
typedef DWORD (*PDX_LOCK)(PVOID,PDDLOCKININFO,PDDLOCKOUTINFO);
|
| 312 |
+
typedef DWORD (*PDX_FLIPOVERLAY)(PVOID,PDDFLIPOVERLAYINFO,PVOID);
|
| 313 |
+
typedef DWORD (*PDX_FLIPVIDEOPORT)(PVOID,PDDFLIPVIDEOPORTINFO,PVOID);
|
| 314 |
+
typedef DWORD (*PDX_GETPOLARITY)(PVOID,PDDGETPOLARITYININFO,PDDGETPOLARITYOUTINFO);
|
| 315 |
+
typedef DWORD (*PDX_GETCURRENTAUTOFLIP)(PVOID,PDDGETCURRENTAUTOFLIPININFO,PDDGETCURRENTAUTOFLIPOUTINFO);
|
| 316 |
+
typedef DWORD (*PDX_GETPREVIOUSAUTOFLIP)(PVOID,PDDGETPREVIOUSAUTOFLIPININFO,PDDGETPREVIOUSAUTOFLIPOUTINFO);
|
| 317 |
+
typedef DWORD (*PDX_TRANSFER)(PVOID,PDDTRANSFERININFO,PDDTRANSFEROUTINFO);
|
| 318 |
+
typedef DWORD (*PDX_GETTRANSFERSTATUS)(PVOID,PVOID,PDDGETTRANSFEROUTINFO);
|
| 319 |
+
|
| 320 |
+
/*============================================================================
|
| 321 |
+
*
|
| 322 |
+
* HAL table filled in by the miniport and called by DirectDraw
|
| 323 |
+
*
|
| 324 |
+
*==========================================================================*/
|
| 325 |
+
|
| 326 |
+
#define DXAPI_HALVERSION 0x0001
|
| 327 |
+
|
| 328 |
+
typedef struct _DXAPI_INTERFACE {
|
| 329 |
+
|
| 330 |
+
USHORT Size;
|
| 331 |
+
USHORT Version;
|
| 332 |
+
PVOID Context;
|
| 333 |
+
PVOID InterfaceReference;
|
| 334 |
+
PVOID InterfaceDereference;
|
| 335 |
+
PDX_GETIRQINFO DxGetIrqInfo;
|
| 336 |
+
PDX_ENABLEIRQ DxEnableIrq;
|
| 337 |
+
PDX_SKIPNEXTFIELD DxSkipNextField;
|
| 338 |
+
PDX_BOBNEXTFIELD DxBobNextField;
|
| 339 |
+
PDX_SETSTATE DxSetState;
|
| 340 |
+
PDX_LOCK DxLock;
|
| 341 |
+
PDX_FLIPOVERLAY DxFlipOverlay;
|
| 342 |
+
PDX_FLIPVIDEOPORT DxFlipVideoPort;
|
| 343 |
+
PDX_GETPOLARITY DxGetPolarity;
|
| 344 |
+
PDX_GETCURRENTAUTOFLIP DxGetCurrentAutoflip;
|
| 345 |
+
PDX_GETPREVIOUSAUTOFLIP DxGetPreviousAutoflip;
|
| 346 |
+
PDX_TRANSFER DxTransfer;
|
| 347 |
+
PDX_GETTRANSFERSTATUS DxGetTransferStatus;
|
| 348 |
+
|
| 349 |
+
} DXAPI_INTERFACE, *PDXAPI_INTERFACE;
|
| 350 |
+
|
| 351 |
+
#endif // GUID_DEFS_ONLY
|
| 352 |
+
|
| 353 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 354 |
+
#pragma endregion
|
| 355 |
+
|
| 356 |
+
#endif
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxtmpl.h
ADDED
|
@@ -0,0 +1,1353 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//+---------------------------------------------------------------------------
|
| 2 |
+
//
|
| 3 |
+
// Microsoft Windows
|
| 4 |
+
// Copyright (C) Microsoft Corporation. All Rights Reserved.
|
| 5 |
+
//
|
| 6 |
+
// File: dxtmpl.h
|
| 7 |
+
//
|
| 8 |
+
// Description:
|
| 9 |
+
// This is the header file contains the DX collection class templates. It
|
| 10 |
+
// has been derived from the MFC collection templates for compatibility.
|
| 11 |
+
//
|
| 12 |
+
//----------------------------------------------------------------------------
|
| 13 |
+
|
| 14 |
+
#ifndef DXTmpl_h
|
| 15 |
+
#define DXTmpl_h
|
| 16 |
+
|
| 17 |
+
#include <winapifamily.h>
|
| 18 |
+
|
| 19 |
+
#pragma region Desktop Family
|
| 20 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 21 |
+
|
| 22 |
+
#ifndef _INC_LIMITS
|
| 23 |
+
#include <limits.h>
|
| 24 |
+
#endif
|
| 25 |
+
|
| 26 |
+
#ifndef _INC_STRING
|
| 27 |
+
#include <string.h>
|
| 28 |
+
#endif
|
| 29 |
+
|
| 30 |
+
#ifndef _INC_STDLIB
|
| 31 |
+
#include <stdlib.h>
|
| 32 |
+
#endif
|
| 33 |
+
|
| 34 |
+
#ifndef _INC_SEARCH
|
| 35 |
+
#include <search.h>
|
| 36 |
+
#endif
|
| 37 |
+
|
| 38 |
+
#define DXASSERT_VALID( pObj )
|
| 39 |
+
|
| 40 |
+
#ifndef PASCAL_INLINE
|
| 41 |
+
#ifdef _M_CEE_PURE
|
| 42 |
+
#define PASCAL_INLINE __clrcall
|
| 43 |
+
#else
|
| 44 |
+
#define PASCAL_INLINE PASCAL
|
| 45 |
+
#endif
|
| 46 |
+
#endif
|
| 47 |
+
|
| 48 |
+
/////////////////////////////////////////////////////////////////////////////
|
| 49 |
+
typedef void* DXLISTPOS;
|
| 50 |
+
typedef DWORD DXLISTHANDLE;
|
| 51 |
+
|
| 52 |
+
#define DX_BEFORE_START_POSITION ((void*)-1L)
|
| 53 |
+
|
| 54 |
+
inline BOOL DXIsValidAddress(const void* lp, UINT nBytes, BOOL bReadWrite)
|
| 55 |
+
{
|
| 56 |
+
// simple version using Win-32 APIs for pointer validation.
|
| 57 |
+
return (lp != NULL && !IsBadReadPtr(lp, nBytes) &&
|
| 58 |
+
(!bReadWrite || !IsBadWritePtr((LPVOID)lp, nBytes)));
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
/////////////////////////////////////////////////////////////////////////////
|
| 62 |
+
// global helpers (can be overridden)
|
| 63 |
+
template<class TYPE>
|
| 64 |
+
inline void DXConstructElements(TYPE* pElements, int nCount)
|
| 65 |
+
{
|
| 66 |
+
_ASSERT( nCount == 0 ||
|
| 67 |
+
DXIsValidAddress( pElements, nCount * sizeof(TYPE), TRUE ) );
|
| 68 |
+
|
| 69 |
+
// default is bit-wise zero initialization
|
| 70 |
+
memset((void*)pElements, 0, nCount * sizeof(TYPE));
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
template<class TYPE>
|
| 74 |
+
inline void DXDestructElements(TYPE* pElements, int nCount)
|
| 75 |
+
{
|
| 76 |
+
_ASSERT( ( nCount == 0 ||
|
| 77 |
+
DXIsValidAddress( pElements, nCount * sizeof(TYPE), TRUE ) ) );
|
| 78 |
+
(void)pElements; // not used
|
| 79 |
+
(void)nCount; // not used
|
| 80 |
+
|
| 81 |
+
// default does nothing
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
template<class TYPE>
|
| 85 |
+
inline void DXCopyElements(TYPE* pDest, const TYPE* pSrc, int nCount)
|
| 86 |
+
{
|
| 87 |
+
_ASSERT( ( nCount == 0 ||
|
| 88 |
+
DXIsValidAddress( pDest, nCount * sizeof(TYPE), TRUE )) );
|
| 89 |
+
_ASSERT( ( nCount == 0 ||
|
| 90 |
+
DXIsValidAddress( pSrc, nCount * sizeof(TYPE), FALSE )) );
|
| 91 |
+
|
| 92 |
+
// default is bit-wise copy
|
| 93 |
+
memcpy(pDest, pSrc, nCount * sizeof(TYPE));
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
template<class TYPE, class ARG_TYPE>
|
| 97 |
+
BOOL DXCompareElements(const TYPE* pElement1, const ARG_TYPE* pElement2)
|
| 98 |
+
{
|
| 99 |
+
_ASSERT( DXIsValidAddress( pElement1, sizeof(TYPE), FALSE ) );
|
| 100 |
+
_ASSERT( DXIsValidAddress( pElement2, sizeof(ARG_TYPE), FALSE ) );
|
| 101 |
+
return *pElement1 == *pElement2;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
template<class ARG_KEY>
|
| 105 |
+
inline UINT DXHashKey(ARG_KEY key)
|
| 106 |
+
{
|
| 107 |
+
// default identity hash - works for most primitive values
|
| 108 |
+
return ((UINT)(void*)(DWORD)key) >> 4;
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
/////////////////////////////////////////////////////////////////////////////
|
| 112 |
+
// CDXPlex
|
| 113 |
+
|
| 114 |
+
struct CDXPlex // warning variable length structure
|
| 115 |
+
{
|
| 116 |
+
CDXPlex* pNext;
|
| 117 |
+
UINT nMax;
|
| 118 |
+
UINT nCur;
|
| 119 |
+
/* BYTE data[maxNum*elementSize]; */
|
| 120 |
+
void* data() { return this+1; }
|
| 121 |
+
|
| 122 |
+
static CDXPlex* PASCAL_INLINE Create( CDXPlex*& pHead, UINT nMax, UINT cbElement )
|
| 123 |
+
{
|
| 124 |
+
if ((SIZE_T)(nMax * cbElement) > (SIZE_MAX - sizeof(CDXPlex)))
|
| 125 |
+
return NULL;
|
| 126 |
+
CDXPlex* p = (CDXPlex*) new BYTE[sizeof(CDXPlex) + nMax * cbElement];
|
| 127 |
+
if (p == NULL)
|
| 128 |
+
return NULL;
|
| 129 |
+
p->nMax = nMax;
|
| 130 |
+
p->nCur = 0;
|
| 131 |
+
p->pNext = pHead;
|
| 132 |
+
pHead = p; // change head (adds in reverse order for simplicity)
|
| 133 |
+
return p;
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
void FreeDataChain()
|
| 137 |
+
{
|
| 138 |
+
CDXPlex* p = this;
|
| 139 |
+
while (p != NULL)
|
| 140 |
+
{
|
| 141 |
+
BYTE* bytes = (BYTE*) p;
|
| 142 |
+
CDXPlex* pNext = p->pNext;
|
| 143 |
+
delete [] bytes;
|
| 144 |
+
p = pNext;
|
| 145 |
+
}
|
| 146 |
+
}
|
| 147 |
+
};
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
/////////////////////////////////////////////////////////////////////////////
|
| 151 |
+
// CDXArray<TYPE, ARG_TYPE>
|
| 152 |
+
|
| 153 |
+
template<class TYPE, class ARG_TYPE>
|
| 154 |
+
class CDXArray
|
| 155 |
+
{
|
| 156 |
+
public:
|
| 157 |
+
// Construction
|
| 158 |
+
CDXArray();
|
| 159 |
+
|
| 160 |
+
// Attributes
|
| 161 |
+
int GetSize() const;
|
| 162 |
+
int GetUpperBound() const;
|
| 163 |
+
void SetSize(int nNewSize, int nGrowBy = -1);
|
| 164 |
+
|
| 165 |
+
// Operations
|
| 166 |
+
// Clean up
|
| 167 |
+
void FreeExtra();
|
| 168 |
+
void RemoveAll();
|
| 169 |
+
|
| 170 |
+
// Accessing elements
|
| 171 |
+
TYPE GetAt(int nIndex) const;
|
| 172 |
+
void SetAt(int nIndex, ARG_TYPE newElement);
|
| 173 |
+
TYPE& ElementAt(int nIndex);
|
| 174 |
+
|
| 175 |
+
// Direct Access to the element data (may return NULL)
|
| 176 |
+
const TYPE* GetData() const;
|
| 177 |
+
TYPE* GetData();
|
| 178 |
+
|
| 179 |
+
// Potentially growing the array
|
| 180 |
+
void SetAtGrow(int nIndex, ARG_TYPE newElement);
|
| 181 |
+
int Add(ARG_TYPE newElement);
|
| 182 |
+
int Append(const CDXArray& src);
|
| 183 |
+
void Copy(const CDXArray& src);
|
| 184 |
+
|
| 185 |
+
// overloaded operator helpers
|
| 186 |
+
TYPE operator[](int nIndex) const;
|
| 187 |
+
TYPE& operator[](int nIndex);
|
| 188 |
+
|
| 189 |
+
// Operations that move elements around
|
| 190 |
+
void InsertAt(int nIndex, ARG_TYPE newElement, int nCount = 1);
|
| 191 |
+
void RemoveAt(int nIndex, int nCount = 1);
|
| 192 |
+
void InsertAt(int nStartIndex, CDXArray* pNewArray);
|
| 193 |
+
void Sort(int (__cdecl *compare )(const void *elem1, const void *elem2 ));
|
| 194 |
+
|
| 195 |
+
// Implementation
|
| 196 |
+
protected:
|
| 197 |
+
TYPE* m_pData; // the actual array of data
|
| 198 |
+
int m_nSize; // # of elements (upperBound - 1)
|
| 199 |
+
int m_nMaxSize; // max allocated
|
| 200 |
+
int m_nGrowBy; // grow amount
|
| 201 |
+
|
| 202 |
+
public:
|
| 203 |
+
~CDXArray();
|
| 204 |
+
#ifdef _DEBUG
|
| 205 |
+
// void Dump(CDumpContext&) const;
|
| 206 |
+
void AssertValid() const;
|
| 207 |
+
#endif
|
| 208 |
+
};
|
| 209 |
+
|
| 210 |
+
/////////////////////////////////////////////////////////////////////////////
|
| 211 |
+
// CDXArray<TYPE, ARG_TYPE> inline functions
|
| 212 |
+
|
| 213 |
+
template<class TYPE, class ARG_TYPE>
|
| 214 |
+
inline int CDXArray<TYPE, ARG_TYPE>::GetSize() const
|
| 215 |
+
{ return m_nSize; }
|
| 216 |
+
template<class TYPE, class ARG_TYPE>
|
| 217 |
+
inline int CDXArray<TYPE, ARG_TYPE>::GetUpperBound() const
|
| 218 |
+
{ return m_nSize-1; }
|
| 219 |
+
template<class TYPE, class ARG_TYPE>
|
| 220 |
+
inline void CDXArray<TYPE, ARG_TYPE>::RemoveAll()
|
| 221 |
+
{ SetSize(0, -1); }
|
| 222 |
+
template<class TYPE, class ARG_TYPE>
|
| 223 |
+
inline TYPE CDXArray<TYPE, ARG_TYPE>::GetAt(int nIndex) const
|
| 224 |
+
{ _ASSERT( (nIndex >= 0 && nIndex < m_nSize) );
|
| 225 |
+
return m_pData[nIndex]; }
|
| 226 |
+
template<class TYPE, class ARG_TYPE>
|
| 227 |
+
inline void CDXArray<TYPE, ARG_TYPE>::SetAt(int nIndex, ARG_TYPE newElement)
|
| 228 |
+
{ _ASSERT( (nIndex >= 0 && nIndex < m_nSize) );
|
| 229 |
+
m_pData[nIndex] = newElement; }
|
| 230 |
+
template<class TYPE, class ARG_TYPE>
|
| 231 |
+
inline TYPE& CDXArray<TYPE, ARG_TYPE>::ElementAt(int nIndex)
|
| 232 |
+
{ _ASSERT( (nIndex >= 0 && nIndex < m_nSize) );
|
| 233 |
+
return m_pData[nIndex]; }
|
| 234 |
+
template<class TYPE, class ARG_TYPE>
|
| 235 |
+
inline const TYPE* CDXArray<TYPE, ARG_TYPE>::GetData() const
|
| 236 |
+
{ return (const TYPE*)m_pData; }
|
| 237 |
+
template<class TYPE, class ARG_TYPE>
|
| 238 |
+
inline TYPE* CDXArray<TYPE, ARG_TYPE>::GetData()
|
| 239 |
+
{ return (TYPE*)m_pData; }
|
| 240 |
+
template<class TYPE, class ARG_TYPE>
|
| 241 |
+
inline int CDXArray<TYPE, ARG_TYPE>::Add(ARG_TYPE newElement)
|
| 242 |
+
{ int nIndex = m_nSize;
|
| 243 |
+
SetAtGrow(nIndex, newElement);
|
| 244 |
+
return nIndex; }
|
| 245 |
+
template<class TYPE, class ARG_TYPE>
|
| 246 |
+
inline TYPE CDXArray<TYPE, ARG_TYPE>::operator[](int nIndex) const
|
| 247 |
+
{ return GetAt(nIndex); }
|
| 248 |
+
template<class TYPE, class ARG_TYPE>
|
| 249 |
+
inline TYPE& CDXArray<TYPE, ARG_TYPE>::operator[](int nIndex)
|
| 250 |
+
{ return ElementAt(nIndex); }
|
| 251 |
+
|
| 252 |
+
/////////////////////////////////////////////////////////////////////////////
|
| 253 |
+
// CDXArray<TYPE, ARG_TYPE> out-of-line functions
|
| 254 |
+
|
| 255 |
+
template<class TYPE, class ARG_TYPE>
|
| 256 |
+
CDXArray<TYPE, ARG_TYPE>::CDXArray()
|
| 257 |
+
{
|
| 258 |
+
m_pData = NULL;
|
| 259 |
+
m_nSize = m_nMaxSize = m_nGrowBy = 0;
|
| 260 |
+
}
|
| 261 |
+
|
| 262 |
+
template<class TYPE, class ARG_TYPE>
|
| 263 |
+
CDXArray<TYPE, ARG_TYPE>::~CDXArray()
|
| 264 |
+
{
|
| 265 |
+
DXASSERT_VALID( this );
|
| 266 |
+
|
| 267 |
+
if (m_pData != NULL)
|
| 268 |
+
{
|
| 269 |
+
DXDestructElements(m_pData, m_nSize);
|
| 270 |
+
delete[] (BYTE*)m_pData;
|
| 271 |
+
}
|
| 272 |
+
}
|
| 273 |
+
|
| 274 |
+
template<class TYPE, class ARG_TYPE>
|
| 275 |
+
void CDXArray<TYPE, ARG_TYPE>::SetSize(int nNewSize, int nGrowBy)
|
| 276 |
+
{
|
| 277 |
+
DXASSERT_VALID( this );
|
| 278 |
+
_ASSERT( nNewSize >= 0 );
|
| 279 |
+
|
| 280 |
+
if (nGrowBy != -1)
|
| 281 |
+
m_nGrowBy = nGrowBy; // set new size
|
| 282 |
+
|
| 283 |
+
if (nNewSize == 0)
|
| 284 |
+
{
|
| 285 |
+
// shrink to nothing
|
| 286 |
+
if (m_pData != NULL)
|
| 287 |
+
{
|
| 288 |
+
DXDestructElements(m_pData, m_nSize);
|
| 289 |
+
delete[] (BYTE*)m_pData;
|
| 290 |
+
m_pData = NULL;
|
| 291 |
+
}
|
| 292 |
+
m_nSize = m_nMaxSize = 0;
|
| 293 |
+
}
|
| 294 |
+
else if (m_pData == NULL)
|
| 295 |
+
{
|
| 296 |
+
// create one with exact size
|
| 297 |
+
#ifdef SIZE_T_MAX
|
| 298 |
+
_ASSERT( nNewSize <= SIZE_T_MAX/sizeof(TYPE) ); // no overflow
|
| 299 |
+
#endif
|
| 300 |
+
m_pData = (TYPE*) new BYTE[nNewSize * sizeof(TYPE)];
|
| 301 |
+
DXConstructElements(m_pData, nNewSize);
|
| 302 |
+
m_nSize = m_nMaxSize = nNewSize;
|
| 303 |
+
}
|
| 304 |
+
else if (nNewSize <= m_nMaxSize)
|
| 305 |
+
{
|
| 306 |
+
// it fits
|
| 307 |
+
if (nNewSize > m_nSize)
|
| 308 |
+
{
|
| 309 |
+
// initialize the new elements
|
| 310 |
+
DXConstructElements(&m_pData[m_nSize], nNewSize-m_nSize);
|
| 311 |
+
}
|
| 312 |
+
else if (m_nSize > nNewSize)
|
| 313 |
+
{
|
| 314 |
+
// destroy the old elements
|
| 315 |
+
DXDestructElements(&m_pData[nNewSize], m_nSize-nNewSize);
|
| 316 |
+
}
|
| 317 |
+
m_nSize = nNewSize;
|
| 318 |
+
}
|
| 319 |
+
else
|
| 320 |
+
{
|
| 321 |
+
// otherwise, grow array
|
| 322 |
+
int nGrowBy = m_nGrowBy;
|
| 323 |
+
if (nGrowBy == 0)
|
| 324 |
+
{
|
| 325 |
+
// heuristically determe growth when nGrowBy == 0
|
| 326 |
+
// (this avoids heap fragmentation in many situations)
|
| 327 |
+
nGrowBy = min(1024, max(4, m_nSize / 8));
|
| 328 |
+
}
|
| 329 |
+
int nNewMax;
|
| 330 |
+
if (nNewSize < m_nMaxSize + nGrowBy)
|
| 331 |
+
nNewMax = m_nMaxSize + nGrowBy; // granularity
|
| 332 |
+
else
|
| 333 |
+
nNewMax = nNewSize; // no slush
|
| 334 |
+
|
| 335 |
+
_ASSERT( nNewMax >= m_nMaxSize ); // no wrap around
|
| 336 |
+
#ifdef SIZE_T_MAX
|
| 337 |
+
_ASSERT( nNewMax <= SIZE_T_MAX/sizeof(TYPE) ); // no overflow
|
| 338 |
+
#endif
|
| 339 |
+
TYPE* pNewData = (TYPE*) new BYTE[nNewMax * sizeof(TYPE)];
|
| 340 |
+
|
| 341 |
+
// oh well, it's better than crashing
|
| 342 |
+
if (pNewData == NULL)
|
| 343 |
+
return;
|
| 344 |
+
|
| 345 |
+
// copy new data from old
|
| 346 |
+
memcpy(pNewData, m_pData, m_nSize * sizeof(TYPE));
|
| 347 |
+
|
| 348 |
+
// construct remaining elements
|
| 349 |
+
_ASSERT( nNewSize > m_nSize );
|
| 350 |
+
DXConstructElements(&pNewData[m_nSize], nNewSize-m_nSize);
|
| 351 |
+
|
| 352 |
+
// get rid of old stuff (note: no destructors called)
|
| 353 |
+
delete[] (BYTE*)m_pData;
|
| 354 |
+
m_pData = pNewData;
|
| 355 |
+
m_nSize = nNewSize;
|
| 356 |
+
m_nMaxSize = nNewMax;
|
| 357 |
+
}
|
| 358 |
+
}
|
| 359 |
+
|
| 360 |
+
template<class TYPE, class ARG_TYPE>
|
| 361 |
+
int CDXArray<TYPE, ARG_TYPE>::Append(const CDXArray& src)
|
| 362 |
+
{
|
| 363 |
+
DXASSERT_VALID( this );
|
| 364 |
+
_ASSERT( this != &src ); // cannot append to itself
|
| 365 |
+
|
| 366 |
+
int nOldSize = m_nSize;
|
| 367 |
+
SetSize(m_nSize + src.m_nSize);
|
| 368 |
+
DXCopyElements(m_pData + nOldSize, src.m_pData, src.m_nSize);
|
| 369 |
+
return nOldSize;
|
| 370 |
+
}
|
| 371 |
+
|
| 372 |
+
template<class TYPE, class ARG_TYPE>
|
| 373 |
+
void CDXArray<TYPE, ARG_TYPE>::Copy(const CDXArray& src)
|
| 374 |
+
{
|
| 375 |
+
DXASSERT_VALID( this );
|
| 376 |
+
_ASSERT( this != &src ); // cannot copy to itself
|
| 377 |
+
|
| 378 |
+
SetSize(src.m_nSize);
|
| 379 |
+
DXCopyElements(m_pData, src.m_pData, src.m_nSize);
|
| 380 |
+
}
|
| 381 |
+
|
| 382 |
+
template<class TYPE, class ARG_TYPE>
|
| 383 |
+
void CDXArray<TYPE, ARG_TYPE>::FreeExtra()
|
| 384 |
+
{
|
| 385 |
+
DXASSERT_VALID( this );
|
| 386 |
+
|
| 387 |
+
if (m_nSize != m_nMaxSize)
|
| 388 |
+
{
|
| 389 |
+
// shrink to desired size
|
| 390 |
+
#ifdef SIZE_T_MAX
|
| 391 |
+
_ASSERT( m_nSize <= SIZE_T_MAX/sizeof(TYPE)); // no overflow
|
| 392 |
+
#endif
|
| 393 |
+
TYPE* pNewData = NULL;
|
| 394 |
+
if (m_nSize != 0)
|
| 395 |
+
{
|
| 396 |
+
pNewData = (TYPE*) new BYTE[m_nSize * sizeof(TYPE)];
|
| 397 |
+
|
| 398 |
+
// oh well, it's better than crashing
|
| 399 |
+
if (pNewData == NULL)
|
| 400 |
+
return;
|
| 401 |
+
|
| 402 |
+
// copy new data from old
|
| 403 |
+
memcpy(pNewData, m_pData, m_nSize * sizeof(TYPE));
|
| 404 |
+
}
|
| 405 |
+
|
| 406 |
+
// get rid of old stuff (note: no destructors called)
|
| 407 |
+
delete[] (BYTE*)m_pData;
|
| 408 |
+
m_pData = pNewData;
|
| 409 |
+
m_nMaxSize = m_nSize;
|
| 410 |
+
}
|
| 411 |
+
}
|
| 412 |
+
|
| 413 |
+
template<class TYPE, class ARG_TYPE>
|
| 414 |
+
void CDXArray<TYPE, ARG_TYPE>::SetAtGrow(int nIndex, ARG_TYPE newElement)
|
| 415 |
+
{
|
| 416 |
+
DXASSERT_VALID( this );
|
| 417 |
+
_ASSERT( nIndex >= 0 );
|
| 418 |
+
|
| 419 |
+
if (nIndex >= m_nSize)
|
| 420 |
+
SetSize(nIndex+1, -1);
|
| 421 |
+
m_pData[nIndex] = newElement;
|
| 422 |
+
}
|
| 423 |
+
|
| 424 |
+
template<class TYPE, class ARG_TYPE>
|
| 425 |
+
void CDXArray<TYPE, ARG_TYPE>::InsertAt(int nIndex, ARG_TYPE newElement, int nCount /*=1*/)
|
| 426 |
+
{
|
| 427 |
+
DXASSERT_VALID( this );
|
| 428 |
+
_ASSERT( nIndex >= 0 ); // will expand to meet need
|
| 429 |
+
_ASSERT( nCount > 0 ); // zero or negative size not allowed
|
| 430 |
+
|
| 431 |
+
if (nIndex >= m_nSize)
|
| 432 |
+
{
|
| 433 |
+
// adding after the end of the array
|
| 434 |
+
SetSize(nIndex + nCount, -1); // grow so nIndex is valid
|
| 435 |
+
}
|
| 436 |
+
else
|
| 437 |
+
{
|
| 438 |
+
// inserting in the middle of the array
|
| 439 |
+
int nOldSize = m_nSize;
|
| 440 |
+
SetSize(m_nSize + nCount, -1); // grow it to new size
|
| 441 |
+
// shift old data up to fill gap
|
| 442 |
+
memmove(&m_pData[nIndex+nCount], &m_pData[nIndex],
|
| 443 |
+
(nOldSize-nIndex) * sizeof(TYPE));
|
| 444 |
+
|
| 445 |
+
// re-init slots we copied from
|
| 446 |
+
DXConstructElements(&m_pData[nIndex], nCount);
|
| 447 |
+
}
|
| 448 |
+
|
| 449 |
+
// insert new value in the gap
|
| 450 |
+
_ASSERT( nIndex + nCount <= m_nSize );
|
| 451 |
+
while (nCount--)
|
| 452 |
+
m_pData[nIndex++] = newElement;
|
| 453 |
+
}
|
| 454 |
+
|
| 455 |
+
template<class TYPE, class ARG_TYPE>
|
| 456 |
+
void CDXArray<TYPE, ARG_TYPE>::RemoveAt(int nIndex, int nCount)
|
| 457 |
+
{
|
| 458 |
+
DXASSERT_VALID( this );
|
| 459 |
+
_ASSERT( nIndex >= 0 );
|
| 460 |
+
_ASSERT( nCount >= 0 );
|
| 461 |
+
_ASSERT( nIndex + nCount <= m_nSize );
|
| 462 |
+
|
| 463 |
+
// just remove a range
|
| 464 |
+
int nMoveCount = m_nSize - (nIndex + nCount);
|
| 465 |
+
DXDestructElements(&m_pData[nIndex], nCount);
|
| 466 |
+
if (nMoveCount)
|
| 467 |
+
memcpy(&m_pData[nIndex], &m_pData[nIndex + nCount],
|
| 468 |
+
nMoveCount * sizeof(TYPE));
|
| 469 |
+
m_nSize -= nCount;
|
| 470 |
+
}
|
| 471 |
+
|
| 472 |
+
template<class TYPE, class ARG_TYPE>
|
| 473 |
+
void CDXArray<TYPE, ARG_TYPE>::InsertAt(int nStartIndex, CDXArray* pNewArray)
|
| 474 |
+
{
|
| 475 |
+
DXASSERT_VALID( this );
|
| 476 |
+
DXASSERT_VALID( pNewArray );
|
| 477 |
+
_ASSERT( nStartIndex >= 0 );
|
| 478 |
+
|
| 479 |
+
if (pNewArray->GetSize() > 0)
|
| 480 |
+
{
|
| 481 |
+
InsertAt(nStartIndex, pNewArray->GetAt(0), pNewArray->GetSize());
|
| 482 |
+
for (int i = 0; i < pNewArray->GetSize(); i++)
|
| 483 |
+
SetAt(nStartIndex + i, pNewArray->GetAt(i));
|
| 484 |
+
}
|
| 485 |
+
}
|
| 486 |
+
|
| 487 |
+
template<class TYPE, class ARG_TYPE>
|
| 488 |
+
void CDXArray<TYPE, ARG_TYPE>::Sort(int (__cdecl *compare )(const void *elem1, const void *elem2 ))
|
| 489 |
+
{
|
| 490 |
+
DXASSERT_VALID( this );
|
| 491 |
+
_ASSERT( m_pData != NULL );
|
| 492 |
+
|
| 493 |
+
qsort( m_pData, m_nSize, sizeof(TYPE), compare );
|
| 494 |
+
}
|
| 495 |
+
|
| 496 |
+
#ifdef _DEBUG
|
| 497 |
+
template<class TYPE, class ARG_TYPE>
|
| 498 |
+
void CDXArray<TYPE, ARG_TYPE>::AssertValid() const
|
| 499 |
+
{
|
| 500 |
+
if (m_pData == NULL)
|
| 501 |
+
{
|
| 502 |
+
_ASSERT( m_nSize == 0 );
|
| 503 |
+
_ASSERT( m_nMaxSize == 0 );
|
| 504 |
+
}
|
| 505 |
+
else
|
| 506 |
+
{
|
| 507 |
+
_ASSERT( m_nSize >= 0 );
|
| 508 |
+
_ASSERT( m_nMaxSize >= 0 );
|
| 509 |
+
_ASSERT( m_nSize <= m_nMaxSize );
|
| 510 |
+
_ASSERT( DXIsValidAddress(m_pData, m_nMaxSize * sizeof(TYPE), TRUE ) );
|
| 511 |
+
}
|
| 512 |
+
}
|
| 513 |
+
#endif //_DEBUG
|
| 514 |
+
|
| 515 |
+
/////////////////////////////////////////////////////////////////////////////
|
| 516 |
+
// CDXList<TYPE, ARG_TYPE>
|
| 517 |
+
|
| 518 |
+
template<class TYPE, class ARG_TYPE>
|
| 519 |
+
class CDXList
|
| 520 |
+
{
|
| 521 |
+
protected:
|
| 522 |
+
struct CNode
|
| 523 |
+
{
|
| 524 |
+
CNode* pNext;
|
| 525 |
+
CNode* pPrev;
|
| 526 |
+
TYPE data;
|
| 527 |
+
};
|
| 528 |
+
public:
|
| 529 |
+
|
| 530 |
+
// Construction
|
| 531 |
+
CDXList(int nBlockSize = 10);
|
| 532 |
+
|
| 533 |
+
// Attributes (head and tail)
|
| 534 |
+
// count of elements
|
| 535 |
+
int GetCount() const;
|
| 536 |
+
BOOL IsEmpty() const;
|
| 537 |
+
|
| 538 |
+
// peek at head or tail
|
| 539 |
+
TYPE& GetHead();
|
| 540 |
+
TYPE GetHead() const;
|
| 541 |
+
TYPE& GetTail();
|
| 542 |
+
TYPE GetTail() const;
|
| 543 |
+
|
| 544 |
+
// Operations
|
| 545 |
+
// get head or tail (and remove it) - don't call on empty list !
|
| 546 |
+
TYPE RemoveHead();
|
| 547 |
+
TYPE RemoveTail();
|
| 548 |
+
|
| 549 |
+
// add before head or after tail
|
| 550 |
+
DXLISTPOS AddHead(ARG_TYPE newElement);
|
| 551 |
+
DXLISTPOS AddTail(ARG_TYPE newElement);
|
| 552 |
+
|
| 553 |
+
// add another list of elements before head or after tail
|
| 554 |
+
void AddHead(CDXList* pNewList);
|
| 555 |
+
void AddTail(CDXList* pNewList);
|
| 556 |
+
|
| 557 |
+
// remove all elements
|
| 558 |
+
void RemoveAll();
|
| 559 |
+
|
| 560 |
+
// iteration
|
| 561 |
+
DXLISTPOS GetHeadPosition() const;
|
| 562 |
+
DXLISTPOS GetTailPosition() const;
|
| 563 |
+
TYPE& GetNext(DXLISTPOS& rPosition); // return *Position++
|
| 564 |
+
TYPE GetNext(DXLISTPOS& rPosition) const; // return *Position++
|
| 565 |
+
TYPE& GetPrev(DXLISTPOS& rPosition); // return *Position--
|
| 566 |
+
TYPE GetPrev(DXLISTPOS& rPosition) const; // return *Position--
|
| 567 |
+
|
| 568 |
+
// getting/modifying an element at a given position
|
| 569 |
+
TYPE& GetAt(DXLISTPOS position);
|
| 570 |
+
TYPE GetAt(DXLISTPOS position) const;
|
| 571 |
+
void SetAt(DXLISTPOS pos, ARG_TYPE newElement);
|
| 572 |
+
void RemoveAt(DXLISTPOS position);
|
| 573 |
+
|
| 574 |
+
// inserting before or after a given position
|
| 575 |
+
DXLISTPOS InsertBefore(DXLISTPOS position, ARG_TYPE newElement);
|
| 576 |
+
DXLISTPOS InsertAfter(DXLISTPOS position, ARG_TYPE newElement);
|
| 577 |
+
|
| 578 |
+
// helper functions (note: O(n) speed)
|
| 579 |
+
DXLISTPOS Find(ARG_TYPE searchValue, DXLISTPOS startAfter = NULL) const;
|
| 580 |
+
// defaults to starting at the HEAD, return NULL if not found
|
| 581 |
+
DXLISTPOS FindIndex(int nIndex) const;
|
| 582 |
+
// get the 'nIndex'th element (may return NULL)
|
| 583 |
+
|
| 584 |
+
// Implementation
|
| 585 |
+
protected:
|
| 586 |
+
CNode* m_pNodeHead;
|
| 587 |
+
CNode* m_pNodeTail;
|
| 588 |
+
int m_nCount;
|
| 589 |
+
CNode* m_pNodeFree;
|
| 590 |
+
struct CDXPlex* m_pBlocks;
|
| 591 |
+
int m_nBlockSize;
|
| 592 |
+
|
| 593 |
+
CNode* NewNode(CNode*, CNode*);
|
| 594 |
+
void FreeNode(CNode*);
|
| 595 |
+
|
| 596 |
+
public:
|
| 597 |
+
~CDXList();
|
| 598 |
+
#ifdef _DEBUG
|
| 599 |
+
void AssertValid() const;
|
| 600 |
+
#endif
|
| 601 |
+
};
|
| 602 |
+
|
| 603 |
+
/////////////////////////////////////////////////////////////////////////////
|
| 604 |
+
// CDXList<TYPE, ARG_TYPE> inline functions
|
| 605 |
+
|
| 606 |
+
template<class TYPE, class ARG_TYPE>
|
| 607 |
+
inline int CDXList<TYPE, ARG_TYPE>::GetCount() const
|
| 608 |
+
{ return m_nCount; }
|
| 609 |
+
template<class TYPE, class ARG_TYPE>
|
| 610 |
+
inline BOOL CDXList<TYPE, ARG_TYPE>::IsEmpty() const
|
| 611 |
+
{ return m_nCount == 0; }
|
| 612 |
+
template<class TYPE, class ARG_TYPE>
|
| 613 |
+
inline TYPE& CDXList<TYPE, ARG_TYPE>::GetHead()
|
| 614 |
+
{ _ASSERT( m_pNodeHead != NULL );
|
| 615 |
+
return m_pNodeHead->data; }
|
| 616 |
+
template<class TYPE, class ARG_TYPE>
|
| 617 |
+
inline TYPE CDXList<TYPE, ARG_TYPE>::GetHead() const
|
| 618 |
+
{ _ASSERT( m_pNodeHead != NULL );
|
| 619 |
+
return m_pNodeHead->data; }
|
| 620 |
+
template<class TYPE, class ARG_TYPE>
|
| 621 |
+
inline TYPE& CDXList<TYPE, ARG_TYPE>::GetTail()
|
| 622 |
+
{ _ASSERT( m_pNodeTail != NULL );
|
| 623 |
+
return m_pNodeTail->data; }
|
| 624 |
+
template<class TYPE, class ARG_TYPE>
|
| 625 |
+
inline TYPE CDXList<TYPE, ARG_TYPE>::GetTail() const
|
| 626 |
+
{ _ASSERT( m_pNodeTail != NULL );
|
| 627 |
+
return m_pNodeTail->data; }
|
| 628 |
+
template<class TYPE, class ARG_TYPE>
|
| 629 |
+
inline DXLISTPOS CDXList<TYPE, ARG_TYPE>::GetHeadPosition() const
|
| 630 |
+
{ return (DXLISTPOS) m_pNodeHead; }
|
| 631 |
+
template<class TYPE, class ARG_TYPE>
|
| 632 |
+
inline DXLISTPOS CDXList<TYPE, ARG_TYPE>::GetTailPosition() const
|
| 633 |
+
{ return (DXLISTPOS) m_pNodeTail; }
|
| 634 |
+
template<class TYPE, class ARG_TYPE>
|
| 635 |
+
inline TYPE& CDXList<TYPE, ARG_TYPE>::GetNext(DXLISTPOS& rPosition) // return *Position++
|
| 636 |
+
{ CNode* pNode = (CNode*) rPosition;
|
| 637 |
+
_ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) );
|
| 638 |
+
rPosition = (DXLISTPOS) pNode->pNext;
|
| 639 |
+
return pNode->data; }
|
| 640 |
+
template<class TYPE, class ARG_TYPE>
|
| 641 |
+
inline TYPE CDXList<TYPE, ARG_TYPE>::GetNext(DXLISTPOS& rPosition) const // return *Position++
|
| 642 |
+
{ CNode* pNode = (CNode*) rPosition;
|
| 643 |
+
_ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) );
|
| 644 |
+
rPosition = (DXLISTPOS) pNode->pNext;
|
| 645 |
+
return pNode->data; }
|
| 646 |
+
template<class TYPE, class ARG_TYPE>
|
| 647 |
+
inline TYPE& CDXList<TYPE, ARG_TYPE>::GetPrev(DXLISTPOS& rPosition) // return *Position--
|
| 648 |
+
{ CNode* pNode = (CNode*) rPosition;
|
| 649 |
+
_ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) );
|
| 650 |
+
rPosition = (DXLISTPOS) pNode->pPrev;
|
| 651 |
+
return pNode->data; }
|
| 652 |
+
template<class TYPE, class ARG_TYPE>
|
| 653 |
+
inline TYPE CDXList<TYPE, ARG_TYPE>::GetPrev(DXLISTPOS& rPosition) const // return *Position--
|
| 654 |
+
{ CNode* pNode = (CNode*) rPosition;
|
| 655 |
+
_ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) );
|
| 656 |
+
rPosition = (DXLISTPOS) pNode->pPrev;
|
| 657 |
+
return pNode->data; }
|
| 658 |
+
template<class TYPE, class ARG_TYPE>
|
| 659 |
+
inline TYPE& CDXList<TYPE, ARG_TYPE>::GetAt(DXLISTPOS position)
|
| 660 |
+
{ CNode* pNode = (CNode*) position;
|
| 661 |
+
_ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) );
|
| 662 |
+
return pNode->data; }
|
| 663 |
+
template<class TYPE, class ARG_TYPE>
|
| 664 |
+
inline TYPE CDXList<TYPE, ARG_TYPE>::GetAt(DXLISTPOS position) const
|
| 665 |
+
{ CNode* pNode = (CNode*) position;
|
| 666 |
+
_ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) );
|
| 667 |
+
return pNode->data; }
|
| 668 |
+
template<class TYPE, class ARG_TYPE>
|
| 669 |
+
inline void CDXList<TYPE, ARG_TYPE>::SetAt(DXLISTPOS pos, ARG_TYPE newElement)
|
| 670 |
+
{ CNode* pNode = (CNode*) pos;
|
| 671 |
+
_ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) );
|
| 672 |
+
pNode->data = newElement; }
|
| 673 |
+
|
| 674 |
+
/////////////////////////////////////////////////////////////////////////////
|
| 675 |
+
// CDXList<TYPE, ARG_TYPE> out-of-line functions
|
| 676 |
+
|
| 677 |
+
template<class TYPE, class ARG_TYPE>
|
| 678 |
+
CDXList<TYPE, ARG_TYPE>::CDXList( int nBlockSize )
|
| 679 |
+
{
|
| 680 |
+
_ASSERT( nBlockSize > 0 );
|
| 681 |
+
|
| 682 |
+
m_nCount = 0;
|
| 683 |
+
m_pNodeHead = m_pNodeTail = m_pNodeFree = NULL;
|
| 684 |
+
m_pBlocks = NULL;
|
| 685 |
+
m_nBlockSize = nBlockSize;
|
| 686 |
+
}
|
| 687 |
+
|
| 688 |
+
template<class TYPE, class ARG_TYPE>
|
| 689 |
+
void CDXList<TYPE, ARG_TYPE>::RemoveAll()
|
| 690 |
+
{
|
| 691 |
+
DXASSERT_VALID( this );
|
| 692 |
+
|
| 693 |
+
// destroy elements
|
| 694 |
+
CNode* pNode;
|
| 695 |
+
for (pNode = m_pNodeHead; pNode != NULL; pNode = pNode->pNext)
|
| 696 |
+
DXDestructElements(&pNode->data, 1);
|
| 697 |
+
|
| 698 |
+
m_nCount = 0;
|
| 699 |
+
m_pNodeHead = m_pNodeTail = m_pNodeFree = NULL;
|
| 700 |
+
m_pBlocks->FreeDataChain();
|
| 701 |
+
m_pBlocks = NULL;
|
| 702 |
+
}
|
| 703 |
+
|
| 704 |
+
template<class TYPE, class ARG_TYPE>
|
| 705 |
+
CDXList<TYPE, ARG_TYPE>::~CDXList()
|
| 706 |
+
{
|
| 707 |
+
RemoveAll();
|
| 708 |
+
_ASSERT( m_nCount == 0 );
|
| 709 |
+
}
|
| 710 |
+
|
| 711 |
+
/////////////////////////////////////////////////////////////////////////////
|
| 712 |
+
// Node helpers
|
| 713 |
+
//
|
| 714 |
+
// Implementation note: CNode's are stored in CDXPlex blocks and
|
| 715 |
+
// chained together. Free blocks are maintained in a singly linked list
|
| 716 |
+
// using the 'pNext' member of CNode with 'm_pNodeFree' as the head.
|
| 717 |
+
// Used blocks are maintained in a doubly linked list using both 'pNext'
|
| 718 |
+
// and 'pPrev' as links and 'm_pNodeHead' and 'm_pNodeTail'
|
| 719 |
+
// as the head/tail.
|
| 720 |
+
//
|
| 721 |
+
// We never free a CDXPlex block unless the List is destroyed or RemoveAll()
|
| 722 |
+
// is used - so the total number of CDXPlex blocks may grow large depending
|
| 723 |
+
// on the maximum past size of the list.
|
| 724 |
+
//
|
| 725 |
+
|
| 726 |
+
template<class TYPE, class ARG_TYPE>
|
| 727 |
+
typename CDXList<TYPE, ARG_TYPE>::CNode*
|
| 728 |
+
CDXList<TYPE, ARG_TYPE>::NewNode(CNode* pPrev, CNode* pNext)
|
| 729 |
+
{
|
| 730 |
+
if (m_pNodeFree == NULL)
|
| 731 |
+
{
|
| 732 |
+
// add another block
|
| 733 |
+
CDXPlex* pNewBlock = CDXPlex::Create(m_pBlocks, m_nBlockSize,
|
| 734 |
+
sizeof(CNode));
|
| 735 |
+
|
| 736 |
+
// chain them into free list
|
| 737 |
+
CNode* pNode = (CNode*) pNewBlock->data();
|
| 738 |
+
// free in reverse order to make it easier to debug
|
| 739 |
+
pNode += m_nBlockSize - 1;
|
| 740 |
+
for (int i = m_nBlockSize-1; i >= 0; i--, pNode--)
|
| 741 |
+
{
|
| 742 |
+
pNode->pNext = m_pNodeFree;
|
| 743 |
+
m_pNodeFree = pNode;
|
| 744 |
+
}
|
| 745 |
+
}
|
| 746 |
+
_ASSERT( m_pNodeFree != NULL ); // we must have something
|
| 747 |
+
|
| 748 |
+
CDXList::CNode* pNode = m_pNodeFree;
|
| 749 |
+
m_pNodeFree = m_pNodeFree->pNext;
|
| 750 |
+
pNode->pPrev = pPrev;
|
| 751 |
+
pNode->pNext = pNext;
|
| 752 |
+
m_nCount++;
|
| 753 |
+
_ASSERT( m_nCount > 0 ); // make sure we don't overflow
|
| 754 |
+
|
| 755 |
+
DXConstructElements(&pNode->data, 1);
|
| 756 |
+
return pNode;
|
| 757 |
+
}
|
| 758 |
+
|
| 759 |
+
template<class TYPE, class ARG_TYPE>
|
| 760 |
+
void CDXList<TYPE, ARG_TYPE>::FreeNode(CNode* pNode)
|
| 761 |
+
{
|
| 762 |
+
DXDestructElements(&pNode->data, 1);
|
| 763 |
+
pNode->pNext = m_pNodeFree;
|
| 764 |
+
m_pNodeFree = pNode;
|
| 765 |
+
m_nCount--;
|
| 766 |
+
_ASSERT( m_nCount >= 0 ); // make sure we don't underflow
|
| 767 |
+
}
|
| 768 |
+
|
| 769 |
+
template<class TYPE, class ARG_TYPE>
|
| 770 |
+
DXLISTPOS CDXList<TYPE, ARG_TYPE>::AddHead(ARG_TYPE newElement)
|
| 771 |
+
{
|
| 772 |
+
DXASSERT_VALID( this );
|
| 773 |
+
|
| 774 |
+
CNode* pNewNode = NewNode(NULL, m_pNodeHead);
|
| 775 |
+
pNewNode->data = newElement;
|
| 776 |
+
if (m_pNodeHead != NULL)
|
| 777 |
+
m_pNodeHead->pPrev = pNewNode;
|
| 778 |
+
else
|
| 779 |
+
m_pNodeTail = pNewNode;
|
| 780 |
+
m_pNodeHead = pNewNode;
|
| 781 |
+
return (DXLISTPOS) pNewNode;
|
| 782 |
+
}
|
| 783 |
+
|
| 784 |
+
template<class TYPE, class ARG_TYPE>
|
| 785 |
+
DXLISTPOS CDXList<TYPE, ARG_TYPE>::AddTail(ARG_TYPE newElement)
|
| 786 |
+
{
|
| 787 |
+
DXASSERT_VALID( this );
|
| 788 |
+
|
| 789 |
+
CNode* pNewNode = NewNode(m_pNodeTail, NULL);
|
| 790 |
+
pNewNode->data = newElement;
|
| 791 |
+
if (m_pNodeTail != NULL)
|
| 792 |
+
m_pNodeTail->pNext = pNewNode;
|
| 793 |
+
else
|
| 794 |
+
m_pNodeHead = pNewNode;
|
| 795 |
+
m_pNodeTail = pNewNode;
|
| 796 |
+
return (DXLISTPOS) pNewNode;
|
| 797 |
+
}
|
| 798 |
+
|
| 799 |
+
template<class TYPE, class ARG_TYPE>
|
| 800 |
+
void CDXList<TYPE, ARG_TYPE>::AddHead(CDXList* pNewList)
|
| 801 |
+
{
|
| 802 |
+
DXASSERT_VALID( this );
|
| 803 |
+
DXASSERT_VALID( pNewList );
|
| 804 |
+
|
| 805 |
+
// add a list of same elements to head (maintain order)
|
| 806 |
+
DXLISTPOS pos = pNewList->GetTailPosition();
|
| 807 |
+
while (pos != NULL)
|
| 808 |
+
AddHead(pNewList->GetPrev(pos));
|
| 809 |
+
}
|
| 810 |
+
|
| 811 |
+
template<class TYPE, class ARG_TYPE>
|
| 812 |
+
void CDXList<TYPE, ARG_TYPE>::AddTail(CDXList* pNewList)
|
| 813 |
+
{
|
| 814 |
+
DXASSERT_VALID( this );
|
| 815 |
+
DXASSERT_VALID( pNewList );
|
| 816 |
+
|
| 817 |
+
// add a list of same elements
|
| 818 |
+
DXLISTPOS pos = pNewList->GetHeadPosition();
|
| 819 |
+
while (pos != NULL)
|
| 820 |
+
AddTail(pNewList->GetNext(pos));
|
| 821 |
+
}
|
| 822 |
+
|
| 823 |
+
template<class TYPE, class ARG_TYPE>
|
| 824 |
+
TYPE CDXList<TYPE, ARG_TYPE>::RemoveHead()
|
| 825 |
+
{
|
| 826 |
+
DXASSERT_VALID( this );
|
| 827 |
+
_ASSERT( m_pNodeHead != NULL ); // don't call on empty list !!!
|
| 828 |
+
_ASSERT( DXIsValidAddress(m_pNodeHead, sizeof(CNode), TRUE ) );
|
| 829 |
+
|
| 830 |
+
CNode* pOldNode = m_pNodeHead;
|
| 831 |
+
TYPE returnValue = pOldNode->data;
|
| 832 |
+
|
| 833 |
+
m_pNodeHead = pOldNode->pNext;
|
| 834 |
+
if (m_pNodeHead != NULL)
|
| 835 |
+
m_pNodeHead->pPrev = NULL;
|
| 836 |
+
else
|
| 837 |
+
m_pNodeTail = NULL;
|
| 838 |
+
FreeNode(pOldNode);
|
| 839 |
+
return returnValue;
|
| 840 |
+
}
|
| 841 |
+
|
| 842 |
+
template<class TYPE, class ARG_TYPE>
|
| 843 |
+
TYPE CDXList<TYPE, ARG_TYPE>::RemoveTail()
|
| 844 |
+
{
|
| 845 |
+
DXASSERT_VALID( this );
|
| 846 |
+
_ASSERT( m_pNodeTail != NULL ); // don't call on empty list !!!
|
| 847 |
+
_ASSERT( DXIsValidAddress(m_pNodeTail, sizeof(CNode), TRUE ) );
|
| 848 |
+
|
| 849 |
+
CNode* pOldNode = m_pNodeTail;
|
| 850 |
+
TYPE returnValue = pOldNode->data;
|
| 851 |
+
|
| 852 |
+
m_pNodeTail = pOldNode->pPrev;
|
| 853 |
+
if (m_pNodeTail != NULL)
|
| 854 |
+
m_pNodeTail->pNext = NULL;
|
| 855 |
+
else
|
| 856 |
+
m_pNodeHead = NULL;
|
| 857 |
+
FreeNode(pOldNode);
|
| 858 |
+
return returnValue;
|
| 859 |
+
}
|
| 860 |
+
|
| 861 |
+
template<class TYPE, class ARG_TYPE>
|
| 862 |
+
DXLISTPOS CDXList<TYPE, ARG_TYPE>::InsertBefore(DXLISTPOS position, ARG_TYPE newElement)
|
| 863 |
+
{
|
| 864 |
+
DXASSERT_VALID( this );
|
| 865 |
+
|
| 866 |
+
if (position == NULL)
|
| 867 |
+
return AddHead(newElement); // insert before nothing -> head of the list
|
| 868 |
+
|
| 869 |
+
// Insert it before position
|
| 870 |
+
CNode* pOldNode = (CNode*) position;
|
| 871 |
+
CNode* pNewNode = NewNode(pOldNode->pPrev, pOldNode);
|
| 872 |
+
pNewNode->data = newElement;
|
| 873 |
+
|
| 874 |
+
if (pOldNode->pPrev != NULL)
|
| 875 |
+
{
|
| 876 |
+
_ASSERT( DXIsValidAddress(pOldNode->pPrev, sizeof(CNode), TRUE ) );
|
| 877 |
+
pOldNode->pPrev->pNext = pNewNode;
|
| 878 |
+
}
|
| 879 |
+
else
|
| 880 |
+
{
|
| 881 |
+
_ASSERT( pOldNode == m_pNodeHead );
|
| 882 |
+
m_pNodeHead = pNewNode;
|
| 883 |
+
}
|
| 884 |
+
pOldNode->pPrev = pNewNode;
|
| 885 |
+
return (DXLISTPOS) pNewNode;
|
| 886 |
+
}
|
| 887 |
+
|
| 888 |
+
template<class TYPE, class ARG_TYPE>
|
| 889 |
+
DXLISTPOS CDXList<TYPE, ARG_TYPE>::InsertAfter(DXLISTPOS position, ARG_TYPE newElement)
|
| 890 |
+
{
|
| 891 |
+
DXASSERT_VALID( this );
|
| 892 |
+
|
| 893 |
+
if (position == NULL)
|
| 894 |
+
return AddTail(newElement); // insert after nothing -> tail of the list
|
| 895 |
+
|
| 896 |
+
// Insert it before position
|
| 897 |
+
CNode* pOldNode = (CNode*) position;
|
| 898 |
+
_ASSERT( DXIsValidAddress(pOldNode, sizeof(CNode), TRUE ));
|
| 899 |
+
CNode* pNewNode = NewNode(pOldNode, pOldNode->pNext);
|
| 900 |
+
pNewNode->data = newElement;
|
| 901 |
+
|
| 902 |
+
if (pOldNode->pNext != NULL)
|
| 903 |
+
{
|
| 904 |
+
_ASSERT( DXIsValidAddress(pOldNode->pNext, sizeof(CNode), TRUE ));
|
| 905 |
+
pOldNode->pNext->pPrev = pNewNode;
|
| 906 |
+
}
|
| 907 |
+
else
|
| 908 |
+
{
|
| 909 |
+
_ASSERT( pOldNode == m_pNodeTail );
|
| 910 |
+
m_pNodeTail = pNewNode;
|
| 911 |
+
}
|
| 912 |
+
pOldNode->pNext = pNewNode;
|
| 913 |
+
return (DXLISTPOS) pNewNode;
|
| 914 |
+
}
|
| 915 |
+
|
| 916 |
+
template<class TYPE, class ARG_TYPE>
|
| 917 |
+
void CDXList<TYPE, ARG_TYPE>::RemoveAt(DXLISTPOS position)
|
| 918 |
+
{
|
| 919 |
+
DXASSERT_VALID( this );
|
| 920 |
+
|
| 921 |
+
CNode* pOldNode = (CNode*) position;
|
| 922 |
+
_ASSERT( DXIsValidAddress(pOldNode, sizeof(CNode), TRUE ) );
|
| 923 |
+
|
| 924 |
+
// remove pOldNode from list
|
| 925 |
+
if (pOldNode == m_pNodeHead)
|
| 926 |
+
{
|
| 927 |
+
m_pNodeHead = pOldNode->pNext;
|
| 928 |
+
}
|
| 929 |
+
else
|
| 930 |
+
{
|
| 931 |
+
_ASSERT( DXIsValidAddress(pOldNode->pPrev, sizeof(CNode), TRUE ) );
|
| 932 |
+
pOldNode->pPrev->pNext = pOldNode->pNext;
|
| 933 |
+
}
|
| 934 |
+
if (pOldNode == m_pNodeTail)
|
| 935 |
+
{
|
| 936 |
+
m_pNodeTail = pOldNode->pPrev;
|
| 937 |
+
}
|
| 938 |
+
else
|
| 939 |
+
{
|
| 940 |
+
_ASSERT( DXIsValidAddress(pOldNode->pNext, sizeof(CNode), TRUE ) );
|
| 941 |
+
pOldNode->pNext->pPrev = pOldNode->pPrev;
|
| 942 |
+
}
|
| 943 |
+
FreeNode(pOldNode);
|
| 944 |
+
}
|
| 945 |
+
|
| 946 |
+
template<class TYPE, class ARG_TYPE>
|
| 947 |
+
DXLISTPOS CDXList<TYPE, ARG_TYPE>::FindIndex(int nIndex) const
|
| 948 |
+
{
|
| 949 |
+
DXASSERT_VALID( this );
|
| 950 |
+
_ASSERT( nIndex >= 0 );
|
| 951 |
+
|
| 952 |
+
if (nIndex >= m_nCount)
|
| 953 |
+
return NULL; // went too far
|
| 954 |
+
|
| 955 |
+
CNode* pNode = m_pNodeHead;
|
| 956 |
+
while (nIndex--)
|
| 957 |
+
{
|
| 958 |
+
_ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ));
|
| 959 |
+
pNode = pNode->pNext;
|
| 960 |
+
}
|
| 961 |
+
return (DXLISTPOS) pNode;
|
| 962 |
+
}
|
| 963 |
+
|
| 964 |
+
template<class TYPE, class ARG_TYPE>
|
| 965 |
+
DXLISTPOS CDXList<TYPE, ARG_TYPE>::Find(ARG_TYPE searchValue, DXLISTPOS startAfter) const
|
| 966 |
+
{
|
| 967 |
+
DXASSERT_VALID( this );
|
| 968 |
+
|
| 969 |
+
CNode* pNode = (CNode*) startAfter;
|
| 970 |
+
if (pNode == NULL)
|
| 971 |
+
{
|
| 972 |
+
pNode = m_pNodeHead; // start at head
|
| 973 |
+
}
|
| 974 |
+
else
|
| 975 |
+
{
|
| 976 |
+
_ASSERT( DXIsValidAddress(pNode, sizeof(CNode), TRUE ) );
|
| 977 |
+
pNode = pNode->pNext; // start after the one specified
|
| 978 |
+
}
|
| 979 |
+
|
| 980 |
+
for (; pNode != NULL; pNode = pNode->pNext)
|
| 981 |
+
if (DXCompareElements(&pNode->data, &searchValue))
|
| 982 |
+
return (DXLISTPOS)pNode;
|
| 983 |
+
return NULL;
|
| 984 |
+
}
|
| 985 |
+
|
| 986 |
+
#ifdef _DEBUG
|
| 987 |
+
template<class TYPE, class ARG_TYPE>
|
| 988 |
+
void CDXList<TYPE, ARG_TYPE>::AssertValid() const
|
| 989 |
+
{
|
| 990 |
+
if (m_nCount == 0)
|
| 991 |
+
{
|
| 992 |
+
// empty list
|
| 993 |
+
_ASSERT( m_pNodeHead == NULL );
|
| 994 |
+
_ASSERT( m_pNodeTail == NULL );
|
| 995 |
+
}
|
| 996 |
+
else
|
| 997 |
+
{
|
| 998 |
+
// non-empty list
|
| 999 |
+
_ASSERT( DXIsValidAddress(m_pNodeHead, sizeof(CNode), TRUE ));
|
| 1000 |
+
_ASSERT( DXIsValidAddress(m_pNodeTail, sizeof(CNode), TRUE ));
|
| 1001 |
+
}
|
| 1002 |
+
}
|
| 1003 |
+
#endif //_DEBUG
|
| 1004 |
+
|
| 1005 |
+
/////////////////////////////////////////////////////////////////////////////
|
| 1006 |
+
// CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE>
|
| 1007 |
+
|
| 1008 |
+
template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE>
|
| 1009 |
+
class CDXMap
|
| 1010 |
+
{
|
| 1011 |
+
protected:
|
| 1012 |
+
// Association
|
| 1013 |
+
struct CAssoc
|
| 1014 |
+
{
|
| 1015 |
+
CAssoc* pNext;
|
| 1016 |
+
UINT nHashValue; // needed for efficient iteration
|
| 1017 |
+
KEY key;
|
| 1018 |
+
VALUE value;
|
| 1019 |
+
};
|
| 1020 |
+
public:
|
| 1021 |
+
// Construction
|
| 1022 |
+
CDXMap( int nBlockSize = 10 );
|
| 1023 |
+
|
| 1024 |
+
// Attributes
|
| 1025 |
+
// number of elements
|
| 1026 |
+
int GetCount() const;
|
| 1027 |
+
BOOL IsEmpty() const;
|
| 1028 |
+
|
| 1029 |
+
// Lookup
|
| 1030 |
+
BOOL Lookup(ARG_KEY key, VALUE& rValue) const;
|
| 1031 |
+
|
| 1032 |
+
// Operations
|
| 1033 |
+
// Lookup and add if not there
|
| 1034 |
+
VALUE& operator[](ARG_KEY key);
|
| 1035 |
+
|
| 1036 |
+
// add a new (key, value) pair
|
| 1037 |
+
void SetAt(ARG_KEY key, ARG_VALUE newValue);
|
| 1038 |
+
|
| 1039 |
+
// removing existing (key, ?) pair
|
| 1040 |
+
BOOL RemoveKey(ARG_KEY key);
|
| 1041 |
+
void RemoveAll();
|
| 1042 |
+
|
| 1043 |
+
// iterating all (key, value) pairs
|
| 1044 |
+
DXLISTPOS GetStartPosition() const;
|
| 1045 |
+
void GetNextAssoc(DXLISTPOS& rNextPosition, KEY& rKey, VALUE& rValue) const;
|
| 1046 |
+
|
| 1047 |
+
// advanced features for derived classes
|
| 1048 |
+
UINT GetHashTableSize() const;
|
| 1049 |
+
void InitHashTable(UINT hashSize, BOOL bAllocNow = TRUE);
|
| 1050 |
+
|
| 1051 |
+
// Implementation
|
| 1052 |
+
protected:
|
| 1053 |
+
CAssoc** m_pHashTable;
|
| 1054 |
+
UINT m_nHashTableSize;
|
| 1055 |
+
int m_nCount;
|
| 1056 |
+
CAssoc* m_pFreeList;
|
| 1057 |
+
struct CDXPlex* m_pBlocks;
|
| 1058 |
+
int m_nBlockSize;
|
| 1059 |
+
|
| 1060 |
+
CAssoc* NewAssoc();
|
| 1061 |
+
void FreeAssoc(CAssoc*);
|
| 1062 |
+
CAssoc* GetAssocAt(ARG_KEY, UINT&) const;
|
| 1063 |
+
|
| 1064 |
+
public:
|
| 1065 |
+
~CDXMap();
|
| 1066 |
+
#ifdef _DEBUG
|
| 1067 |
+
// void Dump(CDumpContext&) const;
|
| 1068 |
+
void AssertValid() const;
|
| 1069 |
+
#endif
|
| 1070 |
+
};
|
| 1071 |
+
|
| 1072 |
+
/////////////////////////////////////////////////////////////////////////////
|
| 1073 |
+
// CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE> inline functions
|
| 1074 |
+
|
| 1075 |
+
template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE>
|
| 1076 |
+
inline int CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE>::GetCount() const
|
| 1077 |
+
{ return m_nCount; }
|
| 1078 |
+
template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE>
|
| 1079 |
+
inline BOOL CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE>::IsEmpty() const
|
| 1080 |
+
{ return m_nCount == 0; }
|
| 1081 |
+
template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE>
|
| 1082 |
+
inline void CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE>::SetAt(ARG_KEY key, ARG_VALUE newValue)
|
| 1083 |
+
{ (*this)[key] = newValue; }
|
| 1084 |
+
template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE>
|
| 1085 |
+
inline DXLISTPOS CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE>::GetStartPosition() const
|
| 1086 |
+
{ return (m_nCount == 0) ? NULL : DX_BEFORE_START_POSITION; }
|
| 1087 |
+
template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE>
|
| 1088 |
+
inline UINT CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE>::GetHashTableSize() const
|
| 1089 |
+
{ return m_nHashTableSize; }
|
| 1090 |
+
|
| 1091 |
+
/////////////////////////////////////////////////////////////////////////////
|
| 1092 |
+
// CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE> out-of-line functions
|
| 1093 |
+
|
| 1094 |
+
template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE>
|
| 1095 |
+
CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE>::CDXMap( int nBlockSize )
|
| 1096 |
+
{
|
| 1097 |
+
_ASSERT( nBlockSize > 0 );
|
| 1098 |
+
|
| 1099 |
+
m_pHashTable = NULL;
|
| 1100 |
+
m_nHashTableSize = 17; // default size
|
| 1101 |
+
m_nCount = 0;
|
| 1102 |
+
m_pFreeList = NULL;
|
| 1103 |
+
m_pBlocks = NULL;
|
| 1104 |
+
m_nBlockSize = nBlockSize;
|
| 1105 |
+
}
|
| 1106 |
+
|
| 1107 |
+
template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE>
|
| 1108 |
+
void CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE>::InitHashTable(
|
| 1109 |
+
UINT nHashSize, BOOL bAllocNow)
|
| 1110 |
+
//
|
| 1111 |
+
// Used to force allocation of a hash table or to override the default
|
| 1112 |
+
// hash table size of (which is fairly small)
|
| 1113 |
+
{
|
| 1114 |
+
DXASSERT_VALID( this );
|
| 1115 |
+
_ASSERT( m_nCount == 0 );
|
| 1116 |
+
_ASSERT( nHashSize > 0 );
|
| 1117 |
+
|
| 1118 |
+
if (m_pHashTable != NULL)
|
| 1119 |
+
{
|
| 1120 |
+
// free hash table
|
| 1121 |
+
delete[] m_pHashTable;
|
| 1122 |
+
m_pHashTable = NULL;
|
| 1123 |
+
}
|
| 1124 |
+
|
| 1125 |
+
if (bAllocNow)
|
| 1126 |
+
{
|
| 1127 |
+
m_pHashTable = new CAssoc* [nHashSize];
|
| 1128 |
+
|
| 1129 |
+
// oh well, it's better than crashing
|
| 1130 |
+
if (m_pHashTable == NULL)
|
| 1131 |
+
return;
|
| 1132 |
+
|
| 1133 |
+
memset(m_pHashTable, 0, sizeof(CAssoc*) * nHashSize);
|
| 1134 |
+
}
|
| 1135 |
+
m_nHashTableSize = nHashSize;
|
| 1136 |
+
}
|
| 1137 |
+
|
| 1138 |
+
template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE>
|
| 1139 |
+
void CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE>::RemoveAll()
|
| 1140 |
+
{
|
| 1141 |
+
DXASSERT_VALID( this );
|
| 1142 |
+
|
| 1143 |
+
if (m_pHashTable != NULL)
|
| 1144 |
+
{
|
| 1145 |
+
// destroy elements (values and keys)
|
| 1146 |
+
for (UINT nHash = 0; nHash < m_nHashTableSize; nHash++)
|
| 1147 |
+
{
|
| 1148 |
+
CAssoc* pAssoc;
|
| 1149 |
+
for (pAssoc = m_pHashTable[nHash]; pAssoc != NULL;
|
| 1150 |
+
pAssoc = pAssoc->pNext)
|
| 1151 |
+
{
|
| 1152 |
+
DXDestructElements(&pAssoc->value, 1);
|
| 1153 |
+
DXDestructElements(&pAssoc->key, 1);
|
| 1154 |
+
}
|
| 1155 |
+
}
|
| 1156 |
+
}
|
| 1157 |
+
|
| 1158 |
+
// free hash table
|
| 1159 |
+
delete[] m_pHashTable;
|
| 1160 |
+
m_pHashTable = NULL;
|
| 1161 |
+
|
| 1162 |
+
m_nCount = 0;
|
| 1163 |
+
m_pFreeList = NULL;
|
| 1164 |
+
m_pBlocks->FreeDataChain();
|
| 1165 |
+
m_pBlocks = NULL;
|
| 1166 |
+
}
|
| 1167 |
+
|
| 1168 |
+
template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE>
|
| 1169 |
+
CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE>::~CDXMap()
|
| 1170 |
+
{
|
| 1171 |
+
RemoveAll();
|
| 1172 |
+
_ASSERT( m_nCount == 0 );
|
| 1173 |
+
}
|
| 1174 |
+
|
| 1175 |
+
template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE>
|
| 1176 |
+
typename CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE>::CAssoc*
|
| 1177 |
+
CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE>::NewAssoc()
|
| 1178 |
+
{
|
| 1179 |
+
if (m_pFreeList == NULL)
|
| 1180 |
+
{
|
| 1181 |
+
// add another block
|
| 1182 |
+
CDXPlex* newBlock = CDXPlex::Create(m_pBlocks, m_nBlockSize, sizeof(CDXMap::CAssoc));
|
| 1183 |
+
// chain them into free list
|
| 1184 |
+
CDXMap::CAssoc* pAssoc = (CDXMap::CAssoc*) newBlock->data();
|
| 1185 |
+
// free in reverse order to make it easier to debug
|
| 1186 |
+
pAssoc += m_nBlockSize - 1;
|
| 1187 |
+
for (int i = m_nBlockSize-1; i >= 0; i--, pAssoc--)
|
| 1188 |
+
{
|
| 1189 |
+
pAssoc->pNext = m_pFreeList;
|
| 1190 |
+
m_pFreeList = pAssoc;
|
| 1191 |
+
}
|
| 1192 |
+
}
|
| 1193 |
+
_ASSERT( m_pFreeList != NULL ); // we must have something
|
| 1194 |
+
|
| 1195 |
+
CDXMap::CAssoc* pAssoc = m_pFreeList;
|
| 1196 |
+
m_pFreeList = m_pFreeList->pNext;
|
| 1197 |
+
m_nCount++;
|
| 1198 |
+
_ASSERT( m_nCount > 0 ); // make sure we don't overflow
|
| 1199 |
+
DXConstructElements(&pAssoc->key, 1);
|
| 1200 |
+
DXConstructElements(&pAssoc->value, 1); // special construct values
|
| 1201 |
+
return pAssoc;
|
| 1202 |
+
}
|
| 1203 |
+
|
| 1204 |
+
template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE>
|
| 1205 |
+
void CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE>::FreeAssoc(CAssoc* pAssoc)
|
| 1206 |
+
{
|
| 1207 |
+
DXDestructElements(&pAssoc->value, 1);
|
| 1208 |
+
DXDestructElements(&pAssoc->key, 1);
|
| 1209 |
+
pAssoc->pNext = m_pFreeList;
|
| 1210 |
+
m_pFreeList = pAssoc;
|
| 1211 |
+
m_nCount--;
|
| 1212 |
+
_ASSERT( m_nCount >= 0 ); // make sure we don't underflow
|
| 1213 |
+
}
|
| 1214 |
+
|
| 1215 |
+
template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE>
|
| 1216 |
+
typename CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE>::CAssoc*
|
| 1217 |
+
CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE>::GetAssocAt(ARG_KEY key, UINT& nHash) const
|
| 1218 |
+
// find association (or return NULL)
|
| 1219 |
+
{
|
| 1220 |
+
nHash = DXHashKey(key) % m_nHashTableSize;
|
| 1221 |
+
|
| 1222 |
+
if (m_pHashTable == NULL)
|
| 1223 |
+
return NULL;
|
| 1224 |
+
|
| 1225 |
+
// see if it exists
|
| 1226 |
+
CAssoc* pAssoc;
|
| 1227 |
+
for (pAssoc = m_pHashTable[nHash]; pAssoc != NULL; pAssoc = pAssoc->pNext)
|
| 1228 |
+
{
|
| 1229 |
+
if (DXCompareElements(&pAssoc->key, &key))
|
| 1230 |
+
return pAssoc;
|
| 1231 |
+
}
|
| 1232 |
+
return NULL;
|
| 1233 |
+
}
|
| 1234 |
+
|
| 1235 |
+
template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE>
|
| 1236 |
+
BOOL CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE>::Lookup(ARG_KEY key, VALUE& rValue) const
|
| 1237 |
+
{
|
| 1238 |
+
DXASSERT_VALID( this );
|
| 1239 |
+
|
| 1240 |
+
UINT nHash;
|
| 1241 |
+
CAssoc* pAssoc = GetAssocAt(key, nHash);
|
| 1242 |
+
if (pAssoc == NULL)
|
| 1243 |
+
return FALSE; // not in map
|
| 1244 |
+
|
| 1245 |
+
rValue = pAssoc->value;
|
| 1246 |
+
return TRUE;
|
| 1247 |
+
}
|
| 1248 |
+
|
| 1249 |
+
template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE>
|
| 1250 |
+
VALUE& CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE>::operator[](ARG_KEY key)
|
| 1251 |
+
{
|
| 1252 |
+
DXASSERT_VALID( this );
|
| 1253 |
+
|
| 1254 |
+
UINT nHash;
|
| 1255 |
+
CAssoc* pAssoc;
|
| 1256 |
+
if ((pAssoc = GetAssocAt(key, nHash)) == NULL)
|
| 1257 |
+
{
|
| 1258 |
+
if (m_pHashTable == NULL)
|
| 1259 |
+
InitHashTable(m_nHashTableSize);
|
| 1260 |
+
|
| 1261 |
+
// it doesn't exist, add a new Association
|
| 1262 |
+
pAssoc = NewAssoc();
|
| 1263 |
+
pAssoc->nHashValue = nHash;
|
| 1264 |
+
pAssoc->key = key;
|
| 1265 |
+
// 'pAssoc->value' is a constructed object, nothing more
|
| 1266 |
+
|
| 1267 |
+
// put into hash table
|
| 1268 |
+
pAssoc->pNext = m_pHashTable[nHash];
|
| 1269 |
+
m_pHashTable[nHash] = pAssoc;
|
| 1270 |
+
}
|
| 1271 |
+
return pAssoc->value; // return new reference
|
| 1272 |
+
}
|
| 1273 |
+
|
| 1274 |
+
template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE>
|
| 1275 |
+
BOOL CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE>::RemoveKey(ARG_KEY key)
|
| 1276 |
+
// remove key - return TRUE if removed
|
| 1277 |
+
{
|
| 1278 |
+
DXASSERT_VALID( this );
|
| 1279 |
+
|
| 1280 |
+
if (m_pHashTable == NULL)
|
| 1281 |
+
return FALSE; // nothing in the table
|
| 1282 |
+
|
| 1283 |
+
CAssoc** ppAssocPrev;
|
| 1284 |
+
ppAssocPrev = &m_pHashTable[DXHashKey(key) % m_nHashTableSize];
|
| 1285 |
+
|
| 1286 |
+
CAssoc* pAssoc;
|
| 1287 |
+
for (pAssoc = *ppAssocPrev; pAssoc != NULL; pAssoc = pAssoc->pNext)
|
| 1288 |
+
{
|
| 1289 |
+
if (DXCompareElements(&pAssoc->key, &key))
|
| 1290 |
+
{
|
| 1291 |
+
// remove it
|
| 1292 |
+
*ppAssocPrev = pAssoc->pNext; // remove from list
|
| 1293 |
+
FreeAssoc(pAssoc);
|
| 1294 |
+
return TRUE;
|
| 1295 |
+
}
|
| 1296 |
+
ppAssocPrev = &pAssoc->pNext;
|
| 1297 |
+
}
|
| 1298 |
+
return FALSE; // not found
|
| 1299 |
+
}
|
| 1300 |
+
|
| 1301 |
+
template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE>
|
| 1302 |
+
void CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE>::GetNextAssoc(DXLISTPOS& rNextPosition,
|
| 1303 |
+
KEY& rKey, VALUE& rValue) const
|
| 1304 |
+
{
|
| 1305 |
+
DXASSERT_VALID( this );
|
| 1306 |
+
_ASSERT( m_pHashTable != NULL ); // never call on empty map
|
| 1307 |
+
|
| 1308 |
+
CAssoc* pAssocRet = (CAssoc*)rNextPosition;
|
| 1309 |
+
_ASSERT( pAssocRet != NULL );
|
| 1310 |
+
|
| 1311 |
+
if (pAssocRet == (CAssoc*) DX_BEFORE_START_POSITION)
|
| 1312 |
+
{
|
| 1313 |
+
// find the first association
|
| 1314 |
+
for (UINT nBucket = 0; nBucket < m_nHashTableSize; nBucket++)
|
| 1315 |
+
if ((pAssocRet = m_pHashTable[nBucket]) != NULL)
|
| 1316 |
+
break;
|
| 1317 |
+
_ASSERT( pAssocRet != NULL ); // must find something
|
| 1318 |
+
}
|
| 1319 |
+
|
| 1320 |
+
// find next association
|
| 1321 |
+
_ASSERT( DXIsValidAddress(pAssocRet, sizeof(CAssoc), TRUE ));
|
| 1322 |
+
CAssoc* pAssocNext;
|
| 1323 |
+
if ((pAssocNext = pAssocRet->pNext) == NULL)
|
| 1324 |
+
{
|
| 1325 |
+
// go to next bucket
|
| 1326 |
+
for (UINT nBucket = pAssocRet->nHashValue + 1;
|
| 1327 |
+
nBucket < m_nHashTableSize; nBucket++)
|
| 1328 |
+
if ((pAssocNext = m_pHashTable[nBucket]) != NULL)
|
| 1329 |
+
break;
|
| 1330 |
+
}
|
| 1331 |
+
|
| 1332 |
+
rNextPosition = (DXLISTPOS) pAssocNext;
|
| 1333 |
+
|
| 1334 |
+
// fill in return data
|
| 1335 |
+
rKey = pAssocRet->key;
|
| 1336 |
+
rValue = pAssocRet->value;
|
| 1337 |
+
}
|
| 1338 |
+
|
| 1339 |
+
#ifdef _DEBUG
|
| 1340 |
+
template<class KEY, class ARG_KEY, class VALUE, class ARG_VALUE>
|
| 1341 |
+
void CDXMap<KEY, ARG_KEY, VALUE, ARG_VALUE>::AssertValid() const
|
| 1342 |
+
{
|
| 1343 |
+
_ASSERT( m_nHashTableSize > 0 );
|
| 1344 |
+
_ASSERT( (m_nCount == 0 || m_pHashTable != NULL) );
|
| 1345 |
+
// non-empty map should have hash table
|
| 1346 |
+
}
|
| 1347 |
+
#endif //_DEBUG
|
| 1348 |
+
|
| 1349 |
+
|
| 1350 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 1351 |
+
#pragma endregion
|
| 1352 |
+
|
| 1353 |
+
#endif //--- This must be the last line in the file
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva.h
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva2api.h
ADDED
|
@@ -0,0 +1,2016 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
|
| 3 |
+
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
/* File created by MIDL compiler version 8.01.0628 */
|
| 7 |
+
/* @@MIDL_FILE_HEADING( ) */
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
/* verify that the <rpcndr.h> version is high enough to compile this file*/
|
| 12 |
+
#ifndef __REQUIRED_RPCNDR_H_VERSION__
|
| 13 |
+
#define __REQUIRED_RPCNDR_H_VERSION__ 501
|
| 14 |
+
#endif
|
| 15 |
+
|
| 16 |
+
/* verify that the <rpcsal.h> version is high enough to compile this file*/
|
| 17 |
+
#ifndef __REQUIRED_RPCSAL_H_VERSION__
|
| 18 |
+
#define __REQUIRED_RPCSAL_H_VERSION__ 100
|
| 19 |
+
#endif
|
| 20 |
+
|
| 21 |
+
#include "rpc.h"
|
| 22 |
+
#include "rpcndr.h"
|
| 23 |
+
|
| 24 |
+
#ifndef __RPCNDR_H_VERSION__
|
| 25 |
+
#error this stub requires an updated version of <rpcndr.h>
|
| 26 |
+
#endif /* __RPCNDR_H_VERSION__ */
|
| 27 |
+
|
| 28 |
+
#ifndef COM_NO_WINDOWS_H
|
| 29 |
+
#include "windows.h"
|
| 30 |
+
#include "ole2.h"
|
| 31 |
+
#endif /*COM_NO_WINDOWS_H*/
|
| 32 |
+
|
| 33 |
+
#ifndef __dxva2api_h__
|
| 34 |
+
#define __dxva2api_h__
|
| 35 |
+
|
| 36 |
+
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
| 37 |
+
#pragma once
|
| 38 |
+
#endif
|
| 39 |
+
|
| 40 |
+
#ifndef DECLSPEC_XFGVIRT
|
| 41 |
+
#if defined(_CONTROL_FLOW_GUARD_XFG)
|
| 42 |
+
#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func))
|
| 43 |
+
#else
|
| 44 |
+
#define DECLSPEC_XFGVIRT(base, func)
|
| 45 |
+
#endif
|
| 46 |
+
#endif
|
| 47 |
+
|
| 48 |
+
/* Forward Declarations */
|
| 49 |
+
|
| 50 |
+
#ifndef __IDirect3DDeviceManager9_FWD_DEFINED__
|
| 51 |
+
#define __IDirect3DDeviceManager9_FWD_DEFINED__
|
| 52 |
+
typedef interface IDirect3DDeviceManager9 IDirect3DDeviceManager9;
|
| 53 |
+
|
| 54 |
+
#endif /* __IDirect3DDeviceManager9_FWD_DEFINED__ */
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
#ifndef __IDirectXVideoAccelerationService_FWD_DEFINED__
|
| 58 |
+
#define __IDirectXVideoAccelerationService_FWD_DEFINED__
|
| 59 |
+
typedef interface IDirectXVideoAccelerationService IDirectXVideoAccelerationService;
|
| 60 |
+
|
| 61 |
+
#endif /* __IDirectXVideoAccelerationService_FWD_DEFINED__ */
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
#ifndef __IDirectXVideoDecoderService_FWD_DEFINED__
|
| 65 |
+
#define __IDirectXVideoDecoderService_FWD_DEFINED__
|
| 66 |
+
typedef interface IDirectXVideoDecoderService IDirectXVideoDecoderService;
|
| 67 |
+
|
| 68 |
+
#endif /* __IDirectXVideoDecoderService_FWD_DEFINED__ */
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
#ifndef __IDirectXVideoProcessorService_FWD_DEFINED__
|
| 72 |
+
#define __IDirectXVideoProcessorService_FWD_DEFINED__
|
| 73 |
+
typedef interface IDirectXVideoProcessorService IDirectXVideoProcessorService;
|
| 74 |
+
|
| 75 |
+
#endif /* __IDirectXVideoProcessorService_FWD_DEFINED__ */
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
#ifndef __IDirectXVideoDecoder_FWD_DEFINED__
|
| 79 |
+
#define __IDirectXVideoDecoder_FWD_DEFINED__
|
| 80 |
+
typedef interface IDirectXVideoDecoder IDirectXVideoDecoder;
|
| 81 |
+
|
| 82 |
+
#endif /* __IDirectXVideoDecoder_FWD_DEFINED__ */
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
#ifndef __IDirectXVideoProcessor_FWD_DEFINED__
|
| 86 |
+
#define __IDirectXVideoProcessor_FWD_DEFINED__
|
| 87 |
+
typedef interface IDirectXVideoProcessor IDirectXVideoProcessor;
|
| 88 |
+
|
| 89 |
+
#endif /* __IDirectXVideoProcessor_FWD_DEFINED__ */
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
#ifndef __IDirectXVideoMemoryConfiguration_FWD_DEFINED__
|
| 93 |
+
#define __IDirectXVideoMemoryConfiguration_FWD_DEFINED__
|
| 94 |
+
typedef interface IDirectXVideoMemoryConfiguration IDirectXVideoMemoryConfiguration;
|
| 95 |
+
|
| 96 |
+
#endif /* __IDirectXVideoMemoryConfiguration_FWD_DEFINED__ */
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
/* header files for imported files */
|
| 100 |
+
#include "unknwn.h"
|
| 101 |
+
|
| 102 |
+
#ifdef __cplusplus
|
| 103 |
+
extern "C"{
|
| 104 |
+
#endif
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
/* interface __MIDL_itf_dxva2api_0000_0000 */
|
| 108 |
+
/* [local] */
|
| 109 |
+
|
| 110 |
+
#include <winapifamily.h>
|
| 111 |
+
//
|
| 112 |
+
// The following declarations within the 'if 0' block are dummy typedefs used to make
|
| 113 |
+
// the evr.idl file build. The actual definitions are contained in d3d9.h
|
| 114 |
+
//
|
| 115 |
+
#if 0
|
| 116 |
+
typedef DWORD IDirect3DDevice9;
|
| 117 |
+
|
| 118 |
+
typedef DWORD IDirect3DSurface9;
|
| 119 |
+
|
| 120 |
+
typedef DWORD D3DFORMAT;
|
| 121 |
+
|
| 122 |
+
typedef DWORD D3DPOOL;
|
| 123 |
+
|
| 124 |
+
#endif
|
| 125 |
+
#ifndef DXVA2_API_DEFINED
|
| 126 |
+
#define DXVA2_API_DEFINED
|
| 127 |
+
#pragma region Desktop Family
|
| 128 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 129 |
+
DEFINE_GUID(DXVA2_ModeMPEG2_MoComp, 0xe6a9f44b, 0x61b0, 0x4563,0x9e,0xa4,0x63,0xd2,0xa3,0xc6,0xfe,0x66);
|
| 130 |
+
DEFINE_GUID(DXVA2_ModeMPEG2_IDCT, 0xbf22ad00, 0x03ea, 0x4690,0x80,0x77,0x47,0x33,0x46,0x20,0x9b,0x7e);
|
| 131 |
+
DEFINE_GUID(DXVA2_ModeMPEG2_VLD, 0xee27417f, 0x5e28, 0x4e65,0xbe,0xea,0x1d,0x26,0xb5,0x08,0xad,0xc9);
|
| 132 |
+
DEFINE_GUID(DXVA2_ModeMPEG1_VLD, 0x6f3ec719, 0x3735, 0x42cc,0x80,0x63,0x65,0xcc,0x3c,0xb3,0x66,0x16);
|
| 133 |
+
DEFINE_GUID(DXVA2_ModeMPEG2and1_VLD,0x86695f12, 0x340e, 0x4f04,0x9f,0xd3,0x92,0x53,0xdd,0x32,0x74,0x60);
|
| 134 |
+
DEFINE_GUID(DXVA2_ModeH264_A, 0x1b81be64, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
|
| 135 |
+
DEFINE_GUID(DXVA2_ModeH264_B, 0x1b81be65, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
|
| 136 |
+
DEFINE_GUID(DXVA2_ModeH264_C, 0x1b81be66, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
|
| 137 |
+
DEFINE_GUID(DXVA2_ModeH264_D, 0x1b81be67, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
|
| 138 |
+
DEFINE_GUID(DXVA2_ModeH264_E, 0x1b81be68, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
|
| 139 |
+
DEFINE_GUID(DXVA2_ModeH264_F, 0x1b81be69, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
|
| 140 |
+
DEFINE_GUID(DXVA2_ModeH264_VLD_WithFMOASO_NoFGT, 0xd5f04ff9, 0x3418,0x45d8,0x95,0x61,0x32,0xa7,0x6a,0xae,0x2d,0xdd);
|
| 141 |
+
DEFINE_GUID(DXVA2_ModeH264_VLD_Stereo_Progressive_NoFGT, 0xd79be8da, 0x0cf1,0x4c81,0xb8,0x2a,0x69,0xa4,0xe2,0x36,0xf4,0x3d);
|
| 142 |
+
DEFINE_GUID(DXVA2_ModeH264_VLD_Stereo_NoFGT, 0xf9aaccbb, 0xc2b6,0x4cfc,0x87,0x79,0x57,0x07,0xb1,0x76,0x05,0x52);
|
| 143 |
+
DEFINE_GUID(DXVA2_ModeH264_VLD_Multiview_NoFGT, 0x705b9d82, 0x76cf,0x49d6,0xb7,0xe6,0xac,0x88,0x72,0xdb,0x01,0x3c);
|
| 144 |
+
DEFINE_GUID(DXVA2_ModeWMV8_A, 0x1b81be80, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
|
| 145 |
+
DEFINE_GUID(DXVA2_ModeWMV8_B, 0x1b81be81, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
|
| 146 |
+
DEFINE_GUID(DXVA2_ModeWMV9_A, 0x1b81be90, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
|
| 147 |
+
DEFINE_GUID(DXVA2_ModeWMV9_B, 0x1b81be91, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
|
| 148 |
+
DEFINE_GUID(DXVA2_ModeWMV9_C, 0x1b81be94, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
|
| 149 |
+
DEFINE_GUID(DXVA2_ModeVC1_A, 0x1b81beA0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
|
| 150 |
+
DEFINE_GUID(DXVA2_ModeVC1_B, 0x1b81beA1, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
|
| 151 |
+
DEFINE_GUID(DXVA2_ModeVC1_C, 0x1b81beA2, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
|
| 152 |
+
DEFINE_GUID(DXVA2_ModeVC1_D, 0x1b81beA3, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
|
| 153 |
+
DEFINE_GUID(DXVA2_ModeVC1_D2010,0x1b81beA4, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
|
| 154 |
+
DEFINE_GUID(DXVA2_NoEncrypt, 0x1b81beD0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
|
| 155 |
+
DEFINE_GUID(DXVA2_VideoProcProgressiveDevice, 0x5a54a0c9,0xc7ec,0x4bd9,0x8e,0xde,0xf3,0xc7,0x5d,0xc4,0x39,0x3b);
|
| 156 |
+
DEFINE_GUID(DXVA2_VideoProcBobDevice, 0x335aa36e,0x7884,0x43a4,0x9c,0x91,0x7f,0x87,0xfa,0xf3,0xe3,0x7e);
|
| 157 |
+
DEFINE_GUID(DXVA2_VideoProcSoftwareDevice, 0x4553d47f,0xee7e,0x4e3f,0x94,0x75,0xdb,0xf1,0x37,0x6c,0x48,0x10);
|
| 158 |
+
DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_Simple, 0xefd64d74, 0xc9e8,0x41d7,0xa5,0xe9,0xe9,0xb0,0xe3,0x9f,0xa3,0x19);
|
| 159 |
+
DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_AdvSimple_NoGMC, 0xed418a9f, 0x010d,0x4eda,0x9a,0xe3,0x9a,0x65,0x35,0x8d,0x8d,0x2e);
|
| 160 |
+
DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_AdvSimple_GMC, 0xab998b5b, 0x4258,0x44a9,0x9f,0xeb,0x94,0xe5,0x97,0xa6,0xba,0xae);
|
| 161 |
+
DEFINE_GUID(DXVA2_ModeHEVC_VLD_Main, 0x5b11d51b, 0x2f4c,0x4452,0xbc,0xc3,0x09,0xf2,0xa1,0x16,0x0c,0xc0);
|
| 162 |
+
DEFINE_GUID(DXVA2_ModeHEVC_VLD_Main10, 0x107af0e0, 0xef1a,0x4d19,0xab,0xa8,0x67,0xa1,0x63,0x07,0x3d,0x13);
|
| 163 |
+
DEFINE_GUID(DXVA2_ModeVP9_VLD_Profile0, 0x463707f8, 0xa1d0, 0x4585, 0x87, 0x6d, 0x83, 0xaa, 0x6d, 0x60, 0xb8, 0x9e);
|
| 164 |
+
DEFINE_GUID(DXVA2_ModeVP9_VLD_10bit_Profile2, 0xa4c749ef, 0x6ecf, 0x48aa, 0x84, 0x48, 0x50, 0xa7, 0xa1, 0x16, 0x5f, 0xf7);
|
| 165 |
+
DEFINE_GUID(DXVA2_ModeVP8_VLD, 0x90b899ea, 0x3a62, 0x4705, 0x88, 0xb3, 0x8d, 0xf0, 0x4b, 0x27, 0x44, 0xe7);
|
| 166 |
+
#define DXVA2_ModeMPEG2_MOCOMP DXVA2_ModeMPEG2_MoComp
|
| 167 |
+
#define DXVA2_ModeWMV8_PostProc DXVA2_ModeWMV8_A
|
| 168 |
+
#define DXVA2_ModeWMV8_MoComp DXVA2_ModeWMV8_B
|
| 169 |
+
#define DXVA2_ModeWMV9_PostProc DXVA2_ModeWMV9_A
|
| 170 |
+
#define DXVA2_ModeWMV9_MoComp DXVA2_ModeWMV9_B
|
| 171 |
+
#define DXVA2_ModeWMV9_IDCT DXVA2_ModeWMV9_C
|
| 172 |
+
#define DXVA2_ModeVC1_PostProc DXVA2_ModeVC1_A
|
| 173 |
+
#define DXVA2_ModeVC1_MoComp DXVA2_ModeVC1_B
|
| 174 |
+
#define DXVA2_ModeVC1_IDCT DXVA2_ModeVC1_C
|
| 175 |
+
#define DXVA2_ModeVC1_VLD DXVA2_ModeVC1_D
|
| 176 |
+
#define DXVA2_ModeH264_MoComp_NoFGT DXVA2_ModeH264_A
|
| 177 |
+
#define DXVA2_ModeH264_MoComp_FGT DXVA2_ModeH264_B
|
| 178 |
+
#define DXVA2_ModeH264_IDCT_NoFGT DXVA2_ModeH264_C
|
| 179 |
+
#define DXVA2_ModeH264_IDCT_FGT DXVA2_ModeH264_D
|
| 180 |
+
#define DXVA2_ModeH264_VLD_NoFGT DXVA2_ModeH264_E
|
| 181 |
+
#define DXVA2_ModeH264_VLD_FGT DXVA2_ModeH264_F
|
| 182 |
+
#define DXVA2_E_NOT_INITIALIZED ((HRESULT)0x80041000L)
|
| 183 |
+
#define DXVA2_E_NEW_VIDEO_DEVICE ((HRESULT)0x80041001L)
|
| 184 |
+
#define DXVA2_E_VIDEO_DEVICE_LOCKED ((HRESULT)0x80041002L)
|
| 185 |
+
#define DXVA2_E_NOT_AVAILABLE ((HRESULT)0x80041003L)
|
| 186 |
+
#if defined(_WIN32) && !defined(_NO_COM)
|
| 187 |
+
DEFINE_GUID(IID_IDirect3DDeviceManager9, 0xa0cade0f,0x06d5,0x4cf4,0xa1,0xc7,0xf3,0xcd,0xd7,0x25,0xaa,0x75);
|
| 188 |
+
DEFINE_GUID(IID_IDirectXVideoAccelerationService, 0xfc51a550,0xd5e7,0x11d9,0xaf,0x55,0x00,0x05,0x4e,0x43,0xff,0x02);
|
| 189 |
+
DEFINE_GUID(IID_IDirectXVideoDecoderService, 0xfc51a551,0xd5e7,0x11d9,0xaf,0x55,0x00,0x05,0x4e,0x43,0xff,0x02);
|
| 190 |
+
DEFINE_GUID(IID_IDirectXVideoProcessorService, 0xfc51a552,0xd5e7,0x11d9,0xaf,0x55,0x00,0x05,0x4e,0x43,0xff,0x02);
|
| 191 |
+
DEFINE_GUID(IID_IDirectXVideoDecoder, 0xf2b0810a,0xfd00,0x43c9,0x91,0x8c,0xdf,0x94,0xe2,0xd8,0xef,0x7d);
|
| 192 |
+
DEFINE_GUID(IID_IDirectXVideoProcessor, 0x8c3a39f0,0x916e,0x4690,0x80,0x4f,0x4c,0x80,0x01,0x35,0x5d,0x25);
|
| 193 |
+
DEFINE_GUID(IID_IDirectXVideoMemoryConfiguration, 0xb7f916dd,0xdb3b,0x49c1,0x84,0xd7,0xe4,0x5e,0xf9,0x9e,0xc7,0x26);
|
| 194 |
+
#endif
|
| 195 |
+
#ifndef MAX_DEINTERLACE_SURFACES
|
| 196 |
+
#define MAX_DEINTERLACE_SURFACES 32
|
| 197 |
+
#endif
|
| 198 |
+
#ifndef MAX_SUBSTREAMS
|
| 199 |
+
#define MAX_SUBSTREAMS 15
|
| 200 |
+
#endif
|
| 201 |
+
#pragma warning( push )
|
| 202 |
+
#pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union
|
| 203 |
+
typedef struct _DXVA2_ExtendedFormat
|
| 204 |
+
{
|
| 205 |
+
union
|
| 206 |
+
{
|
| 207 |
+
struct
|
| 208 |
+
{
|
| 209 |
+
UINT SampleFormat : 8;
|
| 210 |
+
UINT VideoChromaSubsampling : 4;
|
| 211 |
+
UINT NominalRange : 3;
|
| 212 |
+
UINT VideoTransferMatrix : 3;
|
| 213 |
+
UINT VideoLighting : 4;
|
| 214 |
+
UINT VideoPrimaries : 5;
|
| 215 |
+
UINT VideoTransferFunction : 5;
|
| 216 |
+
} ;
|
| 217 |
+
UINT value;
|
| 218 |
+
} ;
|
| 219 |
+
} DXVA2_ExtendedFormat;
|
| 220 |
+
|
| 221 |
+
#pragma warning( pop )
|
| 222 |
+
typedef
|
| 223 |
+
enum _DXVA2_SampleFormat
|
| 224 |
+
{
|
| 225 |
+
DXVA2_SampleFormatMask = 0xff,
|
| 226 |
+
DXVA2_SampleUnknown = 0,
|
| 227 |
+
DXVA2_SampleProgressiveFrame = 2,
|
| 228 |
+
DXVA2_SampleFieldInterleavedEvenFirst = 3,
|
| 229 |
+
DXVA2_SampleFieldInterleavedOddFirst = 4,
|
| 230 |
+
DXVA2_SampleFieldSingleEven = 5,
|
| 231 |
+
DXVA2_SampleFieldSingleOdd = 6,
|
| 232 |
+
DXVA2_SampleSubStream = 7
|
| 233 |
+
} DXVA2_SampleFormat;
|
| 234 |
+
|
| 235 |
+
typedef
|
| 236 |
+
enum _DXVA2_VideoChromaSubSampling
|
| 237 |
+
{
|
| 238 |
+
DXVA2_VideoChromaSubsamplingMask = 0xf,
|
| 239 |
+
DXVA2_VideoChromaSubsampling_Unknown = 0,
|
| 240 |
+
DXVA2_VideoChromaSubsampling_ProgressiveChroma = 0x8,
|
| 241 |
+
DXVA2_VideoChromaSubsampling_Horizontally_Cosited = 0x4,
|
| 242 |
+
DXVA2_VideoChromaSubsampling_Vertically_Cosited = 0x2,
|
| 243 |
+
DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes = 0x1,
|
| 244 |
+
DXVA2_VideoChromaSubsampling_MPEG2 = ( DXVA2_VideoChromaSubsampling_Horizontally_Cosited | DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes ) ,
|
| 245 |
+
DXVA2_VideoChromaSubsampling_MPEG1 = DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes,
|
| 246 |
+
DXVA2_VideoChromaSubsampling_DV_PAL = ( DXVA2_VideoChromaSubsampling_Horizontally_Cosited | DXVA2_VideoChromaSubsampling_Vertically_Cosited ) ,
|
| 247 |
+
DXVA2_VideoChromaSubsampling_Cosited = ( ( DXVA2_VideoChromaSubsampling_Horizontally_Cosited | DXVA2_VideoChromaSubsampling_Vertically_Cosited ) | DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes )
|
| 248 |
+
} DXVA2_VideoChromaSubSampling;
|
| 249 |
+
|
| 250 |
+
typedef
|
| 251 |
+
enum _DXVA2_NominalRange
|
| 252 |
+
{
|
| 253 |
+
DXVA2_NominalRangeMask = 0x7,
|
| 254 |
+
DXVA2_NominalRange_Unknown = 0,
|
| 255 |
+
DXVA2_NominalRange_Normal = 1,
|
| 256 |
+
DXVA2_NominalRange_Wide = 2,
|
| 257 |
+
DXVA2_NominalRange_0_255 = 1,
|
| 258 |
+
DXVA2_NominalRange_16_235 = 2,
|
| 259 |
+
DXVA2_NominalRange_48_208 = 3
|
| 260 |
+
} DXVA2_NominalRange;
|
| 261 |
+
|
| 262 |
+
typedef
|
| 263 |
+
enum _DXVA2_VideoTransferMatrix
|
| 264 |
+
{
|
| 265 |
+
DXVA2_VideoTransferMatrixMask = 0x7,
|
| 266 |
+
DXVA2_VideoTransferMatrix_Unknown = 0,
|
| 267 |
+
DXVA2_VideoTransferMatrix_BT709 = 1,
|
| 268 |
+
DXVA2_VideoTransferMatrix_BT601 = 2,
|
| 269 |
+
DXVA2_VideoTransferMatrix_SMPTE240M = 3
|
| 270 |
+
} DXVA2_VideoTransferMatrix;
|
| 271 |
+
|
| 272 |
+
typedef
|
| 273 |
+
enum _DXVA2_VideoLighting
|
| 274 |
+
{
|
| 275 |
+
DXVA2_VideoLightingMask = 0xf,
|
| 276 |
+
DXVA2_VideoLighting_Unknown = 0,
|
| 277 |
+
DXVA2_VideoLighting_bright = 1,
|
| 278 |
+
DXVA2_VideoLighting_office = 2,
|
| 279 |
+
DXVA2_VideoLighting_dim = 3,
|
| 280 |
+
DXVA2_VideoLighting_dark = 4
|
| 281 |
+
} DXVA2_VideoLighting;
|
| 282 |
+
|
| 283 |
+
typedef
|
| 284 |
+
enum _DXVA2_VideoPrimaries
|
| 285 |
+
{
|
| 286 |
+
DXVA2_VideoPrimariesMask = 0x1f,
|
| 287 |
+
DXVA2_VideoPrimaries_Unknown = 0,
|
| 288 |
+
DXVA2_VideoPrimaries_reserved = 1,
|
| 289 |
+
DXVA2_VideoPrimaries_BT709 = 2,
|
| 290 |
+
DXVA2_VideoPrimaries_BT470_2_SysM = 3,
|
| 291 |
+
DXVA2_VideoPrimaries_BT470_2_SysBG = 4,
|
| 292 |
+
DXVA2_VideoPrimaries_SMPTE170M = 5,
|
| 293 |
+
DXVA2_VideoPrimaries_SMPTE240M = 6,
|
| 294 |
+
DXVA2_VideoPrimaries_EBU3213 = 7,
|
| 295 |
+
DXVA2_VideoPrimaries_SMPTE_C = 8
|
| 296 |
+
} DXVA2_VideoPrimaries;
|
| 297 |
+
|
| 298 |
+
typedef
|
| 299 |
+
enum _DXVA2_VideoTransferFunction
|
| 300 |
+
{
|
| 301 |
+
DXVA2_VideoTransFuncMask = 0x1f,
|
| 302 |
+
DXVA2_VideoTransFunc_Unknown = 0,
|
| 303 |
+
DXVA2_VideoTransFunc_10 = 1,
|
| 304 |
+
DXVA2_VideoTransFunc_18 = 2,
|
| 305 |
+
DXVA2_VideoTransFunc_20 = 3,
|
| 306 |
+
DXVA2_VideoTransFunc_22 = 4,
|
| 307 |
+
DXVA2_VideoTransFunc_709 = 5,
|
| 308 |
+
DXVA2_VideoTransFunc_240M = 6,
|
| 309 |
+
DXVA2_VideoTransFunc_sRGB = 7,
|
| 310 |
+
DXVA2_VideoTransFunc_28 = 8
|
| 311 |
+
} DXVA2_VideoTransferFunction;
|
| 312 |
+
|
| 313 |
+
//
|
| 314 |
+
// Deprecated labels - please use the ones in the DXVA2_VideoTransferFunction enum.
|
| 315 |
+
//
|
| 316 |
+
#define DXVA2_VideoTransFunc_22_709 DXVA2_VideoTransFunc_709
|
| 317 |
+
#define DXVA2_VideoTransFunc_22_240M DXVA2_VideoTransFunc_240M
|
| 318 |
+
#define DXVA2_VideoTransFunc_22_8bit_sRGB DXVA2_VideoTransFunc_sRGB
|
| 319 |
+
typedef struct _DXVA2_Frequency
|
| 320 |
+
{
|
| 321 |
+
UINT Numerator;
|
| 322 |
+
UINT Denominator;
|
| 323 |
+
} DXVA2_Frequency;
|
| 324 |
+
|
| 325 |
+
typedef struct _DXVA2_VideoDesc
|
| 326 |
+
{
|
| 327 |
+
UINT SampleWidth;
|
| 328 |
+
UINT SampleHeight;
|
| 329 |
+
DXVA2_ExtendedFormat SampleFormat;
|
| 330 |
+
D3DFORMAT Format;
|
| 331 |
+
DXVA2_Frequency InputSampleFreq;
|
| 332 |
+
DXVA2_Frequency OutputFrameFreq;
|
| 333 |
+
UINT UABProtectionLevel;
|
| 334 |
+
UINT Reserved;
|
| 335 |
+
} DXVA2_VideoDesc;
|
| 336 |
+
|
| 337 |
+
|
| 338 |
+
enum __MIDL___MIDL_itf_dxva2api_0000_0000_0003
|
| 339 |
+
{
|
| 340 |
+
DXVA2_DeinterlaceTech_Unknown = 0,
|
| 341 |
+
DXVA2_DeinterlaceTech_BOBLineReplicate = 0x1,
|
| 342 |
+
DXVA2_DeinterlaceTech_BOBVerticalStretch = 0x2,
|
| 343 |
+
DXVA2_DeinterlaceTech_BOBVerticalStretch4Tap = 0x4,
|
| 344 |
+
DXVA2_DeinterlaceTech_MedianFiltering = 0x8,
|
| 345 |
+
DXVA2_DeinterlaceTech_EdgeFiltering = 0x10,
|
| 346 |
+
DXVA2_DeinterlaceTech_FieldAdaptive = 0x20,
|
| 347 |
+
DXVA2_DeinterlaceTech_PixelAdaptive = 0x40,
|
| 348 |
+
DXVA2_DeinterlaceTech_MotionVectorSteered = 0x80,
|
| 349 |
+
DXVA2_DeinterlaceTech_InverseTelecine = 0x100,
|
| 350 |
+
DXVA2_DeinterlaceTech_Mask = 0x1ff
|
| 351 |
+
} ;
|
| 352 |
+
|
| 353 |
+
enum __MIDL___MIDL_itf_dxva2api_0000_0000_0004
|
| 354 |
+
{
|
| 355 |
+
DXVA2_NoiseFilterLumaLevel = 1,
|
| 356 |
+
DXVA2_NoiseFilterLumaThreshold = 2,
|
| 357 |
+
DXVA2_NoiseFilterLumaRadius = 3,
|
| 358 |
+
DXVA2_NoiseFilterChromaLevel = 4,
|
| 359 |
+
DXVA2_NoiseFilterChromaThreshold = 5,
|
| 360 |
+
DXVA2_NoiseFilterChromaRadius = 6,
|
| 361 |
+
DXVA2_DetailFilterLumaLevel = 7,
|
| 362 |
+
DXVA2_DetailFilterLumaThreshold = 8,
|
| 363 |
+
DXVA2_DetailFilterLumaRadius = 9,
|
| 364 |
+
DXVA2_DetailFilterChromaLevel = 10,
|
| 365 |
+
DXVA2_DetailFilterChromaThreshold = 11,
|
| 366 |
+
DXVA2_DetailFilterChromaRadius = 12
|
| 367 |
+
} ;
|
| 368 |
+
|
| 369 |
+
enum __MIDL___MIDL_itf_dxva2api_0000_0000_0005
|
| 370 |
+
{
|
| 371 |
+
DXVA2_NoiseFilterTech_Unsupported = 0,
|
| 372 |
+
DXVA2_NoiseFilterTech_Unknown = 0x1,
|
| 373 |
+
DXVA2_NoiseFilterTech_Median = 0x2,
|
| 374 |
+
DXVA2_NoiseFilterTech_Temporal = 0x4,
|
| 375 |
+
DXVA2_NoiseFilterTech_BlockNoise = 0x8,
|
| 376 |
+
DXVA2_NoiseFilterTech_MosquitoNoise = 0x10,
|
| 377 |
+
DXVA2_NoiseFilterTech_Mask = 0x1f
|
| 378 |
+
} ;
|
| 379 |
+
|
| 380 |
+
enum __MIDL___MIDL_itf_dxva2api_0000_0000_0006
|
| 381 |
+
{
|
| 382 |
+
DXVA2_DetailFilterTech_Unsupported = 0,
|
| 383 |
+
DXVA2_DetailFilterTech_Unknown = 0x1,
|
| 384 |
+
DXVA2_DetailFilterTech_Edge = 0x2,
|
| 385 |
+
DXVA2_DetailFilterTech_Sharpening = 0x4,
|
| 386 |
+
DXVA2_DetailFilterTech_Mask = 0x7
|
| 387 |
+
} ;
|
| 388 |
+
|
| 389 |
+
enum __MIDL___MIDL_itf_dxva2api_0000_0000_0007
|
| 390 |
+
{
|
| 391 |
+
DXVA2_ProcAmp_None = 0,
|
| 392 |
+
DXVA2_ProcAmp_Brightness = 0x1,
|
| 393 |
+
DXVA2_ProcAmp_Contrast = 0x2,
|
| 394 |
+
DXVA2_ProcAmp_Hue = 0x4,
|
| 395 |
+
DXVA2_ProcAmp_Saturation = 0x8,
|
| 396 |
+
DXVA2_ProcAmp_Mask = 0xf
|
| 397 |
+
} ;
|
| 398 |
+
|
| 399 |
+
enum __MIDL___MIDL_itf_dxva2api_0000_0000_0008
|
| 400 |
+
{
|
| 401 |
+
DXVA2_VideoProcess_None = 0,
|
| 402 |
+
DXVA2_VideoProcess_YUV2RGB = 0x1,
|
| 403 |
+
DXVA2_VideoProcess_StretchX = 0x2,
|
| 404 |
+
DXVA2_VideoProcess_StretchY = 0x4,
|
| 405 |
+
DXVA2_VideoProcess_AlphaBlend = 0x8,
|
| 406 |
+
DXVA2_VideoProcess_SubRects = 0x10,
|
| 407 |
+
DXVA2_VideoProcess_SubStreams = 0x20,
|
| 408 |
+
DXVA2_VideoProcess_SubStreamsExtended = 0x40,
|
| 409 |
+
DXVA2_VideoProcess_YUV2RGBExtended = 0x80,
|
| 410 |
+
DXVA2_VideoProcess_AlphaBlendExtended = 0x100,
|
| 411 |
+
DXVA2_VideoProcess_Constriction = 0x200,
|
| 412 |
+
DXVA2_VideoProcess_NoiseFilter = 0x400,
|
| 413 |
+
DXVA2_VideoProcess_DetailFilter = 0x800,
|
| 414 |
+
DXVA2_VideoProcess_PlanarAlpha = 0x1000,
|
| 415 |
+
DXVA2_VideoProcess_LinearScaling = 0x2000,
|
| 416 |
+
DXVA2_VideoProcess_GammaCompensated = 0x4000,
|
| 417 |
+
DXVA2_VideoProcess_MaintainsOriginalFieldData = 0x8000,
|
| 418 |
+
DXVA2_VideoProcess_Mask = 0xffff
|
| 419 |
+
} ;
|
| 420 |
+
|
| 421 |
+
enum __MIDL___MIDL_itf_dxva2api_0000_0000_0009
|
| 422 |
+
{
|
| 423 |
+
DXVA2_VPDev_HardwareDevice = 0x1,
|
| 424 |
+
DXVA2_VPDev_EmulatedDXVA1 = 0x2,
|
| 425 |
+
DXVA2_VPDev_SoftwareDevice = 0x4,
|
| 426 |
+
DXVA2_VPDev_Mask = 0x7
|
| 427 |
+
} ;
|
| 428 |
+
|
| 429 |
+
enum __MIDL___MIDL_itf_dxva2api_0000_0000_0010
|
| 430 |
+
{
|
| 431 |
+
DXVA2_SampleData_RFF = 0x1,
|
| 432 |
+
DXVA2_SampleData_TFF = 0x2,
|
| 433 |
+
DXVA2_SampleData_RFF_TFF_Present = 0x4,
|
| 434 |
+
DXVA2_SampleData_Mask = 0xffff
|
| 435 |
+
} ;
|
| 436 |
+
|
| 437 |
+
enum __MIDL___MIDL_itf_dxva2api_0000_0000_0011
|
| 438 |
+
{
|
| 439 |
+
DXVA2_DestData_RFF = 0x1,
|
| 440 |
+
DXVA2_DestData_TFF = 0x2,
|
| 441 |
+
DXVA2_DestData_RFF_TFF_Present = 0x4,
|
| 442 |
+
DXVA2_DestData_Mask = 0xffff
|
| 443 |
+
} ;
|
| 444 |
+
typedef struct _DXVA2_VideoProcessorCaps
|
| 445 |
+
{
|
| 446 |
+
UINT DeviceCaps;
|
| 447 |
+
D3DPOOL InputPool;
|
| 448 |
+
UINT NumForwardRefSamples;
|
| 449 |
+
UINT NumBackwardRefSamples;
|
| 450 |
+
UINT Reserved;
|
| 451 |
+
UINT DeinterlaceTechnology;
|
| 452 |
+
UINT ProcAmpControlCaps;
|
| 453 |
+
UINT VideoProcessorOperations;
|
| 454 |
+
UINT NoiseFilterTechnology;
|
| 455 |
+
UINT DetailFilterTechnology;
|
| 456 |
+
} DXVA2_VideoProcessorCaps;
|
| 457 |
+
|
| 458 |
+
#ifdef __midl
|
| 459 |
+
typedef LONG DXVA2_Fixed32;
|
| 460 |
+
|
| 461 |
+
#else
|
| 462 |
+
#pragma warning( push )
|
| 463 |
+
#pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union
|
| 464 |
+
typedef struct _DXVA2_Fixed32
|
| 465 |
+
{
|
| 466 |
+
union {
|
| 467 |
+
struct {
|
| 468 |
+
USHORT Fraction;
|
| 469 |
+
SHORT Value;
|
| 470 |
+
};
|
| 471 |
+
LONG ll;
|
| 472 |
+
};
|
| 473 |
+
} DXVA2_Fixed32;
|
| 474 |
+
#pragma warning( pop )
|
| 475 |
+
#endif
|
| 476 |
+
typedef struct _DXVA2_AYUVSample8
|
| 477 |
+
{
|
| 478 |
+
UCHAR Cr;
|
| 479 |
+
UCHAR Cb;
|
| 480 |
+
UCHAR Y;
|
| 481 |
+
UCHAR Alpha;
|
| 482 |
+
} DXVA2_AYUVSample8;
|
| 483 |
+
|
| 484 |
+
typedef struct _DXVA2_AYUVSample16
|
| 485 |
+
{
|
| 486 |
+
USHORT Cr;
|
| 487 |
+
USHORT Cb;
|
| 488 |
+
USHORT Y;
|
| 489 |
+
USHORT Alpha;
|
| 490 |
+
} DXVA2_AYUVSample16;
|
| 491 |
+
|
| 492 |
+
typedef LONGLONG REFERENCE_TIME;
|
| 493 |
+
|
| 494 |
+
#if defined(_D3D9_H_) || defined(_d3d9P_H_)
|
| 495 |
+
typedef struct _DXVA2_VideoSample
|
| 496 |
+
{
|
| 497 |
+
REFERENCE_TIME Start;
|
| 498 |
+
REFERENCE_TIME End;
|
| 499 |
+
DXVA2_ExtendedFormat SampleFormat;
|
| 500 |
+
IDirect3DSurface9 *SrcSurface;
|
| 501 |
+
RECT SrcRect;
|
| 502 |
+
RECT DstRect;
|
| 503 |
+
DXVA2_AYUVSample8 Pal[ 16 ];
|
| 504 |
+
DXVA2_Fixed32 PlanarAlpha;
|
| 505 |
+
DWORD SampleData;
|
| 506 |
+
} DXVA2_VideoSample;
|
| 507 |
+
|
| 508 |
+
#endif // _D3D9_H_
|
| 509 |
+
typedef struct _DXVA2_ValueRange
|
| 510 |
+
{
|
| 511 |
+
DXVA2_Fixed32 MinValue;
|
| 512 |
+
DXVA2_Fixed32 MaxValue;
|
| 513 |
+
DXVA2_Fixed32 DefaultValue;
|
| 514 |
+
DXVA2_Fixed32 StepSize;
|
| 515 |
+
} DXVA2_ValueRange;
|
| 516 |
+
|
| 517 |
+
typedef struct _DXVA2_ProcAmpValues
|
| 518 |
+
{
|
| 519 |
+
DXVA2_Fixed32 Brightness;
|
| 520 |
+
DXVA2_Fixed32 Contrast;
|
| 521 |
+
DXVA2_Fixed32 Hue;
|
| 522 |
+
DXVA2_Fixed32 Saturation;
|
| 523 |
+
} DXVA2_ProcAmpValues;
|
| 524 |
+
|
| 525 |
+
typedef struct _DXVA2_FilterValues
|
| 526 |
+
{
|
| 527 |
+
DXVA2_Fixed32 Level;
|
| 528 |
+
DXVA2_Fixed32 Threshold;
|
| 529 |
+
DXVA2_Fixed32 Radius;
|
| 530 |
+
} DXVA2_FilterValues;
|
| 531 |
+
|
| 532 |
+
typedef struct _DXVA2_VideoProcessBltParams
|
| 533 |
+
{
|
| 534 |
+
REFERENCE_TIME TargetFrame;
|
| 535 |
+
RECT TargetRect;
|
| 536 |
+
SIZE ConstrictionSize;
|
| 537 |
+
UINT StreamingFlags;
|
| 538 |
+
DXVA2_AYUVSample16 BackgroundColor;
|
| 539 |
+
DXVA2_ExtendedFormat DestFormat;
|
| 540 |
+
DXVA2_ProcAmpValues ProcAmpValues;
|
| 541 |
+
DXVA2_Fixed32 Alpha;
|
| 542 |
+
DXVA2_FilterValues NoiseFilterLuma;
|
| 543 |
+
DXVA2_FilterValues NoiseFilterChroma;
|
| 544 |
+
DXVA2_FilterValues DetailFilterLuma;
|
| 545 |
+
DXVA2_FilterValues DetailFilterChroma;
|
| 546 |
+
DWORD DestData;
|
| 547 |
+
} DXVA2_VideoProcessBltParams;
|
| 548 |
+
|
| 549 |
+
|
| 550 |
+
enum __MIDL___MIDL_itf_dxva2api_0000_0000_0012
|
| 551 |
+
{
|
| 552 |
+
DXVA2_PictureParametersBufferType = 0,
|
| 553 |
+
DXVA2_MacroBlockControlBufferType = 1,
|
| 554 |
+
DXVA2_ResidualDifferenceBufferType = 2,
|
| 555 |
+
DXVA2_DeblockingControlBufferType = 3,
|
| 556 |
+
DXVA2_InverseQuantizationMatrixBufferType = 4,
|
| 557 |
+
DXVA2_SliceControlBufferType = 5,
|
| 558 |
+
DXVA2_BitStreamDateBufferType = 6,
|
| 559 |
+
DXVA2_MotionVectorBuffer = 7,
|
| 560 |
+
DXVA2_FilmGrainBuffer = 8
|
| 561 |
+
} ;
|
| 562 |
+
|
| 563 |
+
enum __MIDL___MIDL_itf_dxva2api_0000_0000_0013
|
| 564 |
+
{
|
| 565 |
+
DXVA2_VideoDecoderRenderTarget = 0,
|
| 566 |
+
DXVA2_VideoProcessorRenderTarget = 1,
|
| 567 |
+
DXVA2_VideoSoftwareRenderTarget = 2
|
| 568 |
+
} ;
|
| 569 |
+
typedef struct _DXVA2_ConfigPictureDecode
|
| 570 |
+
{
|
| 571 |
+
GUID guidConfigBitstreamEncryption;
|
| 572 |
+
GUID guidConfigMBcontrolEncryption;
|
| 573 |
+
GUID guidConfigResidDiffEncryption;
|
| 574 |
+
UINT ConfigBitstreamRaw;
|
| 575 |
+
UINT ConfigMBcontrolRasterOrder;
|
| 576 |
+
UINT ConfigResidDiffHost;
|
| 577 |
+
UINT ConfigSpatialResid8;
|
| 578 |
+
UINT ConfigResid8Subtraction;
|
| 579 |
+
UINT ConfigSpatialHost8or9Clipping;
|
| 580 |
+
UINT ConfigSpatialResidInterleaved;
|
| 581 |
+
UINT ConfigIntraResidUnsigned;
|
| 582 |
+
UINT ConfigResidDiffAccelerator;
|
| 583 |
+
UINT ConfigHostInverseScan;
|
| 584 |
+
UINT ConfigSpecificIDCT;
|
| 585 |
+
UINT Config4GroupedCoefs;
|
| 586 |
+
USHORT ConfigMinRenderTargetBuffCount;
|
| 587 |
+
USHORT ConfigDecoderSpecific;
|
| 588 |
+
} DXVA2_ConfigPictureDecode;
|
| 589 |
+
|
| 590 |
+
typedef struct _DXVA2_DecodeBufferDesc
|
| 591 |
+
{
|
| 592 |
+
DWORD CompressedBufferType;
|
| 593 |
+
UINT BufferIndex;
|
| 594 |
+
UINT DataOffset;
|
| 595 |
+
UINT DataSize;
|
| 596 |
+
UINT FirstMBaddress;
|
| 597 |
+
UINT NumMBsInBuffer;
|
| 598 |
+
UINT Width;
|
| 599 |
+
UINT Height;
|
| 600 |
+
UINT Stride;
|
| 601 |
+
UINT ReservedBits;
|
| 602 |
+
PVOID pvPVPState;
|
| 603 |
+
} DXVA2_DecodeBufferDesc;
|
| 604 |
+
|
| 605 |
+
// The value in pvPVPState depends on the type of crypo used. For
|
| 606 |
+
// D3DCRYPTOTYPE_AES128_CTR, pvPState points to the following structure:
|
| 607 |
+
|
| 608 |
+
typedef struct _DXVA2_AES_CTR_IV
|
| 609 |
+
{
|
| 610 |
+
UINT64 IV;
|
| 611 |
+
UINT64 Count;
|
| 612 |
+
} DXVA2_AES_CTR_IV;
|
| 613 |
+
|
| 614 |
+
typedef struct _DXVA2_DecodeExtensionData
|
| 615 |
+
{
|
| 616 |
+
UINT Function;
|
| 617 |
+
PVOID pPrivateInputData;
|
| 618 |
+
UINT PrivateInputDataSize;
|
| 619 |
+
PVOID pPrivateOutputData;
|
| 620 |
+
UINT PrivateOutputDataSize;
|
| 621 |
+
} DXVA2_DecodeExtensionData;
|
| 622 |
+
|
| 623 |
+
// DXVA2_DECODE_GET_DRIVER_HANDLE is an extension function that allows the
|
| 624 |
+
// driver to return a handle for the DXVA2 decode device that can be used to
|
| 625 |
+
// associate it with a IDirect3DCryptoSession9 interface. When this function
|
| 626 |
+
// is used:
|
| 627 |
+
// pPrivateInputData = NULL
|
| 628 |
+
// pPrivateInputDataSize = 0
|
| 629 |
+
// pPrivateOutputData = HANDLE*
|
| 630 |
+
// pPrivateOutputDataSize = sizeof(HANDLE)
|
| 631 |
+
#define DXVA2_DECODE_GET_DRIVER_HANDLE 0x725
|
| 632 |
+
|
| 633 |
+
// DXVA2_DECODE_SPECIFY_ENCRYPTED_BLOCKS is an extension function that that allows
|
| 634 |
+
// the decoder to specify which portions of the compressed buffers are encrypted.
|
| 635 |
+
// If this fucntion is not used to specify this information, it is assumed that
|
| 636 |
+
// the entire buffer is encrypted.
|
| 637 |
+
// pPrivateInputData = D3DENCRYPTED_BLOCK_INFO*;
|
| 638 |
+
// PrivateInputDataSize = sizeof(D3DENCRYPTED_BLOCK_INFO);
|
| 639 |
+
// pPrivateOutputData = NULL;
|
| 640 |
+
// PrivateOutputDataSize = 0;
|
| 641 |
+
#define DXVA2_DECODE_SPECIFY_ENCRYPTED_BLOCKS 0x724
|
| 642 |
+
|
| 643 |
+
typedef struct _DXVA2_DecodeExecuteParams
|
| 644 |
+
{
|
| 645 |
+
UINT NumCompBuffers;
|
| 646 |
+
DXVA2_DecodeBufferDesc *pCompressedBuffers;
|
| 647 |
+
DXVA2_DecodeExtensionData *pExtensionData;
|
| 648 |
+
} DXVA2_DecodeExecuteParams;
|
| 649 |
+
|
| 650 |
+
#if defined(_D3D9_H_) || defined(_d3d9P_H_)
|
| 651 |
+
|
| 652 |
+
|
| 653 |
+
|
| 654 |
+
|
| 655 |
+
|
| 656 |
+
|
| 657 |
+
|
| 658 |
+
|
| 659 |
+
extern RPC_IF_HANDLE __MIDL_itf_dxva2api_0000_0000_v0_0_c_ifspec;
|
| 660 |
+
extern RPC_IF_HANDLE __MIDL_itf_dxva2api_0000_0000_v0_0_s_ifspec;
|
| 661 |
+
|
| 662 |
+
#ifndef __IDirect3DDeviceManager9_INTERFACE_DEFINED__
|
| 663 |
+
#define __IDirect3DDeviceManager9_INTERFACE_DEFINED__
|
| 664 |
+
|
| 665 |
+
/* interface IDirect3DDeviceManager9 */
|
| 666 |
+
/* [local][helpstring][uuid][object] */
|
| 667 |
+
|
| 668 |
+
|
| 669 |
+
EXTERN_C const IID IID_IDirect3DDeviceManager9;
|
| 670 |
+
|
| 671 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 672 |
+
|
| 673 |
+
MIDL_INTERFACE("a0cade0f-06d5-4cf4-a1c7-f3cdd725aa75")
|
| 674 |
+
IDirect3DDeviceManager9 : public IUnknown
|
| 675 |
+
{
|
| 676 |
+
public:
|
| 677 |
+
virtual HRESULT STDMETHODCALLTYPE ResetDevice(
|
| 678 |
+
/* [annotation][in] */
|
| 679 |
+
_In_ IDirect3DDevice9 *pDevice,
|
| 680 |
+
/* [annotation][in] */
|
| 681 |
+
_In_ UINT resetToken) = 0;
|
| 682 |
+
|
| 683 |
+
virtual HRESULT STDMETHODCALLTYPE OpenDeviceHandle(
|
| 684 |
+
/* [annotation][out] */
|
| 685 |
+
_Out_ HANDLE *phDevice) = 0;
|
| 686 |
+
|
| 687 |
+
virtual HRESULT STDMETHODCALLTYPE CloseDeviceHandle(
|
| 688 |
+
/* [annotation][in] */
|
| 689 |
+
_In_ HANDLE hDevice) = 0;
|
| 690 |
+
|
| 691 |
+
virtual HRESULT STDMETHODCALLTYPE TestDevice(
|
| 692 |
+
/* [annotation][in] */
|
| 693 |
+
_In_ HANDLE hDevice) = 0;
|
| 694 |
+
|
| 695 |
+
virtual HRESULT STDMETHODCALLTYPE LockDevice(
|
| 696 |
+
/* [annotation][in] */
|
| 697 |
+
_In_ HANDLE hDevice,
|
| 698 |
+
/* [annotation][out] */
|
| 699 |
+
_Outptr_ IDirect3DDevice9 **ppDevice,
|
| 700 |
+
/* [annotation][in] */
|
| 701 |
+
_In_ BOOL fBlock) = 0;
|
| 702 |
+
|
| 703 |
+
virtual HRESULT STDMETHODCALLTYPE UnlockDevice(
|
| 704 |
+
/* [annotation][in] */
|
| 705 |
+
_In_ HANDLE hDevice,
|
| 706 |
+
/* [annotation][in] */
|
| 707 |
+
_In_ BOOL fSaveState) = 0;
|
| 708 |
+
|
| 709 |
+
virtual HRESULT STDMETHODCALLTYPE GetVideoService(
|
| 710 |
+
/* [annotation][in] */
|
| 711 |
+
_In_ HANDLE hDevice,
|
| 712 |
+
/* [annotation][in] */
|
| 713 |
+
_In_ REFIID riid,
|
| 714 |
+
/* [annotation][out] */
|
| 715 |
+
_Outptr_ void **ppService) = 0;
|
| 716 |
+
|
| 717 |
+
};
|
| 718 |
+
|
| 719 |
+
|
| 720 |
+
#else /* C style interface */
|
| 721 |
+
|
| 722 |
+
typedef struct IDirect3DDeviceManager9Vtbl
|
| 723 |
+
{
|
| 724 |
+
BEGIN_INTERFACE
|
| 725 |
+
|
| 726 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 727 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 728 |
+
IDirect3DDeviceManager9 * This,
|
| 729 |
+
/* [in] */ REFIID riid,
|
| 730 |
+
/* [annotation][iid_is][out] */
|
| 731 |
+
_COM_Outptr_ void **ppvObject);
|
| 732 |
+
|
| 733 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 734 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 735 |
+
IDirect3DDeviceManager9 * This);
|
| 736 |
+
|
| 737 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 738 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 739 |
+
IDirect3DDeviceManager9 * This);
|
| 740 |
+
|
| 741 |
+
DECLSPEC_XFGVIRT(IDirect3DDeviceManager9, ResetDevice)
|
| 742 |
+
HRESULT ( STDMETHODCALLTYPE *ResetDevice )(
|
| 743 |
+
IDirect3DDeviceManager9 * This,
|
| 744 |
+
/* [annotation][in] */
|
| 745 |
+
_In_ IDirect3DDevice9 *pDevice,
|
| 746 |
+
/* [annotation][in] */
|
| 747 |
+
_In_ UINT resetToken);
|
| 748 |
+
|
| 749 |
+
DECLSPEC_XFGVIRT(IDirect3DDeviceManager9, OpenDeviceHandle)
|
| 750 |
+
HRESULT ( STDMETHODCALLTYPE *OpenDeviceHandle )(
|
| 751 |
+
IDirect3DDeviceManager9 * This,
|
| 752 |
+
/* [annotation][out] */
|
| 753 |
+
_Out_ HANDLE *phDevice);
|
| 754 |
+
|
| 755 |
+
DECLSPEC_XFGVIRT(IDirect3DDeviceManager9, CloseDeviceHandle)
|
| 756 |
+
HRESULT ( STDMETHODCALLTYPE *CloseDeviceHandle )(
|
| 757 |
+
IDirect3DDeviceManager9 * This,
|
| 758 |
+
/* [annotation][in] */
|
| 759 |
+
_In_ HANDLE hDevice);
|
| 760 |
+
|
| 761 |
+
DECLSPEC_XFGVIRT(IDirect3DDeviceManager9, TestDevice)
|
| 762 |
+
HRESULT ( STDMETHODCALLTYPE *TestDevice )(
|
| 763 |
+
IDirect3DDeviceManager9 * This,
|
| 764 |
+
/* [annotation][in] */
|
| 765 |
+
_In_ HANDLE hDevice);
|
| 766 |
+
|
| 767 |
+
DECLSPEC_XFGVIRT(IDirect3DDeviceManager9, LockDevice)
|
| 768 |
+
HRESULT ( STDMETHODCALLTYPE *LockDevice )(
|
| 769 |
+
IDirect3DDeviceManager9 * This,
|
| 770 |
+
/* [annotation][in] */
|
| 771 |
+
_In_ HANDLE hDevice,
|
| 772 |
+
/* [annotation][out] */
|
| 773 |
+
_Outptr_ IDirect3DDevice9 **ppDevice,
|
| 774 |
+
/* [annotation][in] */
|
| 775 |
+
_In_ BOOL fBlock);
|
| 776 |
+
|
| 777 |
+
DECLSPEC_XFGVIRT(IDirect3DDeviceManager9, UnlockDevice)
|
| 778 |
+
HRESULT ( STDMETHODCALLTYPE *UnlockDevice )(
|
| 779 |
+
IDirect3DDeviceManager9 * This,
|
| 780 |
+
/* [annotation][in] */
|
| 781 |
+
_In_ HANDLE hDevice,
|
| 782 |
+
/* [annotation][in] */
|
| 783 |
+
_In_ BOOL fSaveState);
|
| 784 |
+
|
| 785 |
+
DECLSPEC_XFGVIRT(IDirect3DDeviceManager9, GetVideoService)
|
| 786 |
+
HRESULT ( STDMETHODCALLTYPE *GetVideoService )(
|
| 787 |
+
IDirect3DDeviceManager9 * This,
|
| 788 |
+
/* [annotation][in] */
|
| 789 |
+
_In_ HANDLE hDevice,
|
| 790 |
+
/* [annotation][in] */
|
| 791 |
+
_In_ REFIID riid,
|
| 792 |
+
/* [annotation][out] */
|
| 793 |
+
_Outptr_ void **ppService);
|
| 794 |
+
|
| 795 |
+
END_INTERFACE
|
| 796 |
+
} IDirect3DDeviceManager9Vtbl;
|
| 797 |
+
|
| 798 |
+
interface IDirect3DDeviceManager9
|
| 799 |
+
{
|
| 800 |
+
CONST_VTBL struct IDirect3DDeviceManager9Vtbl *lpVtbl;
|
| 801 |
+
};
|
| 802 |
+
|
| 803 |
+
|
| 804 |
+
|
| 805 |
+
#ifdef COBJMACROS
|
| 806 |
+
|
| 807 |
+
|
| 808 |
+
#define IDirect3DDeviceManager9_QueryInterface(This,riid,ppvObject) \
|
| 809 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 810 |
+
|
| 811 |
+
#define IDirect3DDeviceManager9_AddRef(This) \
|
| 812 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 813 |
+
|
| 814 |
+
#define IDirect3DDeviceManager9_Release(This) \
|
| 815 |
+
( (This)->lpVtbl -> Release(This) )
|
| 816 |
+
|
| 817 |
+
|
| 818 |
+
#define IDirect3DDeviceManager9_ResetDevice(This,pDevice,resetToken) \
|
| 819 |
+
( (This)->lpVtbl -> ResetDevice(This,pDevice,resetToken) )
|
| 820 |
+
|
| 821 |
+
#define IDirect3DDeviceManager9_OpenDeviceHandle(This,phDevice) \
|
| 822 |
+
( (This)->lpVtbl -> OpenDeviceHandle(This,phDevice) )
|
| 823 |
+
|
| 824 |
+
#define IDirect3DDeviceManager9_CloseDeviceHandle(This,hDevice) \
|
| 825 |
+
( (This)->lpVtbl -> CloseDeviceHandle(This,hDevice) )
|
| 826 |
+
|
| 827 |
+
#define IDirect3DDeviceManager9_TestDevice(This,hDevice) \
|
| 828 |
+
( (This)->lpVtbl -> TestDevice(This,hDevice) )
|
| 829 |
+
|
| 830 |
+
#define IDirect3DDeviceManager9_LockDevice(This,hDevice,ppDevice,fBlock) \
|
| 831 |
+
( (This)->lpVtbl -> LockDevice(This,hDevice,ppDevice,fBlock) )
|
| 832 |
+
|
| 833 |
+
#define IDirect3DDeviceManager9_UnlockDevice(This,hDevice,fSaveState) \
|
| 834 |
+
( (This)->lpVtbl -> UnlockDevice(This,hDevice,fSaveState) )
|
| 835 |
+
|
| 836 |
+
#define IDirect3DDeviceManager9_GetVideoService(This,hDevice,riid,ppService) \
|
| 837 |
+
( (This)->lpVtbl -> GetVideoService(This,hDevice,riid,ppService) )
|
| 838 |
+
|
| 839 |
+
#endif /* COBJMACROS */
|
| 840 |
+
|
| 841 |
+
|
| 842 |
+
#endif /* C style interface */
|
| 843 |
+
|
| 844 |
+
|
| 845 |
+
|
| 846 |
+
|
| 847 |
+
#endif /* __IDirect3DDeviceManager9_INTERFACE_DEFINED__ */
|
| 848 |
+
|
| 849 |
+
|
| 850 |
+
#ifndef __IDirectXVideoAccelerationService_INTERFACE_DEFINED__
|
| 851 |
+
#define __IDirectXVideoAccelerationService_INTERFACE_DEFINED__
|
| 852 |
+
|
| 853 |
+
/* interface IDirectXVideoAccelerationService */
|
| 854 |
+
/* [local][helpstring][uuid][object] */
|
| 855 |
+
|
| 856 |
+
|
| 857 |
+
EXTERN_C const IID IID_IDirectXVideoAccelerationService;
|
| 858 |
+
|
| 859 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 860 |
+
|
| 861 |
+
MIDL_INTERFACE("fc51a550-d5e7-11d9-af55-00054e43ff02")
|
| 862 |
+
IDirectXVideoAccelerationService : public IUnknown
|
| 863 |
+
{
|
| 864 |
+
public:
|
| 865 |
+
virtual HRESULT STDMETHODCALLTYPE CreateSurface(
|
| 866 |
+
/* [annotation][in] */
|
| 867 |
+
_In_ UINT Width,
|
| 868 |
+
/* [annotation][in] */
|
| 869 |
+
_In_ UINT Height,
|
| 870 |
+
/* [annotation][in] */
|
| 871 |
+
_In_ UINT BackBuffers,
|
| 872 |
+
/* [annotation][in] */
|
| 873 |
+
_In_ D3DFORMAT Format,
|
| 874 |
+
/* [annotation][in] */
|
| 875 |
+
_In_ D3DPOOL Pool,
|
| 876 |
+
/* [annotation][in] */
|
| 877 |
+
_In_ DWORD Usage,
|
| 878 |
+
/* [annotation][in] */
|
| 879 |
+
_In_ DWORD DxvaType,
|
| 880 |
+
/* [annotation][size_is][out] */
|
| 881 |
+
_Out_writes_(BackBuffers+1) IDirect3DSurface9 **ppSurface,
|
| 882 |
+
/* [annotation][out][in] */
|
| 883 |
+
_Inout_opt_ HANDLE *pSharedHandle) = 0;
|
| 884 |
+
|
| 885 |
+
};
|
| 886 |
+
|
| 887 |
+
|
| 888 |
+
#else /* C style interface */
|
| 889 |
+
|
| 890 |
+
typedef struct IDirectXVideoAccelerationServiceVtbl
|
| 891 |
+
{
|
| 892 |
+
BEGIN_INTERFACE
|
| 893 |
+
|
| 894 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 895 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 896 |
+
IDirectXVideoAccelerationService * This,
|
| 897 |
+
/* [in] */ REFIID riid,
|
| 898 |
+
/* [annotation][iid_is][out] */
|
| 899 |
+
_COM_Outptr_ void **ppvObject);
|
| 900 |
+
|
| 901 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 902 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 903 |
+
IDirectXVideoAccelerationService * This);
|
| 904 |
+
|
| 905 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 906 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 907 |
+
IDirectXVideoAccelerationService * This);
|
| 908 |
+
|
| 909 |
+
DECLSPEC_XFGVIRT(IDirectXVideoAccelerationService, CreateSurface)
|
| 910 |
+
HRESULT ( STDMETHODCALLTYPE *CreateSurface )(
|
| 911 |
+
IDirectXVideoAccelerationService * This,
|
| 912 |
+
/* [annotation][in] */
|
| 913 |
+
_In_ UINT Width,
|
| 914 |
+
/* [annotation][in] */
|
| 915 |
+
_In_ UINT Height,
|
| 916 |
+
/* [annotation][in] */
|
| 917 |
+
_In_ UINT BackBuffers,
|
| 918 |
+
/* [annotation][in] */
|
| 919 |
+
_In_ D3DFORMAT Format,
|
| 920 |
+
/* [annotation][in] */
|
| 921 |
+
_In_ D3DPOOL Pool,
|
| 922 |
+
/* [annotation][in] */
|
| 923 |
+
_In_ DWORD Usage,
|
| 924 |
+
/* [annotation][in] */
|
| 925 |
+
_In_ DWORD DxvaType,
|
| 926 |
+
/* [annotation][size_is][out] */
|
| 927 |
+
_Out_writes_(BackBuffers+1) IDirect3DSurface9 **ppSurface,
|
| 928 |
+
/* [annotation][out][in] */
|
| 929 |
+
_Inout_opt_ HANDLE *pSharedHandle);
|
| 930 |
+
|
| 931 |
+
END_INTERFACE
|
| 932 |
+
} IDirectXVideoAccelerationServiceVtbl;
|
| 933 |
+
|
| 934 |
+
interface IDirectXVideoAccelerationService
|
| 935 |
+
{
|
| 936 |
+
CONST_VTBL struct IDirectXVideoAccelerationServiceVtbl *lpVtbl;
|
| 937 |
+
};
|
| 938 |
+
|
| 939 |
+
|
| 940 |
+
|
| 941 |
+
#ifdef COBJMACROS
|
| 942 |
+
|
| 943 |
+
|
| 944 |
+
#define IDirectXVideoAccelerationService_QueryInterface(This,riid,ppvObject) \
|
| 945 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 946 |
+
|
| 947 |
+
#define IDirectXVideoAccelerationService_AddRef(This) \
|
| 948 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 949 |
+
|
| 950 |
+
#define IDirectXVideoAccelerationService_Release(This) \
|
| 951 |
+
( (This)->lpVtbl -> Release(This) )
|
| 952 |
+
|
| 953 |
+
|
| 954 |
+
#define IDirectXVideoAccelerationService_CreateSurface(This,Width,Height,BackBuffers,Format,Pool,Usage,DxvaType,ppSurface,pSharedHandle) \
|
| 955 |
+
( (This)->lpVtbl -> CreateSurface(This,Width,Height,BackBuffers,Format,Pool,Usage,DxvaType,ppSurface,pSharedHandle) )
|
| 956 |
+
|
| 957 |
+
#endif /* COBJMACROS */
|
| 958 |
+
|
| 959 |
+
|
| 960 |
+
#endif /* C style interface */
|
| 961 |
+
|
| 962 |
+
|
| 963 |
+
|
| 964 |
+
|
| 965 |
+
#endif /* __IDirectXVideoAccelerationService_INTERFACE_DEFINED__ */
|
| 966 |
+
|
| 967 |
+
|
| 968 |
+
#ifndef __IDirectXVideoDecoderService_INTERFACE_DEFINED__
|
| 969 |
+
#define __IDirectXVideoDecoderService_INTERFACE_DEFINED__
|
| 970 |
+
|
| 971 |
+
/* interface IDirectXVideoDecoderService */
|
| 972 |
+
/* [local][helpstring][uuid][object] */
|
| 973 |
+
|
| 974 |
+
|
| 975 |
+
EXTERN_C const IID IID_IDirectXVideoDecoderService;
|
| 976 |
+
|
| 977 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 978 |
+
|
| 979 |
+
MIDL_INTERFACE("fc51a551-d5e7-11d9-af55-00054e43ff02")
|
| 980 |
+
IDirectXVideoDecoderService : public IDirectXVideoAccelerationService
|
| 981 |
+
{
|
| 982 |
+
public:
|
| 983 |
+
virtual HRESULT STDMETHODCALLTYPE GetDecoderDeviceGuids(
|
| 984 |
+
/* [annotation][out] */
|
| 985 |
+
_Out_ UINT *pCount,
|
| 986 |
+
/* [annotation][size_is][unique][out] */
|
| 987 |
+
_Outptr_result_buffer_maybenull_(*pCount) GUID **pGuids) = 0;
|
| 988 |
+
|
| 989 |
+
virtual HRESULT STDMETHODCALLTYPE GetDecoderRenderTargets(
|
| 990 |
+
/* [annotation][in] */
|
| 991 |
+
_In_ REFGUID Guid,
|
| 992 |
+
/* [annotation][out] */
|
| 993 |
+
_Out_ UINT *pCount,
|
| 994 |
+
/* [annotation][size_is][unique][out] */
|
| 995 |
+
_Outptr_result_buffer_maybenull_(*pCount) D3DFORMAT **pFormats) = 0;
|
| 996 |
+
|
| 997 |
+
virtual HRESULT STDMETHODCALLTYPE GetDecoderConfigurations(
|
| 998 |
+
/* [annotation][in] */
|
| 999 |
+
_In_ REFGUID Guid,
|
| 1000 |
+
/* [annotation][in] */
|
| 1001 |
+
_In_ const DXVA2_VideoDesc *pVideoDesc,
|
| 1002 |
+
/* [annotation][in] */
|
| 1003 |
+
_Reserved_ void *pReserved,
|
| 1004 |
+
/* [annotation][out] */
|
| 1005 |
+
_Out_ UINT *pCount,
|
| 1006 |
+
/* [annotation][size_is][unique][out] */
|
| 1007 |
+
_Outptr_result_buffer_maybenull_(*pCount) DXVA2_ConfigPictureDecode **ppConfigs) = 0;
|
| 1008 |
+
|
| 1009 |
+
virtual HRESULT STDMETHODCALLTYPE CreateVideoDecoder(
|
| 1010 |
+
/* [annotation][in] */
|
| 1011 |
+
_In_ REFGUID Guid,
|
| 1012 |
+
/* [annotation][in] */
|
| 1013 |
+
_In_ const DXVA2_VideoDesc *pVideoDesc,
|
| 1014 |
+
/* [annotation][in] */
|
| 1015 |
+
_In_ const DXVA2_ConfigPictureDecode *pConfig,
|
| 1016 |
+
/* [annotation][size_is][in] */
|
| 1017 |
+
_In_reads_(NumRenderTargets) IDirect3DSurface9 **ppDecoderRenderTargets,
|
| 1018 |
+
/* [annotation][in] */
|
| 1019 |
+
_In_ UINT NumRenderTargets,
|
| 1020 |
+
/* [annotation][out] */
|
| 1021 |
+
_Outptr_ IDirectXVideoDecoder **ppDecode) = 0;
|
| 1022 |
+
|
| 1023 |
+
};
|
| 1024 |
+
|
| 1025 |
+
|
| 1026 |
+
#else /* C style interface */
|
| 1027 |
+
|
| 1028 |
+
typedef struct IDirectXVideoDecoderServiceVtbl
|
| 1029 |
+
{
|
| 1030 |
+
BEGIN_INTERFACE
|
| 1031 |
+
|
| 1032 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 1033 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 1034 |
+
IDirectXVideoDecoderService * This,
|
| 1035 |
+
/* [in] */ REFIID riid,
|
| 1036 |
+
/* [annotation][iid_is][out] */
|
| 1037 |
+
_COM_Outptr_ void **ppvObject);
|
| 1038 |
+
|
| 1039 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 1040 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 1041 |
+
IDirectXVideoDecoderService * This);
|
| 1042 |
+
|
| 1043 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 1044 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 1045 |
+
IDirectXVideoDecoderService * This);
|
| 1046 |
+
|
| 1047 |
+
DECLSPEC_XFGVIRT(IDirectXVideoAccelerationService, CreateSurface)
|
| 1048 |
+
HRESULT ( STDMETHODCALLTYPE *CreateSurface )(
|
| 1049 |
+
IDirectXVideoDecoderService * This,
|
| 1050 |
+
/* [annotation][in] */
|
| 1051 |
+
_In_ UINT Width,
|
| 1052 |
+
/* [annotation][in] */
|
| 1053 |
+
_In_ UINT Height,
|
| 1054 |
+
/* [annotation][in] */
|
| 1055 |
+
_In_ UINT BackBuffers,
|
| 1056 |
+
/* [annotation][in] */
|
| 1057 |
+
_In_ D3DFORMAT Format,
|
| 1058 |
+
/* [annotation][in] */
|
| 1059 |
+
_In_ D3DPOOL Pool,
|
| 1060 |
+
/* [annotation][in] */
|
| 1061 |
+
_In_ DWORD Usage,
|
| 1062 |
+
/* [annotation][in] */
|
| 1063 |
+
_In_ DWORD DxvaType,
|
| 1064 |
+
/* [annotation][size_is][out] */
|
| 1065 |
+
_Out_writes_(BackBuffers+1) IDirect3DSurface9 **ppSurface,
|
| 1066 |
+
/* [annotation][out][in] */
|
| 1067 |
+
_Inout_opt_ HANDLE *pSharedHandle);
|
| 1068 |
+
|
| 1069 |
+
DECLSPEC_XFGVIRT(IDirectXVideoDecoderService, GetDecoderDeviceGuids)
|
| 1070 |
+
HRESULT ( STDMETHODCALLTYPE *GetDecoderDeviceGuids )(
|
| 1071 |
+
IDirectXVideoDecoderService * This,
|
| 1072 |
+
/* [annotation][out] */
|
| 1073 |
+
_Out_ UINT *pCount,
|
| 1074 |
+
/* [annotation][size_is][unique][out] */
|
| 1075 |
+
_Outptr_result_buffer_maybenull_(*pCount) GUID **pGuids);
|
| 1076 |
+
|
| 1077 |
+
DECLSPEC_XFGVIRT(IDirectXVideoDecoderService, GetDecoderRenderTargets)
|
| 1078 |
+
HRESULT ( STDMETHODCALLTYPE *GetDecoderRenderTargets )(
|
| 1079 |
+
IDirectXVideoDecoderService * This,
|
| 1080 |
+
/* [annotation][in] */
|
| 1081 |
+
_In_ REFGUID Guid,
|
| 1082 |
+
/* [annotation][out] */
|
| 1083 |
+
_Out_ UINT *pCount,
|
| 1084 |
+
/* [annotation][size_is][unique][out] */
|
| 1085 |
+
_Outptr_result_buffer_maybenull_(*pCount) D3DFORMAT **pFormats);
|
| 1086 |
+
|
| 1087 |
+
DECLSPEC_XFGVIRT(IDirectXVideoDecoderService, GetDecoderConfigurations)
|
| 1088 |
+
HRESULT ( STDMETHODCALLTYPE *GetDecoderConfigurations )(
|
| 1089 |
+
IDirectXVideoDecoderService * This,
|
| 1090 |
+
/* [annotation][in] */
|
| 1091 |
+
_In_ REFGUID Guid,
|
| 1092 |
+
/* [annotation][in] */
|
| 1093 |
+
_In_ const DXVA2_VideoDesc *pVideoDesc,
|
| 1094 |
+
/* [annotation][in] */
|
| 1095 |
+
_Reserved_ void *pReserved,
|
| 1096 |
+
/* [annotation][out] */
|
| 1097 |
+
_Out_ UINT *pCount,
|
| 1098 |
+
/* [annotation][size_is][unique][out] */
|
| 1099 |
+
_Outptr_result_buffer_maybenull_(*pCount) DXVA2_ConfigPictureDecode **ppConfigs);
|
| 1100 |
+
|
| 1101 |
+
DECLSPEC_XFGVIRT(IDirectXVideoDecoderService, CreateVideoDecoder)
|
| 1102 |
+
HRESULT ( STDMETHODCALLTYPE *CreateVideoDecoder )(
|
| 1103 |
+
IDirectXVideoDecoderService * This,
|
| 1104 |
+
/* [annotation][in] */
|
| 1105 |
+
_In_ REFGUID Guid,
|
| 1106 |
+
/* [annotation][in] */
|
| 1107 |
+
_In_ const DXVA2_VideoDesc *pVideoDesc,
|
| 1108 |
+
/* [annotation][in] */
|
| 1109 |
+
_In_ const DXVA2_ConfigPictureDecode *pConfig,
|
| 1110 |
+
/* [annotation][size_is][in] */
|
| 1111 |
+
_In_reads_(NumRenderTargets) IDirect3DSurface9 **ppDecoderRenderTargets,
|
| 1112 |
+
/* [annotation][in] */
|
| 1113 |
+
_In_ UINT NumRenderTargets,
|
| 1114 |
+
/* [annotation][out] */
|
| 1115 |
+
_Outptr_ IDirectXVideoDecoder **ppDecode);
|
| 1116 |
+
|
| 1117 |
+
END_INTERFACE
|
| 1118 |
+
} IDirectXVideoDecoderServiceVtbl;
|
| 1119 |
+
|
| 1120 |
+
interface IDirectXVideoDecoderService
|
| 1121 |
+
{
|
| 1122 |
+
CONST_VTBL struct IDirectXVideoDecoderServiceVtbl *lpVtbl;
|
| 1123 |
+
};
|
| 1124 |
+
|
| 1125 |
+
|
| 1126 |
+
|
| 1127 |
+
#ifdef COBJMACROS
|
| 1128 |
+
|
| 1129 |
+
|
| 1130 |
+
#define IDirectXVideoDecoderService_QueryInterface(This,riid,ppvObject) \
|
| 1131 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 1132 |
+
|
| 1133 |
+
#define IDirectXVideoDecoderService_AddRef(This) \
|
| 1134 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 1135 |
+
|
| 1136 |
+
#define IDirectXVideoDecoderService_Release(This) \
|
| 1137 |
+
( (This)->lpVtbl -> Release(This) )
|
| 1138 |
+
|
| 1139 |
+
|
| 1140 |
+
#define IDirectXVideoDecoderService_CreateSurface(This,Width,Height,BackBuffers,Format,Pool,Usage,DxvaType,ppSurface,pSharedHandle) \
|
| 1141 |
+
( (This)->lpVtbl -> CreateSurface(This,Width,Height,BackBuffers,Format,Pool,Usage,DxvaType,ppSurface,pSharedHandle) )
|
| 1142 |
+
|
| 1143 |
+
|
| 1144 |
+
#define IDirectXVideoDecoderService_GetDecoderDeviceGuids(This,pCount,pGuids) \
|
| 1145 |
+
( (This)->lpVtbl -> GetDecoderDeviceGuids(This,pCount,pGuids) )
|
| 1146 |
+
|
| 1147 |
+
#define IDirectXVideoDecoderService_GetDecoderRenderTargets(This,Guid,pCount,pFormats) \
|
| 1148 |
+
( (This)->lpVtbl -> GetDecoderRenderTargets(This,Guid,pCount,pFormats) )
|
| 1149 |
+
|
| 1150 |
+
#define IDirectXVideoDecoderService_GetDecoderConfigurations(This,Guid,pVideoDesc,pReserved,pCount,ppConfigs) \
|
| 1151 |
+
( (This)->lpVtbl -> GetDecoderConfigurations(This,Guid,pVideoDesc,pReserved,pCount,ppConfigs) )
|
| 1152 |
+
|
| 1153 |
+
#define IDirectXVideoDecoderService_CreateVideoDecoder(This,Guid,pVideoDesc,pConfig,ppDecoderRenderTargets,NumRenderTargets,ppDecode) \
|
| 1154 |
+
( (This)->lpVtbl -> CreateVideoDecoder(This,Guid,pVideoDesc,pConfig,ppDecoderRenderTargets,NumRenderTargets,ppDecode) )
|
| 1155 |
+
|
| 1156 |
+
#endif /* COBJMACROS */
|
| 1157 |
+
|
| 1158 |
+
|
| 1159 |
+
#endif /* C style interface */
|
| 1160 |
+
|
| 1161 |
+
|
| 1162 |
+
|
| 1163 |
+
|
| 1164 |
+
#endif /* __IDirectXVideoDecoderService_INTERFACE_DEFINED__ */
|
| 1165 |
+
|
| 1166 |
+
|
| 1167 |
+
#ifndef __IDirectXVideoProcessorService_INTERFACE_DEFINED__
|
| 1168 |
+
#define __IDirectXVideoProcessorService_INTERFACE_DEFINED__
|
| 1169 |
+
|
| 1170 |
+
/* interface IDirectXVideoProcessorService */
|
| 1171 |
+
/* [local][helpstring][uuid][object] */
|
| 1172 |
+
|
| 1173 |
+
|
| 1174 |
+
EXTERN_C const IID IID_IDirectXVideoProcessorService;
|
| 1175 |
+
|
| 1176 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 1177 |
+
|
| 1178 |
+
MIDL_INTERFACE("fc51a552-d5e7-11d9-af55-00054e43ff02")
|
| 1179 |
+
IDirectXVideoProcessorService : public IDirectXVideoAccelerationService
|
| 1180 |
+
{
|
| 1181 |
+
public:
|
| 1182 |
+
virtual HRESULT STDMETHODCALLTYPE RegisterVideoProcessorSoftwareDevice(
|
| 1183 |
+
/* [annotation][in] */
|
| 1184 |
+
_In_ void *pCallbacks) = 0;
|
| 1185 |
+
|
| 1186 |
+
virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorDeviceGuids(
|
| 1187 |
+
/* [annotation][in] */
|
| 1188 |
+
_In_ const DXVA2_VideoDesc *pVideoDesc,
|
| 1189 |
+
/* [annotation][out] */
|
| 1190 |
+
_Out_ UINT *pCount,
|
| 1191 |
+
/* [annotation][size_is][unique][out] */
|
| 1192 |
+
_Outptr_result_buffer_maybenull_(*pCount) GUID **pGuids) = 0;
|
| 1193 |
+
|
| 1194 |
+
virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorRenderTargets(
|
| 1195 |
+
/* [annotation][in] */
|
| 1196 |
+
_In_ REFGUID VideoProcDeviceGuid,
|
| 1197 |
+
/* [annotation][in] */
|
| 1198 |
+
_In_ const DXVA2_VideoDesc *pVideoDesc,
|
| 1199 |
+
/* [annotation][out] */
|
| 1200 |
+
_Out_ UINT *pCount,
|
| 1201 |
+
/* [annotation][size_is][unique][out] */
|
| 1202 |
+
_Outptr_result_buffer_maybenull_(*pCount) D3DFORMAT **pFormats) = 0;
|
| 1203 |
+
|
| 1204 |
+
virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorSubStreamFormats(
|
| 1205 |
+
/* [annotation][in] */
|
| 1206 |
+
_In_ REFGUID VideoProcDeviceGuid,
|
| 1207 |
+
/* [annotation][in] */
|
| 1208 |
+
_In_ const DXVA2_VideoDesc *pVideoDesc,
|
| 1209 |
+
/* [annotation][in] */
|
| 1210 |
+
_In_ D3DFORMAT RenderTargetFormat,
|
| 1211 |
+
/* [annotation][out] */
|
| 1212 |
+
_Out_ UINT *pCount,
|
| 1213 |
+
/* [annotation][size_is][unique][out] */
|
| 1214 |
+
_Outptr_result_buffer_maybenull_(*pCount) D3DFORMAT **pFormats) = 0;
|
| 1215 |
+
|
| 1216 |
+
virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorCaps(
|
| 1217 |
+
/* [annotation][in] */
|
| 1218 |
+
_In_ REFGUID VideoProcDeviceGuid,
|
| 1219 |
+
/* [annotation][in] */
|
| 1220 |
+
_In_ const DXVA2_VideoDesc *pVideoDesc,
|
| 1221 |
+
/* [annotation][in] */
|
| 1222 |
+
_In_ D3DFORMAT RenderTargetFormat,
|
| 1223 |
+
/* [annotation][out] */
|
| 1224 |
+
_Out_ DXVA2_VideoProcessorCaps *pCaps) = 0;
|
| 1225 |
+
|
| 1226 |
+
virtual HRESULT STDMETHODCALLTYPE GetProcAmpRange(
|
| 1227 |
+
/* [annotation][in] */
|
| 1228 |
+
_In_ REFGUID VideoProcDeviceGuid,
|
| 1229 |
+
/* [annotation][in] */
|
| 1230 |
+
_In_ const DXVA2_VideoDesc *pVideoDesc,
|
| 1231 |
+
/* [annotation][in] */
|
| 1232 |
+
_In_ D3DFORMAT RenderTargetFormat,
|
| 1233 |
+
/* [annotation][in] */
|
| 1234 |
+
_In_ UINT ProcAmpCap,
|
| 1235 |
+
/* [annotation][out] */
|
| 1236 |
+
_Out_ DXVA2_ValueRange *pRange) = 0;
|
| 1237 |
+
|
| 1238 |
+
virtual HRESULT STDMETHODCALLTYPE GetFilterPropertyRange(
|
| 1239 |
+
/* [annotation][in] */
|
| 1240 |
+
_In_ REFGUID VideoProcDeviceGuid,
|
| 1241 |
+
/* [annotation][in] */
|
| 1242 |
+
_In_ const DXVA2_VideoDesc *pVideoDesc,
|
| 1243 |
+
/* [annotation][in] */
|
| 1244 |
+
_In_ D3DFORMAT RenderTargetFormat,
|
| 1245 |
+
/* [annotation][in] */
|
| 1246 |
+
_In_ UINT FilterSetting,
|
| 1247 |
+
/* [annotation][out] */
|
| 1248 |
+
_Out_ DXVA2_ValueRange *pRange) = 0;
|
| 1249 |
+
|
| 1250 |
+
virtual HRESULT STDMETHODCALLTYPE CreateVideoProcessor(
|
| 1251 |
+
/* [annotation][in] */
|
| 1252 |
+
_In_ REFGUID VideoProcDeviceGuid,
|
| 1253 |
+
/* [annotation][in] */
|
| 1254 |
+
_In_ const DXVA2_VideoDesc *pVideoDesc,
|
| 1255 |
+
/* [annotation][in] */
|
| 1256 |
+
_In_ D3DFORMAT RenderTargetFormat,
|
| 1257 |
+
/* [annotation][in] */
|
| 1258 |
+
_In_ UINT MaxNumSubStreams,
|
| 1259 |
+
/* [annotation][out] */
|
| 1260 |
+
_Outptr_ IDirectXVideoProcessor **ppVidProcess) = 0;
|
| 1261 |
+
|
| 1262 |
+
};
|
| 1263 |
+
|
| 1264 |
+
|
| 1265 |
+
#else /* C style interface */
|
| 1266 |
+
|
| 1267 |
+
typedef struct IDirectXVideoProcessorServiceVtbl
|
| 1268 |
+
{
|
| 1269 |
+
BEGIN_INTERFACE
|
| 1270 |
+
|
| 1271 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 1272 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 1273 |
+
IDirectXVideoProcessorService * This,
|
| 1274 |
+
/* [in] */ REFIID riid,
|
| 1275 |
+
/* [annotation][iid_is][out] */
|
| 1276 |
+
_COM_Outptr_ void **ppvObject);
|
| 1277 |
+
|
| 1278 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 1279 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 1280 |
+
IDirectXVideoProcessorService * This);
|
| 1281 |
+
|
| 1282 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 1283 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 1284 |
+
IDirectXVideoProcessorService * This);
|
| 1285 |
+
|
| 1286 |
+
DECLSPEC_XFGVIRT(IDirectXVideoAccelerationService, CreateSurface)
|
| 1287 |
+
HRESULT ( STDMETHODCALLTYPE *CreateSurface )(
|
| 1288 |
+
IDirectXVideoProcessorService * This,
|
| 1289 |
+
/* [annotation][in] */
|
| 1290 |
+
_In_ UINT Width,
|
| 1291 |
+
/* [annotation][in] */
|
| 1292 |
+
_In_ UINT Height,
|
| 1293 |
+
/* [annotation][in] */
|
| 1294 |
+
_In_ UINT BackBuffers,
|
| 1295 |
+
/* [annotation][in] */
|
| 1296 |
+
_In_ D3DFORMAT Format,
|
| 1297 |
+
/* [annotation][in] */
|
| 1298 |
+
_In_ D3DPOOL Pool,
|
| 1299 |
+
/* [annotation][in] */
|
| 1300 |
+
_In_ DWORD Usage,
|
| 1301 |
+
/* [annotation][in] */
|
| 1302 |
+
_In_ DWORD DxvaType,
|
| 1303 |
+
/* [annotation][size_is][out] */
|
| 1304 |
+
_Out_writes_(BackBuffers+1) IDirect3DSurface9 **ppSurface,
|
| 1305 |
+
/* [annotation][out][in] */
|
| 1306 |
+
_Inout_opt_ HANDLE *pSharedHandle);
|
| 1307 |
+
|
| 1308 |
+
DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, RegisterVideoProcessorSoftwareDevice)
|
| 1309 |
+
HRESULT ( STDMETHODCALLTYPE *RegisterVideoProcessorSoftwareDevice )(
|
| 1310 |
+
IDirectXVideoProcessorService * This,
|
| 1311 |
+
/* [annotation][in] */
|
| 1312 |
+
_In_ void *pCallbacks);
|
| 1313 |
+
|
| 1314 |
+
DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, GetVideoProcessorDeviceGuids)
|
| 1315 |
+
HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorDeviceGuids )(
|
| 1316 |
+
IDirectXVideoProcessorService * This,
|
| 1317 |
+
/* [annotation][in] */
|
| 1318 |
+
_In_ const DXVA2_VideoDesc *pVideoDesc,
|
| 1319 |
+
/* [annotation][out] */
|
| 1320 |
+
_Out_ UINT *pCount,
|
| 1321 |
+
/* [annotation][size_is][unique][out] */
|
| 1322 |
+
_Outptr_result_buffer_maybenull_(*pCount) GUID **pGuids);
|
| 1323 |
+
|
| 1324 |
+
DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, GetVideoProcessorRenderTargets)
|
| 1325 |
+
HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorRenderTargets )(
|
| 1326 |
+
IDirectXVideoProcessorService * This,
|
| 1327 |
+
/* [annotation][in] */
|
| 1328 |
+
_In_ REFGUID VideoProcDeviceGuid,
|
| 1329 |
+
/* [annotation][in] */
|
| 1330 |
+
_In_ const DXVA2_VideoDesc *pVideoDesc,
|
| 1331 |
+
/* [annotation][out] */
|
| 1332 |
+
_Out_ UINT *pCount,
|
| 1333 |
+
/* [annotation][size_is][unique][out] */
|
| 1334 |
+
_Outptr_result_buffer_maybenull_(*pCount) D3DFORMAT **pFormats);
|
| 1335 |
+
|
| 1336 |
+
DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, GetVideoProcessorSubStreamFormats)
|
| 1337 |
+
HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorSubStreamFormats )(
|
| 1338 |
+
IDirectXVideoProcessorService * This,
|
| 1339 |
+
/* [annotation][in] */
|
| 1340 |
+
_In_ REFGUID VideoProcDeviceGuid,
|
| 1341 |
+
/* [annotation][in] */
|
| 1342 |
+
_In_ const DXVA2_VideoDesc *pVideoDesc,
|
| 1343 |
+
/* [annotation][in] */
|
| 1344 |
+
_In_ D3DFORMAT RenderTargetFormat,
|
| 1345 |
+
/* [annotation][out] */
|
| 1346 |
+
_Out_ UINT *pCount,
|
| 1347 |
+
/* [annotation][size_is][unique][out] */
|
| 1348 |
+
_Outptr_result_buffer_maybenull_(*pCount) D3DFORMAT **pFormats);
|
| 1349 |
+
|
| 1350 |
+
DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, GetVideoProcessorCaps)
|
| 1351 |
+
HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorCaps )(
|
| 1352 |
+
IDirectXVideoProcessorService * This,
|
| 1353 |
+
/* [annotation][in] */
|
| 1354 |
+
_In_ REFGUID VideoProcDeviceGuid,
|
| 1355 |
+
/* [annotation][in] */
|
| 1356 |
+
_In_ const DXVA2_VideoDesc *pVideoDesc,
|
| 1357 |
+
/* [annotation][in] */
|
| 1358 |
+
_In_ D3DFORMAT RenderTargetFormat,
|
| 1359 |
+
/* [annotation][out] */
|
| 1360 |
+
_Out_ DXVA2_VideoProcessorCaps *pCaps);
|
| 1361 |
+
|
| 1362 |
+
DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, GetProcAmpRange)
|
| 1363 |
+
HRESULT ( STDMETHODCALLTYPE *GetProcAmpRange )(
|
| 1364 |
+
IDirectXVideoProcessorService * This,
|
| 1365 |
+
/* [annotation][in] */
|
| 1366 |
+
_In_ REFGUID VideoProcDeviceGuid,
|
| 1367 |
+
/* [annotation][in] */
|
| 1368 |
+
_In_ const DXVA2_VideoDesc *pVideoDesc,
|
| 1369 |
+
/* [annotation][in] */
|
| 1370 |
+
_In_ D3DFORMAT RenderTargetFormat,
|
| 1371 |
+
/* [annotation][in] */
|
| 1372 |
+
_In_ UINT ProcAmpCap,
|
| 1373 |
+
/* [annotation][out] */
|
| 1374 |
+
_Out_ DXVA2_ValueRange *pRange);
|
| 1375 |
+
|
| 1376 |
+
DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, GetFilterPropertyRange)
|
| 1377 |
+
HRESULT ( STDMETHODCALLTYPE *GetFilterPropertyRange )(
|
| 1378 |
+
IDirectXVideoProcessorService * This,
|
| 1379 |
+
/* [annotation][in] */
|
| 1380 |
+
_In_ REFGUID VideoProcDeviceGuid,
|
| 1381 |
+
/* [annotation][in] */
|
| 1382 |
+
_In_ const DXVA2_VideoDesc *pVideoDesc,
|
| 1383 |
+
/* [annotation][in] */
|
| 1384 |
+
_In_ D3DFORMAT RenderTargetFormat,
|
| 1385 |
+
/* [annotation][in] */
|
| 1386 |
+
_In_ UINT FilterSetting,
|
| 1387 |
+
/* [annotation][out] */
|
| 1388 |
+
_Out_ DXVA2_ValueRange *pRange);
|
| 1389 |
+
|
| 1390 |
+
DECLSPEC_XFGVIRT(IDirectXVideoProcessorService, CreateVideoProcessor)
|
| 1391 |
+
HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessor )(
|
| 1392 |
+
IDirectXVideoProcessorService * This,
|
| 1393 |
+
/* [annotation][in] */
|
| 1394 |
+
_In_ REFGUID VideoProcDeviceGuid,
|
| 1395 |
+
/* [annotation][in] */
|
| 1396 |
+
_In_ const DXVA2_VideoDesc *pVideoDesc,
|
| 1397 |
+
/* [annotation][in] */
|
| 1398 |
+
_In_ D3DFORMAT RenderTargetFormat,
|
| 1399 |
+
/* [annotation][in] */
|
| 1400 |
+
_In_ UINT MaxNumSubStreams,
|
| 1401 |
+
/* [annotation][out] */
|
| 1402 |
+
_Outptr_ IDirectXVideoProcessor **ppVidProcess);
|
| 1403 |
+
|
| 1404 |
+
END_INTERFACE
|
| 1405 |
+
} IDirectXVideoProcessorServiceVtbl;
|
| 1406 |
+
|
| 1407 |
+
interface IDirectXVideoProcessorService
|
| 1408 |
+
{
|
| 1409 |
+
CONST_VTBL struct IDirectXVideoProcessorServiceVtbl *lpVtbl;
|
| 1410 |
+
};
|
| 1411 |
+
|
| 1412 |
+
|
| 1413 |
+
|
| 1414 |
+
#ifdef COBJMACROS
|
| 1415 |
+
|
| 1416 |
+
|
| 1417 |
+
#define IDirectXVideoProcessorService_QueryInterface(This,riid,ppvObject) \
|
| 1418 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 1419 |
+
|
| 1420 |
+
#define IDirectXVideoProcessorService_AddRef(This) \
|
| 1421 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 1422 |
+
|
| 1423 |
+
#define IDirectXVideoProcessorService_Release(This) \
|
| 1424 |
+
( (This)->lpVtbl -> Release(This) )
|
| 1425 |
+
|
| 1426 |
+
|
| 1427 |
+
#define IDirectXVideoProcessorService_CreateSurface(This,Width,Height,BackBuffers,Format,Pool,Usage,DxvaType,ppSurface,pSharedHandle) \
|
| 1428 |
+
( (This)->lpVtbl -> CreateSurface(This,Width,Height,BackBuffers,Format,Pool,Usage,DxvaType,ppSurface,pSharedHandle) )
|
| 1429 |
+
|
| 1430 |
+
|
| 1431 |
+
#define IDirectXVideoProcessorService_RegisterVideoProcessorSoftwareDevice(This,pCallbacks) \
|
| 1432 |
+
( (This)->lpVtbl -> RegisterVideoProcessorSoftwareDevice(This,pCallbacks) )
|
| 1433 |
+
|
| 1434 |
+
#define IDirectXVideoProcessorService_GetVideoProcessorDeviceGuids(This,pVideoDesc,pCount,pGuids) \
|
| 1435 |
+
( (This)->lpVtbl -> GetVideoProcessorDeviceGuids(This,pVideoDesc,pCount,pGuids) )
|
| 1436 |
+
|
| 1437 |
+
#define IDirectXVideoProcessorService_GetVideoProcessorRenderTargets(This,VideoProcDeviceGuid,pVideoDesc,pCount,pFormats) \
|
| 1438 |
+
( (This)->lpVtbl -> GetVideoProcessorRenderTargets(This,VideoProcDeviceGuid,pVideoDesc,pCount,pFormats) )
|
| 1439 |
+
|
| 1440 |
+
#define IDirectXVideoProcessorService_GetVideoProcessorSubStreamFormats(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,pCount,pFormats) \
|
| 1441 |
+
( (This)->lpVtbl -> GetVideoProcessorSubStreamFormats(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,pCount,pFormats) )
|
| 1442 |
+
|
| 1443 |
+
#define IDirectXVideoProcessorService_GetVideoProcessorCaps(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,pCaps) \
|
| 1444 |
+
( (This)->lpVtbl -> GetVideoProcessorCaps(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,pCaps) )
|
| 1445 |
+
|
| 1446 |
+
#define IDirectXVideoProcessorService_GetProcAmpRange(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,ProcAmpCap,pRange) \
|
| 1447 |
+
( (This)->lpVtbl -> GetProcAmpRange(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,ProcAmpCap,pRange) )
|
| 1448 |
+
|
| 1449 |
+
#define IDirectXVideoProcessorService_GetFilterPropertyRange(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,FilterSetting,pRange) \
|
| 1450 |
+
( (This)->lpVtbl -> GetFilterPropertyRange(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,FilterSetting,pRange) )
|
| 1451 |
+
|
| 1452 |
+
#define IDirectXVideoProcessorService_CreateVideoProcessor(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,MaxNumSubStreams,ppVidProcess) \
|
| 1453 |
+
( (This)->lpVtbl -> CreateVideoProcessor(This,VideoProcDeviceGuid,pVideoDesc,RenderTargetFormat,MaxNumSubStreams,ppVidProcess) )
|
| 1454 |
+
|
| 1455 |
+
#endif /* COBJMACROS */
|
| 1456 |
+
|
| 1457 |
+
|
| 1458 |
+
#endif /* C style interface */
|
| 1459 |
+
|
| 1460 |
+
|
| 1461 |
+
|
| 1462 |
+
|
| 1463 |
+
#endif /* __IDirectXVideoProcessorService_INTERFACE_DEFINED__ */
|
| 1464 |
+
|
| 1465 |
+
|
| 1466 |
+
#ifndef __IDirectXVideoDecoder_INTERFACE_DEFINED__
|
| 1467 |
+
#define __IDirectXVideoDecoder_INTERFACE_DEFINED__
|
| 1468 |
+
|
| 1469 |
+
/* interface IDirectXVideoDecoder */
|
| 1470 |
+
/* [local][helpstring][uuid][object] */
|
| 1471 |
+
|
| 1472 |
+
|
| 1473 |
+
EXTERN_C const IID IID_IDirectXVideoDecoder;
|
| 1474 |
+
|
| 1475 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 1476 |
+
|
| 1477 |
+
MIDL_INTERFACE("f2b0810a-fd00-43c9-918c-df94e2d8ef7d")
|
| 1478 |
+
IDirectXVideoDecoder : public IUnknown
|
| 1479 |
+
{
|
| 1480 |
+
public:
|
| 1481 |
+
virtual HRESULT STDMETHODCALLTYPE GetVideoDecoderService(
|
| 1482 |
+
/* [annotation][out] */
|
| 1483 |
+
_Outptr_ IDirectXVideoDecoderService **ppService) = 0;
|
| 1484 |
+
|
| 1485 |
+
virtual HRESULT STDMETHODCALLTYPE GetCreationParameters(
|
| 1486 |
+
/* [annotation][out] */
|
| 1487 |
+
_Out_opt_ GUID *pDeviceGuid,
|
| 1488 |
+
/* [annotation][out] */
|
| 1489 |
+
_Out_opt_ DXVA2_VideoDesc *pVideoDesc,
|
| 1490 |
+
/* [annotation][out] */
|
| 1491 |
+
_Out_opt_ DXVA2_ConfigPictureDecode *pConfig,
|
| 1492 |
+
/* [annotation][size_is][unique][out] */
|
| 1493 |
+
_Out_writes_(*pNumSurfaces) IDirect3DSurface9 ***pDecoderRenderTargets,
|
| 1494 |
+
/* [annotation][out] */
|
| 1495 |
+
_Out_opt_ UINT *pNumSurfaces) = 0;
|
| 1496 |
+
|
| 1497 |
+
virtual HRESULT STDMETHODCALLTYPE GetBuffer(
|
| 1498 |
+
/* [annotation][in] */
|
| 1499 |
+
_In_ UINT BufferType,
|
| 1500 |
+
/* [annotation][out] */
|
| 1501 |
+
_Out_ void **ppBuffer,
|
| 1502 |
+
/* [annotation][out] */
|
| 1503 |
+
_Out_ UINT *pBufferSize) = 0;
|
| 1504 |
+
|
| 1505 |
+
virtual HRESULT STDMETHODCALLTYPE ReleaseBuffer(
|
| 1506 |
+
/* [annotation][in] */
|
| 1507 |
+
_In_ UINT BufferType) = 0;
|
| 1508 |
+
|
| 1509 |
+
virtual HRESULT STDMETHODCALLTYPE BeginFrame(
|
| 1510 |
+
/* [annotation][in] */
|
| 1511 |
+
_In_ IDirect3DSurface9 *pRenderTarget,
|
| 1512 |
+
/* [annotation][in] */
|
| 1513 |
+
_In_opt_ void *pvPVPData) = 0;
|
| 1514 |
+
|
| 1515 |
+
virtual HRESULT STDMETHODCALLTYPE EndFrame(
|
| 1516 |
+
/* [annotation][out] */
|
| 1517 |
+
_Inout_opt_ HANDLE *pHandleComplete) = 0;
|
| 1518 |
+
|
| 1519 |
+
virtual HRESULT STDMETHODCALLTYPE Execute(
|
| 1520 |
+
/* [annotation][in] */
|
| 1521 |
+
_In_ const DXVA2_DecodeExecuteParams *pExecuteParams) = 0;
|
| 1522 |
+
|
| 1523 |
+
};
|
| 1524 |
+
|
| 1525 |
+
|
| 1526 |
+
#else /* C style interface */
|
| 1527 |
+
|
| 1528 |
+
typedef struct IDirectXVideoDecoderVtbl
|
| 1529 |
+
{
|
| 1530 |
+
BEGIN_INTERFACE
|
| 1531 |
+
|
| 1532 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 1533 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 1534 |
+
IDirectXVideoDecoder * This,
|
| 1535 |
+
/* [in] */ REFIID riid,
|
| 1536 |
+
/* [annotation][iid_is][out] */
|
| 1537 |
+
_COM_Outptr_ void **ppvObject);
|
| 1538 |
+
|
| 1539 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 1540 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 1541 |
+
IDirectXVideoDecoder * This);
|
| 1542 |
+
|
| 1543 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 1544 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 1545 |
+
IDirectXVideoDecoder * This);
|
| 1546 |
+
|
| 1547 |
+
DECLSPEC_XFGVIRT(IDirectXVideoDecoder, GetVideoDecoderService)
|
| 1548 |
+
HRESULT ( STDMETHODCALLTYPE *GetVideoDecoderService )(
|
| 1549 |
+
IDirectXVideoDecoder * This,
|
| 1550 |
+
/* [annotation][out] */
|
| 1551 |
+
_Outptr_ IDirectXVideoDecoderService **ppService);
|
| 1552 |
+
|
| 1553 |
+
DECLSPEC_XFGVIRT(IDirectXVideoDecoder, GetCreationParameters)
|
| 1554 |
+
HRESULT ( STDMETHODCALLTYPE *GetCreationParameters )(
|
| 1555 |
+
IDirectXVideoDecoder * This,
|
| 1556 |
+
/* [annotation][out] */
|
| 1557 |
+
_Out_opt_ GUID *pDeviceGuid,
|
| 1558 |
+
/* [annotation][out] */
|
| 1559 |
+
_Out_opt_ DXVA2_VideoDesc *pVideoDesc,
|
| 1560 |
+
/* [annotation][out] */
|
| 1561 |
+
_Out_opt_ DXVA2_ConfigPictureDecode *pConfig,
|
| 1562 |
+
/* [annotation][size_is][unique][out] */
|
| 1563 |
+
_Out_writes_(*pNumSurfaces) IDirect3DSurface9 ***pDecoderRenderTargets,
|
| 1564 |
+
/* [annotation][out] */
|
| 1565 |
+
_Out_opt_ UINT *pNumSurfaces);
|
| 1566 |
+
|
| 1567 |
+
DECLSPEC_XFGVIRT(IDirectXVideoDecoder, GetBuffer)
|
| 1568 |
+
HRESULT ( STDMETHODCALLTYPE *GetBuffer )(
|
| 1569 |
+
IDirectXVideoDecoder * This,
|
| 1570 |
+
/* [annotation][in] */
|
| 1571 |
+
_In_ UINT BufferType,
|
| 1572 |
+
/* [annotation][out] */
|
| 1573 |
+
_Out_ void **ppBuffer,
|
| 1574 |
+
/* [annotation][out] */
|
| 1575 |
+
_Out_ UINT *pBufferSize);
|
| 1576 |
+
|
| 1577 |
+
DECLSPEC_XFGVIRT(IDirectXVideoDecoder, ReleaseBuffer)
|
| 1578 |
+
HRESULT ( STDMETHODCALLTYPE *ReleaseBuffer )(
|
| 1579 |
+
IDirectXVideoDecoder * This,
|
| 1580 |
+
/* [annotation][in] */
|
| 1581 |
+
_In_ UINT BufferType);
|
| 1582 |
+
|
| 1583 |
+
DECLSPEC_XFGVIRT(IDirectXVideoDecoder, BeginFrame)
|
| 1584 |
+
HRESULT ( STDMETHODCALLTYPE *BeginFrame )(
|
| 1585 |
+
IDirectXVideoDecoder * This,
|
| 1586 |
+
/* [annotation][in] */
|
| 1587 |
+
_In_ IDirect3DSurface9 *pRenderTarget,
|
| 1588 |
+
/* [annotation][in] */
|
| 1589 |
+
_In_opt_ void *pvPVPData);
|
| 1590 |
+
|
| 1591 |
+
DECLSPEC_XFGVIRT(IDirectXVideoDecoder, EndFrame)
|
| 1592 |
+
HRESULT ( STDMETHODCALLTYPE *EndFrame )(
|
| 1593 |
+
IDirectXVideoDecoder * This,
|
| 1594 |
+
/* [annotation][out] */
|
| 1595 |
+
_Inout_opt_ HANDLE *pHandleComplete);
|
| 1596 |
+
|
| 1597 |
+
DECLSPEC_XFGVIRT(IDirectXVideoDecoder, Execute)
|
| 1598 |
+
HRESULT ( STDMETHODCALLTYPE *Execute )(
|
| 1599 |
+
IDirectXVideoDecoder * This,
|
| 1600 |
+
/* [annotation][in] */
|
| 1601 |
+
_In_ const DXVA2_DecodeExecuteParams *pExecuteParams);
|
| 1602 |
+
|
| 1603 |
+
END_INTERFACE
|
| 1604 |
+
} IDirectXVideoDecoderVtbl;
|
| 1605 |
+
|
| 1606 |
+
interface IDirectXVideoDecoder
|
| 1607 |
+
{
|
| 1608 |
+
CONST_VTBL struct IDirectXVideoDecoderVtbl *lpVtbl;
|
| 1609 |
+
};
|
| 1610 |
+
|
| 1611 |
+
|
| 1612 |
+
|
| 1613 |
+
#ifdef COBJMACROS
|
| 1614 |
+
|
| 1615 |
+
|
| 1616 |
+
#define IDirectXVideoDecoder_QueryInterface(This,riid,ppvObject) \
|
| 1617 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 1618 |
+
|
| 1619 |
+
#define IDirectXVideoDecoder_AddRef(This) \
|
| 1620 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 1621 |
+
|
| 1622 |
+
#define IDirectXVideoDecoder_Release(This) \
|
| 1623 |
+
( (This)->lpVtbl -> Release(This) )
|
| 1624 |
+
|
| 1625 |
+
|
| 1626 |
+
#define IDirectXVideoDecoder_GetVideoDecoderService(This,ppService) \
|
| 1627 |
+
( (This)->lpVtbl -> GetVideoDecoderService(This,ppService) )
|
| 1628 |
+
|
| 1629 |
+
#define IDirectXVideoDecoder_GetCreationParameters(This,pDeviceGuid,pVideoDesc,pConfig,pDecoderRenderTargets,pNumSurfaces) \
|
| 1630 |
+
( (This)->lpVtbl -> GetCreationParameters(This,pDeviceGuid,pVideoDesc,pConfig,pDecoderRenderTargets,pNumSurfaces) )
|
| 1631 |
+
|
| 1632 |
+
#define IDirectXVideoDecoder_GetBuffer(This,BufferType,ppBuffer,pBufferSize) \
|
| 1633 |
+
( (This)->lpVtbl -> GetBuffer(This,BufferType,ppBuffer,pBufferSize) )
|
| 1634 |
+
|
| 1635 |
+
#define IDirectXVideoDecoder_ReleaseBuffer(This,BufferType) \
|
| 1636 |
+
( (This)->lpVtbl -> ReleaseBuffer(This,BufferType) )
|
| 1637 |
+
|
| 1638 |
+
#define IDirectXVideoDecoder_BeginFrame(This,pRenderTarget,pvPVPData) \
|
| 1639 |
+
( (This)->lpVtbl -> BeginFrame(This,pRenderTarget,pvPVPData) )
|
| 1640 |
+
|
| 1641 |
+
#define IDirectXVideoDecoder_EndFrame(This,pHandleComplete) \
|
| 1642 |
+
( (This)->lpVtbl -> EndFrame(This,pHandleComplete) )
|
| 1643 |
+
|
| 1644 |
+
#define IDirectXVideoDecoder_Execute(This,pExecuteParams) \
|
| 1645 |
+
( (This)->lpVtbl -> Execute(This,pExecuteParams) )
|
| 1646 |
+
|
| 1647 |
+
#endif /* COBJMACROS */
|
| 1648 |
+
|
| 1649 |
+
|
| 1650 |
+
#endif /* C style interface */
|
| 1651 |
+
|
| 1652 |
+
|
| 1653 |
+
|
| 1654 |
+
|
| 1655 |
+
#endif /* __IDirectXVideoDecoder_INTERFACE_DEFINED__ */
|
| 1656 |
+
|
| 1657 |
+
|
| 1658 |
+
#ifndef __IDirectXVideoProcessor_INTERFACE_DEFINED__
|
| 1659 |
+
#define __IDirectXVideoProcessor_INTERFACE_DEFINED__
|
| 1660 |
+
|
| 1661 |
+
/* interface IDirectXVideoProcessor */
|
| 1662 |
+
/* [local][helpstring][uuid][object] */
|
| 1663 |
+
|
| 1664 |
+
|
| 1665 |
+
EXTERN_C const IID IID_IDirectXVideoProcessor;
|
| 1666 |
+
|
| 1667 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 1668 |
+
|
| 1669 |
+
MIDL_INTERFACE("8c3a39f0-916e-4690-804f-4c8001355d25")
|
| 1670 |
+
IDirectXVideoProcessor : public IUnknown
|
| 1671 |
+
{
|
| 1672 |
+
public:
|
| 1673 |
+
virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorService(
|
| 1674 |
+
/* [annotation][out] */
|
| 1675 |
+
_Outptr_ IDirectXVideoProcessorService **ppService) = 0;
|
| 1676 |
+
|
| 1677 |
+
virtual HRESULT STDMETHODCALLTYPE GetCreationParameters(
|
| 1678 |
+
/* [annotation][out] */
|
| 1679 |
+
_Out_opt_ GUID *pDeviceGuid,
|
| 1680 |
+
/* [annotation][out] */
|
| 1681 |
+
_Out_opt_ DXVA2_VideoDesc *pVideoDesc,
|
| 1682 |
+
/* [annotation][out] */
|
| 1683 |
+
_Out_opt_ D3DFORMAT *pRenderTargetFormat,
|
| 1684 |
+
/* [annotation][out] */
|
| 1685 |
+
_Out_opt_ UINT *pMaxNumSubStreams) = 0;
|
| 1686 |
+
|
| 1687 |
+
virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorCaps(
|
| 1688 |
+
/* [annotation][out] */
|
| 1689 |
+
_Out_ DXVA2_VideoProcessorCaps *pCaps) = 0;
|
| 1690 |
+
|
| 1691 |
+
virtual HRESULT STDMETHODCALLTYPE GetProcAmpRange(
|
| 1692 |
+
/* [annotation][in] */
|
| 1693 |
+
_In_ UINT ProcAmpCap,
|
| 1694 |
+
/* [annotation][out] */
|
| 1695 |
+
_Out_ DXVA2_ValueRange *pRange) = 0;
|
| 1696 |
+
|
| 1697 |
+
virtual HRESULT STDMETHODCALLTYPE GetFilterPropertyRange(
|
| 1698 |
+
/* [annotation][in] */
|
| 1699 |
+
_In_ UINT FilterSetting,
|
| 1700 |
+
/* [annotation][out] */
|
| 1701 |
+
_Out_ DXVA2_ValueRange *pRange) = 0;
|
| 1702 |
+
|
| 1703 |
+
virtual HRESULT STDMETHODCALLTYPE VideoProcessBlt(
|
| 1704 |
+
/* [annotation][in] */
|
| 1705 |
+
_In_ IDirect3DSurface9 *pRenderTarget,
|
| 1706 |
+
/* [annotation][in] */
|
| 1707 |
+
_In_ const DXVA2_VideoProcessBltParams *pBltParams,
|
| 1708 |
+
/* [annotation][size_is][in] */
|
| 1709 |
+
_In_reads_(NumSamples) const DXVA2_VideoSample *pSamples,
|
| 1710 |
+
/* [annotation][in] */
|
| 1711 |
+
_In_ UINT NumSamples,
|
| 1712 |
+
/* [annotation][out] */
|
| 1713 |
+
_Inout_opt_ HANDLE *pHandleComplete) = 0;
|
| 1714 |
+
|
| 1715 |
+
};
|
| 1716 |
+
|
| 1717 |
+
|
| 1718 |
+
#else /* C style interface */
|
| 1719 |
+
|
| 1720 |
+
typedef struct IDirectXVideoProcessorVtbl
|
| 1721 |
+
{
|
| 1722 |
+
BEGIN_INTERFACE
|
| 1723 |
+
|
| 1724 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 1725 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 1726 |
+
IDirectXVideoProcessor * This,
|
| 1727 |
+
/* [in] */ REFIID riid,
|
| 1728 |
+
/* [annotation][iid_is][out] */
|
| 1729 |
+
_COM_Outptr_ void **ppvObject);
|
| 1730 |
+
|
| 1731 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 1732 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 1733 |
+
IDirectXVideoProcessor * This);
|
| 1734 |
+
|
| 1735 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 1736 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 1737 |
+
IDirectXVideoProcessor * This);
|
| 1738 |
+
|
| 1739 |
+
DECLSPEC_XFGVIRT(IDirectXVideoProcessor, GetVideoProcessorService)
|
| 1740 |
+
HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorService )(
|
| 1741 |
+
IDirectXVideoProcessor * This,
|
| 1742 |
+
/* [annotation][out] */
|
| 1743 |
+
_Outptr_ IDirectXVideoProcessorService **ppService);
|
| 1744 |
+
|
| 1745 |
+
DECLSPEC_XFGVIRT(IDirectXVideoProcessor, GetCreationParameters)
|
| 1746 |
+
HRESULT ( STDMETHODCALLTYPE *GetCreationParameters )(
|
| 1747 |
+
IDirectXVideoProcessor * This,
|
| 1748 |
+
/* [annotation][out] */
|
| 1749 |
+
_Out_opt_ GUID *pDeviceGuid,
|
| 1750 |
+
/* [annotation][out] */
|
| 1751 |
+
_Out_opt_ DXVA2_VideoDesc *pVideoDesc,
|
| 1752 |
+
/* [annotation][out] */
|
| 1753 |
+
_Out_opt_ D3DFORMAT *pRenderTargetFormat,
|
| 1754 |
+
/* [annotation][out] */
|
| 1755 |
+
_Out_opt_ UINT *pMaxNumSubStreams);
|
| 1756 |
+
|
| 1757 |
+
DECLSPEC_XFGVIRT(IDirectXVideoProcessor, GetVideoProcessorCaps)
|
| 1758 |
+
HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorCaps )(
|
| 1759 |
+
IDirectXVideoProcessor * This,
|
| 1760 |
+
/* [annotation][out] */
|
| 1761 |
+
_Out_ DXVA2_VideoProcessorCaps *pCaps);
|
| 1762 |
+
|
| 1763 |
+
DECLSPEC_XFGVIRT(IDirectXVideoProcessor, GetProcAmpRange)
|
| 1764 |
+
HRESULT ( STDMETHODCALLTYPE *GetProcAmpRange )(
|
| 1765 |
+
IDirectXVideoProcessor * This,
|
| 1766 |
+
/* [annotation][in] */
|
| 1767 |
+
_In_ UINT ProcAmpCap,
|
| 1768 |
+
/* [annotation][out] */
|
| 1769 |
+
_Out_ DXVA2_ValueRange *pRange);
|
| 1770 |
+
|
| 1771 |
+
DECLSPEC_XFGVIRT(IDirectXVideoProcessor, GetFilterPropertyRange)
|
| 1772 |
+
HRESULT ( STDMETHODCALLTYPE *GetFilterPropertyRange )(
|
| 1773 |
+
IDirectXVideoProcessor * This,
|
| 1774 |
+
/* [annotation][in] */
|
| 1775 |
+
_In_ UINT FilterSetting,
|
| 1776 |
+
/* [annotation][out] */
|
| 1777 |
+
_Out_ DXVA2_ValueRange *pRange);
|
| 1778 |
+
|
| 1779 |
+
DECLSPEC_XFGVIRT(IDirectXVideoProcessor, VideoProcessBlt)
|
| 1780 |
+
HRESULT ( STDMETHODCALLTYPE *VideoProcessBlt )(
|
| 1781 |
+
IDirectXVideoProcessor * This,
|
| 1782 |
+
/* [annotation][in] */
|
| 1783 |
+
_In_ IDirect3DSurface9 *pRenderTarget,
|
| 1784 |
+
/* [annotation][in] */
|
| 1785 |
+
_In_ const DXVA2_VideoProcessBltParams *pBltParams,
|
| 1786 |
+
/* [annotation][size_is][in] */
|
| 1787 |
+
_In_reads_(NumSamples) const DXVA2_VideoSample *pSamples,
|
| 1788 |
+
/* [annotation][in] */
|
| 1789 |
+
_In_ UINT NumSamples,
|
| 1790 |
+
/* [annotation][out] */
|
| 1791 |
+
_Inout_opt_ HANDLE *pHandleComplete);
|
| 1792 |
+
|
| 1793 |
+
END_INTERFACE
|
| 1794 |
+
} IDirectXVideoProcessorVtbl;
|
| 1795 |
+
|
| 1796 |
+
interface IDirectXVideoProcessor
|
| 1797 |
+
{
|
| 1798 |
+
CONST_VTBL struct IDirectXVideoProcessorVtbl *lpVtbl;
|
| 1799 |
+
};
|
| 1800 |
+
|
| 1801 |
+
|
| 1802 |
+
|
| 1803 |
+
#ifdef COBJMACROS
|
| 1804 |
+
|
| 1805 |
+
|
| 1806 |
+
#define IDirectXVideoProcessor_QueryInterface(This,riid,ppvObject) \
|
| 1807 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 1808 |
+
|
| 1809 |
+
#define IDirectXVideoProcessor_AddRef(This) \
|
| 1810 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 1811 |
+
|
| 1812 |
+
#define IDirectXVideoProcessor_Release(This) \
|
| 1813 |
+
( (This)->lpVtbl -> Release(This) )
|
| 1814 |
+
|
| 1815 |
+
|
| 1816 |
+
#define IDirectXVideoProcessor_GetVideoProcessorService(This,ppService) \
|
| 1817 |
+
( (This)->lpVtbl -> GetVideoProcessorService(This,ppService) )
|
| 1818 |
+
|
| 1819 |
+
#define IDirectXVideoProcessor_GetCreationParameters(This,pDeviceGuid,pVideoDesc,pRenderTargetFormat,pMaxNumSubStreams) \
|
| 1820 |
+
( (This)->lpVtbl -> GetCreationParameters(This,pDeviceGuid,pVideoDesc,pRenderTargetFormat,pMaxNumSubStreams) )
|
| 1821 |
+
|
| 1822 |
+
#define IDirectXVideoProcessor_GetVideoProcessorCaps(This,pCaps) \
|
| 1823 |
+
( (This)->lpVtbl -> GetVideoProcessorCaps(This,pCaps) )
|
| 1824 |
+
|
| 1825 |
+
#define IDirectXVideoProcessor_GetProcAmpRange(This,ProcAmpCap,pRange) \
|
| 1826 |
+
( (This)->lpVtbl -> GetProcAmpRange(This,ProcAmpCap,pRange) )
|
| 1827 |
+
|
| 1828 |
+
#define IDirectXVideoProcessor_GetFilterPropertyRange(This,FilterSetting,pRange) \
|
| 1829 |
+
( (This)->lpVtbl -> GetFilterPropertyRange(This,FilterSetting,pRange) )
|
| 1830 |
+
|
| 1831 |
+
#define IDirectXVideoProcessor_VideoProcessBlt(This,pRenderTarget,pBltParams,pSamples,NumSamples,pHandleComplete) \
|
| 1832 |
+
( (This)->lpVtbl -> VideoProcessBlt(This,pRenderTarget,pBltParams,pSamples,NumSamples,pHandleComplete) )
|
| 1833 |
+
|
| 1834 |
+
#endif /* COBJMACROS */
|
| 1835 |
+
|
| 1836 |
+
|
| 1837 |
+
#endif /* C style interface */
|
| 1838 |
+
|
| 1839 |
+
|
| 1840 |
+
|
| 1841 |
+
|
| 1842 |
+
#endif /* __IDirectXVideoProcessor_INTERFACE_DEFINED__ */
|
| 1843 |
+
|
| 1844 |
+
|
| 1845 |
+
/* interface __MIDL_itf_dxva2api_0000_0006 */
|
| 1846 |
+
/* [local] */
|
| 1847 |
+
|
| 1848 |
+
typedef /* [public][public][public] */
|
| 1849 |
+
enum __MIDL___MIDL_itf_dxva2api_0000_0006_0001
|
| 1850 |
+
{
|
| 1851 |
+
DXVA2_SurfaceType_DecoderRenderTarget = 0,
|
| 1852 |
+
DXVA2_SurfaceType_ProcessorRenderTarget = 1,
|
| 1853 |
+
DXVA2_SurfaceType_D3DRenderTargetTexture = 2
|
| 1854 |
+
} DXVA2_SurfaceType;
|
| 1855 |
+
|
| 1856 |
+
|
| 1857 |
+
|
| 1858 |
+
extern RPC_IF_HANDLE __MIDL_itf_dxva2api_0000_0006_v0_0_c_ifspec;
|
| 1859 |
+
extern RPC_IF_HANDLE __MIDL_itf_dxva2api_0000_0006_v0_0_s_ifspec;
|
| 1860 |
+
|
| 1861 |
+
#ifndef __IDirectXVideoMemoryConfiguration_INTERFACE_DEFINED__
|
| 1862 |
+
#define __IDirectXVideoMemoryConfiguration_INTERFACE_DEFINED__
|
| 1863 |
+
|
| 1864 |
+
/* interface IDirectXVideoMemoryConfiguration */
|
| 1865 |
+
/* [local][helpstring][uuid][object] */
|
| 1866 |
+
|
| 1867 |
+
|
| 1868 |
+
EXTERN_C const IID IID_IDirectXVideoMemoryConfiguration;
|
| 1869 |
+
|
| 1870 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 1871 |
+
|
| 1872 |
+
MIDL_INTERFACE("b7f916dd-db3b-49c1-84d7-e45ef99ec726")
|
| 1873 |
+
IDirectXVideoMemoryConfiguration : public IUnknown
|
| 1874 |
+
{
|
| 1875 |
+
public:
|
| 1876 |
+
virtual HRESULT STDMETHODCALLTYPE GetAvailableSurfaceTypeByIndex(
|
| 1877 |
+
/* [annotation][in] */
|
| 1878 |
+
_In_ DWORD dwTypeIndex,
|
| 1879 |
+
/* [annotation][out] */
|
| 1880 |
+
_Out_ DXVA2_SurfaceType *pdwType) = 0;
|
| 1881 |
+
|
| 1882 |
+
virtual HRESULT STDMETHODCALLTYPE SetSurfaceType(
|
| 1883 |
+
/* [annotation][in] */
|
| 1884 |
+
_In_ DXVA2_SurfaceType dwType) = 0;
|
| 1885 |
+
|
| 1886 |
+
};
|
| 1887 |
+
|
| 1888 |
+
|
| 1889 |
+
#else /* C style interface */
|
| 1890 |
+
|
| 1891 |
+
typedef struct IDirectXVideoMemoryConfigurationVtbl
|
| 1892 |
+
{
|
| 1893 |
+
BEGIN_INTERFACE
|
| 1894 |
+
|
| 1895 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 1896 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 1897 |
+
IDirectXVideoMemoryConfiguration * This,
|
| 1898 |
+
/* [in] */ REFIID riid,
|
| 1899 |
+
/* [annotation][iid_is][out] */
|
| 1900 |
+
_COM_Outptr_ void **ppvObject);
|
| 1901 |
+
|
| 1902 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 1903 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 1904 |
+
IDirectXVideoMemoryConfiguration * This);
|
| 1905 |
+
|
| 1906 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 1907 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 1908 |
+
IDirectXVideoMemoryConfiguration * This);
|
| 1909 |
+
|
| 1910 |
+
DECLSPEC_XFGVIRT(IDirectXVideoMemoryConfiguration, GetAvailableSurfaceTypeByIndex)
|
| 1911 |
+
HRESULT ( STDMETHODCALLTYPE *GetAvailableSurfaceTypeByIndex )(
|
| 1912 |
+
IDirectXVideoMemoryConfiguration * This,
|
| 1913 |
+
/* [annotation][in] */
|
| 1914 |
+
_In_ DWORD dwTypeIndex,
|
| 1915 |
+
/* [annotation][out] */
|
| 1916 |
+
_Out_ DXVA2_SurfaceType *pdwType);
|
| 1917 |
+
|
| 1918 |
+
DECLSPEC_XFGVIRT(IDirectXVideoMemoryConfiguration, SetSurfaceType)
|
| 1919 |
+
HRESULT ( STDMETHODCALLTYPE *SetSurfaceType )(
|
| 1920 |
+
IDirectXVideoMemoryConfiguration * This,
|
| 1921 |
+
/* [annotation][in] */
|
| 1922 |
+
_In_ DXVA2_SurfaceType dwType);
|
| 1923 |
+
|
| 1924 |
+
END_INTERFACE
|
| 1925 |
+
} IDirectXVideoMemoryConfigurationVtbl;
|
| 1926 |
+
|
| 1927 |
+
interface IDirectXVideoMemoryConfiguration
|
| 1928 |
+
{
|
| 1929 |
+
CONST_VTBL struct IDirectXVideoMemoryConfigurationVtbl *lpVtbl;
|
| 1930 |
+
};
|
| 1931 |
+
|
| 1932 |
+
|
| 1933 |
+
|
| 1934 |
+
#ifdef COBJMACROS
|
| 1935 |
+
|
| 1936 |
+
|
| 1937 |
+
#define IDirectXVideoMemoryConfiguration_QueryInterface(This,riid,ppvObject) \
|
| 1938 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 1939 |
+
|
| 1940 |
+
#define IDirectXVideoMemoryConfiguration_AddRef(This) \
|
| 1941 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 1942 |
+
|
| 1943 |
+
#define IDirectXVideoMemoryConfiguration_Release(This) \
|
| 1944 |
+
( (This)->lpVtbl -> Release(This) )
|
| 1945 |
+
|
| 1946 |
+
|
| 1947 |
+
#define IDirectXVideoMemoryConfiguration_GetAvailableSurfaceTypeByIndex(This,dwTypeIndex,pdwType) \
|
| 1948 |
+
( (This)->lpVtbl -> GetAvailableSurfaceTypeByIndex(This,dwTypeIndex,pdwType) )
|
| 1949 |
+
|
| 1950 |
+
#define IDirectXVideoMemoryConfiguration_SetSurfaceType(This,dwType) \
|
| 1951 |
+
( (This)->lpVtbl -> SetSurfaceType(This,dwType) )
|
| 1952 |
+
|
| 1953 |
+
#endif /* COBJMACROS */
|
| 1954 |
+
|
| 1955 |
+
|
| 1956 |
+
#endif /* C style interface */
|
| 1957 |
+
|
| 1958 |
+
|
| 1959 |
+
|
| 1960 |
+
|
| 1961 |
+
#endif /* __IDirectXVideoMemoryConfiguration_INTERFACE_DEFINED__ */
|
| 1962 |
+
|
| 1963 |
+
|
| 1964 |
+
/* interface __MIDL_itf_dxva2api_0000_0007 */
|
| 1965 |
+
/* [local] */
|
| 1966 |
+
|
| 1967 |
+
STDAPI DXVA2CreateDirect3DDeviceManager9(
|
| 1968 |
+
_Out_ UINT* pResetToken,
|
| 1969 |
+
_Outptr_ IDirect3DDeviceManager9** ppDeviceManager
|
| 1970 |
+
);
|
| 1971 |
+
STDAPI DXVA2CreateVideoService(
|
| 1972 |
+
_In_ IDirect3DDevice9* pDD,
|
| 1973 |
+
_In_ REFIID riid,
|
| 1974 |
+
_Outptr_ void** ppService
|
| 1975 |
+
);
|
| 1976 |
+
#endif // _D3D9_H_
|
| 1977 |
+
__inline DXVA2_Fixed32 DXVA2FloatToFixed(_In_ const float _float_)
|
| 1978 |
+
{
|
| 1979 |
+
DXVA2_Fixed32 _fixed_;
|
| 1980 |
+
_fixed_.Fraction = LOWORD(_float_ * 0x10000);
|
| 1981 |
+
_fixed_.Value = HIWORD(_float_ * 0x10000);
|
| 1982 |
+
return _fixed_;
|
| 1983 |
+
}
|
| 1984 |
+
__inline float DXVA2FixedToFloat(_In_ const DXVA2_Fixed32 _fixed_)
|
| 1985 |
+
{
|
| 1986 |
+
return (FLOAT)_fixed_.Value + (FLOAT)_fixed_.Fraction / 0x10000;
|
| 1987 |
+
}
|
| 1988 |
+
__inline const DXVA2_Fixed32 DXVA2_Fixed32TransparentAlpha()
|
| 1989 |
+
{
|
| 1990 |
+
DXVA2_Fixed32 _fixed_ = {0, 0};
|
| 1991 |
+
return _fixed_;
|
| 1992 |
+
}
|
| 1993 |
+
__inline const DXVA2_Fixed32 DXVA2_Fixed32OpaqueAlpha()
|
| 1994 |
+
{
|
| 1995 |
+
DXVA2_Fixed32 _fixed_ = {0, 1};
|
| 1996 |
+
return _fixed_;
|
| 1997 |
+
}
|
| 1998 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 1999 |
+
#pragma endregion
|
| 2000 |
+
#endif
|
| 2001 |
+
|
| 2002 |
+
|
| 2003 |
+
extern RPC_IF_HANDLE __MIDL_itf_dxva2api_0000_0007_v0_0_c_ifspec;
|
| 2004 |
+
extern RPC_IF_HANDLE __MIDL_itf_dxva2api_0000_0007_v0_0_s_ifspec;
|
| 2005 |
+
|
| 2006 |
+
/* Additional Prototypes for ALL interfaces */
|
| 2007 |
+
|
| 2008 |
+
/* end of Additional Prototypes */
|
| 2009 |
+
|
| 2010 |
+
#ifdef __cplusplus
|
| 2011 |
+
}
|
| 2012 |
+
#endif
|
| 2013 |
+
|
| 2014 |
+
#endif
|
| 2015 |
+
|
| 2016 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva2api.idl
ADDED
|
@@ -0,0 +1,1039 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 2 |
+
//
|
| 3 |
+
// Public Interfaces for DXVA2
|
| 4 |
+
//
|
| 5 |
+
// Copyright (c) 1999 - 2005, Microsoft Corporation. All rights reserved.
|
| 6 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 7 |
+
|
| 8 |
+
import "unknwn.idl";
|
| 9 |
+
|
| 10 |
+
cpp_quote("#include <winapifamily.h>")
|
| 11 |
+
|
| 12 |
+
cpp_quote("//")
|
| 13 |
+
cpp_quote("// The following declarations within the 'if 0' block are dummy typedefs used to make")
|
| 14 |
+
cpp_quote("// the evr.idl file build. The actual definitions are contained in d3d9.h")
|
| 15 |
+
cpp_quote("//")
|
| 16 |
+
cpp_quote("#if 0")
|
| 17 |
+
|
| 18 |
+
typedef DWORD IDirect3DDevice9;
|
| 19 |
+
typedef DWORD IDirect3DSurface9;
|
| 20 |
+
|
| 21 |
+
typedef DWORD D3DFORMAT;
|
| 22 |
+
typedef DWORD D3DPOOL;
|
| 23 |
+
|
| 24 |
+
cpp_quote("#endif")
|
| 25 |
+
|
| 26 |
+
cpp_quote("#ifndef DXVA2_API_DEFINED")
|
| 27 |
+
cpp_quote("#define DXVA2_API_DEFINED")
|
| 28 |
+
|
| 29 |
+
#pragma region Desktop Family
|
| 30 |
+
cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
|
| 31 |
+
|
| 32 |
+
//=============================================================================
|
| 33 |
+
// Description:
|
| 34 |
+
//
|
| 35 |
+
// Decode guids potentially supported by the underlying device hardware.
|
| 36 |
+
//
|
| 37 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG2_MoComp, 0xe6a9f44b, 0x61b0, 0x4563,0x9e,0xa4,0x63,0xd2,0xa3,0xc6,0xfe,0x66);")
|
| 38 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG2_IDCT, 0xbf22ad00, 0x03ea, 0x4690,0x80,0x77,0x47,0x33,0x46,0x20,0x9b,0x7e);")
|
| 39 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG2_VLD, 0xee27417f, 0x5e28, 0x4e65,0xbe,0xea,0x1d,0x26,0xb5,0x08,0xad,0xc9);")
|
| 40 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG1_VLD, 0x6f3ec719, 0x3735, 0x42cc,0x80,0x63,0x65,0xcc,0x3c,0xb3,0x66,0x16);")
|
| 41 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG2and1_VLD,0x86695f12, 0x340e, 0x4f04,0x9f,0xd3,0x92,0x53,0xdd,0x32,0x74,0x60);")
|
| 42 |
+
|
| 43 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeH264_A, 0x1b81be64, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
| 44 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeH264_B, 0x1b81be65, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
| 45 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeH264_C, 0x1b81be66, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
| 46 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeH264_D, 0x1b81be67, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
| 47 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeH264_E, 0x1b81be68, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
| 48 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeH264_F, 0x1b81be69, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
| 49 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeH264_VLD_WithFMOASO_NoFGT, 0xd5f04ff9, 0x3418,0x45d8,0x95,0x61,0x32,0xa7,0x6a,0xae,0x2d,0xdd);")
|
| 50 |
+
|
| 51 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeH264_VLD_Stereo_Progressive_NoFGT, 0xd79be8da, 0x0cf1,0x4c81,0xb8,0x2a,0x69,0xa4,0xe2,0x36,0xf4,0x3d);")
|
| 52 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeH264_VLD_Stereo_NoFGT, 0xf9aaccbb, 0xc2b6,0x4cfc,0x87,0x79,0x57,0x07,0xb1,0x76,0x05,0x52);")
|
| 53 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeH264_VLD_Multiview_NoFGT, 0x705b9d82, 0x76cf,0x49d6,0xb7,0xe6,0xac,0x88,0x72,0xdb,0x01,0x3c);")
|
| 54 |
+
|
| 55 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeWMV8_A, 0x1b81be80, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
| 56 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeWMV8_B, 0x1b81be81, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
| 57 |
+
|
| 58 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeWMV9_A, 0x1b81be90, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
| 59 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeWMV9_B, 0x1b81be91, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
| 60 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeWMV9_C, 0x1b81be94, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
| 61 |
+
|
| 62 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeVC1_A, 0x1b81beA0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
| 63 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeVC1_B, 0x1b81beA1, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
| 64 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeVC1_C, 0x1b81beA2, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
| 65 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeVC1_D, 0x1b81beA3, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
| 66 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeVC1_D2010,0x1b81beA4, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
| 67 |
+
|
| 68 |
+
cpp_quote("DEFINE_GUID(DXVA2_NoEncrypt, 0x1b81beD0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);")
|
| 69 |
+
|
| 70 |
+
cpp_quote("DEFINE_GUID(DXVA2_VideoProcProgressiveDevice, 0x5a54a0c9,0xc7ec,0x4bd9,0x8e,0xde,0xf3,0xc7,0x5d,0xc4,0x39,0x3b);")
|
| 71 |
+
cpp_quote("DEFINE_GUID(DXVA2_VideoProcBobDevice, 0x335aa36e,0x7884,0x43a4,0x9c,0x91,0x7f,0x87,0xfa,0xf3,0xe3,0x7e);")
|
| 72 |
+
cpp_quote("DEFINE_GUID(DXVA2_VideoProcSoftwareDevice, 0x4553d47f,0xee7e,0x4e3f,0x94,0x75,0xdb,0xf1,0x37,0x6c,0x48,0x10);")
|
| 73 |
+
|
| 74 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_Simple, 0xefd64d74, 0xc9e8,0x41d7,0xa5,0xe9,0xe9,0xb0,0xe3,0x9f,0xa3,0x19);")
|
| 75 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_AdvSimple_NoGMC, 0xed418a9f, 0x010d,0x4eda,0x9a,0xe3,0x9a,0x65,0x35,0x8d,0x8d,0x2e);")
|
| 76 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeMPEG4pt2_VLD_AdvSimple_GMC, 0xab998b5b, 0x4258,0x44a9,0x9f,0xeb,0x94,0xe5,0x97,0xa6,0xba,0xae);")
|
| 77 |
+
|
| 78 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeHEVC_VLD_Main, 0x5b11d51b, 0x2f4c,0x4452,0xbc,0xc3,0x09,0xf2,0xa1,0x16,0x0c,0xc0);")
|
| 79 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeHEVC_VLD_Main10, 0x107af0e0, 0xef1a,0x4d19,0xab,0xa8,0x67,0xa1,0x63,0x07,0x3d,0x13);")
|
| 80 |
+
|
| 81 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeVP9_VLD_Profile0, 0x463707f8, 0xa1d0, 0x4585, 0x87, 0x6d, 0x83, 0xaa, 0x6d, 0x60, 0xb8, 0x9e);")
|
| 82 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeVP9_VLD_10bit_Profile2, 0xa4c749ef, 0x6ecf, 0x48aa, 0x84, 0x48, 0x50, 0xa7, 0xa1, 0x16, 0x5f, 0xf7);")
|
| 83 |
+
cpp_quote("DEFINE_GUID(DXVA2_ModeVP8_VLD, 0x90b899ea, 0x3a62, 0x4705, 0x88, 0xb3, 0x8d, 0xf0, 0x4b, 0x27, 0x44, 0xe7);")
|
| 84 |
+
|
| 85 |
+
cpp_quote("#define DXVA2_ModeMPEG2_MOCOMP DXVA2_ModeMPEG2_MoComp")
|
| 86 |
+
|
| 87 |
+
cpp_quote("#define DXVA2_ModeWMV8_PostProc DXVA2_ModeWMV8_A")
|
| 88 |
+
cpp_quote("#define DXVA2_ModeWMV8_MoComp DXVA2_ModeWMV8_B")
|
| 89 |
+
|
| 90 |
+
cpp_quote("#define DXVA2_ModeWMV9_PostProc DXVA2_ModeWMV9_A")
|
| 91 |
+
cpp_quote("#define DXVA2_ModeWMV9_MoComp DXVA2_ModeWMV9_B")
|
| 92 |
+
cpp_quote("#define DXVA2_ModeWMV9_IDCT DXVA2_ModeWMV9_C")
|
| 93 |
+
|
| 94 |
+
cpp_quote("#define DXVA2_ModeVC1_PostProc DXVA2_ModeVC1_A")
|
| 95 |
+
cpp_quote("#define DXVA2_ModeVC1_MoComp DXVA2_ModeVC1_B")
|
| 96 |
+
cpp_quote("#define DXVA2_ModeVC1_IDCT DXVA2_ModeVC1_C")
|
| 97 |
+
cpp_quote("#define DXVA2_ModeVC1_VLD DXVA2_ModeVC1_D")
|
| 98 |
+
|
| 99 |
+
cpp_quote("#define DXVA2_ModeH264_MoComp_NoFGT DXVA2_ModeH264_A")
|
| 100 |
+
cpp_quote("#define DXVA2_ModeH264_MoComp_FGT DXVA2_ModeH264_B")
|
| 101 |
+
cpp_quote("#define DXVA2_ModeH264_IDCT_NoFGT DXVA2_ModeH264_C")
|
| 102 |
+
cpp_quote("#define DXVA2_ModeH264_IDCT_FGT DXVA2_ModeH264_D")
|
| 103 |
+
cpp_quote("#define DXVA2_ModeH264_VLD_NoFGT DXVA2_ModeH264_E")
|
| 104 |
+
cpp_quote("#define DXVA2_ModeH264_VLD_FGT DXVA2_ModeH264_F")
|
| 105 |
+
|
| 106 |
+
//=============================================================================
|
| 107 |
+
// Description:
|
| 108 |
+
//
|
| 109 |
+
// DXVA2-specific error codes.
|
| 110 |
+
//
|
| 111 |
+
cpp_quote("#define DXVA2_E_NOT_INITIALIZED ((HRESULT)0x80041000L)")
|
| 112 |
+
cpp_quote("#define DXVA2_E_NEW_VIDEO_DEVICE ((HRESULT)0x80041001L)")
|
| 113 |
+
cpp_quote("#define DXVA2_E_VIDEO_DEVICE_LOCKED ((HRESULT)0x80041002L)")
|
| 114 |
+
cpp_quote("#define DXVA2_E_NOT_AVAILABLE ((HRESULT)0x80041003L)")
|
| 115 |
+
|
| 116 |
+
//=============================================================================
|
| 117 |
+
// Description:
|
| 118 |
+
//
|
| 119 |
+
// COM objects.
|
| 120 |
+
//
|
| 121 |
+
cpp_quote("#if defined(_WIN32) && !defined(_NO_COM)")
|
| 122 |
+
cpp_quote("DEFINE_GUID(IID_IDirect3DDeviceManager9, 0xa0cade0f,0x06d5,0x4cf4,0xa1,0xc7,0xf3,0xcd,0xd7,0x25,0xaa,0x75);")
|
| 123 |
+
|
| 124 |
+
cpp_quote("DEFINE_GUID(IID_IDirectXVideoAccelerationService, 0xfc51a550,0xd5e7,0x11d9,0xaf,0x55,0x00,0x05,0x4e,0x43,0xff,0x02);")
|
| 125 |
+
cpp_quote("DEFINE_GUID(IID_IDirectXVideoDecoderService, 0xfc51a551,0xd5e7,0x11d9,0xaf,0x55,0x00,0x05,0x4e,0x43,0xff,0x02);")
|
| 126 |
+
cpp_quote("DEFINE_GUID(IID_IDirectXVideoProcessorService, 0xfc51a552,0xd5e7,0x11d9,0xaf,0x55,0x00,0x05,0x4e,0x43,0xff,0x02);")
|
| 127 |
+
|
| 128 |
+
cpp_quote("DEFINE_GUID(IID_IDirectXVideoDecoder, 0xf2b0810a,0xfd00,0x43c9,0x91,0x8c,0xdf,0x94,0xe2,0xd8,0xef,0x7d);")
|
| 129 |
+
cpp_quote("DEFINE_GUID(IID_IDirectXVideoProcessor, 0x8c3a39f0,0x916e,0x4690,0x80,0x4f,0x4c,0x80,0x01,0x35,0x5d,0x25);")
|
| 130 |
+
cpp_quote("DEFINE_GUID(IID_IDirectXVideoMemoryConfiguration, 0xb7f916dd,0xdb3b,0x49c1,0x84,0xd7,0xe4,0x5e,0xf9,0x9e,0xc7,0x26);")
|
| 131 |
+
cpp_quote("#endif")
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
//=============================================================================
|
| 135 |
+
// Description:
|
| 136 |
+
//
|
| 137 |
+
// Structures and enums used by the DXVA2 Video Processor API.
|
| 138 |
+
//
|
| 139 |
+
|
| 140 |
+
cpp_quote("#ifndef MAX_DEINTERLACE_SURFACES")
|
| 141 |
+
cpp_quote("#define MAX_DEINTERLACE_SURFACES 32")
|
| 142 |
+
cpp_quote("#endif")
|
| 143 |
+
|
| 144 |
+
cpp_quote("#ifndef MAX_SUBSTREAMS")
|
| 145 |
+
cpp_quote("#define MAX_SUBSTREAMS 15")
|
| 146 |
+
cpp_quote("#endif")
|
| 147 |
+
|
| 148 |
+
cpp_quote("#pragma warning( push )")
|
| 149 |
+
cpp_quote("#pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union")
|
| 150 |
+
typedef struct _DXVA2_ExtendedFormat
|
| 151 |
+
{
|
| 152 |
+
union {
|
| 153 |
+
struct {
|
| 154 |
+
UINT SampleFormat : 8; // See DXVA2_SampleFormat
|
| 155 |
+
UINT VideoChromaSubsampling : 4; // See DXVA2_VideoChromaSubSampling
|
| 156 |
+
UINT NominalRange : 3; // See DXVA2_NominalRange
|
| 157 |
+
UINT VideoTransferMatrix : 3; // See DXVA2_VideoTransferMatrix
|
| 158 |
+
UINT VideoLighting : 4; // See DXVA2_VideoLighting
|
| 159 |
+
UINT VideoPrimaries : 5; // See DXVA2_VideoPrimaries
|
| 160 |
+
UINT VideoTransferFunction : 5; // See DXVA2_VideoTransferFunction
|
| 161 |
+
};
|
| 162 |
+
UINT value;
|
| 163 |
+
};
|
| 164 |
+
} DXVA2_ExtendedFormat;
|
| 165 |
+
cpp_quote("#pragma warning( pop )")
|
| 166 |
+
|
| 167 |
+
typedef enum _DXVA2_SampleFormat
|
| 168 |
+
{
|
| 169 |
+
DXVA2_SampleFormatMask = 0x00FF, // 8 bits used for DXVA Sample format
|
| 170 |
+
DXVA2_SampleUnknown = 0,
|
| 171 |
+
DXVA2_SampleProgressiveFrame = 2,
|
| 172 |
+
DXVA2_SampleFieldInterleavedEvenFirst = 3,
|
| 173 |
+
DXVA2_SampleFieldInterleavedOddFirst = 4,
|
| 174 |
+
DXVA2_SampleFieldSingleEven = 5,
|
| 175 |
+
DXVA2_SampleFieldSingleOdd = 6,
|
| 176 |
+
DXVA2_SampleSubStream = 7
|
| 177 |
+
} DXVA2_SampleFormat;
|
| 178 |
+
|
| 179 |
+
typedef enum _DXVA2_VideoChromaSubSampling
|
| 180 |
+
{
|
| 181 |
+
DXVA2_VideoChromaSubsamplingMask = 0x0F,
|
| 182 |
+
DXVA2_VideoChromaSubsampling_Unknown = 0,
|
| 183 |
+
|
| 184 |
+
// base values
|
| 185 |
+
DXVA2_VideoChromaSubsampling_ProgressiveChroma = 0x8,
|
| 186 |
+
DXVA2_VideoChromaSubsampling_Horizontally_Cosited = 0x4,
|
| 187 |
+
DXVA2_VideoChromaSubsampling_Vertically_Cosited = 0x2,
|
| 188 |
+
DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes = 0x1,
|
| 189 |
+
|
| 190 |
+
// 4:2:0 variations
|
| 191 |
+
DXVA2_VideoChromaSubsampling_MPEG2 = DXVA2_VideoChromaSubsampling_Horizontally_Cosited |
|
| 192 |
+
DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes,
|
| 193 |
+
|
| 194 |
+
DXVA2_VideoChromaSubsampling_MPEG1 = DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes,
|
| 195 |
+
|
| 196 |
+
DXVA2_VideoChromaSubsampling_DV_PAL = DXVA2_VideoChromaSubsampling_Horizontally_Cosited |
|
| 197 |
+
DXVA2_VideoChromaSubsampling_Vertically_Cosited,
|
| 198 |
+
// 4:4:4, 4:2:2, 4:1:1
|
| 199 |
+
DXVA2_VideoChromaSubsampling_Cosited = DXVA2_VideoChromaSubsampling_Horizontally_Cosited |
|
| 200 |
+
DXVA2_VideoChromaSubsampling_Vertically_Cosited |
|
| 201 |
+
DXVA2_VideoChromaSubsampling_Vertically_AlignedChromaPlanes,
|
| 202 |
+
} DXVA2_VideoChromaSubSampling;
|
| 203 |
+
|
| 204 |
+
typedef enum _DXVA2_NominalRange
|
| 205 |
+
{
|
| 206 |
+
DXVA2_NominalRangeMask = 0x07,
|
| 207 |
+
DXVA2_NominalRange_Unknown = 0,
|
| 208 |
+
// older forms
|
| 209 |
+
DXVA2_NominalRange_Normal = 1,
|
| 210 |
+
DXVA2_NominalRange_Wide = 2,
|
| 211 |
+
/// explicit range forms
|
| 212 |
+
DXVA2_NominalRange_0_255 = 1,
|
| 213 |
+
DXVA2_NominalRange_16_235 = 2,
|
| 214 |
+
DXVA2_NominalRange_48_208 = 3
|
| 215 |
+
} DXVA2_NominalRange;
|
| 216 |
+
|
| 217 |
+
typedef enum _DXVA2_VideoTransferMatrix
|
| 218 |
+
{
|
| 219 |
+
DXVA2_VideoTransferMatrixMask = 0x07,
|
| 220 |
+
DXVA2_VideoTransferMatrix_Unknown = 0,
|
| 221 |
+
DXVA2_VideoTransferMatrix_BT709 = 1,
|
| 222 |
+
DXVA2_VideoTransferMatrix_BT601 = 2,
|
| 223 |
+
DXVA2_VideoTransferMatrix_SMPTE240M = 3
|
| 224 |
+
} DXVA2_VideoTransferMatrix;
|
| 225 |
+
|
| 226 |
+
typedef enum _DXVA2_VideoLighting
|
| 227 |
+
{
|
| 228 |
+
DXVA2_VideoLightingMask = 0x0F,
|
| 229 |
+
DXVA2_VideoLighting_Unknown = 0,
|
| 230 |
+
DXVA2_VideoLighting_bright = 1,
|
| 231 |
+
DXVA2_VideoLighting_office = 2,
|
| 232 |
+
DXVA2_VideoLighting_dim = 3,
|
| 233 |
+
DXVA2_VideoLighting_dark = 4
|
| 234 |
+
} DXVA2_VideoLighting;
|
| 235 |
+
|
| 236 |
+
typedef enum _DXVA2_VideoPrimaries
|
| 237 |
+
{
|
| 238 |
+
DXVA2_VideoPrimariesMask = 0x001f,
|
| 239 |
+
DXVA2_VideoPrimaries_Unknown = 0,
|
| 240 |
+
DXVA2_VideoPrimaries_reserved = 1,
|
| 241 |
+
DXVA2_VideoPrimaries_BT709 = 2,
|
| 242 |
+
DXVA2_VideoPrimaries_BT470_2_SysM = 3,
|
| 243 |
+
DXVA2_VideoPrimaries_BT470_2_SysBG = 4,
|
| 244 |
+
DXVA2_VideoPrimaries_SMPTE170M = 5,
|
| 245 |
+
DXVA2_VideoPrimaries_SMPTE240M = 6,
|
| 246 |
+
DXVA2_VideoPrimaries_EBU3213 = 7,
|
| 247 |
+
DXVA2_VideoPrimaries_SMPTE_C = 8
|
| 248 |
+
} DXVA2_VideoPrimaries;
|
| 249 |
+
|
| 250 |
+
typedef enum _DXVA2_VideoTransferFunction
|
| 251 |
+
{
|
| 252 |
+
DXVA2_VideoTransFuncMask = 0x001f,
|
| 253 |
+
DXVA2_VideoTransFunc_Unknown = 0,
|
| 254 |
+
DXVA2_VideoTransFunc_10 = 1,
|
| 255 |
+
DXVA2_VideoTransFunc_18 = 2,
|
| 256 |
+
DXVA2_VideoTransFunc_20 = 3,
|
| 257 |
+
DXVA2_VideoTransFunc_22 = 4,
|
| 258 |
+
DXVA2_VideoTransFunc_709 = 5,
|
| 259 |
+
DXVA2_VideoTransFunc_240M = 6,
|
| 260 |
+
DXVA2_VideoTransFunc_sRGB = 7,
|
| 261 |
+
DXVA2_VideoTransFunc_28 = 8
|
| 262 |
+
} DXVA2_VideoTransferFunction;
|
| 263 |
+
|
| 264 |
+
cpp_quote("//")
|
| 265 |
+
cpp_quote("// Deprecated labels - please use the ones in the DXVA2_VideoTransferFunction enum.")
|
| 266 |
+
cpp_quote("//")
|
| 267 |
+
cpp_quote("#define DXVA2_VideoTransFunc_22_709 DXVA2_VideoTransFunc_709 ")
|
| 268 |
+
cpp_quote("#define DXVA2_VideoTransFunc_22_240M DXVA2_VideoTransFunc_240M ")
|
| 269 |
+
cpp_quote("#define DXVA2_VideoTransFunc_22_8bit_sRGB DXVA2_VideoTransFunc_sRGB ")
|
| 270 |
+
|
| 271 |
+
typedef struct _DXVA2_Frequency
|
| 272 |
+
{
|
| 273 |
+
UINT Numerator;
|
| 274 |
+
UINT Denominator;
|
| 275 |
+
} DXVA2_Frequency;
|
| 276 |
+
|
| 277 |
+
typedef struct _DXVA2_VideoDesc
|
| 278 |
+
{
|
| 279 |
+
UINT SampleWidth;
|
| 280 |
+
UINT SampleHeight;
|
| 281 |
+
DXVA2_ExtendedFormat SampleFormat;
|
| 282 |
+
D3DFORMAT Format;
|
| 283 |
+
DXVA2_Frequency InputSampleFreq;
|
| 284 |
+
DXVA2_Frequency OutputFrameFreq;
|
| 285 |
+
UINT UABProtectionLevel;
|
| 286 |
+
UINT Reserved;
|
| 287 |
+
} DXVA2_VideoDesc;
|
| 288 |
+
|
| 289 |
+
enum
|
| 290 |
+
{
|
| 291 |
+
DXVA2_DeinterlaceTech_Unknown = 0x0000,
|
| 292 |
+
DXVA2_DeinterlaceTech_BOBLineReplicate = 0x0001,
|
| 293 |
+
DXVA2_DeinterlaceTech_BOBVerticalStretch = 0x0002,
|
| 294 |
+
DXVA2_DeinterlaceTech_BOBVerticalStretch4Tap = 0x0004,
|
| 295 |
+
DXVA2_DeinterlaceTech_MedianFiltering = 0x0008,
|
| 296 |
+
DXVA2_DeinterlaceTech_EdgeFiltering = 0x0010,
|
| 297 |
+
DXVA2_DeinterlaceTech_FieldAdaptive = 0x0020,
|
| 298 |
+
DXVA2_DeinterlaceTech_PixelAdaptive = 0x0040,
|
| 299 |
+
DXVA2_DeinterlaceTech_MotionVectorSteered = 0x0080,
|
| 300 |
+
DXVA2_DeinterlaceTech_InverseTelecine = 0x0100,
|
| 301 |
+
DXVA2_DeinterlaceTech_Mask = 0x01FF
|
| 302 |
+
};
|
| 303 |
+
|
| 304 |
+
enum
|
| 305 |
+
{
|
| 306 |
+
DXVA2_NoiseFilterLumaLevel = 1,
|
| 307 |
+
DXVA2_NoiseFilterLumaThreshold = 2,
|
| 308 |
+
DXVA2_NoiseFilterLumaRadius = 3,
|
| 309 |
+
DXVA2_NoiseFilterChromaLevel = 4,
|
| 310 |
+
DXVA2_NoiseFilterChromaThreshold = 5,
|
| 311 |
+
DXVA2_NoiseFilterChromaRadius = 6,
|
| 312 |
+
DXVA2_DetailFilterLumaLevel = 7,
|
| 313 |
+
DXVA2_DetailFilterLumaThreshold = 8,
|
| 314 |
+
DXVA2_DetailFilterLumaRadius = 9,
|
| 315 |
+
DXVA2_DetailFilterChromaLevel = 10,
|
| 316 |
+
DXVA2_DetailFilterChromaThreshold = 11,
|
| 317 |
+
DXVA2_DetailFilterChromaRadius = 12
|
| 318 |
+
};
|
| 319 |
+
|
| 320 |
+
enum
|
| 321 |
+
{
|
| 322 |
+
DXVA2_NoiseFilterTech_Unsupported = 0,
|
| 323 |
+
DXVA2_NoiseFilterTech_Unknown = 0x0001,
|
| 324 |
+
DXVA2_NoiseFilterTech_Median = 0x0002,
|
| 325 |
+
DXVA2_NoiseFilterTech_Temporal = 0x0004,
|
| 326 |
+
DXVA2_NoiseFilterTech_BlockNoise = 0x0008,
|
| 327 |
+
DXVA2_NoiseFilterTech_MosquitoNoise = 0x0010,
|
| 328 |
+
DXVA2_NoiseFilterTech_Mask = 0x001F
|
| 329 |
+
};
|
| 330 |
+
|
| 331 |
+
enum
|
| 332 |
+
{
|
| 333 |
+
DXVA2_DetailFilterTech_Unsupported = 0,
|
| 334 |
+
DXVA2_DetailFilterTech_Unknown = 0x0001,
|
| 335 |
+
DXVA2_DetailFilterTech_Edge = 0x0002,
|
| 336 |
+
DXVA2_DetailFilterTech_Sharpening = 0x0004,
|
| 337 |
+
DXVA2_DetailFilterTech_Mask = 0x0007
|
| 338 |
+
};
|
| 339 |
+
|
| 340 |
+
enum
|
| 341 |
+
{
|
| 342 |
+
DXVA2_ProcAmp_None = 0x0000,
|
| 343 |
+
DXVA2_ProcAmp_Brightness = 0x0001,
|
| 344 |
+
DXVA2_ProcAmp_Contrast = 0x0002,
|
| 345 |
+
DXVA2_ProcAmp_Hue = 0x0004,
|
| 346 |
+
DXVA2_ProcAmp_Saturation = 0x0008,
|
| 347 |
+
DXVA2_ProcAmp_Mask = 0x000F
|
| 348 |
+
};
|
| 349 |
+
|
| 350 |
+
enum
|
| 351 |
+
{
|
| 352 |
+
DXVA2_VideoProcess_None = 0x0000,
|
| 353 |
+
DXVA2_VideoProcess_YUV2RGB = 0x0001,
|
| 354 |
+
DXVA2_VideoProcess_StretchX = 0x0002,
|
| 355 |
+
DXVA2_VideoProcess_StretchY = 0x0004,
|
| 356 |
+
DXVA2_VideoProcess_AlphaBlend = 0x0008,
|
| 357 |
+
DXVA2_VideoProcess_SubRects = 0x0010,
|
| 358 |
+
DXVA2_VideoProcess_SubStreams = 0x0020,
|
| 359 |
+
DXVA2_VideoProcess_SubStreamsExtended = 0x0040,
|
| 360 |
+
DXVA2_VideoProcess_YUV2RGBExtended = 0x0080,
|
| 361 |
+
DXVA2_VideoProcess_AlphaBlendExtended = 0x0100,
|
| 362 |
+
DXVA2_VideoProcess_Constriction = 0x0200,
|
| 363 |
+
DXVA2_VideoProcess_NoiseFilter = 0x0400,
|
| 364 |
+
DXVA2_VideoProcess_DetailFilter = 0x0800,
|
| 365 |
+
DXVA2_VideoProcess_PlanarAlpha = 0x1000,
|
| 366 |
+
DXVA2_VideoProcess_LinearScaling = 0x2000,
|
| 367 |
+
DXVA2_VideoProcess_GammaCompensated = 0x4000,
|
| 368 |
+
DXVA2_VideoProcess_MaintainsOriginalFieldData = 0x8000,
|
| 369 |
+
DXVA2_VideoProcess_Mask = 0xFFFF
|
| 370 |
+
};
|
| 371 |
+
|
| 372 |
+
enum
|
| 373 |
+
{
|
| 374 |
+
DXVA2_VPDev_HardwareDevice = 0x0001,
|
| 375 |
+
DXVA2_VPDev_EmulatedDXVA1 = 0x0002,
|
| 376 |
+
DXVA2_VPDev_SoftwareDevice = 0x0004,
|
| 377 |
+
DXVA2_VPDev_Mask = 0x0007
|
| 378 |
+
};
|
| 379 |
+
|
| 380 |
+
enum
|
| 381 |
+
{
|
| 382 |
+
DXVA2_SampleData_RFF = 0x0001,
|
| 383 |
+
DXVA2_SampleData_TFF = 0x0002,
|
| 384 |
+
DXVA2_SampleData_RFF_TFF_Present = 0x0004,
|
| 385 |
+
DXVA2_SampleData_Mask = 0xFFFF
|
| 386 |
+
};
|
| 387 |
+
|
| 388 |
+
enum
|
| 389 |
+
{
|
| 390 |
+
DXVA2_DestData_RFF = 0x0001,
|
| 391 |
+
DXVA2_DestData_TFF = 0x0002,
|
| 392 |
+
DXVA2_DestData_RFF_TFF_Present = 0x0004,
|
| 393 |
+
DXVA2_DestData_Mask = 0xFFFF
|
| 394 |
+
};
|
| 395 |
+
|
| 396 |
+
typedef struct _DXVA2_VideoProcessorCaps
|
| 397 |
+
{
|
| 398 |
+
UINT DeviceCaps; // see DXVA2_VPDev_Xxxx
|
| 399 |
+
D3DPOOL InputPool;
|
| 400 |
+
UINT NumForwardRefSamples;
|
| 401 |
+
UINT NumBackwardRefSamples;
|
| 402 |
+
UINT Reserved;
|
| 403 |
+
UINT DeinterlaceTechnology; // see DXVA2_DeinterlaceTech_Xxxx
|
| 404 |
+
UINT ProcAmpControlCaps; // see DXVA2_ProcAmp_Xxxx
|
| 405 |
+
UINT VideoProcessorOperations; // see DXVA2_VideoProcess_Xxxx
|
| 406 |
+
UINT NoiseFilterTechnology; // see DXVA2_NoiseFilterTech_Xxxx
|
| 407 |
+
UINT DetailFilterTechnology; // see DXVA2_DetailFilterTech_Xxxx
|
| 408 |
+
} DXVA2_VideoProcessorCaps;
|
| 409 |
+
|
| 410 |
+
cpp_quote("#ifdef __midl")
|
| 411 |
+
typedef LONG DXVA2_Fixed32;
|
| 412 |
+
cpp_quote("#else")
|
| 413 |
+
cpp_quote("#pragma warning( push )")
|
| 414 |
+
cpp_quote("#pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union")
|
| 415 |
+
cpp_quote("typedef struct _DXVA2_Fixed32")
|
| 416 |
+
cpp_quote("{")
|
| 417 |
+
cpp_quote(" union {")
|
| 418 |
+
cpp_quote(" struct {")
|
| 419 |
+
cpp_quote(" USHORT Fraction;")
|
| 420 |
+
cpp_quote(" SHORT Value;")
|
| 421 |
+
cpp_quote(" };")
|
| 422 |
+
cpp_quote(" LONG ll;")
|
| 423 |
+
cpp_quote(" };")
|
| 424 |
+
cpp_quote("} DXVA2_Fixed32;")
|
| 425 |
+
cpp_quote("#pragma warning( pop )")
|
| 426 |
+
cpp_quote("#endif")
|
| 427 |
+
|
| 428 |
+
typedef struct _DXVA2_AYUVSample8
|
| 429 |
+
{
|
| 430 |
+
UCHAR Cr; // V
|
| 431 |
+
UCHAR Cb; // U
|
| 432 |
+
UCHAR Y;
|
| 433 |
+
UCHAR Alpha;
|
| 434 |
+
} DXVA2_AYUVSample8;
|
| 435 |
+
|
| 436 |
+
typedef struct _DXVA2_AYUVSample16
|
| 437 |
+
{
|
| 438 |
+
USHORT Cr; // V
|
| 439 |
+
USHORT Cb; // U
|
| 440 |
+
USHORT Y;
|
| 441 |
+
USHORT Alpha;
|
| 442 |
+
} DXVA2_AYUVSample16;
|
| 443 |
+
|
| 444 |
+
typedef LONGLONG REFERENCE_TIME;
|
| 445 |
+
|
| 446 |
+
cpp_quote("#if defined(_D3D9_H_) || defined(_d3d9P_H_)")
|
| 447 |
+
|
| 448 |
+
typedef struct _DXVA2_VideoSample
|
| 449 |
+
{
|
| 450 |
+
REFERENCE_TIME Start;
|
| 451 |
+
REFERENCE_TIME End;
|
| 452 |
+
DXVA2_ExtendedFormat SampleFormat;
|
| 453 |
+
IDirect3DSurface9* SrcSurface;
|
| 454 |
+
RECT SrcRect;
|
| 455 |
+
RECT DstRect;
|
| 456 |
+
DXVA2_AYUVSample8 Pal[16]; // Palette used with AI44 surface types
|
| 457 |
+
DXVA2_Fixed32 PlanarAlpha;
|
| 458 |
+
DWORD SampleData; // Sample metadata
|
| 459 |
+
} DXVA2_VideoSample;
|
| 460 |
+
|
| 461 |
+
cpp_quote("#endif // _D3D9_H_")
|
| 462 |
+
|
| 463 |
+
typedef struct _DXVA2_ValueRange
|
| 464 |
+
{
|
| 465 |
+
DXVA2_Fixed32 MinValue;
|
| 466 |
+
DXVA2_Fixed32 MaxValue;
|
| 467 |
+
DXVA2_Fixed32 DefaultValue;
|
| 468 |
+
DXVA2_Fixed32 StepSize;
|
| 469 |
+
} DXVA2_ValueRange;
|
| 470 |
+
|
| 471 |
+
typedef struct _DXVA2_ProcAmpValues
|
| 472 |
+
{
|
| 473 |
+
DXVA2_Fixed32 Brightness;
|
| 474 |
+
DXVA2_Fixed32 Contrast;
|
| 475 |
+
DXVA2_Fixed32 Hue;
|
| 476 |
+
DXVA2_Fixed32 Saturation;
|
| 477 |
+
} DXVA2_ProcAmpValues;
|
| 478 |
+
|
| 479 |
+
typedef struct _DXVA2_FilterValues {
|
| 480 |
+
DXVA2_Fixed32 Level;
|
| 481 |
+
DXVA2_Fixed32 Threshold;
|
| 482 |
+
DXVA2_Fixed32 Radius;
|
| 483 |
+
} DXVA2_FilterValues;
|
| 484 |
+
|
| 485 |
+
typedef struct _DXVA2_VideoProcessBltParams
|
| 486 |
+
{
|
| 487 |
+
REFERENCE_TIME TargetFrame;
|
| 488 |
+
RECT TargetRect;
|
| 489 |
+
SIZE ConstrictionSize;
|
| 490 |
+
UINT StreamingFlags;
|
| 491 |
+
DXVA2_AYUVSample16 BackgroundColor;
|
| 492 |
+
DXVA2_ExtendedFormat DestFormat;
|
| 493 |
+
DXVA2_ProcAmpValues ProcAmpValues;
|
| 494 |
+
DXVA2_Fixed32 Alpha;
|
| 495 |
+
DXVA2_FilterValues NoiseFilterLuma;
|
| 496 |
+
DXVA2_FilterValues NoiseFilterChroma;
|
| 497 |
+
DXVA2_FilterValues DetailFilterLuma;
|
| 498 |
+
DXVA2_FilterValues DetailFilterChroma;
|
| 499 |
+
DWORD DestData;
|
| 500 |
+
} DXVA2_VideoProcessBltParams;
|
| 501 |
+
|
| 502 |
+
|
| 503 |
+
//=============================================================================
|
| 504 |
+
// Description:
|
| 505 |
+
//
|
| 506 |
+
// Structures and enums used by the DXVA2 Video Decoding API.
|
| 507 |
+
//
|
| 508 |
+
|
| 509 |
+
// Compressed buffer types.
|
| 510 |
+
enum
|
| 511 |
+
{
|
| 512 |
+
DXVA2_PictureParametersBufferType = 0,
|
| 513 |
+
DXVA2_MacroBlockControlBufferType = 1,
|
| 514 |
+
DXVA2_ResidualDifferenceBufferType = 2,
|
| 515 |
+
DXVA2_DeblockingControlBufferType = 3,
|
| 516 |
+
DXVA2_InverseQuantizationMatrixBufferType = 4,
|
| 517 |
+
DXVA2_SliceControlBufferType = 5,
|
| 518 |
+
DXVA2_BitStreamDateBufferType = 6,
|
| 519 |
+
DXVA2_MotionVectorBuffer = 7,
|
| 520 |
+
DXVA2_FilmGrainBuffer = 8
|
| 521 |
+
};
|
| 522 |
+
|
| 523 |
+
// Uncompressed buffer types
|
| 524 |
+
enum
|
| 525 |
+
{
|
| 526 |
+
DXVA2_VideoDecoderRenderTarget = 0,
|
| 527 |
+
DXVA2_VideoProcessorRenderTarget = 1,
|
| 528 |
+
DXVA2_VideoSoftwareRenderTarget = 2
|
| 529 |
+
};
|
| 530 |
+
|
| 531 |
+
typedef struct _DXVA2_ConfigPictureDecode
|
| 532 |
+
{
|
| 533 |
+
GUID guidConfigBitstreamEncryption;
|
| 534 |
+
GUID guidConfigMBcontrolEncryption;
|
| 535 |
+
GUID guidConfigResidDiffEncryption;
|
| 536 |
+
UINT ConfigBitstreamRaw;
|
| 537 |
+
UINT ConfigMBcontrolRasterOrder;
|
| 538 |
+
UINT ConfigResidDiffHost;
|
| 539 |
+
UINT ConfigSpatialResid8;
|
| 540 |
+
UINT ConfigResid8Subtraction;
|
| 541 |
+
UINT ConfigSpatialHost8or9Clipping;
|
| 542 |
+
UINT ConfigSpatialResidInterleaved;
|
| 543 |
+
UINT ConfigIntraResidUnsigned;
|
| 544 |
+
UINT ConfigResidDiffAccelerator;
|
| 545 |
+
UINT ConfigHostInverseScan;
|
| 546 |
+
UINT ConfigSpecificIDCT;
|
| 547 |
+
UINT Config4GroupedCoefs;
|
| 548 |
+
USHORT ConfigMinRenderTargetBuffCount;
|
| 549 |
+
USHORT ConfigDecoderSpecific;
|
| 550 |
+
} DXVA2_ConfigPictureDecode;
|
| 551 |
+
|
| 552 |
+
typedef struct _DXVA2_DecodeBufferDesc
|
| 553 |
+
{
|
| 554 |
+
DWORD CompressedBufferType;
|
| 555 |
+
UINT BufferIndex; // reserved
|
| 556 |
+
UINT DataOffset;
|
| 557 |
+
UINT DataSize;
|
| 558 |
+
UINT FirstMBaddress;
|
| 559 |
+
UINT NumMBsInBuffer;
|
| 560 |
+
UINT Width; // reserved
|
| 561 |
+
UINT Height; // reserved
|
| 562 |
+
UINT Stride; // reserved
|
| 563 |
+
UINT ReservedBits;
|
| 564 |
+
PVOID pvPVPState;
|
| 565 |
+
} DXVA2_DecodeBufferDesc;
|
| 566 |
+
|
| 567 |
+
cpp_quote("// The value in pvPVPState depends on the type of crypo used. For ")
|
| 568 |
+
cpp_quote("// D3DCRYPTOTYPE_AES128_CTR, pvPState points to the following structure:")
|
| 569 |
+
cpp_quote(" ")
|
| 570 |
+
|
| 571 |
+
typedef struct _DXVA2_AES_CTR_IV
|
| 572 |
+
{
|
| 573 |
+
UINT64 IV; // Big-Endian IV
|
| 574 |
+
UINT64 Count; // Big-Endian Block Count
|
| 575 |
+
} DXVA2_AES_CTR_IV;
|
| 576 |
+
|
| 577 |
+
typedef struct _DXVA2_DecodeExtensionData
|
| 578 |
+
{
|
| 579 |
+
UINT Function;
|
| 580 |
+
PVOID pPrivateInputData;
|
| 581 |
+
UINT PrivateInputDataSize;
|
| 582 |
+
PVOID pPrivateOutputData;
|
| 583 |
+
UINT PrivateOutputDataSize;
|
| 584 |
+
} DXVA2_DecodeExtensionData;
|
| 585 |
+
|
| 586 |
+
cpp_quote("// DXVA2_DECODE_GET_DRIVER_HANDLE is an extension function that allows the ")
|
| 587 |
+
cpp_quote("// driver to return a handle for the DXVA2 decode device that can be used to")
|
| 588 |
+
cpp_quote("// associate it with a IDirect3DCryptoSession9 interface. When this function")
|
| 589 |
+
cpp_quote("// is used:")
|
| 590 |
+
cpp_quote("// pPrivateInputData = NULL")
|
| 591 |
+
cpp_quote("// pPrivateInputDataSize = 0")
|
| 592 |
+
cpp_quote("// pPrivateOutputData = HANDLE*")
|
| 593 |
+
cpp_quote("// pPrivateOutputDataSize = sizeof(HANDLE)")
|
| 594 |
+
cpp_quote("#define DXVA2_DECODE_GET_DRIVER_HANDLE 0x725")
|
| 595 |
+
cpp_quote(" ")
|
| 596 |
+
cpp_quote("// DXVA2_DECODE_SPECIFY_ENCRYPTED_BLOCKS is an extension function that that allows ")
|
| 597 |
+
cpp_quote("// the decoder to specify which portions of the compressed buffers are encrypted. ")
|
| 598 |
+
cpp_quote("// If this fucntion is not used to specify this information, it is assumed that ")
|
| 599 |
+
cpp_quote("// the entire buffer is encrypted. ")
|
| 600 |
+
cpp_quote("// pPrivateInputData = D3DENCRYPTED_BLOCK_INFO*; ")
|
| 601 |
+
cpp_quote("// PrivateInputDataSize = sizeof(D3DENCRYPTED_BLOCK_INFO); ")
|
| 602 |
+
cpp_quote("// pPrivateOutputData = NULL; ")
|
| 603 |
+
cpp_quote("// PrivateOutputDataSize = 0; ")
|
| 604 |
+
cpp_quote("#define DXVA2_DECODE_SPECIFY_ENCRYPTED_BLOCKS 0x724 ")
|
| 605 |
+
cpp_quote(" ")
|
| 606 |
+
|
| 607 |
+
typedef struct _DXVA2_DecodeExecuteParams
|
| 608 |
+
{
|
| 609 |
+
UINT NumCompBuffers;
|
| 610 |
+
DXVA2_DecodeBufferDesc* pCompressedBuffers;
|
| 611 |
+
DXVA2_DecodeExtensionData* pExtensionData;
|
| 612 |
+
} DXVA2_DecodeExecuteParams;
|
| 613 |
+
|
| 614 |
+
|
| 615 |
+
cpp_quote("#if defined(_D3D9_H_) || defined(_d3d9P_H_)")
|
| 616 |
+
|
| 617 |
+
//=============================================================================
|
| 618 |
+
// Description:
|
| 619 |
+
//
|
| 620 |
+
// Public interfaces supported by the DXVA2 API.
|
| 621 |
+
//
|
| 622 |
+
interface IDirect3DDeviceManager9;
|
| 623 |
+
interface IDirectXVideoAccelerationService;
|
| 624 |
+
interface IDirectXVideoDecoderService;
|
| 625 |
+
interface IDirectXVideoProcessorService;
|
| 626 |
+
interface IDirectXVideoDecoder;
|
| 627 |
+
interface IDirectXVideoProcessor;
|
| 628 |
+
|
| 629 |
+
//=============================================================================
|
| 630 |
+
// Description:
|
| 631 |
+
//
|
| 632 |
+
// TBD.
|
| 633 |
+
//
|
| 634 |
+
[
|
| 635 |
+
object,
|
| 636 |
+
uuid(a0cade0f-06d5-4cf4-a1c7-f3cdd725aa75),
|
| 637 |
+
helpstring("IDirect3DDeviceManager9 Interface"),
|
| 638 |
+
local
|
| 639 |
+
]
|
| 640 |
+
interface IDirect3DDeviceManager9 : IUnknown
|
| 641 |
+
{
|
| 642 |
+
HRESULT ResetDevice(
|
| 643 |
+
[in, annotation("_In_")] IDirect3DDevice9* pDevice,
|
| 644 |
+
[in, annotation("_In_")] UINT resetToken
|
| 645 |
+
);
|
| 646 |
+
|
| 647 |
+
HRESULT OpenDeviceHandle(
|
| 648 |
+
[out, annotation("_Out_")] HANDLE* phDevice
|
| 649 |
+
);
|
| 650 |
+
|
| 651 |
+
HRESULT CloseDeviceHandle(
|
| 652 |
+
[in, annotation("_In_")] HANDLE hDevice
|
| 653 |
+
);
|
| 654 |
+
|
| 655 |
+
HRESULT TestDevice(
|
| 656 |
+
[in, annotation("_In_")] HANDLE hDevice
|
| 657 |
+
);
|
| 658 |
+
|
| 659 |
+
HRESULT LockDevice(
|
| 660 |
+
[in, annotation("_In_")] HANDLE hDevice,
|
| 661 |
+
[out, annotation("_Outptr_")] IDirect3DDevice9** ppDevice,
|
| 662 |
+
[in, annotation("_In_")] BOOL fBlock
|
| 663 |
+
);
|
| 664 |
+
|
| 665 |
+
HRESULT UnlockDevice(
|
| 666 |
+
[in, annotation("_In_")] HANDLE hDevice,
|
| 667 |
+
[in, annotation("_In_")] BOOL fSaveState
|
| 668 |
+
);
|
| 669 |
+
|
| 670 |
+
HRESULT GetVideoService(
|
| 671 |
+
[in, annotation("_In_")] HANDLE hDevice,
|
| 672 |
+
[in, annotation("_In_")] REFIID riid,
|
| 673 |
+
[out, annotation("_Outptr_")] void** ppService
|
| 674 |
+
);
|
| 675 |
+
};
|
| 676 |
+
|
| 677 |
+
//=============================================================================
|
| 678 |
+
// Description:
|
| 679 |
+
//
|
| 680 |
+
// TBD.
|
| 681 |
+
//
|
| 682 |
+
[
|
| 683 |
+
object,
|
| 684 |
+
uuid(fc51a550-d5e7-11d9-af55-00054e43ff02),
|
| 685 |
+
helpstring("IDirectXVideoAccelerationService Interface"),
|
| 686 |
+
local
|
| 687 |
+
]
|
| 688 |
+
interface IDirectXVideoAccelerationService : IUnknown
|
| 689 |
+
{
|
| 690 |
+
HRESULT CreateSurface(
|
| 691 |
+
[in, annotation("_In_")] UINT Width,
|
| 692 |
+
[in, annotation("_In_")] UINT Height,
|
| 693 |
+
[in, annotation("_In_")] UINT BackBuffers,
|
| 694 |
+
[in, annotation("_In_")] D3DFORMAT Format,
|
| 695 |
+
[in, annotation("_In_")] D3DPOOL Pool,
|
| 696 |
+
[in, annotation("_In_")] DWORD Usage,
|
| 697 |
+
[in, annotation("_In_")] DWORD DxvaType, // see DXVA2_VideoXxxxRenderTarget
|
| 698 |
+
[out, size_is(BackBuffers+1), annotation("_Out_writes_(BackBuffers+1)")] IDirect3DSurface9** ppSurface,
|
| 699 |
+
[in, out, annotation("_Inout_opt_")] HANDLE* pSharedHandle
|
| 700 |
+
);
|
| 701 |
+
};
|
| 702 |
+
|
| 703 |
+
//=============================================================================
|
| 704 |
+
// Description:
|
| 705 |
+
//
|
| 706 |
+
// TBD.
|
| 707 |
+
//
|
| 708 |
+
[
|
| 709 |
+
object,
|
| 710 |
+
uuid(fc51a551-d5e7-11d9-af55-00054e43ff02),
|
| 711 |
+
helpstring("IDirectXVideoDecoderService Interface"),
|
| 712 |
+
local
|
| 713 |
+
]
|
| 714 |
+
interface IDirectXVideoDecoderService : IDirectXVideoAccelerationService
|
| 715 |
+
{
|
| 716 |
+
HRESULT GetDecoderDeviceGuids(
|
| 717 |
+
[out, annotation("_Out_")] UINT* pCount,
|
| 718 |
+
[out, unique, size_is(*pCount), annotation("_Outptr_result_buffer_maybenull_(*pCount)")] GUID** pGuids
|
| 719 |
+
);
|
| 720 |
+
|
| 721 |
+
HRESULT GetDecoderRenderTargets(
|
| 722 |
+
[in, annotation("_In_")] REFGUID Guid,
|
| 723 |
+
[out, annotation("_Out_")] UINT* pCount,
|
| 724 |
+
[out, unique, size_is(*pCount), annotation("_Outptr_result_buffer_maybenull_(*pCount)")] D3DFORMAT** pFormats
|
| 725 |
+
);
|
| 726 |
+
|
| 727 |
+
HRESULT GetDecoderConfigurations(
|
| 728 |
+
[in, annotation("_In_")] REFGUID Guid,
|
| 729 |
+
[in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc,
|
| 730 |
+
[in, annotation("_Reserved_")] void* pReserved,
|
| 731 |
+
[out, annotation("_Out_")] UINT* pCount,
|
| 732 |
+
[out, unique, size_is(*pCount), annotation("_Outptr_result_buffer_maybenull_(*pCount)")] DXVA2_ConfigPictureDecode** ppConfigs
|
| 733 |
+
);
|
| 734 |
+
|
| 735 |
+
HRESULT CreateVideoDecoder(
|
| 736 |
+
[in, annotation("_In_")] REFGUID Guid,
|
| 737 |
+
[in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc,
|
| 738 |
+
[in, annotation("_In_")] const DXVA2_ConfigPictureDecode* pConfig,
|
| 739 |
+
[in, size_is(NumRenderTargets), annotation("_In_reads_(NumRenderTargets)")] IDirect3DSurface9** ppDecoderRenderTargets,
|
| 740 |
+
[in, annotation("_In_")] UINT NumRenderTargets,
|
| 741 |
+
[out, annotation("_Outptr_")] IDirectXVideoDecoder** ppDecode
|
| 742 |
+
);
|
| 743 |
+
};
|
| 744 |
+
|
| 745 |
+
//=============================================================================
|
| 746 |
+
// Description:
|
| 747 |
+
//
|
| 748 |
+
// TBD.
|
| 749 |
+
//
|
| 750 |
+
[
|
| 751 |
+
object,
|
| 752 |
+
uuid(fc51a552-d5e7-11d9-af55-00054e43ff02),
|
| 753 |
+
helpstring("IDirectXVideoProcessorService Interface"),
|
| 754 |
+
local
|
| 755 |
+
]
|
| 756 |
+
interface IDirectXVideoProcessorService : IDirectXVideoAccelerationService
|
| 757 |
+
{
|
| 758 |
+
HRESULT RegisterVideoProcessorSoftwareDevice(
|
| 759 |
+
[in, annotation("_In_")] void* pCallbacks
|
| 760 |
+
);
|
| 761 |
+
|
| 762 |
+
HRESULT GetVideoProcessorDeviceGuids(
|
| 763 |
+
[in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc,
|
| 764 |
+
[out, annotation("_Out_")] UINT* pCount,
|
| 765 |
+
[out, unique, size_is(*pCount), annotation("_Outptr_result_buffer_maybenull_(*pCount)")] GUID** pGuids
|
| 766 |
+
);
|
| 767 |
+
|
| 768 |
+
HRESULT GetVideoProcessorRenderTargets(
|
| 769 |
+
[in, annotation("_In_")] REFGUID VideoProcDeviceGuid,
|
| 770 |
+
[in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc,
|
| 771 |
+
[out, annotation("_Out_")] UINT* pCount,
|
| 772 |
+
[out, unique, size_is(*pCount), annotation("_Outptr_result_buffer_maybenull_(*pCount)")] D3DFORMAT** pFormats
|
| 773 |
+
);
|
| 774 |
+
|
| 775 |
+
HRESULT GetVideoProcessorSubStreamFormats(
|
| 776 |
+
[in, annotation("_In_")] REFGUID VideoProcDeviceGuid,
|
| 777 |
+
[in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc,
|
| 778 |
+
[in, annotation("_In_")] D3DFORMAT RenderTargetFormat,
|
| 779 |
+
[out, annotation("_Out_")] UINT* pCount,
|
| 780 |
+
[out, unique, size_is(*pCount), annotation("_Outptr_result_buffer_maybenull_(*pCount)")] D3DFORMAT** pFormats
|
| 781 |
+
);
|
| 782 |
+
|
| 783 |
+
HRESULT GetVideoProcessorCaps(
|
| 784 |
+
[in, annotation("_In_")] REFGUID VideoProcDeviceGuid,
|
| 785 |
+
[in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc,
|
| 786 |
+
[in, annotation("_In_")] D3DFORMAT RenderTargetFormat,
|
| 787 |
+
[out, annotation("_Out_")] DXVA2_VideoProcessorCaps* pCaps
|
| 788 |
+
);
|
| 789 |
+
|
| 790 |
+
HRESULT GetProcAmpRange(
|
| 791 |
+
[in, annotation("_In_")] REFGUID VideoProcDeviceGuid,
|
| 792 |
+
[in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc,
|
| 793 |
+
[in, annotation("_In_")] D3DFORMAT RenderTargetFormat,
|
| 794 |
+
[in, annotation("_In_")] UINT ProcAmpCap,
|
| 795 |
+
[out, annotation("_Out_")] DXVA2_ValueRange* pRange
|
| 796 |
+
);
|
| 797 |
+
|
| 798 |
+
HRESULT GetFilterPropertyRange(
|
| 799 |
+
[in, annotation("_In_")] REFGUID VideoProcDeviceGuid,
|
| 800 |
+
[in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc,
|
| 801 |
+
[in, annotation("_In_")] D3DFORMAT RenderTargetFormat,
|
| 802 |
+
[in, annotation("_In_")] UINT FilterSetting,
|
| 803 |
+
[out, annotation("_Out_")] DXVA2_ValueRange* pRange
|
| 804 |
+
);
|
| 805 |
+
|
| 806 |
+
HRESULT CreateVideoProcessor(
|
| 807 |
+
[in, annotation("_In_")] REFGUID VideoProcDeviceGuid,
|
| 808 |
+
[in, annotation("_In_")] const DXVA2_VideoDesc* pVideoDesc,
|
| 809 |
+
[in, annotation("_In_")] D3DFORMAT RenderTargetFormat,
|
| 810 |
+
[in, annotation("_In_")] UINT MaxNumSubStreams,
|
| 811 |
+
[out, annotation("_Outptr_")] IDirectXVideoProcessor** ppVidProcess
|
| 812 |
+
);
|
| 813 |
+
};
|
| 814 |
+
|
| 815 |
+
//=============================================================================
|
| 816 |
+
// Description:
|
| 817 |
+
//
|
| 818 |
+
// TBD.
|
| 819 |
+
//
|
| 820 |
+
[
|
| 821 |
+
object,
|
| 822 |
+
uuid(f2b0810a-fd00-43c9-918c-df94e2d8ef7d),
|
| 823 |
+
helpstring("IDirectXVideoDecoder Interface"),
|
| 824 |
+
local
|
| 825 |
+
]
|
| 826 |
+
interface IDirectXVideoDecoder : IUnknown
|
| 827 |
+
{
|
| 828 |
+
HRESULT GetVideoDecoderService(
|
| 829 |
+
[out, annotation("_Outptr_")] IDirectXVideoDecoderService** ppService
|
| 830 |
+
);
|
| 831 |
+
|
| 832 |
+
HRESULT GetCreationParameters(
|
| 833 |
+
[out, annotation("_Out_opt_")] GUID* pDeviceGuid,
|
| 834 |
+
[out, annotation("_Out_opt_")] DXVA2_VideoDesc* pVideoDesc,
|
| 835 |
+
[out, annotation("_Out_opt_")] DXVA2_ConfigPictureDecode* pConfig,
|
| 836 |
+
[out, unique, size_is(*pNumSurfaces), annotation("_Out_writes_(*pNumSurfaces)")] IDirect3DSurface9*** pDecoderRenderTargets,
|
| 837 |
+
[out, annotation("_Out_opt_")] UINT* pNumSurfaces
|
| 838 |
+
);
|
| 839 |
+
|
| 840 |
+
HRESULT GetBuffer(
|
| 841 |
+
[in, annotation("_In_")] UINT BufferType,
|
| 842 |
+
[out, annotation("_Out_")] void** ppBuffer,
|
| 843 |
+
[out, annotation("_Out_")] UINT* pBufferSize
|
| 844 |
+
);
|
| 845 |
+
|
| 846 |
+
HRESULT ReleaseBuffer(
|
| 847 |
+
[in, annotation("_In_")] UINT BufferType
|
| 848 |
+
);
|
| 849 |
+
|
| 850 |
+
HRESULT BeginFrame(
|
| 851 |
+
[in, annotation("_In_")] IDirect3DSurface9* pRenderTarget,
|
| 852 |
+
[in, annotation("_In_opt_")] void* pvPVPData
|
| 853 |
+
);
|
| 854 |
+
|
| 855 |
+
HRESULT EndFrame(
|
| 856 |
+
[out, annotation("_Inout_opt_")] HANDLE* pHandleComplete // reserved
|
| 857 |
+
);
|
| 858 |
+
|
| 859 |
+
HRESULT Execute(
|
| 860 |
+
[in, annotation("_In_")] const DXVA2_DecodeExecuteParams* pExecuteParams
|
| 861 |
+
);
|
| 862 |
+
};
|
| 863 |
+
|
| 864 |
+
|
| 865 |
+
//=============================================================================
|
| 866 |
+
// Description:
|
| 867 |
+
//
|
| 868 |
+
// TBD.
|
| 869 |
+
//
|
| 870 |
+
[
|
| 871 |
+
object,
|
| 872 |
+
uuid(8c3a39f0-916e-4690-804f-4c8001355d25),
|
| 873 |
+
helpstring("IDirectXVideoProcessor Interface"),
|
| 874 |
+
local
|
| 875 |
+
]
|
| 876 |
+
interface IDirectXVideoProcessor : IUnknown
|
| 877 |
+
{
|
| 878 |
+
HRESULT GetVideoProcessorService(
|
| 879 |
+
[out, annotation("_Outptr_")] IDirectXVideoProcessorService** ppService
|
| 880 |
+
);
|
| 881 |
+
|
| 882 |
+
HRESULT GetCreationParameters(
|
| 883 |
+
[out, annotation("_Out_opt_")] GUID* pDeviceGuid,
|
| 884 |
+
[out, annotation("_Out_opt_")] DXVA2_VideoDesc* pVideoDesc,
|
| 885 |
+
[out, annotation("_Out_opt_")] D3DFORMAT* pRenderTargetFormat,
|
| 886 |
+
[out, annotation("_Out_opt_")] UINT* pMaxNumSubStreams
|
| 887 |
+
);
|
| 888 |
+
|
| 889 |
+
HRESULT GetVideoProcessorCaps(
|
| 890 |
+
[out, annotation("_Out_")] DXVA2_VideoProcessorCaps* pCaps
|
| 891 |
+
);
|
| 892 |
+
|
| 893 |
+
HRESULT GetProcAmpRange(
|
| 894 |
+
[in, annotation("_In_")] UINT ProcAmpCap,
|
| 895 |
+
[out, annotation("_Out_")] DXVA2_ValueRange* pRange
|
| 896 |
+
);
|
| 897 |
+
|
| 898 |
+
HRESULT GetFilterPropertyRange(
|
| 899 |
+
[in, annotation("_In_")] UINT FilterSetting,
|
| 900 |
+
[out, annotation("_Out_")] DXVA2_ValueRange* pRange
|
| 901 |
+
);
|
| 902 |
+
|
| 903 |
+
HRESULT VideoProcessBlt(
|
| 904 |
+
[in, annotation("_In_")] IDirect3DSurface9* pRenderTarget,
|
| 905 |
+
[in, annotation("_In_")] const DXVA2_VideoProcessBltParams* pBltParams,
|
| 906 |
+
[in, size_is(NumSamples), annotation("_In_reads_(NumSamples)")] const DXVA2_VideoSample* pSamples,
|
| 907 |
+
[in, annotation("_In_")] UINT NumSamples,
|
| 908 |
+
[out, annotation("_Inout_opt_")] HANDLE* pHandleComplete // reserved
|
| 909 |
+
);
|
| 910 |
+
};
|
| 911 |
+
|
| 912 |
+
typedef enum
|
| 913 |
+
{
|
| 914 |
+
DXVA2_SurfaceType_DecoderRenderTarget = 0,
|
| 915 |
+
DXVA2_SurfaceType_ProcessorRenderTarget = 1,
|
| 916 |
+
DXVA2_SurfaceType_D3DRenderTargetTexture = 2
|
| 917 |
+
} DXVA2_SurfaceType;
|
| 918 |
+
|
| 919 |
+
//=============================================================================
|
| 920 |
+
// Description:
|
| 921 |
+
//
|
| 922 |
+
// IDirectXVideoMemoryConfiguration is used by video decoders
|
| 923 |
+
// and transforms to agree the type of video memory to be allocated
|
| 924 |
+
// for uncompressed surfaces used as inputs or outputs
|
| 925 |
+
//
|
| 926 |
+
// For example, a video decoder will acquire a service implementing
|
| 927 |
+
// this interface through a service provider such as the Enhanced Video
|
| 928 |
+
// renderer. The decoder enumerates the service's preferred surface types
|
| 929 |
+
// and chooses the first acceptable one. Then the decoder creates output
|
| 930 |
+
// surfaces of this type and passes the results of the decode (often created
|
| 931 |
+
// using DirectX Video Acceleration Services) as its output
|
| 932 |
+
//
|
| 933 |
+
// This interface is used along with other information, for example pixel
|
| 934 |
+
// format information and required buffer queue depth to determine the
|
| 935 |
+
// surfaces to allocate
|
| 936 |
+
//
|
| 937 |
+
// There is no way to 'unset' the type of surface to use. Other context
|
| 938 |
+
// in the contract between objects may invalidate the type selected. For example
|
| 939 |
+
// in DirectShow disconnecting 2 filters invalidates any prior agreement between
|
| 940 |
+
// the two filters about the surface type to use for media samples.
|
| 941 |
+
//
|
| 942 |
+
[
|
| 943 |
+
object,
|
| 944 |
+
uuid(b7f916dd-db3b-49c1-84d7-e45ef99ec726),
|
| 945 |
+
helpstring("IDirectXVideoMemoryConfiguration Interface"),
|
| 946 |
+
local
|
| 947 |
+
]
|
| 948 |
+
interface IDirectXVideoMemoryConfiguration : IUnknown
|
| 949 |
+
{
|
| 950 |
+
//=============================================================================
|
| 951 |
+
// Description:
|
| 952 |
+
// Returns acceptable surface types in preference order starting at index 0
|
| 953 |
+
// for the most preferred surface type
|
| 954 |
+
//
|
| 955 |
+
// Parameters:
|
| 956 |
+
// dwTypeIndex - 0-based index saying which preferred surface type to
|
| 957 |
+
// return
|
| 958 |
+
// pdwType - Surface type returned for that index
|
| 959 |
+
//
|
| 960 |
+
// Return Values:
|
| 961 |
+
//
|
| 962 |
+
// S_OK - returned valid acceptable type
|
| 963 |
+
// Failure code - dwIndex beyond range of acceptable surface type indexes
|
| 964 |
+
//
|
| 965 |
+
|
| 966 |
+
HRESULT GetAvailableSurfaceTypeByIndex(
|
| 967 |
+
[in, annotation("_In_")] DWORD dwTypeIndex,
|
| 968 |
+
[out, annotation("_Out_")] DXVA2_SurfaceType *pdwType
|
| 969 |
+
);
|
| 970 |
+
|
| 971 |
+
//==============================================================================
|
| 972 |
+
// Description:
|
| 973 |
+
// Selects the surface type to be used
|
| 974 |
+
//
|
| 975 |
+
//
|
| 976 |
+
// Parameters:
|
| 977 |
+
// dwType - Type to be used
|
| 978 |
+
//
|
| 979 |
+
// Return Values:
|
| 980 |
+
// S_OK - surface type accepted
|
| 981 |
+
// Failure code - surface type rejected
|
| 982 |
+
//
|
| 983 |
+
|
| 984 |
+
HRESULT SetSurfaceType(
|
| 985 |
+
[in, annotation("_In_")] DXVA2_SurfaceType dwType
|
| 986 |
+
);
|
| 987 |
+
};
|
| 988 |
+
|
| 989 |
+
//////////////////////////////////////////////////////////////////////////////
|
| 990 |
+
//////////////////////////////////////////////////////////////////////////////
|
| 991 |
+
|
| 992 |
+
cpp_quote("STDAPI DXVA2CreateDirect3DDeviceManager9(")
|
| 993 |
+
cpp_quote(" _Out_ UINT* pResetToken,")
|
| 994 |
+
cpp_quote(" _Outptr_ IDirect3DDeviceManager9** ppDeviceManager")
|
| 995 |
+
cpp_quote(" );")
|
| 996 |
+
|
| 997 |
+
cpp_quote("STDAPI DXVA2CreateVideoService(")
|
| 998 |
+
cpp_quote(" _In_ IDirect3DDevice9* pDD,")
|
| 999 |
+
cpp_quote(" _In_ REFIID riid,")
|
| 1000 |
+
cpp_quote(" _Outptr_ void** ppService")
|
| 1001 |
+
cpp_quote(" );")
|
| 1002 |
+
|
| 1003 |
+
cpp_quote("#endif // _D3D9_H_")
|
| 1004 |
+
|
| 1005 |
+
//=============================================================================
|
| 1006 |
+
// Description:
|
| 1007 |
+
//
|
| 1008 |
+
// DXVA2_Fixed32 helper inline functions.
|
| 1009 |
+
//
|
| 1010 |
+
|
| 1011 |
+
cpp_quote("__inline DXVA2_Fixed32 DXVA2FloatToFixed(_In_ const float _float_)")
|
| 1012 |
+
cpp_quote("{")
|
| 1013 |
+
cpp_quote(" DXVA2_Fixed32 _fixed_;")
|
| 1014 |
+
cpp_quote(" _fixed_.Fraction = LOWORD(_float_ * 0x10000);")
|
| 1015 |
+
cpp_quote(" _fixed_.Value = HIWORD(_float_ * 0x10000);")
|
| 1016 |
+
cpp_quote(" return _fixed_;")
|
| 1017 |
+
cpp_quote("}")
|
| 1018 |
+
|
| 1019 |
+
cpp_quote("__inline float DXVA2FixedToFloat(_In_ const DXVA2_Fixed32 _fixed_)")
|
| 1020 |
+
cpp_quote("{")
|
| 1021 |
+
cpp_quote(" return (FLOAT)_fixed_.Value + (FLOAT)_fixed_.Fraction / 0x10000;")
|
| 1022 |
+
cpp_quote("}")
|
| 1023 |
+
|
| 1024 |
+
cpp_quote("__inline const DXVA2_Fixed32 DXVA2_Fixed32TransparentAlpha()")
|
| 1025 |
+
cpp_quote("{")
|
| 1026 |
+
cpp_quote(" DXVA2_Fixed32 _fixed_ = {0, 0};")
|
| 1027 |
+
cpp_quote(" return _fixed_;")
|
| 1028 |
+
cpp_quote("}")
|
| 1029 |
+
|
| 1030 |
+
cpp_quote("__inline const DXVA2_Fixed32 DXVA2_Fixed32OpaqueAlpha()")
|
| 1031 |
+
cpp_quote("{")
|
| 1032 |
+
cpp_quote(" DXVA2_Fixed32 _fixed_ = {0, 1};")
|
| 1033 |
+
cpp_quote(" return _fixed_;")
|
| 1034 |
+
cpp_quote("}")
|
| 1035 |
+
|
| 1036 |
+
cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */")
|
| 1037 |
+
#pragma endregion
|
| 1038 |
+
|
| 1039 |
+
cpp_quote("#endif")
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva2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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//------------------------------------------------------------------------------
|
| 2 |
+
// File: dxva2SWDev.h
|
| 3 |
+
//
|
| 4 |
+
// Desc: DirectX Video Acceleration 2 header file for software video
|
| 5 |
+
// processing devices
|
| 6 |
+
//
|
| 7 |
+
// Copyright (c) 1999 - 2002, Microsoft Corporation. All rights reserved.
|
| 8 |
+
//------------------------------------------------------------------------------
|
| 9 |
+
|
| 10 |
+
#ifndef __inc_dxva2SWDev_h
|
| 11 |
+
#define __inc_dxva2SWDev_h
|
| 12 |
+
|
| 13 |
+
#include <winapifamily.h>
|
| 14 |
+
|
| 15 |
+
#pragma region Desktop Family
|
| 16 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 17 |
+
|
| 18 |
+
#ifdef __cplusplus
|
| 19 |
+
extern "C" {
|
| 20 |
+
#endif
|
| 21 |
+
|
| 22 |
+
typedef enum _DXVA2_SampleFlags
|
| 23 |
+
{
|
| 24 |
+
DXVA2_SampleFlag_Palette_Changed = 0x00000001,
|
| 25 |
+
DXVA2_SampleFlag_SrcRect_Changed = 0x00000002,
|
| 26 |
+
DXVA2_SampleFlag_DstRect_Changed = 0x00000004,
|
| 27 |
+
DXVA2_SampleFlag_ColorData_Changed = 0x00000008,
|
| 28 |
+
DXVA2_SampleFlag_PlanarAlpha_Changed = 0x00000010,
|
| 29 |
+
DXVA2_SampleFlag_RFF = 0x00010000,
|
| 30 |
+
DXVA2_SampleFlag_TFF = 0x00020000,
|
| 31 |
+
DXVA2_SampleFlag_RFF_TFF_Present = 0x00040000,
|
| 32 |
+
DXVA2_SampleFlagsMask = 0xFFFF001F
|
| 33 |
+
} DXVA2_SampleFlags;
|
| 34 |
+
|
| 35 |
+
typedef enum _DXVA2_DestinationFlags
|
| 36 |
+
{
|
| 37 |
+
DXVA2_DestinationFlag_Background_Changed = 0x00000001,
|
| 38 |
+
DXVA2_DestinationFlag_TargetRect_Changed = 0x00000002,
|
| 39 |
+
DXVA2_DestinationFlag_ColorData_Changed = 0x00000004,
|
| 40 |
+
DXVA2_DestinationFlag_Alpha_Changed = 0x00000008,
|
| 41 |
+
DXVA2_DestinationFlag_RFF = 0x00010000,
|
| 42 |
+
DXVA2_DestinationFlag_TFF = 0x00020000,
|
| 43 |
+
DXVA2_DestinationFlag_RFF_TFF_Present = 0x00040000,
|
| 44 |
+
DXVA2_DestinationFlagMask = 0xFFFF000F
|
| 45 |
+
} DXVA2_DestinationFlags;
|
| 46 |
+
|
| 47 |
+
typedef struct _DXVA2_VIDEOSAMPLE
|
| 48 |
+
{
|
| 49 |
+
REFERENCE_TIME Start;
|
| 50 |
+
REFERENCE_TIME End;
|
| 51 |
+
DXVA2_ExtendedFormat SampleFormat;
|
| 52 |
+
UINT SampleFlags;
|
| 53 |
+
VOID* SrcResource;
|
| 54 |
+
RECT SrcRect;
|
| 55 |
+
RECT DstRect;
|
| 56 |
+
DXVA2_AYUVSample8 Pal[16];
|
| 57 |
+
DXVA2_Fixed32 PlanarAlpha;
|
| 58 |
+
} DXVA2_VIDEOSAMPLE;
|
| 59 |
+
|
| 60 |
+
typedef struct _DXVA2_VIDEOPROCESSBLT
|
| 61 |
+
{
|
| 62 |
+
REFERENCE_TIME TargetFrame;
|
| 63 |
+
RECT TargetRect;
|
| 64 |
+
SIZE ConstrictionSize;
|
| 65 |
+
UINT StreamingFlags;
|
| 66 |
+
DXVA2_AYUVSample16 BackgroundColor;
|
| 67 |
+
DXVA2_ExtendedFormat DestFormat;
|
| 68 |
+
UINT DestFlags;
|
| 69 |
+
DXVA2_ProcAmpValues ProcAmpValues;
|
| 70 |
+
DXVA2_Fixed32 Alpha;
|
| 71 |
+
DXVA2_FilterValues NoiseFilterLuma;
|
| 72 |
+
DXVA2_FilterValues NoiseFilterChroma;
|
| 73 |
+
DXVA2_FilterValues DetailFilterLuma;
|
| 74 |
+
DXVA2_FilterValues DetailFilterChroma;
|
| 75 |
+
DXVA2_VIDEOSAMPLE* pSrcSurfaces;
|
| 76 |
+
UINT NumSrcSurfaces;
|
| 77 |
+
} DXVA2_VIDEOPROCESSBLT;
|
| 78 |
+
|
| 79 |
+
#if defined(_D3D9_H_) || defined(_d3d9P_H_)
|
| 80 |
+
|
| 81 |
+
typedef HRESULT (CALLBACK* PDXVA2SW_GETVIDEOPROCESSORRENDERTARGETCOUNT)(
|
| 82 |
+
_In_ const DXVA2_VideoDesc* pVideoDesc,
|
| 83 |
+
_Out_ UINT* pCount
|
| 84 |
+
);
|
| 85 |
+
|
| 86 |
+
typedef HRESULT (CALLBACK* PDXVA2SW_GETVIDEOPROCESSORRENDERTARGETS)(
|
| 87 |
+
_In_ const DXVA2_VideoDesc* pVideoDesc,
|
| 88 |
+
_In_ UINT Count,
|
| 89 |
+
_Out_writes_(Count) D3DFORMAT* pFormats
|
| 90 |
+
);
|
| 91 |
+
|
| 92 |
+
typedef HRESULT (CALLBACK* PDXVA2SW_GETVIDEOPROCESSORCAPS)(
|
| 93 |
+
_In_ const DXVA2_VideoDesc* pVideoDesc,
|
| 94 |
+
_In_ D3DFORMAT RenderTargetFormat,
|
| 95 |
+
_Out_ DXVA2_VideoProcessorCaps* pCaps
|
| 96 |
+
);
|
| 97 |
+
|
| 98 |
+
typedef HRESULT (CALLBACK* PDXVA2SW_GETVIDEOPROCESSORSUBSTREAMFORMATCOUNT)(
|
| 99 |
+
_In_ const DXVA2_VideoDesc* pVideoDesc,
|
| 100 |
+
_In_ D3DFORMAT RenderTargetFormat,
|
| 101 |
+
_Out_ UINT* pCount
|
| 102 |
+
);
|
| 103 |
+
|
| 104 |
+
typedef HRESULT (CALLBACK* PDXVA2SW_GETVIDEOPROCESSORSUBSTREAMFORMATS)(
|
| 105 |
+
_In_ const DXVA2_VideoDesc* pVideoDesc,
|
| 106 |
+
_In_ D3DFORMAT RenderTargetFormat,
|
| 107 |
+
_In_ UINT Count,
|
| 108 |
+
_Out_writes_(Count) D3DFORMAT* pFormats
|
| 109 |
+
);
|
| 110 |
+
|
| 111 |
+
typedef HRESULT (CALLBACK* PDXVA2SW_GETPROCAMPRANGE)(
|
| 112 |
+
_In_ const DXVA2_VideoDesc* pVideoDesc,
|
| 113 |
+
_In_ D3DFORMAT RenderTargetFormat,
|
| 114 |
+
_In_ UINT ProcAmpCap,
|
| 115 |
+
_Out_ DXVA2_ValueRange* pRange
|
| 116 |
+
);
|
| 117 |
+
|
| 118 |
+
typedef HRESULT (CALLBACK* PDXVA2SW_GETFILTERPROPERTYRANGE)(
|
| 119 |
+
_In_ const DXVA2_VideoDesc* pVideoDesc,
|
| 120 |
+
_In_ D3DFORMAT RenderTargetFormat,
|
| 121 |
+
_In_ UINT FilterSetting,
|
| 122 |
+
_Out_ DXVA2_ValueRange* pRange
|
| 123 |
+
);
|
| 124 |
+
|
| 125 |
+
typedef HRESULT (CALLBACK* PDXVA2SW_CREATEVIDEOPROCESSDEVICE)(
|
| 126 |
+
_In_ IDirect3DDevice9* pD3DD9,
|
| 127 |
+
_In_ const DXVA2_VideoDesc* pVideoDesc,
|
| 128 |
+
_In_ D3DFORMAT RenderTargetFormat,
|
| 129 |
+
_In_ UINT MaxSubStreams,
|
| 130 |
+
_Out_ HANDLE* phDevice
|
| 131 |
+
);
|
| 132 |
+
|
| 133 |
+
typedef HRESULT (CALLBACK* PDXVA2SW_DESTROYVIDEOPROCESSDEVICE)(
|
| 134 |
+
_In_ HANDLE hDevice
|
| 135 |
+
);
|
| 136 |
+
|
| 137 |
+
typedef HRESULT (CALLBACK* PDXVA2SW_VIDEOPROCESSBEGINFRAME)(
|
| 138 |
+
_In_ HANDLE hDevice
|
| 139 |
+
);
|
| 140 |
+
|
| 141 |
+
typedef HRESULT (CALLBACK* PDXVA2SW_VIDEOPROCESSENDFRAME)(
|
| 142 |
+
_In_ HANDLE hDevice,
|
| 143 |
+
_Inout_opt_ HANDLE* pHandleComplete
|
| 144 |
+
);
|
| 145 |
+
|
| 146 |
+
typedef HRESULT (CALLBACK* PDXVA2SW_VIDEOPROCESSSETRENDERTARGET)(
|
| 147 |
+
_In_ HANDLE hDevice,
|
| 148 |
+
_In_ IDirect3DSurface9* pRenderTarget
|
| 149 |
+
);
|
| 150 |
+
|
| 151 |
+
typedef HRESULT (CALLBACK* PDXVA2SW_VIDEOPROCESSBLT)(
|
| 152 |
+
_In_ HANDLE hDevice,
|
| 153 |
+
_In_ const DXVA2_VIDEOPROCESSBLT* pBlt
|
| 154 |
+
);
|
| 155 |
+
|
| 156 |
+
typedef struct _DXVA2SW_CALLBACKS
|
| 157 |
+
{
|
| 158 |
+
UINT Size;
|
| 159 |
+
PDXVA2SW_GETVIDEOPROCESSORRENDERTARGETCOUNT GetVideoProcessorRenderTargetCount;
|
| 160 |
+
PDXVA2SW_GETVIDEOPROCESSORRENDERTARGETS GetVideoProcessorRenderTargets;
|
| 161 |
+
PDXVA2SW_GETVIDEOPROCESSORCAPS GetVideoProcessorCaps;
|
| 162 |
+
PDXVA2SW_GETVIDEOPROCESSORSUBSTREAMFORMATCOUNT GetVideoProcessorSubStreamFormatCount;
|
| 163 |
+
PDXVA2SW_GETVIDEOPROCESSORSUBSTREAMFORMATS GetVideoProcessorSubStreamFormats;
|
| 164 |
+
PDXVA2SW_GETPROCAMPRANGE GetProcAmpRange;
|
| 165 |
+
PDXVA2SW_GETFILTERPROPERTYRANGE GetFilterPropertyRange;
|
| 166 |
+
PDXVA2SW_CREATEVIDEOPROCESSDEVICE CreateVideoProcessDevice;
|
| 167 |
+
PDXVA2SW_DESTROYVIDEOPROCESSDEVICE DestroyVideoProcessDevice;
|
| 168 |
+
PDXVA2SW_VIDEOPROCESSBEGINFRAME VideoProcessBeginFrame;
|
| 169 |
+
PDXVA2SW_VIDEOPROCESSENDFRAME VideoProcessEndFrame;
|
| 170 |
+
PDXVA2SW_VIDEOPROCESSSETRENDERTARGET VideoProcessSetRenderTarget;
|
| 171 |
+
PDXVA2SW_VIDEOPROCESSBLT VideoProcessBlt;
|
| 172 |
+
} DXVA2SW_CALLBACKS, *PDXVA2SW_CALLBACKS;
|
| 173 |
+
|
| 174 |
+
#endif // _D3D9_H_
|
| 175 |
+
|
| 176 |
+
#ifdef __cplusplus
|
| 177 |
+
}
|
| 178 |
+
#endif
|
| 179 |
+
|
| 180 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 181 |
+
#pragma endregion
|
| 182 |
+
|
| 183 |
+
#endif
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva2trace.h
ADDED
|
@@ -0,0 +1,163 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//------------------------------------------------------------------------------
|
| 2 |
+
// File: dxva2Trace.h
|
| 3 |
+
//
|
| 4 |
+
// Desc: DirectX Video Acceleration 2 header file for ETW data
|
| 5 |
+
//
|
| 6 |
+
// Copyright (c) 1999 - 2005, Microsoft Corporation. All rights reserved.
|
| 7 |
+
//------------------------------------------------------------------------------
|
| 8 |
+
|
| 9 |
+
#ifndef __inc_dxva2Trace_h
|
| 10 |
+
#define __inc_dxva2Trace_h
|
| 11 |
+
|
| 12 |
+
#include <winapifamily.h>
|
| 13 |
+
|
| 14 |
+
#pragma region Desktop Family
|
| 15 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 16 |
+
|
| 17 |
+
#ifdef __cplusplus
|
| 18 |
+
extern "C" {
|
| 19 |
+
#endif
|
| 20 |
+
|
| 21 |
+
DEFINE_GUID(DXVA2Trace_Control, 0xa0386e75,0xf70c,0x464c,
|
| 22 |
+
0xa9, 0xce, 0x33, 0xc4, 0x4e, 0x09, 0x16, 0x23);
|
| 23 |
+
|
| 24 |
+
// -------------------------------------------------------------------------
|
| 25 |
+
// DXVA2 Video Decoder ETW definitions
|
| 26 |
+
//
|
| 27 |
+
// There are event for:
|
| 28 |
+
// Device creation
|
| 29 |
+
// Device destruction
|
| 30 |
+
//
|
| 31 |
+
// When the device is being used there are events for:
|
| 32 |
+
// Begin frame
|
| 33 |
+
// Begin execute
|
| 34 |
+
// End execute
|
| 35 |
+
// End frame
|
| 36 |
+
// -------------------------------------------------------------------------
|
| 37 |
+
//
|
| 38 |
+
typedef struct {
|
| 39 |
+
#ifndef DXVA2Trace_PostProcessing
|
| 40 |
+
EVENT_TRACE_HEADER wmiHeader;
|
| 41 |
+
#endif
|
| 42 |
+
ULONGLONG pObject;
|
| 43 |
+
ULONGLONG pD3DDevice;
|
| 44 |
+
GUID DeviceGuid;
|
| 45 |
+
ULONG Width;
|
| 46 |
+
ULONG Height;
|
| 47 |
+
BOOL Enter;
|
| 48 |
+
} DXVA2Trace_DecodeDevCreatedData;
|
| 49 |
+
|
| 50 |
+
typedef struct {
|
| 51 |
+
#ifndef DXVA2Trace_PostProcessing
|
| 52 |
+
EVENT_TRACE_HEADER wmiHeader;
|
| 53 |
+
#endif
|
| 54 |
+
ULONGLONG pObject;
|
| 55 |
+
BOOL Enter;
|
| 56 |
+
} DXVA2Trace_DecodeDeviceData;
|
| 57 |
+
|
| 58 |
+
typedef DXVA2Trace_DecodeDeviceData DXVA2Trace_DecodeDevDestroyedData;
|
| 59 |
+
typedef DXVA2Trace_DecodeDeviceData DXVA2Trace_DecodeDevExecuteData;
|
| 60 |
+
typedef DXVA2Trace_DecodeDeviceData DXVA2Trace_DecodeDevEndFrameData;
|
| 61 |
+
|
| 62 |
+
typedef struct {
|
| 63 |
+
#ifndef DXVA2Trace_PostProcessing
|
| 64 |
+
EVENT_TRACE_HEADER wmiHeader;
|
| 65 |
+
#endif
|
| 66 |
+
ULONGLONG pObject;
|
| 67 |
+
ULONGLONG pRenderTarget;
|
| 68 |
+
BOOL Enter;
|
| 69 |
+
} DXVA2Trace_DecodeDevBeginFrameData;
|
| 70 |
+
|
| 71 |
+
typedef struct {
|
| 72 |
+
#ifndef DXVA2Trace_PostProcessing
|
| 73 |
+
EVENT_TRACE_HEADER wmiHeader;
|
| 74 |
+
#endif
|
| 75 |
+
ULONGLONG pObject;
|
| 76 |
+
UINT BufferType;
|
| 77 |
+
BOOL Enter;
|
| 78 |
+
} DXVA2Trace_DecodeDevGetBufferData;
|
| 79 |
+
|
| 80 |
+
DEFINE_GUID(DXVA2Trace_DecodeDevCreated, 0xb4de17a1,0xc5b2,0x44fe,
|
| 81 |
+
0x86, 0xd5, 0xd9, 0x7a, 0x64, 0x81, 0x14, 0xff);
|
| 82 |
+
|
| 83 |
+
DEFINE_GUID(DXVA2Trace_DecodeDevDestroyed, 0x853ebdf2,0x4160,0x421d,
|
| 84 |
+
0x88, 0x93, 0x63, 0xdc, 0xea, 0x4f, 0x18, 0xbb);
|
| 85 |
+
|
| 86 |
+
DEFINE_GUID(DXVA2Trace_DecodeDevBeginFrame, 0x9fd1acf6,0x44cb,0x4637,
|
| 87 |
+
0xbc, 0x62, 0x2c, 0x11, 0xa9, 0x60, 0x8f, 0x90);
|
| 88 |
+
|
| 89 |
+
DEFINE_GUID(DXVA2Trace_DecodeDevExecute,0x850aeb4c,0xd19a,0x4609,
|
| 90 |
+
0xb3, 0xb4, 0xbc, 0xbf, 0x0e, 0x22, 0x12, 0x1e);
|
| 91 |
+
|
| 92 |
+
DEFINE_GUID(DXVA2Trace_DecodeDevGetBuffer,0x57b128fb,0x72cb,0x4137,
|
| 93 |
+
0xa5, 0x75, 0xd9, 0x1f, 0xa3, 0x16, 0x08, 0x97);
|
| 94 |
+
|
| 95 |
+
DEFINE_GUID(DXVA2Trace_DecodeDevEndFrame, 0x9fb3cb33,0x47dc,0x4899,
|
| 96 |
+
0x98, 0xc8, 0xc0, 0xc6, 0xcd, 0x7c, 0xd3, 0xcb);
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
// -------------------------------------------------------------------------
|
| 101 |
+
// DXVA2 Video Processing ETW definitions
|
| 102 |
+
//
|
| 103 |
+
// There are event for:
|
| 104 |
+
// Device creation
|
| 105 |
+
// Device destruction
|
| 106 |
+
//
|
| 107 |
+
// When the device is being used there are events for:
|
| 108 |
+
// Begin VideoProcessBlt
|
| 109 |
+
// End VideoProcessBlt
|
| 110 |
+
// -------------------------------------------------------------------------
|
| 111 |
+
//
|
| 112 |
+
typedef struct {
|
| 113 |
+
#ifndef DXVA2Trace_PostProcessing
|
| 114 |
+
EVENT_TRACE_HEADER wmiHeader;
|
| 115 |
+
#endif
|
| 116 |
+
ULONGLONG pObject;
|
| 117 |
+
ULONGLONG pD3DDevice;
|
| 118 |
+
GUID DeviceGuid;
|
| 119 |
+
ULONG RTFourCC;
|
| 120 |
+
ULONG Width;
|
| 121 |
+
ULONG Height;
|
| 122 |
+
BOOL Enter;
|
| 123 |
+
} DXVA2Trace_VideoProcessDevCreatedData;
|
| 124 |
+
|
| 125 |
+
typedef struct {
|
| 126 |
+
#ifndef DXVA2Trace_PostProcessing
|
| 127 |
+
EVENT_TRACE_HEADER wmiHeader;
|
| 128 |
+
#endif
|
| 129 |
+
ULONGLONG pObject;
|
| 130 |
+
BOOL Enter;
|
| 131 |
+
} DXVA2Trace_VideoProcessDeviceData;
|
| 132 |
+
typedef DXVA2Trace_VideoProcessDeviceData DXVA2Trace_VideoProcessDevDestroyedData;
|
| 133 |
+
typedef DXVA2Trace_VideoProcessDeviceData DXVA2Trace_VideoProcessBltEndData;
|
| 134 |
+
|
| 135 |
+
typedef struct {
|
| 136 |
+
#ifndef DXVA2Trace_PostProcessing
|
| 137 |
+
EVENT_TRACE_HEADER wmiHeader;
|
| 138 |
+
#endif
|
| 139 |
+
ULONGLONG pObject;
|
| 140 |
+
ULONGLONG pRenderTarget;
|
| 141 |
+
ULONGLONG TargetFrameTime;
|
| 142 |
+
RECT TargetRect;
|
| 143 |
+
BOOL Enter;
|
| 144 |
+
} DXVA2TraceVideoProcessBltData;
|
| 145 |
+
#define DXVA2TraceVideoProcessBltDataData DXVA2TraceVideoProcessBltData;
|
| 146 |
+
|
| 147 |
+
DEFINE_GUID(DXVA2Trace_VideoProcessDevCreated, 0x895508c6,0x540d,0x4c87,
|
| 148 |
+
0x98, 0xf8, 0x8d, 0xcb, 0xf2, 0xda, 0xbb, 0x2a);
|
| 149 |
+
|
| 150 |
+
DEFINE_GUID(DXVA2Trace_VideoProcessDevDestroyed, 0xf97f30b1,0xfb49,0x42c7,
|
| 151 |
+
0x8e, 0xe8, 0x88, 0xbd, 0xfa, 0x92, 0xd4, 0xe2);
|
| 152 |
+
|
| 153 |
+
DEFINE_GUID(DXVA2Trace_VideoProcessBlt, 0x69089cc0,0x71ab,0x42d0,
|
| 154 |
+
0x95, 0x3a, 0x28, 0x87, 0xbf, 0x05, 0xa8, 0xaf);
|
| 155 |
+
|
| 156 |
+
#ifdef __cplusplus
|
| 157 |
+
}
|
| 158 |
+
#endif
|
| 159 |
+
|
| 160 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 161 |
+
#pragma endregion
|
| 162 |
+
|
| 163 |
+
#endif
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dxva9typ.h
ADDED
|
@@ -0,0 +1,1009 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*==========================================================================;
|
| 2 |
+
*
|
| 3 |
+
* Copyright (C) Microsoft Corporation. All Rights Reserved.
|
| 4 |
+
*
|
| 5 |
+
* File: dxva9typ.h
|
| 6 |
+
* Content: Direct3D include file
|
| 7 |
+
*
|
| 8 |
+
****************************************************************************/
|
| 9 |
+
|
| 10 |
+
#include <winapifamily.h>
|
| 11 |
+
|
| 12 |
+
#pragma region Desktop Family
|
| 13 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 14 |
+
|
| 15 |
+
#ifndef _DXVA9TYP_H_
|
| 16 |
+
#define _DXVA9TYP_H_
|
| 17 |
+
|
| 18 |
+
#ifndef DIRECT3D_VERSION
|
| 19 |
+
#define DIRECT3D_VERSION 0x0900
|
| 20 |
+
#endif //DIRECT3D_VERSION
|
| 21 |
+
|
| 22 |
+
// include this file content only if compiling for DX9 interfaces
|
| 23 |
+
#if(DIRECT3D_VERSION >= 0x0900)
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
#include <stdlib.h>
|
| 27 |
+
|
| 28 |
+
#define COM_NO_WINDOWS_H
|
| 29 |
+
#include <objbase.h>
|
| 30 |
+
|
| 31 |
+
#include <windows.h>
|
| 32 |
+
|
| 33 |
+
#ifdef __DIRECTX_VA_COPP_ONLY
|
| 34 |
+
#define __DIRECTX_VA_DECODER__
|
| 35 |
+
#define __DIRECTX_VA_PROCAMPCONTROL__
|
| 36 |
+
#define __DIRECTX_VA_DEINTERLACE__
|
| 37 |
+
#endif
|
| 38 |
+
|
| 39 |
+
#ifndef DXVABit
|
| 40 |
+
#define DXVABit(__x) (1 << __x)
|
| 41 |
+
#endif
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
// -------------------------------------------------------------------------
|
| 45 |
+
//
|
| 46 |
+
// The definitions that follow describe the DirectX Video Acceleration
|
| 47 |
+
// decoding interface.
|
| 48 |
+
// This interface is accessable via the IAMVideoAccelerator interface.
|
| 49 |
+
//
|
| 50 |
+
// -------------------------------------------------------------------------
|
| 51 |
+
//
|
| 52 |
+
#ifndef __DIRECTX_VA_DECODER__
|
| 53 |
+
#define __DIRECTX_VA_DECODER__
|
| 54 |
+
|
| 55 |
+
/* AYUV sample for 16-entry YUV palette or graphic surface */
|
| 56 |
+
|
| 57 |
+
typedef struct _DXVA_AYUVsample2 {
|
| 58 |
+
BYTE bCrValue;
|
| 59 |
+
BYTE bCbValue;
|
| 60 |
+
BYTE bY_Value;
|
| 61 |
+
BYTE bSampleAlpha8;
|
| 62 |
+
} DXVA_AYUVsample2, *LPDXVA_AYUVsample2;
|
| 63 |
+
|
| 64 |
+
DEFINE_GUID(DXVAp_ModeMPEG2_A, 0x1b81be0A, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
|
| 65 |
+
DEFINE_GUID(DXVAp_ModeMPEG2_C, 0x1b81be0C, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
|
| 66 |
+
DEFINE_GUID(DXVAp_NoEncrypt, 0x1b81beD0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
|
| 67 |
+
|
| 68 |
+
#pragma pack(push, BeforeDXVApacking, 1)
|
| 69 |
+
|
| 70 |
+
typedef struct _DXVA_BufferDescription {
|
| 71 |
+
DWORD dwTypeIndex;
|
| 72 |
+
DWORD dwBufferIndex;
|
| 73 |
+
DWORD dwDataOffset;
|
| 74 |
+
DWORD dwDataSize;
|
| 75 |
+
DWORD dwFirstMBaddress;
|
| 76 |
+
DWORD dwNumMBsInBuffer;
|
| 77 |
+
DWORD dwWidth;
|
| 78 |
+
DWORD dwHeight;
|
| 79 |
+
DWORD dwStride;
|
| 80 |
+
DWORD dwReservedBits;
|
| 81 |
+
} DXVA_BufferDescription, *LPDXVA_BufferDescription;
|
| 82 |
+
|
| 83 |
+
typedef DWORD DXVA_ConfigQueryOrReplyFunc, *LPDXVA_ConfigQueryOrReplyFunc;
|
| 84 |
+
|
| 85 |
+
#define DXVA_QUERYORREPLYFUNCFLAG_DECODER_PROBE_QUERY 0xFFFFF1
|
| 86 |
+
#define DXVA_QUERYORREPLYFUNCFLAG_DECODER_LOCK_QUERY 0xFFFFF5
|
| 87 |
+
#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_PROBE_OK_COPY 0xFFFFF8
|
| 88 |
+
#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_PROBE_OK_PLUS 0xFFFFF9
|
| 89 |
+
#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_LOCK_OK_COPY 0xFFFFFC
|
| 90 |
+
#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_PROBE_FALSE_PLUS 0xFFFFFB
|
| 91 |
+
#define DXVA_QUERYORREPLYFUNCFLAG_ACCEL_LOCK_FALSE_PLUS 0xFFFFFF
|
| 92 |
+
|
| 93 |
+
#define DXVA_PICTURE_DECODE_BUFFER 1
|
| 94 |
+
#define DXVA_MACROBLOCK_CONTROL_BUFFER 2
|
| 95 |
+
#define DXVA_RESIDUAL_DIFFERENCE_BUFFER 3
|
| 96 |
+
#define DXVA_DEBLOCKING_CONTROL_BUFFER 4
|
| 97 |
+
#define DXVA_INVERSE_QUANTIZATION_MATRIX_BUFFER 5
|
| 98 |
+
#define DXVA_SLICE_CONTROL_BUFFER 6
|
| 99 |
+
#define DXVA_BITSTREAM_DATA_BUFFER 7
|
| 100 |
+
#define DXVA_AYUV_BUFFER 8
|
| 101 |
+
#define DXVA_IA44_SURFACE_BUFFER 9
|
| 102 |
+
#define DXVA_DPXD_SURFACE_BUFFER 10
|
| 103 |
+
#define DXVA_HIGHLIGHT_BUFFER 11
|
| 104 |
+
#define DXVA_DCCMD_SURFACE_BUFFER 12
|
| 105 |
+
#define DXVA_ALPHA_BLEND_COMBINATION_BUFFER 13
|
| 106 |
+
#define DXVA_PICTURE_RESAMPLE_BUFFER 14
|
| 107 |
+
#define DXVA_READ_BACK_BUFFER 15
|
| 108 |
+
|
| 109 |
+
typedef struct _DXVA_ConfigPictureDecode {
|
| 110 |
+
|
| 111 |
+
// Operation Indicated
|
| 112 |
+
DXVA_ConfigQueryOrReplyFunc dwFunction;
|
| 113 |
+
|
| 114 |
+
// Alignment
|
| 115 |
+
DWORD dwReservedBits[3];
|
| 116 |
+
|
| 117 |
+
// Encryption GUIDs
|
| 118 |
+
GUID guidConfigBitstreamEncryption;
|
| 119 |
+
GUID guidConfigMBcontrolEncryption;
|
| 120 |
+
GUID guidConfigResidDiffEncryption;
|
| 121 |
+
|
| 122 |
+
// Bitstream Processing Indicator
|
| 123 |
+
BYTE bConfigBitstreamRaw;
|
| 124 |
+
|
| 125 |
+
// Macroblock Control Config
|
| 126 |
+
BYTE bConfigMBcontrolRasterOrder;
|
| 127 |
+
|
| 128 |
+
// Host Resid Diff Config
|
| 129 |
+
BYTE bConfigResidDiffHost;
|
| 130 |
+
BYTE bConfigSpatialResid8;
|
| 131 |
+
BYTE bConfigResid8Subtraction;
|
| 132 |
+
BYTE bConfigSpatialHost8or9Clipping;
|
| 133 |
+
BYTE bConfigSpatialResidInterleaved;
|
| 134 |
+
BYTE bConfigIntraResidUnsigned;
|
| 135 |
+
|
| 136 |
+
// Accelerator Resid Diff Config
|
| 137 |
+
BYTE bConfigResidDiffAccelerator;
|
| 138 |
+
BYTE bConfigHostInverseScan;
|
| 139 |
+
BYTE bConfigSpecificIDCT;
|
| 140 |
+
BYTE bConfig4GroupedCoefs;
|
| 141 |
+
} DXVA_ConfigPictureDecode, *LPDXVA_ConfigPictureDecode;
|
| 142 |
+
|
| 143 |
+
typedef struct _DXVA_PictureParameters {
|
| 144 |
+
|
| 145 |
+
WORD wDecodedPictureIndex;
|
| 146 |
+
WORD wDeblockedPictureIndex;
|
| 147 |
+
|
| 148 |
+
WORD wForwardRefPictureIndex;
|
| 149 |
+
WORD wBackwardRefPictureIndex;
|
| 150 |
+
|
| 151 |
+
WORD wPicWidthInMBminus1;
|
| 152 |
+
WORD wPicHeightInMBminus1;
|
| 153 |
+
|
| 154 |
+
BYTE bMacroblockWidthMinus1;
|
| 155 |
+
BYTE bMacroblockHeightMinus1;
|
| 156 |
+
|
| 157 |
+
BYTE bBlockWidthMinus1;
|
| 158 |
+
BYTE bBlockHeightMinus1;
|
| 159 |
+
|
| 160 |
+
BYTE bBPPminus1;
|
| 161 |
+
|
| 162 |
+
BYTE bPicStructure;
|
| 163 |
+
BYTE bSecondField;
|
| 164 |
+
BYTE bPicIntra;
|
| 165 |
+
BYTE bPicBackwardPrediction;
|
| 166 |
+
|
| 167 |
+
BYTE bBidirectionalAveragingMode;
|
| 168 |
+
BYTE bMVprecisionAndChromaRelation;
|
| 169 |
+
BYTE bChromaFormat;
|
| 170 |
+
|
| 171 |
+
BYTE bPicScanFixed;
|
| 172 |
+
BYTE bPicScanMethod;
|
| 173 |
+
BYTE bPicReadbackRequests;
|
| 174 |
+
|
| 175 |
+
BYTE bRcontrol;
|
| 176 |
+
BYTE bPicSpatialResid8;
|
| 177 |
+
BYTE bPicOverflowBlocks;
|
| 178 |
+
BYTE bPicExtrapolation;
|
| 179 |
+
|
| 180 |
+
BYTE bPicDeblocked;
|
| 181 |
+
BYTE bPicDeblockConfined;
|
| 182 |
+
BYTE bPic4MVallowed;
|
| 183 |
+
BYTE bPicOBMC;
|
| 184 |
+
BYTE bPicBinPB;
|
| 185 |
+
BYTE bMV_RPS;
|
| 186 |
+
|
| 187 |
+
BYTE bReservedBits;
|
| 188 |
+
|
| 189 |
+
WORD wBitstreamFcodes;
|
| 190 |
+
WORD wBitstreamPCEelements;
|
| 191 |
+
BYTE bBitstreamConcealmentNeed;
|
| 192 |
+
BYTE bBitstreamConcealmentMethod;
|
| 193 |
+
|
| 194 |
+
} DXVA_PictureParameters, *LPDXVA_PictureParameters;
|
| 195 |
+
|
| 196 |
+
#pragma pack(pop, BeforeDXVApacking)
|
| 197 |
+
|
| 198 |
+
#endif /* __DIRECTX_VA_DECODER__ */
|
| 199 |
+
|
| 200 |
+
|
| 201 |
+
#ifndef __DIRECTX_VA_DECODER9__
|
| 202 |
+
#define __DIRECTX_VA_DECODER9__
|
| 203 |
+
// -------------------------------------------------------------------------
|
| 204 |
+
// Decoding data types used with RenderMoComp
|
| 205 |
+
// -------------------------------------------------------------------------
|
| 206 |
+
//
|
| 207 |
+
|
| 208 |
+
typedef struct _DXVAUncompDataInfo
|
| 209 |
+
{
|
| 210 |
+
DWORD UncompWidth; /* Width of uncompressed data */
|
| 211 |
+
DWORD UncompHeight; /* Height of uncompressed data */
|
| 212 |
+
D3DFORMAT UncompFormat; /* Format of uncompressed data */
|
| 213 |
+
} DXVAUncompDataInfo;
|
| 214 |
+
|
| 215 |
+
typedef struct _DXVACompBufferInfo
|
| 216 |
+
{
|
| 217 |
+
DWORD NumCompBuffers; /* Number of buffers reqd for compressed data */
|
| 218 |
+
DWORD WidthToCreate; /* Width of surface to create */
|
| 219 |
+
DWORD HeightToCreate; /* Height of surface to create */
|
| 220 |
+
DWORD BytesToAllocate; /* Total number of bytes used by each surface */
|
| 221 |
+
DWORD Usage; /* Usage used to create the compressed buffer */
|
| 222 |
+
D3DPOOL Pool; /* Pool where the compressed buffer belongs */
|
| 223 |
+
D3DFORMAT Format; /* Format used to create the compressed buffer */
|
| 224 |
+
} DXVACompBufferInfo;
|
| 225 |
+
|
| 226 |
+
typedef struct _DXVABufferInfo
|
| 227 |
+
{
|
| 228 |
+
VOID* pCompSurface; /* Pointer to buffer containing compressed data */
|
| 229 |
+
DWORD DataOffset; /* Offset of relevant data from the beginning of buffer */
|
| 230 |
+
DWORD DataSize; /* Size of relevant data */
|
| 231 |
+
} DXVABufferInfo;
|
| 232 |
+
|
| 233 |
+
#endif /* __DIRECTX_VA_DECODER9__ */
|
| 234 |
+
|
| 235 |
+
|
| 236 |
+
// -------------------------------------------------------------------------
|
| 237 |
+
//
|
| 238 |
+
// D3DFORMAT describes a pixel memory layout, DXVA sample format contains
|
| 239 |
+
// additional information that describes how the pixels should be interpreted.
|
| 240 |
+
//
|
| 241 |
+
// DXVA Extended color data - occupies the SampleFormat DWORD
|
| 242 |
+
// data fields.
|
| 243 |
+
// -------------------------------------------------------------------------
|
| 244 |
+
#ifndef __DIRECTX_VA_SAMPLEFORMAT__
|
| 245 |
+
#define __DIRECTX_VA_SAMPLEFORMAT__
|
| 246 |
+
|
| 247 |
+
typedef enum _DXVA_SampleFormat {
|
| 248 |
+
DXVA_SampleFormatMask = 0xFF, // 8 bits used for DXVA Sample format
|
| 249 |
+
DXVA_SampleUnknown = 0,
|
| 250 |
+
DXVA_SamplePreviousFrame = 1,
|
| 251 |
+
DXVA_SampleProgressiveFrame = 2,
|
| 252 |
+
DXVA_SampleFieldInterleavedEvenFirst = 3,
|
| 253 |
+
DXVA_SampleFieldInterleavedOddFirst = 4,
|
| 254 |
+
DXVA_SampleFieldSingleEven = 5,
|
| 255 |
+
DXVA_SampleFieldSingleOdd = 6,
|
| 256 |
+
DXVA_SampleSubStream = 7
|
| 257 |
+
} DXVA_SampleFormat;
|
| 258 |
+
|
| 259 |
+
#define DXVA_ExtractSampleFormat(_sf) ((_sf) & (DXVA_SampleFormatMask))
|
| 260 |
+
|
| 261 |
+
#define DXVA_ExtractExtColorData(_sf, _Mask, _Shift) \
|
| 262 |
+
(((_sf) & (_Mask)) >> (_Shift))
|
| 263 |
+
|
| 264 |
+
#define DXVABitMask(__n) (~((~0) << __n))
|
| 265 |
+
#define DXVA_ExtColorData_ShiftBase 8
|
| 266 |
+
#define DXVAColorMask(__bits,__base) (DXVABitMask(__bits) << (__base))
|
| 267 |
+
|
| 268 |
+
typedef enum _DXVA_VideoTransferFunction
|
| 269 |
+
{
|
| 270 |
+
DXVA_VideoTransFuncShift = (DXVA_ExtColorData_ShiftBase + 19),
|
| 271 |
+
DXVA_VideoTransFuncMask = DXVAColorMask(5, DXVA_VideoTransFuncShift),
|
| 272 |
+
|
| 273 |
+
DXVA_VideoTransFunc_Unknown = 0,
|
| 274 |
+
DXVA_VideoTransFunc_10 = 1,
|
| 275 |
+
DXVA_VideoTransFunc_18 = 2,
|
| 276 |
+
DXVA_VideoTransFunc_20 = 3,
|
| 277 |
+
DXVA_VideoTransFunc_22 = 4,
|
| 278 |
+
DXVA_VideoTransFunc_22_709 = 5,
|
| 279 |
+
DXVA_VideoTransFunc_22_240M = 6,
|
| 280 |
+
DXVA_VideoTransFunc_22_8bit_sRGB = 7,
|
| 281 |
+
DXVA_VideoTransFunc_28 = 8
|
| 282 |
+
} DXVA_VideoTransferFunction;
|
| 283 |
+
|
| 284 |
+
typedef enum _DXVA_VideoPrimaries
|
| 285 |
+
{
|
| 286 |
+
DXVA_VideoPrimariesShift = (DXVA_ExtColorData_ShiftBase + 14),
|
| 287 |
+
DXVA_VideoPrimariesMask = DXVAColorMask(5, DXVA_VideoPrimariesShift),
|
| 288 |
+
|
| 289 |
+
DXVA_VideoPrimaries_Unknown = 0,
|
| 290 |
+
DXVA_VideoPrimaries_reserved = 1,
|
| 291 |
+
DXVA_VideoPrimaries_BT709 = 2,
|
| 292 |
+
DXVA_VideoPrimaries_BT470_2_SysM = 3,
|
| 293 |
+
DXVA_VideoPrimaries_BT470_2_SysBG = 4,
|
| 294 |
+
DXVA_VideoPrimaries_SMPTE170M = 5,
|
| 295 |
+
DXVA_VideoPrimaries_SMPTE240M = 6,
|
| 296 |
+
DXVA_VideoPrimaries_EBU3213 = 7,
|
| 297 |
+
DXVA_VideoPrimaries_SMPTE_C = 8
|
| 298 |
+
} DXVA_VideoPrimaries;
|
| 299 |
+
|
| 300 |
+
typedef enum _DXVA_VideoLighting
|
| 301 |
+
{
|
| 302 |
+
DXVA_VideoLightingShift = (DXVA_ExtColorData_ShiftBase + 10),
|
| 303 |
+
DXVA_VideoLightingMask = DXVAColorMask(4, DXVA_VideoLightingShift),
|
| 304 |
+
|
| 305 |
+
DXVA_VideoLighting_Unknown = 0,
|
| 306 |
+
DXVA_VideoLighting_bright = 1,
|
| 307 |
+
DXVA_VideoLighting_office = 2,
|
| 308 |
+
DXVA_VideoLighting_dim = 3,
|
| 309 |
+
DXVA_VideoLighting_dark = 4
|
| 310 |
+
} DXVA_VideoLighting;
|
| 311 |
+
|
| 312 |
+
typedef enum _DXVA_VideoTransferMatrix
|
| 313 |
+
{
|
| 314 |
+
DXVA_VideoTransferMatrixShift = (DXVA_ExtColorData_ShiftBase + 7),
|
| 315 |
+
DXVA_VideoTransferMatrixMask = DXVAColorMask(3, DXVA_VideoTransferMatrixShift),
|
| 316 |
+
|
| 317 |
+
DXVA_VideoTransferMatrix_Unknown = 0,
|
| 318 |
+
DXVA_VideoTransferMatrix_BT709 = 1,
|
| 319 |
+
DXVA_VideoTransferMatrix_BT601 = 2,
|
| 320 |
+
DXVA_VideoTransferMatrix_SMPTE240M = 3
|
| 321 |
+
} DXVA_VideoTransferMatrix;
|
| 322 |
+
|
| 323 |
+
typedef enum _DXVA_NominalRange
|
| 324 |
+
{
|
| 325 |
+
DXVA_NominalRangeShift = (DXVA_ExtColorData_ShiftBase + 4),
|
| 326 |
+
DXVA_NominalRangeMask = DXVAColorMask(3, DXVA_NominalRangeShift),
|
| 327 |
+
|
| 328 |
+
DXVA_NominalRange_Unknown = 0,
|
| 329 |
+
DXVA_NominalRange_Normal = 1,
|
| 330 |
+
DXVA_NominalRange_Wide = 2,
|
| 331 |
+
|
| 332 |
+
DXVA_NominalRange_0_255 = 1,
|
| 333 |
+
DXVA_NominalRange_16_235 = 2,
|
| 334 |
+
DXVA_NominalRange_48_208 = 3
|
| 335 |
+
} DXVA_NominalRange;
|
| 336 |
+
|
| 337 |
+
typedef enum _DXVA_VideoChromaSubsampling
|
| 338 |
+
{
|
| 339 |
+
DXVA_VideoChromaSubsamplingShift = (DXVA_ExtColorData_ShiftBase + 0),
|
| 340 |
+
DXVA_VideoChromaSubsamplingMask = DXVAColorMask(4, DXVA_VideoChromaSubsamplingShift),
|
| 341 |
+
|
| 342 |
+
DXVA_VideoChromaSubsampling_Unknown = 0,
|
| 343 |
+
DXVA_VideoChromaSubsampling_ProgressiveChroma = 0x8,
|
| 344 |
+
DXVA_VideoChromaSubsampling_Horizontally_Cosited = 0x4,
|
| 345 |
+
DXVA_VideoChromaSubsampling_Vertically_Cosited = 0x2,
|
| 346 |
+
DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes = 0x1,
|
| 347 |
+
// 4:2:0 variations
|
| 348 |
+
DXVA_VideoChromaSubsampling_MPEG2 = DXVA_VideoChromaSubsampling_Horizontally_Cosited |
|
| 349 |
+
DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes,
|
| 350 |
+
|
| 351 |
+
DXVA_VideoChromaSubsampling_MPEG1 = DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes,
|
| 352 |
+
|
| 353 |
+
DXVA_VideoChromaSubsampling_DV_PAL = DXVA_VideoChromaSubsampling_Horizontally_Cosited |
|
| 354 |
+
DXVA_VideoChromaSubsampling_Vertically_Cosited,
|
| 355 |
+
// 4:4:4, 4:2:2, 4:1:1
|
| 356 |
+
DXVA_VideoChromaSubsampling_Cosited = DXVA_VideoChromaSubsampling_Horizontally_Cosited |
|
| 357 |
+
DXVA_VideoChromaSubsampling_Vertically_Cosited |
|
| 358 |
+
DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes,
|
| 359 |
+
|
| 360 |
+
} DXVA_VideoChromaSubsampling;
|
| 361 |
+
|
| 362 |
+
typedef struct _DXVA_ExtendedFormat
|
| 363 |
+
{
|
| 364 |
+
UINT SampleFormat : 8; // See DXVA_SampleFormat
|
| 365 |
+
UINT VideoChromaSubsampling : 4; // See DXVA_VideoChromaSubSampling
|
| 366 |
+
DXVA_NominalRange NominalRange : 3; // See DXVA_NominalRange
|
| 367 |
+
DXVA_VideoTransferMatrix VideoTransferMatrix : 3; // See DXVA_VideoTransferMatrix
|
| 368 |
+
DXVA_VideoLighting VideoLighting : 4; // See DXVA_VideoLighting
|
| 369 |
+
DXVA_VideoPrimaries VideoPrimaries : 5; // See DXVA_VideoPrimaries
|
| 370 |
+
DXVA_VideoTransferFunction VideoTransferFunction : 5; // See DXVA_VideoTransferFunction
|
| 371 |
+
} DXVA_ExtendedFormat;
|
| 372 |
+
|
| 373 |
+
#endif /* __DIRECTX_VA_SAMPLEFORMAT__ */
|
| 374 |
+
|
| 375 |
+
|
| 376 |
+
// -------------------------------------------------------------------------
|
| 377 |
+
//
|
| 378 |
+
// The definitions that follow describe the video de-interlace interface
|
| 379 |
+
// between the VMR and the graphics device driver. This interface is not
|
| 380 |
+
// accessable via the IAMVideoAccelerator interface.
|
| 381 |
+
//
|
| 382 |
+
// -------------------------------------------------------------------------
|
| 383 |
+
//
|
| 384 |
+
#ifndef __DIRECTX_VA_DEINTERLACE__
|
| 385 |
+
#define __DIRECTX_VA_DEINTERLACE__
|
| 386 |
+
|
| 387 |
+
#ifndef REFERENCE_TME
|
| 388 |
+
typedef LONGLONG REFERENCE_TIME;
|
| 389 |
+
#endif
|
| 390 |
+
|
| 391 |
+
DEFINE_GUID(DXVAp_DeinterlaceBobDevice, 0x335aa36e,0x7884,0x43a4,0x9c,0x91,0x7f,0x87,0xfa,0xf3,0xe3,0x7e);
|
| 392 |
+
DEFINE_GUID(DXVAp_DeinterlaceContainerDevice, 0x0e85cb93,0x3046,0x4ff0,0xae,0xcc,0xd5,0x8c,0xb5,0xf0,0x35,0xfd);
|
| 393 |
+
|
| 394 |
+
#define DXVA_DeinterlaceBobDevice DXVAp_DeinterlaceBobDevice
|
| 395 |
+
#define DXVA_DeinterlaceContainerDevice DXVAp_DeinterlaceContainerDevice
|
| 396 |
+
|
| 397 |
+
#if (DIRECT3D_VERSION < 0x0800) || !defined(DIRECT3D_VERSION)
|
| 398 |
+
typedef DWORD D3DFORMAT;
|
| 399 |
+
enum {
|
| 400 |
+
D3DPOOL_DEFAULT = 0,
|
| 401 |
+
D3DPOOL_MANAGED = 1,
|
| 402 |
+
D3DPOOL_SYSTEMMEM = 2,
|
| 403 |
+
D3DPOOL_SCRATCH = 3,
|
| 404 |
+
D3DPOOL_LOCALVIDMEM = 4,
|
| 405 |
+
D3DPOOL_NONLOCALVIDMEM = 5,
|
| 406 |
+
D3DPOOL_FORCE_DWORD = 0x7fffffff
|
| 407 |
+
};
|
| 408 |
+
#endif
|
| 409 |
+
|
| 410 |
+
// -------------------------------------------------------------------------
|
| 411 |
+
// data structures shared by User mode and Kernel mode.
|
| 412 |
+
// -------------------------------------------------------------------------
|
| 413 |
+
//
|
| 414 |
+
|
| 415 |
+
typedef struct _DXVA_Frequency {
|
| 416 |
+
DWORD Numerator;
|
| 417 |
+
DWORD Denominator;
|
| 418 |
+
} DXVA_Frequency;
|
| 419 |
+
|
| 420 |
+
typedef struct _DXVA_VideoDesc {
|
| 421 |
+
DWORD Size;
|
| 422 |
+
DWORD SampleWidth;
|
| 423 |
+
DWORD SampleHeight;
|
| 424 |
+
DWORD SampleFormat; // also contains extend color data
|
| 425 |
+
D3DFORMAT d3dFormat;
|
| 426 |
+
DXVA_Frequency InputSampleFreq;
|
| 427 |
+
DXVA_Frequency OutputFrameFreq;
|
| 428 |
+
} DXVA_VideoDesc, *LPDXVA_VideoDesc;
|
| 429 |
+
|
| 430 |
+
typedef enum _DXVA_VideoProcessCaps {
|
| 431 |
+
DXVA_VideoProcess_None = 0x0000,
|
| 432 |
+
DXVA_VideoProcess_YUV2RGB = 0x0001,
|
| 433 |
+
DXVA_VideoProcess_StretchX = 0x0002,
|
| 434 |
+
DXVA_VideoProcess_StretchY = 0x0004,
|
| 435 |
+
DXVA_VideoProcess_AlphaBlend = 0x0008,
|
| 436 |
+
DXVA_VideoProcess_SubRects = 0x0010,
|
| 437 |
+
DXVA_VideoProcess_SubStreams = 0x0020,
|
| 438 |
+
DXVA_VideoProcess_SubStreamsExtended = 0x0040,
|
| 439 |
+
DXVA_VideoProcess_YUV2RGBExtended = 0x0080,
|
| 440 |
+
DXVA_VideoProcess_AlphaBlendExtended = 0x0100
|
| 441 |
+
} DXVA_VideoProcessCaps;
|
| 442 |
+
|
| 443 |
+
typedef enum _DXVA_DeinterlaceTech {
|
| 444 |
+
|
| 445 |
+
// the algorithm is unknown or proprietary
|
| 446 |
+
DXVA_DeinterlaceTech_Unknown = 0x0000,
|
| 447 |
+
|
| 448 |
+
// the algorithm creates the missing lines by repeating
|
| 449 |
+
// the line either above or below it - this method will look very jaggy and
|
| 450 |
+
// isn't recommended
|
| 451 |
+
DXVA_DeinterlaceTech_BOBLineReplicate = 0x0001,
|
| 452 |
+
|
| 453 |
+
// The algorithm creates the missing lines by vertically stretching each
|
| 454 |
+
// video field by a factor of two by averaging two lines
|
| 455 |
+
DXVA_DeinterlaceTech_BOBVerticalStretch = 0x0002,
|
| 456 |
+
|
| 457 |
+
// or using a [-1, 9, 9, -1]/16 filter across four lines.
|
| 458 |
+
DXVA_DeinterlaceTech_BOBVerticalStretch4Tap = 0x0100,
|
| 459 |
+
|
| 460 |
+
// the pixels in the missing line are recreated by a median filtering operation
|
| 461 |
+
DXVA_DeinterlaceTech_MedianFiltering = 0x0004,
|
| 462 |
+
|
| 463 |
+
// the pixels in the missing line are recreated by an edge filter.
|
| 464 |
+
// In this process, spatial directional filters are applied to determine
|
| 465 |
+
// the orientation of edges in the picture content, and missing
|
| 466 |
+
// pixels are created by filtering along (rather than across) the
|
| 467 |
+
// detected edges.
|
| 468 |
+
DXVA_DeinterlaceTech_EdgeFiltering = 0x0010,
|
| 469 |
+
|
| 470 |
+
// the pixels in the missing line are recreated by switching on a field by
|
| 471 |
+
// field basis between using either spatial or temporal interpolation
|
| 472 |
+
// depending on the amount of motion.
|
| 473 |
+
DXVA_DeinterlaceTech_FieldAdaptive = 0x0020,
|
| 474 |
+
|
| 475 |
+
// the pixels in the missing line are recreated by switching on a pixel by pixel
|
| 476 |
+
// basis between using either spatial or temporal interpolation depending on
|
| 477 |
+
// the amount of motion..
|
| 478 |
+
DXVA_DeinterlaceTech_PixelAdaptive = 0x0040,
|
| 479 |
+
|
| 480 |
+
// Motion Vector Steering identifies objects within a sequence of video
|
| 481 |
+
// fields. The missing pixels are recreated after first aligning the
|
| 482 |
+
// movement axes of the individual objects in the scene to make them
|
| 483 |
+
// parallel with the time axis.
|
| 484 |
+
DXVA_DeinterlaceTech_MotionVectorSteered = 0x0080
|
| 485 |
+
|
| 486 |
+
} DXVA_DeinterlaceTech;
|
| 487 |
+
|
| 488 |
+
typedef struct _DXVA_VideoSample {
|
| 489 |
+
REFERENCE_TIME rtStart;
|
| 490 |
+
REFERENCE_TIME rtEnd;
|
| 491 |
+
DXVA_SampleFormat SampleFormat; // only lower 8 bits used
|
| 492 |
+
VOID* lpDDSSrcSurface;
|
| 493 |
+
} DXVA_VideoSample, *LPDXVA_VideoSample;
|
| 494 |
+
|
| 495 |
+
// -------------------------------------------------------------------------
|
| 496 |
+
// DeinterlaceBltEx declarations
|
| 497 |
+
// -------------------------------------------------------------------------
|
| 498 |
+
//
|
| 499 |
+
|
| 500 |
+
typedef enum _DXVA_SampleFlags {
|
| 501 |
+
DXVA_SampleFlagsMask = DXVABit(3)|DXVABit(2)|DXVABit(1)|DXVABit(0),
|
| 502 |
+
|
| 503 |
+
DXVA_SampleFlag_Palette_Changed = 0x0001,
|
| 504 |
+
DXVA_SampleFlag_SrcRect_Changed = 0x0002,
|
| 505 |
+
DXVA_SampleFlag_DstRect_Changed = 0x0004,
|
| 506 |
+
DXVA_SampleFlag_ColorData_Changed = 0x0008,
|
| 507 |
+
} DXVA_SampleFlags;
|
| 508 |
+
|
| 509 |
+
typedef enum _DXVA_DestinationFlags {
|
| 510 |
+
DXVA_DestinationFlagMask = DXVABit(3)|DXVABit(2)|DXVABit(1)|DXVABit(0),
|
| 511 |
+
|
| 512 |
+
DXVA_DestinationFlag_Background_Changed = 0x0001,
|
| 513 |
+
DXVA_DestinationFlag_TargetRect_Changed = 0x0002,
|
| 514 |
+
DXVA_DestinationFlag_ColorData_Changed = 0x0004,
|
| 515 |
+
DXVA_DestinationFlag_Alpha_Changed = 0x0008
|
| 516 |
+
} DXVA_DestinationFlags;
|
| 517 |
+
|
| 518 |
+
typedef struct _DXVA_VideoSample2 {
|
| 519 |
+
#ifdef _WIN64
|
| 520 |
+
DWORD Size;
|
| 521 |
+
DWORD Reserved;
|
| 522 |
+
#endif
|
| 523 |
+
REFERENCE_TIME rtStart;
|
| 524 |
+
REFERENCE_TIME rtEnd;
|
| 525 |
+
DWORD SampleFormat; // cast to DXVA_ExtendedFormat, or use Extract macros
|
| 526 |
+
DWORD SampleFlags;
|
| 527 |
+
VOID* lpDDSSrcSurface;
|
| 528 |
+
RECT rcSrc;
|
| 529 |
+
RECT rcDst;
|
| 530 |
+
DXVA_AYUVsample2 Palette[16];
|
| 531 |
+
} DXVA_VideoSample2, *LPDXVA_VideoSample2;
|
| 532 |
+
|
| 533 |
+
typedef struct _DXVA_DeinterlaceCaps {
|
| 534 |
+
DWORD Size;
|
| 535 |
+
DWORD NumPreviousOutputFrames;
|
| 536 |
+
DWORD InputPool;
|
| 537 |
+
DWORD NumForwardRefSamples;
|
| 538 |
+
DWORD NumBackwardRefSamples;
|
| 539 |
+
D3DFORMAT d3dOutputFormat;
|
| 540 |
+
DXVA_VideoProcessCaps VideoProcessingCaps;
|
| 541 |
+
DXVA_DeinterlaceTech DeinterlaceTechnology;
|
| 542 |
+
} DXVA_DeinterlaceCaps, *LPDXVA_DeinterlaceCaps;
|
| 543 |
+
|
| 544 |
+
// -------------------------------------------------------------------------
|
| 545 |
+
// Data types used with RenderMoComp in kernel mode
|
| 546 |
+
// -------------------------------------------------------------------------
|
| 547 |
+
//
|
| 548 |
+
|
| 549 |
+
// Function codes for RenderMoComp
|
| 550 |
+
|
| 551 |
+
#define MAX_DEINTERLACE_SURFACES 32
|
| 552 |
+
|
| 553 |
+
#ifdef _WIN64
|
| 554 |
+
//
|
| 555 |
+
// These structures are used for thunking 32 bit DeinterlaceBltEx calls on
|
| 556 |
+
// 64 bit drivers.
|
| 557 |
+
//
|
| 558 |
+
typedef struct _DXVA_VideoSample32 {
|
| 559 |
+
REFERENCE_TIME rtStart;
|
| 560 |
+
REFERENCE_TIME rtEnd;
|
| 561 |
+
DWORD SampleFormat;
|
| 562 |
+
DWORD SampleFlags;
|
| 563 |
+
DWORD lpDDSSrcSurface; // 32 bit pointer size
|
| 564 |
+
RECT rcSrc;
|
| 565 |
+
RECT rcDst;
|
| 566 |
+
DXVA_AYUVsample2 Palette[16];
|
| 567 |
+
// DWORD Pad;
|
| 568 |
+
// 4 bytes of padding added by the compiler to align the struct to 8 bytes.
|
| 569 |
+
} DXVA_VideoSample32;
|
| 570 |
+
|
| 571 |
+
typedef struct _DXVA_DeinterlaceBltEx32 {
|
| 572 |
+
DWORD Size;
|
| 573 |
+
DXVA_AYUVsample2 BackgroundColor;
|
| 574 |
+
RECT rcTarget;
|
| 575 |
+
REFERENCE_TIME rtTarget;
|
| 576 |
+
DWORD NumSourceSurfaces;
|
| 577 |
+
FLOAT Alpha;
|
| 578 |
+
DXVA_VideoSample32 Source[MAX_DEINTERLACE_SURFACES];
|
| 579 |
+
DWORD DestinationFormat;
|
| 580 |
+
DWORD DestinationFlags;
|
| 581 |
+
} DXVA_DeinterlaceBltEx32;
|
| 582 |
+
#endif
|
| 583 |
+
|
| 584 |
+
typedef struct _DXVA_DeinterlaceBlt {
|
| 585 |
+
DWORD Size;
|
| 586 |
+
DWORD Reserved;
|
| 587 |
+
REFERENCE_TIME rtTarget;
|
| 588 |
+
RECT DstRect;
|
| 589 |
+
RECT SrcRect;
|
| 590 |
+
DWORD NumSourceSurfaces;
|
| 591 |
+
FLOAT Alpha;
|
| 592 |
+
DXVA_VideoSample Source[MAX_DEINTERLACE_SURFACES];
|
| 593 |
+
} DXVA_DeinterlaceBlt;
|
| 594 |
+
|
| 595 |
+
#define DXVA_DeinterlaceBltFnCode 0x01
|
| 596 |
+
// lpInput => DXVA_DeinterlaceBlt*
|
| 597 |
+
// lpOuput => NULL /* not currently used */
|
| 598 |
+
|
| 599 |
+
typedef struct _DXVA_DeinterlaceBltEx {
|
| 600 |
+
DWORD Size;
|
| 601 |
+
DXVA_AYUVsample2 BackgroundColor;
|
| 602 |
+
RECT rcTarget;
|
| 603 |
+
REFERENCE_TIME rtTarget;
|
| 604 |
+
DWORD NumSourceSurfaces;
|
| 605 |
+
FLOAT Alpha;
|
| 606 |
+
DXVA_VideoSample2 Source[MAX_DEINTERLACE_SURFACES];
|
| 607 |
+
DWORD DestinationFormat;
|
| 608 |
+
DWORD DestinationFlags;
|
| 609 |
+
} DXVA_DeinterlaceBltEx;
|
| 610 |
+
|
| 611 |
+
#define DXVA_DeinterlaceBltExFnCode 0x02
|
| 612 |
+
// lpInput => DXVA_DeinterlaceBltEx*
|
| 613 |
+
// lpOuput => NULL /* not currently used */
|
| 614 |
+
|
| 615 |
+
#define MAX_DEINTERLACE_DEVICE_GUIDS 32
|
| 616 |
+
typedef struct _DXVA_DeinterlaceQueryAvailableModes {
|
| 617 |
+
DWORD Size;
|
| 618 |
+
DWORD NumGuids;
|
| 619 |
+
GUID Guids[MAX_DEINTERLACE_DEVICE_GUIDS];
|
| 620 |
+
} DXVA_DeinterlaceQueryAvailableModes;
|
| 621 |
+
|
| 622 |
+
#define DXVA_DeinterlaceQueryAvailableModesFnCode 0x01
|
| 623 |
+
// lpInput => DXVA_VideoDesc*
|
| 624 |
+
// lpOuput => DXVA_DeinterlaceQueryAvailableModes*
|
| 625 |
+
|
| 626 |
+
typedef struct _DXVA_DeinterlaceQueryModeCaps {
|
| 627 |
+
DWORD Size;
|
| 628 |
+
GUID Guid;
|
| 629 |
+
DXVA_VideoDesc VideoDesc;
|
| 630 |
+
} DXVA_DeinterlaceQueryModeCaps;
|
| 631 |
+
|
| 632 |
+
#define DXVA_DeinterlaceQueryModeCapsFnCode 0x02
|
| 633 |
+
// lpInput => DXVA_DeinterlaceQueryModeCaps*
|
| 634 |
+
// lpOuput => DXVA_DeinterlaceCaps*
|
| 635 |
+
|
| 636 |
+
#endif /* __DIRECTX_VA_DEINTERLACE__ */
|
| 637 |
+
|
| 638 |
+
// -------------------------------------------------------------------------
|
| 639 |
+
//
|
| 640 |
+
// The definitions that follow describe the video ProcAmp interface
|
| 641 |
+
// between the VMR and the graphics device driver. This interface is not
|
| 642 |
+
// accessable via the IAMVideoAccelerator interface.
|
| 643 |
+
//
|
| 644 |
+
// -------------------------------------------------------------------------
|
| 645 |
+
//
|
| 646 |
+
#ifndef __DIRECTX_VA_PROCAMPCONTROL__
|
| 647 |
+
#define __DIRECTX_VA_PROCAMPCONTROL__
|
| 648 |
+
|
| 649 |
+
DEFINE_GUID(DXVA_ProcAmpControlDevice,
|
| 650 |
+
0x9f200913,0x2ffd,0x4056,0x9f,0x1e,0xe1,0xb5,0x08,0xf2,0x2d,0xcf);
|
| 651 |
+
|
| 652 |
+
typedef enum _DXVA_ProcAmpControlProp {
|
| 653 |
+
DXVA_ProcAmp_None = 0x0000,
|
| 654 |
+
DXVA_ProcAmp_Brightness = 0x0001,
|
| 655 |
+
DXVA_ProcAmp_Contrast = 0x0002,
|
| 656 |
+
DXVA_ProcAmp_Hue = 0x0004,
|
| 657 |
+
DXVA_ProcAmp_Saturation = 0x0008
|
| 658 |
+
} DXVA_ProcAmpControlProp;
|
| 659 |
+
|
| 660 |
+
typedef struct _DXVA_ProcAmpControlCaps {
|
| 661 |
+
DWORD Size;
|
| 662 |
+
DWORD InputPool;
|
| 663 |
+
D3DFORMAT d3dOutputFormat;
|
| 664 |
+
DWORD ProcAmpControlProps;// see DXVA_ProcAmpControlProp
|
| 665 |
+
DWORD VideoProcessingCaps;// see DXVA_VideoProcessCaps
|
| 666 |
+
} DXVA_ProcAmpControlCaps, *LPDXVA_ProcAmpControlCaps;
|
| 667 |
+
|
| 668 |
+
#define DXVA_ProcAmpControlQueryCapsFnCode 0x03
|
| 669 |
+
// lpInput => DXVA_VideoDesc*
|
| 670 |
+
// lpOuput => DXVA_ProcAmpControlCaps*
|
| 671 |
+
|
| 672 |
+
typedef struct _DXVA_ProcAmpControlQueryRange {
|
| 673 |
+
DWORD Size;
|
| 674 |
+
DXVA_ProcAmpControlProp ProcAmpControlProp;
|
| 675 |
+
DXVA_VideoDesc VideoDesc;
|
| 676 |
+
} DXVA_ProcAmpControlQueryRange, *LPDXVA_ProcAmpControlQueryRange;
|
| 677 |
+
|
| 678 |
+
typedef struct _DXVA_VideoPropertyRange {
|
| 679 |
+
FLOAT MinValue;
|
| 680 |
+
FLOAT MaxValue;
|
| 681 |
+
FLOAT DefaultValue;
|
| 682 |
+
FLOAT StepSize;
|
| 683 |
+
} DXVA_VideoPropertyRange, *LPDXVA_VideoPropertyRange;
|
| 684 |
+
|
| 685 |
+
#define DXVA_ProcAmpControlQueryRangeFnCode 0x04
|
| 686 |
+
// lpInput => DXVA_ProcAmpControlQueryRange*
|
| 687 |
+
// lpOuput => DXVA_VideoPropertyRange*
|
| 688 |
+
|
| 689 |
+
typedef struct _DXVA_ProcAmpControlBlt {
|
| 690 |
+
DWORD Size;
|
| 691 |
+
RECT DstRect;
|
| 692 |
+
RECT SrcRect;
|
| 693 |
+
FLOAT Alpha;
|
| 694 |
+
FLOAT Brightness;
|
| 695 |
+
FLOAT Contrast;
|
| 696 |
+
FLOAT Hue;
|
| 697 |
+
FLOAT Saturation;
|
| 698 |
+
} DXVA_ProcAmpControlBlt;
|
| 699 |
+
|
| 700 |
+
#define DXVA_ProcAmpControlBltFnCode 0x01
|
| 701 |
+
// lpInput => DXVA_ProcAmpControlBlt*
|
| 702 |
+
// lpOuput => NULL /* not currently used */
|
| 703 |
+
|
| 704 |
+
#endif /* __DIRECTX_VA_PROCAMPCONTROL__ */
|
| 705 |
+
|
| 706 |
+
// -------------------------------------------------------------------------
|
| 707 |
+
//
|
| 708 |
+
// The definitions that follow describe the Certified Output Protection
|
| 709 |
+
// Protocol between the VMR and the graphics device driver. This interface
|
| 710 |
+
// is not accessable via the IAMVideoAccelerator interface.
|
| 711 |
+
//
|
| 712 |
+
// -------------------------------------------------------------------------
|
| 713 |
+
//
|
| 714 |
+
#ifndef __DIRECTX_VA_CERTOUTPUTPROTECT__
|
| 715 |
+
#define __DIRECTX_VA_CERTOUTPUTPROTECT__
|
| 716 |
+
|
| 717 |
+
DEFINE_GUID(DXVA_COPPDevice,
|
| 718 |
+
0xd2457add,0x8999,0x45ed,0x8a,0x8a,0xd1,0xaa,0x04,0x7b,0xa4,0xd5);
|
| 719 |
+
|
| 720 |
+
// -------------------------------------------------------------------------
|
| 721 |
+
// COPPGetCertificateLength
|
| 722 |
+
// -------------------------------------------------------------------------
|
| 723 |
+
#define DXVA_COPPGetCertificateLengthFnCode 0x01
|
| 724 |
+
// lpInput => NULL
|
| 725 |
+
// lpOuput => DWORD*
|
| 726 |
+
|
| 727 |
+
// -------------------------------------------------------------------------
|
| 728 |
+
// COPPKeyExchange
|
| 729 |
+
// -------------------------------------------------------------------------
|
| 730 |
+
#define DXVA_COPPKeyExchangeFnCode 0x02
|
| 731 |
+
// lpInputData => NULL
|
| 732 |
+
// lpOuputData => GUID*
|
| 733 |
+
|
| 734 |
+
// -------------------------------------------------------------------------
|
| 735 |
+
// COPPSequenceStart
|
| 736 |
+
// -------------------------------------------------------------------------
|
| 737 |
+
typedef struct _DXVA_COPPSignature {
|
| 738 |
+
UCHAR Signature[256];
|
| 739 |
+
} DXVA_COPPSignature, *LPDXVA_COPPSignature;
|
| 740 |
+
|
| 741 |
+
#define DXVA_COPPSequenceStartFnCode 0x03
|
| 742 |
+
// lpInputData => DXVA_COPPSignature*
|
| 743 |
+
// lpOuputData => NULL
|
| 744 |
+
|
| 745 |
+
// -------------------------------------------------------------------------
|
| 746 |
+
// COPPCommand
|
| 747 |
+
// -------------------------------------------------------------------------
|
| 748 |
+
typedef struct _DXVA_COPPCommand {
|
| 749 |
+
GUID macKDI; // 16 bytes
|
| 750 |
+
GUID guidCommandID; // 16 bytes
|
| 751 |
+
ULONG dwSequence; // 4 bytes
|
| 752 |
+
ULONG cbSizeData; // 4 bytes
|
| 753 |
+
UCHAR CommandData[4056]; // 4056 bytes (4056+4+4+16+16 = 4096)
|
| 754 |
+
} DXVA_COPPCommand, *LPDXVA_COPPCommand;
|
| 755 |
+
|
| 756 |
+
#define DXVA_COPPCommandFnCode 0x04
|
| 757 |
+
// lpInputData => DXVA_COPPCommand*
|
| 758 |
+
// lpOuputData => NULL
|
| 759 |
+
|
| 760 |
+
DEFINE_GUID(DXVA_COPPSetProtectionLevel,
|
| 761 |
+
0x9bb9327c,0x4eb5,0x4727,0x9f,0x00,0xb4,0x2b,0x09,0x19,0xc0,0xda);
|
| 762 |
+
|
| 763 |
+
typedef struct _DXVA_COPPSetProtectionLevelCmdData {
|
| 764 |
+
ULONG ProtType;
|
| 765 |
+
ULONG ProtLevel;
|
| 766 |
+
ULONG ExtendedInfoChangeMask;
|
| 767 |
+
ULONG ExtendedInfoData;
|
| 768 |
+
} DXVA_COPPSetProtectionLevelCmdData;
|
| 769 |
+
|
| 770 |
+
// Set the HDCP protection level - (0 - 1 DWORD, 4 bytes)
|
| 771 |
+
|
| 772 |
+
typedef enum _COPP_HDCP_Protection_Level {
|
| 773 |
+
COPP_HDCP_Level0 = 0,
|
| 774 |
+
COPP_HDCP_LevelMin = COPP_HDCP_Level0,
|
| 775 |
+
COPP_HDCP_Level1 = 1,
|
| 776 |
+
COPP_HDCP_LevelMax = COPP_HDCP_Level1,
|
| 777 |
+
COPP_HDCP_ForceDWORD = 0x7fffffff
|
| 778 |
+
} COPP_HDCP_Protection_Level;
|
| 779 |
+
|
| 780 |
+
typedef enum _COPP_CGMSA_Protection_Level {
|
| 781 |
+
COPP_CGMSA_Disabled = 0,
|
| 782 |
+
COPP_CGMSA_LevelMin = COPP_CGMSA_Disabled,
|
| 783 |
+
COPP_CGMSA_CopyFreely = 1,
|
| 784 |
+
COPP_CGMSA_CopyNoMore = 2,
|
| 785 |
+
COPP_CGMSA_CopyOneGeneration = 3,
|
| 786 |
+
COPP_CGMSA_CopyNever = 4,
|
| 787 |
+
COPP_CGMSA_RedistributionControlRequired = 0x08,
|
| 788 |
+
COPP_CGMSA_LevelMax = (COPP_CGMSA_RedistributionControlRequired + COPP_CGMSA_CopyNever),
|
| 789 |
+
COPP_CGMSA_ForceDWORD = 0x7fffffff
|
| 790 |
+
} COPP_CGMSA_Protection_Level;
|
| 791 |
+
|
| 792 |
+
typedef enum _COPP_ACP_Protection_Level {
|
| 793 |
+
COPP_ACP_Level0 = 0,
|
| 794 |
+
COPP_ACP_LevelMin = COPP_ACP_Level0,
|
| 795 |
+
COPP_ACP_Level1 = 1,
|
| 796 |
+
COPP_ACP_Level2 = 2,
|
| 797 |
+
COPP_ACP_Level3 = 3,
|
| 798 |
+
COPP_ACP_LevelMax = COPP_ACP_Level3,
|
| 799 |
+
COPP_ACP_ForceDWORD = 0x7fffffff
|
| 800 |
+
} COPP_ACP_Protection_Level;
|
| 801 |
+
|
| 802 |
+
#define COPP_NoProtectionLevelAvailable -1
|
| 803 |
+
#define COPP_DefaultProtectionLevel 0
|
| 804 |
+
|
| 805 |
+
//
|
| 806 |
+
// Bit flags of possible protection types. Note that it is possible to apply
|
| 807 |
+
// different protection settings to a single connector.
|
| 808 |
+
//
|
| 809 |
+
enum {
|
| 810 |
+
COPP_ProtectionType_Unknown = 0x80000000,
|
| 811 |
+
COPP_ProtectionType_None = 0x00000000,
|
| 812 |
+
COPP_ProtectionType_HDCP = 0x00000001,
|
| 813 |
+
COPP_ProtectionType_ACP = 0x00000002,
|
| 814 |
+
COPP_ProtectionType_CGMSA = 0x00000004,
|
| 815 |
+
COPP_ProtectionType_Mask = 0x80000007,
|
| 816 |
+
COPP_ProtectionType_Reserved = 0x7FFFFFF8
|
| 817 |
+
};
|
| 818 |
+
|
| 819 |
+
DEFINE_GUID(DXVA_COPPSetSignaling,
|
| 820 |
+
0x9a631a5, 0xd684, 0x4c60, 0x8e, 0x4d, 0xd3, 0xbb, 0xf, 0xb, 0xe3, 0xee);
|
| 821 |
+
|
| 822 |
+
typedef struct _DXVA_COPPSetSignalingCmdData {
|
| 823 |
+
ULONG ActiveTVProtectionStandard; // See COPP_TVProtectionStandard
|
| 824 |
+
ULONG AspectRatioChangeMask1;
|
| 825 |
+
ULONG AspectRatioData1; // See COPP_ImageAspectRatio_EN300294 for ETSI EN 300 294 values
|
| 826 |
+
ULONG AspectRatioChangeMask2;
|
| 827 |
+
ULONG AspectRatioData2;
|
| 828 |
+
ULONG AspectRatioChangeMask3;
|
| 829 |
+
ULONG AspectRatioData3;
|
| 830 |
+
ULONG ExtendedInfoChangeMask[4];
|
| 831 |
+
ULONG ExtendedInfoData[4];
|
| 832 |
+
ULONG Reserved;
|
| 833 |
+
} DXVA_COPPSetSignalingCmdData;
|
| 834 |
+
|
| 835 |
+
// Add format enum and data enum
|
| 836 |
+
typedef enum _COPP_TVProtectionStandard {
|
| 837 |
+
COPP_ProtectionStandard_Unknown = 0x80000000,
|
| 838 |
+
COPP_ProtectionStandard_None = 0x00000000,
|
| 839 |
+
COPP_ProtectionStandard_IEC61880_525i = 0x00000001,
|
| 840 |
+
COPP_ProtectionStandard_IEC61880_2_525i = 0x00000002,
|
| 841 |
+
COPP_ProtectionStandard_IEC62375_625p = 0x00000004,
|
| 842 |
+
COPP_ProtectionStandard_EIA608B_525 = 0x00000008,
|
| 843 |
+
COPP_ProtectionStandard_EN300294_625i = 0x00000010,
|
| 844 |
+
COPP_ProtectionStandard_CEA805A_TypeA_525p = 0x00000020,
|
| 845 |
+
COPP_ProtectionStandard_CEA805A_TypeA_750p = 0x00000040,
|
| 846 |
+
COPP_ProtectionStandard_CEA805A_TypeA_1125i = 0x00000080,
|
| 847 |
+
COPP_ProtectionStandard_CEA805A_TypeB_525p = 0x00000100,
|
| 848 |
+
COPP_ProtectionStandard_CEA805A_TypeB_750p = 0x00000200,
|
| 849 |
+
COPP_ProtectionStandard_CEA805A_TypeB_1125i = 0x00000400,
|
| 850 |
+
COPP_ProtectionStandard_ARIBTRB15_525i = 0x00000800,
|
| 851 |
+
COPP_ProtectionStandard_ARIBTRB15_525p = 0x00001000,
|
| 852 |
+
COPP_ProtectionStandard_ARIBTRB15_750p = 0x00002000,
|
| 853 |
+
COPP_ProtectionStandard_ARIBTRB15_1125i = 0x00004000,
|
| 854 |
+
COPP_ProtectionStandard_Mask = 0x80007FFF,
|
| 855 |
+
COPP_ProtectionStandard_Reserved = 0x7FFF8000
|
| 856 |
+
} COPP_TVProtectionStandard;
|
| 857 |
+
|
| 858 |
+
#define COPP_ImageAspectRatio_EN300294_Mask 0x00000007
|
| 859 |
+
|
| 860 |
+
typedef enum _COPP_ImageAspectRatio_EN300294 {
|
| 861 |
+
COPP_AspectRatio_EN300294_FullFormat4by3 = 0,
|
| 862 |
+
COPP_AspectRatio_EN300294_Box14by9Center = 1,
|
| 863 |
+
COPP_AspectRatio_EN300294_Box14by9Top = 2,
|
| 864 |
+
COPP_AspectRatio_EN300294_Box16by9Center = 3,
|
| 865 |
+
COPP_AspectRatio_EN300294_Box16by9Top = 4,
|
| 866 |
+
COPP_AspectRatio_EN300294_BoxGT16by9Center = 5,
|
| 867 |
+
COPP_AspectRatio_EN300294_FullFormat4by3ProtectedCenter = 6,
|
| 868 |
+
COPP_AspectRatio_EN300294_FullFormat16by9Anamorphic = 7,
|
| 869 |
+
COPP_AspectRatio_ForceDWORD = 0x7fffffff
|
| 870 |
+
} COPP_ImageAspectRatio_EN300294;
|
| 871 |
+
|
| 872 |
+
// -------------------------------------------------------------------------
|
| 873 |
+
// COPPQueryStatus
|
| 874 |
+
// -------------------------------------------------------------------------
|
| 875 |
+
typedef struct _DXVA_COPPStatusInput {
|
| 876 |
+
GUID rApp; // 16 bytes
|
| 877 |
+
GUID guidStatusRequestID;// 16 bytes
|
| 878 |
+
ULONG dwSequence; // 4 bytes
|
| 879 |
+
ULONG cbSizeData; // 4 bytes
|
| 880 |
+
UCHAR StatusData[4056]; // 4056 bytes (4056+4+4+16+16 = 4096)
|
| 881 |
+
} DXVA_COPPStatusInput, *LPDXVA_COPPStatusInput;
|
| 882 |
+
|
| 883 |
+
typedef struct _DXVA_COPPStatusOutput {
|
| 884 |
+
GUID macKDI; // 16 bytes
|
| 885 |
+
ULONG cbSizeData; // 4 bytes
|
| 886 |
+
UCHAR COPPStatus[4076]; // 4076 bytes (4076+16+4 = 4096)
|
| 887 |
+
} DXVA_COPPStatusOutput, *LPDXVA_COPPStatusOutput;
|
| 888 |
+
|
| 889 |
+
typedef enum _COPP_StatusFlags {
|
| 890 |
+
COPP_StatusNormal = 0x00,
|
| 891 |
+
COPP_LinkLost = 0x01,
|
| 892 |
+
COPP_RenegotiationRequired = 0x02,
|
| 893 |
+
COPP_StatusFlagsReserved = 0xFFFFFFFC
|
| 894 |
+
} COPP_StatusFlags;
|
| 895 |
+
|
| 896 |
+
typedef struct _DXVA_COPPStatusData {
|
| 897 |
+
GUID rApp;
|
| 898 |
+
ULONG dwFlags; // See COPP_StatusFlags above
|
| 899 |
+
ULONG dwData;
|
| 900 |
+
ULONG ExtendedInfoValidMask;
|
| 901 |
+
ULONG ExtendedInfoData;
|
| 902 |
+
} DXVA_COPPStatusData;
|
| 903 |
+
|
| 904 |
+
typedef struct _DXVA_COPPStatusDisplayData {
|
| 905 |
+
GUID rApp;
|
| 906 |
+
ULONG dwFlags; // See COPP_StatusFlags above
|
| 907 |
+
ULONG DisplayWidth;
|
| 908 |
+
ULONG DisplayHeight;
|
| 909 |
+
ULONG Format; // also contains extended color data
|
| 910 |
+
ULONG d3dFormat;
|
| 911 |
+
ULONG FreqNumerator;
|
| 912 |
+
ULONG FreqDenominator;
|
| 913 |
+
} DXVA_COPPStatusDisplayData;
|
| 914 |
+
|
| 915 |
+
typedef enum _COPP_StatusHDCPFlags {
|
| 916 |
+
COPP_HDCPRepeater = 0x01,
|
| 917 |
+
COPP_HDCPFlagsReserved = 0xFFFFFFFE
|
| 918 |
+
} COPP_StatusHDCPFlags;
|
| 919 |
+
|
| 920 |
+
typedef struct _DXVA_COPPStatusHDCPKeyData {
|
| 921 |
+
GUID rApp;
|
| 922 |
+
ULONG dwFlags; // See COPP_StatusFlags above
|
| 923 |
+
ULONG dwHDCPFlags; // See COPP_StatusHDCPFlags above
|
| 924 |
+
GUID BKey; // Lower 40 bits
|
| 925 |
+
GUID Reserved1;
|
| 926 |
+
GUID Reserved2;
|
| 927 |
+
} DXVA_COPPStatusHDCPKeyData;
|
| 928 |
+
|
| 929 |
+
#define DXVA_COPPQueryStatusFnCode 0x05
|
| 930 |
+
// lpInputData => DXVA_COPPStatusInput*
|
| 931 |
+
// lpOuputData => DXVA_COPPStatusOutput*
|
| 932 |
+
|
| 933 |
+
//
|
| 934 |
+
// Status GUID and enumerations
|
| 935 |
+
//
|
| 936 |
+
DEFINE_GUID(DXVA_COPPQueryConnectorType,
|
| 937 |
+
0x81d0bfd5,0x6afe,0x48c2,0x99,0xc0,0x95,0xa0,0x8f,0x97,0xc5,0xda);
|
| 938 |
+
|
| 939 |
+
typedef enum _COPP_ConnectorType {
|
| 940 |
+
COPP_ConnectorType_Unknown = -1,
|
| 941 |
+
COPP_ConnectorType_VGA = 0,
|
| 942 |
+
COPP_ConnectorType_SVideo = 1,
|
| 943 |
+
COPP_ConnectorType_CompositeVideo = 2,
|
| 944 |
+
COPP_ConnectorType_ComponentVideo = 3,
|
| 945 |
+
COPP_ConnectorType_DVI = 4,
|
| 946 |
+
COPP_ConnectorType_HDMI = 5,
|
| 947 |
+
COPP_ConnectorType_LVDS = 6,
|
| 948 |
+
COPP_ConnectorType_TMDS = 7,
|
| 949 |
+
COPP_ConnectorType_D_JPN = 8,
|
| 950 |
+
COPP_ConnectorType_Internal = 0x80000000, // can be combined with the other connector types
|
| 951 |
+
COPP_ConnectorType_ForceDWORD = 0x7fffffff /* force 32-bit size enum */
|
| 952 |
+
} COPP_ConnectorType;
|
| 953 |
+
|
| 954 |
+
DEFINE_GUID(DXVA_COPPQueryProtectionType,
|
| 955 |
+
0x38f2a801,0x9a6c,0x48bb,0x91,0x07,0xb6,0x69,0x6e,0x6f,0x17,0x97);
|
| 956 |
+
|
| 957 |
+
DEFINE_GUID(DXVA_COPPQueryLocalProtectionLevel,
|
| 958 |
+
0xb2075857,0x3eda,0x4d5d,0x88,0xdb,0x74,0x8f,0x8c,0x1a,0x05,0x49);
|
| 959 |
+
|
| 960 |
+
DEFINE_GUID(DXVA_COPPQueryGlobalProtectionLevel,
|
| 961 |
+
0x1957210a,0x7766,0x452a,0xb9,0x9a,0xd2,0x7a,0xed,0x54,0xf0,0x3a);
|
| 962 |
+
|
| 963 |
+
DEFINE_GUID(DXVA_COPPQueryDisplayData,
|
| 964 |
+
0xd7bf1ba3,0xad13,0x4f8e,0xaf,0x98,0x0d,0xcb,0x3c,0xa2,0x04,0xcc);
|
| 965 |
+
|
| 966 |
+
DEFINE_GUID(DXVA_COPPQueryHDCPKeyData,
|
| 967 |
+
0xdb59d74, 0xa992, 0x492e, 0xa0, 0xbd, 0xc2, 0x3f, 0xda, 0x56, 0x4e, 0x0);
|
| 968 |
+
|
| 969 |
+
DEFINE_GUID(DXVA_COPPQueryBusData,
|
| 970 |
+
0xc6f4d673, 0x6174, 0x4184, 0x8e, 0x35, 0xf6, 0xdb, 0x52, 0x0, 0xbc, 0xba);
|
| 971 |
+
|
| 972 |
+
typedef enum _COPP_BusType {
|
| 973 |
+
COPP_BusType_Unknown = 0,
|
| 974 |
+
COPP_BusType_PCI = 1,
|
| 975 |
+
COPP_BusType_PCIX = 2,
|
| 976 |
+
COPP_BusType_PCIExpress = 3,
|
| 977 |
+
COPP_BusType_AGP = 4,
|
| 978 |
+
COPP_BusType_Integrated = 0x80000000, // can be combined with the other bus types
|
| 979 |
+
COPP_BusType_ForceDWORD = 0x7fffffff /* force 32-bit size enum */
|
| 980 |
+
} COPP_BusType;
|
| 981 |
+
|
| 982 |
+
DEFINE_GUID(DXVA_COPPQuerySignaling,
|
| 983 |
+
0x6629a591, 0x3b79, 0x4cf3, 0x92, 0x4a, 0x11, 0xe8, 0xe7, 0x81, 0x16, 0x71);
|
| 984 |
+
|
| 985 |
+
typedef struct _DXVA_COPPStatusSignalingCmdData {
|
| 986 |
+
GUID rApp;
|
| 987 |
+
ULONG dwFlags; // See COPP_StatusFlags above
|
| 988 |
+
ULONG AvailableTVProtectionStandards; // See COPP_TVProtectionStandard
|
| 989 |
+
ULONG ActiveTVProtectionStandard; // See COPP_TVProtectionStandard
|
| 990 |
+
ULONG TVType;
|
| 991 |
+
ULONG AspectRatioValidMask1;
|
| 992 |
+
ULONG AspectRatioData1; // See COPP_AspectRatio_EN300294 for ETSI EN 300 294 values
|
| 993 |
+
ULONG AspectRatioValidMask2;
|
| 994 |
+
ULONG AspectRatioData2;
|
| 995 |
+
ULONG AspectRatioValidMask3;
|
| 996 |
+
ULONG AspectRatioData3;
|
| 997 |
+
ULONG ExtendedInfoValidMask[4];
|
| 998 |
+
ULONG ExtendedInfoData[4];
|
| 999 |
+
} DXVA_COPPStatusSignalingCmdData;
|
| 1000 |
+
|
| 1001 |
+
#endif /* __DIRECTX_VA_CERTOUTPUTPROTECT__ */
|
| 1002 |
+
|
| 1003 |
+
#endif /* (DIRECT3D_VERSION >= 0x0900) */
|
| 1004 |
+
#endif /* _DXVA9TYP_H_ */
|
| 1005 |
+
|
| 1006 |
+
#endif /* W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
| 2 |
+
|
| 3 |
+
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
/* File created by MIDL compiler version 8.01.0628 */
|
| 7 |
+
/* @@MIDL_FILE_HEADING( ) */
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
/* verify that the <rpcndr.h> version is high enough to compile this file*/
|
| 12 |
+
#ifndef __REQUIRED_RPCNDR_H_VERSION__
|
| 13 |
+
#define __REQUIRED_RPCNDR_H_VERSION__ 501
|
| 14 |
+
#endif
|
| 15 |
+
|
| 16 |
+
/* verify that the <rpcsal.h> version is high enough to compile this file*/
|
| 17 |
+
#ifndef __REQUIRED_RPCSAL_H_VERSION__
|
| 18 |
+
#define __REQUIRED_RPCSAL_H_VERSION__ 100
|
| 19 |
+
#endif
|
| 20 |
+
|
| 21 |
+
#include "rpc.h"
|
| 22 |
+
#include "rpcndr.h"
|
| 23 |
+
|
| 24 |
+
#ifndef __RPCNDR_H_VERSION__
|
| 25 |
+
#error this stub requires an updated version of <rpcndr.h>
|
| 26 |
+
#endif /* __RPCNDR_H_VERSION__ */
|
| 27 |
+
|
| 28 |
+
#ifndef COM_NO_WINDOWS_H
|
| 29 |
+
#include "windows.h"
|
| 30 |
+
#include "ole2.h"
|
| 31 |
+
#endif /*COM_NO_WINDOWS_H*/
|
| 32 |
+
|
| 33 |
+
#ifndef __dxvahd_h__
|
| 34 |
+
#define __dxvahd_h__
|
| 35 |
+
|
| 36 |
+
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
| 37 |
+
#pragma once
|
| 38 |
+
#endif
|
| 39 |
+
|
| 40 |
+
#ifndef DECLSPEC_XFGVIRT
|
| 41 |
+
#if defined(_CONTROL_FLOW_GUARD_XFG)
|
| 42 |
+
#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func))
|
| 43 |
+
#else
|
| 44 |
+
#define DECLSPEC_XFGVIRT(base, func)
|
| 45 |
+
#endif
|
| 46 |
+
#endif
|
| 47 |
+
|
| 48 |
+
/* Forward Declarations */
|
| 49 |
+
|
| 50 |
+
#ifndef __IDXVAHD_Device_FWD_DEFINED__
|
| 51 |
+
#define __IDXVAHD_Device_FWD_DEFINED__
|
| 52 |
+
typedef interface IDXVAHD_Device IDXVAHD_Device;
|
| 53 |
+
|
| 54 |
+
#endif /* __IDXVAHD_Device_FWD_DEFINED__ */
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
#ifndef __IDXVAHD_VideoProcessor_FWD_DEFINED__
|
| 58 |
+
#define __IDXVAHD_VideoProcessor_FWD_DEFINED__
|
| 59 |
+
typedef interface IDXVAHD_VideoProcessor IDXVAHD_VideoProcessor;
|
| 60 |
+
|
| 61 |
+
#endif /* __IDXVAHD_VideoProcessor_FWD_DEFINED__ */
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
/* header files for imported files */
|
| 65 |
+
#include "unknwn.h"
|
| 66 |
+
|
| 67 |
+
#ifdef __cplusplus
|
| 68 |
+
extern "C"{
|
| 69 |
+
#endif
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
/* interface __MIDL_itf_dxvahd_0000_0000 */
|
| 73 |
+
/* [local] */
|
| 74 |
+
|
| 75 |
+
#include <winapifamily.h>
|
| 76 |
+
#pragma region Desktop Family
|
| 77 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 78 |
+
#if 0
|
| 79 |
+
typedef DWORD IDirect3DDevice9Ex;
|
| 80 |
+
|
| 81 |
+
typedef DWORD IDirect3DSurface9;
|
| 82 |
+
|
| 83 |
+
typedef DWORD D3DCOLOR;
|
| 84 |
+
|
| 85 |
+
typedef DWORD D3DFORMAT;
|
| 86 |
+
|
| 87 |
+
typedef DWORD D3DPOOL;
|
| 88 |
+
|
| 89 |
+
#endif // 0
|
| 90 |
+
#if defined(_WIN32) && !defined(_NO_COM)
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
DEFINE_GUID(IID_IDXVAHD_Device, 0x95f12dfd,0xd77e,0x49be,0x81,0x5f,0x57,0xd5,0x79,0x63,0x4d,0x6d);
|
| 94 |
+
DEFINE_GUID(IID_IDXVAHD_VideoProcessor, 0x95f4edf4,0x6e03,0x4cd7,0xbe,0x1b,0x30,0x75,0xd6,0x65,0xaa,0x52);
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
#endif
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
typedef
|
| 101 |
+
enum _DXVAHD_FRAME_FORMAT
|
| 102 |
+
{
|
| 103 |
+
DXVAHD_FRAME_FORMAT_PROGRESSIVE = 0,
|
| 104 |
+
DXVAHD_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1,
|
| 105 |
+
DXVAHD_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2
|
| 106 |
+
} DXVAHD_FRAME_FORMAT;
|
| 107 |
+
|
| 108 |
+
typedef
|
| 109 |
+
enum _DXVAHD_DEVICE_USAGE
|
| 110 |
+
{
|
| 111 |
+
DXVAHD_DEVICE_USAGE_PLAYBACK_NORMAL = 0,
|
| 112 |
+
DXVAHD_DEVICE_USAGE_OPTIMAL_SPEED = 1,
|
| 113 |
+
DXVAHD_DEVICE_USAGE_OPTIMAL_QUALITY = 2
|
| 114 |
+
} DXVAHD_DEVICE_USAGE;
|
| 115 |
+
|
| 116 |
+
typedef
|
| 117 |
+
enum _DXVAHD_SURFACE_TYPE
|
| 118 |
+
{
|
| 119 |
+
DXVAHD_SURFACE_TYPE_VIDEO_INPUT = 0,
|
| 120 |
+
DXVAHD_SURFACE_TYPE_VIDEO_INPUT_PRIVATE = 1,
|
| 121 |
+
DXVAHD_SURFACE_TYPE_VIDEO_OUTPUT = 2
|
| 122 |
+
} DXVAHD_SURFACE_TYPE;
|
| 123 |
+
|
| 124 |
+
typedef
|
| 125 |
+
enum _DXVAHD_DEVICE_TYPE
|
| 126 |
+
{
|
| 127 |
+
DXVAHD_DEVICE_TYPE_HARDWARE = 0,
|
| 128 |
+
DXVAHD_DEVICE_TYPE_SOFTWARE = 1,
|
| 129 |
+
DXVAHD_DEVICE_TYPE_REFERENCE = 2,
|
| 130 |
+
DXVAHD_DEVICE_TYPE_OTHER = 3
|
| 131 |
+
} DXVAHD_DEVICE_TYPE;
|
| 132 |
+
|
| 133 |
+
typedef
|
| 134 |
+
enum _DXVAHD_DEVICE_CAPS
|
| 135 |
+
{
|
| 136 |
+
DXVAHD_DEVICE_CAPS_LINEAR_SPACE = 0x1,
|
| 137 |
+
DXVAHD_DEVICE_CAPS_xvYCC = 0x2,
|
| 138 |
+
DXVAHD_DEVICE_CAPS_RGB_RANGE_CONVERSION = 0x4,
|
| 139 |
+
DXVAHD_DEVICE_CAPS_YCbCr_MATRIX_CONVERSION = 0x8
|
| 140 |
+
} DXVAHD_DEVICE_CAPS;
|
| 141 |
+
|
| 142 |
+
typedef
|
| 143 |
+
enum _DXVAHD_FEATURE_CAPS
|
| 144 |
+
{
|
| 145 |
+
DXVAHD_FEATURE_CAPS_ALPHA_FILL = 0x1,
|
| 146 |
+
DXVAHD_FEATURE_CAPS_CONSTRICTION = 0x2,
|
| 147 |
+
DXVAHD_FEATURE_CAPS_LUMA_KEY = 0x4,
|
| 148 |
+
DXVAHD_FEATURE_CAPS_ALPHA_PALETTE = 0x8
|
| 149 |
+
} DXVAHD_FEATURE_CAPS;
|
| 150 |
+
|
| 151 |
+
typedef
|
| 152 |
+
enum _DXVAHD_FILTER_CAPS
|
| 153 |
+
{
|
| 154 |
+
DXVAHD_FILTER_CAPS_BRIGHTNESS = 0x1,
|
| 155 |
+
DXVAHD_FILTER_CAPS_CONTRAST = 0x2,
|
| 156 |
+
DXVAHD_FILTER_CAPS_HUE = 0x4,
|
| 157 |
+
DXVAHD_FILTER_CAPS_SATURATION = 0x8,
|
| 158 |
+
DXVAHD_FILTER_CAPS_NOISE_REDUCTION = 0x10,
|
| 159 |
+
DXVAHD_FILTER_CAPS_EDGE_ENHANCEMENT = 0x20,
|
| 160 |
+
DXVAHD_FILTER_CAPS_ANAMORPHIC_SCALING = 0x40
|
| 161 |
+
} DXVAHD_FILTER_CAPS;
|
| 162 |
+
|
| 163 |
+
typedef
|
| 164 |
+
enum _DXVAHD_INPUT_FORMAT_CAPS
|
| 165 |
+
{
|
| 166 |
+
DXVAHD_INPUT_FORMAT_CAPS_RGB_INTERLACED = 0x1,
|
| 167 |
+
DXVAHD_INPUT_FORMAT_CAPS_RGB_PROCAMP = 0x2,
|
| 168 |
+
DXVAHD_INPUT_FORMAT_CAPS_RGB_LUMA_KEY = 0x4,
|
| 169 |
+
DXVAHD_INPUT_FORMAT_CAPS_PALETTE_INTERLACED = 0x8
|
| 170 |
+
} DXVAHD_INPUT_FORMAT_CAPS;
|
| 171 |
+
|
| 172 |
+
typedef
|
| 173 |
+
enum _DXVAHD_PROCESSOR_CAPS
|
| 174 |
+
{
|
| 175 |
+
DXVAHD_PROCESSOR_CAPS_DEINTERLACE_BLEND = 0x1,
|
| 176 |
+
DXVAHD_PROCESSOR_CAPS_DEINTERLACE_BOB = 0x2,
|
| 177 |
+
DXVAHD_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE = 0x4,
|
| 178 |
+
DXVAHD_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION = 0x8,
|
| 179 |
+
DXVAHD_PROCESSOR_CAPS_INVERSE_TELECINE = 0x10,
|
| 180 |
+
DXVAHD_PROCESSOR_CAPS_FRAME_RATE_CONVERSION = 0x20
|
| 181 |
+
} DXVAHD_PROCESSOR_CAPS;
|
| 182 |
+
|
| 183 |
+
typedef
|
| 184 |
+
enum _DXVAHD_ITELECINE_CAPS
|
| 185 |
+
{
|
| 186 |
+
DXVAHD_ITELECINE_CAPS_32 = 0x1,
|
| 187 |
+
DXVAHD_ITELECINE_CAPS_22 = 0x2,
|
| 188 |
+
DXVAHD_ITELECINE_CAPS_2224 = 0x4,
|
| 189 |
+
DXVAHD_ITELECINE_CAPS_2332 = 0x8,
|
| 190 |
+
DXVAHD_ITELECINE_CAPS_32322 = 0x10,
|
| 191 |
+
DXVAHD_ITELECINE_CAPS_55 = 0x20,
|
| 192 |
+
DXVAHD_ITELECINE_CAPS_64 = 0x40,
|
| 193 |
+
DXVAHD_ITELECINE_CAPS_87 = 0x80,
|
| 194 |
+
DXVAHD_ITELECINE_CAPS_222222222223 = 0x100,
|
| 195 |
+
DXVAHD_ITELECINE_CAPS_OTHER = 0x80000000
|
| 196 |
+
} DXVAHD_ITELECINE_CAPS;
|
| 197 |
+
|
| 198 |
+
typedef
|
| 199 |
+
enum _DXVAHD_FILTER
|
| 200 |
+
{
|
| 201 |
+
DXVAHD_FILTER_BRIGHTNESS = 0,
|
| 202 |
+
DXVAHD_FILTER_CONTRAST = 1,
|
| 203 |
+
DXVAHD_FILTER_HUE = 2,
|
| 204 |
+
DXVAHD_FILTER_SATURATION = 3,
|
| 205 |
+
DXVAHD_FILTER_NOISE_REDUCTION = 4,
|
| 206 |
+
DXVAHD_FILTER_EDGE_ENHANCEMENT = 5,
|
| 207 |
+
DXVAHD_FILTER_ANAMORPHIC_SCALING = 6
|
| 208 |
+
} DXVAHD_FILTER;
|
| 209 |
+
|
| 210 |
+
typedef
|
| 211 |
+
enum _DXVAHD_BLT_STATE
|
| 212 |
+
{
|
| 213 |
+
DXVAHD_BLT_STATE_TARGET_RECT = 0,
|
| 214 |
+
DXVAHD_BLT_STATE_BACKGROUND_COLOR = 1,
|
| 215 |
+
DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE = 2,
|
| 216 |
+
DXVAHD_BLT_STATE_ALPHA_FILL = 3,
|
| 217 |
+
DXVAHD_BLT_STATE_CONSTRICTION = 4,
|
| 218 |
+
DXVAHD_BLT_STATE_PRIVATE = 1000
|
| 219 |
+
} DXVAHD_BLT_STATE;
|
| 220 |
+
|
| 221 |
+
typedef
|
| 222 |
+
enum _DXVAHD_ALPHA_FILL_MODE
|
| 223 |
+
{
|
| 224 |
+
DXVAHD_ALPHA_FILL_MODE_OPAQUE = 0,
|
| 225 |
+
DXVAHD_ALPHA_FILL_MODE_BACKGROUND = 1,
|
| 226 |
+
DXVAHD_ALPHA_FILL_MODE_DESTINATION = 2,
|
| 227 |
+
DXVAHD_ALPHA_FILL_MODE_SOURCE_STREAM = 3
|
| 228 |
+
} DXVAHD_ALPHA_FILL_MODE;
|
| 229 |
+
|
| 230 |
+
typedef
|
| 231 |
+
enum _DXVAHD_STREAM_STATE
|
| 232 |
+
{
|
| 233 |
+
DXVAHD_STREAM_STATE_D3DFORMAT = 0,
|
| 234 |
+
DXVAHD_STREAM_STATE_FRAME_FORMAT = 1,
|
| 235 |
+
DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE = 2,
|
| 236 |
+
DXVAHD_STREAM_STATE_OUTPUT_RATE = 3,
|
| 237 |
+
DXVAHD_STREAM_STATE_SOURCE_RECT = 4,
|
| 238 |
+
DXVAHD_STREAM_STATE_DESTINATION_RECT = 5,
|
| 239 |
+
DXVAHD_STREAM_STATE_ALPHA = 6,
|
| 240 |
+
DXVAHD_STREAM_STATE_PALETTE = 7,
|
| 241 |
+
DXVAHD_STREAM_STATE_LUMA_KEY = 8,
|
| 242 |
+
DXVAHD_STREAM_STATE_ASPECT_RATIO = 9,
|
| 243 |
+
DXVAHD_STREAM_STATE_FILTER_BRIGHTNESS = 100,
|
| 244 |
+
DXVAHD_STREAM_STATE_FILTER_CONTRAST = 101,
|
| 245 |
+
DXVAHD_STREAM_STATE_FILTER_HUE = 102,
|
| 246 |
+
DXVAHD_STREAM_STATE_FILTER_SATURATION = 103,
|
| 247 |
+
DXVAHD_STREAM_STATE_FILTER_NOISE_REDUCTION = 104,
|
| 248 |
+
DXVAHD_STREAM_STATE_FILTER_EDGE_ENHANCEMENT = 105,
|
| 249 |
+
DXVAHD_STREAM_STATE_FILTER_ANAMORPHIC_SCALING = 106,
|
| 250 |
+
DXVAHD_STREAM_STATE_PRIVATE = 1000
|
| 251 |
+
} DXVAHD_STREAM_STATE;
|
| 252 |
+
|
| 253 |
+
typedef
|
| 254 |
+
enum _DXVAHD_OUTPUT_RATE
|
| 255 |
+
{
|
| 256 |
+
DXVAHD_OUTPUT_RATE_NORMAL = 0,
|
| 257 |
+
DXVAHD_OUTPUT_RATE_HALF = 1,
|
| 258 |
+
DXVAHD_OUTPUT_RATE_CUSTOM = 2
|
| 259 |
+
} DXVAHD_OUTPUT_RATE;
|
| 260 |
+
|
| 261 |
+
typedef struct _DXVAHD_RATIONAL
|
| 262 |
+
{
|
| 263 |
+
UINT Numerator;
|
| 264 |
+
UINT Denominator;
|
| 265 |
+
} DXVAHD_RATIONAL;
|
| 266 |
+
|
| 267 |
+
typedef struct _DXVAHD_COLOR_RGBA
|
| 268 |
+
{
|
| 269 |
+
FLOAT R;
|
| 270 |
+
FLOAT G;
|
| 271 |
+
FLOAT B;
|
| 272 |
+
FLOAT A;
|
| 273 |
+
} DXVAHD_COLOR_RGBA;
|
| 274 |
+
|
| 275 |
+
typedef struct _DXVAHD_COLOR_YCbCrA
|
| 276 |
+
{
|
| 277 |
+
FLOAT Y;
|
| 278 |
+
FLOAT Cb;
|
| 279 |
+
FLOAT Cr;
|
| 280 |
+
FLOAT A;
|
| 281 |
+
} DXVAHD_COLOR_YCbCrA;
|
| 282 |
+
|
| 283 |
+
typedef union _DXVAHD_COLOR
|
| 284 |
+
{
|
| 285 |
+
DXVAHD_COLOR_RGBA RGB;
|
| 286 |
+
DXVAHD_COLOR_YCbCrA YCbCr;
|
| 287 |
+
} DXVAHD_COLOR;
|
| 288 |
+
|
| 289 |
+
typedef struct _DXVAHD_CONTENT_DESC
|
| 290 |
+
{
|
| 291 |
+
DXVAHD_FRAME_FORMAT InputFrameFormat;
|
| 292 |
+
DXVAHD_RATIONAL InputFrameRate;
|
| 293 |
+
UINT InputWidth;
|
| 294 |
+
UINT InputHeight;
|
| 295 |
+
DXVAHD_RATIONAL OutputFrameRate;
|
| 296 |
+
UINT OutputWidth;
|
| 297 |
+
UINT OutputHeight;
|
| 298 |
+
} DXVAHD_CONTENT_DESC;
|
| 299 |
+
|
| 300 |
+
typedef struct _DXVAHD_VPDEVCAPS
|
| 301 |
+
{
|
| 302 |
+
DXVAHD_DEVICE_TYPE DeviceType;
|
| 303 |
+
UINT DeviceCaps;
|
| 304 |
+
UINT FeatureCaps;
|
| 305 |
+
UINT FilterCaps;
|
| 306 |
+
UINT InputFormatCaps;
|
| 307 |
+
D3DPOOL InputPool;
|
| 308 |
+
UINT OutputFormatCount;
|
| 309 |
+
UINT InputFormatCount;
|
| 310 |
+
UINT VideoProcessorCount;
|
| 311 |
+
UINT MaxInputStreams;
|
| 312 |
+
UINT MaxStreamStates;
|
| 313 |
+
} DXVAHD_VPDEVCAPS;
|
| 314 |
+
|
| 315 |
+
typedef struct _DXVAHD_VPCAPS
|
| 316 |
+
{
|
| 317 |
+
GUID VPGuid;
|
| 318 |
+
UINT PastFrames;
|
| 319 |
+
UINT FutureFrames;
|
| 320 |
+
UINT ProcessorCaps;
|
| 321 |
+
UINT ITelecineCaps;
|
| 322 |
+
UINT CustomRateCount;
|
| 323 |
+
} DXVAHD_VPCAPS;
|
| 324 |
+
|
| 325 |
+
typedef struct _DXVAHD_CUSTOM_RATE_DATA
|
| 326 |
+
{
|
| 327 |
+
DXVAHD_RATIONAL CustomRate;
|
| 328 |
+
UINT OutputFrames;
|
| 329 |
+
BOOL InputInterlaced;
|
| 330 |
+
UINT InputFramesOrFields;
|
| 331 |
+
} DXVAHD_CUSTOM_RATE_DATA;
|
| 332 |
+
|
| 333 |
+
typedef struct _DXVAHD_FILTER_RANGE_DATA
|
| 334 |
+
{
|
| 335 |
+
INT Minimum;
|
| 336 |
+
INT Maximum;
|
| 337 |
+
INT Default;
|
| 338 |
+
FLOAT Multiplier;
|
| 339 |
+
} DXVAHD_FILTER_RANGE_DATA;
|
| 340 |
+
|
| 341 |
+
typedef struct _DXVAHD_BLT_STATE_TARGET_RECT_DATA
|
| 342 |
+
{
|
| 343 |
+
BOOL Enable;
|
| 344 |
+
RECT TargetRect;
|
| 345 |
+
} DXVAHD_BLT_STATE_TARGET_RECT_DATA;
|
| 346 |
+
|
| 347 |
+
typedef struct _DXVAHD_BLT_STATE_BACKGROUND_COLOR_DATA
|
| 348 |
+
{
|
| 349 |
+
BOOL YCbCr;
|
| 350 |
+
DXVAHD_COLOR BackgroundColor;
|
| 351 |
+
} DXVAHD_BLT_STATE_BACKGROUND_COLOR_DATA;
|
| 352 |
+
|
| 353 |
+
typedef struct _DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE_DATA
|
| 354 |
+
{
|
| 355 |
+
union
|
| 356 |
+
{
|
| 357 |
+
struct
|
| 358 |
+
{
|
| 359 |
+
UINT Usage : 1;
|
| 360 |
+
UINT RGB_Range : 1;
|
| 361 |
+
UINT YCbCr_Matrix : 1;
|
| 362 |
+
UINT YCbCr_xvYCC : 1;
|
| 363 |
+
UINT Reserved : 28;
|
| 364 |
+
} ;
|
| 365 |
+
UINT Value;
|
| 366 |
+
} ;
|
| 367 |
+
} DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE_DATA;
|
| 368 |
+
|
| 369 |
+
typedef struct _DXVAHD_BLT_STATE_ALPHA_FILL_DATA
|
| 370 |
+
{
|
| 371 |
+
DXVAHD_ALPHA_FILL_MODE Mode;
|
| 372 |
+
UINT StreamNumber;
|
| 373 |
+
} DXVAHD_BLT_STATE_ALPHA_FILL_DATA;
|
| 374 |
+
|
| 375 |
+
typedef struct _DXVAHD_BLT_STATE_CONSTRICTION_DATA
|
| 376 |
+
{
|
| 377 |
+
BOOL Enable;
|
| 378 |
+
SIZE Size;
|
| 379 |
+
} DXVAHD_BLT_STATE_CONSTRICTION_DATA;
|
| 380 |
+
|
| 381 |
+
typedef struct _DXVAHD_BLT_STATE_PRIVATE_DATA
|
| 382 |
+
{
|
| 383 |
+
GUID Guid;
|
| 384 |
+
UINT DataSize;
|
| 385 |
+
void *pData;
|
| 386 |
+
} DXVAHD_BLT_STATE_PRIVATE_DATA;
|
| 387 |
+
|
| 388 |
+
typedef struct _DXVAHD_STREAM_STATE_D3DFORMAT_DATA
|
| 389 |
+
{
|
| 390 |
+
D3DFORMAT Format;
|
| 391 |
+
} DXVAHD_STREAM_STATE_D3DFORMAT_DATA;
|
| 392 |
+
|
| 393 |
+
typedef struct _DXVAHD_STREAM_STATE_FRAME_FORMAT_DATA
|
| 394 |
+
{
|
| 395 |
+
DXVAHD_FRAME_FORMAT FrameFormat;
|
| 396 |
+
} DXVAHD_STREAM_STATE_FRAME_FORMAT_DATA;
|
| 397 |
+
|
| 398 |
+
typedef struct _DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE_DATA
|
| 399 |
+
{
|
| 400 |
+
union
|
| 401 |
+
{
|
| 402 |
+
struct
|
| 403 |
+
{
|
| 404 |
+
UINT Type : 1;
|
| 405 |
+
UINT RGB_Range : 1;
|
| 406 |
+
UINT YCbCr_Matrix : 1;
|
| 407 |
+
UINT YCbCr_xvYCC : 1;
|
| 408 |
+
UINT Reserved : 28;
|
| 409 |
+
} ;
|
| 410 |
+
UINT Value;
|
| 411 |
+
} ;
|
| 412 |
+
} DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE_DATA;
|
| 413 |
+
|
| 414 |
+
typedef struct _DXVAHD_STREAM_STATE_OUTPUT_RATE_DATA
|
| 415 |
+
{
|
| 416 |
+
BOOL RepeatFrame;
|
| 417 |
+
DXVAHD_OUTPUT_RATE OutputRate;
|
| 418 |
+
DXVAHD_RATIONAL CustomRate;
|
| 419 |
+
} DXVAHD_STREAM_STATE_OUTPUT_RATE_DATA;
|
| 420 |
+
|
| 421 |
+
typedef struct _DXVAHD_STREAM_STATE_SOURCE_RECT_DATA
|
| 422 |
+
{
|
| 423 |
+
BOOL Enable;
|
| 424 |
+
RECT SourceRect;
|
| 425 |
+
} DXVAHD_STREAM_STATE_SOURCE_RECT_DATA;
|
| 426 |
+
|
| 427 |
+
typedef struct _DXVAHD_STREAM_STATE_DESTINATION_RECT_DATA
|
| 428 |
+
{
|
| 429 |
+
BOOL Enable;
|
| 430 |
+
RECT DestinationRect;
|
| 431 |
+
} DXVAHD_STREAM_STATE_DESTINATION_RECT_DATA;
|
| 432 |
+
|
| 433 |
+
typedef struct _DXVAHD_STREAM_STATE_ALPHA_DATA
|
| 434 |
+
{
|
| 435 |
+
BOOL Enable;
|
| 436 |
+
FLOAT Alpha;
|
| 437 |
+
} DXVAHD_STREAM_STATE_ALPHA_DATA;
|
| 438 |
+
|
| 439 |
+
typedef struct _DXVAHD_STREAM_STATE_PALETTE_DATA
|
| 440 |
+
{
|
| 441 |
+
UINT Count;
|
| 442 |
+
D3DCOLOR *pEntries;
|
| 443 |
+
} DXVAHD_STREAM_STATE_PALETTE_DATA;
|
| 444 |
+
|
| 445 |
+
typedef struct _DXVAHD_STREAM_STATE_LUMA_KEY_DATA
|
| 446 |
+
{
|
| 447 |
+
BOOL Enable;
|
| 448 |
+
FLOAT Lower;
|
| 449 |
+
FLOAT Upper;
|
| 450 |
+
} DXVAHD_STREAM_STATE_LUMA_KEY_DATA;
|
| 451 |
+
|
| 452 |
+
typedef struct _DXVAHD_STREAM_STATE_ASPECT_RATIO_DATA
|
| 453 |
+
{
|
| 454 |
+
BOOL Enable;
|
| 455 |
+
DXVAHD_RATIONAL SourceAspectRatio;
|
| 456 |
+
DXVAHD_RATIONAL DestinationAspectRatio;
|
| 457 |
+
} DXVAHD_STREAM_STATE_ASPECT_RATIO_DATA;
|
| 458 |
+
|
| 459 |
+
typedef struct _DXVAHD_STREAM_STATE_FILTER_DATA
|
| 460 |
+
{
|
| 461 |
+
BOOL Enable;
|
| 462 |
+
INT Level;
|
| 463 |
+
} DXVAHD_STREAM_STATE_FILTER_DATA;
|
| 464 |
+
|
| 465 |
+
typedef struct _DXVAHD_STREAM_STATE_PRIVATE_DATA
|
| 466 |
+
{
|
| 467 |
+
GUID Guid;
|
| 468 |
+
UINT DataSize;
|
| 469 |
+
void *pData;
|
| 470 |
+
} DXVAHD_STREAM_STATE_PRIVATE_DATA;
|
| 471 |
+
|
| 472 |
+
typedef struct _DXVAHD_STREAM_DATA
|
| 473 |
+
{
|
| 474 |
+
BOOL Enable;
|
| 475 |
+
UINT OutputIndex;
|
| 476 |
+
UINT InputFrameOrField;
|
| 477 |
+
UINT PastFrames;
|
| 478 |
+
UINT FutureFrames;
|
| 479 |
+
IDirect3DSurface9 **ppPastSurfaces;
|
| 480 |
+
IDirect3DSurface9 *pInputSurface;
|
| 481 |
+
IDirect3DSurface9 **ppFutureSurfaces;
|
| 482 |
+
} DXVAHD_STREAM_DATA;
|
| 483 |
+
|
| 484 |
+
|
| 485 |
+
|
| 486 |
+
DEFINE_GUID(DXVAHD_STREAM_STATE_PRIVATE_IVTC, 0x9c601e3c,0x0f33,0x414c,0xa7,0x39,0x99,0x54,0x0e,0xe4,0x2d,0xa5);
|
| 487 |
+
|
| 488 |
+
|
| 489 |
+
typedef struct _DXVAHD_STREAM_STATE_PRIVATE_IVTC_DATA
|
| 490 |
+
{
|
| 491 |
+
BOOL Enable;
|
| 492 |
+
UINT ITelecineFlags;
|
| 493 |
+
UINT Frames;
|
| 494 |
+
UINT InputField;
|
| 495 |
+
} DXVAHD_STREAM_STATE_PRIVATE_IVTC_DATA;
|
| 496 |
+
|
| 497 |
+
|
| 498 |
+
|
| 499 |
+
extern RPC_IF_HANDLE __MIDL_itf_dxvahd_0000_0000_v0_0_c_ifspec;
|
| 500 |
+
extern RPC_IF_HANDLE __MIDL_itf_dxvahd_0000_0000_v0_0_s_ifspec;
|
| 501 |
+
|
| 502 |
+
#ifndef __IDXVAHD_Device_INTERFACE_DEFINED__
|
| 503 |
+
#define __IDXVAHD_Device_INTERFACE_DEFINED__
|
| 504 |
+
|
| 505 |
+
/* interface IDXVAHD_Device */
|
| 506 |
+
/* [local][helpstring][uuid][object] */
|
| 507 |
+
|
| 508 |
+
|
| 509 |
+
EXTERN_C const IID IID_IDXVAHD_Device;
|
| 510 |
+
|
| 511 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 512 |
+
|
| 513 |
+
MIDL_INTERFACE("95f12dfd-d77e-49be-815f-57d579634d6d")
|
| 514 |
+
IDXVAHD_Device : public IUnknown
|
| 515 |
+
{
|
| 516 |
+
public:
|
| 517 |
+
virtual HRESULT STDMETHODCALLTYPE CreateVideoSurface(
|
| 518 |
+
/* [annotation][in] */
|
| 519 |
+
_In_ UINT Width,
|
| 520 |
+
/* [annotation][in] */
|
| 521 |
+
_In_ UINT Height,
|
| 522 |
+
/* [annotation][in] */
|
| 523 |
+
_In_ D3DFORMAT Format,
|
| 524 |
+
/* [annotation][in] */
|
| 525 |
+
_In_ D3DPOOL Pool,
|
| 526 |
+
/* [annotation][in] */
|
| 527 |
+
_In_ DWORD Usage,
|
| 528 |
+
/* [annotation][in] */
|
| 529 |
+
_In_ DXVAHD_SURFACE_TYPE Type,
|
| 530 |
+
/* [annotation][in] */
|
| 531 |
+
_In_ UINT NumSurfaces,
|
| 532 |
+
/* [annotation][size_is][out] */
|
| 533 |
+
_Out_writes_(NumSurfaces) IDirect3DSurface9 **ppSurfaces,
|
| 534 |
+
/* [annotation][out][in] */
|
| 535 |
+
_Inout_opt_ HANDLE *pSharedHandle) = 0;
|
| 536 |
+
|
| 537 |
+
virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorDeviceCaps(
|
| 538 |
+
/* [annotation][out] */
|
| 539 |
+
_Out_ DXVAHD_VPDEVCAPS *pCaps) = 0;
|
| 540 |
+
|
| 541 |
+
virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorOutputFormats(
|
| 542 |
+
/* [annotation][in] */
|
| 543 |
+
_In_ UINT Count,
|
| 544 |
+
/* [annotation][size_is][out] */
|
| 545 |
+
_Out_writes_(Count) D3DFORMAT *pFormats) = 0;
|
| 546 |
+
|
| 547 |
+
virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorInputFormats(
|
| 548 |
+
/* [annotation][in] */
|
| 549 |
+
_In_ UINT Count,
|
| 550 |
+
/* [annotation][size_is][out] */
|
| 551 |
+
_Out_writes_(Count) D3DFORMAT *pFormats) = 0;
|
| 552 |
+
|
| 553 |
+
virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorCaps(
|
| 554 |
+
/* [annotation][in] */
|
| 555 |
+
_In_ UINT Count,
|
| 556 |
+
/* [annotation][size_is][out] */
|
| 557 |
+
_Out_writes_(Count) DXVAHD_VPCAPS *pCaps) = 0;
|
| 558 |
+
|
| 559 |
+
virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorCustomRates(
|
| 560 |
+
/* [annotation][in] */
|
| 561 |
+
_In_ const GUID *pVPGuid,
|
| 562 |
+
/* [annotation][in] */
|
| 563 |
+
_In_ UINT Count,
|
| 564 |
+
/* [annotation][size_is][out] */
|
| 565 |
+
_Out_writes_(Count) DXVAHD_CUSTOM_RATE_DATA *pRates) = 0;
|
| 566 |
+
|
| 567 |
+
virtual HRESULT STDMETHODCALLTYPE GetVideoProcessorFilterRange(
|
| 568 |
+
/* [annotation][in] */
|
| 569 |
+
_In_ DXVAHD_FILTER Filter,
|
| 570 |
+
/* [annotation][out] */
|
| 571 |
+
_Out_ DXVAHD_FILTER_RANGE_DATA *pRange) = 0;
|
| 572 |
+
|
| 573 |
+
virtual HRESULT STDMETHODCALLTYPE CreateVideoProcessor(
|
| 574 |
+
/* [annotation][in] */
|
| 575 |
+
_In_ const GUID *pVPGuid,
|
| 576 |
+
/* [annotation][out] */
|
| 577 |
+
_Outptr_ IDXVAHD_VideoProcessor **ppVideoProcessor) = 0;
|
| 578 |
+
|
| 579 |
+
};
|
| 580 |
+
|
| 581 |
+
|
| 582 |
+
#else /* C style interface */
|
| 583 |
+
|
| 584 |
+
typedef struct IDXVAHD_DeviceVtbl
|
| 585 |
+
{
|
| 586 |
+
BEGIN_INTERFACE
|
| 587 |
+
|
| 588 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 589 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 590 |
+
IDXVAHD_Device * This,
|
| 591 |
+
/* [in] */ REFIID riid,
|
| 592 |
+
/* [annotation][iid_is][out] */
|
| 593 |
+
_COM_Outptr_ void **ppvObject);
|
| 594 |
+
|
| 595 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 596 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 597 |
+
IDXVAHD_Device * This);
|
| 598 |
+
|
| 599 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 600 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 601 |
+
IDXVAHD_Device * This);
|
| 602 |
+
|
| 603 |
+
DECLSPEC_XFGVIRT(IDXVAHD_Device, CreateVideoSurface)
|
| 604 |
+
HRESULT ( STDMETHODCALLTYPE *CreateVideoSurface )(
|
| 605 |
+
IDXVAHD_Device * This,
|
| 606 |
+
/* [annotation][in] */
|
| 607 |
+
_In_ UINT Width,
|
| 608 |
+
/* [annotation][in] */
|
| 609 |
+
_In_ UINT Height,
|
| 610 |
+
/* [annotation][in] */
|
| 611 |
+
_In_ D3DFORMAT Format,
|
| 612 |
+
/* [annotation][in] */
|
| 613 |
+
_In_ D3DPOOL Pool,
|
| 614 |
+
/* [annotation][in] */
|
| 615 |
+
_In_ DWORD Usage,
|
| 616 |
+
/* [annotation][in] */
|
| 617 |
+
_In_ DXVAHD_SURFACE_TYPE Type,
|
| 618 |
+
/* [annotation][in] */
|
| 619 |
+
_In_ UINT NumSurfaces,
|
| 620 |
+
/* [annotation][size_is][out] */
|
| 621 |
+
_Out_writes_(NumSurfaces) IDirect3DSurface9 **ppSurfaces,
|
| 622 |
+
/* [annotation][out][in] */
|
| 623 |
+
_Inout_opt_ HANDLE *pSharedHandle);
|
| 624 |
+
|
| 625 |
+
DECLSPEC_XFGVIRT(IDXVAHD_Device, GetVideoProcessorDeviceCaps)
|
| 626 |
+
HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorDeviceCaps )(
|
| 627 |
+
IDXVAHD_Device * This,
|
| 628 |
+
/* [annotation][out] */
|
| 629 |
+
_Out_ DXVAHD_VPDEVCAPS *pCaps);
|
| 630 |
+
|
| 631 |
+
DECLSPEC_XFGVIRT(IDXVAHD_Device, GetVideoProcessorOutputFormats)
|
| 632 |
+
HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorOutputFormats )(
|
| 633 |
+
IDXVAHD_Device * This,
|
| 634 |
+
/* [annotation][in] */
|
| 635 |
+
_In_ UINT Count,
|
| 636 |
+
/* [annotation][size_is][out] */
|
| 637 |
+
_Out_writes_(Count) D3DFORMAT *pFormats);
|
| 638 |
+
|
| 639 |
+
DECLSPEC_XFGVIRT(IDXVAHD_Device, GetVideoProcessorInputFormats)
|
| 640 |
+
HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorInputFormats )(
|
| 641 |
+
IDXVAHD_Device * This,
|
| 642 |
+
/* [annotation][in] */
|
| 643 |
+
_In_ UINT Count,
|
| 644 |
+
/* [annotation][size_is][out] */
|
| 645 |
+
_Out_writes_(Count) D3DFORMAT *pFormats);
|
| 646 |
+
|
| 647 |
+
DECLSPEC_XFGVIRT(IDXVAHD_Device, GetVideoProcessorCaps)
|
| 648 |
+
HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorCaps )(
|
| 649 |
+
IDXVAHD_Device * This,
|
| 650 |
+
/* [annotation][in] */
|
| 651 |
+
_In_ UINT Count,
|
| 652 |
+
/* [annotation][size_is][out] */
|
| 653 |
+
_Out_writes_(Count) DXVAHD_VPCAPS *pCaps);
|
| 654 |
+
|
| 655 |
+
DECLSPEC_XFGVIRT(IDXVAHD_Device, GetVideoProcessorCustomRates)
|
| 656 |
+
HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorCustomRates )(
|
| 657 |
+
IDXVAHD_Device * This,
|
| 658 |
+
/* [annotation][in] */
|
| 659 |
+
_In_ const GUID *pVPGuid,
|
| 660 |
+
/* [annotation][in] */
|
| 661 |
+
_In_ UINT Count,
|
| 662 |
+
/* [annotation][size_is][out] */
|
| 663 |
+
_Out_writes_(Count) DXVAHD_CUSTOM_RATE_DATA *pRates);
|
| 664 |
+
|
| 665 |
+
DECLSPEC_XFGVIRT(IDXVAHD_Device, GetVideoProcessorFilterRange)
|
| 666 |
+
HRESULT ( STDMETHODCALLTYPE *GetVideoProcessorFilterRange )(
|
| 667 |
+
IDXVAHD_Device * This,
|
| 668 |
+
/* [annotation][in] */
|
| 669 |
+
_In_ DXVAHD_FILTER Filter,
|
| 670 |
+
/* [annotation][out] */
|
| 671 |
+
_Out_ DXVAHD_FILTER_RANGE_DATA *pRange);
|
| 672 |
+
|
| 673 |
+
DECLSPEC_XFGVIRT(IDXVAHD_Device, CreateVideoProcessor)
|
| 674 |
+
HRESULT ( STDMETHODCALLTYPE *CreateVideoProcessor )(
|
| 675 |
+
IDXVAHD_Device * This,
|
| 676 |
+
/* [annotation][in] */
|
| 677 |
+
_In_ const GUID *pVPGuid,
|
| 678 |
+
/* [annotation][out] */
|
| 679 |
+
_Outptr_ IDXVAHD_VideoProcessor **ppVideoProcessor);
|
| 680 |
+
|
| 681 |
+
END_INTERFACE
|
| 682 |
+
} IDXVAHD_DeviceVtbl;
|
| 683 |
+
|
| 684 |
+
interface IDXVAHD_Device
|
| 685 |
+
{
|
| 686 |
+
CONST_VTBL struct IDXVAHD_DeviceVtbl *lpVtbl;
|
| 687 |
+
};
|
| 688 |
+
|
| 689 |
+
|
| 690 |
+
|
| 691 |
+
#ifdef COBJMACROS
|
| 692 |
+
|
| 693 |
+
|
| 694 |
+
#define IDXVAHD_Device_QueryInterface(This,riid,ppvObject) \
|
| 695 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 696 |
+
|
| 697 |
+
#define IDXVAHD_Device_AddRef(This) \
|
| 698 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 699 |
+
|
| 700 |
+
#define IDXVAHD_Device_Release(This) \
|
| 701 |
+
( (This)->lpVtbl -> Release(This) )
|
| 702 |
+
|
| 703 |
+
|
| 704 |
+
#define IDXVAHD_Device_CreateVideoSurface(This,Width,Height,Format,Pool,Usage,Type,NumSurfaces,ppSurfaces,pSharedHandle) \
|
| 705 |
+
( (This)->lpVtbl -> CreateVideoSurface(This,Width,Height,Format,Pool,Usage,Type,NumSurfaces,ppSurfaces,pSharedHandle) )
|
| 706 |
+
|
| 707 |
+
#define IDXVAHD_Device_GetVideoProcessorDeviceCaps(This,pCaps) \
|
| 708 |
+
( (This)->lpVtbl -> GetVideoProcessorDeviceCaps(This,pCaps) )
|
| 709 |
+
|
| 710 |
+
#define IDXVAHD_Device_GetVideoProcessorOutputFormats(This,Count,pFormats) \
|
| 711 |
+
( (This)->lpVtbl -> GetVideoProcessorOutputFormats(This,Count,pFormats) )
|
| 712 |
+
|
| 713 |
+
#define IDXVAHD_Device_GetVideoProcessorInputFormats(This,Count,pFormats) \
|
| 714 |
+
( (This)->lpVtbl -> GetVideoProcessorInputFormats(This,Count,pFormats) )
|
| 715 |
+
|
| 716 |
+
#define IDXVAHD_Device_GetVideoProcessorCaps(This,Count,pCaps) \
|
| 717 |
+
( (This)->lpVtbl -> GetVideoProcessorCaps(This,Count,pCaps) )
|
| 718 |
+
|
| 719 |
+
#define IDXVAHD_Device_GetVideoProcessorCustomRates(This,pVPGuid,Count,pRates) \
|
| 720 |
+
( (This)->lpVtbl -> GetVideoProcessorCustomRates(This,pVPGuid,Count,pRates) )
|
| 721 |
+
|
| 722 |
+
#define IDXVAHD_Device_GetVideoProcessorFilterRange(This,Filter,pRange) \
|
| 723 |
+
( (This)->lpVtbl -> GetVideoProcessorFilterRange(This,Filter,pRange) )
|
| 724 |
+
|
| 725 |
+
#define IDXVAHD_Device_CreateVideoProcessor(This,pVPGuid,ppVideoProcessor) \
|
| 726 |
+
( (This)->lpVtbl -> CreateVideoProcessor(This,pVPGuid,ppVideoProcessor) )
|
| 727 |
+
|
| 728 |
+
#endif /* COBJMACROS */
|
| 729 |
+
|
| 730 |
+
|
| 731 |
+
#endif /* C style interface */
|
| 732 |
+
|
| 733 |
+
|
| 734 |
+
|
| 735 |
+
|
| 736 |
+
#endif /* __IDXVAHD_Device_INTERFACE_DEFINED__ */
|
| 737 |
+
|
| 738 |
+
|
| 739 |
+
#ifndef __IDXVAHD_VideoProcessor_INTERFACE_DEFINED__
|
| 740 |
+
#define __IDXVAHD_VideoProcessor_INTERFACE_DEFINED__
|
| 741 |
+
|
| 742 |
+
/* interface IDXVAHD_VideoProcessor */
|
| 743 |
+
/* [local][helpstring][uuid][object] */
|
| 744 |
+
|
| 745 |
+
|
| 746 |
+
EXTERN_C const IID IID_IDXVAHD_VideoProcessor;
|
| 747 |
+
|
| 748 |
+
#if defined(__cplusplus) && !defined(CINTERFACE)
|
| 749 |
+
|
| 750 |
+
MIDL_INTERFACE("95f4edf4-6e03-4cd7-be1b-3075d665aa52")
|
| 751 |
+
IDXVAHD_VideoProcessor : public IUnknown
|
| 752 |
+
{
|
| 753 |
+
public:
|
| 754 |
+
virtual HRESULT STDMETHODCALLTYPE SetVideoProcessBltState(
|
| 755 |
+
/* [annotation][in] */
|
| 756 |
+
_In_ DXVAHD_BLT_STATE State,
|
| 757 |
+
/* [annotation][in] */
|
| 758 |
+
_In_ UINT DataSize,
|
| 759 |
+
/* [annotation][in] */
|
| 760 |
+
_In_reads_bytes_(DataSize) const void *pData) = 0;
|
| 761 |
+
|
| 762 |
+
virtual HRESULT STDMETHODCALLTYPE GetVideoProcessBltState(
|
| 763 |
+
/* [annotation][in] */
|
| 764 |
+
_In_ DXVAHD_BLT_STATE State,
|
| 765 |
+
/* [annotation][in] */
|
| 766 |
+
_In_ UINT DataSize,
|
| 767 |
+
/* [annotation][out] */
|
| 768 |
+
_Inout_updates_bytes_(DataSize) void *pData) = 0;
|
| 769 |
+
|
| 770 |
+
virtual HRESULT STDMETHODCALLTYPE SetVideoProcessStreamState(
|
| 771 |
+
/* [annotation][in] */
|
| 772 |
+
_In_ UINT StreamNumber,
|
| 773 |
+
/* [annotation][in] */
|
| 774 |
+
_In_ DXVAHD_STREAM_STATE State,
|
| 775 |
+
/* [annotation][in] */
|
| 776 |
+
_In_ UINT DataSize,
|
| 777 |
+
/* [annotation][in] */
|
| 778 |
+
_In_reads_bytes_(DataSize) const void *pData) = 0;
|
| 779 |
+
|
| 780 |
+
virtual HRESULT STDMETHODCALLTYPE GetVideoProcessStreamState(
|
| 781 |
+
/* [annotation][in] */
|
| 782 |
+
_In_ UINT StreamNumber,
|
| 783 |
+
/* [annotation][in] */
|
| 784 |
+
_In_ DXVAHD_STREAM_STATE State,
|
| 785 |
+
/* [annotation][in] */
|
| 786 |
+
_In_ UINT DataSize,
|
| 787 |
+
/* [annotation][out] */
|
| 788 |
+
_Inout_updates_bytes_(DataSize) void *pData) = 0;
|
| 789 |
+
|
| 790 |
+
virtual HRESULT STDMETHODCALLTYPE VideoProcessBltHD(
|
| 791 |
+
/* [annotation][in] */
|
| 792 |
+
_In_ IDirect3DSurface9 *pOutputSurface,
|
| 793 |
+
/* [annotation][in] */
|
| 794 |
+
_In_ UINT OutputFrame,
|
| 795 |
+
/* [annotation][in] */
|
| 796 |
+
_In_ UINT StreamCount,
|
| 797 |
+
/* [annotation][size_is][in] */
|
| 798 |
+
_In_reads_(StreamCount) const DXVAHD_STREAM_DATA *pStreams) = 0;
|
| 799 |
+
|
| 800 |
+
};
|
| 801 |
+
|
| 802 |
+
|
| 803 |
+
#else /* C style interface */
|
| 804 |
+
|
| 805 |
+
typedef struct IDXVAHD_VideoProcessorVtbl
|
| 806 |
+
{
|
| 807 |
+
BEGIN_INTERFACE
|
| 808 |
+
|
| 809 |
+
DECLSPEC_XFGVIRT(IUnknown, QueryInterface)
|
| 810 |
+
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
| 811 |
+
IDXVAHD_VideoProcessor * This,
|
| 812 |
+
/* [in] */ REFIID riid,
|
| 813 |
+
/* [annotation][iid_is][out] */
|
| 814 |
+
_COM_Outptr_ void **ppvObject);
|
| 815 |
+
|
| 816 |
+
DECLSPEC_XFGVIRT(IUnknown, AddRef)
|
| 817 |
+
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
| 818 |
+
IDXVAHD_VideoProcessor * This);
|
| 819 |
+
|
| 820 |
+
DECLSPEC_XFGVIRT(IUnknown, Release)
|
| 821 |
+
ULONG ( STDMETHODCALLTYPE *Release )(
|
| 822 |
+
IDXVAHD_VideoProcessor * This);
|
| 823 |
+
|
| 824 |
+
DECLSPEC_XFGVIRT(IDXVAHD_VideoProcessor, SetVideoProcessBltState)
|
| 825 |
+
HRESULT ( STDMETHODCALLTYPE *SetVideoProcessBltState )(
|
| 826 |
+
IDXVAHD_VideoProcessor * This,
|
| 827 |
+
/* [annotation][in] */
|
| 828 |
+
_In_ DXVAHD_BLT_STATE State,
|
| 829 |
+
/* [annotation][in] */
|
| 830 |
+
_In_ UINT DataSize,
|
| 831 |
+
/* [annotation][in] */
|
| 832 |
+
_In_reads_bytes_(DataSize) const void *pData);
|
| 833 |
+
|
| 834 |
+
DECLSPEC_XFGVIRT(IDXVAHD_VideoProcessor, GetVideoProcessBltState)
|
| 835 |
+
HRESULT ( STDMETHODCALLTYPE *GetVideoProcessBltState )(
|
| 836 |
+
IDXVAHD_VideoProcessor * This,
|
| 837 |
+
/* [annotation][in] */
|
| 838 |
+
_In_ DXVAHD_BLT_STATE State,
|
| 839 |
+
/* [annotation][in] */
|
| 840 |
+
_In_ UINT DataSize,
|
| 841 |
+
/* [annotation][out] */
|
| 842 |
+
_Inout_updates_bytes_(DataSize) void *pData);
|
| 843 |
+
|
| 844 |
+
DECLSPEC_XFGVIRT(IDXVAHD_VideoProcessor, SetVideoProcessStreamState)
|
| 845 |
+
HRESULT ( STDMETHODCALLTYPE *SetVideoProcessStreamState )(
|
| 846 |
+
IDXVAHD_VideoProcessor * This,
|
| 847 |
+
/* [annotation][in] */
|
| 848 |
+
_In_ UINT StreamNumber,
|
| 849 |
+
/* [annotation][in] */
|
| 850 |
+
_In_ DXVAHD_STREAM_STATE State,
|
| 851 |
+
/* [annotation][in] */
|
| 852 |
+
_In_ UINT DataSize,
|
| 853 |
+
/* [annotation][in] */
|
| 854 |
+
_In_reads_bytes_(DataSize) const void *pData);
|
| 855 |
+
|
| 856 |
+
DECLSPEC_XFGVIRT(IDXVAHD_VideoProcessor, GetVideoProcessStreamState)
|
| 857 |
+
HRESULT ( STDMETHODCALLTYPE *GetVideoProcessStreamState )(
|
| 858 |
+
IDXVAHD_VideoProcessor * This,
|
| 859 |
+
/* [annotation][in] */
|
| 860 |
+
_In_ UINT StreamNumber,
|
| 861 |
+
/* [annotation][in] */
|
| 862 |
+
_In_ DXVAHD_STREAM_STATE State,
|
| 863 |
+
/* [annotation][in] */
|
| 864 |
+
_In_ UINT DataSize,
|
| 865 |
+
/* [annotation][out] */
|
| 866 |
+
_Inout_updates_bytes_(DataSize) void *pData);
|
| 867 |
+
|
| 868 |
+
DECLSPEC_XFGVIRT(IDXVAHD_VideoProcessor, VideoProcessBltHD)
|
| 869 |
+
HRESULT ( STDMETHODCALLTYPE *VideoProcessBltHD )(
|
| 870 |
+
IDXVAHD_VideoProcessor * This,
|
| 871 |
+
/* [annotation][in] */
|
| 872 |
+
_In_ IDirect3DSurface9 *pOutputSurface,
|
| 873 |
+
/* [annotation][in] */
|
| 874 |
+
_In_ UINT OutputFrame,
|
| 875 |
+
/* [annotation][in] */
|
| 876 |
+
_In_ UINT StreamCount,
|
| 877 |
+
/* [annotation][size_is][in] */
|
| 878 |
+
_In_reads_(StreamCount) const DXVAHD_STREAM_DATA *pStreams);
|
| 879 |
+
|
| 880 |
+
END_INTERFACE
|
| 881 |
+
} IDXVAHD_VideoProcessorVtbl;
|
| 882 |
+
|
| 883 |
+
interface IDXVAHD_VideoProcessor
|
| 884 |
+
{
|
| 885 |
+
CONST_VTBL struct IDXVAHD_VideoProcessorVtbl *lpVtbl;
|
| 886 |
+
};
|
| 887 |
+
|
| 888 |
+
|
| 889 |
+
|
| 890 |
+
#ifdef COBJMACROS
|
| 891 |
+
|
| 892 |
+
|
| 893 |
+
#define IDXVAHD_VideoProcessor_QueryInterface(This,riid,ppvObject) \
|
| 894 |
+
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
|
| 895 |
+
|
| 896 |
+
#define IDXVAHD_VideoProcessor_AddRef(This) \
|
| 897 |
+
( (This)->lpVtbl -> AddRef(This) )
|
| 898 |
+
|
| 899 |
+
#define IDXVAHD_VideoProcessor_Release(This) \
|
| 900 |
+
( (This)->lpVtbl -> Release(This) )
|
| 901 |
+
|
| 902 |
+
|
| 903 |
+
#define IDXVAHD_VideoProcessor_SetVideoProcessBltState(This,State,DataSize,pData) \
|
| 904 |
+
( (This)->lpVtbl -> SetVideoProcessBltState(This,State,DataSize,pData) )
|
| 905 |
+
|
| 906 |
+
#define IDXVAHD_VideoProcessor_GetVideoProcessBltState(This,State,DataSize,pData) \
|
| 907 |
+
( (This)->lpVtbl -> GetVideoProcessBltState(This,State,DataSize,pData) )
|
| 908 |
+
|
| 909 |
+
#define IDXVAHD_VideoProcessor_SetVideoProcessStreamState(This,StreamNumber,State,DataSize,pData) \
|
| 910 |
+
( (This)->lpVtbl -> SetVideoProcessStreamState(This,StreamNumber,State,DataSize,pData) )
|
| 911 |
+
|
| 912 |
+
#define IDXVAHD_VideoProcessor_GetVideoProcessStreamState(This,StreamNumber,State,DataSize,pData) \
|
| 913 |
+
( (This)->lpVtbl -> GetVideoProcessStreamState(This,StreamNumber,State,DataSize,pData) )
|
| 914 |
+
|
| 915 |
+
#define IDXVAHD_VideoProcessor_VideoProcessBltHD(This,pOutputSurface,OutputFrame,StreamCount,pStreams) \
|
| 916 |
+
( (This)->lpVtbl -> VideoProcessBltHD(This,pOutputSurface,OutputFrame,StreamCount,pStreams) )
|
| 917 |
+
|
| 918 |
+
#endif /* COBJMACROS */
|
| 919 |
+
|
| 920 |
+
|
| 921 |
+
#endif /* C style interface */
|
| 922 |
+
|
| 923 |
+
|
| 924 |
+
|
| 925 |
+
|
| 926 |
+
#endif /* __IDXVAHD_VideoProcessor_INTERFACE_DEFINED__ */
|
| 927 |
+
|
| 928 |
+
|
| 929 |
+
/* interface __MIDL_itf_dxvahd_0000_0002 */
|
| 930 |
+
/* [local] */
|
| 931 |
+
|
| 932 |
+
|
| 933 |
+
|
| 934 |
+
typedef HRESULT (CALLBACK* PDXVAHDSW_CreateDevice)(
|
| 935 |
+
_In_ IDirect3DDevice9Ex* pD3DDevice,
|
| 936 |
+
_Out_ HANDLE* phDevice
|
| 937 |
+
);
|
| 938 |
+
|
| 939 |
+
typedef HRESULT (CALLBACK* PDXVAHDSW_ProposeVideoPrivateFormat)(
|
| 940 |
+
_In_ HANDLE hDevice,
|
| 941 |
+
_Inout_ D3DFORMAT* pFormat
|
| 942 |
+
);
|
| 943 |
+
|
| 944 |
+
typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorDeviceCaps)(
|
| 945 |
+
_In_ HANDLE hDevice,
|
| 946 |
+
_In_ const DXVAHD_CONTENT_DESC* pContentDesc,
|
| 947 |
+
_In_ DXVAHD_DEVICE_USAGE Usage,
|
| 948 |
+
_Out_ DXVAHD_VPDEVCAPS* pCaps
|
| 949 |
+
);
|
| 950 |
+
|
| 951 |
+
typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorOutputFormats)(
|
| 952 |
+
_In_ HANDLE hDevice,
|
| 953 |
+
_In_ const DXVAHD_CONTENT_DESC* pContentDesc,
|
| 954 |
+
_In_ DXVAHD_DEVICE_USAGE Usage,
|
| 955 |
+
_In_ UINT Count,
|
| 956 |
+
_Out_writes_(Count) D3DFORMAT* pFormats
|
| 957 |
+
);
|
| 958 |
+
|
| 959 |
+
typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorInputFormats)(
|
| 960 |
+
_In_ HANDLE hDevice,
|
| 961 |
+
_In_ const DXVAHD_CONTENT_DESC* pContentDesc,
|
| 962 |
+
_In_ DXVAHD_DEVICE_USAGE Usage,
|
| 963 |
+
_In_ UINT Count,
|
| 964 |
+
_Out_writes_(Count) D3DFORMAT* pFormats
|
| 965 |
+
);
|
| 966 |
+
|
| 967 |
+
typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorCaps)(
|
| 968 |
+
_In_ HANDLE hDevice,
|
| 969 |
+
_In_ const DXVAHD_CONTENT_DESC* pContentDesc,
|
| 970 |
+
_In_ DXVAHD_DEVICE_USAGE Usage,
|
| 971 |
+
_In_ UINT Count,
|
| 972 |
+
_Out_writes_(Count) DXVAHD_VPCAPS* pCaps
|
| 973 |
+
);
|
| 974 |
+
|
| 975 |
+
typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorCustomRates)(
|
| 976 |
+
_In_ HANDLE hDevice,
|
| 977 |
+
_In_ const GUID* pVPGuid,
|
| 978 |
+
_In_ UINT Count,
|
| 979 |
+
_Out_writes_(Count) DXVAHD_CUSTOM_RATE_DATA* pRates
|
| 980 |
+
);
|
| 981 |
+
|
| 982 |
+
typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorFilterRange)(
|
| 983 |
+
_In_ HANDLE hDevice,
|
| 984 |
+
_In_ DXVAHD_FILTER Filter,
|
| 985 |
+
_Out_ DXVAHD_FILTER_RANGE_DATA* pRange
|
| 986 |
+
);
|
| 987 |
+
|
| 988 |
+
typedef HRESULT (CALLBACK* PDXVAHDSW_DestroyDevice)(
|
| 989 |
+
_In_ HANDLE hDevice
|
| 990 |
+
);
|
| 991 |
+
|
| 992 |
+
typedef HRESULT (CALLBACK* PDXVAHDSW_CreateVideoProcessor)(
|
| 993 |
+
_In_ HANDLE hDevice,
|
| 994 |
+
_In_ const GUID* pVPGuid,
|
| 995 |
+
_Out_ HANDLE* phVideoProcessor
|
| 996 |
+
);
|
| 997 |
+
|
| 998 |
+
typedef HRESULT (CALLBACK* PDXVAHDSW_SetVideoProcessBltState)(
|
| 999 |
+
_In_ HANDLE hVideoProcessor,
|
| 1000 |
+
_In_ DXVAHD_BLT_STATE State,
|
| 1001 |
+
_In_ UINT DataSize,
|
| 1002 |
+
_In_reads_bytes_(DataSize) const void* pData
|
| 1003 |
+
);
|
| 1004 |
+
|
| 1005 |
+
typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessBltStatePrivate)(
|
| 1006 |
+
_In_ HANDLE hVideoProcessor,
|
| 1007 |
+
_Inout_ DXVAHD_BLT_STATE_PRIVATE_DATA* pData
|
| 1008 |
+
);
|
| 1009 |
+
|
| 1010 |
+
typedef HRESULT (CALLBACK* PDXVAHDSW_SetVideoProcessStreamState)(
|
| 1011 |
+
_In_ HANDLE hVideoProcessor,
|
| 1012 |
+
_In_ UINT StreamNumber,
|
| 1013 |
+
_In_ DXVAHD_STREAM_STATE State,
|
| 1014 |
+
_In_ UINT DataSize,
|
| 1015 |
+
_In_reads_bytes_(DataSize) const void* pData
|
| 1016 |
+
);
|
| 1017 |
+
|
| 1018 |
+
typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessStreamStatePrivate)(
|
| 1019 |
+
_In_ HANDLE hVideoProcessor,
|
| 1020 |
+
_In_ UINT StreamNumber,
|
| 1021 |
+
_Inout_ DXVAHD_STREAM_STATE_PRIVATE_DATA* pData
|
| 1022 |
+
);
|
| 1023 |
+
|
| 1024 |
+
typedef HRESULT (CALLBACK* PDXVAHDSW_VideoProcessBltHD)(
|
| 1025 |
+
_In_ HANDLE hVideoProcessor,
|
| 1026 |
+
_In_ IDirect3DSurface9* pOutputSurface,
|
| 1027 |
+
_In_ UINT OutputFrame,
|
| 1028 |
+
_In_ UINT StreamCount,
|
| 1029 |
+
_In_reads_(StreamCount) const DXVAHD_STREAM_DATA* pStreams
|
| 1030 |
+
);
|
| 1031 |
+
|
| 1032 |
+
typedef HRESULT (CALLBACK* PDXVAHDSW_DestroyVideoProcessor)(
|
| 1033 |
+
_In_ HANDLE hVideoProcessor
|
| 1034 |
+
);
|
| 1035 |
+
|
| 1036 |
+
typedef struct _DXVAHDSW_CALLBACKS
|
| 1037 |
+
{
|
| 1038 |
+
PDXVAHDSW_CreateDevice CreateDevice;
|
| 1039 |
+
PDXVAHDSW_ProposeVideoPrivateFormat ProposeVideoPrivateFormat;
|
| 1040 |
+
PDXVAHDSW_GetVideoProcessorDeviceCaps GetVideoProcessorDeviceCaps;
|
| 1041 |
+
PDXVAHDSW_GetVideoProcessorOutputFormats GetVideoProcessorOutputFormats;
|
| 1042 |
+
PDXVAHDSW_GetVideoProcessorInputFormats GetVideoProcessorInputFormats;
|
| 1043 |
+
PDXVAHDSW_GetVideoProcessorCaps GetVideoProcessorCaps;
|
| 1044 |
+
PDXVAHDSW_GetVideoProcessorCustomRates GetVideoProcessorCustomRates;
|
| 1045 |
+
PDXVAHDSW_GetVideoProcessorFilterRange GetVideoProcessorFilterRange;
|
| 1046 |
+
PDXVAHDSW_DestroyDevice DestroyDevice;
|
| 1047 |
+
PDXVAHDSW_CreateVideoProcessor CreateVideoProcessor;
|
| 1048 |
+
PDXVAHDSW_SetVideoProcessBltState SetVideoProcessBltState;
|
| 1049 |
+
PDXVAHDSW_GetVideoProcessBltStatePrivate GetVideoProcessBltStatePrivate;
|
| 1050 |
+
PDXVAHDSW_SetVideoProcessStreamState SetVideoProcessStreamState;
|
| 1051 |
+
PDXVAHDSW_GetVideoProcessStreamStatePrivate GetVideoProcessStreamStatePrivate;
|
| 1052 |
+
PDXVAHDSW_VideoProcessBltHD VideoProcessBltHD;
|
| 1053 |
+
PDXVAHDSW_DestroyVideoProcessor DestroyVideoProcessor;
|
| 1054 |
+
} DXVAHDSW_CALLBACKS;
|
| 1055 |
+
|
| 1056 |
+
typedef HRESULT (CALLBACK* PDXVAHDSW_Plugin)(
|
| 1057 |
+
_In_ UINT Size,
|
| 1058 |
+
_Out_writes_bytes_(Size) void* pCallbacks
|
| 1059 |
+
);
|
| 1060 |
+
|
| 1061 |
+
|
| 1062 |
+
|
| 1063 |
+
|
| 1064 |
+
DEFINE_GUID(DXVAHDControlGuid, 0xa0386e75,0xf70c,0x464c,0xa9,0xce,0x33,0xc4,0x4e,0x09,0x16,0x23); // DXVA2Trace_Control
|
| 1065 |
+
|
| 1066 |
+
DEFINE_GUID(DXVAHDETWGUID_CREATEVIDEOPROCESSOR, 0x681e3d1e,0x5674,0x4fb3,0xa5,0x03,0x2f,0x20,0x55,0xe9,0x1f,0x60);
|
| 1067 |
+
DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSBLTSTATE, 0x76c94b5a,0x193f,0x4692,0x94,0x84,0xa4,0xd9,0x99,0xda,0x81,0xa8);
|
| 1068 |
+
DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSSTREAMSTATE, 0x262c0b02,0x209d,0x47ed,0x94,0xd8,0x82,0xae,0x02,0xb8,0x4a,0xa7);
|
| 1069 |
+
DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSBLTHD, 0xbef3d435,0x78c7,0x4de3,0x97,0x07,0xcd,0x1b,0x08,0x3b,0x16,0x0a);
|
| 1070 |
+
DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSBLTHD_STREAM, 0x27ae473e,0xa5fc,0x4be5,0xb4,0xe3,0xf2,0x49,0x94,0xd3,0xc4,0x95);
|
| 1071 |
+
DEFINE_GUID(DXVAHDETWGUID_DESTROYVIDEOPROCESSOR, 0xf943f0a0,0x3f16,0x43e0,0x80,0x93,0x10,0x5a,0x98,0x6a,0xa5,0xf1);
|
| 1072 |
+
|
| 1073 |
+
|
| 1074 |
+
typedef struct _DXVAHDETW_CREATEVIDEOPROCESSOR
|
| 1075 |
+
{
|
| 1076 |
+
ULONGLONG pObject;
|
| 1077 |
+
ULONGLONG pD3D9Ex;
|
| 1078 |
+
GUID VPGuid;
|
| 1079 |
+
} DXVAHDETW_CREATEVIDEOPROCESSOR;
|
| 1080 |
+
|
| 1081 |
+
typedef struct _DXVAHDETW_VIDEOPROCESSBLTSTATE
|
| 1082 |
+
{
|
| 1083 |
+
ULONGLONG pObject;
|
| 1084 |
+
DXVAHD_BLT_STATE State;
|
| 1085 |
+
UINT DataSize;
|
| 1086 |
+
BOOL SetState;
|
| 1087 |
+
} DXVAHDETW_VIDEOPROCESSBLTSTATE;
|
| 1088 |
+
|
| 1089 |
+
typedef struct _DXVAHDETW_VIDEOPROCESSSTREAMSTATE
|
| 1090 |
+
{
|
| 1091 |
+
ULONGLONG pObject;
|
| 1092 |
+
UINT StreamNumber;
|
| 1093 |
+
DXVAHD_STREAM_STATE State;
|
| 1094 |
+
UINT DataSize;
|
| 1095 |
+
BOOL SetState;
|
| 1096 |
+
} DXVAHDETW_VIDEOPROCESSSTREAMSTATE;
|
| 1097 |
+
|
| 1098 |
+
typedef struct _DXVAHDETW_VIDEOPROCESSBLTHD
|
| 1099 |
+
{
|
| 1100 |
+
ULONGLONG pObject;
|
| 1101 |
+
ULONGLONG pOutputSurface;
|
| 1102 |
+
RECT TargetRect;
|
| 1103 |
+
D3DFORMAT OutputFormat;
|
| 1104 |
+
UINT ColorSpace;
|
| 1105 |
+
UINT OutputFrame;
|
| 1106 |
+
UINT StreamCount;
|
| 1107 |
+
BOOL Enter;
|
| 1108 |
+
} DXVAHDETW_VIDEOPROCESSBLTHD;
|
| 1109 |
+
|
| 1110 |
+
typedef struct _DXVAHDETW_VIDEOPROCESSBLTHD_STREAM
|
| 1111 |
+
{
|
| 1112 |
+
ULONGLONG pObject;
|
| 1113 |
+
ULONGLONG pInputSurface;
|
| 1114 |
+
RECT SourceRect;
|
| 1115 |
+
RECT DestinationRect;
|
| 1116 |
+
D3DFORMAT InputFormat;
|
| 1117 |
+
DXVAHD_FRAME_FORMAT FrameFormat;
|
| 1118 |
+
UINT ColorSpace;
|
| 1119 |
+
UINT StreamNumber;
|
| 1120 |
+
UINT OutputIndex;
|
| 1121 |
+
UINT InputFrameOrField;
|
| 1122 |
+
UINT PastFrames;
|
| 1123 |
+
UINT FutureFrames;
|
| 1124 |
+
} DXVAHDETW_VIDEOPROCESSBLTHD_STREAM;
|
| 1125 |
+
|
| 1126 |
+
typedef struct _DXVAHDETW_DESTROYVIDEOPROCESSOR
|
| 1127 |
+
{
|
| 1128 |
+
ULONGLONG pObject;
|
| 1129 |
+
} DXVAHDETW_DESTROYVIDEOPROCESSOR;
|
| 1130 |
+
|
| 1131 |
+
|
| 1132 |
+
|
| 1133 |
+
HRESULT WINAPI
|
| 1134 |
+
DXVAHD_CreateDevice(
|
| 1135 |
+
_In_ IDirect3DDevice9Ex* pD3DDevice,
|
| 1136 |
+
_In_ const DXVAHD_CONTENT_DESC* pContentDesc,
|
| 1137 |
+
_In_ DXVAHD_DEVICE_USAGE Usage,
|
| 1138 |
+
_In_opt_ PDXVAHDSW_Plugin pPlugin,
|
| 1139 |
+
_Outptr_ IDXVAHD_Device** ppDevice
|
| 1140 |
+
);
|
| 1141 |
+
|
| 1142 |
+
typedef HRESULT (WINAPI* PDXVAHD_CreateDevice)(
|
| 1143 |
+
_In_ IDirect3DDevice9Ex* pD3DDevice,
|
| 1144 |
+
_In_ const DXVAHD_CONTENT_DESC* pContentDesc,
|
| 1145 |
+
_In_ DXVAHD_DEVICE_USAGE Usage,
|
| 1146 |
+
_In_opt_ PDXVAHDSW_Plugin pPlugin,
|
| 1147 |
+
_Outptr_ IDXVAHD_Device** ppDevice
|
| 1148 |
+
);
|
| 1149 |
+
|
| 1150 |
+
|
| 1151 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 1152 |
+
#pragma endregion
|
| 1153 |
+
|
| 1154 |
+
|
| 1155 |
+
extern RPC_IF_HANDLE __MIDL_itf_dxvahd_0000_0002_v0_0_c_ifspec;
|
| 1156 |
+
extern RPC_IF_HANDLE __MIDL_itf_dxvahd_0000_0002_v0_0_s_ifspec;
|
| 1157 |
+
|
| 1158 |
+
/* Additional Prototypes for ALL interfaces */
|
| 1159 |
+
|
| 1160 |
+
/* end of Additional Prototypes */
|
| 1161 |
+
|
| 1162 |
+
#ifdef __cplusplus
|
| 1163 |
+
}
|
| 1164 |
+
#endif
|
| 1165 |
+
|
| 1166 |
+
#endif
|
| 1167 |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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 2 |
+
//
|
| 3 |
+
// DXVA-HD IDL
|
| 4 |
+
//
|
| 5 |
+
// Contains interface definitions for DirectX Video Acceleration for HD API.
|
| 6 |
+
//
|
| 7 |
+
// Copyright (C) Microsoft Corporation
|
| 8 |
+
//
|
| 9 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 10 |
+
|
| 11 |
+
cpp_quote("#include <winapifamily.h>")
|
| 12 |
+
|
| 13 |
+
#pragma region Desktop Family
|
| 14 |
+
cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
|
| 15 |
+
|
| 16 |
+
import "unknwn.idl";
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
//
|
| 20 |
+
// TEMPORARY DECLARATIONS FOR MIDL COMPILER
|
| 21 |
+
//
|
| 22 |
+
|
| 23 |
+
cpp_quote("#if 0")
|
| 24 |
+
|
| 25 |
+
typedef DWORD IDirect3DDevice9Ex;
|
| 26 |
+
typedef DWORD IDirect3DSurface9;
|
| 27 |
+
typedef DWORD D3DCOLOR;
|
| 28 |
+
typedef DWORD D3DFORMAT;
|
| 29 |
+
typedef DWORD D3DPOOL;
|
| 30 |
+
|
| 31 |
+
cpp_quote("#endif // 0")
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
//
|
| 35 |
+
// DXVA-HD COM INTERFACE ID
|
| 36 |
+
//
|
| 37 |
+
|
| 38 |
+
cpp_quote("#if defined(_WIN32) && !defined(_NO_COM)")
|
| 39 |
+
|
| 40 |
+
cpp_quote("")
|
| 41 |
+
cpp_quote("")
|
| 42 |
+
cpp_quote("DEFINE_GUID(IID_IDXVAHD_Device, 0x95f12dfd,0xd77e,0x49be,0x81,0x5f,0x57,0xd5,0x79,0x63,0x4d,0x6d);")
|
| 43 |
+
cpp_quote("DEFINE_GUID(IID_IDXVAHD_VideoProcessor, 0x95f4edf4,0x6e03,0x4cd7,0xbe,0x1b,0x30,0x75,0xd6,0x65,0xaa,0x52);")
|
| 44 |
+
cpp_quote("")
|
| 45 |
+
cpp_quote("")
|
| 46 |
+
|
| 47 |
+
cpp_quote("#endif")
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
//
|
| 51 |
+
// FORWARD DECLARATIONS
|
| 52 |
+
//
|
| 53 |
+
|
| 54 |
+
interface IDXVAHD_Device;
|
| 55 |
+
interface IDXVAHD_VideoProcessor;
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
//
|
| 59 |
+
// DXVA-HD API ENUMERATIONS
|
| 60 |
+
//
|
| 61 |
+
|
| 62 |
+
typedef enum _DXVAHD_FRAME_FORMAT
|
| 63 |
+
{
|
| 64 |
+
DXVAHD_FRAME_FORMAT_PROGRESSIVE = 0,
|
| 65 |
+
DXVAHD_FRAME_FORMAT_INTERLACED_TOP_FIELD_FIRST = 1,
|
| 66 |
+
DXVAHD_FRAME_FORMAT_INTERLACED_BOTTOM_FIELD_FIRST = 2
|
| 67 |
+
} DXVAHD_FRAME_FORMAT;
|
| 68 |
+
|
| 69 |
+
typedef enum _DXVAHD_DEVICE_USAGE
|
| 70 |
+
{
|
| 71 |
+
DXVAHD_DEVICE_USAGE_PLAYBACK_NORMAL = 0,
|
| 72 |
+
DXVAHD_DEVICE_USAGE_OPTIMAL_SPEED = 1,
|
| 73 |
+
DXVAHD_DEVICE_USAGE_OPTIMAL_QUALITY = 2
|
| 74 |
+
} DXVAHD_DEVICE_USAGE;
|
| 75 |
+
|
| 76 |
+
typedef enum _DXVAHD_SURFACE_TYPE
|
| 77 |
+
{
|
| 78 |
+
DXVAHD_SURFACE_TYPE_VIDEO_INPUT = 0,
|
| 79 |
+
DXVAHD_SURFACE_TYPE_VIDEO_INPUT_PRIVATE = 1,
|
| 80 |
+
DXVAHD_SURFACE_TYPE_VIDEO_OUTPUT = 2
|
| 81 |
+
} DXVAHD_SURFACE_TYPE;
|
| 82 |
+
|
| 83 |
+
typedef enum _DXVAHD_DEVICE_TYPE
|
| 84 |
+
{
|
| 85 |
+
DXVAHD_DEVICE_TYPE_HARDWARE = 0,
|
| 86 |
+
DXVAHD_DEVICE_TYPE_SOFTWARE = 1,
|
| 87 |
+
DXVAHD_DEVICE_TYPE_REFERENCE = 2,
|
| 88 |
+
DXVAHD_DEVICE_TYPE_OTHER = 3
|
| 89 |
+
} DXVAHD_DEVICE_TYPE;
|
| 90 |
+
|
| 91 |
+
typedef enum _DXVAHD_DEVICE_CAPS
|
| 92 |
+
{
|
| 93 |
+
DXVAHD_DEVICE_CAPS_LINEAR_SPACE = 0x1,
|
| 94 |
+
DXVAHD_DEVICE_CAPS_xvYCC = 0x2,
|
| 95 |
+
DXVAHD_DEVICE_CAPS_RGB_RANGE_CONVERSION = 0x4,
|
| 96 |
+
DXVAHD_DEVICE_CAPS_YCbCr_MATRIX_CONVERSION = 0x8
|
| 97 |
+
} DXVAHD_DEVICE_CAPS;
|
| 98 |
+
|
| 99 |
+
typedef enum _DXVAHD_FEATURE_CAPS
|
| 100 |
+
{
|
| 101 |
+
DXVAHD_FEATURE_CAPS_ALPHA_FILL = 0x1,
|
| 102 |
+
DXVAHD_FEATURE_CAPS_CONSTRICTION = 0x2,
|
| 103 |
+
DXVAHD_FEATURE_CAPS_LUMA_KEY = 0x4,
|
| 104 |
+
DXVAHD_FEATURE_CAPS_ALPHA_PALETTE = 0x8
|
| 105 |
+
} DXVAHD_FEATURE_CAPS;
|
| 106 |
+
|
| 107 |
+
typedef enum _DXVAHD_FILTER_CAPS
|
| 108 |
+
{
|
| 109 |
+
DXVAHD_FILTER_CAPS_BRIGHTNESS = 0x1,
|
| 110 |
+
DXVAHD_FILTER_CAPS_CONTRAST = 0x2,
|
| 111 |
+
DXVAHD_FILTER_CAPS_HUE = 0x4,
|
| 112 |
+
DXVAHD_FILTER_CAPS_SATURATION = 0x8,
|
| 113 |
+
DXVAHD_FILTER_CAPS_NOISE_REDUCTION = 0x10,
|
| 114 |
+
DXVAHD_FILTER_CAPS_EDGE_ENHANCEMENT = 0x20,
|
| 115 |
+
DXVAHD_FILTER_CAPS_ANAMORPHIC_SCALING = 0x40
|
| 116 |
+
} DXVAHD_FILTER_CAPS;
|
| 117 |
+
|
| 118 |
+
typedef enum _DXVAHD_INPUT_FORMAT_CAPS
|
| 119 |
+
{
|
| 120 |
+
DXVAHD_INPUT_FORMAT_CAPS_RGB_INTERLACED = 0x1,
|
| 121 |
+
DXVAHD_INPUT_FORMAT_CAPS_RGB_PROCAMP = 0x2,
|
| 122 |
+
DXVAHD_INPUT_FORMAT_CAPS_RGB_LUMA_KEY = 0x4,
|
| 123 |
+
DXVAHD_INPUT_FORMAT_CAPS_PALETTE_INTERLACED = 0x8
|
| 124 |
+
} DXVAHD_INPUT_FORMAT_CAPS;
|
| 125 |
+
|
| 126 |
+
typedef enum _DXVAHD_PROCESSOR_CAPS
|
| 127 |
+
{
|
| 128 |
+
DXVAHD_PROCESSOR_CAPS_DEINTERLACE_BLEND = 0x1,
|
| 129 |
+
DXVAHD_PROCESSOR_CAPS_DEINTERLACE_BOB = 0x2,
|
| 130 |
+
DXVAHD_PROCESSOR_CAPS_DEINTERLACE_ADAPTIVE = 0x4,
|
| 131 |
+
DXVAHD_PROCESSOR_CAPS_DEINTERLACE_MOTION_COMPENSATION = 0x8,
|
| 132 |
+
DXVAHD_PROCESSOR_CAPS_INVERSE_TELECINE = 0x10,
|
| 133 |
+
DXVAHD_PROCESSOR_CAPS_FRAME_RATE_CONVERSION = 0x20
|
| 134 |
+
} DXVAHD_PROCESSOR_CAPS;
|
| 135 |
+
|
| 136 |
+
typedef enum _DXVAHD_ITELECINE_CAPS
|
| 137 |
+
{
|
| 138 |
+
DXVAHD_ITELECINE_CAPS_32 = 0x1,
|
| 139 |
+
DXVAHD_ITELECINE_CAPS_22 = 0x2,
|
| 140 |
+
DXVAHD_ITELECINE_CAPS_2224 = 0x4,
|
| 141 |
+
DXVAHD_ITELECINE_CAPS_2332 = 0x8,
|
| 142 |
+
DXVAHD_ITELECINE_CAPS_32322 = 0x10,
|
| 143 |
+
DXVAHD_ITELECINE_CAPS_55 = 0x20,
|
| 144 |
+
DXVAHD_ITELECINE_CAPS_64 = 0x40,
|
| 145 |
+
DXVAHD_ITELECINE_CAPS_87 = 0x80,
|
| 146 |
+
DXVAHD_ITELECINE_CAPS_222222222223 = 0x100,
|
| 147 |
+
DXVAHD_ITELECINE_CAPS_OTHER = 0x80000000
|
| 148 |
+
} DXVAHD_ITELECINE_CAPS;
|
| 149 |
+
|
| 150 |
+
typedef enum _DXVAHD_FILTER
|
| 151 |
+
{
|
| 152 |
+
DXVAHD_FILTER_BRIGHTNESS = 0,
|
| 153 |
+
DXVAHD_FILTER_CONTRAST = 1,
|
| 154 |
+
DXVAHD_FILTER_HUE = 2,
|
| 155 |
+
DXVAHD_FILTER_SATURATION = 3,
|
| 156 |
+
DXVAHD_FILTER_NOISE_REDUCTION = 4,
|
| 157 |
+
DXVAHD_FILTER_EDGE_ENHANCEMENT = 5,
|
| 158 |
+
DXVAHD_FILTER_ANAMORPHIC_SCALING = 6
|
| 159 |
+
} DXVAHD_FILTER;
|
| 160 |
+
|
| 161 |
+
typedef enum _DXVAHD_BLT_STATE
|
| 162 |
+
{
|
| 163 |
+
DXVAHD_BLT_STATE_TARGET_RECT = 0,
|
| 164 |
+
DXVAHD_BLT_STATE_BACKGROUND_COLOR = 1,
|
| 165 |
+
DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE = 2,
|
| 166 |
+
DXVAHD_BLT_STATE_ALPHA_FILL = 3,
|
| 167 |
+
DXVAHD_BLT_STATE_CONSTRICTION = 4,
|
| 168 |
+
DXVAHD_BLT_STATE_PRIVATE = 1000
|
| 169 |
+
} DXVAHD_BLT_STATE;
|
| 170 |
+
|
| 171 |
+
typedef enum _DXVAHD_ALPHA_FILL_MODE
|
| 172 |
+
{
|
| 173 |
+
DXVAHD_ALPHA_FILL_MODE_OPAQUE = 0,
|
| 174 |
+
DXVAHD_ALPHA_FILL_MODE_BACKGROUND = 1,
|
| 175 |
+
DXVAHD_ALPHA_FILL_MODE_DESTINATION = 2,
|
| 176 |
+
DXVAHD_ALPHA_FILL_MODE_SOURCE_STREAM = 3
|
| 177 |
+
} DXVAHD_ALPHA_FILL_MODE;
|
| 178 |
+
|
| 179 |
+
typedef enum _DXVAHD_STREAM_STATE
|
| 180 |
+
{
|
| 181 |
+
DXVAHD_STREAM_STATE_D3DFORMAT = 0,
|
| 182 |
+
DXVAHD_STREAM_STATE_FRAME_FORMAT = 1,
|
| 183 |
+
DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE = 2,
|
| 184 |
+
DXVAHD_STREAM_STATE_OUTPUT_RATE = 3,
|
| 185 |
+
DXVAHD_STREAM_STATE_SOURCE_RECT = 4,
|
| 186 |
+
DXVAHD_STREAM_STATE_DESTINATION_RECT = 5,
|
| 187 |
+
DXVAHD_STREAM_STATE_ALPHA = 6,
|
| 188 |
+
DXVAHD_STREAM_STATE_PALETTE = 7,
|
| 189 |
+
DXVAHD_STREAM_STATE_LUMA_KEY = 8,
|
| 190 |
+
DXVAHD_STREAM_STATE_ASPECT_RATIO = 9,
|
| 191 |
+
DXVAHD_STREAM_STATE_FILTER_BRIGHTNESS = 100,
|
| 192 |
+
DXVAHD_STREAM_STATE_FILTER_CONTRAST = 101,
|
| 193 |
+
DXVAHD_STREAM_STATE_FILTER_HUE = 102,
|
| 194 |
+
DXVAHD_STREAM_STATE_FILTER_SATURATION = 103,
|
| 195 |
+
DXVAHD_STREAM_STATE_FILTER_NOISE_REDUCTION = 104,
|
| 196 |
+
DXVAHD_STREAM_STATE_FILTER_EDGE_ENHANCEMENT = 105,
|
| 197 |
+
DXVAHD_STREAM_STATE_FILTER_ANAMORPHIC_SCALING = 106,
|
| 198 |
+
DXVAHD_STREAM_STATE_PRIVATE = 1000
|
| 199 |
+
} DXVAHD_STREAM_STATE;
|
| 200 |
+
|
| 201 |
+
typedef enum _DXVAHD_OUTPUT_RATE
|
| 202 |
+
{
|
| 203 |
+
DXVAHD_OUTPUT_RATE_NORMAL = 0,
|
| 204 |
+
DXVAHD_OUTPUT_RATE_HALF = 1,
|
| 205 |
+
DXVAHD_OUTPUT_RATE_CUSTOM = 2
|
| 206 |
+
} DXVAHD_OUTPUT_RATE;
|
| 207 |
+
|
| 208 |
+
|
| 209 |
+
//
|
| 210 |
+
// DXVA-HD API STRUCTURES
|
| 211 |
+
//
|
| 212 |
+
|
| 213 |
+
typedef struct _DXVAHD_RATIONAL
|
| 214 |
+
{
|
| 215 |
+
UINT Numerator;
|
| 216 |
+
UINT Denominator;
|
| 217 |
+
} DXVAHD_RATIONAL;
|
| 218 |
+
|
| 219 |
+
typedef struct _DXVAHD_COLOR_RGBA
|
| 220 |
+
{
|
| 221 |
+
FLOAT R;
|
| 222 |
+
FLOAT G;
|
| 223 |
+
FLOAT B;
|
| 224 |
+
FLOAT A;
|
| 225 |
+
} DXVAHD_COLOR_RGBA;
|
| 226 |
+
|
| 227 |
+
typedef struct _DXVAHD_COLOR_YCbCrA
|
| 228 |
+
{
|
| 229 |
+
FLOAT Y;
|
| 230 |
+
FLOAT Cb;
|
| 231 |
+
FLOAT Cr;
|
| 232 |
+
FLOAT A;
|
| 233 |
+
} DXVAHD_COLOR_YCbCrA;
|
| 234 |
+
|
| 235 |
+
typedef union _DXVAHD_COLOR
|
| 236 |
+
{
|
| 237 |
+
DXVAHD_COLOR_RGBA RGB;
|
| 238 |
+
DXVAHD_COLOR_YCbCrA YCbCr;
|
| 239 |
+
} DXVAHD_COLOR;
|
| 240 |
+
|
| 241 |
+
typedef struct _DXVAHD_CONTENT_DESC
|
| 242 |
+
{
|
| 243 |
+
DXVAHD_FRAME_FORMAT InputFrameFormat;
|
| 244 |
+
DXVAHD_RATIONAL InputFrameRate;
|
| 245 |
+
UINT InputWidth;
|
| 246 |
+
UINT InputHeight;
|
| 247 |
+
DXVAHD_RATIONAL OutputFrameRate;
|
| 248 |
+
UINT OutputWidth;
|
| 249 |
+
UINT OutputHeight;
|
| 250 |
+
} DXVAHD_CONTENT_DESC;
|
| 251 |
+
|
| 252 |
+
typedef struct _DXVAHD_VPDEVCAPS
|
| 253 |
+
{
|
| 254 |
+
DXVAHD_DEVICE_TYPE DeviceType;
|
| 255 |
+
UINT DeviceCaps; // DXVAHD_DEVICE_CAPS
|
| 256 |
+
UINT FeatureCaps; // DXVAHD_FEATURE_CAPS
|
| 257 |
+
UINT FilterCaps; // DXVAHD_FILTER_CAPS
|
| 258 |
+
UINT InputFormatCaps; // DXVAHD_INPUT_FORMAT_CAPS
|
| 259 |
+
D3DPOOL InputPool;
|
| 260 |
+
UINT OutputFormatCount;
|
| 261 |
+
UINT InputFormatCount;
|
| 262 |
+
UINT VideoProcessorCount;
|
| 263 |
+
UINT MaxInputStreams;
|
| 264 |
+
UINT MaxStreamStates;
|
| 265 |
+
} DXVAHD_VPDEVCAPS;
|
| 266 |
+
|
| 267 |
+
typedef struct _DXVAHD_VPCAPS
|
| 268 |
+
{
|
| 269 |
+
GUID VPGuid;
|
| 270 |
+
UINT PastFrames;
|
| 271 |
+
UINT FutureFrames;
|
| 272 |
+
UINT ProcessorCaps; // DXVAHD_PROCESSOR_CAPS
|
| 273 |
+
UINT ITelecineCaps; // DXVAHD_ITELECINE_CAPS
|
| 274 |
+
UINT CustomRateCount;
|
| 275 |
+
} DXVAHD_VPCAPS;
|
| 276 |
+
|
| 277 |
+
typedef struct _DXVAHD_CUSTOM_RATE_DATA
|
| 278 |
+
{
|
| 279 |
+
DXVAHD_RATIONAL CustomRate;
|
| 280 |
+
UINT OutputFrames;
|
| 281 |
+
BOOL InputInterlaced;
|
| 282 |
+
UINT InputFramesOrFields;
|
| 283 |
+
} DXVAHD_CUSTOM_RATE_DATA;
|
| 284 |
+
|
| 285 |
+
typedef struct _DXVAHD_FILTER_RANGE_DATA
|
| 286 |
+
{
|
| 287 |
+
INT Minimum;
|
| 288 |
+
INT Maximum;
|
| 289 |
+
INT Default;
|
| 290 |
+
FLOAT Multiplier;
|
| 291 |
+
} DXVAHD_FILTER_RANGE_DATA;
|
| 292 |
+
|
| 293 |
+
typedef struct _DXVAHD_BLT_STATE_TARGET_RECT_DATA
|
| 294 |
+
{
|
| 295 |
+
BOOL Enable;
|
| 296 |
+
RECT TargetRect;
|
| 297 |
+
} DXVAHD_BLT_STATE_TARGET_RECT_DATA;
|
| 298 |
+
|
| 299 |
+
typedef struct _DXVAHD_BLT_STATE_BACKGROUND_COLOR_DATA
|
| 300 |
+
{
|
| 301 |
+
BOOL YCbCr;
|
| 302 |
+
DXVAHD_COLOR BackgroundColor;
|
| 303 |
+
} DXVAHD_BLT_STATE_BACKGROUND_COLOR_DATA;
|
| 304 |
+
|
| 305 |
+
typedef struct _DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE_DATA
|
| 306 |
+
{
|
| 307 |
+
union
|
| 308 |
+
{
|
| 309 |
+
struct
|
| 310 |
+
{
|
| 311 |
+
UINT Usage : 1; // 0:Playback, 1:Processing
|
| 312 |
+
UINT RGB_Range : 1; // 0:Full(0-255), 1:Limited(16-235)
|
| 313 |
+
UINT YCbCr_Matrix : 1; // 0:BT.601(SDTV), 1:BT.709(HDTV)
|
| 314 |
+
UINT YCbCr_xvYCC : 1; // 0:Conventional, 1:Extended(xvYCC)
|
| 315 |
+
UINT Reserved : 28;
|
| 316 |
+
};
|
| 317 |
+
|
| 318 |
+
UINT Value;
|
| 319 |
+
};
|
| 320 |
+
} DXVAHD_BLT_STATE_OUTPUT_COLOR_SPACE_DATA;
|
| 321 |
+
|
| 322 |
+
typedef struct _DXVAHD_BLT_STATE_ALPHA_FILL_DATA
|
| 323 |
+
{
|
| 324 |
+
DXVAHD_ALPHA_FILL_MODE Mode;
|
| 325 |
+
UINT StreamNumber;
|
| 326 |
+
} DXVAHD_BLT_STATE_ALPHA_FILL_DATA;
|
| 327 |
+
|
| 328 |
+
typedef struct _DXVAHD_BLT_STATE_CONSTRICTION_DATA
|
| 329 |
+
{
|
| 330 |
+
BOOL Enable;
|
| 331 |
+
SIZE Size;
|
| 332 |
+
} DXVAHD_BLT_STATE_CONSTRICTION_DATA;
|
| 333 |
+
|
| 334 |
+
typedef struct _DXVAHD_BLT_STATE_PRIVATE_DATA
|
| 335 |
+
{
|
| 336 |
+
GUID Guid;
|
| 337 |
+
UINT DataSize;
|
| 338 |
+
void* pData;
|
| 339 |
+
} DXVAHD_BLT_STATE_PRIVATE_DATA;
|
| 340 |
+
|
| 341 |
+
typedef struct _DXVAHD_STREAM_STATE_D3DFORMAT_DATA
|
| 342 |
+
{
|
| 343 |
+
D3DFORMAT Format;
|
| 344 |
+
} DXVAHD_STREAM_STATE_D3DFORMAT_DATA;
|
| 345 |
+
|
| 346 |
+
typedef struct _DXVAHD_STREAM_STATE_FRAME_FORMAT_DATA
|
| 347 |
+
{
|
| 348 |
+
DXVAHD_FRAME_FORMAT FrameFormat;
|
| 349 |
+
} DXVAHD_STREAM_STATE_FRAME_FORMAT_DATA;
|
| 350 |
+
|
| 351 |
+
typedef struct _DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE_DATA
|
| 352 |
+
{
|
| 353 |
+
union
|
| 354 |
+
{
|
| 355 |
+
struct
|
| 356 |
+
{
|
| 357 |
+
UINT Type : 1; // 0:Video, 1:Graphics
|
| 358 |
+
UINT RGB_Range : 1; // 0:Full(0-255), 1:Limited(16-235)
|
| 359 |
+
UINT YCbCr_Matrix : 1; // 0:BT.601(SDTV), 1:BT.709(HDTV)
|
| 360 |
+
UINT YCbCr_xvYCC : 1; // 0:Conventional, 1:Extended(xvYCC)
|
| 361 |
+
UINT Reserved : 28;
|
| 362 |
+
};
|
| 363 |
+
|
| 364 |
+
UINT Value;
|
| 365 |
+
};
|
| 366 |
+
} DXVAHD_STREAM_STATE_INPUT_COLOR_SPACE_DATA;
|
| 367 |
+
|
| 368 |
+
typedef struct _DXVAHD_STREAM_STATE_OUTPUT_RATE_DATA
|
| 369 |
+
{
|
| 370 |
+
BOOL RepeatFrame;
|
| 371 |
+
DXVAHD_OUTPUT_RATE OutputRate;
|
| 372 |
+
DXVAHD_RATIONAL CustomRate;
|
| 373 |
+
} DXVAHD_STREAM_STATE_OUTPUT_RATE_DATA;
|
| 374 |
+
|
| 375 |
+
typedef struct _DXVAHD_STREAM_STATE_SOURCE_RECT_DATA
|
| 376 |
+
{
|
| 377 |
+
BOOL Enable;
|
| 378 |
+
RECT SourceRect;
|
| 379 |
+
} DXVAHD_STREAM_STATE_SOURCE_RECT_DATA;
|
| 380 |
+
|
| 381 |
+
typedef struct _DXVAHD_STREAM_STATE_DESTINATION_RECT_DATA
|
| 382 |
+
{
|
| 383 |
+
BOOL Enable;
|
| 384 |
+
RECT DestinationRect;
|
| 385 |
+
} DXVAHD_STREAM_STATE_DESTINATION_RECT_DATA;
|
| 386 |
+
|
| 387 |
+
typedef struct _DXVAHD_STREAM_STATE_ALPHA_DATA
|
| 388 |
+
{
|
| 389 |
+
BOOL Enable;
|
| 390 |
+
FLOAT Alpha;
|
| 391 |
+
} DXVAHD_STREAM_STATE_ALPHA_DATA;
|
| 392 |
+
|
| 393 |
+
typedef struct _DXVAHD_STREAM_STATE_PALETTE_DATA
|
| 394 |
+
{
|
| 395 |
+
UINT Count;
|
| 396 |
+
D3DCOLOR* pEntries;
|
| 397 |
+
} DXVAHD_STREAM_STATE_PALETTE_DATA;
|
| 398 |
+
|
| 399 |
+
typedef struct _DXVAHD_STREAM_STATE_LUMA_KEY_DATA
|
| 400 |
+
{
|
| 401 |
+
BOOL Enable;
|
| 402 |
+
FLOAT Lower;
|
| 403 |
+
FLOAT Upper;
|
| 404 |
+
} DXVAHD_STREAM_STATE_LUMA_KEY_DATA;
|
| 405 |
+
|
| 406 |
+
typedef struct _DXVAHD_STREAM_STATE_ASPECT_RATIO_DATA
|
| 407 |
+
{
|
| 408 |
+
BOOL Enable;
|
| 409 |
+
DXVAHD_RATIONAL SourceAspectRatio;
|
| 410 |
+
DXVAHD_RATIONAL DestinationAspectRatio;
|
| 411 |
+
} DXVAHD_STREAM_STATE_ASPECT_RATIO_DATA;
|
| 412 |
+
|
| 413 |
+
typedef struct _DXVAHD_STREAM_STATE_FILTER_DATA
|
| 414 |
+
{
|
| 415 |
+
BOOL Enable;
|
| 416 |
+
INT Level;
|
| 417 |
+
} DXVAHD_STREAM_STATE_FILTER_DATA;
|
| 418 |
+
|
| 419 |
+
typedef struct _DXVAHD_STREAM_STATE_PRIVATE_DATA
|
| 420 |
+
{
|
| 421 |
+
GUID Guid;
|
| 422 |
+
UINT DataSize;
|
| 423 |
+
void* pData;
|
| 424 |
+
} DXVAHD_STREAM_STATE_PRIVATE_DATA;
|
| 425 |
+
|
| 426 |
+
typedef struct _DXVAHD_STREAM_DATA
|
| 427 |
+
{
|
| 428 |
+
BOOL Enable;
|
| 429 |
+
UINT OutputIndex;
|
| 430 |
+
UINT InputFrameOrField;
|
| 431 |
+
UINT PastFrames;
|
| 432 |
+
UINT FutureFrames;
|
| 433 |
+
IDirect3DSurface9** ppPastSurfaces;
|
| 434 |
+
IDirect3DSurface9* pInputSurface;
|
| 435 |
+
IDirect3DSurface9** ppFutureSurfaces;
|
| 436 |
+
} DXVAHD_STREAM_DATA;
|
| 437 |
+
|
| 438 |
+
|
| 439 |
+
//
|
| 440 |
+
// PRIVATE STATES
|
| 441 |
+
//
|
| 442 |
+
|
| 443 |
+
cpp_quote("")
|
| 444 |
+
cpp_quote("")
|
| 445 |
+
cpp_quote("DEFINE_GUID(DXVAHD_STREAM_STATE_PRIVATE_IVTC, 0x9c601e3c,0x0f33,0x414c,0xa7,0x39,0x99,0x54,0x0e,0xe4,0x2d,0xa5);")
|
| 446 |
+
cpp_quote("")
|
| 447 |
+
cpp_quote("")
|
| 448 |
+
|
| 449 |
+
typedef struct _DXVAHD_STREAM_STATE_PRIVATE_IVTC_DATA
|
| 450 |
+
{
|
| 451 |
+
BOOL Enable;
|
| 452 |
+
UINT ITelecineFlags; // DXVAHD_ITELECINE_CAPS
|
| 453 |
+
UINT Frames;
|
| 454 |
+
UINT InputField;
|
| 455 |
+
} DXVAHD_STREAM_STATE_PRIVATE_IVTC_DATA;
|
| 456 |
+
|
| 457 |
+
|
| 458 |
+
//
|
| 459 |
+
// IDXVAHD_Device INTERFACE
|
| 460 |
+
//
|
| 461 |
+
|
| 462 |
+
[
|
| 463 |
+
object,
|
| 464 |
+
uuid(95f12dfd-d77e-49be-815f-57d579634d6d),
|
| 465 |
+
helpstring("DXVA-HD Device Interface"),
|
| 466 |
+
local
|
| 467 |
+
]
|
| 468 |
+
interface IDXVAHD_Device : IUnknown
|
| 469 |
+
{
|
| 470 |
+
HRESULT
|
| 471 |
+
CreateVideoSurface(
|
| 472 |
+
[in, annotation("_In_")] UINT Width,
|
| 473 |
+
[in, annotation("_In_")] UINT Height,
|
| 474 |
+
[in, annotation("_In_")] D3DFORMAT Format,
|
| 475 |
+
[in, annotation("_In_")] D3DPOOL Pool,
|
| 476 |
+
[in, annotation("_In_")] DWORD Usage,
|
| 477 |
+
[in, annotation("_In_")] DXVAHD_SURFACE_TYPE Type,
|
| 478 |
+
[in, annotation("_In_")] UINT NumSurfaces,
|
| 479 |
+
[out, size_is(NumSurfaces), annotation("_Out_writes_(NumSurfaces)")] IDirect3DSurface9** ppSurfaces,
|
| 480 |
+
[in, out, annotation("_Inout_opt_")] HANDLE* pSharedHandle
|
| 481 |
+
);
|
| 482 |
+
|
| 483 |
+
HRESULT
|
| 484 |
+
GetVideoProcessorDeviceCaps(
|
| 485 |
+
[out, annotation("_Out_")] DXVAHD_VPDEVCAPS* pCaps
|
| 486 |
+
);
|
| 487 |
+
|
| 488 |
+
HRESULT
|
| 489 |
+
GetVideoProcessorOutputFormats(
|
| 490 |
+
[in, annotation("_In_")] UINT Count,
|
| 491 |
+
[out, size_is(Count), annotation("_Out_writes_(Count)")] D3DFORMAT* pFormats
|
| 492 |
+
);
|
| 493 |
+
|
| 494 |
+
HRESULT
|
| 495 |
+
GetVideoProcessorInputFormats(
|
| 496 |
+
[in, annotation("_In_")] UINT Count,
|
| 497 |
+
[out, size_is(Count), annotation("_Out_writes_(Count)")] D3DFORMAT* pFormats
|
| 498 |
+
);
|
| 499 |
+
|
| 500 |
+
HRESULT
|
| 501 |
+
GetVideoProcessorCaps(
|
| 502 |
+
[in, annotation("_In_")] UINT Count,
|
| 503 |
+
[out, size_is(Count), annotation("_Out_writes_(Count)")] DXVAHD_VPCAPS* pCaps
|
| 504 |
+
);
|
| 505 |
+
|
| 506 |
+
HRESULT
|
| 507 |
+
GetVideoProcessorCustomRates(
|
| 508 |
+
[in, annotation("_In_")] const GUID* pVPGuid,
|
| 509 |
+
[in, annotation("_In_")] UINT Count,
|
| 510 |
+
[out, size_is(Count), annotation("_Out_writes_(Count)")] DXVAHD_CUSTOM_RATE_DATA* pRates
|
| 511 |
+
);
|
| 512 |
+
|
| 513 |
+
HRESULT
|
| 514 |
+
GetVideoProcessorFilterRange(
|
| 515 |
+
[in, annotation("_In_")] DXVAHD_FILTER Filter,
|
| 516 |
+
[out, annotation("_Out_")] DXVAHD_FILTER_RANGE_DATA* pRange
|
| 517 |
+
);
|
| 518 |
+
|
| 519 |
+
HRESULT
|
| 520 |
+
CreateVideoProcessor(
|
| 521 |
+
[in, annotation("_In_")] const GUID* pVPGuid,
|
| 522 |
+
[out, annotation("_Outptr_")] IDXVAHD_VideoProcessor** ppVideoProcessor
|
| 523 |
+
);
|
| 524 |
+
};
|
| 525 |
+
|
| 526 |
+
|
| 527 |
+
//
|
| 528 |
+
// IDXVAHD_VideoProcessor INTERFACE
|
| 529 |
+
//
|
| 530 |
+
|
| 531 |
+
[
|
| 532 |
+
object,
|
| 533 |
+
uuid(95f4edf4-6e03-4cd7-be1b-3075d665aa52),
|
| 534 |
+
helpstring("DXVA-HD Video Processor Interface"),
|
| 535 |
+
local
|
| 536 |
+
]
|
| 537 |
+
interface IDXVAHD_VideoProcessor : IUnknown
|
| 538 |
+
{
|
| 539 |
+
HRESULT
|
| 540 |
+
SetVideoProcessBltState(
|
| 541 |
+
[in, annotation("_In_")] DXVAHD_BLT_STATE State,
|
| 542 |
+
[in, annotation("_In_")] UINT DataSize,
|
| 543 |
+
[in, annotation("_In_reads_bytes_(DataSize)")] const void* pData
|
| 544 |
+
);
|
| 545 |
+
|
| 546 |
+
HRESULT
|
| 547 |
+
GetVideoProcessBltState(
|
| 548 |
+
[in, annotation("_In_")] DXVAHD_BLT_STATE State,
|
| 549 |
+
[in, annotation("_In_")] UINT DataSize,
|
| 550 |
+
[out, annotation("_Inout_updates_bytes_(DataSize)")] void* pData
|
| 551 |
+
);
|
| 552 |
+
|
| 553 |
+
HRESULT
|
| 554 |
+
SetVideoProcessStreamState(
|
| 555 |
+
[in, annotation("_In_")] UINT StreamNumber,
|
| 556 |
+
[in, annotation("_In_")] DXVAHD_STREAM_STATE State,
|
| 557 |
+
[in, annotation("_In_")] UINT DataSize,
|
| 558 |
+
[in, annotation("_In_reads_bytes_(DataSize)")] const void* pData
|
| 559 |
+
);
|
| 560 |
+
|
| 561 |
+
HRESULT
|
| 562 |
+
GetVideoProcessStreamState(
|
| 563 |
+
[in, annotation("_In_")] UINT StreamNumber,
|
| 564 |
+
[in, annotation("_In_")] DXVAHD_STREAM_STATE State,
|
| 565 |
+
[in, annotation("_In_")] UINT DataSize,
|
| 566 |
+
[out, annotation("_Inout_updates_bytes_(DataSize)")] void* pData
|
| 567 |
+
);
|
| 568 |
+
|
| 569 |
+
HRESULT
|
| 570 |
+
VideoProcessBltHD(
|
| 571 |
+
[in, annotation("_In_")] IDirect3DSurface9* pOutputSurface,
|
| 572 |
+
[in, annotation("_In_")] UINT OutputFrame,
|
| 573 |
+
[in, annotation("_In_")] UINT StreamCount,
|
| 574 |
+
[in, size_is(StreamCount), annotation("_In_reads_(StreamCount)")] const DXVAHD_STREAM_DATA* pStreams
|
| 575 |
+
);
|
| 576 |
+
};
|
| 577 |
+
|
| 578 |
+
|
| 579 |
+
//
|
| 580 |
+
// DXVA-HD SOFTWARE PLUGIN
|
| 581 |
+
//
|
| 582 |
+
|
| 583 |
+
cpp_quote("")
|
| 584 |
+
cpp_quote("")
|
| 585 |
+
cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_CreateDevice)(")
|
| 586 |
+
cpp_quote(" _In_ IDirect3DDevice9Ex* pD3DDevice,")
|
| 587 |
+
cpp_quote(" _Out_ HANDLE* phDevice")
|
| 588 |
+
cpp_quote(" );")
|
| 589 |
+
cpp_quote("")
|
| 590 |
+
cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_ProposeVideoPrivateFormat)(")
|
| 591 |
+
cpp_quote(" _In_ HANDLE hDevice,")
|
| 592 |
+
cpp_quote(" _Inout_ D3DFORMAT* pFormat")
|
| 593 |
+
cpp_quote(" );")
|
| 594 |
+
cpp_quote("")
|
| 595 |
+
cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorDeviceCaps)(")
|
| 596 |
+
cpp_quote(" _In_ HANDLE hDevice,")
|
| 597 |
+
cpp_quote(" _In_ const DXVAHD_CONTENT_DESC* pContentDesc,")
|
| 598 |
+
cpp_quote(" _In_ DXVAHD_DEVICE_USAGE Usage,")
|
| 599 |
+
cpp_quote(" _Out_ DXVAHD_VPDEVCAPS* pCaps")
|
| 600 |
+
cpp_quote(" );")
|
| 601 |
+
cpp_quote("")
|
| 602 |
+
cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorOutputFormats)(")
|
| 603 |
+
cpp_quote(" _In_ HANDLE hDevice,")
|
| 604 |
+
cpp_quote(" _In_ const DXVAHD_CONTENT_DESC* pContentDesc,")
|
| 605 |
+
cpp_quote(" _In_ DXVAHD_DEVICE_USAGE Usage,")
|
| 606 |
+
cpp_quote(" _In_ UINT Count,")
|
| 607 |
+
cpp_quote(" _Out_writes_(Count) D3DFORMAT* pFormats")
|
| 608 |
+
cpp_quote(" );")
|
| 609 |
+
cpp_quote("")
|
| 610 |
+
cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorInputFormats)(")
|
| 611 |
+
cpp_quote(" _In_ HANDLE hDevice,")
|
| 612 |
+
cpp_quote(" _In_ const DXVAHD_CONTENT_DESC* pContentDesc,")
|
| 613 |
+
cpp_quote(" _In_ DXVAHD_DEVICE_USAGE Usage,")
|
| 614 |
+
cpp_quote(" _In_ UINT Count,")
|
| 615 |
+
cpp_quote(" _Out_writes_(Count) D3DFORMAT* pFormats")
|
| 616 |
+
cpp_quote(" );")
|
| 617 |
+
cpp_quote("")
|
| 618 |
+
cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorCaps)(")
|
| 619 |
+
cpp_quote(" _In_ HANDLE hDevice,")
|
| 620 |
+
cpp_quote(" _In_ const DXVAHD_CONTENT_DESC* pContentDesc,")
|
| 621 |
+
cpp_quote(" _In_ DXVAHD_DEVICE_USAGE Usage,")
|
| 622 |
+
cpp_quote(" _In_ UINT Count,")
|
| 623 |
+
cpp_quote(" _Out_writes_(Count) DXVAHD_VPCAPS* pCaps")
|
| 624 |
+
cpp_quote(" );")
|
| 625 |
+
cpp_quote("")
|
| 626 |
+
cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorCustomRates)(")
|
| 627 |
+
cpp_quote(" _In_ HANDLE hDevice,")
|
| 628 |
+
cpp_quote(" _In_ const GUID* pVPGuid,")
|
| 629 |
+
cpp_quote(" _In_ UINT Count,")
|
| 630 |
+
cpp_quote(" _Out_writes_(Count) DXVAHD_CUSTOM_RATE_DATA* pRates")
|
| 631 |
+
cpp_quote(" );")
|
| 632 |
+
cpp_quote("")
|
| 633 |
+
cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessorFilterRange)(")
|
| 634 |
+
cpp_quote(" _In_ HANDLE hDevice,")
|
| 635 |
+
cpp_quote(" _In_ DXVAHD_FILTER Filter,")
|
| 636 |
+
cpp_quote(" _Out_ DXVAHD_FILTER_RANGE_DATA* pRange")
|
| 637 |
+
cpp_quote(" );")
|
| 638 |
+
cpp_quote("")
|
| 639 |
+
cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_DestroyDevice)(")
|
| 640 |
+
cpp_quote(" _In_ HANDLE hDevice")
|
| 641 |
+
cpp_quote(" );")
|
| 642 |
+
cpp_quote("")
|
| 643 |
+
cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_CreateVideoProcessor)(")
|
| 644 |
+
cpp_quote(" _In_ HANDLE hDevice,")
|
| 645 |
+
cpp_quote(" _In_ const GUID* pVPGuid,")
|
| 646 |
+
cpp_quote(" _Out_ HANDLE* phVideoProcessor")
|
| 647 |
+
cpp_quote(" );")
|
| 648 |
+
cpp_quote("")
|
| 649 |
+
cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_SetVideoProcessBltState)(")
|
| 650 |
+
cpp_quote(" _In_ HANDLE hVideoProcessor,")
|
| 651 |
+
cpp_quote(" _In_ DXVAHD_BLT_STATE State,")
|
| 652 |
+
cpp_quote(" _In_ UINT DataSize,")
|
| 653 |
+
cpp_quote(" _In_reads_bytes_(DataSize) const void* pData")
|
| 654 |
+
cpp_quote(" );")
|
| 655 |
+
cpp_quote("")
|
| 656 |
+
cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessBltStatePrivate)(")
|
| 657 |
+
cpp_quote(" _In_ HANDLE hVideoProcessor,")
|
| 658 |
+
cpp_quote(" _Inout_ DXVAHD_BLT_STATE_PRIVATE_DATA* pData")
|
| 659 |
+
cpp_quote(" );")
|
| 660 |
+
cpp_quote("")
|
| 661 |
+
cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_SetVideoProcessStreamState)(")
|
| 662 |
+
cpp_quote(" _In_ HANDLE hVideoProcessor,")
|
| 663 |
+
cpp_quote(" _In_ UINT StreamNumber,")
|
| 664 |
+
cpp_quote(" _In_ DXVAHD_STREAM_STATE State,")
|
| 665 |
+
cpp_quote(" _In_ UINT DataSize,")
|
| 666 |
+
cpp_quote(" _In_reads_bytes_(DataSize) const void* pData")
|
| 667 |
+
cpp_quote(" );")
|
| 668 |
+
cpp_quote("")
|
| 669 |
+
cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_GetVideoProcessStreamStatePrivate)(")
|
| 670 |
+
cpp_quote(" _In_ HANDLE hVideoProcessor,")
|
| 671 |
+
cpp_quote(" _In_ UINT StreamNumber,")
|
| 672 |
+
cpp_quote(" _Inout_ DXVAHD_STREAM_STATE_PRIVATE_DATA* pData")
|
| 673 |
+
cpp_quote(" );")
|
| 674 |
+
cpp_quote("")
|
| 675 |
+
cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_VideoProcessBltHD)(")
|
| 676 |
+
cpp_quote(" _In_ HANDLE hVideoProcessor,")
|
| 677 |
+
cpp_quote(" _In_ IDirect3DSurface9* pOutputSurface,")
|
| 678 |
+
cpp_quote(" _In_ UINT OutputFrame,")
|
| 679 |
+
cpp_quote(" _In_ UINT StreamCount,")
|
| 680 |
+
cpp_quote(" _In_reads_(StreamCount) const DXVAHD_STREAM_DATA* pStreams")
|
| 681 |
+
cpp_quote(" );")
|
| 682 |
+
cpp_quote("")
|
| 683 |
+
cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_DestroyVideoProcessor)(")
|
| 684 |
+
cpp_quote(" _In_ HANDLE hVideoProcessor")
|
| 685 |
+
cpp_quote(" );")
|
| 686 |
+
cpp_quote("")
|
| 687 |
+
cpp_quote("typedef struct _DXVAHDSW_CALLBACKS")
|
| 688 |
+
cpp_quote("{")
|
| 689 |
+
cpp_quote(" PDXVAHDSW_CreateDevice CreateDevice;")
|
| 690 |
+
cpp_quote(" PDXVAHDSW_ProposeVideoPrivateFormat ProposeVideoPrivateFormat;")
|
| 691 |
+
cpp_quote(" PDXVAHDSW_GetVideoProcessorDeviceCaps GetVideoProcessorDeviceCaps;")
|
| 692 |
+
cpp_quote(" PDXVAHDSW_GetVideoProcessorOutputFormats GetVideoProcessorOutputFormats;")
|
| 693 |
+
cpp_quote(" PDXVAHDSW_GetVideoProcessorInputFormats GetVideoProcessorInputFormats;")
|
| 694 |
+
cpp_quote(" PDXVAHDSW_GetVideoProcessorCaps GetVideoProcessorCaps;")
|
| 695 |
+
cpp_quote(" PDXVAHDSW_GetVideoProcessorCustomRates GetVideoProcessorCustomRates;")
|
| 696 |
+
cpp_quote(" PDXVAHDSW_GetVideoProcessorFilterRange GetVideoProcessorFilterRange;")
|
| 697 |
+
cpp_quote(" PDXVAHDSW_DestroyDevice DestroyDevice;")
|
| 698 |
+
cpp_quote(" PDXVAHDSW_CreateVideoProcessor CreateVideoProcessor;")
|
| 699 |
+
cpp_quote(" PDXVAHDSW_SetVideoProcessBltState SetVideoProcessBltState;")
|
| 700 |
+
cpp_quote(" PDXVAHDSW_GetVideoProcessBltStatePrivate GetVideoProcessBltStatePrivate;")
|
| 701 |
+
cpp_quote(" PDXVAHDSW_SetVideoProcessStreamState SetVideoProcessStreamState;")
|
| 702 |
+
cpp_quote(" PDXVAHDSW_GetVideoProcessStreamStatePrivate GetVideoProcessStreamStatePrivate;")
|
| 703 |
+
cpp_quote(" PDXVAHDSW_VideoProcessBltHD VideoProcessBltHD;")
|
| 704 |
+
cpp_quote(" PDXVAHDSW_DestroyVideoProcessor DestroyVideoProcessor;")
|
| 705 |
+
cpp_quote("} DXVAHDSW_CALLBACKS;")
|
| 706 |
+
cpp_quote("")
|
| 707 |
+
cpp_quote("typedef HRESULT (CALLBACK* PDXVAHDSW_Plugin)(")
|
| 708 |
+
cpp_quote(" _In_ UINT Size,")
|
| 709 |
+
cpp_quote(" _Out_writes_bytes_(Size) void* pCallbacks")
|
| 710 |
+
cpp_quote(" );")
|
| 711 |
+
cpp_quote("")
|
| 712 |
+
cpp_quote("")
|
| 713 |
+
|
| 714 |
+
|
| 715 |
+
//
|
| 716 |
+
// DXVA-HD API ETW
|
| 717 |
+
//
|
| 718 |
+
|
| 719 |
+
cpp_quote("")
|
| 720 |
+
cpp_quote("")
|
| 721 |
+
cpp_quote("DEFINE_GUID(DXVAHDControlGuid, 0xa0386e75,0xf70c,0x464c,0xa9,0xce,0x33,0xc4,0x4e,0x09,0x16,0x23); // DXVA2Trace_Control")
|
| 722 |
+
cpp_quote("")
|
| 723 |
+
cpp_quote("DEFINE_GUID(DXVAHDETWGUID_CREATEVIDEOPROCESSOR, 0x681e3d1e,0x5674,0x4fb3,0xa5,0x03,0x2f,0x20,0x55,0xe9,0x1f,0x60);")
|
| 724 |
+
cpp_quote("DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSBLTSTATE, 0x76c94b5a,0x193f,0x4692,0x94,0x84,0xa4,0xd9,0x99,0xda,0x81,0xa8);")
|
| 725 |
+
cpp_quote("DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSSTREAMSTATE, 0x262c0b02,0x209d,0x47ed,0x94,0xd8,0x82,0xae,0x02,0xb8,0x4a,0xa7);")
|
| 726 |
+
cpp_quote("DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSBLTHD, 0xbef3d435,0x78c7,0x4de3,0x97,0x07,0xcd,0x1b,0x08,0x3b,0x16,0x0a);")
|
| 727 |
+
cpp_quote("DEFINE_GUID(DXVAHDETWGUID_VIDEOPROCESSBLTHD_STREAM, 0x27ae473e,0xa5fc,0x4be5,0xb4,0xe3,0xf2,0x49,0x94,0xd3,0xc4,0x95);")
|
| 728 |
+
cpp_quote("DEFINE_GUID(DXVAHDETWGUID_DESTROYVIDEOPROCESSOR, 0xf943f0a0,0x3f16,0x43e0,0x80,0x93,0x10,0x5a,0x98,0x6a,0xa5,0xf1);")
|
| 729 |
+
cpp_quote("")
|
| 730 |
+
cpp_quote("")
|
| 731 |
+
|
| 732 |
+
typedef struct _DXVAHDETW_CREATEVIDEOPROCESSOR
|
| 733 |
+
{
|
| 734 |
+
ULONGLONG pObject;
|
| 735 |
+
ULONGLONG pD3D9Ex;
|
| 736 |
+
GUID VPGuid;
|
| 737 |
+
} DXVAHDETW_CREATEVIDEOPROCESSOR;
|
| 738 |
+
|
| 739 |
+
typedef struct _DXVAHDETW_VIDEOPROCESSBLTSTATE
|
| 740 |
+
{
|
| 741 |
+
ULONGLONG pObject;
|
| 742 |
+
DXVAHD_BLT_STATE State;
|
| 743 |
+
UINT DataSize;
|
| 744 |
+
BOOL SetState;
|
| 745 |
+
} DXVAHDETW_VIDEOPROCESSBLTSTATE;
|
| 746 |
+
|
| 747 |
+
typedef struct _DXVAHDETW_VIDEOPROCESSSTREAMSTATE
|
| 748 |
+
{
|
| 749 |
+
ULONGLONG pObject;
|
| 750 |
+
UINT StreamNumber;
|
| 751 |
+
DXVAHD_STREAM_STATE State;
|
| 752 |
+
UINT DataSize;
|
| 753 |
+
BOOL SetState;
|
| 754 |
+
} DXVAHDETW_VIDEOPROCESSSTREAMSTATE;
|
| 755 |
+
|
| 756 |
+
typedef struct _DXVAHDETW_VIDEOPROCESSBLTHD
|
| 757 |
+
{
|
| 758 |
+
ULONGLONG pObject;
|
| 759 |
+
ULONGLONG pOutputSurface;
|
| 760 |
+
RECT TargetRect;
|
| 761 |
+
D3DFORMAT OutputFormat;
|
| 762 |
+
UINT ColorSpace;
|
| 763 |
+
UINT OutputFrame;
|
| 764 |
+
UINT StreamCount;
|
| 765 |
+
BOOL Enter;
|
| 766 |
+
} DXVAHDETW_VIDEOPROCESSBLTHD;
|
| 767 |
+
|
| 768 |
+
typedef struct _DXVAHDETW_VIDEOPROCESSBLTHD_STREAM
|
| 769 |
+
{
|
| 770 |
+
ULONGLONG pObject;
|
| 771 |
+
ULONGLONG pInputSurface;
|
| 772 |
+
RECT SourceRect;
|
| 773 |
+
RECT DestinationRect;
|
| 774 |
+
D3DFORMAT InputFormat;
|
| 775 |
+
DXVAHD_FRAME_FORMAT FrameFormat;
|
| 776 |
+
UINT ColorSpace;
|
| 777 |
+
UINT StreamNumber;
|
| 778 |
+
UINT OutputIndex;
|
| 779 |
+
UINT InputFrameOrField;
|
| 780 |
+
UINT PastFrames;
|
| 781 |
+
UINT FutureFrames;
|
| 782 |
+
} DXVAHDETW_VIDEOPROCESSBLTHD_STREAM;
|
| 783 |
+
|
| 784 |
+
typedef struct _DXVAHDETW_DESTROYVIDEOPROCESSOR
|
| 785 |
+
{
|
| 786 |
+
ULONGLONG pObject;
|
| 787 |
+
} DXVAHDETW_DESTROYVIDEOPROCESSOR;
|
| 788 |
+
|
| 789 |
+
|
| 790 |
+
//
|
| 791 |
+
// DXVA-HD API FUNCTIONS
|
| 792 |
+
//
|
| 793 |
+
|
| 794 |
+
cpp_quote("")
|
| 795 |
+
cpp_quote("")
|
| 796 |
+
cpp_quote("HRESULT WINAPI")
|
| 797 |
+
cpp_quote("DXVAHD_CreateDevice(")
|
| 798 |
+
cpp_quote(" _In_ IDirect3DDevice9Ex* pD3DDevice,")
|
| 799 |
+
cpp_quote(" _In_ const DXVAHD_CONTENT_DESC* pContentDesc,")
|
| 800 |
+
cpp_quote(" _In_ DXVAHD_DEVICE_USAGE Usage,")
|
| 801 |
+
cpp_quote(" _In_opt_ PDXVAHDSW_Plugin pPlugin,")
|
| 802 |
+
cpp_quote(" _Outptr_ IDXVAHD_Device** ppDevice")
|
| 803 |
+
cpp_quote(" );")
|
| 804 |
+
cpp_quote("")
|
| 805 |
+
cpp_quote("typedef HRESULT (WINAPI* PDXVAHD_CreateDevice)(")
|
| 806 |
+
cpp_quote(" _In_ IDirect3DDevice9Ex* pD3DDevice,")
|
| 807 |
+
cpp_quote(" _In_ const DXVAHD_CONTENT_DESC* pContentDesc,")
|
| 808 |
+
cpp_quote(" _In_ DXVAHD_DEVICE_USAGE Usage,")
|
| 809 |
+
cpp_quote(" _In_opt_ PDXVAHDSW_Plugin pPlugin,")
|
| 810 |
+
cpp_quote(" _Outptr_ IDXVAHD_Device** ppDevice")
|
| 811 |
+
cpp_quote(" );")
|
| 812 |
+
cpp_quote("")
|
| 813 |
+
cpp_quote("")
|
| 814 |
+
|
| 815 |
+
|
| 816 |
+
cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */")
|
| 817 |
+
#pragma endregion
|
| 818 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/dyngraph.idl
ADDED
|
@@ -0,0 +1,327 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
//------------------------------------------------------------------------------
|
| 2 |
+
// File: DynGraph.idl
|
| 3 |
+
//
|
| 4 |
+
// Desc: Dynamic graph interfaces
|
| 5 |
+
//
|
| 6 |
+
// Copyright (c) 1999-2002, Microsoft Corporation. All rights reserved.
|
| 7 |
+
//------------------------------------------------------------------------------
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
cpp_quote("#include <winapifamily.h>")
|
| 11 |
+
|
| 12 |
+
#pragma region Desktop Family
|
| 13 |
+
cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
|
| 14 |
+
|
| 15 |
+
interface IPinConnection;
|
| 16 |
+
interface IPinFlowControl;
|
| 17 |
+
interface IGraphConfig;
|
| 18 |
+
interface IGraphConfigCallback;
|
| 19 |
+
|
| 20 |
+
//--------------------------------------------------------------------
|
| 21 |
+
//
|
| 22 |
+
// IPinConnection - supported by input pins
|
| 23 |
+
//
|
| 24 |
+
//--------------------------------------------------------------------
|
| 25 |
+
[
|
| 26 |
+
local,
|
| 27 |
+
object,
|
| 28 |
+
uuid(4a9a62d3-27d4-403d-91e9-89f540e55534),
|
| 29 |
+
pointer_default(unique)
|
| 30 |
+
]
|
| 31 |
+
interface IPinConnection : IUnknown {
|
| 32 |
+
|
| 33 |
+
// Do you accept this type chane in your current state?
|
| 34 |
+
HRESULT DynamicQueryAccept([in] const AM_MEDIA_TYPE *pmt);
|
| 35 |
+
|
| 36 |
+
// Set event when EndOfStream receive - do NOT pass it on
|
| 37 |
+
// This condition is cancelled by a flush or Stop
|
| 38 |
+
HRESULT NotifyEndOfStream([in] HANDLE hNotifyEvent);
|
| 39 |
+
|
| 40 |
+
// Are you an 'end pin'
|
| 41 |
+
HRESULT IsEndPin();
|
| 42 |
+
|
| 43 |
+
HRESULT DynamicDisconnect();
|
| 44 |
+
};
|
| 45 |
+
|
| 46 |
+
//--------------------------------------------------------------------
|
| 47 |
+
//
|
| 48 |
+
// IPinFlowControl - supported by output pins
|
| 49 |
+
//
|
| 50 |
+
//--------------------------------------------------------------------
|
| 51 |
+
[
|
| 52 |
+
local,
|
| 53 |
+
object,
|
| 54 |
+
uuid(c56e9858-dbf3-4f6b-8119-384af2060deb),
|
| 55 |
+
pointer_default(unique)
|
| 56 |
+
]
|
| 57 |
+
interface IPinFlowControl : IUnknown {
|
| 58 |
+
// Block processing on this pin
|
| 59 |
+
HRESULT Block([in] DWORD dwBlockFlags, [in] HANDLE hEvent);
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
// block flags
|
| 63 |
+
enum _AM_PIN_FLOW_CONTROL_BLOCK_FLAGS {
|
| 64 |
+
AM_PIN_FLOW_CONTROL_BLOCK = 0x00000001, // 0 means unblock
|
| 65 |
+
};
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
// Reconnect flags
|
| 69 |
+
typedef enum _AM_GRAPH_CONFIG_RECONNECT_FLAGS {
|
| 70 |
+
AM_GRAPH_CONFIG_RECONNECT_DIRECTCONNECT = 0x00000001,
|
| 71 |
+
AM_GRAPH_CONFIG_RECONNECT_CACHE_REMOVED_FILTERS = 0x00000002,
|
| 72 |
+
AM_GRAPH_CONFIG_RECONNECT_USE_ONLY_CACHED_FILTERS = 0x00000004
|
| 73 |
+
} AM_GRAPH_CONFIG_RECONNECT_FLAGS;
|
| 74 |
+
|
| 75 |
+
// RemoveFilterEx flags
|
| 76 |
+
enum _REM_FILTER_FLAGS {
|
| 77 |
+
REMFILTERF_LEAVECONNECTED = 0x00000001
|
| 78 |
+
};
|
| 79 |
+
|
| 80 |
+
typedef enum _AM_FILTER_FLAGS {
|
| 81 |
+
AM_FILTER_FLAGS_REMOVABLE = 0x00000001
|
| 82 |
+
} AM_FILTER_FLAGS;
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
//--------------------------------------------------------------------
|
| 86 |
+
//
|
| 87 |
+
// IGraphConfig
|
| 88 |
+
//
|
| 89 |
+
//--------------------------------------------------------------------
|
| 90 |
+
|
| 91 |
+
[
|
| 92 |
+
local,
|
| 93 |
+
object,
|
| 94 |
+
uuid(03A1EB8E-32BF-4245-8502-114D08A9CB88),
|
| 95 |
+
pointer_default(unique)
|
| 96 |
+
]
|
| 97 |
+
interface IGraphConfig : IUnknown {
|
| 98 |
+
HRESULT Reconnect([in] IPin *pOutputPin,
|
| 99 |
+
[in] IPin *pInputPin,
|
| 100 |
+
[in] const AM_MEDIA_TYPE *pmtFirstConnection,
|
| 101 |
+
[in] IBaseFilter *pUsingFilter, // can be NULL
|
| 102 |
+
[in] HANDLE hAbortEvent,
|
| 103 |
+
[in] DWORD dwFlags);
|
| 104 |
+
|
| 105 |
+
HRESULT Reconfigure([in] IGraphConfigCallback *pCallback,
|
| 106 |
+
[in] PVOID pvContext,
|
| 107 |
+
[in] DWORD dwFlags,
|
| 108 |
+
[in] HANDLE hAbortEvent);
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
HRESULT AddFilterToCache([in] IBaseFilter *pFilter);
|
| 112 |
+
HRESULT EnumCacheFilter([out] IEnumFilters **pEnum);
|
| 113 |
+
HRESULT RemoveFilterFromCache([in]IBaseFilter *pFilter);
|
| 114 |
+
|
| 115 |
+
// Get the start time associated with the last Run() call
|
| 116 |
+
// If the graph is not running returns VFW_E_WRONG_STATE
|
| 117 |
+
HRESULT GetStartTime([out] REFERENCE_TIME *prtStart);
|
| 118 |
+
|
| 119 |
+
HRESULT PushThroughData(
|
| 120 |
+
[in] IPin *pOutputPin,
|
| 121 |
+
[in] IPinConnection *pConnection,
|
| 122 |
+
[in] HANDLE hEventAbort);
|
| 123 |
+
|
| 124 |
+
HRESULT SetFilterFlags([in] IBaseFilter *pFilter, [in] DWORD dwFlags);
|
| 125 |
+
HRESULT GetFilterFlags([in] IBaseFilter *pFilter, [out] DWORD *pdwFlags);
|
| 126 |
+
|
| 127 |
+
HRESULT RemoveFilterEx( [in] IBaseFilter *pFilter, DWORD Flags );
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
//--------------------------------------------------------------------
|
| 131 |
+
//
|
| 132 |
+
// IGraphConfigCallback
|
| 133 |
+
//
|
| 134 |
+
//--------------------------------------------------------------------
|
| 135 |
+
|
| 136 |
+
[
|
| 137 |
+
local,
|
| 138 |
+
object,
|
| 139 |
+
uuid(ade0fd60-d19d-11d2-abf6-00a0c905f375),
|
| 140 |
+
pointer_default(unique)
|
| 141 |
+
]
|
| 142 |
+
interface IGraphConfigCallback : IUnknown
|
| 143 |
+
{
|
| 144 |
+
HRESULT Reconfigure(PVOID pvContext, DWORD dwFlags);
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
// Filter Chain Definition
|
| 148 |
+
//
|
| 149 |
+
// Filter chains have the following properties:
|
| 150 |
+
//
|
| 151 |
+
// - Each filter chain has one or more filters.
|
| 152 |
+
//
|
| 153 |
+
// - Each filter in a filter chain has at most one connected input pin and one
|
| 154 |
+
// connected output pin. For example, filters A, C, D, F, G, H, I, J and K
|
| 155 |
+
// (see the diagram below) can be in a filter chain because each one has at
|
| 156 |
+
// most one connected input pin and one connected output pin.
|
| 157 |
+
//
|
| 158 |
+
// - Any filter in a chain is reachable by any other filter in the chain.
|
| 159 |
+
// For example, in the filter chain F-G-H, F can reach H by following the F-
|
| 160 |
+
// G connection to G and then following the G-H connection to H. Filters F
|
| 161 |
+
// and J cannot be in the same filter chain because J is not reachable from
|
| 162 |
+
// F. Anotherwords, there no sequence of connected filters between F and J.
|
| 163 |
+
//
|
| 164 |
+
// - The start filter is the only filter in the filter chain who's input
|
| 165 |
+
// pin is not connected to another filter in the chain. For instance, F is
|
| 166 |
+
// the start filter in F-G-H because F's input pin is connected to E and E
|
| 167 |
+
// is not in the filter chain. G's input pin is connected to F and H's is
|
| 168 |
+
// connected to G. Both F and G are in the filter chain.
|
| 169 |
+
//
|
| 170 |
+
// - The end filter is the only filter in the filter chain who's output pin
|
| 171 |
+
// is not connected to another filter in the chain. For example, in the
|
| 172 |
+
// filter chain J-K, K is the end filter because K's output pin is
|
| 173 |
+
// connected to L. J's output pin is connected to K and K is in the J-K
|
| 174 |
+
// filter chain.
|
| 175 |
+
//
|
| 176 |
+
//
|
| 177 |
+
// --->|---| |---|--->
|
| 178 |
+
// | C |--->| D |
|
| 179 |
+
// |---| |---|--->|---| |---|--->|---| |---| |---| |---|
|
| 180 |
+
// | A |--->| B | | E |--->| F |--->| G |--->| H |
|
| 181 |
+
// |---| |---|--->|---|------------>|---| |---| |---| |---|
|
| 182 |
+
// | I |--->
|
| 183 |
+
// --->|---|--->
|
| 184 |
+
//
|
| 185 |
+
// |---| |---| |---|
|
| 186 |
+
// | J |--->| K |--->| L |
|
| 187 |
+
// |---| |---| |---|
|
| 188 |
+
//
|
| 189 |
+
// Example Filter Graph
|
| 190 |
+
//
|
| 191 |
+
//
|
| 192 |
+
//
|
| 193 |
+
// IFilterChain Methods Documentation
|
| 194 |
+
//
|
| 195 |
+
// HRESULT StartChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter );
|
| 196 |
+
//
|
| 197 |
+
// StartChain() switches all the filters in the chain into the running state
|
| 198 |
+
// If one of the filters will not switch to the running state, then all the filters
|
| 199 |
+
// in the chain are stopped. This method can only be called if the filter graph is
|
| 200 |
+
// running.
|
| 201 |
+
//
|
| 202 |
+
// Parameters:
|
| 203 |
+
// - pStartFilter [in]
|
| 204 |
+
// The first filter in the filter chain. Note that this can be the same
|
| 205 |
+
// filter as pEndFilter .
|
| 206 |
+
//
|
| 207 |
+
// - pEndFilter [in]
|
| 208 |
+
// The last filter in the filter chain. Note that this can be the same
|
| 209 |
+
// filter as pStartFilter. If pEndFilter is NULL then the filter chain extends
|
| 210 |
+
// from pStartFilter to the last downstream filter which can be in a filter chain.
|
| 211 |
+
// For example, IFilterChain::StartChain( A, NULL ) would start filter A.
|
| 212 |
+
// IFilterChain::StartChain( G, NULL ) would start filters G and H.
|
| 213 |
+
// IFilterChain::StartChain( C, NULL ) would start filters C and D. Finally,
|
| 214 |
+
// IFilterChain::StartChain( E, NULL ) would fail because E cannot be in a
|
| 215 |
+
// filter chain (see the Filter Chain Definition section for more information).
|
| 216 |
+
//
|
| 217 |
+
// Return Value:
|
| 218 |
+
// An HRESULT. See the Direct Show SDK and COM SDK documentation for more
|
| 219 |
+
// information on interpreting HRESULTs.
|
| 220 |
+
//
|
| 221 |
+
//
|
| 222 |
+
//
|
| 223 |
+
//
|
| 224 |
+
// HRESULT PauseChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter );
|
| 225 |
+
//
|
| 226 |
+
// PauseChain() switches all the filters in a chain to the paused state. If it cannot
|
| 227 |
+
// switch one of the filtres into the paused state, all the filters in the chain are
|
| 228 |
+
// stopped. This method can only be called if the filter graph is paused.
|
| 229 |
+
//
|
| 230 |
+
// Parameters:
|
| 231 |
+
// - pStartFilter [in]
|
| 232 |
+
// The first filter in the filter chain. Note that this can be the same
|
| 233 |
+
// filter as pEndFilter .
|
| 234 |
+
//
|
| 235 |
+
// - pEndFilter [in]
|
| 236 |
+
// The last filter in the filter chain. Note that this can be the same
|
| 237 |
+
// filter as pStartFilter. If pEndFilter is NULL then the filter chain extends
|
| 238 |
+
// from pStartFilter to the last downstream filter which can be in a filter chain.
|
| 239 |
+
// For example, IFilterChain::StopChain( A, NULL ) would stop filter A.
|
| 240 |
+
// IFilterChain::StopChain( G, NULL ) would stop filters G and H.
|
| 241 |
+
// IFilterChain::StopChain( C, NULL ) would stop filters C and D. Finally,
|
| 242 |
+
// IFilterChain::StopChain( E, NULL ) would fail because E cannot be in a filter
|
| 243 |
+
// chain (see the Filter Chain Definition section for more information).
|
| 244 |
+
//
|
| 245 |
+
//
|
| 246 |
+
// Return Value:
|
| 247 |
+
// An HRESULT. See the Direct Show SDK and COM SDK documentation for more
|
| 248 |
+
// information on interpreting HRESULTs.
|
| 249 |
+
//
|
| 250 |
+
//
|
| 251 |
+
//
|
| 252 |
+
// HRESULT StopChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter );
|
| 253 |
+
//
|
| 254 |
+
// StopChain() switches all the filters in chain to the stopped state.
|
| 255 |
+
//
|
| 256 |
+
// Parameters:
|
| 257 |
+
// - pStartFilter [in]
|
| 258 |
+
// The first filter in the filter chain. Note that this can be the same
|
| 259 |
+
// filter as pEndFilter .
|
| 260 |
+
//
|
| 261 |
+
// - pEndFilter [in]
|
| 262 |
+
// The last filter in the filter chain. Note that this can be the same
|
| 263 |
+
// filter as pStartFilter. If pEndFilter is NULL then the filter chain extends
|
| 264 |
+
// from pStartFilter to the last downstream filter which can be in a filter chain.
|
| 265 |
+
// For example, IFilterChain::StopChain( A, NULL ) would stop filter A.
|
| 266 |
+
// IFilterChain::StopChain( G, NULL ) would stop filters G and H.
|
| 267 |
+
// IFilterChain::StopChain( C, NULL ) would stop filters C and D. Finally,
|
| 268 |
+
// IFilterChain::StopChain( E, NULL ) would fail because E cannot be in a filter
|
| 269 |
+
// chain (see the Filter Chain Definition section for more information).
|
| 270 |
+
//
|
| 271 |
+
//
|
| 272 |
+
// Return Value:
|
| 273 |
+
// An HRESULT. See the Direct Show SDK and COM SDK documentation for more
|
| 274 |
+
// information on interpreting HRESULTs.
|
| 275 |
+
//
|
| 276 |
+
//
|
| 277 |
+
//
|
| 278 |
+
//
|
| 279 |
+
//
|
| 280 |
+
// HRESULT RemoveChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter );
|
| 281 |
+
//
|
| 282 |
+
// RemoveChain() removes every filter in a chain from the filter graph.
|
| 283 |
+
// The filters can be removed while the graph is running.
|
| 284 |
+
//
|
| 285 |
+
// Parameters:
|
| 286 |
+
// - pStartFilter [in]
|
| 287 |
+
// The first filter in the filter chain. Note that this can be the same
|
| 288 |
+
// filter as pEndFilter .
|
| 289 |
+
//
|
| 290 |
+
// - pEndFilter [in]
|
| 291 |
+
// The last filter in the filter chain. Note that this can be the same
|
| 292 |
+
// filter as pStartFilter. If pEndFilter is NULL then the filter chain
|
| 293 |
+
// extends from pStartFilter to the last downstream filter which can be in a
|
| 294 |
+
// filter chain. For example, IFilterChain::RemoveChain( A, NULL ) would remove
|
| 295 |
+
// filter A from the filter graph. IFilterChain::RemoveChain( G, NULL ) would
|
| 296 |
+
// remove filters G and H. IFilterChain::RemoveChain( C, NULL ) would remove
|
| 297 |
+
// filters C and D. Finally, IFilterChain::RemoveChain( E, NULL ) would fail
|
| 298 |
+
// because E cannot be in a filter chain (see the Filter Chain Definition
|
| 299 |
+
// section for more information).
|
| 300 |
+
//
|
| 301 |
+
//
|
| 302 |
+
// Return Value:
|
| 303 |
+
// An HRESULT. See the Direct Show SDK and COM SDK documentation for more
|
| 304 |
+
// information on interpreting HRESULTs.
|
| 305 |
+
//
|
| 306 |
+
//
|
| 307 |
+
[
|
| 308 |
+
local,
|
| 309 |
+
object,
|
| 310 |
+
uuid(DCFBDCF6-0DC2-45f5-9AB2-7C330EA09C29),
|
| 311 |
+
pointer_default(unique)
|
| 312 |
+
]
|
| 313 |
+
interface IFilterChain : IUnknown
|
| 314 |
+
{
|
| 315 |
+
HRESULT StartChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter );
|
| 316 |
+
HRESULT PauseChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter );
|
| 317 |
+
HRESULT StopChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter );
|
| 318 |
+
HRESULT RemoveChain( [in] IBaseFilter *pStartFilter, [in] IBaseFilter *pEndFilter );
|
| 319 |
+
}
|
| 320 |
+
|
| 321 |
+
|
| 322 |
+
|
| 323 |
+
|
| 324 |
+
|
| 325 |
+
cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */")
|
| 326 |
+
#pragma endregion
|
| 327 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eapauthenticatortypes.h
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
|
| 3 |
+
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
/* File created by MIDL compiler version 8.01.0628 */
|
| 7 |
+
/* @@MIDL_FILE_HEADING( ) */
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
/* verify that the <rpcndr.h> version is high enough to compile this file*/
|
| 12 |
+
#ifndef __REQUIRED_RPCNDR_H_VERSION__
|
| 13 |
+
#define __REQUIRED_RPCNDR_H_VERSION__ 501
|
| 14 |
+
#endif
|
| 15 |
+
|
| 16 |
+
/* verify that the <rpcsal.h> version is high enough to compile this file*/
|
| 17 |
+
#ifndef __REQUIRED_RPCSAL_H_VERSION__
|
| 18 |
+
#define __REQUIRED_RPCSAL_H_VERSION__ 100
|
| 19 |
+
#endif
|
| 20 |
+
|
| 21 |
+
#include "rpc.h"
|
| 22 |
+
#include "rpcndr.h"
|
| 23 |
+
|
| 24 |
+
#ifndef __RPCNDR_H_VERSION__
|
| 25 |
+
#error this stub requires an updated version of <rpcndr.h>
|
| 26 |
+
#endif /* __RPCNDR_H_VERSION__ */
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
#ifndef __eapauthenticatortypes_h__
|
| 30 |
+
#define __eapauthenticatortypes_h__
|
| 31 |
+
|
| 32 |
+
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
| 33 |
+
#pragma once
|
| 34 |
+
#endif
|
| 35 |
+
|
| 36 |
+
#ifndef DECLSPEC_XFGVIRT
|
| 37 |
+
#if defined(_CONTROL_FLOW_GUARD_XFG)
|
| 38 |
+
#define DECLSPEC_XFGVIRT(base, func) __declspec(xfg_virtual(base, func))
|
| 39 |
+
#else
|
| 40 |
+
#define DECLSPEC_XFGVIRT(base, func)
|
| 41 |
+
#endif
|
| 42 |
+
#endif
|
| 43 |
+
|
| 44 |
+
/* Forward Declarations */
|
| 45 |
+
|
| 46 |
+
#ifdef __cplusplus
|
| 47 |
+
extern "C"{
|
| 48 |
+
#endif
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
/* interface __MIDL_itf_eapauthenticatortypes_0000_0000 */
|
| 52 |
+
/* [local] */
|
| 53 |
+
|
| 54 |
+
#include <winapifamily.h>
|
| 55 |
+
#pragma region Desktop Family
|
| 56 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 57 |
+
typedef /* [v1_enum] */
|
| 58 |
+
enum _EAP_AUTHENTICATOR_SEND_TIMEOUT
|
| 59 |
+
{
|
| 60 |
+
EAP_AUTHENTICATOR_SEND_TIMEOUT_NONE = 0,
|
| 61 |
+
EAP_AUTHENTICATOR_SEND_TIMEOUT_BASIC = ( EAP_AUTHENTICATOR_SEND_TIMEOUT_NONE + 1 ) ,
|
| 62 |
+
EAP_AUTHENTICATOR_SEND_TIMEOUT_INTERACTIVE = ( EAP_AUTHENTICATOR_SEND_TIMEOUT_BASIC + 1 )
|
| 63 |
+
} EAP_AUTHENTICATOR_SEND_TIMEOUT;
|
| 64 |
+
|
| 65 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 66 |
+
#pragma endregion
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
extern RPC_IF_HANDLE __MIDL_itf_eapauthenticatortypes_0000_0000_v0_0_c_ifspec;
|
| 70 |
+
extern RPC_IF_HANDLE __MIDL_itf_eapauthenticatortypes_0000_0000_v0_0_s_ifspec;
|
| 71 |
+
|
| 72 |
+
/* Additional Prototypes for ALL interfaces */
|
| 73 |
+
|
| 74 |
+
/* end of Additional Prototypes */
|
| 75 |
+
|
| 76 |
+
#ifdef __cplusplus
|
| 77 |
+
}
|
| 78 |
+
#endif
|
| 79 |
+
|
| 80 |
+
#endif
|
| 81 |
+
|
| 82 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eaphostpeerconfigapis.h
ADDED
|
@@ -0,0 +1,332 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 2 |
+
//
|
| 3 |
+
// Copyright (c) Microsoft Corporation
|
| 4 |
+
//
|
| 5 |
+
// SYNOPSIS
|
| 6 |
+
//
|
| 7 |
+
// Declares methods that are used to configure EAP methods.
|
| 8 |
+
//
|
| 9 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 10 |
+
|
| 11 |
+
#ifndef EAPHOSTPEERCONFIGAPIS_H
|
| 12 |
+
#define EAPHOSTPEERCONFIGAPIS_H
|
| 13 |
+
#pragma once
|
| 14 |
+
#include <winapifamily.h>
|
| 15 |
+
|
| 16 |
+
#pragma region Desktop Family
|
| 17 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
#include "objbase.h" //Required by msxml2.h
|
| 21 |
+
#include "msxml6.h"
|
| 22 |
+
|
| 23 |
+
#include "EapTypes.h"
|
| 24 |
+
|
| 25 |
+
#ifdef __cplusplus
|
| 26 |
+
extern "C" {
|
| 27 |
+
#endif
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
// This API is used to enumerate all the EAP Methods installed and available for use; this
|
| 31 |
+
// includes legacy EAP Methods too. Returns non zero return code up on error.
|
| 32 |
+
DWORD WINAPI EapHostPeerGetMethods(
|
| 33 |
+
// API fills the structure to have installed EAP Methods. Caller should free the inner pointers
|
| 34 |
+
// using EapHostPeerFreeMemory starting at the inner most pointer.
|
| 35 |
+
OUT EAP_METHOD_INFO_ARRAY* pEapMethodInfoArray,
|
| 36 |
+
// In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory
|
| 37 |
+
OUT EAP_ERROR** ppEapError
|
| 38 |
+
);
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
// This API is used to retrieve the method properties for a specific configuration
|
| 42 |
+
// It returns non zero return code upon error.
|
| 43 |
+
DWORD WINAPI EapHostPeerGetMethodProperties(
|
| 44 |
+
// The version number of the API.
|
| 45 |
+
IN DWORD dwVersion,
|
| 46 |
+
// A combination of EAP flags that describe the EAP authentication session behavior.
|
| 47 |
+
IN DWORD dwFlags,
|
| 48 |
+
// An EAP_METHOD_TYPE structure that identifies the EAP method the supplicant is to use.
|
| 49 |
+
IN EAP_METHOD_TYPE eapMethodType,
|
| 50 |
+
// A handle to the user impersonation token to use in this session.
|
| 51 |
+
IN HANDLE hUserImpersonationToken,
|
| 52 |
+
// The size, in bytes, of the connection data buffer provided in pbEapConnData.
|
| 53 |
+
IN DWORD dwEapConnDataSize,
|
| 54 |
+
// Connection data used for the EAP method.
|
| 55 |
+
IN _In_reads_(dwEapConnDataSize) const BYTE* pbEapConnData,
|
| 56 |
+
// The size in bytes of the user data buffer provided in pbUserData.
|
| 57 |
+
IN DWORD dwUserDataSize,
|
| 58 |
+
// A pointer to a byte buffer that contains the opaque user data BLOB.
|
| 59 |
+
IN _In_reads_(dwUserDataSize) const BYTE* pbUserData,
|
| 60 |
+
// A pointer to the method properties array. Caller should free the inner pointers using EapHostPeerFreeMemory starting
|
| 61 |
+
// at the inner most pointer. The caller should free empvString value only when the type is empvtString.
|
| 62 |
+
OUT EAP_METHOD_PROPERTY_ARRAY* pMethodPropertyArray,
|
| 63 |
+
// A pointer to a pointer to an EAP_ERROR structure that contains any errors raised by EAPHost
|
| 64 |
+
// during the execution of this function call.
|
| 65 |
+
OUT EAP_ERROR** ppEapError
|
| 66 |
+
);
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
// This API is used to invoke configure UI of the specified EAP Method.
|
| 70 |
+
// API Returns non zero return code up on error.
|
| 71 |
+
DWORD WINAPI EapHostPeerInvokeConfigUI(
|
| 72 |
+
// window handle of the parent window under which configuration dialog will show up
|
| 73 |
+
IN HWND hwndParent,
|
| 74 |
+
// Flags to control the behavior of the EAP Method.
|
| 75 |
+
IN DWORD dwFlags,
|
| 76 |
+
// Identifies the EAP Method to configure
|
| 77 |
+
IN EAP_METHOD_TYPE eapMethodType,
|
| 78 |
+
// Size of input configuration; this could be 0 when there is no configuration
|
| 79 |
+
IN DWORD dwSizeOfConfigIn,
|
| 80 |
+
// input configuration, this couldb NULL when there is no configuration
|
| 81 |
+
IN _In_reads_opt_(dwSizeOfConfigIn) const BYTE* pConfigIn,
|
| 82 |
+
// pointer to DWORD that receives configuration after user updated using UI
|
| 83 |
+
OUT DWORD* pdwSizeOfConfigOut,
|
| 84 |
+
// buffer that receives updated configuration after user updated using UI.
|
| 85 |
+
// Caller should free the memory using EapHostPeerFreeMemory.
|
| 86 |
+
OUT BYTE** ppConfigOut,
|
| 87 |
+
// In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory
|
| 88 |
+
OUT EAP_ERROR** ppEapError
|
| 89 |
+
);
|
| 90 |
+
|
| 91 |
+
// This API is used to obtain the fields to be shown in Single Sign On scenario for
|
| 92 |
+
// showing UI in long screen. The structures returned have details on how to show the fields.
|
| 93 |
+
// API Returns non zero return code up on error.
|
| 94 |
+
DWORD WINAPI EapHostPeerQueryCredentialInputFields(
|
| 95 |
+
// handle to the impersonation token that is used while signle sign on.
|
| 96 |
+
IN HANDLE hUserImpersonationToken,
|
| 97 |
+
// identifies the EAP Method supplicant wants to use
|
| 98 |
+
IN EAP_METHOD_TYPE eapMethodType,
|
| 99 |
+
// control the behavior of the EAP Methods
|
| 100 |
+
IN DWORD dwFlags,
|
| 101 |
+
// size of input configuration data
|
| 102 |
+
IN DWORD dwEapConnDataSize,
|
| 103 |
+
// configuration data that is used for the EAP method
|
| 104 |
+
IN _In_reads_(dwEapConnDataSize) const BYTE* pbEapConnData,
|
| 105 |
+
// structure that gets filled with fields and how they should be shown to the user.
|
| 106 |
+
// Caller should free the inner pointers using EapHostPeerFreeMemory starting
|
| 107 |
+
// at the inner most pointer.
|
| 108 |
+
OUT EAP_CONFIG_INPUT_FIELD_ARRAY *pEapConfigInputFieldArray,
|
| 109 |
+
// In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory
|
| 110 |
+
OUT EAP_ERROR** ppEapError
|
| 111 |
+
);
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
// Supplicant up on receiving user inputs from Single Sign On UI, calls this API to obtain
|
| 115 |
+
// credential blob that could used start authentication
|
| 116 |
+
// API Returns non zero return code up on error.
|
| 117 |
+
DWORD WINAPI EapHostPeerQueryUserBlobFromCredentialInputFields(
|
| 118 |
+
// handle to the impersonation token that is used while signle sign on.
|
| 119 |
+
IN HANDLE hUserImpersonationToken,
|
| 120 |
+
// identifies the EAP Method supplicant wants to use
|
| 121 |
+
IN EAP_METHOD_TYPE eapMethodType,
|
| 122 |
+
// control the behavior of the EAP Methods
|
| 123 |
+
IN DWORD dwFlags,
|
| 124 |
+
// size of input configuration data
|
| 125 |
+
IN DWORD dwEapConnDataSize,
|
| 126 |
+
// configuration data that is used for the EAP method
|
| 127 |
+
IN _In_reads_(dwEapConnDataSize) const BYTE* pbEapConnData,
|
| 128 |
+
// structure containing the data entered by the user in Single Sign On UI
|
| 129 |
+
IN const EAP_CONFIG_INPUT_FIELD_ARRAY *pEapConfigInputFieldArray,
|
| 130 |
+
// pointer to DWORD that receives the size of credential blob, if supplicant passes in
|
| 131 |
+
// non-zero size and non-NULL data below, EAPHost will just attempt to Update
|
| 132 |
+
// the blob with passed in values (if method supports) instead of creating a new one.
|
| 133 |
+
_Inout_ DWORD *pdwUserBlobSize,
|
| 134 |
+
// Pointer that receives the credential blob that can be used in authentication.
|
| 135 |
+
// For incoming data caller should always allocate this memory using LocalAlloc()
|
| 136 |
+
// Caller should free the memory using EapHostPeerFreeMemory.
|
| 137 |
+
_Inout_
|
| 138 |
+
_At_(*ppbUserBlob,
|
| 139 |
+
_When_(*ppbUserBlob != NULL, _Pre_writable_size_(*pdwUserBlobSize))
|
| 140 |
+
_Post_readable_size_(*pdwUserBlobSize))
|
| 141 |
+
BYTE **ppbUserBlob,
|
| 142 |
+
// In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory
|
| 143 |
+
OUT EAP_ERROR** ppEapError
|
| 144 |
+
);
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
// Tunnel Methods call this function to invoke Identity UI of the inner Methods.
|
| 148 |
+
// This function returns the identity as well as the credentials to use to start the authentication.
|
| 149 |
+
DWORD WINAPI EapHostPeerInvokeIdentityUI (
|
| 150 |
+
// API's version number for ease of interoperability. It must be 0.
|
| 151 |
+
IN DWORD dwVersion,
|
| 152 |
+
// identifies the EAP Method supplicant wants to use
|
| 153 |
+
IN EAP_METHOD_TYPE eapMethodType,
|
| 154 |
+
// EAP_FLAG_xxx defined in eaptypes.w
|
| 155 |
+
IN DWORD dwFlags,
|
| 156 |
+
// window handle of the parent window under which configuration dialog will show up
|
| 157 |
+
IN HWND hwndParent,
|
| 158 |
+
// size of the buffer (pConnectionData) in bytes
|
| 159 |
+
IN DWORD dwSizeofConnectionData,
|
| 160 |
+
// configuration data that is used for the EAP method
|
| 161 |
+
IN _In_reads_(dwSizeofConnectionData) const BYTE* pConnectionData,
|
| 162 |
+
// size of the ubuffer pUserData
|
| 163 |
+
IN DWORD dwSizeofUserData,
|
| 164 |
+
// user credential information pertinent to this auth
|
| 165 |
+
IN _In_reads_opt_(dwSizeofUserData) const BYTE* pUserData,
|
| 166 |
+
// size of the buffer pUserDataOut.
|
| 167 |
+
IN OUT DWORD* pdwSizeOfUserDataOut,
|
| 168 |
+
// user data information returned by method.
|
| 169 |
+
// Caller should release this using EapHostPeerFreeMemory
|
| 170 |
+
OUT _Outptr_result_buffer_(*pdwSizeOfUserDataOut)BYTE** ppUserDataOut,
|
| 171 |
+
// identity returned by method. Caller should release this using EapHostPeerFreeMemory
|
| 172 |
+
OUT _Outptr_ LPWSTR* ppwszIdentity,
|
| 173 |
+
// In case of error, API fills ppEapError if possible. Caller should free ppEapError
|
| 174 |
+
// using EapHostPeerFreeErrorMemory
|
| 175 |
+
OUT EAP_ERROR** ppEapError,
|
| 176 |
+
// Reserved for future usage. It must be NULL.
|
| 177 |
+
IN OUT LPVOID *ppvReserved
|
| 178 |
+
);
|
| 179 |
+
|
| 180 |
+
|
| 181 |
+
// While doing authentication with EapHost, when supplicant receives action code of EapHostPeerResponseInvokeUi
|
| 182 |
+
// supplicant should call EapHostPeerGetUIContext to get UI context data. After that. it then should call this
|
| 183 |
+
// API from a process where UI can be brought up.
|
| 184 |
+
// API Returns non zero return code up on error.
|
| 185 |
+
DWORD WINAPI EapHostPeerInvokeInteractiveUI(
|
| 186 |
+
// window handle of the parent window under which dialog will show up
|
| 187 |
+
IN HWND hwndParent,
|
| 188 |
+
// size of UIcontext data received from EapHostPeerGetUIContext call
|
| 189 |
+
IN DWORD dwSizeofUIContextData,
|
| 190 |
+
// UIcontext data received from EapHostPeerGetUIContext call
|
| 191 |
+
IN _In_reads_opt_(dwSizeofUIContextData) const BYTE* pUIContextData,
|
| 192 |
+
// pointer to DWORD that receives data from interactive UI that is used for authentication
|
| 193 |
+
// to continue
|
| 194 |
+
OUT DWORD* pdwSizeOfDataFromInteractiveUI,
|
| 195 |
+
// pointer that receives buffer filled with interactive UI that is used for authentication
|
| 196 |
+
// to continue. Caller should free the memory using EapHostPeerFreeMemory.
|
| 197 |
+
OUT _Outptr_result_buffer_(*pdwSizeOfDataFromInteractiveUI) BYTE** ppDataFromInteractiveUI,
|
| 198 |
+
// In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory
|
| 199 |
+
OUT EAP_ERROR** ppEapError
|
| 200 |
+
);
|
| 201 |
+
|
| 202 |
+
// This API will enable supplicants to collect necessary information from EAPHost to raise interactive UI and collect user information
|
| 203 |
+
// supplicant should call EapHostPeerQueryInteractiveUIInputFields() API first after it receives
|
| 204 |
+
// EapHostPeerResponseInvokeUi actionCode from EAPHost. If the return value from this API
|
| 205 |
+
// is EAP_E_EAPHOST_METHOD_OPERATION_NOT_SUPPORTED, then supplicant should fall back to
|
| 206 |
+
// traditional model of invoking method interactive UI, i.e. by calling EapHostPeerInvokeInteractiveUI()
|
| 207 |
+
// API Returns non zero return code up on error.
|
| 208 |
+
DWORD WINAPI EapHostPeerQueryInteractiveUIInputFields (
|
| 209 |
+
// API's version number for ease of interoperability. It must be 0.
|
| 210 |
+
IN DWORD dwVersion,
|
| 211 |
+
// control the behavior of the EAP Methods
|
| 212 |
+
IN DWORD dwFlags,
|
| 213 |
+
// size of UIcontext data EAPHost runtime
|
| 214 |
+
IN DWORD dwSizeofUIContextData,
|
| 215 |
+
// UIContext data received from EAPHost runtime
|
| 216 |
+
IN _In_reads_(dwSizeofUIContextData) const BYTE* pUIContextData,
|
| 217 |
+
// structure that gets filled with fields and how they should be shown to the user.
|
| 218 |
+
// Caller should free the inner pointers using EapHostPeerFreeMemory starting at the inner most pointer.
|
| 219 |
+
OUT EAP_INTERACTIVE_UI_DATA *pEapInteractiveUIData,
|
| 220 |
+
// In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory
|
| 221 |
+
OUT EAP_ERROR** ppEapError,
|
| 222 |
+
// Reserved for future usage. It must be NULL.
|
| 223 |
+
IN OUT LPVOID *ppvReserved
|
| 224 |
+
);
|
| 225 |
+
|
| 226 |
+
// This API will enable supplicants to convert user information into a user-blob which can be consumed by EAPHost runtime APIs
|
| 227 |
+
// API Returns non zero return code up on error.
|
| 228 |
+
DWORD WINAPI EapHostPeerQueryUIBlobFromInteractiveUIInputFields(
|
| 229 |
+
// API's version number for ease of interoperability. It must be 0.
|
| 230 |
+
IN DWORD dwVersion,
|
| 231 |
+
// control the behavior of the EAP Methods
|
| 232 |
+
IN DWORD dwFlags,
|
| 233 |
+
// size of UIcontext data EAPHost runtime
|
| 234 |
+
IN DWORD dwSizeofUIContextData,
|
| 235 |
+
// UIContext data received from EAPHost runtime
|
| 236 |
+
IN _In_reads_(dwSizeofUIContextData) const BYTE* pUIContextData,
|
| 237 |
+
// structure that carries data provided by user
|
| 238 |
+
IN const EAP_INTERACTIVE_UI_DATA *pEapInteractiveUIData,
|
| 239 |
+
// pointer to DWORD that receives size of credential blob, if supplicant passes in
|
| 240 |
+
// non-zero size and non-NULL data below, EAPHost will just attempt to Update
|
| 241 |
+
// the blob with passed in values (if method supports) instead of creating a new one.
|
| 242 |
+
IN OUT DWORD * pdwSizeOfDataFromInteractiveUI,
|
| 243 |
+
// Pointer that receives the credential blob that can be used in authentication.
|
| 244 |
+
// Caller should free the memory using EapHostPeerFreeMemory.
|
| 245 |
+
IN OUT _Outptr_result_buffer_(*pdwSizeOfDataFromInteractiveUI) BYTE ** ppDataFromInteractiveUI,
|
| 246 |
+
// In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory
|
| 247 |
+
OUT EAP_ERROR** ppEapError,
|
| 248 |
+
// Reserved for future usage. It must be NULL.
|
| 249 |
+
IN OUT LPVOID *ppvReserved
|
| 250 |
+
);
|
| 251 |
+
|
| 252 |
+
|
| 253 |
+
// Supplicant can utilize XML based EAP configuration storing, managing, editing. When it wants to call EapHostPeerConfigureUI
|
| 254 |
+
// or when it has to start authentication, it calls this API to convert XML configuration into blob.
|
| 255 |
+
// API Returns non zero return code up on error.
|
| 256 |
+
DWORD WINAPI EapHostPeerConfigXml2Blob(
|
| 257 |
+
// controls the behavior of the EAP Method
|
| 258 |
+
IN DWORD dwFlags,
|
| 259 |
+
// a node containing EAP XML configuration inside it
|
| 260 |
+
IN IXMLDOMNode* pConfigDoc,
|
| 261 |
+
// pointer to DWORD that receives the configuration blob size
|
| 262 |
+
OUT DWORD* pdwSizeOfConfigOut,
|
| 263 |
+
// pointer that receives configuration blob. Caller should free the memory using EapHostPeerFreeMemory.
|
| 264 |
+
OUT _Outptr_result_buffer_(*pdwSizeOfConfigOut) BYTE** ppConfigOut,
|
| 265 |
+
// pointer that receives the EAP Method specified in the XML configuration
|
| 266 |
+
OUT EAP_METHOD_TYPE* pEapMethodType,
|
| 267 |
+
// In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory
|
| 268 |
+
OUT EAP_ERROR** ppEapError
|
| 269 |
+
);
|
| 270 |
+
|
| 271 |
+
|
| 272 |
+
// Supplicant can utilize XML based EAP credentials storing, managing, editing. When it wants to start
|
| 273 |
+
// authentication, it calls this API to convert XML based credentials into blob.
|
| 274 |
+
// API Returns non zero return code up on error.
|
| 275 |
+
DWORD WINAPI EapHostPeerCredentialsXml2Blob(
|
| 276 |
+
// controls the behavior of the EAP Method
|
| 277 |
+
IN DWORD dwFlags,
|
| 278 |
+
// XML node that contains credentials
|
| 279 |
+
IN IXMLDOMNode* pCredentialsDoc,
|
| 280 |
+
// size of configuration blob that the credentials are configured for
|
| 281 |
+
IN DWORD dwSizeOfConfigIn,
|
| 282 |
+
// configuration blob that the credentials are configured for
|
| 283 |
+
IN _In_reads_(dwSizeOfConfigIn) BYTE* pConfigIn,
|
| 284 |
+
// pointer to DWORD that receives size of the credentials blob.
|
| 285 |
+
OUT DWORD* pdwSizeOfCredentialsOut,
|
| 286 |
+
// pointer that receives credential blob buffer. Caller should free the memory using
|
| 287 |
+
// EapHostPeerFreeMemory.
|
| 288 |
+
OUT _Outptr_result_buffer_(*pdwSizeOfCredentialsOut) BYTE** ppCredentialsOut,
|
| 289 |
+
// pointer that receives the EAP Method specified in the XML configuration
|
| 290 |
+
OUT EAP_METHOD_TYPE* pEapMethodType,
|
| 291 |
+
// In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory
|
| 292 |
+
OUT EAP_ERROR** ppEapError
|
| 293 |
+
);
|
| 294 |
+
|
| 295 |
+
|
| 296 |
+
// Supplicant can utilize XML based EAP credentials storing, managing, editing. When it wants to start
|
| 297 |
+
// convert configuration blob to XML, it can call this API.
|
| 298 |
+
// API Returns non zero return code up on error.
|
| 299 |
+
DWORD WINAPI EapHostPeerConfigBlob2Xml(
|
| 300 |
+
// controls the behavior of the EAP Method
|
| 301 |
+
IN DWORD dwFlags,
|
| 302 |
+
// identifies the EAP Method
|
| 303 |
+
IN EAP_METHOD_TYPE eapMethodType,
|
| 304 |
+
// Size of configuration blob that supplicant wants to convert
|
| 305 |
+
IN DWORD dwSizeOfConfigIn,
|
| 306 |
+
// Configuration blob that supplicant wants to convert
|
| 307 |
+
IN _In_reads_(dwSizeOfConfigIn) BYTE* pConfigIn,
|
| 308 |
+
// XML document that contains XML form of the blob. If the EAP Method does not support
|
| 309 |
+
// EapPeerConfigBlob2Xml function, the XML contains ConfigBlob node with blob in string form
|
| 310 |
+
OUT IXMLDOMDocument2** ppConfigDoc,
|
| 311 |
+
// In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapHostPeerFreeErrorMemory
|
| 312 |
+
OUT EAP_ERROR** ppEapError
|
| 313 |
+
);
|
| 314 |
+
|
| 315 |
+
// Supplicant calls this API to free memory returned by Config APIs. Supplicant should not use this API
|
| 316 |
+
// for freeing EAP_ERROR structure.
|
| 317 |
+
VOID WINAPI EapHostPeerFreeMemory(BYTE* pData);
|
| 318 |
+
|
| 319 |
+
// Supplicant calls this API to free EAP_ERROR memory, which will get filled when an API fails.
|
| 320 |
+
VOID WINAPI EapHostPeerFreeErrorMemory(EAP_ERROR* pEapError);
|
| 321 |
+
|
| 322 |
+
|
| 323 |
+
#ifdef __cplusplus
|
| 324 |
+
}
|
| 325 |
+
#endif
|
| 326 |
+
|
| 327 |
+
|
| 328 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 329 |
+
#pragma endregion
|
| 330 |
+
|
| 331 |
+
#endif // EAPHOSTPEERCONFIGAPIS_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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 2 |
+
//
|
| 3 |
+
// Copyright (c) Microsoft Corporation
|
| 4 |
+
//
|
| 5 |
+
// SYNOPSIS
|
| 6 |
+
//
|
| 7 |
+
// Declares datastructures that are needed by eap methods on the Peer.
|
| 8 |
+
//
|
| 9 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 10 |
+
|
| 11 |
+
#ifndef EAP_METHOD_AUTHENTICATOR_APIS_H
|
| 12 |
+
#define EAP_METHOD_AUTHENTICATOR_APIS_H
|
| 13 |
+
#pragma once
|
| 14 |
+
#include <winapifamily.h>
|
| 15 |
+
|
| 16 |
+
#pragma region Desktop Family
|
| 17 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
#ifndef __eapauthenticatortypes_h__
|
| 21 |
+
#include "EapAuthenticatorTypes.h"
|
| 22 |
+
#endif
|
| 23 |
+
|
| 24 |
+
#ifndef EAPAUTHENTICATORACTIONDEFINE_H
|
| 25 |
+
#include "EapAuthenticatorActionDefine.h"
|
| 26 |
+
#endif
|
| 27 |
+
|
| 28 |
+
#ifdef __cplusplus
|
| 29 |
+
extern "C" {
|
| 30 |
+
#endif
|
| 31 |
+
|
| 32 |
+
//
|
| 33 |
+
// Defines used for installation of EAP DLL
|
| 34 |
+
// HKLM\System\CCS\Services\Eaphost\Methods\[AuthorId]\[EapTypeId])
|
| 35 |
+
//
|
| 36 |
+
// Custom EAP DLL registry installation example:
|
| 37 |
+
// Name = Sample.dll,
|
| 38 |
+
// AuthorId = 311(Microsoft),
|
| 39 |
+
// EapTypeId = (decimal 40)
|
| 40 |
+
// HKLM\System\CCS\Services\Eaphost\Methods\311\40
|
| 41 |
+
//
|
| 42 |
+
// AuthenticatorDllPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll
|
| 43 |
+
// AuthenticatorFriendlyName (REG_SZ) Sample EAP Protocol
|
| 44 |
+
|
| 45 |
+
//
|
| 46 |
+
// Defines used for installation of EAP DLL
|
| 47 |
+
// HKLM\System\CCS\Services\Eaphost\Methods\[AuthorId]\254\[VendorId]\[EapTypeId])
|
| 48 |
+
//
|
| 49 |
+
// Custom Expanded EAP DLL registry installation example:
|
| 50 |
+
// Name = Sample.dll,
|
| 51 |
+
// AuthorId = 311(Microsoft),
|
| 52 |
+
// VendorId = 311(Microsoft),
|
| 53 |
+
// EapTypeId = (decimal 40)
|
| 54 |
+
// HKLM\System\CCS\Services\Eaphost\Methods\311\254\311\40
|
| 55 |
+
//
|
| 56 |
+
// AuthenticatorDllPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll
|
| 57 |
+
// AuthenticatorFriendlyName (REG_SZ) Sample EAP Protocol
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
// ConfigCLSID (REG_SZ) {0000031A-0000-0000-C000-000000000046}
|
| 61 |
+
// StandaloneSupported (REG_DWORD) 1
|
| 62 |
+
//
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
#define EAP_REGISTRY_LOCATION \
|
| 66 |
+
TEXT("System\\CurrentControlSet\\Services\\EapHost\\Methods")
|
| 67 |
+
|
| 68 |
+
#define EAP_AUTHENTICATOR_VALUENAME_DLL_PATH TEXT("AuthenticatorDllPath")
|
| 69 |
+
#define EAP_AUTHENTICATOR_VALUENAME_FRIENDLY_NAME TEXT("AuthenticatorFriendlyName")
|
| 70 |
+
#define EAP_AUTHENTICATOR_VALUENAME_PROPERTIES TEXT("Properties")
|
| 71 |
+
#define EAP_AUTHENTICATOR_VALUENAME_CONFIGUI TEXT("AuthenticatorConfigUIPath")
|
| 72 |
+
|
| 73 |
+
//For authenticator
|
| 74 |
+
// Are these needed any more? Or are we going to define better ways of
|
| 75 |
+
// encapsulating them.
|
| 76 |
+
//#define EAP_AUTHENTICATOR_VALUENAME_CONFIG_CLSID TEXT("ConfigCLSID")
|
| 77 |
+
//#define EAP_AUTHENTICATOR_VALUENAME_PER_POLICY_CONFIG TEXT("PerPolicyConfig")
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
// Structures used by EAP methods on the peer to communicate with the host.
|
| 81 |
+
|
| 82 |
+
// List of functions corresponding to the particular EAP method
|
| 83 |
+
typedef struct _EAP_AUTHENTICATOR_METHOD_ROUTINES
|
| 84 |
+
{
|
| 85 |
+
// FIXME: Why is the size needed?
|
| 86 |
+
DWORD dwSizeInBytes;
|
| 87 |
+
EAP_METHOD_TYPE* pEapType;
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
DWORD (APIENTRY * EapMethodAuthenticatorInitialize) (
|
| 91 |
+
IN EAP_METHOD_TYPE* pEapType,
|
| 92 |
+
OUT EAP_ERROR** ppEapError
|
| 93 |
+
);
|
| 94 |
+
|
| 95 |
+
DWORD (APIENTRY * EapMethodAuthenticatorBeginSession) (
|
| 96 |
+
// Flags to qualify the authentication process.
|
| 97 |
+
IN DWORD dwFlags,
|
| 98 |
+
// Identity of the user being authenticated
|
| 99 |
+
IN LPCWSTR pwszIdentity,
|
| 100 |
+
// Pointer to an array of attributes. This array contains attributes that
|
| 101 |
+
// describe the entity being authenticated.
|
| 102 |
+
IN const EapAttributes* const pAttributeArray,
|
| 103 |
+
// Specifies the size in bytes of the data pointed to by pConnectionData.
|
| 104 |
+
// If pConnectionData is NULL, this member is zero.
|
| 105 |
+
IN DWORD dwSizeofConnectionData,
|
| 106 |
+
// Pointer to connection data received from the authentication protocol's
|
| 107 |
+
// configuration user interface.
|
| 108 |
+
IN const BYTE* const pConnectionData,
|
| 109 |
+
// This is the maximum size of an eap packet that the authenticator can send.
|
| 110 |
+
IN DWORD dwMaxSendPacketSize,
|
| 111 |
+
// The session handle that identifies the current authentication session.
|
| 112 |
+
OUT EAP_SESSION_HANDLE* pSessionHandle,
|
| 113 |
+
// On an unsuccessful call, this will contain any error information about
|
| 114 |
+
// the failure. This will be null on a successful call.
|
| 115 |
+
OUT EAP_ERROR** ppEapError
|
| 116 |
+
);
|
| 117 |
+
|
| 118 |
+
DWORD (APIENTRY * EapMethodAuthenticatorUpdateInnerMethodParams)(
|
| 119 |
+
// context handle as returned from a successful call to
|
| 120 |
+
// EapAuthenticatorBeginSession
|
| 121 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 122 |
+
IN DWORD dwFlags,
|
| 123 |
+
IN CONST WCHAR* pwszIdentity,
|
| 124 |
+
// Pointer to an array of attributes. This array contains attributes that
|
| 125 |
+
// describe the entity being authenticated.
|
| 126 |
+
IN const EapAttributes* const pAttributeArray,
|
| 127 |
+
// On an unsuccessful call, this will contain any error information about
|
| 128 |
+
// the failure. This will be null on a successful call.
|
| 129 |
+
OUT EAP_ERROR** ppEapError
|
| 130 |
+
);
|
| 131 |
+
|
| 132 |
+
// The authenticator calls this any time it receives a packet that the eaphost
|
| 133 |
+
// needs to process. This should be called only after a successful call to
|
| 134 |
+
// EapAuthenticatorBeginSession.
|
| 135 |
+
DWORD (APIENTRY * EapMethodAuthenticatorReceivePacket) (
|
| 136 |
+
// context handle as returned from a successful call to
|
| 137 |
+
// EapAuthenticatorBeginSession
|
| 138 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 139 |
+
// Specifies the size, in bytes, of the buffer pointed to by
|
| 140 |
+
// pReceivePacket
|
| 141 |
+
IN DWORD cbReceivePacket,
|
| 142 |
+
// Pointer to a buffer that contains the incoming EAP data received by
|
| 143 |
+
// the supplicant.
|
| 144 |
+
IN const EapPacket* const pReceivePacket,
|
| 145 |
+
// This enumeration tells the supplicant to take an appropriate action.
|
| 146 |
+
// The supplicant will typically look at this action and either call
|
| 147 |
+
// another method on eaphost or do something else on its own.
|
| 148 |
+
OUT EAP_METHOD_AUTHENTICATOR_RESPONSE_ACTION* pEapOutput,
|
| 149 |
+
// On an unsuccessful call, this will contain any error information about
|
| 150 |
+
// the failure. This will be null on a successful call.
|
| 151 |
+
OUT EAP_ERROR** ppEapError
|
| 152 |
+
);
|
| 153 |
+
|
| 154 |
+
|
| 155 |
+
DWORD (APIENTRY * EapMethodAuthenticatorSendPacket) (
|
| 156 |
+
// context handle as returned from a successful call to
|
| 157 |
+
// EapHostAuthenticatorBeginSession
|
| 158 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 159 |
+
// Id to use when constructing the SendPacket
|
| 160 |
+
IN BYTE bPacketId,
|
| 161 |
+
// Specifies the limit on the size, in bytes, on the packet generated
|
| 162 |
+
// by eaphost. On a successful return, this will contain the size of the
|
| 163 |
+
// data added by the eap module.
|
| 164 |
+
OUT DWORD* pcbSendPacket,
|
| 165 |
+
// Pointer to a buffer that is allocated by the client and populated
|
| 166 |
+
// by the eap module. The value of the incoming buffer is ignored and
|
| 167 |
+
// the method populates it from the beginning of the buffer.
|
| 168 |
+
OUT EapPacket* pSendPacket,
|
| 169 |
+
// Timeout option for sending the packet
|
| 170 |
+
OUT EAP_AUTHENTICATOR_SEND_TIMEOUT* pTimeout,
|
| 171 |
+
// On an unsuccessful call, this will contain any error information about
|
| 172 |
+
// the failure. This will be null on a successful call.
|
| 173 |
+
OUT EAP_ERROR** ppEapError
|
| 174 |
+
);
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
// Returns an array of attributes that the caller needs to act on.
|
| 178 |
+
// The supplicant will call this when a call to
|
| 179 |
+
// EapHostAuthenticatorProcessRequestPacket returns EapHostAuthenticatorResponseRespond.
|
| 180 |
+
DWORD (APIENTRY * EapMethodAuthenticatorGetAttributes) (
|
| 181 |
+
// context handle as returned from a successful call to
|
| 182 |
+
// EapHostAuthenticatorBeginSession
|
| 183 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 184 |
+
// Array of attributes that the caller needs to act on.
|
| 185 |
+
OUT EapAttributes* pAttribs,
|
| 186 |
+
OUT EAP_ERROR** ppEapError
|
| 187 |
+
);
|
| 188 |
+
|
| 189 |
+
|
| 190 |
+
// Sets an array of attributes that the caller wants the eap method to act
|
| 191 |
+
// on.
|
| 192 |
+
DWORD (APIENTRY * EapMethodAuthenticatorSetAttributes) (
|
| 193 |
+
// context handle as returned from a successful call to
|
| 194 |
+
// EapHostAuthenticatorBeginSession
|
| 195 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 196 |
+
IN const EapAttributes* const pAttribs,
|
| 197 |
+
// This enumeration tells the supplicant to take an appropriate action.
|
| 198 |
+
// The supplicant will typically look at this action and either call
|
| 199 |
+
// another method on eaphost or do something else on its own.
|
| 200 |
+
OUT EAP_METHOD_AUTHENTICATOR_RESPONSE_ACTION* pEapOutput,
|
| 201 |
+
// On an unsuccessful call, this will contain any error information about
|
| 202 |
+
// the failure. This will be null on a successful call.
|
| 203 |
+
OUT EAP_ERROR** ppEapError
|
| 204 |
+
);
|
| 205 |
+
|
| 206 |
+
|
| 207 |
+
// The authenticator will call this on completion of an authentication. This
|
| 208 |
+
// can happen in any of the following scenarios:
|
| 209 |
+
// 1. A call to EapHostAuthenticatorReceivePacket returned
|
| 210 |
+
// EAP_HOST_AUTHENTICATOR_RESPONSE_SUCCESS or EAP_HOST_AUTHENTICATOR_RESPONSE_FAILURE
|
| 211 |
+
// Even if the action returned above was a success, the authenticator can choose to call
|
| 212 |
+
// this method with a failure.
|
| 213 |
+
// 2. The server can choose to terminate an authentication with a failure in the middle of
|
| 214 |
+
// an authentication.
|
| 215 |
+
DWORD (APIENTRY * EapMethodAuthenticatorGetResult) (
|
| 216 |
+
// context handle as returned from a successful call to
|
| 217 |
+
// EapHostPeerBeginSession
|
| 218 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 219 |
+
// A structure that indicates the result and any state that the
|
| 220 |
+
// supplicant needs to save for future authentications.
|
| 221 |
+
OUT EAP_METHOD_AUTHENTICATOR_RESULT* pResult,
|
| 222 |
+
// On an unsuccessful call, this will contain any error information about
|
| 223 |
+
// the failure. This will be null on a successful call.
|
| 224 |
+
OUT EAP_ERROR** ppEapError
|
| 225 |
+
);
|
| 226 |
+
|
| 227 |
+
|
| 228 |
+
// Ends the authentication session. This cleans up any state that the eap
|
| 229 |
+
// method or eaphost might be keeping.
|
| 230 |
+
DWORD (APIENTRY * EapMethodAuthenticatorEndSession) (
|
| 231 |
+
// context handle as returned from a successful call to
|
| 232 |
+
// EapHostPeerBeginSession. This will be set to NULL on a successful call.
|
| 233 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 234 |
+
// On an unsuccessful call, this will contain any error information about
|
| 235 |
+
// the failure. This will be null on a successful call.
|
| 236 |
+
OUT EAP_ERROR** ppEapError
|
| 237 |
+
);
|
| 238 |
+
|
| 239 |
+
|
| 240 |
+
DWORD (APIENTRY * EapMethodAuthenticatorShutdown) (
|
| 241 |
+
IN EAP_METHOD_TYPE* pEapType,
|
| 242 |
+
OUT EAP_ERROR** ppEapError
|
| 243 |
+
);
|
| 244 |
+
|
| 245 |
+
} EAP_AUTHENTICATOR_METHOD_ROUTINES, *PEAP_AUTHENTICATOR_METHOD_ROUTINES;
|
| 246 |
+
|
| 247 |
+
|
| 248 |
+
//
|
| 249 |
+
// EAP Functions
|
| 250 |
+
//
|
| 251 |
+
void WINAPI EapMethodAuthenticatorFreeErrorMemory(IN EAP_ERROR* pEapError);
|
| 252 |
+
void WINAPI EapMethodAuthenticatorFreeMemory(
|
| 253 |
+
IN void* pUIContextData
|
| 254 |
+
);
|
| 255 |
+
|
| 256 |
+
DWORD EapMethodAuthenticatorGetInfo(
|
| 257 |
+
IN EAP_METHOD_TYPE* pEapType,
|
| 258 |
+
OUT EAP_AUTHENTICATOR_METHOD_ROUTINES* pEapInfo,
|
| 259 |
+
OUT EAP_ERROR** ppEapError
|
| 260 |
+
);
|
| 261 |
+
|
| 262 |
+
DWORD EapMethodAuthenticatorInitialize(
|
| 263 |
+
IN EAP_METHOD_TYPE* pEapType,
|
| 264 |
+
OUT EAP_ERROR** ppEapError
|
| 265 |
+
);
|
| 266 |
+
|
| 267 |
+
DWORD EapMethodAuthenticatorBeginSession(
|
| 268 |
+
// Flags to qualify the authentication process.
|
| 269 |
+
IN DWORD dwFlags,
|
| 270 |
+
// Initial Id
|
| 271 |
+
IN BYTE bInitialId,
|
| 272 |
+
// Identity of the user being authenticated
|
| 273 |
+
IN LPCWSTR pwszIdentity,
|
| 274 |
+
// Pointer to an array of attributes. This array contains attributes that
|
| 275 |
+
// describe the entity being authenticated.
|
| 276 |
+
IN const EapAttributes* const pAttributeArray,
|
| 277 |
+
// Specifies the size in bytes of the data pointed to by pConnectionData.
|
| 278 |
+
// If pConnectionData is NULL, this member is zero.
|
| 279 |
+
IN DWORD dwSizeofConnectionData,
|
| 280 |
+
// Pointer to connection data received from the authentication protocol's
|
| 281 |
+
// configuration user interface.
|
| 282 |
+
IN const BYTE* const pConnectionData,
|
| 283 |
+
// This is the maximum size of an eap packet that the authenticator can send.
|
| 284 |
+
IN DWORD dwMaxSendPacketSize,
|
| 285 |
+
// The session handle that identifies the current authentication session.
|
| 286 |
+
OUT EAP_SESSION_HANDLE* pSessionHandle,
|
| 287 |
+
// On an unsuccessful call, this will contain any error information about
|
| 288 |
+
// the failure. This will be null on a successful call.
|
| 289 |
+
OUT EAP_ERROR** ppEapError
|
| 290 |
+
);
|
| 291 |
+
|
| 292 |
+
DWORD EapMethodAuthenticatorUpdateInnerMethodParams(
|
| 293 |
+
// context handle as returned from a successful call to
|
| 294 |
+
// EapAuthenticatorBeginSession
|
| 295 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 296 |
+
IN DWORD dwFlags,
|
| 297 |
+
IN CONST WCHAR* pwszIdentity,
|
| 298 |
+
// Pointer to an array of attributes. This array contains attributes that
|
| 299 |
+
// describe the entity being authenticated.
|
| 300 |
+
IN const EapAttributes* const pAttributeArray,
|
| 301 |
+
// On an unsuccessful call, this will contain any error information about
|
| 302 |
+
// the failure. This will be null on a successful call.
|
| 303 |
+
OUT EAP_ERROR** ppEapError
|
| 304 |
+
);
|
| 305 |
+
|
| 306 |
+
|
| 307 |
+
// The authenticator calls this any time it receives a packet that the eaphost
|
| 308 |
+
// needs to process. This should be called only after a successful call to
|
| 309 |
+
// EapAuthenticatorBeginSession.
|
| 310 |
+
DWORD EapMethodAuthenticatorReceivePacket(
|
| 311 |
+
// context handle as returned from a successful call to
|
| 312 |
+
// EapAuthenticatorBeginSession
|
| 313 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 314 |
+
// Specifies the size, in bytes, of the buffer pointed to by
|
| 315 |
+
// pReceivePacket
|
| 316 |
+
IN DWORD cbReceivePacket,
|
| 317 |
+
// Pointer to a buffer that contains the incoming EAP data received by
|
| 318 |
+
// the supplicant.
|
| 319 |
+
IN const EapPacket* const pReceivePacket,
|
| 320 |
+
// This enumeration tells the supplicant to take an appropriate action.
|
| 321 |
+
// The supplicant will typically look at this action and either call
|
| 322 |
+
// another method on eaphost or do something else on its own.
|
| 323 |
+
OUT EAP_METHOD_AUTHENTICATOR_RESPONSE_ACTION* pEapOutput,
|
| 324 |
+
// On an unsuccessful call, this will contain any error information about
|
| 325 |
+
// the failure. This will be null on a successful call.
|
| 326 |
+
OUT EAP_ERROR** ppEapError
|
| 327 |
+
);
|
| 328 |
+
|
| 329 |
+
|
| 330 |
+
DWORD EapMethodAuthenticatorSendPacket(
|
| 331 |
+
// context handle as returned from a successful call to
|
| 332 |
+
// EapHostAuthenticatorBeginSession
|
| 333 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 334 |
+
// Id to use when constructing the SendPacket
|
| 335 |
+
IN BYTE bPacketId,
|
| 336 |
+
// Specifies the limit on the size, in bytes, on the packet generated
|
| 337 |
+
// by eaphost. On a successful return, this will contain the size of the
|
| 338 |
+
// data added by the eap module.
|
| 339 |
+
IN OUT DWORD* pcbSendPacket,
|
| 340 |
+
// Pointer to a buffer that is allocated by the client and populated
|
| 341 |
+
// by the eap module. The value of the incoming buffer is ignored and
|
| 342 |
+
// the method populates it from the beginning of the buffer.
|
| 343 |
+
OUT EapPacket* pSendPacket,
|
| 344 |
+
// Timeout option for sending the packet
|
| 345 |
+
OUT EAP_AUTHENTICATOR_SEND_TIMEOUT* pTimeout,
|
| 346 |
+
// On an unsuccessful call, this will contain any error information about
|
| 347 |
+
// the failure. This will be null on a successful call.
|
| 348 |
+
OUT EAP_ERROR** ppEapError
|
| 349 |
+
);
|
| 350 |
+
|
| 351 |
+
|
| 352 |
+
// Returns an array of attributes that the caller needs to act on.
|
| 353 |
+
// The supplicant will call this when a call to
|
| 354 |
+
// EapHostAuthenticatorProcessRequestPacket returns EapHostAuthenticatorResponseRespond.
|
| 355 |
+
DWORD EapMethodAuthenticatorGetAttributes(
|
| 356 |
+
// context handle as returned from a successful call to
|
| 357 |
+
// EapHostAuthenticatorBeginSession
|
| 358 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 359 |
+
// Array of attributes that the caller needs to act on.
|
| 360 |
+
OUT EapAttributes* pAttribs,
|
| 361 |
+
OUT EAP_ERROR** ppEapError
|
| 362 |
+
);
|
| 363 |
+
|
| 364 |
+
|
| 365 |
+
|
| 366 |
+
// Sets an array of attributes that the caller wants the eap method to act
|
| 367 |
+
// on.
|
| 368 |
+
DWORD EapMethodAuthenticatorSetAttributes(
|
| 369 |
+
// context handle as returned from a successful call to
|
| 370 |
+
// EapHostAuthenticatorBeginSession
|
| 371 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 372 |
+
IN const EapAttributes* const pAttribs,
|
| 373 |
+
// This enumeration tells the supplicant to take an appropriate action.
|
| 374 |
+
// The supplicant will typically look at this action and either call
|
| 375 |
+
// another method on eaphost or do something else on its own.
|
| 376 |
+
OUT EAP_METHOD_AUTHENTICATOR_RESPONSE_ACTION* pEapOutput,
|
| 377 |
+
// On an unsuccessful call, this will contain any error information about
|
| 378 |
+
// the failure. This will be null on a successful call.
|
| 379 |
+
OUT EAP_ERROR** ppEapError
|
| 380 |
+
);
|
| 381 |
+
|
| 382 |
+
|
| 383 |
+
|
| 384 |
+
// The authenticator will call this on completion of an authentication. This
|
| 385 |
+
// can happen in any of the following scenarios:
|
| 386 |
+
// 1. A call to EapHostAuthenticatorReceivePacket returned
|
| 387 |
+
// EAP_HOST_AUTHENTICATOR_RESPONSE_SUCCESS or EAP_HOST_AUTHENTICATOR_RESPONSE_FAILURE
|
| 388 |
+
// Even if the action returned above was a success, the authenticator can choose to call
|
| 389 |
+
// this method with a failure.
|
| 390 |
+
// 2. The server can choose to terminate an authentication with a failure in the middle of
|
| 391 |
+
// an authentication.
|
| 392 |
+
DWORD EapMethodAuthenticatorGetResult(
|
| 393 |
+
// context handle as returned from a successful call to
|
| 394 |
+
// EapHostPeerBeginSession
|
| 395 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 396 |
+
// A structure that indicates the result and any state that the
|
| 397 |
+
// supplicant needs to save for future authentications.
|
| 398 |
+
OUT EAP_METHOD_AUTHENTICATOR_RESULT* pResult,
|
| 399 |
+
// On an unsuccessful call, this will contain any error information about
|
| 400 |
+
// the failure. This will be null on a successful call.
|
| 401 |
+
OUT EAP_ERROR** ppEapError
|
| 402 |
+
);
|
| 403 |
+
|
| 404 |
+
|
| 405 |
+
// Ends the authentication session. This cleans up any state that the eap
|
| 406 |
+
// method or eaphost might be keeping.
|
| 407 |
+
DWORD EapMethodAuthenticatorEndSession(
|
| 408 |
+
// context handle as returned from a successful call to
|
| 409 |
+
// EapHostPeerBeginSession. This will be set to NULL on a successful call.
|
| 410 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 411 |
+
// On an unsuccessful call, this will contain any error information about
|
| 412 |
+
// the failure. This will be null on a successful call.
|
| 413 |
+
OUT EAP_ERROR** ppEapError
|
| 414 |
+
);
|
| 415 |
+
|
| 416 |
+
|
| 417 |
+
DWORD EapMethodAuthenticatorShutdown(
|
| 418 |
+
IN EAP_METHOD_TYPE* pEapType,
|
| 419 |
+
OUT EAP_ERROR** ppEapError
|
| 420 |
+
);
|
| 421 |
+
|
| 422 |
+
|
| 423 |
+
/// Config API
|
| 424 |
+
|
| 425 |
+
#define EAP_METHOD_AUTHENTICATOR_CONFIG_IS_IDENTITY_PRIVACY 0x1
|
| 426 |
+
|
| 427 |
+
DWORD WINAPI EapMethodAuthenticatorInvokeConfigUI(
|
| 428 |
+
IN EAP_METHOD_TYPE* pEapMethodType,
|
| 429 |
+
IN HWND hwndParent,
|
| 430 |
+
IN DWORD dwFlags,
|
| 431 |
+
IN LPCWSTR pwszMachineName,
|
| 432 |
+
IN DWORD dwSizeOfConfigIn,
|
| 433 |
+
IN BYTE* pConfigIn,
|
| 434 |
+
OUT DWORD* pdwSizeOfConfigOut,
|
| 435 |
+
OUT BYTE** ppConfigOut,
|
| 436 |
+
OUT EAP_ERROR** ppEapError
|
| 437 |
+
);
|
| 438 |
+
|
| 439 |
+
#ifdef __cplusplus
|
| 440 |
+
}
|
| 441 |
+
#endif
|
| 442 |
+
|
| 443 |
+
|
| 444 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 445 |
+
#pragma endregion
|
| 446 |
+
|
| 447 |
+
#endif // EAP_METHOD_AUTHENTICATOR_APIS_H
|
| 448 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eapmethodpeerapis.h
ADDED
|
@@ -0,0 +1,1028 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 2 |
+
//
|
| 3 |
+
// Copyright (c) Microsoft Corporation
|
| 4 |
+
//
|
| 5 |
+
// SYNOPSIS
|
| 6 |
+
//
|
| 7 |
+
// Declares datastructures that are needed by eap methods on the Peer.
|
| 8 |
+
//
|
| 9 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 10 |
+
|
| 11 |
+
#ifndef EAPPEERMETHODAPIS_H
|
| 12 |
+
#define EAPPEERMETHODAPIS_H
|
| 13 |
+
#pragma once
|
| 14 |
+
#include <winapifamily.h>
|
| 15 |
+
|
| 16 |
+
#pragma region Desktop Family
|
| 17 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
#include "objbase.h"
|
| 21 |
+
#include "msxml6.h"
|
| 22 |
+
#include "EapMethodTypes.h"
|
| 23 |
+
|
| 24 |
+
#ifndef EAPAUTHENTICATORACTIONDEFINE_H
|
| 25 |
+
#include "EapAuthenticatorActionDefine.h"
|
| 26 |
+
#endif
|
| 27 |
+
|
| 28 |
+
#ifndef _NGCTICKETCONTEXT_
|
| 29 |
+
#define _NGCTICKETCONTEXT_
|
| 30 |
+
// The NCRYPT_PIN_CACHE_PIN_PROPERTY and NCRYPT_PIN_CACHE_APPLICATION_TICKET_PROPERTY properties
|
| 31 |
+
// return a 32 byte random unique ID encoded as a null terminated base64 Unicode string. The string length
|
| 32 |
+
// is 32 * 4/3 + 1 characters = 45 characters, 90 bytes
|
| 33 |
+
#define NCRYPT_PIN_CACHE_PIN_BYTE_LENGTH 90
|
| 34 |
+
|
| 35 |
+
#define NGC_TICKET_PROPERTY_STRING_LENGTH (NCRYPT_PIN_CACHE_PIN_BYTE_LENGTH/sizeof(WCHAR))
|
| 36 |
+
|
| 37 |
+
typedef ULONG_PTR NCRYPT_KEY_HANDLE;
|
| 38 |
+
|
| 39 |
+
typedef struct _NgcTicketContext
|
| 40 |
+
{
|
| 41 |
+
WCHAR wszTicket[NGC_TICKET_PROPERTY_STRING_LENGTH];
|
| 42 |
+
NCRYPT_KEY_HANDLE hKey;
|
| 43 |
+
HANDLE hImpersonateToken;
|
| 44 |
+
} NgcTicketContext;
|
| 45 |
+
|
| 46 |
+
#endif
|
| 47 |
+
|
| 48 |
+
#ifdef __cplusplus
|
| 49 |
+
extern "C" {
|
| 50 |
+
#endif
|
| 51 |
+
|
| 52 |
+
//
|
| 53 |
+
// Defines used for installation of EAP DLL
|
| 54 |
+
// HKLM\System\CCS\Services\Eaphost\Methods\[AuthorId]\[EapTypeId])
|
| 55 |
+
//
|
| 56 |
+
// Custom EAP DLL registry installation example:
|
| 57 |
+
// Name = Sample.dll,
|
| 58 |
+
// AuthorId = 311(Microsoft),
|
| 59 |
+
// EapTypeId = (decimal 40)
|
| 60 |
+
// HKLM\System\CCS\Services\Eaphost\Methods\311\40
|
| 61 |
+
//
|
| 62 |
+
// PeerDllPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll
|
| 63 |
+
// PeerConfigUIPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll
|
| 64 |
+
// PeerInteractiveUIPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll
|
| 65 |
+
// PeerIdentityPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll
|
| 66 |
+
// PeerFriendlyName (REG_SZ) Sample EAP Protocol
|
| 67 |
+
// PeerRequireConfigUI (REG_DWORD) 1
|
| 68 |
+
|
| 69 |
+
//
|
| 70 |
+
// Defines used for installation of EAP DLL
|
| 71 |
+
// HKLM\System\CCS\Services\Eaphost\Methods\[AuthorId]\254\[VendorId]\[EapTypeId])
|
| 72 |
+
//
|
| 73 |
+
// Custom Expanded EAP DLL registry installation example:
|
| 74 |
+
// Name = Sample.dll,
|
| 75 |
+
// AuthorId = 311(Microsoft),
|
| 76 |
+
// VendorId = 311(Microsoft),
|
| 77 |
+
// EapTypeId = (decimal 40)
|
| 78 |
+
// HKLM\System\CCS\Services\Eaphost\Methods\311\254\311\40
|
| 79 |
+
//
|
| 80 |
+
// PeerDllPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll
|
| 81 |
+
// PeerConfigUIPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll
|
| 82 |
+
// PeerInteractiveUIPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll
|
| 83 |
+
// PeerIdentityPath (REG_EXPAND_SZ) %SystemRoot%\system32\sample.dll
|
| 84 |
+
// PeerFriendlyName (REG_SZ) Sample EAP Protocol
|
| 85 |
+
// PeerRequireConfigUI (REG_DWORD) 1
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
#define EAP_REGISTRY_LOCATION \
|
| 89 |
+
TEXT("System\\CurrentControlSet\\Services\\EapHost\\Methods")
|
| 90 |
+
|
| 91 |
+
#define EAP_PEER_VALUENAME_DLL_PATH TEXT("PeerDllPath")
|
| 92 |
+
#define EAP_PEER_VALUENAME_FRIENDLY_NAME TEXT("PeerFriendlyName")
|
| 93 |
+
#define EAP_PEER_VALUENAME_CONFIGUI TEXT("PeerConfigUIPath")
|
| 94 |
+
#define EAP_PEER_VALUENAME_REQUIRE_CONFIGUI TEXT("PeerRequireConfigUI")
|
| 95 |
+
#define EAP_PEER_VALUENAME_IDENTITY TEXT("PeerIdentityPath")
|
| 96 |
+
#define EAP_PEER_VALUENAME_INTERACTIVEUI TEXT("PeerInteractiveUIPath")
|
| 97 |
+
#define EAP_PEER_VALUENAME_INVOKE_NAMEDLG TEXT("PeerInvokeUsernameDialog")
|
| 98 |
+
#define EAP_PEER_VALUENAME_INVOKE_PWDDLG TEXT("PeerInvokePasswordDialog")
|
| 99 |
+
#define EAP_PEER_VALUENAME_PROPERTIES TEXT("Properties")
|
| 100 |
+
|
| 101 |
+
// This structure is used in EapPeerGetResult API to convey the authentication result and pass
|
| 102 |
+
// additional information to the EapHost and Supplicant.
|
| 103 |
+
typedef struct tagEapPeerMethodResult
|
| 104 |
+
{
|
| 105 |
+
BOOL fIsSuccess;
|
| 106 |
+
DWORD dwFailureReasonCode;
|
| 107 |
+
BOOL fSaveConnectionData;
|
| 108 |
+
DWORD dwSizeofConnectionData;
|
| 109 |
+
_Field_size_bytes_(dwSizeofConnectionData) BYTE* pConnectionData;
|
| 110 |
+
BOOL fSaveUserData;
|
| 111 |
+
DWORD dwSizeofUserData;
|
| 112 |
+
_Field_size_bytes_(dwSizeofUserData) BYTE* pUserData;
|
| 113 |
+
EAP_ATTRIBUTES* pAttribArray;
|
| 114 |
+
EAP_ERROR* pEapError;
|
| 115 |
+
NgcTicketContext* pNgcKerbTicket;
|
| 116 |
+
BOOL fSaveToCredMan;
|
| 117 |
+
} EapPeerMethodResult;
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
// List of functions corresponding to the particular EAP method
|
| 122 |
+
typedef struct _EAP_PEER_METHOD_ROUTINES
|
| 123 |
+
{
|
| 124 |
+
DWORD dwVersion;
|
| 125 |
+
EAP_TYPE* pEapType;
|
| 126 |
+
|
| 127 |
+
DWORD (APIENTRY * EapPeerInitialize) (EAP_ERROR** ppEapError);
|
| 128 |
+
|
| 129 |
+
DWORD (APIENTRY * EapPeerGetIdentity) (
|
| 130 |
+
IN DWORD flags,
|
| 131 |
+
IN DWORD dwSizeofConnectionData,
|
| 132 |
+
IN const BYTE* pConnectionData,
|
| 133 |
+
IN DWORD dwSizeofUserData,
|
| 134 |
+
IN const BYTE* pUserData,
|
| 135 |
+
IN HANDLE hTokenImpersonateUser,
|
| 136 |
+
OUT BOOL* pfInvokeUI,
|
| 137 |
+
IN OUT DWORD* pdwSizeOfUserDataOut,
|
| 138 |
+
OUT BYTE** ppUserDataOut,
|
| 139 |
+
OUT WCHAR** ppwszIdentity,
|
| 140 |
+
OUT EAP_ERROR** ppEapError
|
| 141 |
+
);
|
| 142 |
+
|
| 143 |
+
DWORD (APIENTRY * EapPeerBeginSession) (
|
| 144 |
+
IN DWORD dwFlags,
|
| 145 |
+
IN const EapAttributes* const pAttributeArray,
|
| 146 |
+
IN HANDLE hTokenImpersonateUser,
|
| 147 |
+
IN DWORD dwSizeofConnectionData,
|
| 148 |
+
IN BYTE* pConnectionData,
|
| 149 |
+
IN DWORD dwSizeofUserData,
|
| 150 |
+
IN BYTE* pUserData,
|
| 151 |
+
IN DWORD dwMaxSendPacketSize,
|
| 152 |
+
OUT EAP_SESSION_HANDLE* pSessionHandle,
|
| 153 |
+
OUT EAP_ERROR** ppEapError
|
| 154 |
+
);
|
| 155 |
+
|
| 156 |
+
DWORD (APIENTRY * EapPeerSetCredentials) (
|
| 157 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 158 |
+
IN WCHAR* pwszIdentity,
|
| 159 |
+
IN WCHAR* pwszPassword,
|
| 160 |
+
OUT EAP_ERROR** ppEapError
|
| 161 |
+
);
|
| 162 |
+
DWORD (APIENTRY * EapPeerProcessRequestPacket) (
|
| 163 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 164 |
+
IN DWORD cbReceivePacket,
|
| 165 |
+
IN EapPacket* pReceivePacket,
|
| 166 |
+
OUT EapPeerMethodOutput* pEapOutput,
|
| 167 |
+
OUT EAP_ERROR** ppEapError
|
| 168 |
+
);
|
| 169 |
+
|
| 170 |
+
DWORD (APIENTRY * EapPeerGetResponsePacket) (
|
| 171 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 172 |
+
IN OUT DWORD* pcbSendPacket,
|
| 173 |
+
OUT EapPacket* pSendPacket,
|
| 174 |
+
OUT EAP_ERROR** ppEapError
|
| 175 |
+
);
|
| 176 |
+
|
| 177 |
+
DWORD (APIENTRY * EapPeerGetResult) (
|
| 178 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 179 |
+
IN EapPeerMethodResultReason reason,
|
| 180 |
+
OUT EapPeerMethodResult* ppResult,
|
| 181 |
+
OUT EAP_ERROR** ppEapError
|
| 182 |
+
);
|
| 183 |
+
|
| 184 |
+
DWORD (APIENTRY * EapPeerGetUIContext) (
|
| 185 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 186 |
+
OUT DWORD* dwSizeOfUIContextData,
|
| 187 |
+
OUT BYTE** pUIContextData,
|
| 188 |
+
OUT EAP_ERROR** ppEapError
|
| 189 |
+
);
|
| 190 |
+
|
| 191 |
+
DWORD (APIENTRY * EapPeerSetUIContext) (
|
| 192 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 193 |
+
IN DWORD dwSizeOfUIContextData,
|
| 194 |
+
IN const BYTE* pUIContextData,
|
| 195 |
+
OUT EapPeerMethodOutput* pEapOutput,
|
| 196 |
+
OUT EAP_ERROR** ppEapError
|
| 197 |
+
);
|
| 198 |
+
|
| 199 |
+
DWORD (APIENTRY * EapPeerGetResponseAttributes) (
|
| 200 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 201 |
+
OUT EapAttributes* pAttribs,
|
| 202 |
+
OUT EAP_ERROR** ppEapError
|
| 203 |
+
);
|
| 204 |
+
|
| 205 |
+
DWORD (APIENTRY * EapPeerSetResponseAttributes) (
|
| 206 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 207 |
+
IN EapAttributes* pAttribs,
|
| 208 |
+
OUT EapPeerMethodOutput* pEapOutput,
|
| 209 |
+
OUT EAP_ERROR** ppEapError
|
| 210 |
+
);
|
| 211 |
+
|
| 212 |
+
DWORD (APIENTRY * EapPeerEndSession) (
|
| 213 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 214 |
+
OUT EAP_ERROR** ppEapError
|
| 215 |
+
);
|
| 216 |
+
|
| 217 |
+
DWORD (APIENTRY * EapPeerShutdown) (OUT EAP_ERROR** ppEapError);
|
| 218 |
+
} EAP_PEER_METHOD_ROUTINES;
|
| 219 |
+
|
| 220 |
+
|
| 221 |
+
|
| 222 |
+
//
|
| 223 |
+
// EAP Functions
|
| 224 |
+
//
|
| 225 |
+
|
| 226 |
+
// General comment regarding all APIs defined in this file:
|
| 227 |
+
//
|
| 228 |
+
// If the function succeeds, it returns ERROR_SUCCESS. Otherwise, it is
|
| 229 |
+
// considered failure.
|
| 230 |
+
//
|
| 231 |
+
// If an error code is returned, the out parameter ppEapError will contain
|
| 232 |
+
// related error information. The caller is expected to look into it to
|
| 233 |
+
// find out the error informations.
|
| 234 |
+
// However, there are some situation that it may not be possible to fill
|
| 235 |
+
// out information for ppEapError. For example, in out of memory situation,
|
| 236 |
+
// the method implementation may not be able to allocate memory for
|
| 237 |
+
// ppEapError as well. If for any reason it is not possible to fill ppEapError,
|
| 238 |
+
// *ppEapError should be set to NULL.
|
| 239 |
+
|
| 240 |
+
|
| 241 |
+
// This function should be an exported function from the DLL
|
| 242 |
+
//
|
| 243 |
+
// If any other APIs in this file returns EAP_ERROR, use this
|
| 244 |
+
// function to free the memory allocated for it
|
| 245 |
+
VOID WINAPI EapPeerFreeErrorMemory(_In_ EAP_ERROR* pEapError);
|
| 246 |
+
|
| 247 |
+
|
| 248 |
+
// This function should be an exported function from the DLL
|
| 249 |
+
//
|
| 250 |
+
// Returns information related to a given EAP type.
|
| 251 |
+
// Parameters:
|
| 252 |
+
// - pEapType:
|
| 253 |
+
// the EAP type for this EAP method. Implementation should check this input
|
| 254 |
+
// to make sure that it is the same as the method being implemented.
|
| 255 |
+
//
|
| 256 |
+
// - pEapInfo:
|
| 257 |
+
// returns all the information related for pEapType.
|
| 258 |
+
DWORD WINAPI EapPeerGetInfo(
|
| 259 |
+
_In_ EAP_TYPE* pEapType,
|
| 260 |
+
_Out_ EAP_PEER_METHOD_ROUTINES* pEapInfo,
|
| 261 |
+
_Out_opt_ EAP_ERROR** ppEapError
|
| 262 |
+
);
|
| 263 |
+
|
| 264 |
+
|
| 265 |
+
// This is the first function that EAPHost should call on this method.
|
| 266 |
+
// The only exception is EapPeerFreeErrorMemory() and EapPeerGetInfo(),
|
| 267 |
+
// which can be called at any time.
|
| 268 |
+
// This function should be called only once and it should initialize
|
| 269 |
+
// everything needed for this method work properly.
|
| 270 |
+
DWORD WINAPI EapPeerInitialize(OUT EAP_ERROR** ppEapError);
|
| 271 |
+
|
| 272 |
+
|
| 273 |
+
// EAPHost will call this function, and it would return user data
|
| 274 |
+
// and user identity.
|
| 275 |
+
// Parameters:
|
| 276 |
+
// - dwFlags:
|
| 277 |
+
// EAP_FLAG_xxx defined in eaptypes.w
|
| 278 |
+
//
|
| 279 |
+
// - dwSizeofConnectionData:
|
| 280 |
+
// size of the buffer (pConnectionData) in bytes
|
| 281 |
+
//
|
| 282 |
+
// - pConnectionData:
|
| 283 |
+
// connection data specific to this method. It will be used to decide
|
| 284 |
+
// the user data returned from this API, when the user data depends on
|
| 285 |
+
// certain connection data configuration. The method implementation should
|
| 286 |
+
// have default values for connection data, and when this parameter
|
| 287 |
+
// is NULL, the default connection data should be used.
|
| 288 |
+
//
|
| 289 |
+
// - dwSizeofUserData:
|
| 290 |
+
// size of the buffer (pUserData) in bytes.
|
| 291 |
+
//
|
| 292 |
+
// - pUserData:
|
| 293 |
+
// the user data specific to this authentication. It will be used to
|
| 294 |
+
// pre-populate the user data.
|
| 295 |
+
// When this API is called for the first time, or when it needs to start
|
| 296 |
+
// a fresh authentication sessin, this parameter will be NULL.
|
| 297 |
+
// When it is not NULL, its content should be the user data returned
|
| 298 |
+
// from EapPeerGetResult() (*ppResult)->pUserData from previous successful
|
| 299 |
+
// authentication session, if that session indicated that user data should be
|
| 300 |
+
// saved.
|
| 301 |
+
//
|
| 302 |
+
// - pfInvokeUI:
|
| 303 |
+
// should return true if the user identity and user data blob can not be
|
| 304 |
+
// returned successfully and the method decides that it has to collect the
|
| 305 |
+
// information from the user through UI.
|
| 306 |
+
//
|
| 307 |
+
// - pdwSizeOfUserDataOut:
|
| 308 |
+
// *pdwSizeOfUserDataOut is the size of buffer *ppUserDataOut
|
| 309 |
+
//
|
| 310 |
+
// - ppUserDataOut:
|
| 311 |
+
// returned user data. The data will be passed to EapPeerBeginSession()
|
| 312 |
+
// as input pUserData
|
| 313 |
+
//
|
| 314 |
+
// - ppwszIdentity:
|
| 315 |
+
// returned user identity. It will be included in the identity response packet
|
| 316 |
+
// and returned to the server.
|
| 317 |
+
DWORD WINAPI EapPeerGetIdentity (
|
| 318 |
+
IN DWORD dwFlags,
|
| 319 |
+
IN DWORD dwSizeofConnectionData,
|
| 320 |
+
IN const BYTE* pConnectionData,
|
| 321 |
+
IN DWORD dwSizeofUserData,
|
| 322 |
+
IN const BYTE* pUserData,
|
| 323 |
+
IN HANDLE hTokenImpersonateUser,
|
| 324 |
+
OUT BOOL* pfInvokeUI,
|
| 325 |
+
IN OUT DWORD* pdwSizeOfUserDataOut,
|
| 326 |
+
OUT BYTE** ppUserDataOut,
|
| 327 |
+
OUT _Out_ LPWSTR* ppwszIdentity,
|
| 328 |
+
OUT EAP_ERROR** ppEapError
|
| 329 |
+
);
|
| 330 |
+
|
| 331 |
+
|
| 332 |
+
// Start an authentication session.
|
| 333 |
+
// Parameters:
|
| 334 |
+
// - dwFlags:
|
| 335 |
+
// EAP_FLAG_xxx defined in eaptypes.w
|
| 336 |
+
//
|
| 337 |
+
// - pAttributeArray:
|
| 338 |
+
// attributes passed to the method.
|
| 339 |
+
//
|
| 340 |
+
// - hTokenImpersonateUser:
|
| 341 |
+
// Impersonation token for the user to be authenticated.
|
| 342 |
+
//
|
| 343 |
+
// - dwSizeofConnectionData:
|
| 344 |
+
// size of the buffer (pConnectionData) in bytes
|
| 345 |
+
//
|
| 346 |
+
// - pConnectionData:
|
| 347 |
+
// See the comment for pConnectionData for EapPeerGetIdentity()
|
| 348 |
+
//
|
| 349 |
+
// - dwSizeofUserData:
|
| 350 |
+
// size of the buffer (pUserData) in bytes
|
| 351 |
+
//
|
| 352 |
+
// - pUserData:
|
| 353 |
+
// user data returned from EapPeerGetIdentity()
|
| 354 |
+
//
|
| 355 |
+
// - dwMaxSendPacketSize:
|
| 356 |
+
// maximum packet size that the method can send. If the method needs to
|
| 357 |
+
// send a message larger than this size, the method has to handle fragmentation
|
| 358 |
+
// and resembling.
|
| 359 |
+
//
|
| 360 |
+
// - pSessionHandle:
|
| 361 |
+
// This is an "identifier" of the authentication session.
|
| 362 |
+
// When other EapPeerXxxx() functions with a sessionHandle parameter
|
| 363 |
+
// being called, *pSessionHandle will be passed as the session handle.
|
| 364 |
+
// The method should be able to use this to find the information related
|
| 365 |
+
// the authentication session.
|
| 366 |
+
DWORD WINAPI EapPeerBeginSession(
|
| 367 |
+
IN DWORD dwFlags,
|
| 368 |
+
IN const EapAttributes* const pAttributeArray,
|
| 369 |
+
IN HANDLE hTokenImpersonateUser,
|
| 370 |
+
IN DWORD dwSizeofConnectionData,
|
| 371 |
+
IN BYTE* pConnectionData,
|
| 372 |
+
IN DWORD dwSizeofUserData,
|
| 373 |
+
IN BYTE* pUserData,
|
| 374 |
+
IN DWORD dwMaxSendPacketSize,
|
| 375 |
+
OUT EAP_SESSION_HANDLE* pSessionHandle,
|
| 376 |
+
OUT EAP_ERROR** ppEapError
|
| 377 |
+
);
|
| 378 |
+
|
| 379 |
+
|
| 380 |
+
// A method exports either EapPeerGetIdentity (and EapPeerInvokeIdentityUI) or
|
| 381 |
+
// exports EapPeerSetCredentials (and sets the InvokeUserNameDlg regkey). The
|
| 382 |
+
// registry key controls which of the two apis will get called.
|
| 383 |
+
DWORD WINAPI EapPeerSetCredentials(
|
| 384 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 385 |
+
IN _In_ LPWSTR pwszIdentity,
|
| 386 |
+
IN _In_ LPWSTR pwszPassword,
|
| 387 |
+
OUT EAP_ERROR** ppEapError
|
| 388 |
+
);
|
| 389 |
+
|
| 390 |
+
|
| 391 |
+
// EAPHost will pass the packet to the method for processing.
|
| 392 |
+
// Parameters:
|
| 393 |
+
// - sessionHandle:
|
| 394 |
+
// the value returned through *pSessionHandle from EapPeerBeginSession()
|
| 395 |
+
//
|
| 396 |
+
// - cbRecevedPacket:
|
| 397 |
+
// buffer size of (pReceivePacket) in bytes
|
| 398 |
+
//
|
| 399 |
+
// - pReceivedPacket:
|
| 400 |
+
// pointer to received packet
|
| 401 |
+
//
|
| 402 |
+
// - pEapOutput:
|
| 403 |
+
// the method should fill this struct to tell the supplicant what to do.
|
| 404 |
+
DWORD WINAPI EapPeerProcessRequestPacket(
|
| 405 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 406 |
+
IN DWORD cbReceivedPacket,
|
| 407 |
+
IN EapPacket* pReceivedPacket,
|
| 408 |
+
OUT EapPeerMethodOutput* pEapOutput,
|
| 409 |
+
OUT EAP_ERROR** ppEapError
|
| 410 |
+
);
|
| 411 |
+
|
| 412 |
+
|
| 413 |
+
// This function returns the packet to be sent to the server.
|
| 414 |
+
// Parameters:
|
| 415 |
+
// - sessionHandle:
|
| 416 |
+
// the value returned through *pSessionHandle from EapPeerBeginSession()
|
| 417 |
+
//
|
| 418 |
+
// - pcbSendPacket:
|
| 419 |
+
// *pcbSendPacket is the size of the buffer for (pSendPacket) when passed in.
|
| 420 |
+
// Upon return, *pcbSendPacket is the sizeof the actual content in pSendPacket
|
| 421 |
+
//
|
| 422 |
+
// - pSendPacket:
|
| 423 |
+
// pointer to a buffer that contains the packet to send upon return
|
| 424 |
+
DWORD WINAPI EapPeerGetResponsePacket(
|
| 425 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 426 |
+
IN OUT DWORD* pcbSendPacket,
|
| 427 |
+
OUT EapPacket* pSendPacket,
|
| 428 |
+
OUT EAP_ERROR** ppEapError
|
| 429 |
+
);
|
| 430 |
+
|
| 431 |
+
|
| 432 |
+
// This will get called either when a method says that it has completed auth.
|
| 433 |
+
// or when the lower layer receives an alternative result.
|
| 434 |
+
// parameters:
|
| 435 |
+
// - sessionHandle:
|
| 436 |
+
// the value returned through *pSessionHandle from EapPeerBeginSession()
|
| 437 |
+
//
|
| 438 |
+
// - reason:
|
| 439 |
+
// one of the reason enum defined above in this file.
|
| 440 |
+
//
|
| 441 |
+
// - ppResult:
|
| 442 |
+
// Method should fill this struct with related information as defined
|
| 443 |
+
// by EapPeerMethodResult
|
| 444 |
+
DWORD WINAPI EapPeerGetResult(
|
| 445 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 446 |
+
IN EapPeerMethodResultReason reason,
|
| 447 |
+
OUT EapPeerMethodResult* ppResult,
|
| 448 |
+
OUT EAP_ERROR** ppEapError
|
| 449 |
+
);
|
| 450 |
+
|
| 451 |
+
// This will get called if UI should be raised during authentication session.
|
| 452 |
+
// This function will always be followed by EapPeerInvokeInteractiveUI() and
|
| 453 |
+
// then followed by EapPeerSetUIContext()
|
| 454 |
+
// parameters:
|
| 455 |
+
// - sessionHandle:
|
| 456 |
+
// the value returned through *pSessionHandle from EapPeerBeginSession()
|
| 457 |
+
//
|
| 458 |
+
// - pdwSizeOfUIContextData:
|
| 459 |
+
// *pdwSizeOfUIContextData is the size of *ppUIContextData in bytes.
|
| 460 |
+
//
|
| 461 |
+
// - ppUIContextData:
|
| 462 |
+
// It will be passed to EapPeerInvokeInteractiveUI() as IN parameter
|
| 463 |
+
// pUIContextData
|
| 464 |
+
DWORD WINAPI EapPeerGetUIContext(
|
| 465 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 466 |
+
OUT DWORD* pdwSizeOfUIContextData,
|
| 467 |
+
OUT BYTE** ppUIContextData,
|
| 468 |
+
OUT EAP_ERROR** ppEapError
|
| 469 |
+
);
|
| 470 |
+
|
| 471 |
+
|
| 472 |
+
// It will be called after UI has been raised. Refer to EapPeerGetUIContext()
|
| 473 |
+
// for more information.
|
| 474 |
+
// parameters:
|
| 475 |
+
// - sessionHandle:
|
| 476 |
+
// the value returned through *pSessionHandle from EapPeerBeginSession()
|
| 477 |
+
//
|
| 478 |
+
// - dwSizeOfUIContextData:
|
| 479 |
+
// size of pUIContextData in bytes.
|
| 480 |
+
//
|
| 481 |
+
// - pUIContextData:
|
| 482 |
+
// This is the data returned from EapPeerInvokeInteractiveUI() OUT parameter
|
| 483 |
+
// *ppDataFromInteractiveUI
|
| 484 |
+
//
|
| 485 |
+
// - pEapOutput:
|
| 486 |
+
// the method should fill this struct to tell the supplicant what to do.
|
| 487 |
+
DWORD WINAPI EapPeerSetUIContext(
|
| 488 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 489 |
+
IN DWORD dwSizeOfUIContextData,
|
| 490 |
+
IN const BYTE* pUIContextData,
|
| 491 |
+
OUT EapPeerMethodOutput* pEapOutput,
|
| 492 |
+
OUT EAP_ERROR** ppEapError
|
| 493 |
+
);
|
| 494 |
+
|
| 495 |
+
|
| 496 |
+
// If EAPHost calls any of the EapPeerXxxx() function, and that function has
|
| 497 |
+
// pEapOutput as a OUT parameter, and the action code in it is
|
| 498 |
+
// EapPeerMethodResponseActionRespond, this function will be the next function
|
| 499 |
+
// that EAPHost will call.
|
| 500 |
+
// And it will be follow by a call to EapPeerSetResponseAttributes()
|
| 501 |
+
// parameters:
|
| 502 |
+
// - sessionHandle:
|
| 503 |
+
// the value returned through *pSessionHandle from EapPeerBeginSession()
|
| 504 |
+
//
|
| 505 |
+
// - pAttributes:
|
| 506 |
+
// method should fill this with the attributes it need to return.
|
| 507 |
+
DWORD WINAPI EapPeerGetResponseAttributes(
|
| 508 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 509 |
+
OUT EapAttributes* pAttribs,
|
| 510 |
+
OUT EAP_ERROR** ppEapError
|
| 511 |
+
);
|
| 512 |
+
|
| 513 |
+
|
| 514 |
+
// See EapPeerGetResponseAttributes() for when this function will be called.
|
| 515 |
+
// parameters:
|
| 516 |
+
// - sessionHandle:
|
| 517 |
+
// the value returned through *pSessionHandle from EapPeerBeginSession()
|
| 518 |
+
//
|
| 519 |
+
// - pAttributes:
|
| 520 |
+
// attributes passed to this method.
|
| 521 |
+
//
|
| 522 |
+
// - pEapOutput:
|
| 523 |
+
// the method should fill this struct to tell the supplicant what to do.
|
| 524 |
+
DWORD WINAPI EapPeerSetResponseAttributes(
|
| 525 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 526 |
+
IN EapAttributes* pAttribs,
|
| 527 |
+
OUT EapPeerMethodOutput* pEapOutput,
|
| 528 |
+
OUT EAP_ERROR** ppEapError
|
| 529 |
+
);
|
| 530 |
+
|
| 531 |
+
// The last function that will be called for this authentication session.
|
| 532 |
+
// - sessionHandle:
|
| 533 |
+
// the value returned through *pSessionHandle from EapPeerBeginSession()
|
| 534 |
+
//
|
| 535 |
+
DWORD WINAPI EapPeerEndSession(
|
| 536 |
+
IN EAP_SESSION_HANDLE sessionHandle,
|
| 537 |
+
OUT EAP_ERROR** ppEapError
|
| 538 |
+
);
|
| 539 |
+
|
| 540 |
+
// This is the last function that EAPHost should call on this method.
|
| 541 |
+
// The only exception is EapPeerFreeErrorMemory() and EapPeerGetInfo(),
|
| 542 |
+
// which can be called at any time.
|
| 543 |
+
// This function should be called only once and it should un-initialize
|
| 544 |
+
// everything for this method.
|
| 545 |
+
DWORD WINAPI EapPeerShutdown(OUT EAP_ERROR** ppEapError);
|
| 546 |
+
|
| 547 |
+
|
| 548 |
+
// It should raise a configuration UI so that the user can configure the method
|
| 549 |
+
// parameters:
|
| 550 |
+
// - pEapType:
|
| 551 |
+
// method type for this method
|
| 552 |
+
//
|
| 553 |
+
// - hwndParent:
|
| 554 |
+
// The parent window for the UI to be raised by this function.
|
| 555 |
+
//
|
| 556 |
+
// - dwFlags:
|
| 557 |
+
// EAP_FLAG_xxx defined in eaptypes.w
|
| 558 |
+
//
|
| 559 |
+
// - dwSizeOfConnectionDataIn:
|
| 560 |
+
// size of pConnectionDataIn in bytes
|
| 561 |
+
//
|
| 562 |
+
// - pConnectionDataIn:
|
| 563 |
+
// Used to pre-populate the configuration UI. The first time this function
|
| 564 |
+
// is called, or if it is desired to start from scratch, it will be NULL,
|
| 565 |
+
// otherwise, it will be the data returned from previous
|
| 566 |
+
// EapPeerInvokeConfigUI() ppConnectionDataOut OUT parameter
|
| 567 |
+
//
|
| 568 |
+
// - pdwSizeOfConnectionDataOut:
|
| 569 |
+
// *pdwSizeOfConnectionDataOut is the size of *ppConnectionDataOut
|
| 570 |
+
//
|
| 571 |
+
// - ppConnectionDataOut:
|
| 572 |
+
// *ppConnectionDataOut is configuration data returned from this functioin.
|
| 573 |
+
// It will be used to pass to next EapPeerInvokeConfigUI() call.
|
| 574 |
+
DWORD WINAPI EapPeerInvokeConfigUI(
|
| 575 |
+
IN EAP_METHOD_TYPE* pEapType,
|
| 576 |
+
IN HWND hwndParent,
|
| 577 |
+
IN DWORD dwFlags,
|
| 578 |
+
IN DWORD dwSizeOfConnectionDataIn,
|
| 579 |
+
IN BYTE* pConnectionDataIn,
|
| 580 |
+
OUT DWORD* pdwSizeOfConnectionDataOut,
|
| 581 |
+
OUT BYTE** ppConnectionDataOut,
|
| 582 |
+
OUT EAP_ERROR** ppEapError
|
| 583 |
+
);
|
| 584 |
+
|
| 585 |
+
// This function should raise interactive UI for the Method. What UI to be raised and how to raise
|
| 586 |
+
// is Method specific information that is embedded in pUIContextData.
|
| 587 |
+
//
|
| 588 |
+
// Parameters:
|
| 589 |
+
// - pEapType:
|
| 590 |
+
// method type for this method
|
| 591 |
+
//
|
| 592 |
+
// - hwndParent:
|
| 593 |
+
// The parent window for the UI to be raised by this function.
|
| 594 |
+
//
|
| 595 |
+
// - dwFlags:
|
| 596 |
+
// EAP_FLAG_xxx defined in eaptypes.w
|
| 597 |
+
// - dwSizeofUIContextData:
|
| 598 |
+
// Number of bytes of UIContext data referred by pUIContextData.
|
| 599 |
+
// - pUIContextData:
|
| 600 |
+
// A blob that conveys the state of the authentication and describes what and how to show the UI
|
| 601 |
+
// to the user.
|
| 602 |
+
// - pdwSizeOfDataFromInteractiveUI
|
| 603 |
+
// Number of bytes of blob referred by *ppDataFromInteractiveUI.
|
| 604 |
+
// - ppDataFromInteractiveUI
|
| 605 |
+
// A UI context blob that captures the result of UI interaction
|
| 606 |
+
// - pEapError
|
| 607 |
+
// Pointer to pointer to EAP_ERROR that will be filled by the Method in the case of error. In some cases
|
| 608 |
+
// the structure might not be filled.
|
| 609 |
+
DWORD WINAPI EapPeerInvokeInteractiveUI(
|
| 610 |
+
IN EAP_METHOD_TYPE* pEapType,
|
| 611 |
+
IN HWND hwndParent,
|
| 612 |
+
IN DWORD dwSizeofUIContextData,
|
| 613 |
+
IN BYTE* pUIContextData,
|
| 614 |
+
OUT DWORD* pdwSizeOfDataFromInteractiveUI,
|
| 615 |
+
OUT BYTE** ppDataFromInteractiveUI,
|
| 616 |
+
OUT EAP_ERROR** ppEapError
|
| 617 |
+
);
|
| 618 |
+
|
| 619 |
+
|
| 620 |
+
// This function should raise credential UI for the Method. Method can use the configuration passed in to
|
| 621 |
+
// decide what kind of UI should be shown to the user.
|
| 622 |
+
//
|
| 623 |
+
// Parameters:
|
| 624 |
+
// - pEapType:
|
| 625 |
+
// method type for this method
|
| 626 |
+
//
|
| 627 |
+
// - dwFlags:
|
| 628 |
+
// EAP_FLAG_xxx defined in eaptypes.w
|
| 629 |
+
//
|
| 630 |
+
// - hwndParent:
|
| 631 |
+
// The parent window for the UI to be raised by this function.
|
| 632 |
+
//
|
| 633 |
+
// - dwSizeOfConnectionData:
|
| 634 |
+
// Number of bytes of pConnectionData.
|
| 635 |
+
//
|
| 636 |
+
// - pConnectionData:
|
| 637 |
+
// Configuration blob for the Method.
|
| 638 |
+
//
|
| 639 |
+
// - dwSizeOfUserData
|
| 640 |
+
// Number of bytes of pUserData.
|
| 641 |
+
//
|
| 642 |
+
// - pUserData
|
| 643 |
+
// Cached credential blob. This would be NULL if this is the first time successful authentication is being done.
|
| 644 |
+
//
|
| 645 |
+
// - ppwszIdentity
|
| 646 |
+
// Pointer to unicode string that receives the identity that EapHost should use as part of EAP Identity reponse.
|
| 647 |
+
//
|
| 648 |
+
// - pEapError
|
| 649 |
+
// Pointer to pointer to EAP_ERROR that will be filled by the Method in the case of error. In some cases
|
| 650 |
+
// the structure might not be filled.
|
| 651 |
+
DWORD WINAPI EapPeerInvokeIdentityUI(
|
| 652 |
+
IN EAP_METHOD_TYPE* pEapType,
|
| 653 |
+
IN DWORD dwFlags,
|
| 654 |
+
IN HWND hwndParent,
|
| 655 |
+
IN DWORD dwSizeOfConnectionData,
|
| 656 |
+
IN const BYTE* pConnectionData,
|
| 657 |
+
IN DWORD dwSizeOfUserData,
|
| 658 |
+
IN const BYTE* pUserData,
|
| 659 |
+
OUT DWORD* pdwSizeOfUserDataOut,
|
| 660 |
+
OUT BYTE** ppUserDataOut,
|
| 661 |
+
OUT _Outptr_ LPWSTR* ppwszIdentity,
|
| 662 |
+
OUT EAP_ERROR** ppEapError
|
| 663 |
+
);
|
| 664 |
+
|
| 665 |
+
|
| 666 |
+
// This function returns credential fields to be shown to the user for the authentication. As part of this function
|
| 667 |
+
// Method should not bring up UI instead it should describe what credentials are to be obtained. Based on the
|
| 668 |
+
// return values, Supplicant draws the UI to the user and obtains the requested credentials.
|
| 669 |
+
//
|
| 670 |
+
// Parameters:
|
| 671 |
+
// - hUserImpersonationToken:
|
| 672 |
+
// Impersonation token of the user/machine who is being authenticated.
|
| 673 |
+
//
|
| 674 |
+
// - eapMethodType
|
| 675 |
+
// method type for this method
|
| 676 |
+
//
|
| 677 |
+
// - dwFlags:
|
| 678 |
+
// EAP_FLAG_xxx defined in eaptypes.w
|
| 679 |
+
//
|
| 680 |
+
// - dwEapConnDataSize:
|
| 681 |
+
// Number of bytes of pbEapConnData.
|
| 682 |
+
//
|
| 683 |
+
// - pbEapConnData:
|
| 684 |
+
// Configuration blob for the Method.
|
| 685 |
+
//
|
| 686 |
+
// - dwSizeOfUserData
|
| 687 |
+
// Number of bytes of pUserData.
|
| 688 |
+
//
|
| 689 |
+
// - pEapConfigFieldsArray
|
| 690 |
+
// Pointer to EAP_CONFIG_INPUT_FIELD_ARRAY that receives array of credential fields.
|
| 691 |
+
//
|
| 692 |
+
// - pEapError
|
| 693 |
+
// Pointer to pointer to EAP_ERROR that will be filled by the Method in the case of error. In some cases
|
| 694 |
+
// the structure might not be filled.
|
| 695 |
+
DWORD WINAPI EapPeerQueryCredentialInputFields(
|
| 696 |
+
IN HANDLE hUserImpersonationToken,
|
| 697 |
+
IN EAP_METHOD_TYPE eapMethodType,
|
| 698 |
+
IN DWORD dwFlags,
|
| 699 |
+
IN DWORD dwEapConnDataSize,
|
| 700 |
+
IN _In_reads_(dwEapConnDataSize) BYTE* pbEapConnData,
|
| 701 |
+
OUT EAP_CONFIG_INPUT_FIELD_ARRAY* pEapConfigFieldsArray,
|
| 702 |
+
OUT EAP_ERROR** ppEapError
|
| 703 |
+
);
|
| 704 |
+
|
| 705 |
+
|
| 706 |
+
// This function returns credential blob based on the credentials passed in the credential array structure.
|
| 707 |
+
// Method should not bring up UI. It should convert the credentials in to a blob that could be passed to
|
| 708 |
+
// EapPeerBeginSession.
|
| 709 |
+
//
|
| 710 |
+
// Parameters:
|
| 711 |
+
// - hUserImpersonationToken:
|
| 712 |
+
// Impersonation token of the user/machine who is being authenticated.
|
| 713 |
+
//
|
| 714 |
+
// - eapMethodType
|
| 715 |
+
// method type for this method
|
| 716 |
+
//
|
| 717 |
+
// - dwFlags:
|
| 718 |
+
// EAP_FLAG_xxx defined in eaptypes.w
|
| 719 |
+
//
|
| 720 |
+
// - dwEapConnDataSize:
|
| 721 |
+
// Number of bytes of pbEapConnData.
|
| 722 |
+
//
|
| 723 |
+
// - pbEapConnData:
|
| 724 |
+
// Configuration blob for the Method.
|
| 725 |
+
//
|
| 726 |
+
// - dwSizeOfUserData
|
| 727 |
+
// Number of bytes of pUserData.
|
| 728 |
+
//
|
| 729 |
+
// - pEapConfigFieldsArray
|
| 730 |
+
// Pointer to EAP_CONFIG_INPUT_FIELD_ARRAY that contains array of credential fields filled by supplicant.
|
| 731 |
+
//
|
| 732 |
+
// - pdwUserBlobSize:
|
| 733 |
+
// Pointer to DWORD that receives the size of the ppbUserBlob.
|
| 734 |
+
//
|
| 735 |
+
// - ppbUserBlob
|
| 736 |
+
// Pointer to buffer that receives credential blob.
|
| 737 |
+
//
|
| 738 |
+
// - pEapError
|
| 739 |
+
// Pointer to pointer to EAP_ERROR that will be filled by the Method in the case of error. In some cases
|
| 740 |
+
// the structure might not be filled.
|
| 741 |
+
DWORD WINAPI EapPeerQueryUserBlobFromCredentialInputFields(
|
| 742 |
+
IN HANDLE hUserImpersonationToken,
|
| 743 |
+
IN EAP_METHOD_TYPE eapMethodType,
|
| 744 |
+
IN DWORD dwFlags,
|
| 745 |
+
IN DWORD dwEapConnDataSize,
|
| 746 |
+
IN _In_reads_(dwEapConnDataSize) BYTE* pbEapConnData,
|
| 747 |
+
IN const EAP_CONFIG_INPUT_FIELD_ARRAY *pEapConfigInputFieldArray,
|
| 748 |
+
// pointer to DWORD that receives size of credential blob, if EAPHost passes in
|
| 749 |
+
// non-zero size and non-NULL data below, EAP-method will just attempt to Update
|
| 750 |
+
// the blob with passed in values (if supported) instead of creating a new one. EAP-method
|
| 751 |
+
// is not expected to release the passed in buffer, EAPHost will release it after API completion..
|
| 752 |
+
IN OUT DWORD *pdwUserBlobSize,
|
| 753 |
+
IN OUT _Outptr_result_buffer_(*pdwUserBlobSize) BYTE **ppbUserBlob,
|
| 754 |
+
OUT EAP_ERROR** ppEapError
|
| 755 |
+
);
|
| 756 |
+
|
| 757 |
+
// This function returns fields to be displayed during interactive time when alternative UI is used.
|
| 758 |
+
// Method should not bring up UI in this function.
|
| 759 |
+
//
|
| 760 |
+
DWORD WINAPI EapPeerQueryInteractiveUIInputFields(
|
| 761 |
+
// API's version number for ease of interoperability. It must be 0.
|
| 762 |
+
IN DWORD dwVersion,
|
| 763 |
+
// control the behavior of the EAP Methods
|
| 764 |
+
IN DWORD dwFlags,
|
| 765 |
+
// size of UIcontext data EAPHost runtime
|
| 766 |
+
IN DWORD dwSizeofUIContextData,
|
| 767 |
+
// UIContext data received from EAPHost runtime
|
| 768 |
+
IN _In_reads_(dwSizeofUIContextData) const BYTE* pUIContextData,
|
| 769 |
+
//structure that gets filled with fields and how they should be shown to the user.
|
| 770 |
+
// Caller (EapHost) should free the memory using EapPeerFreeMemory.
|
| 771 |
+
OUT EAP_INTERACTIVE_UI_DATA* pEapInteractiveUIData,
|
| 772 |
+
// In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapPeerFreeErrorMemory
|
| 773 |
+
OUT EAP_ERROR** ppEapError,
|
| 774 |
+
// Reserved for future usage. It must be NULL.
|
| 775 |
+
IN OUT LPVOID *ppvReserved
|
| 776 |
+
);
|
| 777 |
+
|
| 778 |
+
// This function returns interactive UI blob from the UI fields filled by the user
|
| 779 |
+
//
|
| 780 |
+
DWORD WINAPI EapPeerQueryUIBlobFromInteractiveUIInputFields(
|
| 781 |
+
// API's version number for ease of interoperability. It must be 0.
|
| 782 |
+
IN DWORD dwVersion,
|
| 783 |
+
// control the behavior of the EAP Methods
|
| 784 |
+
IN DWORD dwFlags,
|
| 785 |
+
// size of UIcontext data EAPHost runtime
|
| 786 |
+
IN DWORD dwSizeofUIContextData,
|
| 787 |
+
// UIContext data received from EAPHost runtime
|
| 788 |
+
IN _In_reads_(dwSizeofUIContextData) const BYTE* pUIContextData,
|
| 789 |
+
// structure that carries data provided by user
|
| 790 |
+
IN const EAP_INTERACTIVE_UI_DATA *pEapInteractiveUIData,
|
| 791 |
+
// pointer to DWORD that receives size of credential blob
|
| 792 |
+
OUT DWORD * pdwSizeOfDataFromInteractiveUI,
|
| 793 |
+
// Pointer that receives the credential blob that can be used in authentication.
|
| 794 |
+
// Caller (EapHost) should free the memory using EapPeerFreeMemory.
|
| 795 |
+
OUT _Outptr_result_buffer_(*pdwSizeOfDataFromInteractiveUI) BYTE ** ppDataFromInteractiveUI,
|
| 796 |
+
// In case of error, API fills ppEapError if possible. Caller should free ppEapError using EapPeerFreeErrorMemory
|
| 797 |
+
OUT EAP_ERROR** ppEapError,
|
| 798 |
+
// Reserved for future usage. It must be NULL.
|
| 799 |
+
IN OUT LPVOID *ppvReserved
|
| 800 |
+
);
|
| 801 |
+
|
| 802 |
+
|
| 803 |
+
// This function converts XML document containing configuration information into a blob that could be passed to other
|
| 804 |
+
// APIs that expect configuration blob.
|
| 805 |
+
//
|
| 806 |
+
// Parameters:
|
| 807 |
+
// - dwFlags:
|
| 808 |
+
// EAP_FLAG_xxx defined in eaptypes.w
|
| 809 |
+
//
|
| 810 |
+
// - eapMethodType
|
| 811 |
+
// method type for this method
|
| 812 |
+
//
|
| 813 |
+
// - dwEapConnDataSize:
|
| 814 |
+
// Number of bytes of pbEapConnData.
|
| 815 |
+
//
|
| 816 |
+
// - pConfigDoc:
|
| 817 |
+
// Pointer to XMLDOMDocument2 that refers to the XML document containg the configuration XML
|
| 818 |
+
//
|
| 819 |
+
// - ppConfigOut
|
| 820 |
+
// Pointer to buffer that receives configuration blob.
|
| 821 |
+
//
|
| 822 |
+
// - pdwSizeOfConfigOut
|
| 823 |
+
// Pointer to DWORD that receives size of ppConfigOut.
|
| 824 |
+
//
|
| 825 |
+
// - pEapError
|
| 826 |
+
// Pointer to pointer to EAP_ERROR that will be filled by the Method in the case of error. In some cases
|
| 827 |
+
// the structure might not be filled.
|
| 828 |
+
DWORD WINAPI EapPeerConfigXml2Blob(
|
| 829 |
+
IN DWORD dwFlags,
|
| 830 |
+
IN EAP_METHOD_TYPE eapMethodType,
|
| 831 |
+
IN IXMLDOMDocument2* pConfigDoc,
|
| 832 |
+
OUT _Out_writes_(*pdwSizeOfConfigOut) BYTE** ppConfigOut,
|
| 833 |
+
OUT DWORD* pdwSizeOfConfigOut,
|
| 834 |
+
OUT EAP_ERROR** ppEapError
|
| 835 |
+
);
|
| 836 |
+
|
| 837 |
+
|
| 838 |
+
// This function converts XML document containing credential information into a blob that could be passed to other
|
| 839 |
+
// APIs that expect credential blob.
|
| 840 |
+
//
|
| 841 |
+
// Parameters:
|
| 842 |
+
// - dwFlags:
|
| 843 |
+
// EAP_FLAG_xxx defined in eaptypes.w
|
| 844 |
+
//
|
| 845 |
+
// - eapMethodType
|
| 846 |
+
// method type for this method
|
| 847 |
+
//
|
| 848 |
+
// - pCredentialsDoc:
|
| 849 |
+
// Pointer to XMLDOMDocument2 that refers to the XML document containg the credential XML
|
| 850 |
+
//
|
| 851 |
+
// - pConfigIn
|
| 852 |
+
// Pointer to buffer that contains configuration blob.
|
| 853 |
+
//
|
| 854 |
+
// - dwSizeOfConfigIn
|
| 855 |
+
// Size of pConfigIn
|
| 856 |
+
//
|
| 857 |
+
// - ppCredentialsOut
|
| 858 |
+
// Pointer to buffer that receives the credential blob
|
| 859 |
+
//
|
| 860 |
+
// - pdwSizeOfCredentialsOut
|
| 861 |
+
// Pointer to DWORD that receives size of ppCredentialsOut
|
| 862 |
+
//
|
| 863 |
+
// - pEapError
|
| 864 |
+
// Pointer to pointer to EAP_ERROR that will be filled by the Method in the case of error. In some cases
|
| 865 |
+
// the structure might not be filled.
|
| 866 |
+
DWORD WINAPI EapPeerCredentialsXml2Blob(
|
| 867 |
+
IN DWORD dwFlags,
|
| 868 |
+
IN EAP_METHOD_TYPE eapMethodType,
|
| 869 |
+
IN IXMLDOMDocument2* pCredentialsDoc,
|
| 870 |
+
IN _In_reads_(dwSizeOfConfigIn) const BYTE* pConfigIn,
|
| 871 |
+
IN DWORD dwSizeOfConfigIn,
|
| 872 |
+
OUT _Out_writes_(*pdwSizeOfCredentialsOut) BYTE** ppCredentialsOut,
|
| 873 |
+
OUT DWORD* pdwSizeOfCredentialsOut,
|
| 874 |
+
OUT EAP_ERROR** ppEapError
|
| 875 |
+
);
|
| 876 |
+
|
| 877 |
+
|
| 878 |
+
// This function converts configuration blob into configuration XML document. Methods exporting this API
|
| 879 |
+
// will be supporting exporting of and importing of configuration with out problem. It also helps administrators
|
| 880 |
+
// modify the configuration.
|
| 881 |
+
//
|
| 882 |
+
// Parameters:
|
| 883 |
+
// - dwFlags:
|
| 884 |
+
// EAP_FLAG_xxx defined in eaptypes.w
|
| 885 |
+
//
|
| 886 |
+
// - eapMethodType
|
| 887 |
+
// method type for this method
|
| 888 |
+
//
|
| 889 |
+
// - pConfigIn:
|
| 890 |
+
// Configuration blob
|
| 891 |
+
//
|
| 892 |
+
// - dwSizeOfConfigIn
|
| 893 |
+
// Size of pConfigIn
|
| 894 |
+
//
|
| 895 |
+
// - ppConfigDoc
|
| 896 |
+
// Pointer to IXMLDOMDocument2 that receives configuration XML for the given configuration blob.
|
| 897 |
+
//
|
| 898 |
+
// - pEapError
|
| 899 |
+
// Pointer to pointer to EAP_ERROR that will be filled by the Method in the case of error. In some cases
|
| 900 |
+
// the structure might not be filled.
|
| 901 |
+
DWORD WINAPI EapPeerConfigBlob2Xml(
|
| 902 |
+
IN DWORD dwFlags,
|
| 903 |
+
IN EAP_METHOD_TYPE eapMethodType,
|
| 904 |
+
IN _In_reads_(dwSizeOfConfigIn) const BYTE* pConfigIn,
|
| 905 |
+
IN DWORD dwSizeOfConfigIn,
|
| 906 |
+
OUT IXMLDOMDocument2** ppConfigDoc,
|
| 907 |
+
OUT EAP_ERROR** ppEapError
|
| 908 |
+
);
|
| 909 |
+
|
| 910 |
+
|
| 911 |
+
// This function retrieves the method properties for a specific configuration data. The method properties
|
| 912 |
+
// returned by the API will be a subset of the properties value in the registry.
|
| 913 |
+
//
|
| 914 |
+
// Parameters:
|
| 915 |
+
// - dwVersion:
|
| 916 |
+
// The version number of the API.
|
| 917 |
+
//
|
| 918 |
+
// - dwFlags
|
| 919 |
+
// A combination of EAP flags that describe the EAP authentication session behavior.
|
| 920 |
+
//
|
| 921 |
+
// - hUserImpersonationToken
|
| 922 |
+
// An impersonation token for the user whose credentials are to be requested and obtained.
|
| 923 |
+
//
|
| 924 |
+
// - eapMethodType
|
| 925 |
+
// An EAP_METHOD_TYPE structure that contains vendor and author information about the
|
| 926 |
+
// EAP method used for authenticating the connection.
|
| 927 |
+
//
|
| 928 |
+
// - dwSizeOfConnectionDataIn
|
| 929 |
+
// The size, in bytes, of the connection data buffer provided in pConnectionDataIn
|
| 930 |
+
//
|
| 931 |
+
// - pConnectionDataIn
|
| 932 |
+
// Connection data used for the EAP method
|
| 933 |
+
//
|
| 934 |
+
// - dwSizeOfUserDataIn
|
| 935 |
+
// The size in bytes of the user data buffer provided in pUserDataIn
|
| 936 |
+
//
|
| 937 |
+
// - pUserDataIn
|
| 938 |
+
// A pointer to a byte buffer that contains the opaque user data BLOB
|
| 939 |
+
//
|
| 940 |
+
// - pMethodPropertyArray
|
| 941 |
+
// A pointer to the method properties array.
|
| 942 |
+
//
|
| 943 |
+
// - ppEapError
|
| 944 |
+
// A pointer to a pointer to an EAP_ERROR structure that contains any errors raised by
|
| 945 |
+
// EAPHost during the execution of this function call.
|
| 946 |
+
DWORD WINAPI EapPeerGetMethodProperties(
|
| 947 |
+
_In_ DWORD dwVersion,
|
| 948 |
+
_In_ DWORD dwFlags,
|
| 949 |
+
_In_ EAP_METHOD_TYPE eapMethodType,
|
| 950 |
+
_In_ HANDLE hUserImpersonationToken,
|
| 951 |
+
_In_ DWORD dwSizeOfConnectionDataIn,
|
| 952 |
+
_In_ BYTE* pConnectionDataIn,
|
| 953 |
+
_In_ DWORD dwSizeOfUserDataIn,
|
| 954 |
+
_In_ BYTE* pUserDataIn,
|
| 955 |
+
_Out_ EAP_METHOD_PROPERTY_ARRAY* pMethodPropertyArray,
|
| 956 |
+
_Out_ EAP_ERROR** ppEapError
|
| 957 |
+
);
|
| 958 |
+
|
| 959 |
+
|
| 960 |
+
// This function allows the EAP method developers to provide the various
|
| 961 |
+
// connection properties and user properties supported by the method. EAPHost
|
| 962 |
+
// will invoke this function to create the connection property and user
|
| 963 |
+
// property of the EAP method.
|
| 964 |
+
//
|
| 965 |
+
// Parameters:
|
| 966 |
+
// - dwFlags
|
| 967 |
+
// A combination of EAP flags that describe the EAP authentication session
|
| 968 |
+
// behavior.
|
| 969 |
+
//
|
| 970 |
+
// - eapMethodType
|
| 971 |
+
// An EAP_METHOD_TYPE structure that contains vendor and author information
|
| 972 |
+
// about the EAP method used for authenticating the connection.
|
| 973 |
+
//
|
| 974 |
+
// - eapCredential
|
| 975 |
+
// An EapCredential structure that contains the credential type and the
|
| 976 |
+
// appropriate credentials.
|
| 977 |
+
//
|
| 978 |
+
// - pdwConfigBlobSize
|
| 979 |
+
// Receives a pointer to the size, in bytes, of the ppConfigBlob parameter.
|
| 980 |
+
//
|
| 981 |
+
// - ppConfigBlob
|
| 982 |
+
// Receives a pointer to a pointer that contains a byte buffer with
|
| 983 |
+
// configured connection data.
|
| 984 |
+
//
|
| 985 |
+
// - pdwUserBlobSize
|
| 986 |
+
// Receives a pointer to the size in byte of the ppUserBlob parameter.
|
| 987 |
+
//
|
| 988 |
+
// - ppUserBlobp
|
| 989 |
+
// Receives a pointer to a pointer that contains a byte buffer with the
|
| 990 |
+
// methods user data.
|
| 991 |
+
//
|
| 992 |
+
// - ppEapError
|
| 993 |
+
// A pointer to the address of an EAP_ERROR structure that contains any
|
| 994 |
+
// errors raised during the execution of this function call. After consuming
|
| 995 |
+
// the error data this memory will be freed by calling EapPeerFreeErrorMemory
|
| 996 |
+
DWORD WINAPI EapPeerGetConfigBlobAndUserBlob(
|
| 997 |
+
IN DWORD dwFlags,
|
| 998 |
+
IN EAP_METHOD_TYPE eapMethodType,
|
| 999 |
+
IN EapCredential eapCredential,
|
| 1000 |
+
OUT DWORD* pdwConfigBlobSize,
|
| 1001 |
+
OUT BYTE** ppConfigBlob,
|
| 1002 |
+
OUT DWORD* pdwUserBlobSize,
|
| 1003 |
+
OUT BYTE** ppUserBlob,
|
| 1004 |
+
OUT EAP_ERROR** ppEapError
|
| 1005 |
+
);
|
| 1006 |
+
|
| 1007 |
+
|
| 1008 |
+
// This function frees memory returned by the configuration APIs. This function is called by EapHost when
|
| 1009 |
+
// it is done with the memory returned by the Method.
|
| 1010 |
+
//
|
| 1011 |
+
// Parameters:
|
| 1012 |
+
// - pUIContextData:
|
| 1013 |
+
// Any memory returned by configuration APIs.
|
| 1014 |
+
//
|
| 1015 |
+
VOID WINAPI EapPeerFreeMemory(
|
| 1016 |
+
_In_ void* pUIContextData
|
| 1017 |
+
);
|
| 1018 |
+
|
| 1019 |
+
#ifdef __cplusplus
|
| 1020 |
+
}
|
| 1021 |
+
#endif
|
| 1022 |
+
|
| 1023 |
+
|
| 1024 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 1025 |
+
#pragma endregion
|
| 1026 |
+
|
| 1027 |
+
#endif // EAP_PEER_METHOD_APIS_H
|
| 1028 |
+
|
miniMSVC/Windows Kits/10/Include/10.0.26100.0/um/eapmethodtypes.h
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 2 |
+
//
|
| 3 |
+
// Copyright (c) Microsoft Corporation
|
| 4 |
+
//
|
| 5 |
+
// SYNOPSIS
|
| 6 |
+
//
|
| 7 |
+
// Declares datastructures that executes the peer eap state machine.
|
| 8 |
+
//
|
| 9 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 10 |
+
|
| 11 |
+
#ifndef EAPMETHODAPIS_H
|
| 12 |
+
#define EAPMETHODAPIS_H
|
| 13 |
+
#pragma once
|
| 14 |
+
#include <winapifamily.h>
|
| 15 |
+
|
| 16 |
+
#pragma region Desktop Family
|
| 17 |
+
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
#ifdef __cplusplus
|
| 21 |
+
extern "C" {
|
| 22 |
+
#endif
|
| 23 |
+
|
| 24 |
+
// structure that represents EAP packet on the wire
|
| 25 |
+
typedef struct tagEapPacket
|
| 26 |
+
{
|
| 27 |
+
BYTE Code;
|
| 28 |
+
BYTE Id;
|
| 29 |
+
BYTE Length[2];
|
| 30 |
+
BYTE Data[1];
|
| 31 |
+
// Any additional data following the first byte. The length of
|
| 32 |
+
// the data can be deduced by the length fields.
|
| 33 |
+
} EapPacket;
|
| 34 |
+
|
| 35 |
+
//
|
| 36 |
+
// EAP packet codes from EAP spec.
|
| 37 |
+
//
|
| 38 |
+
typedef
|
| 39 |
+
#ifdef __midl
|
| 40 |
+
[v1_enum]
|
| 41 |
+
#endif
|
| 42 |
+
|
| 43 |
+
// possible values for 'code' in EAPPacket
|
| 44 |
+
enum tagEapCode
|
| 45 |
+
{
|
| 46 |
+
EapCodeMinimum = 1,
|
| 47 |
+
EapCodeRequest = 1,
|
| 48 |
+
EapCodeResponse,
|
| 49 |
+
EapCodeSuccess,
|
| 50 |
+
EapCodeFailure,
|
| 51 |
+
EapCodeMaximum = EapCodeFailure
|
| 52 |
+
} EapCode;
|
| 53 |
+
|
| 54 |
+
// This is a handle to an eap session owned by the individual eap methods.
|
| 55 |
+
typedef VOID* EAP_SESSION_HANDLE;
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
#ifdef __cplusplus
|
| 59 |
+
}
|
| 60 |
+
#endif
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */
|
| 64 |
+
#pragma endregion
|
| 65 |
+
|
| 66 |
+
#endif // EAPMETHODAPIS_H
|
| 67 |
+
|