Skip to content

Latest commit

 

History

History
90 lines (64 loc) · 4.06 KB

nc-d3dkmddi-dxgkddi_setpointershape.md

File metadata and controls

90 lines (64 loc) · 4.06 KB
UID title description old-location ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos tech.root req.typenames f1_keywords topic_type api_type api_location api_name
NC:d3dkmddi.DXGKDDI_SETPOINTERSHAPE
DXGKDDI_SETPOINTERSHAPE (d3dkmddi.h)
The DxgkDdiSetPointerShape function sets the appearance and location of the mouse pointer.
display\dxgkddisetpointershape.htm
05/10/2018
DXGKDDI_SETPOINTERSHAPE callback function
DXGKDDI_SETPOINTERSHAPE, DXGKDDI_SETPOINTERSHAPE callback, DmFunctions_39ac69a2-f8dc-4704-b5ab-d57d83685071.xml, DxgkDdiSetPointerShape, DxgkDdiSetPointerShape callback function [Display Devices], d3dkmddi/DxgkDdiSetPointerShape, display.dxgkddisetpointershape
d3dkmddi.h
Desktop
Windows Vista
PASSIVE_LEVEL
Windows
display
DXGKDDI_SETPOINTERSHAPE
d3dkmddi/DXGKDDI_SETPOINTERSHAPE
APIRef
kbSyntax
UserDefined
d3dkmddi.h
DXGKDDI_SETPOINTERSHAPE

DXGKDDI_SETPOINTERSHAPE callback function

-description

The DxgkDdiSetPointerShape function sets the appearance and location of the mouse pointer.

-parameters

-param hAdapter [in]

A handle to a context block that is associated with a display adapter. The display miniport driver previously provided this handle to the Microsoft DirectX graphics kernel subsystem in the MiniportDeviceContext output parameter of the DxgkDdiAddDevice function.

-param pSetPointerShape [in]

A pointer to a DXGKARG_SETPOINTERSHAPE structure that describes the appearance and location of the mouse pointer.

-returns

DxgkDdiSetPointerShape returns one of the following values:

Return code Description
STATUS_SUCCESS The mouse pointer is successfully drawn.
STATUS_NO_MEMORY DxgkDdiSetPointerShape could not allocate memory that was required for it to complete.

-remarks

The DirectX graphics kernel subsystem calls the display miniport driver's DxgkDdiSetPointerShape function to set information about the mouse pointer. The DxgkDdiSetPointerShape function is called independently of all of the other display miniport driver functions. Therefore, a DxgkDdiSetPointerShape thread can run simultaneously with another display miniport driver thread. However, the system ensures that DxgkDdiSetPointerShape and DxgkDdiSetPointerPosition threads cannot run simultaneously.

If you run a DxgkDdiSetPointerShape thread simultaneously with another display miniport driver thread, the display miniport driver should be able to program the mouse pointer hardware independently of other activities, such as operations that send a command buffer through direct memory access (DMA) to the graphics hardware, operations that program the graphics hardware by using memory-mapped I/O (MMIO), and so on.

DxgkDdiSetPointerShape is not called if the video present network (VidPN) topology that is associated with the VidPnSourceId member of the DXGKARG_SETPOINTERSHAPE structure that the pSetPointerShape parameter points to is disabled.

DxgkDdiSetPointerShape should be made pageable.

-see-also

DXGKARG_SETPOINTERSHAPE

DxgkDdiAddDevice

DxgkDdiSetPointerPosition