阅读:1091回复:0
Walter Oney fileio 例子中的问题,谢谢!!
我再看这个程序时,这里是什么意思:
ULONG dxsize = (sizeof(DEVICE_EXTENSION) + 7) & ~7; ULONG xsize = dxsize + GetSizeofGenericExtension(); status = IoCreateDevice(DriverObject, xsize, &devname, FILE_DEVICE_UNKNOWN, FILE_DEVICE_SECURE_OPEN, FALSE, &fdo); 就是这个dxsize,为什么要这样呢? 谢谢!!! |
|