Hi there everyone, I'm trying to learn the fundementals of File System manipulation. Right now I'm trying to get the creation and modification date of a file. How do I use the GetFileAttributesEx function. The function header looks like this:
This is straight off of the MSDN.Code:BOOL GetFileAttributesEx( LPCTSTR lpFileName, // file or directory name GET_FILEEX_INFO_LEVELS fInfoLevelId, // attribute class LPVOID lpFileInformation // attribute information );
I understand that LPCTSTR lpFileName is, that one is easy.
What the heck is GET_FILEEX_INFO_LEVELS fInfoLevelId? I tried to create a simple variable of the GET_FILEEX_INFO_LEVELS type but I couldn't get anything out of it.
Also, I'm assuming that LPVOID lpFileInformation should just be a pointer to an empty buffer, right?