MCPcopy Create free account
hub / github.com/bytecode77/r77-rootkit / WriteFileContent

Function WriteFileContent

r77api/r77win.c:464–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462 return result;
463}
464BOOL WriteFileContent(LPCWSTR path, LPBYTE data, DWORD size)
465{
466 BOOL result = FALSE;
467
468 HANDLE file = CreateFileW(path, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
469 if (file != INVALID_HANDLE_VALUE)
470 {
471 DWORD bytesWritten;
472 result = WriteFile(file, data, size, &bytesWritten, NULL);
473 CloseHandle(file);
474 }
475
476 return result;
477}
478BOOL AppendFileContent(LPCWSTR path, LPBYTE data, DWORD size)
479{
480 BOOL result = FALSE;

Callers 1

CreateTempFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected