How to map DesiredAccess in NtCreateFile/NtOpenFile API calls?

I have a system wherein I get DesiredAccess for NtCreateFile/NtOpenFile in hex format and I am supposed to map it to actual flags of read/write operations.

I came across this document: But the codes seem old and do not match to the ones I get.

I am new to msdn api calls. Can you please suggest how I may do it?


Need Your Help

Different results when a function is evaluated in the REPL than in a program

user-interface clojure lazy-evaluation read-eval-print-loop

I have a feeling the answer to my question is something to do with Clojure's lazy evaluation (which I am still fuzzy on...)

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.