I'm working at windows 11 and i need to alloc memory for shellcode (raw function bytes).
Is there way to alloc memory using some of zig builtin allocators with execution allowance by default? Like for example here:
void* exec = VirtualAlloc(NULL, sizeof(sc), MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);
Where PAGE_EXECUTE_READWRITE means that memory region can be executed as code.