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 4043088
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:05:06+00:00 2026-05-20T13:05:06+00:00

Windows Mobile: As the final step of unloading a driver, I am trying to

  • 0

Windows Mobile:
As the final step of unloading a driver, I am trying to delete the registry subkey (HKLM\Drivers\BuiltIn\XYZ) using RegDeleteKey API and it fails returning ERROR_ACCESS_DENIED code.


Below are the steps I followed:
1. FindFirstDevice
2. Stored the key and needed values for later use in case I need to reload the driver (Used RegOpenKeyEx and RegQueryValueEx APIs)
3. DeactivateDevice
4. RegCloseKey
5. RegDeleteKey

Steps 1 thru 4 work pretty fine, however, step 5 fails. Please suggest.

  • 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-20T13:05:06+00:00Added an answer on May 20, 2026 at 1:05 pm

    The reasons could be

    • Make sure you deleted each of the contained value pairs

    • You maybe trying to delete key that are not permitted to be deleted by anyone. Try changing to another key which you are able to delete for sure, and then test the code again.

    • You might forget to close the handle to this key (HKLM\szSubKey) elsewhere. You may create a new application and test the above code there.

    • If it works fine in third case, the key might be used by the system or another process so you cannot delete it.

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

Sidebar

Related Questions

While making some final tests of a class-library that I'm writing for Windows Mobile
Using Windows Mobile 6.5 and C# The CharacterCasing property seems to be missing from
I have a windows mobile app (mymobiler) that i am trying to install and
I'm creating a Windows Mobile 6 application using MFC Single Document Interface with CFormView
I am building a web/mobile social service application for Windows Phone. As a final
I can launch my windows mobile application using the emulator via visual studio in
We're doing windows mobile development using the WM6 Professional emulator through visual studio 2008
The setup of my Windows Mobile app is created using VS2008. It contains a
In Windows Mobile I am using FindFirstFile/FindNextFile to search for some files. As part
In Windows Mobile, when you open Internet Explorer and type in a URL that

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.