From: Kai on
Hi,

I'm new to driver development and I have to to implement a UMDF driver for a
custom USB device.
I used the umdfSkeleton code from the help as a starting point. When I call
the CreateDevice method from the WDF Framework the framework requests the
IPnpCallback and IPnpCallbackHardware interface and I return them properly
(stepped through the code with WinDBG). But the framework won't call the
OnD0Entry method at my driver.
My Question is now: Do I have to set-up queues or something so that the
framework will call this method?

Thanks

From: Doron Holan [MSFT] on
how did you install the driver? using devcon or via device manager?

"Kai" wrote in message
news:894D2D16-AE18-45CB-8169-EC69BF392A1F(a)microsoft.com...

Hi,

I'm new to driver development and I have to to implement a UMDF driver for a
custom USB device.
I used the umdfSkeleton code from the help as a starting point. When I call
the CreateDevice method from the WDF Framework the framework requests the
IPnpCallback and IPnpCallbackHardware interface and I return them properly
(stepped through the code with WinDBG). But the framework won't call the
OnD0Entry method at my driver.
My Question is now: Do I have to set-up queues or something so that the
framework will call this method?

Thanks

From: Kai on
Both ways. Results in the same "error"

"Doron Holan [MSFT]" wrote:

> how did you install the driver? using devcon or via device manager?
>
> "Kai" wrote in message
> news:894D2D16-AE18-45CB-8169-EC69BF392A1F(a)microsoft.com...
>
> Hi,
>
> I'm new to driver development and I have to to implement a UMDF driver for a
> custom USB device.
> I used the umdfSkeleton code from the help as a starting point. When I call
> the CreateDevice method from the WDF Framework the framework requests the
> IPnpCallback and IPnpCallbackHardware interface and I return them properly
> (stepped through the code with WinDBG). But the framework won't call the
> OnD0Entry method at my driver.
> My Question is now: Do I have to set-up queues or something so that the
> framework will call this method?
>
> Thanks
>
> .
>
From: Doron Holan [MSFT] on
what command line did you use for devcon? devcon install or devcon update?

"Kai" wrote in message
news:73ED97D4-2C82-42A5-8F99-A4FA576BB012(a)microsoft.com...

Both ways. Results in the same "error"

"Doron Holan [MSFT]" wrote:

> how did you install the driver? using devcon or via device manager?
>
> "Kai" wrote in message
> news:894D2D16-AE18-45CB-8169-EC69BF392A1F(a)microsoft.com...
>
> Hi,
>
> I'm new to driver development and I have to to implement a UMDF driver for
> a
> custom USB device.
> I used the umdfSkeleton code from the help as a starting point. When I
> call
> the CreateDevice method from the WDF Framework the framework requests the
> IPnpCallback and IPnpCallbackHardware interface and I return them properly
> (stepped through the code with WinDBG). But the framework won't call the
> OnD0Entry method at my driver.
> My Question is now: Do I have to set-up queues or something so that the
> framework will call this method?
>
> Thanks
>
> .
>

From: Kai on
I tried both versions: install and update. Anytime the same error.
But I've found out, that when I program my usb device to be for example a
HID Mouse, and install my driver for that device, the driver loads
successfully. But when I revert my usb-device to be the custom-device, then
the driver fails to load.
So I think it might have something to do with the configuration descriptor
of my usb device.
Do you have any idea, where I could obtain information about why windows
does or does not like my descriptor?