Use of Temporary Bit

Hello ,
When we create a file with setting FILE_ATTRIBUTE_TEMPORARY bit , the file created will be hold on the cache only and not get flushed to the HDD till the memory pressure come.
I tried with this one, but I found, it didnt held on the cache , rather get flushed after 2-3 seconds. If I created it as temporary and made the H/w reset just within 3 seconds, then it was getting written on the disk, which i could see after the reset!!

So what is reason behind this??
Am i getting wrong anywhere??

So what? this flag is an advice for Cc only.


Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

wrote in message news:xxxxx@ntfsd…
> Hello ,
> When we create a file with setting FILE_ATTRIBUTE_TEMPORARY bit
, the file created will be hold on the cache only and not get flushed to the
HDD till the memory pressure come.
> I tried with this one, but I found, it didnt held on the cache
, rather get flushed after 2-3 seconds. If I created it as temporary and made
the H/w reset just within 3 seconds, then it was getting written on the disk,
which i could see after the reset!!
>
> So what is reason behind this??
> Am i getting wrong anywhere??
>