mouse-cursordesktop-duplication

Is the cursor of type "masked color" used anymore?


I'm developing a screen capture tool and managed to make it work, even with mouse cursor support.

The problem is, there's a type of mouse cursor called DXGI_OUTDUPL_POINTER_SHAPE_TYPE_MASKED_COLOR. I was not able to find any cursor of this type, so I cannot test it.

This made me think, is that kind of cursor even used anymore (supported by Windows 8 and newer)? Can you show me any example of a cursor like that?


Solution

  • There are several scenarios where it is used:

    1. The Hand/Grab cursor (see grab/grabbing here)
    2. The I beam when running at >= 150% UI scale

    There are possibly more but these are two examples that still exist and are present in Windows 10

    Also any software defined cursors could use it if an application sets one.