]> git.sesse.net Git - rdpsrv/blob - Xserver/include/extensions/xteststr.h
Support RDP5 logon packets.
[rdpsrv] / Xserver / include / extensions / xteststr.h
1 /* $XConsortium: xteststr.h,v 1.9 94/04/17 20:11:30 rws Exp $ */
2 /*
3
4 Copyright (c) 1992  X Consortium
5
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
12
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
15
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
19 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
23 Except as contained in this notice, the name of the X Consortium shall not be
24 used in advertising or otherwise to promote the sale, use or other dealings
25 in this Software without prior written authorization from the X Consortium.
26
27 */
28
29 #ifndef _XTESTSTR_H_
30 #define _XTESTSTR_H_
31
32 #define Window CARD32
33 #define Time CARD32
34 #define Cursor CARD32
35
36 #define XTestCurrentCursor ((Cursor)1)
37
38 typedef struct {
39     CARD8       reqType;        /* always XTestReqCode */
40     CARD8       xtReqType;      /* always X_XTestGetVersion */
41     CARD16      length B16;
42     CARD8       majorVersion;
43     CARD8       pad;
44     CARD16      minorVersion B16;
45 } xXTestGetVersionReq;
46 #define sz_xXTestGetVersionReq 8
47
48 typedef struct {
49     BYTE        type;                   /* X_Reply */
50     CARD8       majorVersion;
51     CARD16      sequenceNumber B16;
52     CARD32      length B32;
53     CARD16      minorVersion B16;
54     CARD16      pad0 B16;
55     CARD32      pad1 B32;
56     CARD32      pad2 B32;
57     CARD32      pad3 B32;
58     CARD32      pad4 B32;
59     CARD32      pad5 B32;
60 } xXTestGetVersionReply;
61 #define sz_xXTestGetVersionReply 32
62
63 typedef struct {
64     CARD8       reqType;        /* always XTestReqCode */
65     CARD8       xtReqType;      /* always X_XTestCompareCursor */
66     CARD16      length B16;
67     Window      window B32;
68     Cursor      cursor B32;
69 } xXTestCompareCursorReq;
70 #define sz_xXTestCompareCursorReq 12
71
72 typedef struct {
73     BYTE        type;                   /* X_Reply */
74     BOOL        same;
75     CARD16      sequenceNumber B16;
76     CARD32      length B32;
77     CARD32      pad0 B32;
78     CARD32      pad1 B32;
79     CARD32      pad2 B32;
80     CARD32      pad3 B32;
81     CARD32      pad4 B32;
82     CARD32      pad5 B32;
83 } xXTestCompareCursorReply;
84 #define sz_xXTestCompareCursorReply 32
85
86 /* used only on the client side */
87 typedef struct {
88     CARD8       reqType;        /* always XTestReqCode */
89     CARD8       xtReqType;      /* always X_XTestFakeInput */
90     CARD16      length B16;
91     BYTE        type;
92     BYTE        detail;
93     CARD16      pad0 B16;
94     Time        time B32;
95     Window      root B32;
96     CARD32      pad1 B32;
97     CARD32      pad2 B32;
98     INT16       rootX B16, rootY B16;
99     CARD32      pad3 B32;
100     CARD16      pad4 B16;
101     CARD8       pad5;
102     CARD8       deviceid;
103 } xXTestFakeInputReq;
104 #define sz_xXTestFakeInputReq 36
105
106 typedef struct {
107     CARD8       reqType;        /* always XTestReqCode */
108     CARD8       xtReqType;      /* always X_XTestGrabControl */
109     CARD16      length B16;
110     BOOL        impervious;
111     CARD8       pad0;
112     CARD8       pad1;
113     CARD8       pad2;
114 } xXTestGrabControlReq;
115 #define sz_xXTestGrabControlReq 8
116
117 #undef Window
118 #undef Time
119 #undef Cursor
120
121 #endif /* _XTESTSTR_H_ */