阅读:1472回复:0
IoRegisterDeviceInterface的使用
我要在一个串口上接了多个设备,这些设备能够自行协调共用一个串口,所有设备都能够被应用程序独立访问。
为了能在一个驱动程序中体现多个设备, 我使用的方法是: 在AddDevice中调用IoCreateDevice两次,相应的IoRegisterDeviceInterface也调用两次 status = IoRegisterDeviceInterface( PhysicalDeviceObject, &SmartCardReaderGuid, NULL, &deviceExtension->PnPDeviceName ); 但他们使用同一个PDO, 同一个Guid,如何才能expose more then one Device Interface来。 |
|