Pen API Structures

The Pen API defines 31 structures in the following categories:

Structure category
Description
System and hardware
Information about the system and pen hardware.
Display
Structures that affect display.
Guides and controls
Structures that affect boxes, guides, and controls.
Recognition
Pertain to the process and results of recognition.
Pen data
Information about points and strokes.
Target
Pertain to target windows.
Time intervals
Stroke interval information.

The following tables list the structures of the Pen API by category. For structures new to version 2.0, the first member is cbSize, which contains the structure's size in bytes.

Important Before using a version 2.0 structure, an application must initialize its cbSize mem-ber with the value sizeof( structname ), where structname represents the name of the structure. For example:

INKINGINFO inkinginfo;

inkinginfo.cbSize = sizeof( INKINGINFO );

or

INKINGINFO inkinginfo = {sizeof( INKINGINFO )};

System and hardware structures
Description
CALBSTRUCT
Pen calibration information.
OEMPENINFO
Tablet hardware information provided by original equipment manufacturer.
PDEVENT
Provides information about the pen device associated with an IN_PDEVENT notification.
PENINFO
Pen or tablet hardware information.

Display structures
Description
ANIMATEINFO
Animation information used by the DrawPenDataEx function.
CWX
Specifies optional parameters for the CorrectWritingEx function. (Japanese version only.)
INKINGINFO
Specifies where and how to display ink.
PCMINFO
Specifies screen areas that affect pen data collection.
PENTIP
Width and color of ink trail left by pen.
RECTOFS
Offsets of inflated or deflated writing area.
SKBINFO
Information about on-screen keyboard.

Guide and control structures
Description
BOXEDITINFO
Size information for boxed edit control.
BOXLAYOUT
Layout of boxed edit control.
CTLINITBEDIT
Initialization for boxed edit control.
CTLINITHEDIT
Initialization for handwriting edit control.
CTLINITIEDIT
Initialization for ink edit control.
GUIDE
Characteristics of handwriting guides.

Recognition structures
Description
BOXRESULTS
Results returned from the GetBoxResultsHRC function.
RC
Various information about the recognition context used by version 1.0 recognition functions.
RCRESULT
Results of recognition initiated through a version 1.0 recognition function.
SYC
Symbol correspondence linking ink strokes with a particular recognized symbol.
SYE
Symbol element containing a recognized symbol and its confidence level.
SYG
Symbol graph containing SYC and SYE struc-tures that together specify all guesses a recog-nizer has made.

Pen data structures
Description
PENDATAHEADER
Header structure of an HPENDATA memory block.
PENPACKET
Data sent by pen driver to inform system of pen activity.
STRKFMT
Attributes of a stroke.
STROKEINFO
Information about points making up a single stroke.

Time interval structures
Description
ABSTIME
Time of a pen data point in seconds and milliseconds.
INTERVAL
Start and end times for a set of data points.

Target structures
Description
INPPARAMS
Describes a set of targets.
TARGET
Information about a single target window.
TARGINFO
Information about a set of targets.

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database