Re: How to get Windows/System directory name from driver?
From: Max Burmistrov (bugs-=do-not-spaam-pls=-bunny_at_e-mail.ru)
Date: 05/29/04
- Next message: Mark Roddy: "Re: sources/Build.exe alternate source file location question"
- Previous message: Stefan Kuhr: "Re: howto create a zip programmatically"
- In reply to: Doron Holan [MS]: "Re: How to get Windows/System directory name from driver?"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 29 May 2004 13:41:47 +0400
Thanks, but unfortunately my problem couldn't be solved in this way: I need
to check if the file which is accessed is svchost.exe and it is located in
correct folder. So I get a string "c:\winnt\system32\svchost.exe -k netsvcs"
and I have to say "yes, it is a valid svchost.exe process" and I have to say
"no", if, for example, I get "c:\someotherfolder\svchost.exe".
Surely I can pass this parameter from user-mode application when I start my
driver, but is it the easiest way to solve this problem?
"Doron Holan [MS]" <doronh@nospam.microsoft.com> wrote in message
news:Otl9bPRREHA.3748@TK2MSFTNGP09.phx.gbl...
> you can use \systemroot as the start of the file name. this will root you
> at the %windows% directory w/out needing to know the actual drive or
> installation directory name.
>
> d
>
> --
> Please do not send e-mail directly to this alias. this alias is for
> newsgroup purposes only.
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
>
- Next message: Mark Roddy: "Re: sources/Build.exe alternate source file location question"
- Previous message: Stefan Kuhr: "Re: howto create a zip programmatically"
- In reply to: Doron Holan [MS]: "Re: How to get Windows/System directory name from driver?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|