This call allows a process to get (copy) the pointer shape for the session.
MouGetPtrShape
PtrBuffer (PBYTE) - output
TotLength (USHORT)
For all OS/2 system-supported modes, TotLength is specified in bytes and is equal to:
Mono & Text Modes
TotLength = (height in chars) * (width in chars) * 2 * 2 = 1 * 1 * 2 * 2 = 4Graphics Mode
TotLength = (height in pels)*(width in pels)*(bits per pel)*2/8Modes 4 and 5 (320 X 200)
TotLength = (height) * (width) * 2 * 2 / 8Mode 6 (640 X 200)
TotLength = (height) * (width) * 1 * 2 / 8
Length calculations produce byte boundary buffer sizes. col (USHORT)
The application passes a parameter list with the same meaning as defined for MouSetPtrShape to the mouse device driver. The mouse device driver copies the parameters that describe the pointer shape and attributes into the pointer definition control block pointed to by the PtrDefRec parameter. The word 0 (buffer length = TotLength) pointer definition record parameter field must contain the size in bytes of the application buffer where the device driver is to insert the sessions pointer image. All other words in the parameter list are returned to the application by MouGetPtrShape.
If the buffer size is insufficient, the TotLength field contains the actual size in bytes of the returned pointer image.
The pointer shape may be set by the application with MouSetPtrShape or may be the default image provided by the installed Pointer Device Driver.