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

  • Download the Information Governance Survey Benchmark Report to gain insights that can help you further establish business value in your Records and Information Management (RIM) program and across your entire organization. Discover how your peers in the industry are dealing with this evolving information lifecycle management environment and uncover key insights such as: 87% of organizations surveyed have a RIM program in place 8% measure compliance 64% cannot get employees to "let go" of information for …

  • Live Event Date: May 6, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT While you likely have very good reasons for remaining on WinXP after end of support -- an estimated 20-30% of worldwide devices still are -- the bottom line is your security risk is now significant. In the absence of security patches, attackers will certainly turn their attention to this new opportunity. Join Lumension Vice President Paul Zimski in this one-hour webcast to discuss risk and, more importantly, 5 pragmatic risk mitigation techniques …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds