1、请问应用程序与驱动通讯,是否必须要先用IoCreateDevice生成设备?
2、UNICODE_STRING device_name = RTL_CONSTANT_STRING(L"\\Device\\MyCDO");
status = IoCreateDevice(
IN DriverObject,
IN sizeof(C2P_DEV_EXT),
IN NULL,//&device_name,
IN pTargetDeviceObject->DeviceType,
IN pTargetDeviceObject->Characteristics,
IN FALSE,
OUT &pFilterDeviceObject
);
第3个参数,为什么我输入NULL,函数能成功,一旦输入设备函数就失败?
请大家不吝赐教
Optionally points to a buffer containing a zero-terminated Unicode string that names the device object. The string must be a full path name. WDM filter and function drivers do not name their device objects. For more information