⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xiproto.h

📁 远程桌面连接工具
💻 H
📖 第 1 页 / 共 3 页
字号:
/* $XConsortium: XIproto.h /main/26 1996/03/20 15:30:59 mor $ *//************************************************************Copyright (c) 1989  X ConsortiumPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THEX CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER INAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR INCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.Except as contained in this notice, the name of the X Consortium shall not beused in advertising or otherwise to promote the sale, use or other dealingsin this Software without prior written authorization from the X Consortium.Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, California.			All Rights ReservedPermission to use, copy, modify, and distribute this software and itsdocumentation for any purpose and without fee is hereby granted,provided that the above copyright notice appear in all copies and thatboth that copyright notice and this permission notice appear insupporting documentation, and that the name of Hewlett-Packard not beused in advertising or publicity pertaining to distribution of thesoftware without specific, written prior permission.HEWLETT-PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDINGALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALLHEWLETT-PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES ORANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THISSOFTWARE.********************************************************/#ifndef _XIPROTO_H#define _XIPROTO_H#include <X11/Xproto.h>#include <X11/X.h>/* make sure types have right sizes for protocol structures. */#define Window CARD32#define Time CARD32#define KeyCode CARD8/********************************************************* * * number of events, errors, and extension name. * */#define MORE_EVENTS	0x80#define DEVICE_BITS	0x7F#define InputClassBits	0x3F	/* bits in mode field for input classes */#define ModeBitsShift	6	/* amount to shift the remaining bits   */#define numInputClasses 7#define IEVENTS		15#define IERRORS		5#define CLIENT_REQ		1typedef struct  _XExtEventInfo    {    Mask	mask;    BYTE 	type;    BYTE	word;    } XExtEventInfo;typedef unsigned char *Pointer;struct tmask    {    Mask	mask;    Pointer     dev;    };/********************************************************* * * Event constants used by library. * */#define XI_DeviceValuator		0#define XI_DeviceKeyPress		1#define XI_DeviceKeyRelease		2#define XI_DeviceButtonPress		3#define XI_DeviceButtonRelease		4#define XI_DeviceMotionNotify		5#define XI_DeviceFocusIn		6#define XI_DeviceFocusOut		7#define XI_ProximityIn			8#define XI_ProximityOut			9#define XI_DeviceStateNotify		10#define XI_DeviceMappingNotify		11#define XI_ChangeDeviceNotify		12#define XI_DeviceKeystateNotify		13#define XI_DeviceButtonstateNotify	14/********************************************************* * * Protocol request constants * */#define X_GetExtensionVersion		1#define X_ListInputDevices		2#define X_OpenDevice			3#define X_CloseDevice			4#define X_SetDeviceMode			5#define X_SelectExtensionEvent  	6#define X_GetSelectedExtensionEvents	7#define X_ChangeDeviceDontPropagateList 8#define X_GetDeviceDontPropagateList 	9#define X_GetDeviceMotionEvents 	10#define X_ChangeKeyboardDevice		11#define X_ChangePointerDevice		12#define X_GrabDevice 			13#define X_UngrabDevice  		14#define X_GrabDeviceKey			15#define X_UngrabDeviceKey		16#define X_GrabDeviceButton		17#define X_UngrabDeviceButton		18#define X_AllowDeviceEvents		19#define X_GetDeviceFocus		20#define X_SetDeviceFocus		21#define X_GetFeedbackControl		22#define X_ChangeFeedbackControl		23#define X_GetDeviceKeyMapping		24#define X_ChangeDeviceKeyMapping	25#define X_GetDeviceModifierMapping	26#define X_SetDeviceModifierMapping	27#define X_GetDeviceButtonMapping	28#define X_SetDeviceButtonMapping	29#define X_QueryDeviceState 		30#define X_SendExtensionEvent 		31#define X_DeviceBell			32#define X_SetDeviceValuators		33#define X_GetDeviceControl		34#define X_ChangeDeviceControl		35/********************************************************* * * Protocol request and reply structures. * * GetExtensionVersion. * */typedef struct {    CARD8 	reqType;       /* input extension major code   */    CARD8 	ReqType;       /* always X_GetExtensionVersion */    CARD16 	length B16;    CARD16 	nbytes B16;    CARD8 	pad1, pad2;} xGetExtensionVersionReq;typedef struct {    CARD8 	repType;  	/* X_Reply 			*/    CARD8 	RepType;       	/* always X_GetExtensionVersion */    CARD16 	sequenceNumber B16;    CARD32 	length B32;    CARD16 	major_version B16;    CARD16 	minor_version B16;    BOOL 	present;    CARD8 	pad1, pad2, pad3;    CARD32 	pad01 B32;    CARD32 	pad02 B32;    CARD32 	pad03 B32;    CARD32 	pad04 B32;} xGetExtensionVersionReply;/********************************************************* * * ListInputDevices. * */typedef struct {    CARD8 	reqType;	/* input extension major code	*/    CARD8 	ReqType;	/* always X_ListInputDevices 	*/    CARD16 	length B16;} xListInputDevicesReq;typedef struct {    CARD8 	repType;  	/* X_Reply 			*/    CARD8 	RepType;        /* always X_ListInputDevices  	*/    CARD16 	sequenceNumber B16;    CARD32 	length B32;    CARD8 	ndevices;    CARD8 	pad1, pad2, pad3;    CARD32 	pad01 B32;    CARD32 	pad02 B32;    CARD32 	pad03 B32;    CARD32 	pad04 B32;    CARD32 	pad05 B32;} xListInputDevicesReply;typedef struct _xDeviceInfo *xDeviceInfoPtr;typedef struct _xAnyClassinfo *xAnyClassPtr;typedef struct _xAnyClassinfo {    CARD8 	class;    CARD8 	length;    } xAnyClassInfo;typedef struct _xDeviceInfo {    CARD32	type B32;    CARD8	id;    CARD8 	num_classes;    CARD8 	use;    CARD8 	pad1;    } xDeviceInfo;typedef struct _xKeyInfo *xKeyInfoPtr;typedef struct _xKeyInfo {    CARD8 	class;    CARD8 	length;    KeyCode 	min_keycode;     KeyCode 	max_keycode;     CARD16 	num_keys B16;    CARD8 	pad1,pad2;    } xKeyInfo;typedef struct _xButtonInfo *xButtonInfoPtr;typedef struct _xButtonInfo {    CARD8 	class;    CARD8 	length;    CARD16 	num_buttons B16;    } xButtonInfo;typedef struct _xValuatorInfo *xValuatorInfoPtr;typedef struct _xValuatorInfo {    CARD8 	class;    CARD8 	length;    CARD8 	num_axes;    CARD8 	mode;    CARD32 	motion_buffer_size B32;    } xValuatorInfo;typedef struct _xAxisInfo *xAxisInfoPtr;typedef struct _xAxisInfo {    CARD32 	resolution B32;    CARD32 	min_value B32;    CARD32 	max_value B32;    } xAxisInfo;/********************************************************* * * OpenDevice. * */typedef struct {    CARD8	reqType;	/* input extension major code	*/    CARD8 	ReqType;        /* always X_OpenDevice 		*/    CARD16 	length B16;    CARD8       deviceid;    BYTE	pad1, pad2, pad3;} xOpenDeviceReq;typedef struct {    CARD8 	repType;  	/* X_Reply 			*/    CARD8 	RepType;       	/* always X_OpenDevice        	*/    CARD16 	sequenceNumber B16;    CARD32 	length B32;    CARD8 	num_classes;    BYTE 	pad1, pad2, pad3;    CARD32 	pad00 B32;    CARD32 	pad01 B32;    CARD32 	pad02 B32;    CARD32 	pad03 B32;    CARD32 	pad04 B32;    } xOpenDeviceReply;typedef struct {    CARD8 	class;    CARD8 	event_type_base;    } xInputClassInfo;/********************************************************* * * CloseDevice. * */typedef struct {    CARD8	reqType;	/* input extension major code	*/    CARD8 	ReqType;        /* always X_CloseDevice 	*/    CARD16 	length B16;    CARD8       deviceid;    BYTE	pad1, pad2, pad3;} xCloseDeviceReq;/********************************************************* * * SetDeviceMode. * */typedef struct {    CARD8 	reqType;	/* input extension major code	*/    CARD8 	ReqType;     	/* always X_SetDeviceMode 	*/    CARD16 	length B16;    CARD8       deviceid;    CARD8       mode;    BYTE 	pad1, pad2;} xSetDeviceModeReq;typedef struct {    CARD8 	repType;  	/* X_Reply 			*/    CARD8 	RepType;     	/* always X_SetDeviceMode  	*/    CARD16 	sequenceNumber B16;    CARD32 	length B32;    CARD8 	status;    BYTE	pad1, pad2, pad3;    CARD32 	pad01 B32;    CARD32 	pad02 B32;    CARD32 	pad03 B32;    CARD32 	pad04 B32;    CARD32 	pad05 B32;} xSetDeviceModeReply;/********************************************************* * * SelectExtensionEvent. * */typedef struct {    CARD8	reqType;	/* input extension major code	*/    CARD8 	ReqType;        /* always X_SelectExtensionEvent */    CARD16 	length B16;    Window 	window B32;    CARD16	count B16;    CARD16	pad00 B16;} xSelectExtensionEventReq;/********************************************************* * * GetSelectedExtensionEvent. * */typedef struct {    CARD8	reqType;	/* input extension major code	*/    CARD8 	ReqType;        /* X_GetSelectedExtensionEvents */    CARD16 	length B16;    Window	window B32;} xGetSelectedExtensionEventsReq;typedef struct {    CARD8 	repType;  	/* X_Reply 			*/    CARD8 	RepType;       	/* GetSelectedExtensionEvents	*/    CARD16 	sequenceNumber B16;    CARD32 	length B32;    CARD16 	this_client_count B16;    CARD16 	all_clients_count B16;    CARD32 	pad01 B32;    CARD32 	pad02 B32;    CARD32 	pad03 B32;    CARD32 	pad04 B32;    CARD32 	pad05 B32;} xGetSelectedExtensionEventsReply;/********************************************************* * * ChangeDeviceDontPropagateList. * */typedef struct {    CARD8	reqType;	/* input extension major code	*/    CARD8 	ReqType;        /* X_ChangeDeviceDontPropagateList */    CARD16 	length B16;    Window	window B32;    CARD16 	count B16;    CARD8 	mode;    BYTE	pad;} xChangeDeviceDontPropagateListReq;/********************************************************* * * GetDeviceDontPropagateList. * */typedef struct {    CARD8	reqType;	/* input extension major code	*/    CARD8 	ReqType;        /* X_GetDeviceDontPropagateList */    CARD16 	length B16;    Window	window B32;} xGetDeviceDontPropagateListReq;typedef struct {    CARD8 	repType;  	/* X_Reply 			*/    CARD8 	RepType;        /* GetDeviceDontPropagateList   */    CARD16 	sequenceNumber B16;    CARD32 	length B32;    CARD16 	count B16;    CARD16 	pad00 B16;    CARD32 	pad01 B32;    CARD32 	pad02 B32;    CARD32 	pad03 B32;    CARD32 	pad04 B32;    CARD32 	pad05 B32;    } xGetDeviceDontPropagateListReply;/********************************************************* * * GetDeviceMotionEvents. * */typedef struct {    CARD8 	reqType;	/* input extension major code	*/    CARD8 	ReqType;        /* always X_GetDeviceMotionEvents*/    CARD16 	length B16;    Time 	start B32;    Time	stop B32;    CARD8	deviceid;    BYTE	pad1, pad2, pad3;} xGetDeviceMotionEventsReq;typedef struct {    CARD8 	repType;  	/* X_Reply */    CARD8 	RepType;        /* always X_GetDeviceMotionEvents  */    CARD16 	sequenceNumber B16;    CARD32 	length B32;    CARD32 	nEvents B32;    CARD8  	axes;    CARD8  	mode;    BYTE	pad1, pad2;    CARD32 	pad01 B32;    CARD32 	pad02 B32;    CARD32 	pad03 B32;    CARD32 	pad04 B32;} xGetDeviceMotionEventsReply;/********************************************************* * * ChangeKeyboardDevice. * */typedef struct {    CARD8	reqType;	/* input extension major code	*/    CARD8 	ReqType;        /* X_ChangeKeyboardDevice 	*/    CARD16 	length B16;    CARD8 	deviceid;    BYTE	pad1, pad2, pad3;} xChangeKeyboardDeviceReq;typedef struct {

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -