HyperDbg Debugger
Loading...
Searching...
No Matches
install.h
Go to the documentation of this file.
1
12#pragma once
13
14//
15// The following ifdef block is the standard way of creating macros which make
16// exporting from a DLL simpler. All files within this DLL are compiled with the
17// LIBHYPERDBG_EXPORTS symbol defined on the command line. This symbol should not
18// be defined on any project that uses this DLL. This way any other project
19// whose source files include this file see LIBHYPERDBG_API functions as being
20// imported from a DLL, whereas this DLL sees symbols defined with this macro as
21// being exported.
22//
23
24#ifdef LIBHYPERDBG_EXPORTS
25# define LIBHYPERDBG_API __declspec(dllexport)
26#else
27# define LIBHYPERDBG_API __declspec(dllimport)
28#endif
29
31// Installer //
33
34#define DRIVER_FUNC_INSTALL 0x01
35#define DRIVER_FUNC_STOP 0x02
36#define DRIVER_FUNC_REMOVE 0x03
37
39// Functions //
41
43InstallDriver(SC_HANDLE SchSCManager, LPCTSTR DriverName, LPCTSTR ServiceExe);
44
46RemoveDriver(SC_HANDLE SchSCManager, LPCTSTR DriverName);
47
49StartDriver(SC_HANDLE SchSCManager, LPCTSTR DriverName);
50
52StopDriver(SC_HANDLE SchSCManager, LPCTSTR DriverName);
53
55ManageDriver(_In_ LPCTSTR DriverName, _In_ LPCTSTR ServiceName, _In_ UINT16 Function);
56
58SetupPathForFileName(const CHAR * FileName,
59 _Inout_updates_bytes_all_(BufferLength) PCHAR FileLocation,
60 ULONG BufferLength,
61 BOOLEAN CheckFileExists);
unsigned short UINT16
Definition BasicTypes.h:53
UCHAR BOOLEAN
Definition BasicTypes.h:35
char CHAR
Definition BasicTypes.h:33
unsigned long ULONG
Definition BasicTypes.h:31
BOOLEAN InstallDriver(SC_HANDLE SchSCManager, LPCTSTR DriverName, LPCTSTR ServiceExe)
Install driver.
Definition install.cpp:23
BOOLEAN SetupPathForFileName(const CHAR *FileName, _Inout_updates_bytes_all_(BufferLength) PCHAR FileLocation, ULONG BufferLength, BOOLEAN CheckFileExists)
Setup file name.
Definition install.cpp:472
BOOLEAN ManageDriver(_In_ LPCTSTR DriverName, _In_ LPCTSTR ServiceName, _In_ UINT16 Function)
BOOLEAN RemoveDriver(SC_HANDLE SchSCManager, LPCTSTR DriverName)
Remove Driver.
Definition install.cpp:254
BOOLEAN StopDriver(SC_HANDLE SchSCManager, LPCTSTR DriverName)
Stop driver.
Definition install.cpp:410
BOOLEAN StartDriver(SC_HANDLE SchSCManager, LPCTSTR DriverName)
Start Driver.
Definition install.cpp:313