.CODE
myAdd PROC
mov rax,rcx
add rax,rdx
ret
myAdd ENDP
END
EXTERN_C ULONG64 myAdd(ULONG64 u1, ULONG64 u2);
#include <ntddk.h>
LIST_ENTRY listHead;
VOID Unload(IN PDRIVER_OBJECT pDriverObject)
{
KdPrint(("Goodbye driver\n"));
}
EXTERN_C ULONG64 myAdd(ULONG64 u1, ULONG64 u2);
NTSTATUS DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath
)
{
KdPrint(("hello driver\n"));
ULONG64 Addr= myAdd(10, 10);
KdPrint(("读取值=%0x ++++2+++\n", Addr));
return STATUS_SUCCESS;
}