The second parameter we passed 0, and it says to specify the number of bytes to create for the device extension.
第二个参数我们传0进去,这个参数是指定用来创建新设备扩展的字节数的。
I find it easiest to mimic the pattern of structure declaration used in the official DDK, so I declared this device extension as a structure with a tag as well as a type and pointer-to-type name.
很容易模仿在正式的DD K种使用的结构声明的模式,所以我把这个设备扩展名声明称一个结构,伴随标签和类型以及类型指针名称。
If the raw device is not large enough for the new chunk end offset, the extension will fail.
如果原始设备对于新块结束偏移量不够大,扩展就会失败。
应用推荐