// d3dkmthk.h
PDXGK_INITIAL_COMPONENT_STATE PdxgkInitialComponentState;
VOID PdxgkInitialComponentState(
PVOID GraphicsDeviceHandle,
PVOID PrivateHandle,
ULONG ComponentIndex,
BOOLEAN IsBlockingType,
UINT InitialFState,
GUID ComponentGuid,
UINT PowerComponentMappingFlag
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The PDXGK_INITIAL_COMPONENT_STATE callback function is implemented by the client driver to initialize the component state.
GraphicsDeviceHandleA handle to the graphics device.
PrivateHandleAn opaque handle provided in any callbacks. This handle must be globally unique, therefore, a pointer to the calling driver’s PDO or FDO should be used.
ComponentIndexThe index of the component. Generally, this will be the index used by the graphics adapter. The exception is for linked display adapter (LDA) scenarios, where the HIWORD of the ComponentIndex indicates the adapter index, as is done when the graphics driver is called by the graphics kernel for F-state changes in LDA scenarios.
IsBlockingTypeSet TRUE if the component is "blocking"; for example, the graphics driver has reported the component as ActiveInD3 = 0. Otherwise, set FALSE.
InitialFStateThe F-state of a component represented by ComponentIndex at the time of the call. If an F-state transition is currently in progress, a PDXGK_FSTATE_NOTIFICATION completion notification callback with PreNotification=FALSE will follow some time later when the transition completes. Depending on the timing, a PreNotification=TRUE callback might occur. If it does occur, it will precede the completion notification callback.
ComponentGuidA GUID value which is the component GUID as reported by the graphics driver for this component during its DXGKQAITYPE_POWERCOMPONENTINFO response.
PowerComponentMappingFlagThe HIWORD indicates if this is a custom driver defined value (0 = no, 1 = yes). If 0 (no), then the low word represents a DXGKMT_POWER_SHARED_TYPE enum value. These values are set by the graphics driver during its DXGKQAITYPE_POWERCOMPONENTINFO response, using the DXGK_POWER_COMPONENT_SHARED_DESC type added to DXGK_POWER_COMPONENT_MAPPING.
Upon shared power registration (IoCallDriver call), if PDXGK_INITIAL_COMPONENT_STATE was provided, it is called once for each shared power component that the graphics driver has reported. The behavior of this callback is such that:
DXGK_GRAPHICSPOWER_REGISTER_OUTPUT