CTL_CODE:用于创建一个唯一的32位系统I/O控制代码,这个控制代码包括4部分组成: DeviceType(设备类型,高16位(16-31位)), Function(功能2-13 位), Method(I/O访问内存使用方式), Access(访问限制,14-15位)。 这个宏创建一个独特的系统I/O(输入输出)控制代码(IOCTL)。 #define xxx_xxx_xxx CTL_CODE(Devi...
IoGetFunctionCodeFromCtlCode 宏返回 I/O 控制代码中包含的函数代码的值。语法C++ 复制 void IoGetFunctionCodeFromCtlCode( [in] ControlCode ); 参数[in] ControlCodeIOCTL_XXX (或FSCTL_XXX)值,该值可从 Parameters.DeviceIoControl.IoControlCode 上的IRP 的驱动程序 I/O 堆栈位置获取。返回...
This macro creates a unique system I/O control code (IOCTL). #define CTL_CODE(DeviceType, Function, Method, Access) ( ((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method)) Parameters DeviceType Defines the type of device for the given IOCTL. This parameter ...
#define CTL_CODE( DeviceType, Function, Method, Access ) (((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method)) //宏:提取设备类型的宏 #define DEVICE_TYPE_FROM_CTL_CODE(ctrlCode) (((ULONG)(ctrlCode & 0xffff0000)) >> 16) //宏:提取缓存方法 #define MET...
The IoGetFunctionCodeFromCtlCode macro returns the value of the function code contained in an I/O control code.
void IoGetFunctionCodeFromCtlCode( [in] ControlCode ); Parameters[in] ControlCodeThe IOCTL_XXX (or FSCTL_XXX) value, which can be obtained from the driver's I/O stack location of the IRP at Parameters.DeviceIoControl.IoControlCode.Return...
void IoGetFunctionCodeFromCtlCode( [in] ControlCode ); Parameters[in] ControlCodeThe IOCTL_XXX (or FSCTL_XXX) value, which can be obtained from the driver's I/O stack location of the IRP at Parameters.DeviceIoControl.IoControlCode.Return...
The d4drvif.h CTL_CODE macro defines IOCTLs for the DOT4 virtual printer port protocol that enables a multi-function printing device to simultaneously send and receive data packets on a single physical channel.SyntaxC++ Copy void CTL_CODE( DeviceType, Function, Method, Access ); ...
DeviceIoControl函数的第二个参数IoControlCode就是由CTL_CODE宏定义的,下边我们可以了解一下CTL_CODE的内容。...CTL_CODE:用于创建一个唯一的32位系统I/O控制代码,这个控制代码包括4部分组成:DeviceType(设备类型,高16位(16-31位)),Access(访问限制,14-15位),Function ...
in a way treat them like you treat your code! Gmail allows one to import and export filters in XML format. This can be used to maintain them in some better way... but dear Lord, no! Not by hand! That's what most other tools do: providing some kind of DSL that generate XML ...