DriverService C++ Class

Environment:

DriverService is designed to be included in C++ projects which support Microsoft Foundation Classes (MFC).

DriverService is specifically designed to run on the following platforms:

  • Windows NT 4, Windows NT 4 Server
  • Windows 2000 Pro, Server, Advanced Server
  • Windows XP Home, Pro

Purpose


The DriverService code implements the CDriverService class. This class is designed to simplify the following client tasks:

  • Install a driver
  • Start a driver
  • Stop a driver
  • Query as to whether a driver is currently running

It is up to the user to understand the ramifications of their actions when using DriverService. Modifying or removing a service may lead to a machine being unable to boot or run properly. The L5 Software Group bears no responsibility for problems resulting from the misuse of this software.

Please refer to the sample application code (DriverServiceTest.cpp) to see how this class is used. In addition, the download able source contains a complete description of the API for this class.

Downloads

Download source - 22 Kb


Comments

  • Where could I obtain generic drivers iocontrol codes ans more specific ?

    Posted by Legacy on 03/31/2003 12:00am

    Originally posted by: Jean-jacques Peyronel

    I want to use an existing generic driver but I don't know where to find code.

    I'm trying to drive the PCI port under Win XP with the common PCI driver from microsoft but i don't find any command.

    I would like to drive default ACPI fan but it is the same trouble.

    I've looking in thez sdk doc but nothing, a generic description of CreateFile and iocontrol very too generic

    If someone have an idea or a site to visit thank par avance.

    I've read "the windows 2000 device driver Book" (excellent) by Art baker and Jerry Lozano but I've not found more info in the exchange between the user and kernel mode in the frame of an application.

    I don't want to write a driver whitch exist, I just want to know how to use it or where I could learn.

    Merci.

    Reply
  • is there a win9x-version available also?

    Posted by Legacy on 05/27/2002 12:00am

    Originally posted by: cfischer

    is there a win9x-version available also?
    I'm searching for installing device drivers in win 9x also

    Reply
  • Where I can see, start and stop my driver?

    Posted by Legacy on 04/15/2002 12:00am

    Originally posted by: server_mouse

    Subj.
    In DeviceManager it is not seen. In the list of Services too is not present.
    Is it impossible?
    System : W2k.

    Reply
  • I think that you can include Unistall method too.

    Posted by Legacy on 04/13/2002 12:00am

    Originally posted by: Alexi Jordanov

    Hi,

    I look your sample. It's very simple and clear! I want to give some advise. I think that including uninstall() in your source code will be a good idea.

    Also I want to ask you where can I found more information about writing sys files for drivers?

    Best regards,
    Alex

    Reply
  • Is this applicable for Printer drivers?

    Posted by Legacy on 04/12/2002 12:00am

    Originally posted by: Raymond

    Hi,

    Is this DriverService class applicable for installing printer driver?

    Thanks!

    Reply
  • Is simillar code available for Win32 applications

    Posted by Legacy on 04/10/2002 12:00am

    Originally posted by: Sharath Kumar T

    Great work. But since I do not use MFC but Win32 Apis, Is simillar Code that can install, start and stop a service or driver avalilable for Win32 applications.

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • With JRebel, developers get to see their code changes immediately, fine-tune their code with incremental changes, debug, explore and deploy their code with ease (both locally and remotely), and ultimately spend more time coding instead of waiting for the dreaded application redeploy to finish. Every time a developer tests a code change it takes minutes to build and deploy the application. JRebel keeps the app server running at all times, so testing is instantaneous and interactive.

  • The latest release of SugarCRM's flagship product gives users new tools to build extraordinary customer relationships. Read an in-depth analysis of SugarCRM's enhanced ability to help companies execute their customer-facing initiatives from Ovum, a leading technology research firm.

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds