locked
WdfDeviceCreateDeviceInterface fails with error code 0xc0000010 (STATUS_INVALID_DEVICE_REQUEST)

    Question

  • Hi,

    I am developing WDF software driver (since I don't have real hardware) in Windows8.1 OS. The user mode metro app will get handle to this software driver to send read/write commands. I am using WdfDeviceCreateDeviceInterface(..) function to register a device interface so that metro application can find device in kernel space and talk to it. But when I run below code:
        

    Status = WdfDeviceCreateDeviceInterface(device, &MY_GUID, NULL);

    Call fails with error code 0xC0000010 (STATUS_INVALID_DEVICE_REQUEST). Created MY_GUID using VS2013 guid generator tool.

    'device' is successfully getting created by making call to WdfDeviceCreate(&DeviceInit, &attributes, &device); 

    Could anyone please help to resolve this issue.

    Thanks,

    YashDC

    Wednesday, September 24, 2014 5:19 PM

All replies

  • Hi Pavel,

    I am using WdfDeviceCreateDeviceInterface(..) for a legacy device. I can understand now that this interface cannot be used for legacy devices.

    Is there any other option/solution to establish "connection b/w Metro app and legacy device" ?

    Please help.

    Thanks,

    YashDC

    Thursday, September 25, 2014 4:39 AM