Closed odzhan closed 1 year ago
For example fix, OBJECT_ATTRIBUTES64 in phnt_ntdef.h would be defined like:
The definition we're using exactly matches what's included in the Windows SDK?
64-Bit system calls executed by a wow64 process
There are a number of cases where this won't work. You should be using the 32bit versions.
Okay, fair enough.
64-Bit system calls executed by a wow64 process require structures aligned on a 16 byte boundary. A misaligned structure will sometimes result in the system call returning STATUS_DATATYPE_MISALIGNMENT. For example fix, OBJECT_ATTRIBUTES64 in phnt_ntdef.h would be defined like:
The only change required here is using DECLSPEC_ALIGN(16) or __declspec(align(16))
:+1: