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

Method Write

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

Source from the content-addressed store, hash-verified

57}
58
59NTSTATUS FilesAPI::Write(IN PVOID Buffer, ULONG Size, OPTIONAL UINT64 Offset) const {
60 IO_STATUS_BLOCK IoStatusBlock = {};
61 return ZwWriteFile(hFile, NULL, NULL, NULL, &IoStatusBlock, Buffer, Size, reinterpret_cast<PLARGE_INTEGER>(&Offset), NULL);
62}
63
64NTSTATUS FilesAPI::Close() {
65 NTSTATUS Status = hFile ? ZwClose(hFile) : STATUS_SUCCESS;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected