7.3 Cursor Resource

A cursor resource is nearly identical in format to a cursor image in a cursor-resource file. The resource contains the cursor hot spot as well as the cursor-image header, color table, and XOR and AND masks. The x-and y-coordinates for the cursor hot spot (both 16-bit values) appear first in the resource, immediately followed by the cursor-image header. For more information about the cursor-image format, see Chapter 1, “Graphics File Formats.”

Each cursor resource must have a corresponding entry in the resource table of the executable file. This means the resource table must contain a TYPEINFO structure in which the rscTypeID member is set to the RT_CURSOR value.