how to open file like system open pagefile.sys

i want to deny any access to my file even though other processes use
CreateFile with FILE_READ_ATTRIBUTES,
just like how system deal with pagefile.sys

so how should i do?

Open the file with exclusive read access?

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Xu Ge
Sent: Thursday, September 08, 2005 1:43 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] how to open file like system open pagefile.sys

i want to deny any access to my file even though other processes use
CreateFile with FILE_READ_ATTRIBUTES,
just like how system deal with pagefile.sys

so how should i do?


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

not only “read access”, but also “read attributes access”

“Doron Holan” ???:xxxxx@ntdev…
Open the file with exclusive read access?

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Xu Ge
Sent: Thursday, September 08, 2005 1:43 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] how to open file like system open pagefile.sys

i want to deny any access to my file even though other processes use
CreateFile with FILE_READ_ATTRIBUTES,
just like how system deal with pagefile.sys

so how should i do?


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

I get it. :))

IoCreateFile(…, IO_OPEN_PAGING_FILE, …);

“Xu Ge” дÈëÏûÏ¢ÐÂÎÅ:xxxxx@ntdev…
> not only “read access”, but also “read attributes access”
>
> “Doron Holan” ???:xxxxx@ntdev…
> Open the file with exclusive read access?
>
> d
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Xu Ge
> Sent: Thursday, September 08, 2005 1:43 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] how to open file like system open pagefile.sys
>
> i want to deny any access to my file even though other processes use
> CreateFile with FILE_READ_ATTRIBUTES,
> just like how system deal with pagefile.sys
>
> so how should i do?
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>