TDL/Source/Furutaka/instdrv.h

56 lines
1.2 KiB
C
Raw Permalink Normal View History

2016-02-04 12:42:05 +08:00
/*******************************************************************************
*
2017-04-17 19:45:41 +08:00
* (C) COPYRIGHT AUTHORS, 2015 - 2017, portions (C) Mark Russinovich, FileMon
2016-02-04 12:42:05 +08:00
*
* TITLE: INSTDRV.H
*
* VERSION: 1.10
*
2017-04-17 19:45:41 +08:00
* DATE: 17 Apr 2017
2016-02-04 12:42:05 +08:00
*
* Common header file for the program SCM usage.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
* TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
* PARTICULAR PURPOSE.
*
*******************************************************************************/
2017-04-17 19:45:41 +08:00
#pragma once
2016-02-04 12:42:05 +08:00
BOOL scmInstallDriver(
2017-04-17 19:45:41 +08:00
_In_ SC_HANDLE SchSCManager,
_In_ LPCTSTR DriverName,
_In_opt_ LPCTSTR ServiceExe
);
2016-02-04 12:42:05 +08:00
BOOL scmStartDriver(
2017-04-17 19:45:41 +08:00
_In_ SC_HANDLE SchSCManager,
_In_ LPCTSTR DriverName
);
2016-02-04 12:42:05 +08:00
BOOL scmOpenDevice(
2017-04-17 19:45:41 +08:00
_In_ LPCTSTR DriverName,
_Inout_opt_ PHANDLE lphDevice
);
2016-02-04 12:42:05 +08:00
BOOL scmStopDriver(
2017-04-17 19:45:41 +08:00
_In_ SC_HANDLE SchSCManager,
_In_ LPCTSTR DriverName
);
2016-02-04 12:42:05 +08:00
BOOL scmRemoveDriver(
2017-04-17 19:45:41 +08:00
_In_ SC_HANDLE SchSCManager,
_In_ LPCTSTR DriverName
);
2016-02-04 12:42:05 +08:00
BOOL scmUnloadDeviceDriver(
2017-04-17 19:45:41 +08:00
_In_ LPCTSTR Name
);
2016-02-04 12:42:05 +08:00
BOOL scmLoadDeviceDriver(
2017-04-17 19:45:41 +08:00
_In_ LPCTSTR Name,
_In_opt_ LPCTSTR Path,
_Inout_ PHANDLE lphDevice
);