驅動程式 - Windows Driver Model (WDM) - 解決Unresolved symbol _DriverEntry@8問題



問題如下:

error LNK2019: unresolved external symbol _DriverEntry@8 referenced in function _GsDriverEntry@8

解法如下:

extern "C"
NTSTATUS DriverEntry(PDRIVER_OBJECT pMyDriver, PUNICODE_STRING pMyRegistry)