Code Gem

Code Gem

Knowledge was arriving in dribs and drabs

Code Gem RSS Feed
 
 
 
 

Archive for March, 2009

GENERIC_READ? FILE_GENERIC_READ?

WTF the difference is?!
Today I got a task to refine an application to make it check the file access at more detailed level. I ran into the problem of the difference of GENERIC_READ and FILE_GENERIC_READ. In MSDN the definition of GENERIC_READ is:
GENERIC_READ

FILE_READ_ATTRIBUTES
FILE_READ_DATA
FILE_READ_EA
STANDARD_RIGHTS_READ
SYNCHRONIZE

But in WinNT.h it is:
#define GENERIC_READ [...]

March 2010
M T W T F S S
« Feb «-»  
1234567
891011121314
15161718192021
22232425262728
293031  

Blogroll