MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / GetFileSize64

Function GetFileSize64

source/util.cpp:1648–1656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1646
1647
1648unsigned __int64 GetFileSize64(HANDLE aFileHandle)
1649// Returns ULLONG_MAX on failure. Otherwise, it returns the actual file size.
1650{
1651 ULARGE_INTEGER ui = {0};
1652 ui.LowPart = GetFileSize(aFileHandle, &ui.HighPart);
1653 if (ui.LowPart == MAXDWORD && GetLastError() != NO_ERROR)
1654 return ULLONG_MAX;
1655 return (unsigned __int64)ui.QuadPart;
1656}
1657
1658
1659

Callers 1

script2.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected