MCPcopy Create free account
hub / github.com/HoShiMin/Kernel-Bridge / Read

Method Read

Kernel-Bridge/API/FilesAPI.cpp:54–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54NTSTATUS FilesAPI::Read(OUT PVOID Buffer, ULONG Size, OPTIONAL UINT64 Offset) const {
55 IO_STATUS_BLOCK IoStatusBlock = {};
56 return ZwReadFile(hFile, NULL, NULL, NULL, &IoStatusBlock, Buffer, Size, reinterpret_cast<PLARGE_INTEGER>(&Offset), NULL);
57}
58
59NTSTATUS FilesAPI::Write(IN PVOID Buffer, ULONG Size, OPTIONAL UINT64 Offset) const {
60 IO_STATUS_BLOCK IoStatusBlock = {};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected