I spent some time with CreateFile yesterday but didn't solve it.
I did try this in C# using the FileInfo class and it worked fine.
I loaded up the system.dll in Reflector to see if I can determine the underlying FileInfo implementation, but it's a bit complicated for the cursory look I gave. With more time, one should be able to track down the api's and necessary permissions by looking at the .net implementation.
P.S. I didn't have hyperfil.sys so I used pagefile.sys.
In C#, it's one line of code.
Last edited by Arjay; August 24th, 2009 at 09:37 PM.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.