fenceng.h

来自「键盘记录分层驱动」· C头文件 代码 · 共 62 行

H
62
字号
/*

  fenceng.H

  Author: <your name>
  Last Updated: 2006-02-12

  This framework is generated by EasySYS 0.3.0
  This template file is copying from QuickSYS 0.3.0 written by Chunhua Liu

*/

#ifndef _FENCENG_H
#define _FENCENG_H 1

//
// Define the various device type values.  Note that values used by Microsoft
// Corporation are in the range 0-0x7FFF(32767), and 0x8000(32768)-0xFFFF(65535)
// are reserved for use by customers.
//

#define FILE_DEVICE_FENCENG	0x8000

//
// Macro definition for defining IOCTL and FSCTL function control codes. Note
// that function codes 0-0x7FF(2047) are reserved for Microsoft Corporation,
// and 0x800(2048)-0xFFF(4095) are reserved for customers.
//

#define FENCENG_IOCTL_BASE	0x800

//
// The device driver IOCTLs
//

#define CTL_CODE_FENCENG(i) CTL_CODE(FILE_DEVICE_FENCENG, FENCENG_IOCTL_BASE+i, METHOD_BUFFERED, FILE_ANY_ACCESS)

#define IOCTL_FENCENG_HELLO	CTL_CODE_FENCENG(0)
#define IOCTL_FENCENG_TEST	CTL_CODE_FENCENG(1)

//
// Name that Win32 front end will use to open the fenceng device
//

#define FENCENG_WIN32_DEVICE_NAME_A	"\\\\.\\fenceng"
#define FENCENG_WIN32_DEVICE_NAME_W	L"\\\\.\\fenceng"
#define FENCENG_DEVICE_NAME_A			"\\Device\\fenceng"
#define FENCENG_DEVICE_NAME_W			L"\\Device\\fenceng"
#define FENCENG_DOS_DEVICE_NAME_A		"\\DosDevices\\fenceng"
#define FENCENG_DOS_DEVICE_NAME_W		L"\\DosDevices\\fenceng"

#ifdef _UNICODE
#define FENCENG_WIN32_DEVICE_NAME FENCENG_WIN32_DEVICE_NAME_W
#define FENCENG_DEVICE_NAME		FENCENG_DEVICE_NAME_W
#define FENCENG_DOS_DEVICE_NAME	FENCENG_DOS_DEVICE_NAME_W
#else
#define FENCENG_WIN32_DEVICE_NAME FENCENG_WIN32_DEVICE_NAME_A
#define FENCENG_DEVICE_NAME		FENCENG_DEVICE_NAME_A
#define FENCENG_DOS_DEVICE_NAME	FENCENG_DOS_DEVICE_NAME_A
#endif

#endif

⌨️ 快捷键说明

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