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

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


Error with OSR driver loader

jguo5258jguo5258 Member Posts: 28

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: 8,052

    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: 28
    edited June 2019

    @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: 8,052

    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: 28

    @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: 8,052

    Peter Viscarola
    OSR
    @OSRDrivers

  • jguo5258jguo5258 Member Posts: 28
    edited June 2019
  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 8,052

    "[" ??

    Peter Viscarola
    OSR
    @OSRDrivers

  • Tim_RobertsTim_Roberts Member - All Emails Posts: 13,605

    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: 8,052

    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
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Internals & Software Drivers 30 Nov 2020 LIVE ONLINE
Writing WDF Drivers 7 Dec 2020 LIVE ONLINE
Developing Minifilters Early 2021 LIVE ONLINE