#ifdef _M_IX86 *machineType = IMAGE_FILE_MACHINE_I386; s->AddrPC.Offset = context.Eip; s->AddrPC.Mode = AddrModeFlat; s->AddrStack.Offset = context.Esp; s->AddrStack.Mode = AddrModeFlat; s->AddrFrame.Offset = context.Ebp; s->AddrFrame.Mode = AddrModeFlat; #elif _M_X64 *machineType = IMAGE_FILE_MACHINE_AMD64; s->AddrPC.Offset = context.Rip; s->AddrPC.Mode = AddrModeFlat; s->AddrStack.Offset = context.Rsp; s->AddrStack.Mode = AddrModeFlat; s->AddrFrame.Offset = context.Rbp; s->AddrFrame.Mode = AddrModeFlat; #elif _M_IA64 *machineType = IMAGE_FILE_MACHINE_IA64; s->AddrPC.Offset = context.StIIP; s->AddrPC.Mode = AddrModeFlat; s->AddrStack.Offset = context.IntSp; s->AddrStack.Mode = AddrModeFlat; s->AddrFrame.Offset = context.IntSp; s->AddrFrame.Mode = AddrModeFlat; s->AddrBStore.Offset = context.RsBSP; s->AddrBStore.Mode = AddrModeFlat; #elif _M_ARM #else return -1; #endif return 0;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)