Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > OnD0Entry not called

Reply
Thread Tools Display Modes

OnD0Entry not called

 
 
Kai
Guest
Posts: n/a

 
      05-17-2010
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

 
Reply With Quote
 
 
 
 
Doron Holan [MSFT]
Guest
Posts: n/a

 
      05-17-2010
how did you install the driver? using devcon or via device manager?

"Kai" wrote in message
news:894D2D16-AE18-45CB-8169-...

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

 
Reply With Quote
 
Kai
Guest
Posts: n/a

 
      05-18-2010
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-...
>
> 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
>
> .
>

 
Reply With Quote
 
Doron Holan [MSFT]
Guest
Posts: n/a

 
      05-18-2010
what command line did you use for devcon? devcon install or devcon update?

"Kai" wrote in message
news:73ED97D4-2C82-42A5-8F99-...

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-...
>
> 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
>
> .
>


 
Reply With Quote
 
Kai
Guest
Posts: n/a

 
      05-19-2010
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?


 
Reply With Quote
 
Tim Roberts
Guest
Posts: n/a

 
      05-21-2010
Kai <> wrote:
>
>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.


Does the device appear in Device Manager? If you're popping up in Device
Manager (as an unknown device, presumably), then your descriptors are
probably pretty close.

>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?


Post your descriptors here and we'll take a look.
--
Tim Roberts,
Providenza & Boekelheide, Inc.
 
Reply With Quote
 
Doron Holan [MSFT]
Guest
Posts: n/a

 
      05-21-2010
devcon install is not what you want, that will create a root enumerated
device. use devcon update exclusively

"Kai" wrote in message
news:9A5CD775-526A-4B04-8698-...

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?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: VPN keeps dropping at the 3 minute mark Cliff Galiher Windows Small Business Server 3 12-07-2009 02:36 PM
Can't send signed messages from Windows Mail A.J. Breimer Windows Vista Mail 22 11-12-2009 02:03 AM
Re: AddDevice is not called. Don Burn Windows Vista Drivers 0 10-22-2009 01:44 PM
Re: When is DeleteObj called on desktop side? Carl Wolz [MSFT] ActiveSync 1 08-13-2007 05:23 PM
ObjectNotify not called on new record clc ActiveSync 0 04-24-2006 05:10 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59