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

  • This paper introduces IBM Java on the IBM PowerLinux 7R2 server and describes IBM's implementation of the Java platform, which includes IBM's Java Virtual Machine and development toolkit.

  • A modern mobile IT strategy is no longer an option, it is an absolute business necessity. Today's most productive employees are not tied to a desk, an office, or a location. They are mobile. And your company's IT strategy has to be ready to support them with easy, reliable, 24/7 access to the business information they need, from anywhere in the world, across a broad range of communication devices. Here's how some of the nation's most progressive corporations are meeting the many needs of their mobile workers …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds