ITabletEventSink interface

Defines methods that handle the ITablet Interface events.

Members

The ITabletEventSink interface inherits from the IUnknown interface. ITabletEventSink also has these types of members:

Methods

The ITabletEventSink interface has these methods.

Method Description
ContextCreate Occurs when a new tablet context is created.
ContextDestroy Occurs when a tablet context is being destroyed.
CursorDown Occurs when the stylus tip contacts the digitizing tablet surface.
CursorInRange Occurs when a stylus comes within the digitizer's range of detection.
CursorMove Occurs when the cursor moves over the tablet digitizer.
CursorNew Occurs when a new stylus is added to the system.
CursorOutOfRange Occurs when the stylus leaves the physical detection range (proximity) of the tablet.
CursorUp Occurs when the user has raised the stylus from the tablet digitizer surface.
Packets Occurs when the stylus is moving on the digitizer.
SystemEvent Occurs when a system event is available.

Remarks

Developers should not use this interface.

The following code shows how the ITabletEventSink interface is defined.

[
    object,
    uuid(788459C8-26C8-4666-BF57-04AD3A0A5EB5),
    pointer_default(unique)
]
interface ITabletEventSink: IUnknown
{

    HRESULT ContextCreate(
        [in] TABLET_CONTEXT_ID tcid
    );

    HRESULT ContextDestroy(
        [in] TABLET_CONTEXT_ID tcid
    );

    HRESULT CursorNew(
        [in] TABLET_CONTEXT_ID tcid,
        [in] CURSOR_ID cid
    );

    HRESULT CursorInRange(
        [in] TABLET_CONTEXT_ID tcid,
        [in] CURSOR_ID cid
    );

    HRESULT CursorOutOfRange(
        [in] TABLET_CONTEXT_ID tcid,
        [in] CURSOR_ID cid
    );

    HRESULT CursorDown(
        [in] TABLET_CONTEXT_ID tcid,
        [in] CURSOR_ID cid,
        [in] ULONG nSerialNumber,
        [in] ULONG cbPkt,
        [in, size_is(cbPkt)] BYTE *pbPkt
    );

    HRESULT CursorUp(
        [in] TABLET_CONTEXT_ID tcid,
        [in] CURSOR_ID cid,
        [in] ULONG nSerialNumber,
        [in] ULONG cbPkt,
        [in, size_is(cbPkt)] BYTE *pbPkt
    );

    HRESULT Packets(
        [in] TABLET_CONTEXT_ID tcid,
        [in] ULONG cPkts,
        [in] ULONG cbPkts,
        [in, size_is(cbPkts)] BYTE * pbPkts,
        [in, unique, size_is(cPkts)
#ifndef NT_TARGET_XP
         ,disable_consistency_check
#endif
        ] ULONG *pnSerialNumbers,
        [in] CURSOR_ID cid
    );

    HRESULT SystemEvent(
        [in] TABLET_CONTEXT_ID tcid,
        [in] CURSOR_ID cid,
        [in] SYSTEM_EVENT event,
        [in] SYSTEM_EVENT_DATA eventdata
    );
};

     

Requirements

Requirement Value
Minimum supported client
Windows XP Tablet PC Edition [desktop apps only]
Minimum supported server
None supported
Library
Wisptis.exe