call from user-mode a function of network driver

Hi !

I write a miniport driver for a Net2USB device.

Therefore I implemented all the MiniportXxx functions of the connectionless miniport driver using NDIS 5.1.

Now I would like to call from user mode a specified function from driver(get_time), but on Windows it seems that I could not use CreateFile on a network device.

How I can do this ?

Thanks,
Adriano

> …on Windows it seems that I could not use CreateFile on a network device.

Sure you can, as long as this “network device” is a standalone control device that does not participate in the network stack, as far as NDIS is concerned. The very purpose of this device is to allow non-NDIS components (including UM code) to access NIC that miniport driver manages. Check NdisMRegisterDevice() for more info…

How I can do this ?

You have 2 options - either via standalone device the way I explained above, or by using WMI…

Anton Bassov