What I'm aiming for is to get the base address at which a shared memory section was mapped, i.e., I'm grabbing the 2nd parameter in the post-call event:
NTSTATUS ZwMapViewOfSection(
_In_ HANDLE SectionHandle,
_In_ HANDLE ProcessHandle,
_Inout_ PVOID *BaseAddress,
_In_ ULONG_PTR ZeroBits,
_In_ SIZE_T CommitSize,
_Inout_ PLARGE_INTEGER SectionOffset,
_Inout_ PSIZE_T ViewSize,
_In_ SECTION_INHERIT InheritDisposition,
_In_ ULONG AllocationType,
_In_ ULONG Win32Protect
);
However, any address I get back points to inaccessible memory (checked with windbg).
Is this a side-effect of DR, or is it more likely that I have a bug in my code? Could it be due to the Wow64 layer? OS is win7 x64, but my client is 32-bit.
Tanks!