HyperDbg Debugger
Toggle main menu visibility
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
42
BOOLEAN
43
InstallDriver
(SC_HANDLE SchSCManager, LPCTSTR DriverName, LPCTSTR ServiceExe);
44
45
BOOLEAN
46
RemoveDriver
(SC_HANDLE SchSCManager, LPCTSTR DriverName);
47
48
BOOLEAN
49
StartDriver
(SC_HANDLE SchSCManager, LPCTSTR DriverName);
50
51
BOOLEAN
52
StopDriver
(SC_HANDLE SchSCManager, LPCTSTR DriverName);
53
54
BOOLEAN
55
ManageDriver
(_In_ LPCTSTR DriverName, _In_ LPCTSTR ServiceName, _In_
UINT16
Function);
56
57
BOOLEAN
58
SetupPathForFileName
(
const
CHAR
* FileName,
59
_Inout_updates_bytes_all_(BufferLength) PCHAR FileLocation,
60
ULONG
BufferLength,
61
BOOLEAN
CheckFileExists);
UINT16
unsigned short UINT16
Definition
BasicTypes.h:53
BOOLEAN
UCHAR BOOLEAN
Definition
BasicTypes.h:35
CHAR
char CHAR
Definition
BasicTypes.h:33
ULONG
unsigned long ULONG
Definition
BasicTypes.h:31
InstallDriver
BOOLEAN InstallDriver(SC_HANDLE SchSCManager, LPCTSTR DriverName, LPCTSTR ServiceExe)
Install driver.
Definition
install.cpp:23
SetupPathForFileName
BOOLEAN SetupPathForFileName(const CHAR *FileName, _Inout_updates_bytes_all_(BufferLength) PCHAR FileLocation, ULONG BufferLength, BOOLEAN CheckFileExists)
Setup file name.
Definition
install.cpp:472
ManageDriver
BOOLEAN ManageDriver(_In_ LPCTSTR DriverName, _In_ LPCTSTR ServiceName, _In_ UINT16 Function)
RemoveDriver
BOOLEAN RemoveDriver(SC_HANDLE SchSCManager, LPCTSTR DriverName)
Remove Driver.
Definition
install.cpp:254
StopDriver
BOOLEAN StopDriver(SC_HANDLE SchSCManager, LPCTSTR DriverName)
Stop driver.
Definition
install.cpp:410
StartDriver
BOOLEAN StartDriver(SC_HANDLE SchSCManager, LPCTSTR DriverName)
Start Driver.
Definition
install.cpp:313
hyperdbg
libhyperdbg
header
install.h
Generated by
1.17.0