阅读:5496回复:0
发送IRP_MN_QUERY_DIRECTORY枚举文件出问错,请大侠帮忙
invoke ExAllocatePool,NonPagedPool,(sizeof FILE_DIRECTORY_INFORMATION)*200
mov [esi].UserBuffer,eax lea eax, event mov [esi].UserEvent,eax lea eax,ioStatus mov [esi].UserIosb,eax push lpFileobject pop [esi].Tail.Overlay.OriginalFileObject invoke KeGetCurrentThread mov [esi].Tail.Overlay.Thread,eax mov [esi].RequestorMode,KernelMode assume esi:nothing IoGetNextIrpStackLocation pIrp mov irpSp,eax mov esi,eax assume esi:ptr IO_STACK_LOCATION mov [esi].MajorFunction,IRP_MJ_DIRECTORY_CONTROL mov [esi].MinorFunction,IRP_MN_QUERY_DIRECTORY mov [esi].Flags,SL_RESTART_SCAN or SL_RETURN_SINGLE_ENTRY mov [esi].Control,0 push lpDeviceObject pop [esi].DeviceObject push lpFileobject pop [esi].FileObject mov [esi].Parameters.QueryDirectory._Length,200*(sizeof FILE_DIRECTORY_INFORMATION) mov [esi].Parameters.QueryDirectory.FileInformationClass,FileDirectoryInformation mov [esi].Parameters.QueryDirectory.FileIndex,0 lea eax,aFileName mov [esi].Parameters.QueryDirectory.FileName,eax 在IoCallDriver中出错,有哪位大侠知道,请指教. |
|
|