HyperDbg/hyperdbg/hyperlog/code/UnloadDll.c

35 lines
708 B
C
Raw Permalink Normal View History

2023-07-06 16:12:28 +09:00
/**
* @file UnloadDll.c
* @author Sina Karvandi (sina@hyperdbg.org)
* @brief Unloading DLL in the target Windows
*
* @version 0.4
* @date 2023-07-06
*
* @copyright This project is released under the GNU Public License v3.
*
*/
#include "pch.h"
//
// We'll add these functions, so whenever HyperDbg's driver is unloaded
// DllUnload will be called to unload this dll from the memory.
// this way we can remove the HyperDbg after unloading as there is no
// other module remains loaded in the memory.
//
NTSTATUS
DllInitialize(
_In_ PUNICODE_STRING RegistryPath)
{
2024-03-03 22:12:23 +09:00
UNREFERENCED_PARAMETER(RegistryPath);
2023-07-06 16:12:28 +09:00
return STATUS_SUCCESS;
}
NTSTATUS
2026-05-30 15:54:20 +02:00
DllUnload(VOID)
2023-07-06 16:12:28 +09:00
{
return STATUS_SUCCESS;
}