I am getting error: LNK2019 unresolved external symbol DriverEntry referenced in function FxDriverEntryWorker
With my code: (The code is C++ Kernal mode Driver [Empty])
#include <ntdef.h>
#include <ntifs.h>
#include <ntddk.h>
#include <windef.h>
#include <ntstrsafe.h>
#include "driver.h"
#include "memory.h"
#include "hook.h"
extern "C" NTSTATUS EntryPoint(PDRIVER_OBJECT driver_obj, PUNICODE_STRING registry_path)
{
UNREFERENCED_PARAMETER(driver_obj);
UNREFERENCED_PARAMETER(registry_path);
if (hook::call_kernel_function(&hook::hook_handler)) {
DbgPrintEx(0, 0, "NtOpenCompositionSurfaceSectionInfo Function was hooked!\n");
return STATUS_SUCCESS;
}
else {
DbgPrintEx(0, 0, "Function hook failed\n");
return STATUS_FAILED_DRIVER_ENTRY;
}
}
I have tried rebuilding as different types,