Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Sept/Oct 2019 Issue of The NT Insider available


Download PDF here: http://insider.osr.com/2019/ntinsider_2019_01.pdf

It’s a particularly BIG issue, too: 40 pages of technical goodness, ranging from WDF to Minifilters. Check it out.
Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

Error with OSR driver loader

jguo5258jguo5258 Member Posts: 14

The error box says that the driver has been blocked from loading when I try loading my driver.. Any fixes?

Comments

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 7,409

    The very first thing I'd do is never use OSR driver loader for anything. From OSR Online where OSR Driver Loader is hosted:

    Peter

    Peter Viscarola
    OSR
    @OSRDrivers

  • jguo5258jguo5258 Member Posts: 14
    edited June 19

    @Peter_Viscarola_(OSR) said:
    The very first thing I'd do is never use OSR driver loader for anything. From OSR Online where OSR Driver Loader is hosted:

    Peter

    what should I use?
    Also, how would I view kernel messages if I run a driver 's released mode? Ive heard that kdprint and dbgprint only worked in debug compilations...

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 7,409

    what should I use

    It depends on what type of driver you have. Is it a PnP driver or a non-PnP driver?

    If it's PnP, you need to install it using an INF file and typically via Device Manager. If it's a non-PnP driver, you COULD install it with an INF file... but you might just install it like any other service on Windows (using the Service Control Manager).

    how would I view kernel messages if I run a driver 's released mode? Ive heard that kdprint and dbgprint only worked in debug compilations...

    The right answer here is to hook up the Windows kernel debugger (WinDbg). DbgPrint works in both release and debug configurations. KdPrint works only in Debug configurations.

    Peter

    Peter Viscarola
    OSR
    @OSRDrivers

  • jguo5258jguo5258 Member Posts: 14

    @Peter_Viscarola_(OSR) said:

    what should I use

    It depends on what type of driver you have. Is it a PnP driver or a non-PnP driver?

    If it's PnP, you need to install it using an INF file and typically via Device Manager. If it's a non-PnP driver, you COULD install it with an INF file... but you might just install it like any other service on Windows (using the Service Control Manager).

    how would I view kernel messages if I run a driver 's released mode? Ive heard that kdprint and dbgprint only worked in debug compilations...

    The right answer here is to hook up the Windows kernel debugger (WinDbg). DbgPrint works in both release and debug configurations. KdPrint works only in Debug configurations.

    Peter

    How would I install a driver with the service control manager? Do you know a tutorial for this?

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 7,409

    Peter Viscarola
    OSR
    @OSRDrivers

  • jguo5258jguo5258 Member Posts: 14
    edited June 20
  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 7,409

    "[" ??

    Peter Viscarola
    OSR
    @OSRDrivers

  • Tim_RobertsTim_Roberts Member - All Emails Posts: 13,063

    The message as it was sent to the notification list said "how come I don't see my driver in the service manager or device manager?" I assume he edited it after finding the driver in the services list.

    Tim Roberts, [email protected]
    Providenza & Boekelheide, Inc.

  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 7,409

    The message as it was sent...

    You email people get ALL the cool stuff (it doesn't LOOK like he edited his message... so, hmmmmm... now we're losing posts, it seems?)

    Peter

    Peter Viscarola
    OSR
    @OSRDrivers

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
Writing WDF Drivers 21 Oct 2019 OSR Seminar Space & ONLINE
Internals & Software Drivers 18 Nov 2019 Dulles, VA
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Developing Minifilters 27 Apr 2020 OSR Seminar Space & ONLINE