// iddcx.h
struct IDARG_OUT_QUERY_HWCURSOR {
BOOL IsCursorVisible;
INT X;
INT Y;
BOOL IsCursorShapeUpdated;
IDDCX_CURSOR_SHAPE_INFO CursorShapeInfo;
};
View the official Windows Driver Kit DDI referenceNo description available.
The IDARG_OUT_QUERY_HWCURSOR structure is the output parameter used by IddCxMonitorQueryHardwareCursor to return information about the coordinates and shape of the current cursor.
IsCursorVisible[out] A Boolean value that indicates whether the cursor is visible.
X[out] If the cursor is visible (IsCursorVisible = TRUE) then X is the x screen co-ordinate of the top-left hand pixel in the cursor image. See Remarks.
Y[out] If the cursor is visible (IsCursorVisible = TRUE) then Y is the y screen co-ordinate of the top-left hand pixel in the cursor image. See Remarks.
IsCursorShapeUpdated[out] A Boolean value that indicates whether the cursor shape has been updated since the last time the driver called IddCxMonitorQueryHardwareCursor. If it has been updated then the OS updates the CursorShapeInfo structure and copies the new cursor image data into the IDARG_IN_QUERY_HWCURSOR.pShapeBuffer buffer.
CursorShapeInfo[out] A IDDCX_CURSOR_SHAPE_INFO structure in which the OS copies the current cursor information if the cursor is visible. If the cursor is not visible then OS zeroes this structure.
Note that X and Y can be negative; for example, a hot spot in the center of cursor that is placed in the top-left of the screen.
IddCxMonitorQueryHardwareCursor
IddCxMonitorQueryHardwareCursor2