HFILE hFile = _lopen("c:\\ntldr", OF_READ); unsigned int Size = GetFileSize((HANDLE)hFile, NULL); CloseHandle(hFile);