Device driver not loaded in win 8.1

Hi,

I write a device driver named A.sys. It has dependency with a kernel dll
B.sys.
I can install A.sys in windows 7 successfully, but when I install A.sys in
Win 8.1, error code 39 shows in device manager . It says “Device driver
couldn’t loaded properly”. I don’t know what the problem is.

In both win 7 and win 8.1 I copy B.sys in %SystemRoot%System32/drivers.

I would be very appreciated if someone help me.

Are you using KMDF?

mm

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of elahe shekuhi
Sent: Monday, September 29, 2014 12:15 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Device driver not loaded in win 8.1

Hi,

I write a device driver named A.sys. It has dependency with a kernel dll B.sys.

I can install A.sys in windows 7 successfully, but when I install A.sys in Win 8.1, error code 39 shows in device manager . It says “Device driver couldn’t loaded properly”. I don’t know what the problem is.

In both win 7 and win 8.1 I copy B.sys in %SystemRoot%System32/drivers.

I would be very appreciated if someone help me.

— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

No, I use wdm for developing device driver.

On Mon, Sep 29, 2014 at 10:52 AM, Martin O’Brien <
xxxxx@gmail.com> wrote:

Are you using KMDF?

mm

*From:* xxxxx@lists.osr.com [mailto:
xxxxx@lists.osr.com] *On Behalf Of *elahe shekuhi
*Sent:* Monday, September 29, 2014 12:15 AM
*To:* Windows System Software Devs Interest List
*Subject:* [ntdev] Device driver not loaded in win 8.1

Hi,

I write a device driver named A.sys. It has dependency with a kernel dll
B.sys.

I can install A.sys in windows 7 successfully, but when I install A.sys in
Win 8.1, error code 39 shows in device manager . It says “Device driver
couldn’t loaded properly”. I don’t know what the problem is.

In both win 7 and win 8.1 I copy B.sys in %SystemRoot%System32/drivers.

I would be very appreciated if someone help me.

— NTDEV is sponsored by OSR Visit the list at:
http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See
http://www.osr.com/careers For our schedule of WDF, WDM, debugging and
other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

What kind of WDM driver? Is it a filter of some type?

Thanks,

mm

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of elahe shekuhi
Sent: Monday, September 29, 2014 12:35 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Device driver not loaded in win 8.1

No, I use wdm for developing device driver.

On Mon, Sep 29, 2014 at 10:52 AM, Martin O’Brien wrote:

Are you using KMDF?

mm

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of elahe shekuhi
Sent: Monday, September 29, 2014 12:15 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Device driver not loaded in win 8.1

Hi,

I write a device driver named A.sys. It has dependency with a kernel dll B.sys.

I can install A.sys in windows 7 successfully, but when I install A.sys in Win 8.1, error code 39 shows in device manager . It says “Device driver couldn’t loaded properly”. I don’t know what the problem is.

In both win 7 and win 8.1 I copy B.sys in %SystemRoot%System32/drivers.

I would be very appreciated if someone help me.

— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

it is a function driver, and I write a .inf file for it. I install a
root-enumerated device using devcon.

On Mon, Sep 29, 2014 at 11:12 AM, Martin O’Brien <
xxxxx@gmail.com> wrote:

What kind of WDM driver? Is it a filter of some type?

Thanks,

mm

*From:* xxxxx@lists.osr.com [mailto:
xxxxx@lists.osr.com] *On Behalf Of *elahe shekuhi
*Sent:* Monday, September 29, 2014 12:35 AM
*To:* Windows System Software Devs Interest List
*Subject:* Re: [ntdev] Device driver not loaded in win 8.1

No, I use wdm for developing device driver.

On Mon, Sep 29, 2014 at 10:52 AM, Martin O’Brien <
xxxxx@gmail.com> wrote:

Are you using KMDF?

mm

*From:* xxxxx@lists.osr.com [mailto:
xxxxx@lists.osr.com] *On Behalf Of *elahe shekuhi
*Sent:* Monday, September 29, 2014 12:15 AM
*To:* Windows System Software Devs Interest List
*Subject:* [ntdev] Device driver not loaded in win 8.1

Hi,

I write a device driver named A.sys. It has dependency with a kernel dll
B.sys.

I can install A.sys in windows 7 successfully, but when I install A.sys in
Win 8.1, error code 39 shows in device manager . It says “Device driver
couldn’t loaded properly”. I don’t know what the problem is.

In both win 7 and win 8.1 I copy B.sys in %SystemRoot%System32/drivers.

I would be very appreciated if someone help me.

— NTDEV is sponsored by OSR Visit the list at:
http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See
http://www.osr.com/careers For our schedule of WDF, WDM, debugging and
other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR Visit the list at:
http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See
http://www.osr.com/careers For our schedule of WDF, WDM, debugging and
other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Could you please post the INF?

Just a guess, but I would say that there’s more likely something amiss in your INF than the export driver being the problem.

Thanks,

mm

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of elahe shekuhi
Sent: Monday, September 29, 2014 12:45 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Device driver not loaded in win 8.1

it is a function driver, and I write a .inf file for it. I install a root-enumerated device using devcon.

On Mon, Sep 29, 2014 at 11:12 AM, Martin O’Brien wrote:

What kind of WDM driver? Is it a filter of some type?

Thanks,

mm

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of elahe shekuhi
Sent: Monday, September 29, 2014 12:35 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Device driver not loaded in win 8.1

No, I use wdm for developing device driver.

On Mon, Sep 29, 2014 at 10:52 AM, Martin O’Brien wrote:

Are you using KMDF?

mm

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of elahe shekuhi
Sent: Monday, September 29, 2014 12:15 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Device driver not loaded in win 8.1

Hi,

I write a device driver named A.sys. It has dependency with a kernel dll B.sys.

I can install A.sys in windows 7 successfully, but when I install A.sys in Win 8.1, error code 39 shows in device manager . It says “Device driver couldn’t loaded properly”. I don’t know what the problem is.

In both win 7 and win 8.1 I copy B.sys in %SystemRoot%System32/drivers.

I would be very appreciated if someone help me.

— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

I think .inf file is correct. If I install a version of A.sys that hasn’t
dependency with B.sys it is installed correctly. But that version of A.sys
that has dependency with B.sys installed with error code 39 only in win 8.1.

On Mon, Sep 29, 2014 at 11:25 AM, Martin O’Brien <
xxxxx@gmail.com> wrote:

Could you please post the INF?

Just a guess, but I would say that there’s more likely something amiss in
your INF than the export driver being the problem.

Thanks,

mm

*From:* xxxxx@lists.osr.com [mailto:
xxxxx@lists.osr.com] *On Behalf Of *elahe shekuhi
*Sent:* Monday, September 29, 2014 12:45 AM

*To:* Windows System Software Devs Interest List
*Subject:* Re: [ntdev] Device driver not loaded in win 8.1

it is a function driver, and I write a .inf file for it. I install a
root-enumerated device using devcon.

On Mon, Sep 29, 2014 at 11:12 AM, Martin O’Brien <
xxxxx@gmail.com> wrote:

What kind of WDM driver? Is it a filter of some type?

Thanks,

mm

*From:* xxxxx@lists.osr.com [mailto:
xxxxx@lists.osr.com] *On Behalf Of *elahe shekuhi
*Sent:* Monday, September 29, 2014 12:35 AM
*To:* Windows System Software Devs Interest List
*Subject:* Re: [ntdev] Device driver not loaded in win 8.1

No, I use wdm for developing device driver.

On Mon, Sep 29, 2014 at 10:52 AM, Martin O’Brien <
xxxxx@gmail.com> wrote:

Are you using KMDF?

mm

*From:* xxxxx@lists.osr.com [mailto:
xxxxx@lists.osr.com] *On Behalf Of *elahe shekuhi
*Sent:* Monday, September 29, 2014 12:15 AM
*To:* Windows System Software Devs Interest List
*Subject:* [ntdev] Device driver not loaded in win 8.1

Hi,

I write a device driver named A.sys. It has dependency with a kernel dll
B.sys.

I can install A.sys in windows 7 successfully, but when I install A.sys in
Win 8.1, error code 39 shows in device manager . It says “Device driver
couldn’t loaded properly”. I don’t know what the problem is.

In both win 7 and win 8.1 I copy B.sys in %SystemRoot%System32/drivers.

I would be very appreciated if someone help me.

— NTDEV is sponsored by OSR Visit the list at:
http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See
http://www.osr.com/careers For our schedule of WDF, WDM, debugging and
other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR Visit the list at:
http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See
http://www.osr.com/careers For our schedule of WDF, WDM, debugging and
other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR Visit the list at:
http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See
http://www.osr.com/careers For our schedule of WDF, WDM, debugging and
other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

You might try turning on gflags loader snaps, which will cause a bunch of kernel debugger messages about how module references are (or are not) getting resolved.

Jan

On Sep 29, 2014, at 1:17 AM, elahe shekuhi > wrote:

I think .inf file is correct. If I install a version of A.sys that hasn’t dependency with B.sys it is installed correctly. But that version of A.sys that has dependency with B.sys installed with error code 39 only in win 8.1.

On Mon, Sep 29, 2014 at 11:25 AM, Martin O’Brien > wrote:
Could you please post the INF?

Just a guess, but I would say that there?s more likely something amiss in your INF than the export driver being the problem.

Thanks,

mm

From: xxxxx@lists.osr.commailto:xxxxx [mailto:xxxxx@lists.osr.commailto:xxxxx] On Behalf Of elahe shekuhi
Sent: Monday, September 29, 2014 12:45 AM

To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Device driver not loaded in win 8.1

it is a function driver, and I write a .inf file for it. I install a root-enumerated device using devcon.

On Mon, Sep 29, 2014 at 11:12 AM, Martin O’Brien > wrote:
What kind of WDM driver? Is it a filter of some type?

Thanks,

mm

From: xxxxx@lists.osr.commailto:xxxxx [mailto:xxxxx@lists.osr.commailto:xxxxx] On Behalf Of elahe shekuhi
Sent: Monday, September 29, 2014 12:35 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Device driver not loaded in win 8.1

No, I use wdm for developing device driver.

On Mon, Sep 29, 2014 at 10:52 AM, Martin O’Brien > wrote:
Are you using KMDF?

mm

From: xxxxx@lists.osr.commailto:xxxxx [mailto:xxxxx@lists.osr.commailto:xxxxx] On Behalf Of elahe shekuhi
Sent: Monday, September 29, 2014 12:15 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Device driver not loaded in win 8.1

Hi,

I write a device driver named A.sys. It has dependency with a kernel dll B.sys.
I can install A.sys in windows 7 successfully, but when I install A.sys in Win 8.1, error code 39 shows in device manager . It says “Device driver couldn’t loaded properly”. I don’t know what the problem is.

In both win 7 and win 8.1 I copy B.sys in %SystemRoot%System32/drivers.

I would be very appreciated if someone help me.

— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>

Standard Answer to “My Driver Doesn’t Load, What Do I Do Now”:

Do you have a debugger attached? Does DriverEntry get called? If so, does DriverEntry return STATUS_SUCCESS. Same question for AddDevice.

Did you check the \windows\inf\setupapi.dev.log file to see if it will shed some light on the problem?

Peter
OSR
@OSRDrivers