lsxredrain
驱动中牛
驱动中牛
  • 注册日期2006-08-31
  • 最后登录2008-10-18
  • 粉丝1
  • 关注0
  • 积分540分
  • 威望421点
  • 贡献值1点
  • 好评度420点
  • 原创分4分
  • 专家分0分
阅读:2245回复:2

请问IrpSp->Parameters.Read.ByteOffset.QuadPart 的含义

楼主#
更多 发布于:2007-03-26 14:52
  1.什么时候 IrpSp->Parameters.Read.ByteOffset.QuadPart ==0?
2 IrpSp->Parameters.Read.ByteOffset.QuadPart ==0 时是不是就是意味着到了文件头?
谢谢@!
devia
论坛版主
论坛版主
  • 注册日期2005-05-14
  • 最后登录2016-04-05
  • 粉丝3
  • 关注0
  • 积分1029分
  • 威望712点
  • 贡献值1点
  • 好评度555点
  • 原创分8分
  • 专家分4分
沙发#
发布于:2007-03-26 16:07
Re:请问IrpSp->Parameters.Read.ByteOffset.QuadPa
Pointer to a LARGE_INTEGER variable that specifies the starting byte offset within the file of the data to be read.
Under certain circumstances, this parameter might validly contain a NULL or negative value. For example, if the file object was opened for synchronous I/O, and one of the following conditions is true, this indicates that the current file position should be used instead of an explicit file offset value:

IrpSp->Parameters.Read.ByteOffset == NULL

IrpSp->Parameters.Read.ByteOffset.LowPart == FILE_USE_FILE_POINTER_POSITION and IrpSp->Parameters.Read.ByteOffset.HighPart == -1.
人总在矛盾中徘徊。。。
lsxredrain
驱动中牛
驱动中牛
  • 注册日期2006-08-31
  • 最后登录2008-10-18
  • 粉丝1
  • 关注0
  • 积分540分
  • 威望421点
  • 贡献值1点
  • 好评度420点
  • 原创分4分
  • 专家分0分
板凳#
发布于:2007-03-26 17:32
谢谢,问题解决了,原来不是IrpSp->Parameters.Read.ByteOffset.LowPart 的问题,是改名时没有处理好,在SfWrite中再判断一下是否需要加密就解决好了
游客

返回顶部