Sorry, the code should obviously read:
> ProbeForRead(Irp->AssociatedIrp.SystemBuffer,sizeof(ULONG),TYPE_ALIGNMENT(ULONG));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Additionally one has to include rx.h for the FlagOn() macro.
Greetings,
Sebastia Gottschalk