Microsoft changed the WIN32_FIND_DATA declaration and added 3 new properties

The current microsoft docmentation shows the following declaration for the WIN32_FIND_DATA structure:

typedef struct _WIN32_FIND_DATAA { DWORD dwFileAttributes; FILETIME ftCreationTime; FILETIME ftLastAccessTime; FILETIME ftLastWriteTime; DWORD nFileSizeHigh; DWORD nFileSizeLow; DWORD dwReserved0; DWORD dwReserved1; CHAR cFileName[MAX_PATH]; CHAR cAlternateFileName[14]; DWORD dwFileType; DWORD dwCreatorType; WORD wFinderFlags;
} WIN32_FIND_DATAA, *PWIN32_FIND_DATAA, *LPWIN32_FIND_DATAA;

My personal knowledge of the declaration is:

typedef struct _WIN32_FIND_DATA { DWORD dwFileAttributes; FILETIME ftCreationTime; FILETIME ftLastAccessTime; FILETIME ftLastWriteTime; DWORD nFileSizeHigh; DWORD nFileSizeLow; DWORD dwReserved0; DWORD dwReserved1; TCHAR cFileName[MAX_PATH]; TCHAR cAlternateFileName[14];
} WIN32_FIND_DATA, *PWIN32_FIND_DATA, *LPWIN32_FIND_DATA;

Microsoft added these 3 new properties:

 DWORD dwFileType; DWORD dwCreatorType; WORD wFinderFlags;

The current Microsoft documentation don't have any description for these properties.

Does anyone have some information about the new properties?

Some other questions:

  • Which declaration should a dev use now? The old or new style?
  • What about the backward compatibility with older Windows versions?
2 Related questions 0 WIN32_FIND_DATA Problems - cFileName 1 Introduction version of some Win32 API Call 1 winapi - Undocumented Windows message 0x0313 stable? Related questions 0 WIN32_FIND_DATA Problems - cFileName 1 Introduction version of some Win32 API Call 1 winapi - Undocumented Windows message 0x0313 stable? 3 Win32 API failure 0 with WIN32_LEAN_AND_MEAN">Windows header file <Windows.h> with WIN32_LEAN_AND_MEAN 5 WinAPI deprecation after Windows 8.1 2 win32 API SearchPath fails 1 Why are some of the old Win16 API's still supported in newer Windows versions? 1 WinAPI Documentation contradicting itself? 0 FindFirstFileW Issue - How to Convert 'LPWIN32_FIND_DATA *' to 'LPWIN32_FIND_DATAW' Load 7 more related questions Show fewer related questions Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like