use_id
驱动中牛
驱动中牛
  • 注册日期2002-03-11
  • 最后登录2006-01-07
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望1点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:867回复:1

Walter Oney feature & generic sample contest.

楼主#
更多 发布于:2002-11-25 19:36
Walter Oney feature & generic sample contest.

谁来讲讲下面这段代码的意思?这是在Walter Oney书所附光盘的feature sample中的代码。

// Initialize to use the GENERIC.SYS library

pdx->pgx = (PGENERIC_EXTENSION) ((PUCHAR) pdx + dxsize);

GENERIC_INIT_STRUCT gis = {sizeof(GENERIC_INIT_STRUCT)};
gis.DeviceObject = fdo;
gis.Pdo = pdo;
gis.Ldo = pdx->LowerDeviceObject;
gis.RemoveLock = &pdx->RemoveLock;
gis.StartDevice = StartDevice;
gis.StopDevice = StopDevice;
gis.RemoveDevice = RemoveDevice;
RtlInitUnicodeString(&gis.DebugName, LDRIVERNAME);
gis.Flags = GENERIC_SURPRISE_REMOVAL_OK;

请注意:
上面的这段代码和与之Generic sample有关的代码。feature sample在build 时,它是怎么处理的?当我 delete WDMBook\\Generic sample 时,feature sample build no pass.  我很讨厌 a project can\'t be build by oneself. 各位有没有什么办法?
use_id
驱动中牛
驱动中牛
  • 注册日期2002-03-11
  • 最后登录2006-01-07
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望1点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2002-11-26 19:59
没人来抢分?
游客

返回顶部