- Timestamp:
- Mar 5, 2014 6:48:59 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/winphone/pjlib/src/pj/file_access_win32.c
r4629 r4777 36 36 static pj_status_t get_file_size(HANDLE hFile, pj_off_t *size) 37 37 { 38 #if defPJ_WIN32_WINPHONE39 FILE_ STANDARD_INFO fileInfo;40 41 if (GetFileInformationByHandleEx(hFile, File StandardInfo, &fileInfo,42 sizeof(FILE_ STANDARD_INFO)))38 #if defined(PJ_WIN32_WINPHONE) && PJ_WIN32_WINPHONE 39 FILE_COMPRESSION_INFO fileInfo; 40 41 if (GetFileInformationByHandleEx(hFile, FileCompressionInfo, &fileInfo, 42 sizeof(FILE_COMPRESSION_INFO))) 43 43 { 44 *size = fileInfo. AllocationSize.QuadPart;44 *size = fileInfo.CompressedFileSize.QuadPart; 45 45 } else { 46 46 *size = -1; … … 71 71 HANDLE template_file) 72 72 { 73 #if defPJ_WIN32_WINPHONE73 #if defined(PJ_WIN32_WINPHONE) && PJ_WIN32_WINPHONE 74 74 PJ_UNUSED_ARG(security_attributes); 75 75 PJ_UNUSED_ARG(flags_and_attributes); … … 216 216 HANDLE hFile; 217 217 FILETIME creationTime, accessTime, writeTime; 218 #if defPJ_WIN32_WINPHONE218 #if defined(PJ_WIN32_WINPHONE) && PJ_WIN32_WINPHONE 219 219 FILE_BASIC_INFO fileInfo; 220 220 #endif … … 234 234 return PJ_RETURN_OS_ERROR(GetLastError()); 235 235 } 236 #if defPJ_WIN32_WINPHONE236 #if defined(PJ_WIN32_WINPHONE) && PJ_WIN32_WINPHONE 237 237 if (GetFileInformationByHandleEx(hFile, FileBasicInfo, &fileInfo, 238 238 sizeof(FILE_BASIC_INFO)))
Note: See TracChangeset
for help on using the changeset viewer.