PacketPropertyGuids Constants
Defines values that specify the packet properties. The Tablet PCAPI uses globally unique identifiers (GUIDs) to identify packet properties, which in COM are constant strings.
In C++, you can access these constants in the Msinkaut.h header file, which is located in the <systemdrive>:\Program Files\Microsoft SDKs\Windows\v6.0\Include directory if you installed the SDK in the default location. In C++, these constants are WCHARs, not BSTRs. Convert them into BSTRs before use. For more information about the BSTR data type, see Using the COM Library.
The following table lists the available packet property globally unique identifier (GUID) fields. Use these GUIDs to specify which properties the packet contains when you create the tablet context. To determine the range and resolution of a property, call the GetPropertyMetrics method. The constants in the table below beginning with "STR_" are string representations of the corresponding binary constants shown in the same table cell.
Constant | Description |
---|---|
|
The x-coordinate in the tablet coordinate space. Each packet contains this property by default. The origin (0,0) of the tablet is the upper-left corner. |
|
The y-coordinate in the tablet coordinate space. Each packet contains this property by default. The origin (0,0) of the tablet is the upper-left corner. |
|
The y-coordinate in the tablet coordinate space. Each packet contains this property by default. The origin (0,0) of the tablet is the upper-left corner. |
|
The z-coordinate or distance of the pen tip from the tablet surface. The TabletPropertyMetricUnit enumeration type determines the unit of measurement for this property. |
|
Contains one or more of the following flag values:
|
|
The time the packet was generated. |
|
The time the packet was generated. |
|
The packet property for identifying the packet. This is the same value you use to retrieve the packet from the packet queue. |
|
The pressure of the pen tip perpendicular to the tablet surface. The greater the pressure on the pen tip, the more ink that is drawn. |
|
The pressure of the pen tip along the plane of the tablet surface. |
|
The pressure on a pressure sensitive button. |
|
The angle between the y,z-plane and the pen and y-axis plane. Applies to a pen cursor. The value is 0 when the pen is perpendicular to the drawing surface and is positive when the pen is to the right of perpendicular. |
|
The angle between the x,z-plane and the pen and x-axis plane. Applies to a pen cursor. The value is 0 when the pen is perpendicular to the drawing surface and is positive when the pen is upward or away from the user. |
|
The clockwise rotation of the cursor about the z-axis through a full circular range. |
|
The angle between the axis of the pen and the surface of the tablet. The value is 0 when the pen is parallel to the surface and 90 when the pen is perpendicular to the surface. The values are negative when the pen is inverted. |
|
The clockwise rotation of the cursor about its own axis. |
STR_GUID_PITCHROTATION or GUID_PACKETPROPERTY_GUID_PITCH_ROTATION |
The packet property that indicates whether the tip is above or below a horizontal line that is perpendicular to the writing surface. Note: This requires a 3D digitizer. The value is positive if the tip is above the line and negative if it is below the line. For example, if you hold the pen in front of you and write on an imaginary wall, the pitch is positive if the tip is above a line extending from you to the wall. |
STR_GUID_ROLLROTATION or GUID_PACKETPROPERTY_GUID_ROLL_ROTATION |
The clockwise rotation of the pen around its own axis. Note: This requires a 3D digitizer. |
STR_GUID_YAWROTATION or GUID_PACKETPROPERTY_GUID_YAW_ROTATION |
The angle of the pen to the left or right around the center of its horizontal axis when the pen is horizontal. Note: This requires a 3D digitizer. If you hold the pen in front of you and write on an imaginary wall, zero yaw indicates that the pen is perpendicular to the wall. The value is negative if the tip is to the left of perpendicular and positive if the tip is to the right of perpendicular. |
STR_GUID_YAWROTATION or GUID_PACKETPROPERTY_GUID_YAW_ROTATION |
The angle of the pen to the left or right around the center of its horizontal axis when the pen is horizontal. Note: This requires a 3D digitizer. If you hold the pen in front of you and write on an imaginary wall, zero yaw indicates that the pen is perpendicular to the wall. The value is negative if the tip is to the left of perpendicular and positive if the tip is to the right of perpendicular. |
|
The width of the contact area on a touch digitizer. |
|
The height of the contact area on a touch digitizer. |
|
The level of confidence that there was finger contact on a touch digitizer. |
|
The device contact identifier for a packet. |
Remarks
Note
All packet values coming from the tablet hardware are 32-bit size integers.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows XP Tablet PC Edition [desktop apps only] |
Minimum supported server |
None supported |
Header |
|
See also