MCPcopy Create free account
hub / github.com/DFIR-ORC/dfir-orc / GetFileSize

Function GetFileSize

src/OrcLib/Utils/MapFile.cpp:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17namespace {
18
19Result<uint64_t> GetFileSize(HANDLE hFile)
20{
21 LARGE_INTEGER fileSize;
22 if (!GetFileSizeEx(hFile, &fileSize))
23 {
24 return LastWin32Error();
25 }
26
27 return fileSize.QuadPart;
28}
29
30} // namespace
31

Callers 3

MapFileFunction · 0.70
OpenMethod · 0.50
GetMFTRecordCountMethod · 0.50

Calls 1

LastWin32ErrorFunction · 0.70

Tested by

no test coverage detected