How to design a non-stream interface for a usb device driver?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi there,

I face the question how to design an interface for a security usb
device. The usb communication between driver and usb device works fine.
Now it's the question how to access the driver from application level.
A stream interface (read, write,open,close etc.) is the standard. But
as the device shall only be accessed by my own library (no access from
other directly to to driver), I would like to have an own, not standard
interface, that is not listed with its device name like HID1: or so .

The ddk docs explicit say that that is possible - but not how. The
question is how to get a handle to the driver dll after USBDeviceAttach
has loaded the driver ? I assume that LoadDriver() is not the right
thing as it is already loaded by USBD and confirmed by USBDeviceAttach
returns TRUE.

OS is Wince 4.2 .net

Any suggestions?

Michael

.



Relevant Pages

  • Re: Linux Firewall/LoadBalancer
    ... The bonding driver originally came from Donald Becker's beowulf patches for ... Build kernel with the bonding driver ... "Bonding driver support" in the "Network device support" section. ... so the bonding driver will automatically load when the bond0 interface is ...
    (Security-Basics)
  • Re: attaching ugen(4) on multi interface USB devices
    ... >> The phone in question is Nokia 6230 and it has an USB interface. ... > ugen attaches to the whole device and supporting all interfaces in one ... > driver instance. ...
    (freebsd-hackers)
  • RE: USB Specific SetupDiEnumDeviceInterfaces ERROR_NO_MORE_ITEMS error
    ... Subject: USB Specific SetupDiEnumDeviceInterfaces ERROR_NO_MORE_ITEMS ... The driver is installed fine. ... I can get the interface handle with the GUID that my device has. ...
    (microsoft.public.development.device.drivers)
  • Re: USB Host Driver
    ... and be sure that a custom interface can be justified. ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... > We are currently developing a specialized USB host controller mini-port> driver that is not UHCI, OHCI, or EHCI compliant for Windows 2K, 2003 server,> and Windows XP. ...
    (microsoft.public.development.device.drivers)
  • [PATCH] IPMI driver updates, part 2
    ... It has been far too long since the last IPMI driver updates, ... This second part adds the "System Interface" driver. ...
    (Linux-Kernel)