[ros-dev] [ros-diffs] [cgutman] 41090: - MajorFunction has IRP_MJ_MAXIMUM_FUNCTION positions - Sorry for so many commits on the same function

Alexander Potashev aspotashev at gmail.com
Sun May 24 21:26:44 CEST 2009


2009/5/24 Alex Ionescu <ionucu at videotron.ca>:
> May I ask, why not use simple C for this?:
>
> DriverBlock->DriverObject->MajorFunction = MajorFunctions;
This won't work.
Btw, this line is indented with 5 spaces O_O

>
> Or if that doesn't work, use a casting trick...
What do you mean? casting to a bogus structure of size
sizeof(PDRIVER_DISPATCH)*IRP_MJ_MAXIMUM_FUNCTION ?


Alexander


More information about the Ros-dev mailing list