Tell me if I counted how many bytes are needed for this structure ...
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]; } 4 + ((4 + 4) * 3) + (4 * 4) + 261 + 14 = 319 bytes
sizeof. - VladDMAX_PATH260? - VladDTCHARmay not be 1. - VladDMAX_PATHseems to be 260 without considering the last "0" (end of line), and I countedTCHARas an array of 14 bytes. - alex-rudenkiysizeofcounted 318 bytes, but I can not understand one thing, that is,cFileNamestores the name of a long 259 and another symbol "0"? - alex-rudenkiy