FltGetFileNameInformation+VISTA+IRP_MJ_NETWORK_QUERY_OPEN+BSOD
2011-09-09 13:58
411 查看
I'm assuming you're using a minifilter. The most interesting feature of this operation is that one of the parametersis an Irp. This is pretty much the only place in a minifilter where you willactually touch an IRP. That IRP is a fully initialized CREATE IRP
and youcan use it for all your context needs (getting the PID and the user like youwould for any normal create). I don't remember about FltGetFileNameInformation, could be a bug or it couldbe something that simply doesn't make sense in this context. Regardless,
I would suggest that you disallow this request (returnFLT_PREOP_DISALLOW_FASTIO in the preOp) and expect it will come on theregular create path, which is much easier to handle. As Rod pointed out,LUAFV (which is an inbox minifilter enabled by default on all
Vista+ systemsas far as I remember) does it anyway so you're not gaining anything from aperformance perspective. And then there are other gotchas about th
4000
isoperation which IMO do not justify the extra effort.
and youcan use it for all your context needs (getting the PID and the user like youwould for any normal create). I don't remember about FltGetFileNameInformation, could be a bug or it couldbe something that simply doesn't make sense in this context. Regardless,
I would suggest that you disallow this request (returnFLT_PREOP_DISALLOW_FASTIO in the preOp) and expect it will come on theregular create path, which is much easier to handle. As Rod pointed out,LUAFV (which is an inbox minifilter enabled by default on all
Vista+ systemsas far as I remember) does it anyway so you're not gaining anything from aperformance perspective. And then there are other gotchas about th
4000
isoperation which IMO do not justify the extra effort.
相关文章推荐
- FltGetFileNameInformation 函数
- 文件名是否合法的操作(Path.GetInvalidFileNameChars())
- 文件过滤驱动中 IRP_MJ_XX_INFORMATION 查询文件对象是文件还是目录的方法
- IRP_MJ_SET_INFORMATION
- How To Get High Quality Information About Query Performance
- Windows API 之 OpenProcessToken、GetTokenInformation
- How to open robotium-solo-1.4.0 javadoc.jar to get the information of robotium.
- 利用GetInvalidFileNameChars()得到有效的文件名
- 利用GetInvalidFileNameChars()得到有效的文件名
- 使用GetInvalidFileNameChars生成文件名
- 检测用户是否具有administrator权限(OpenThreadToken,OpenProcessToken,GetTokenInformation,AllocateAndInitializeSid和EqualSid)
- ASP.NET中Get和Post的用法 Request.QueryString,Request.Form,Request.Params的区别
- IRP_MJ_INTERNAL_DEVICE_CONTROL
- GetOpenFileName崩溃处理办法
- Tools - Get technical information from the Internet
- 如何在managedQuery()和getContentResolver().query()方法中实现结果去重
- xmlhttp:open方法中的POST、GET参数的区别
- file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- context.getContentResolver().query()详细用法详解
- ubuntu常见错误--could not get lock /var/lib/dpkg/lock -open