MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / GetFileSize

Method GetFileSize

KernelLibrary/FileManager.cpp:66–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66NTSTATUS FileManager::GetFileSize(PLARGE_INTEGER fileSize) {
67 FILE_STANDARD_INFORMATION info = { 0 };
68 IO_STATUS_BLOCK ioStatus;
69 NTSTATUS status = ZwQueryInformationFile(_handle, &ioStatus, &info, sizeof(info), FileStandardInformation);
70 if (NT_SUCCESS(status)) {
71 if (!fileSize) {
72 return STATUS_INVALID_PARAMETER;
73 }
74 *fileSize = info.EndOfFile;
75 return status;
76 }
77 return status;
78}
79
80/*
81Note Do not specify

Callers 2

PEParserMethod · 0.80
BackupFileFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected