Whenever the video mode changes, VMOUSE searches for a cursor VxD that supports the new video mode. VMOUSE calls the CursorProc function of each registered cursor VxD, requesting the VxD's SETDISPLAYMODE function. A VxD that supports the new video mode returns 1 in the EAX register. If more than one VxD supports the new mode, VMOUSE examines the priority value associated with the VxDs and selects the one with the highest value. A VxD specifies the priority value in the Priority member of the CURSORPROCINFO structure that it passes to VMOUSE during registration.
VMOUSE calls a cursor VxD's QUERYDISPLAYMODE function to determine which video mode the VxD is supporting. To retrieve detailed information about the video mode, VMOUSE calls the GETDISPLAYMODEINFO function, passing the address of a DISPLAYMODEINFO structure. The cursor VxD fills the structure with information about the video mode, including the screen dimensions, the dimensions of a character cell, the bits-per-pixel ratio, and so on.
See also CursorProc, CURSORPROCINFO, DISPLAYMODEINFO, GETDISPLAYMODEINFO, QUERYDISPLAYMODE, SETDISPLAYMODE