1 //-------------------------------------------------------------------------- 
2 // 
3 //  Copyright (c) Microsoft Corporation.  All rights reserved. 
4 // 
5 //  File: tpcshrd.h 
6 //          Microsoft Tablet PC API definitions 
7 // 
8 //-------------------------------------------------------------------------- 
9     
10      
11      
12
13
14 /* this ALWAYS GENERATED file contains the definitions for the interfaces */
15
16
17  /* File created by MIDL compiler version 7.00.0499 */
18 /* Compiler settings for tpcshrd.idl:
19       Oicf, W1, Zp8, env=Win32 (32b run)
20       protocol : dce , ms_ext, c_ext, robust
21       error checks: allocation ref bounds_check enum stub_data 
22       VC __declspec() decoration level: 
23                __declspec(uuid()), __declspec(selectany), __declspec(novtable)
24                DECLSPEC_UUID(), MIDL_INTERFACE()
25 */
26 //@@MIDL_FILE_HEADING(  )
27
28 #pragma warning( disable: 4049 )  /* more than 64k source lines */
29
30
31 /* verify that the <rpcndr.h> version is high enough to compile this file*/
32 #ifndef __REQUIRED_RPCNDR_H_VERSION__
33 #define __REQUIRED_RPCNDR_H_VERSION__ 500
34 #endif
35
36 /* verify that the <rpcsal.h> version is high enough to compile this file*/
37 #ifndef __REQUIRED_RPCSAL_H_VERSION__
38 #define __REQUIRED_RPCSAL_H_VERSION__ 100
39 #endif
40
41 #include "rpc.h"
42 #include "rpcndr.h"
43
44 #ifndef __RPCNDR_H_VERSION__
45 #error this stub requires an updated version of <rpcndr.h>
46 #endif // __RPCNDR_H_VERSION__
47
48
49 #ifndef __tpcshrd_h__
50 #define __tpcshrd_h__
51
52 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
53 #pragma once
54 #endif
55
56 /* Forward Declarations */ 
57
58 /* header files for imported files */
59 #include "wtypes.h"
60
61 #ifdef __cplusplus
62 extern "C"{
63 #endif 
64
65
66 /* interface __MIDL_itf_tpcshrd_0000_0000 */
67 /* [local] */ 
68
69 #ifndef __WISPSHRD_H
70 #define __WISPSHRD_H
71 #define WM_TABLET_DEFBASE                                 0x02C0
72 #define WM_TABLET_MAXOFFSET                              0x20
73 #define WM_TABLET_FLICK                                    (WM_TABLET_DEFBASE + 11)
74 #define WM_TABLET_QUERYSYSTEMGESTURESTATUS     (WM_TABLET_DEFBASE + 12)
75 #define MICROSOFT_TABLETPENSERVICE_PROPERTY _T("MicrosoftTabletPenServiceProperty")
76 #define TABLET_DISABLE_PRESSANDHOLD             0x00000001
77 #define TABLET_DISABLE_PENTAPFEEDBACK          0x00000008
78 #define TABLET_DISABLE_PENBARRELFEEDBACK     0x00000010
79 #define TABLET_DISABLE_TOUCHUIFORCEON          0x00000100
80 #define TABLET_DISABLE_TOUCHUIFORCEOFF        0x00000200
81 #define TABLET_DISABLE_TOUCHSWITCH               0x00008000
82 #define TABLET_DISABLE_FLICKS                       0x00010000
83 #define TABLET_ENABLE_FLICKSONCONTEXT          0x00020000
84 #define TABLET_ENABLE_FLICKLEARNINGMODE      0x00040000
85 #define TABLET_DISABLE_SMOOTHSCROLLING        0x00080000
86 #define TABLET_DISABLE_FLICKFALLBACKKEYS     0x00100000
87 #define MAX_PACKET_PROPERTY_COUNT      32
88 #define MAX_PACKET_BUTTON_COUNT          32
89 #define IP_CURSOR_DOWN                  0x00000001
90 #define IP_INVERTED                       0x00000002
91 #define IP_MARGIN                          0x00000004
92 typedef DWORD CURSOR_ID;
93
94 typedef USHORT SYSTEM_EVENT;
95
96 typedef DWORD TABLET_CONTEXT_ID;
97
98 typedef 
99 enum _PROPERTY_UNITS
100       {    PROPERTY_UNITS_DEFAULT    = 0,
101     PROPERTY_UNITS_INCHES    = 1,
102     PROPERTY_UNITS_CENTIMETERS    = 2,
103     PROPERTY_UNITS_DEGREES    = 3,
104     PROPERTY_UNITS_RADIANS    = 4,
105     PROPERTY_UNITS_SECONDS    = 5,
106     PROPERTY_UNITS_POUNDS    = 6,
107     PROPERTY_UNITS_GRAMS    = 7,
108     PROPERTY_UNITS_SILINEAR    = 8,
109     PROPERTY_UNITS_SIROTATION    = 9,
110     PROPERTY_UNITS_ENGLINEAR    = 10,
Lines 111 ... 120 are skipped.
121 #ifndef _XFORM_
122 #define _XFORM_
123 typedef /* [hidden] */ struct tagXFORM
124       {
125       float eM11;
126       float eM12;
127       float eM21;
128       float eM22;
129       float eDx;
130       float eDy;
131       }     XFORM;
132
133 #endif
134 typedef struct tagSYSTEM_EVENT_DATA
135       {
136       BYTE bModifier;
137       WCHAR wKey;
138       LONG xPos;
139       LONG yPos;
140       BYTE bCursorMode;
141       DWORD dwButtonState;
142       }     SYSTEM_EVENT_DATA;
143
144 typedef struct tagSTROKE_RANGE
145       {
146       ULONG iStrokeBegin;
147       ULONG iStrokeEnd;
148       }     STROKE_RANGE;
149
150 typedef struct _PROPERTY_METRICS
151       {
152       LONG nLogicalMin;
153       LONG nLogicalMax;
154       PROPERTY_UNITS Units;
155       FLOAT fResolution;
156       }     PROPERTY_METRICS;
157
158 typedef struct _PROPERTY_METRICS *PPROPERTY_METRICS;
159
160 typedef struct _PACKET_PROPERTY
161       {
162       GUID guid;
163       PROPERTY_METRICS PropertyMetrics;
164       }     PACKET_PROPERTY;
165
166 typedef struct _PACKET_PROPERTY *PPACKET_PROPERTY;
167
168 typedef struct _PACKET_DESCRIPTION
169       {
170       ULONG cbPacketSize;
171       ULONG cPacketProperties;
172       PACKET_PROPERTY *pPacketProperties;
173       ULONG cButtons;
174       GUID *pguidButtons;
175       }     PACKET_DESCRIPTION;
176
177 typedef struct _PACKET_DESCRIPTION *PPACKET_DESCRIPTION;
178
179 #endif // __WISPSHRD_H
180
181
182 extern RPC_IF_HANDLE __MIDL_itf_tpcshrd_0000_0000_v0_0_c_ifspec;
183 extern RPC_IF_HANDLE __MIDL_itf_tpcshrd_0000_0000_v0_0_s_ifspec;
184
185 /* Additional Prototypes for ALL interfaces */
186
187 /* end of Additional Prototypes */
188
189 #ifdef __cplusplus
190 }
191 #endif
192
193 #endif
194
195
196
197