|
|
|
@ -33,6 +33,8 @@
|
|
|
|
|
using nt_load_driver_t = NTSTATUS(__fastcall*)(PUNICODE_STRING);
|
|
|
|
|
using nt_unload_driver_t = NTSTATUS(__fastcall*)(PUNICODE_STRING);
|
|
|
|
|
|
|
|
|
|
namespace driver
|
|
|
|
|
{
|
|
|
|
|
namespace util
|
|
|
|
|
{
|
|
|
|
|
inline bool delete_service_entry(const std::string& service_name)
|
|
|
|
@ -181,8 +183,6 @@ namespace util
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace driver
|
|
|
|
|
{
|
|
|
|
|
inline bool load(const std::string& drv_path, const std::string& service_name)
|
|
|
|
|
{
|
|
|
|
|
if (!util::enable_privilege(L"SeLoadDriverPrivilege"))
|
|
|
|
|