none
Adding ioctl interface on miniport driver on WinCE Compact 7 RRS feed

  • Question

  • I have a functioning WinCE Compact 7 miniport network driver that I'm enhancing. I need a way for an application running on the same device to interact with the running network driver. On Windows 7 machines, I'm able to do this by adding an ioctl interface to the miniport driver. My application can use the DeviceIoControl( ) function to interact with the driver.

    I'm hoping there is a similar mechanism available on WinCE Compact 7.

    Here's what I've tried so far. In my DriverEntry( ) function, I setup all the usual callbacks and call NdisMRegisterMiniportDriver( ). This initializes my NdisMiniportDriverHandle properly and the network works properly.

    Following the registration call, I then call the NdisRegisterDeviceEx( ) function with a dispatch table containing additional callbacks. The IRP_MJ_DEVICE_CONTROL being the callback that I'm mostly interested in.

    Unfortunately, Platform Builder fails during the link phase with the NdisRegisterDeviceEx( ) function as unresolved. Note that I see the expected function prototype in C:\WINCE700\public\common\ddk\inc\ndis.h and my driver compiles fine. I just can't link.

    Does this function exist on WinCE Compact 7? Is so, what library am I missing in Platform Builder to get through the link properly.

    If this function does not exist on WinCE, can someone recommend an alternative mechanism for my application to interact with the driver?

    Thanks!

    - Jeff

    jeff_burch@keysight.com

    Tuesday, August 30, 2016 6:03 PM

All replies