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: April 21, 2015 @ 1:00 p.m. ET / 10:00 a.m. PT For mid-sized companies, the challenge of serving people and providing better service is forcing a re-evaluation of their contact centers to improve customer experiences. While these growing enterprises are driving much of the market's innovation, they must remain nimble in how they operate, and be very responsive to customer needs. This upcoming eSeminar reveals five ways mid-size organizations can gain needed agility and examines how delivering …

  • As virtualization becomes the norm throughout organizations of nearly all sizes, and as more organizations look to private cloud solutions, IT decision makers are increasingly in need of ways to keep storage costs and complexity under control in the face of often-runaway virtual machine (VM) sprawl. Application-aware storage is designed to help achieve these important goals. Read this white paper to learn how application-aware storage allows you to gain VM-level visibility into application performance and …

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date