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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:29:08+00:00 2026-05-11T05:29:08+00:00

I want to install a driver for Ext2 partitions under Windows XP, the installation

  • 0

I want to install a driver for Ext2 partitions under Windows XP, the installation will be done with a self written Inno Setup script. Which API functions do I need to call for this? From what I googled so far I don’t seem to be needing an inf file, and therefore no call to SetupCopyOEMInf. But I don’t know what to do instead…

Please enlighten me!

  • 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. 2026-05-11T05:29:09+00:00Added an answer on May 11, 2026 at 5:29 am

    As you asked which API functions are required to install a driver here is some code I use to load a driver in C:

    bool LoadDriver( const char * cpDriverPath, const char * cpDriverName ) {     SC_HANDLE hSCService;     SC_HANDLE hSCManager;      hSCManager = OpenSCManager( NULL, NULL, SC_MANAGER_ALL_ACCESS );     if( hSCManager == NULL )         return false;      hSCService = CreateService( hSCManager, cpDriverName, cpDriverName,                                 SERVICE_ALL_ACCESS, SERVICE_KERNEL_DRIVER,                                 SERVICE_DEMAND_START, SERVICE_ERROR_NORMAL,                                 cpDriverPath, NULL, NULL, NULL, NULL, NULL );      if( hSCService == NULL && GetLastError() == ERROR_SERVICE_EXISTS )         hSCService = OpenService( hSCManager, cpDriverName, SERVICE_ALL_ACCESS );      if( hSCService == NULL )         return false;      if( !StartService( hSCService, 0, NULL ) )     {         if( GetLastError() != ERROR_SERVICE_ALREADY_RUNNING )             return false;     }      CloseServiceHandle( hSCManager );     CloseServiceHandle( hSCService );      return true; } 

    You probably want to use SERVICE_ BOOT_ START for a file system driver instead of SERVICE_ DEMAND_ START. If you cant write an Inno script to do the above you could always make a small EXE from the above and have Inno run that as a post installation.

    If you want to go down the INF route, check out this Microsoft article.

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

Sidebar

Related Questions

I want to install a third-party libusb driver during a Windows Setup installation. I
I am trying to install a driver during a windows-setup project. The first step
On Windows 7, when we install an unsigned driver, it will pop-up a Windows security
I have a kernel service driver , i want to install it with an
I want install Android version 1.6 SDK. I already have Android development setup with
I want to install a localhost server on a tablet with windows RT 32
I want to install typo3 using dummy and source packages, how is it done
I need to install the libusb-win32 driver on Windows 7 64 bit machines. This
I currently have TeamCity CI installed on a windows server. I want to install
I want to install PDO driver for MySQL but have no idea how to.

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.