Files
youssefnoob003-SindriKit/include/sindri/common/disk.h
T
sibouzitoun aea2eb6cfb Release v1.1.0: Process Injection & Architecture Hardening
- Implement complete cross-process injection engine via snd_inj_ctx_t
- Track explicit remote_entry_point for safe thread hijacking and PE execution
- Refactor standalone syscall resolvers into a unified pipeline (scan/sort)
- Perfect status code system by purging generic fallbacks in favor of highly-specific, domain-aware error codes
- Fix minor pointer validation and parsing bugs in the reflective loader
2026-06-28 14:14:54 +01:00

24 lines
692 B
C

#ifndef SND_COMMON_DISK_H
#define SND_COMMON_DISK_H
#include <sindri/common/buffer.h>
#include <sindri/common/macros.h>
#include <sindri/common/status.h>
SND_BEGIN_EXTERN_C
/**
* @brief Reads an entire file into a heap-allocated buffer.
* @param path The null-terminated string of the file path to read.
* @param out_buf Pointer to a zeroed snd_buffer_t. On success, data and size
* are populated.
* @return SND_OK on success, otherwise an I/O related error code.
* @note The caller is responsible for freeing the buffer using
* snd_buffer_free(out_buf).
*/
snd_status_t snd_disk_buffer_load(const char *path, snd_buffer_t *out_buf);
SND_END_EXTERN_C
#endif // SND_COMMON_DISK_H