Re: [PATCH 1/2] ntoskrnl.exe: Implement IoGetCurrentProcess and KeGetCurrentThread.

2012-10-04 Thread Christian Costa
2012/10/4 Thomas Faber > On 2012-10-04 13:07, Christian Costa wrote: > > 2012/10/4 Paul Chitescu > >> AFAIK the structure differs for each major version of Windows and some > SP > >> too. > >> > >> > > I was expecting something like this. :( > > > > > >> At the minimum I saw some drivers expecti

Re: [PATCH 1/2] ntoskrnl.exe: Implement IoGetCurrentProcess and KeGetCurrentThread.

2012-10-04 Thread Thomas Faber
On 2012-10-04 13:07, Christian Costa wrote: > 2012/10/4 Paul Chitescu >> AFAIK the structure differs for each major version of Windows and some SP >> too. >> >> > I was expecting something like this. :( > > >> At the minimum I saw some drivers expecting that at the returned pointer >> to be >> a

Re: [PATCH 1/2] ntoskrnl.exe: Implement IoGetCurrentProcess and KeGetCurrentThread.

2012-10-04 Thread Christian Costa
2012/10/4 Paul Chitescu > On Thursday 04 October 2012 08:25:13 am Dmitry Timoshkov wrote: > > Christian Costa wrote: > > > PEPROCESS WINAPI IoGetCurrentProcess(void) > > > { > > > -FIXME("() stub\n"); > > > -return NULL; > > > +TRACE("()\n"); > > > + > > > +/* Return current pr

Re: [PATCH 1/2] ntoskrnl.exe: Implement IoGetCurrentProcess and KeGetCurrentThread.

2012-10-04 Thread Paul Chitescu
On Thursday 04 October 2012 08:25:13 am Dmitry Timoshkov wrote: > Christian Costa wrote: > > PEPROCESS WINAPI IoGetCurrentProcess(void) > > { > > -FIXME("() stub\n"); > > -return NULL; > > +TRACE("()\n"); > > + > > +/* Return current process id since PEPROCESS is opaque and drive

Re: [PATCH 1/2] ntoskrnl.exe: Implement IoGetCurrentProcess and KeGetCurrentThread.

2012-10-03 Thread Dmitry Timoshkov
Christian Costa wrote: > PEPROCESS WINAPI IoGetCurrentProcess(void) > { > -FIXME("() stub\n"); > -return NULL; > +TRACE("()\n"); > + > +/* Return current process id since PEPROCESS is opaque and drivers > should not access the struct directly */ > +return (PEPROCESS)PsGetCu