我从 osrfx2 示例中获取了通过 guid 访问自定义驱动程序的基本代码。 http://code.msdn.microsoft.com/windowsapps/Custom-device-access-sample-43bde679
我尝试在 WinRT 中实现应用程序,它访问 ndislwf 过滤器驱动程序
ComPtr<ICreateDeviceAccessAsync> access;
ComPtr<IDeviceIoControl> deviceControl;
HRESULT hr = CreateDeviceAccessInstance(
(PCWSTR)L"\\Device\\{5cbf81bd-5055-47cd-9055-a76b2b4e3697}",
GENERIC_READ | GENERIC_WRITE,
&access); // Returns S_OK.
hr = access->Wait(INFINITE); // Returns S_OK.
hr = access->GetResult(IID_IDeviceIoControl,(void **)&deviceControl); // Returns E_INVALIDARGS.
我无法让 devicecontrol 发送 ioctl。
我也在元数据文件中提到了 guid。
谁能帮帮我
我是一名优秀的程序员,十分优秀!