How can this thread be closed when you basically ignored Tim’s comments
about security, and that is an extremely vital concern. So much so that were
I to know for whom you work, and what the product is, I would not allow it
to be installed on any of my machines. Early on you mentioned this is only
for testing and validation. Don’t let it sneak into mainline code because it
violates basic principles of security.
Gary G. Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Monday, April 26, 2010 12:52 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Physical Add to User Add mapping
Thank you IceMan!! it works like a charm!! Perfect!! Here is the code I used
of yours:
PMDL pMdl;
PUCHAR pUserMapAdd;
pMdl = IoAllocateMdl(VirtualAdd, memoryLength, FALSE, FALSE, NULL);
if (pMdl == NULL)
{
return(STATUS_INSUFFICIENT_RESOURCES);
};
MmBuildMdlForNonPagedPool(pMdl);
pUserMapAdd =
(PUCHAR)MmMapLockedPagesSpecifyCache(pMdl,
UserMode,
MmNonCached,
NULL,
FALSE,
NormalPagePriority
);
if (pUserMapAdd == NULL)
{
return (STATUS_INSUFFICIENT_RESOURCES);
}
This posting can be closed.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
__________ Information from ESET Smart Security, version of virus signature
database 5063 (20100426) __________
The message was checked by ESET Smart Security.
http://www.eset.com
__________ Information from ESET Smart Security, version of virus signature
database 5063 (20100426) __________
The message was checked by ESET Smart Security.
http://www.eset.com