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

  • Live Event Date: December 11, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT Market pressures to move more quickly and develop innovative applications are forcing organizations to rethink how they develop and release applications. The combination of public clouds and physical back-end infrastructures are a means to get applications out faster. However, these hybrid solutions complicate DevOps adoption, with application delivery pipelines that span across complex hybrid cloud and non-cloud environments. Check out this …

  • VMware vCloud® Government Service provided by Carpathia® is an enterprise-class hybrid cloud service that delivers the tried and tested VMware capabilities widely used by government organizations today, with the added security and compliance assurance of FedRAMP authorization. The hybrid cloud is becoming more and more prevalent – in fact, nearly three-fourths of large enterprises expect to have hybrid deployments by 2015, according to a recent Gartner analyst report. Learn about the benefits of …

Most Popular Programming Stories

More for Developers

RSS Feeds