VP_STATUS
VgaSetCursorAttributes(
      PHW_DEVICE_EXTENSION HwDeviceExtension,
      PVIDEO_CURSOR_ATTRIBUTES CursorAttributes,
      ULONG CursorAttributesSize
  );

Routine Description:

    This routine verifies that the requested cursor height is within the
    bounds of the character cell. If valid, then it sets the new
    visibility and height of the cursor.

Arguments:

    HwDeviceExtension - Pointer to the miniport driver's device extension.

    CursorType - Pointer to the structure containing the cursor information.

    CursorTypeSize - Length of the input buffer supplied by the user.

Return Value:

    NO_ERROR - information returned successfully

    ERROR_INSUFFICIENT_BUFFER - input buffer not large enough for input data

    ERROR_INVALID_PARAMETER - invalid video mode