Hi,
If I want to open a file in \Program Files\myprogram\myfile.txt in kernel
mode, how can I do that?
I do not know where the OS is installed.
It may be installed on C drive or D drive.
I need to open file after my filter driver is loaded and the OS volume is
mounted.
Hope someone can help.
Thank You!
cheers,
vincent
Download Norah Jones, Eminem and more! http://www.msn.com.sg/ringtones/ at
only S$36 including GST
Put the path to your components somewhere in your service’s registry
hive. You could also read some of the OS hives and get anything you
want - but I think the safer play is just to setup your hive to have
whatever environment information you need. /TomH
-----Original Message-----
From: vincent gambit [mailto:xxxxx@hotmail.com]
Sent: Wednesday, August 27, 2003 5:33 AM
To: File Systems Developers
Subject: [ntfsd] how to open program files in kernel
Hi,
If I want to open a file in \Program Files\myprogram\myfile.txt in
kernel
mode, how can I do that?
I do not know where the OS is installed.
It may be installed on C drive or D drive.
I need to open file after my filter driver is loaded and the OS volume
is
mounted.
Hope someone can help.
Thank You!
cheers,
vincent
Download Norah Jones, Eminem and more! http://www.msn.com.sg/ringtones/
at
only S$36 including GST
You are currently subscribed to ntfsd as: xxxxx@exagrid.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
> If I want to open a file in \Program Files\myprogram\myfile.txt in kernel
mode, how can I do that?
I do not know where the OS is installed.
It may be installed on C drive or D drive.
You also don’t know what ‘program files’ is called like, since it depends on
the OS language. Your program files could reside on a different volume (as a
good installer should allow the user to choose an installation path). You
should place the chosen path in the drivers registry key during
installation.
----- Original Message -----
From: “vincent gambit”
To: “File Systems Developers”
Sent: Wednesday, August 27, 2003 11:33 AM
Subject: [ntfsd] how to open program files in kernel
Shouldn’t it be enough to just query registry key
“Machine\Software\Microsoft\Windows\CurrentVersion” value name
“ProgramFilesDir”
to get the “Program Files” folder?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Tobias
Sent: Wednesday, August 27, 2003 11:15 AM
To: File Systems Developers
Subject: [ntfsd] Re: how to open program files in kernel
If I want to open a file in \Program Files\myprogram\myfile.txt in kernel
mode, how can I do that?
I do not know where the OS is installed.
It may be installed on C drive or D drive.
You also don’t know what ‘program files’ is called like, since it depends on
the OS language. Your program files could reside on a different volume (as a
good installer should allow the user to choose an installation path). You
should place the chosen path in the drivers registry key during
installation.
----- Original Message -----
From: “vincent gambit”
To: “File Systems Developers”
Sent: Wednesday, August 27, 2003 11:33 AM
Subject: [ntfsd] how to open program files in kernel
—
You are currently subscribed to ntfsd as: xxxxx@pacbell.net
To unsubscribe send a blank email to xxxxx@lists.osr.com
That will work also. I am just a little paranoid about looking at other
components registry keys - since this is not a published interface and
is subject to change. Of course that is also the case for almost
anything in file system development land - so I suppose it shouldn’t
matter.
/TomH
-----Original Message-----
From: Seva Tonkonoh [mailto:xxxxx@pacbell.net]
Sent: Wednesday, August 27, 2003 7:01 PM
To: File Systems Developers
Subject: [ntfsd] Re: how to open program files in kernel
Shouldn’t it be enough to just query registry key
“Machine\Software\Microsoft\Windows\CurrentVersion” value name
“ProgramFilesDir”
to get the “Program Files” folder?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Tobias
Sent: Wednesday, August 27, 2003 11:15 AM
To: File Systems Developers
Subject: [ntfsd] Re: how to open program files in kernel
If I want to open a file in \Program Files\myprogram\myfile.txt in
kernel
mode, how can I do that?
I do not know where the OS is installed.
It may be installed on C drive or D drive.
You also don’t know what ‘program files’ is called like, since it
depends on
the OS language. Your program files could reside on a different volume
(as a
good installer should allow the user to choose an installation path).
You
should place the chosen path in the drivers registry key during
installation.
----- Original Message -----
From: “vincent gambit”
To: “File Systems Developers”
Sent: Wednesday, August 27, 2003 11:33 AM
Subject: [ntfsd] how to open program files in kernel
—
You are currently subscribed to ntfsd as: xxxxx@pacbell.net
To unsubscribe send a blank email to xxxxx@lists.osr.com
—
You are currently subscribed to ntfsd as: xxxxx@exagrid.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
It will work in most cases of course. I sit at a computer having programs
scattered over 2 different volumes since the system volume space exhausted.
Never adjusted the ‘program files’, because it doesn’t matter. Perhaps I’d
better say: Doesn’t matter in most cases.
----- Original Message -----
From: “Tom Hansen”
To: “File Systems Developers”
Sent: Thursday, August 28, 2003 3:50 PM
Subject: [ntfsd] Re: how to open program files in kernel
> That will work also. I am just a little paranoid about looking at other
> components registry keys - since this is not a published interface and
> is subject to change. Of course that is also the case for almost
> anything in file system development land - so I suppose it shouldn’t
> matter.
> /TomH
>
> -----Original Message-----
> From: Seva Tonkonoh [mailto:xxxxx@pacbell.net]
> Sent: Wednesday, August 27, 2003 7:01 PM
> To: File Systems Developers
> Subject: [ntfsd] Re: how to open program files in kernel
>
>
> Shouldn’t it be enough to just query registry key
> “Machine\Software\Microsoft\Windows\CurrentVersion” value name
> “ProgramFilesDir”
> to get the “Program Files” folder?
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of Tobias
> Sent: Wednesday, August 27, 2003 11:15 AM
> To: File Systems Developers
> Subject: [ntfsd] Re: how to open program files in kernel
>
>
> > If I want to open a file in \Program Files\myprogram\myfile.txt in
> kernel
> > mode, how can I do that?
> > I do not know where the OS is installed.
> > It may be installed on C drive or D drive.
>
> You also don’t know what ‘program files’ is called like, since it
> depends on
> the OS language. Your program files could reside on a different volume
> (as a
> good installer should allow the user to choose an installation path).
> You
> should place the chosen path in the drivers registry key during
> installation.
>
> ----- Original Message -----
> From: “vincent gambit”
> To: “File Systems Developers”
> Sent: Wednesday, August 27, 2003 11:33 AM
> Subject: [ntfsd] how to open program files in kernel
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@pacbell.net
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@exagrid.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@linkwave.org
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>