Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
468 B

  1. #include "windows.h"
  2. #define INVALID_FILE_SIZE ((DWORD)0xFFFFFFFF)
  3. #if defined(__cplusplus)
  4. extern "C"
  5. {
  6. #endif
  7. BOOL
  8. WINAPI
  9. FusionpGetFileSizeEx(
  10. HANDLE FileHandle,
  11. PLARGE_INTEGER FileSize
  12. )
  13. {
  14. if ((FileSize->LowPart = GetFileSize(FileHandle, (DWORD*)&FileSize->HighPart)) == INVALID_FILE_SIZE && GetLastError() != NO_ERROR)
  15. return FALSE;
  16. return TRUE;
  17. }
  18. #if defined(__cplusplus)
  19. } /* extern "C" */
  20. #endif