Re: share file handle between app and driver
- From: "Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx>
- Date: Sat, 16 Jul 2005 19:21:00 +0200
Additionally : DispatchXxx ( DispatchControl e.g. which serve your custom
IOCTL with handle ) run in user context, so there you can for sure do
object/handle operations. Good source :
http://www.amazon.com/exec/obidos/tg/detail/-/0735618038/qid=1121530900/sr=8-1/ref=sr_8_xs_ap_i1_xgl14/102-6061450-1182563?v=glance&s=books&n=507846
( aware of wrap )
( in your case Chapter 5 )
Arkady
"Jochen Kalmbach [MVP]" <nospam-Jochen.Kalmbach@xxxxxxxxx> wrote in message
news:OqC3KbhiFHA.3936@xxxxxxxxxxxxxxxxxxxxxxx
> kai wrote:
>>>>can i share a filehandle between exe and sys ? (opened by app and given
>>>>to driver)
>>>
>>>You can certainly pass a handle to a driver, but you must remember that
>>>handles are only valid within the process that created them, while a
>>>driver
>>>may execute in other contexts.
>>>
>> so theres no way to write from another thread using the app's fileobejct?
>
> If your driver has the handle and is executed in the same thread/process
> as the app, then you can get an ObjectReference and use this.
> As Slava said, the handle is only valid in the process´s context.
>
>
> --
> Greetings
> Jochen
>
> My blog about Win32 and .NET
> http://blog.kalmbachnet.de/
.
- References:
- share file handle between app and driver
- From: kai
- Re: share file handle between app and driver
- From: kai
- Re: share file handle between app and driver
- From: Jochen Kalmbach [MVP]
- share file handle between app and driver
- Prev by Date: Re: bug in visual studio .net 2003 - breakpoints and memcpy
- Next by Date: Re: bug in visual studio .net 2003 - breakpoints and memcpy
- Previous by thread: Re: share file handle between app and driver
- Index(es):