2009/5/24 Alex Ionescu ionucu@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