HLK 測試時遇到的如下錯誤:
修改意見:
呼叫ExAllocatePoolWithTag函數(shù)分配內(nèi)存時,需要把NonPagedPool改成NonPagedPoolNx。
檢查對ExInitializeNPagedLookasideList呼叫的地方,其中Allocate參數(shù)需要是驅(qū)動自定義的內(nèi)存分配函數(shù),使用NonPagedPoolNx類型。
微軟官方說明:
微軟官方說明文檔:
https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/ne-wdm-_pool_type