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
24 lines
468 B
#include "windows.h"
|
|
|
|
#define INVALID_FILE_SIZE ((DWORD)0xFFFFFFFF)
|
|
|
|
#if defined(__cplusplus)
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
BOOL
|
|
WINAPI
|
|
FusionpGetFileSizeEx(
|
|
HANDLE FileHandle,
|
|
PLARGE_INTEGER FileSize
|
|
)
|
|
{
|
|
if ((FileSize->LowPart = GetFileSize(FileHandle, (DWORD*)&FileSize->HighPart)) == INVALID_FILE_SIZE && GetLastError() != NO_ERROR)
|
|
return FALSE;
|
|
return TRUE;
|
|
}
|
|
|
|
#if defined(__cplusplus)
|
|
} /* extern "C" */
|
|
#endif
|