i am working on a visual studio project in windows. i want to check what privileges a file has (special write), for now i am using :
hFile = CreateFile(wtext, // name of the write
GENERIC_WRITE, // open for writing
0, // do not share
NULL, // default security
OPEN_EXISTING, // open only if exists
FILE_ATTRIBUTE_NORMAL, // normal file
NULL); // no attr. template
i dont want to use CreateFile because for some files i need to run my prog as Administrator to get the results.
how do i check file access details without using CreateFile?