This had been reported before, but not in such detail.A correction is in the works for a future rele...
By bruce_miller
On 29 Nov., 12:48, Mitch Murphy <mi...@lemma.ca> wrote:> greetings,> is there a simpler ...
By norbert_marxer
On 10/24/2006, Lionel posted this:> On 24 Oct 2006 10:15:51 +0300, Phil Carmody> <thefatphi...
By gene_e_bloch
Firstly, sorry for the cross-post, but I don't know if this is a SQL issue, or the Framework...
By anonymous
Hello, I'm modifying a graphic driver (based on the mirror driver example from the w2k3 DDK, us...
By anonymous, 1 Comments
Hi,I was working on a friend's PC last week and came across a piece of software called PC Might...
By russelllk, 3 Comments
does any of you guys know if there is any basic "Paint like" application available for .NET / CF ?...
By anonymous, 2 Comments
I am using windows xp with all the latest updates ......... I am using IE7 and am wondering about th...
By wallie215, 4 Comments
Hello I am currently designing an NDIS miniport with a WDM lower edge to control a PCI board as a ne...
By anonymous, 11 Comments
pBaseAddress must be initialized. Set it to NULL.
"Tareq Ahmed Siraj" <anonymous...discussions.microsoft.com> wrote in message
news:E0882F6C-7A5E-4F05-B1A2-720D414FDFDD...microsoft.com...
> 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.
nospam | Tues, 20 May 2008 08:06:00 GMT |
Thank you for your help. still the same after i set it to NULL. Any other suggestions? Thanks.
anonymous | Tues, 20 May 2008 08:07:00 GMT |
Set the ViewSize to zero or some valid value. BaseAddress+ViewSize should
not exceed the highest user mode virtual address region.
On XP machine that I looked at nt!MmHighestUserAddress is 7ffeffff.
--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx
eliyas | Tues, 20 May 2008 08:08:00 GMT |
Thanks a lot .. it works now.
anonymous | Tues, 20 May 2008 08:09:00 GMT |