Re: CreateFile performance
- From: "Don Burn" <burn@xxxxxxxxxxxxxxxx>
- Date: Thu, 9 Nov 2006 09:35:20 -0500
Comments inline:
<r_konjeti@xxxxxxxxxxxx> wrote in message
news:1163082648.727755.307100@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
If many applications are calling driver, each application process
context need a separate handle or duplicate handle for CreateFile(). Is
it same to have a duplicate handle from other process in a given
application process. Or will it make a difference if we call
CreateFile() for each process context.
You want a handle for each process for security reasons. Otherwise an
unauthorized application can try to use you driver as an attack vector.
Will the driver unload if there is handle pending at the user mode for
a device. If the device is removed and handle not closed yet, will it
cause problems? If I implement this scheme, I want to close these file
handle lazy way.
The driver will not unload if there is a reference to it which a handle
owned by a process certainly is a reference so it will not be unloaded.
--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply
.
- Follow-Ups:
- Re: CreateFile performance
- From: r_konjeti
- Re: CreateFile performance
- References:
- CreateFile performance
- From: r_konjeti
- Re: CreateFile performance
- From: soviet_bloke
- Re: CreateFile performance
- From: r_konjeti
- CreateFile performance
- Prev by Date: Re: CreateFile performance
- Next by Date: Not able to able capture video through AmCap!!!! Please
- Previous by thread: Re: CreateFile performance
- Next by thread: Re: CreateFile performance
- Index(es):
Relevant Pages
|