mirror of
https://github.com/youssefnoob003/SindriKit
synced 2026-07-07 21:57:09 +00:00
aea2eb6cfb
- 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
24 lines
692 B
C
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
|