ntoskrnl.exe: Add a redirect for IoGetCurrentProcess

Paul Chitescu paulc at voip.null.ro
Sat Dec 20 05:29:42 CST 2008


On Saturday 20 December 2008 13:12:53 Paul Chitescu wrote:
> On Saturday 20 December 2008 07:31:53 Chris Wulff wrote:
> > Redirect for IoGetCurrentProcess to kernel32.GetCurrentProcess
> >
> >   -- Chris Wulff
>
> This is incorrect. Please provide a separate stub for IoGetCurrentProcess
> as it returns something else:
> [...]

Actually, investigating further it would be better to NOT provide at all a 
stub for this function since the _EPROCESS structure is huge and different on 
each Windows version (and sometimes service pack).

IMHO it's better to have the driver abort in a controlled way (calling this 
function) than crashing later trying to access some obscure location in the 
structure returned by it.

Paul Chitescu



More information about the wine-devel mailing list