Is there a way to get all the properties and values of any file under the details tab using only c++ Code?
All extended file properties: link
I have seen solutions for c# but not c++. link
I have already looked into the fileapi.h
function GetFileAttributesA()
which gave me access to the file attribute constants like FILE_ATTRIBUTE_COMPRESSED, FILE_ATTRIBUTE_READONLY...
Even the GetFileAttributesExA()
with GetFileExMaxInfoLevel
was not able to return all the needed information.
if (FileAttributes & FILE_ATTRIBUTE_COMPRESSED) {
std::cout << "File is compressed.";
}
if (FileAttributes & FILE_ATTRIBUTE_READONLY) {
std::cout << "File is a readonly file.";
}
I thought there should be a similar thing for file properties something like GetFilePropertiesExA()
.
But could not find any similar function so far.
Also I was able to get information like Date created, modified and size using WIN32_FIND_DATA
.