Minifilter Generated IO’s

上传人:仙*** 文档编号:244143771 上传时间:2024-10-02 格式:PPT 页数:11 大小:52KB
返回 下载 相关 举报
Minifilter Generated IO’s_第1页
第1页 / 共11页
Minifilter Generated IO’s_第2页
第2页 / 共11页
Minifilter Generated IO’s_第3页
第3页 / 共11页
点击查看更多>>
资源描述
,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Fifth level,2004 Microsoft Corporation.All rights reserved.,*,Minifilter Generated,IOs,1,2004 Microsoft Corporation.All rights reserved.,Benefits of Using Filter Manager Routines for IO Generation,Operations can be targeted at a given instance,Only seen by instances,BELOW,the specified instance,You usually specify your current instance,Solves recursive IO problems,Minifilter unload will wait for outstanding operations,2,2004 Microsoft Corporation.All rights reserved.,Creating/Opening files,FltCreateFile,(),Filter Manager equivalent to,IoCreateFileSpecifyDeviceObjectHint,(),Optionally specify instance,CREATE and all other operations to this handle will be seen by all filters,BELOW,the given instance,If instance is NULL,request will go to the top of the device stack,Returns a handle that can be used with,Zw,()and Nt()APIs,These operations will be properly targeted,Includes“options”parameter like,IoCreateFileSpecifyDeviceObjectHint,(),IO_IGNORE_SHARE_ACCESS_CHECK,allows share access checks to be bypassed,3,2004 Microsoft Corporation.All rights reserved.,Reading and writing files,FltReadFile(),/,FltWriteFile,(),Equivalent to rolling your own READ/WRITE IRP in legacy model,Specify instance,All instances,BELOW,specified instance will see operation,Takes FileObject,not handle,Works with any,FileObject,(even those opened in user mode),Supports Synchronous as well as Asynchronous operations,Determined by whether or not an,AsyncCallback,parameter is passed in,4,2004 Microsoft Corporation.All rights reserved.,Reparse points,FltTagFile,(),Set a reparse point on the given file,Equivalent to rolling your own,FSCTL_SET_REPARSE_POINT,IRP,Specify instance,All instances,BELOW,specified instance will see operation,Takes FileObject,not handle,Works with any FileObject,FltUntagFile,(),Remove a reparse point from the given file,Equivalent to rolling your own,FSCTL_DELETE_REPARSE_POINT,IRP,Specify instance,All instances,BELOW,specified instance will see operation,Takes FileObject,not handle,Works with any FileObject,5,2004 Microsoft Corporation.All rights reserved.,Generating your own IOs,FltAllocateCallbackData,(),Specify instance,All instances,BELOW,specified instance will see operation,Optionally specify,Optionally specify,FileObject,You setup IRP_MAJOR,IRP_MINOR,and operation specific parameters,FltPerformSynchronousIo,(),Issues the IO synchronously,FltPerformAsynchronousIo,(),Issues the IO asynchronously,Specify callback routine and context,Callback routine may be called at DPC level,FltReissueSynchronousIo,(),6,2004 Microsoft Corporation.All rights reserved.,Generating your own IOs,FltReuseCallbackData,(),Will reinitialize structure for use with another operation to the same Instance and FileObject,Cannot change Instance or FileObject,Faster then freeing and reallocating,You re-setup IRP_MAJOR,IRP_MINOR,operation specific parameters,FltFreeCallbackData,(),Must free all CallbackData structures you allocate,7,2004 Microsoft Corporation.All rights reserved.,Reissue IO,FltReissueSynchronousIo,(),Given an arbitrary CallbackData,will issue a synchronous operation using the current parameter definitions,Cannot change instance,All instances,BELOW,your instance will see operation,Cannot be called from DPC level,Sample usage:,Reissuing a create request with the,FILE_OPEN_REPARSE_POINT,flag set because the original request failed with,STATUS_REPARSE,8,2004 Microsoft Corporation.All rights reserved.,Canceling File Open,FltCancelFileOpen,(),Allows a filter to close a file that was opened by the file system driver.,Should be called from the post-operation routine after a successful create completion.,The,IoCancelFileOpen,(),bug has been fixed,9,2004 Microsoft Corporation.All rights reserved.,General Purpose IO Routines,FltQueryInformationFile,FltSetInformationFile,FltQueryVolumeInformationFile,FltSetVolumeInformation,FltQuerySecurityObject,FltFlushBuffers,FltFsControlFile,FltDeviceIoControlFile,10,2004 Microsoft Corporation.All rights reserved.,Future,May add more routines for common file operations,We are open to requests,11,2004 Microsoft Corporation.All rights reserved.,
展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 管理文书 > 施工组织


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!