ZwCreateFile

Hi

Im trying to open a file(config file) in my filter driver. I need to open it
using Credentials of user account created for my software. How can i do
it???

regards
Vishnu

Well you have to be called in the context of that user in order to
have those credentials. One solution is could be to have a
service that has those users credentials and have the service call
your driver so that you have its context.

–Mark Cariddi
Consulting Associate
www.osr.com

On Mon, 30 Jan 2006 18:28:31 +0530, “vishnu”
wrote:

>Hi
>
>Im trying to open a file(config file) in my filter driver. I need to open it
>using Credentials of user account created for my software. How can i do
>it???
>
>regards
>Vishnu
>
>

Probably just like in usermode: via impersonation of the user account! There
are APIs available to kernel mode drivers to accomplish the same
functionality as in user mode.

Note, that the Zw* and Nt* functions where undocumented should be only
called from IRQL PASSIVE_LEVEL!

Cheers,

Oliver

May the source be with you, stranger :wink:

ICQ: #281645
URL: http://assarbad.net