Hi all, I'm trying the following code... but it returns that the 3rd parameter is invalid (STATUS_INVALID_PARAMETER_3). What am i doing wrong
UNICODE_STRING strMapName
SIZE_T nViewSize
NTSTATUS status
PVOID pBaseAddress
RtlInitUnicodeString(&strMapName, L"\\BaseNamedObjects\\MyDeviceName")
InitializeObjectAttributes(&MappedFileObjectAttributes, &strMapName, OBJ_CASE_INSENSITIVE, NULL, NULL)
status = ZwOpenSection(&hMappedSection, SECTION_ALL_ACCESS, &MappedFileObjectAttributes)
(... check status value ...
ZwMapViewOfSection(hMappedSection
(HANDLE)-1
&pBaseAddress
0L
PAGE_SIZE
NULL
&nViewSize
ViewShare
0
PAGE_READWRITE)
What am I doing wrong here? Thanks for any advice.