这个驱动该怎么写?
小弟最近看了Windows驱动开发~~试着写一个HelloWorld级别的驱动,MSDN中如是写道
/*To define a DriverEntry callback routine, you must first provide a function declaration that Static Driver Verifier (SDV) and other verification tools require, as shown in the following code example:*/DRIVER_INITIALIZE DriverEntry;/*Then, implement your callback routine as follows:*/NTSTATUS DriverEntry( _In_ struct _DRIVER_OBJECT *DriverObject, _In_ PUNICODE_STRING RegistryPath ) { // Function body }
DRIVER_INITIALIZE DriverEntry;extern "C" NTSTATUS DriverEntry(__in PDRIVER_OBJECT pDriverObject,__in PUNICODE_STRING pRegistryPath )