175 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
27 lines
862 B
C
27 lines
862 B
C
#ifndef GW_CONSTRUCTOR_SEAM_PLAN_H
|
|
#define GW_CONSTRUCTOR_SEAM_PLAN_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
#include "startup_bootstrap.h"
|
|
|
|
enum { GW_CONSTRUCTOR_SEAM_PREFIX_SIZE = 16 };
|
|
|
|
/* A read-only, same-PID preopen observation. The caller must obtain this with
|
|
* VirtualQuery and ReadProcessMemory before invoking the existing transaction.
|
|
* No page protection is changed to obtain the observation. */
|
|
struct GwConstructorSeamPage {
|
|
uintptr_t base;
|
|
uintptr_t allocation_base;
|
|
size_t region_size;
|
|
uint32_t state;
|
|
uint32_t protect;
|
|
uint32_t type;
|
|
};
|
|
|
|
int gw_constructor_seam_plan(const struct GwConstructorSeamPage *page,
|
|
const uint8_t *live_prefix, size_t live_size,
|
|
uintptr_t relay, struct GwStartupPatch *patch,
|
|
uintptr_t *resume);
|
|
#endif
|