IsPenEvent 

1.0     2.0     

Checks whether a mouse event was generated by the pen driver.

BOOL IsPenEvent( UINT message, LONG lExtraInfo )

Parameters

message

Windows mouse message being queried.

lExtraInfo

Value returned by GetMessageExtraInfo3P040HC for the given message.

Return Value

Returns TRUE if the mouse event referenced by the message parameter was generated by the pen driver; otherwise, returns FALSE.

Comments

Mouse drivers that have not been updated to be compatible with pens may produce an event that cannot be distinguished from a real pen event. This has a very low probability of occurring.