175 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
24 lines
829 B
C
24 lines
829 B
C
#ifndef GW_STARTUP_BOOTSTRAP_H
|
|
#define GW_STARTUP_BOOTSTRAP_H
|
|
#include <stdint.h>
|
|
struct GwStartupPatch {
|
|
uintptr_t address;
|
|
uint32_t size;
|
|
uint8_t before[12], after[12];
|
|
};
|
|
/* Runs only from the natural graphics caller, never from DLL attach.
|
|
* 0 means publication and page restoration completed; nonzero is diagnostic.
|
|
* The caller keeps original code/modules alive for the entire process. */
|
|
int gw_startup_apply_patches(const struct GwStartupPatch *, uint32_t count);
|
|
#endif
|
|
|
|
#ifndef GW_STARTUP_ADMISSION_DECLARED
|
|
#define GW_STARTUP_ADMISSION_DECLARED
|
|
/* Own-data admission telemetry; no original instruction bytes. */
|
|
struct GwStartupAdmission {
|
|
uint32_t abi, size, reason, index, winerror, state, protect, page_size;
|
|
uintptr_t address;
|
|
};
|
|
extern struct GwStartupAdmission gw_startup_admission;
|
|
#endif
|