DXGKDDI_START_DEVICE - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// dispmprt.h

DXGKDDI_START_DEVICE DxgkddiStartDevice;

NTSTATUS DxgkddiStartDevice(
  [in]  IN_CONST_PVOID MiniportDeviceContext,
  [in]  IN_PDXGK_START_INFO DxgkStartInfo,
  [in]  IN_PDXGKRNL_INTERFACE DxgkInterface,
  [out] OUT_PULONG NumberOfVideoPresentSources,
  [out] OUT_PULONG NumberOfChildren
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-dispmprt-dxgkddi_start_device)

DXGKDDI_START_DEVICE callback function

Description

The DxgkDdiStartDevice function prepares a display adapter to receive I/O requests.

Parameters

MiniportDeviceContext [in]

A handle to a context block associated with a display adapter. The display miniport driver's DxgkDdiAddDevice function previously provided this handle to the DirectX graphics kernel subsystem.

DxgkStartInfo [in]

A pointer to a DXGK_START_INFO structure that contains information that the display miniport driver needs for initialization.

DxgkInterface [in]

A pointer to a DXGKRNL_INTERFACE structure that contains pointers to functions, implemented by the DirectX graphics kernel subsystem, that the display miniport driver can call.

NumberOfVideoPresentSources [out]

A pointer to a ULONG variable that receives the number of video present sources supported by the display adapter. For more information about video present sources, see Multiple Monitors and Video Present Networks.

NumberOfChildren [out]

A pointer to a ULONG variable that receives the total number of devices that are children of the display adapter represented by MiniportDeviceContext. This count must include potential child devices as well as child devices that are currently present. For example, if docking a portable computer will make additional video outputs available, those video outputs must be counted regardless of whether the portable computer is currently docked. For more information about child devices, see Child Devices of the Display Adapter.

Return value

DxgkDdiStartDevice returns STATUS_SUCCESS if it succeeds; otherwise, it returns one of the error codes defined in Ntstatus.h.

Remarks

The DxgkDdiStartDevice function must perform the following actions:

Starting with Windows Display Driver Model (WDDM) 1.2, the display miniport driver calls the DxgkCbAcquirePostDisplayOwnership function to obtain the information about the display mode that had been previously set by the firmware and system loader. If DxgkCbAcquirePostDisplayOwnership returns with STATUS_SUCCESS, the driver determines whether it has to reinitialize the display based on the display mode information that was returned through the DisplayInfo parameter. Otherwise, the driver should not assume that any specific display mode is currently enabled on the device, and it should initialize the display.

The DxgkDdiStartDevice function should be made pageable.

See also

DXGKRNL_INTERFACE

DXGK_DEVICE_INFO

DxgkCbAcquirePostDisplayOwnership

DxgkCbGetDeviceInformation

DxgkCbMapMemory

DxgkDdiAddDevice

DxgkDdiStopDevice