阅读:866回复:1
Walter Oney feature & generic sample contest.
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. 各位有没有什么办法? |
|
沙发#
发布于:2002-11-26 19:59
没人来抢分?
|
|