据说是一种很古老的方法

#pragma alloc_text(INIT, DriverEntry)
#pragma alloc_text(PAGE, DispatchFun)
#pragma alloc_text(PAGE, UnLoad) 
原文地址:https://www.cnblogs.com/suanguade/p/4038110.html