Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5986733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:42:51+00:00 2026-05-22T22:42:51+00:00

Some drivers on Windows, like Null and Beep , can be arbitrarily stopped and

  • 0

Some drivers on Windows, like Null and Beep, can be arbitrarily stopped and re-started through the ControlService(..., SERVICE_CONTROL_STOP, ...) operation. Most other drivers, however, cannot be stopped and restarted while the system is running.

I’m making my own driver. How can I tell Windows that my driver can be stopped?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:42:51+00:00Added an answer on May 22, 2026 at 10:42 pm

    It turns out that you need to add a DriverUnload function:

    VOID NTAPI DriverUnload(IN DRIVER_OBJECT *DriverObject) { }
    
    NTSTATUS NTAPI DriverEntry(IN PDRIVER_OBJECT DriverObject,
                               IN PUNICODE_STRING RegistryPath)
    {
        DriverObject->DriverUnload = DriverUnload; // <--- add this
        return STATUS_SUCCESS;
    }
    

    However, this is only sufficient if you’re linking with /DRIVER.
    If you’re linking with /DRIVER:WDM (meaning that IMAGE_DLLCHARACTERISTICS_WDM_DRIVER is set in the DllCharacteristics field) then it seems like this isn’t sufficient. I think you may need to do more things, like handling IRPs as well. So check that too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know in Java, when using PreparedStatement with parameters, some JDBC drivers will optimize
I have a favorite table containing some fields like login_id,driver_id(One login_id may have many
For Javascript some testing-frameworks exist, like JSUnit or js-test-driver. They are fine, but they
This is under Windows 7 64 bit. I downloaded the 64 bit drivers and
I want to code drivers in C in windows XP/VISTA/7,though I think its very
Debug Messages from the Windows Kernel Drivers? I am using DbgPrint and DebugView currently,
Do the windows built in com port drivers support non-standard baudrates? (actually does windows
I am having some trouble updating UMDF drivers using devcon during a standard code-deploy-debug
I created a Windows Qt C++ application that performs some SQL queries. This application
I remember reading some books about Linux Device drivers around the end of my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.