Re: ntoskrnl: Implement server side of get_device

2008-09-17 Thread Peter Dons Tychsen
Hi V. > Well I'm not sure what good will it be? The caller asks for the pointer to > the DEVICE_OBJECT to do something with that structure. You can't just give > it some handle. It needs to be complete structure. And not just any > structure but the one for that device. Sorry. I did not mean the h

Re: ntoskrnl: Implement server side of get_device

2008-09-17 Thread Vitaliy Margolen
Peter Dons Tychsen wrote: > Hi Vitaliy. > > Thanks for your comments, > >> My first question: what will you do with that pointer if that driver is >> loaded in the separate instance of ntoskrnl? Driver that calls >> IoGetDeviceObjectPointer will most likely try to dereference the pointer it >> go

Re: ntoskrnl: Implement server side of get_device

2008-09-17 Thread Peter Dons Tychsen
Hi Vitaliy. Thanks for your comments, > My first question: what will you do with that pointer if that driver is > loaded in the separate instance of ntoskrnl? Driver that calls > IoGetDeviceObjectPointer will most likely try to dereference the pointer it > got back. You are right. Something is no

Re: ntoskrnl: Implement server side of get_device

2008-09-17 Thread Vitaliy Margolen
Peter Dons Tychsen wrote: > Implement server side of get_device to complete the > IoGetDeviceObjectPointer() function. > > /pedro My first question: what will you do with that pointer if that driver is loaded in the separate instance of ntoskrnl? Driver that calls IoGetDeviceObjectPointer will mo