Im doing this project in VC++ 2005.
I cannot seem to get the size for my directory. No error is returned when I use GetLastError();
Both Low and High are coming out as 0.
I do get a handle value for MF ( dunno how to verify if it is a handle for the same directory, but im guessing it should be).
I read in MSDN, FILE_FLAG_BACKUP_SEMANTICS flag should be set for getting a handle for a directory.
still i dont know why im always getting 0 as the size.
HANDLE MF = CreateFile(_T("D:\\mp3Test"), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, NULL); DWORD High=0, Low=0; if ( MF != INVALID_HANDLE_VALUE ) Low = GetFileSize(MF, &High); DWORD lastErr = GetLastError(); CloseHandle(MF);
any help would be greatly appreciated.