Update loadup.hpp

master
xerox 4 years ago
parent 98abe65825
commit eca3dd5d17

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

Loading…
Cancel
Save