Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can MMGetPhysicaladdress API be used in user mode??

39 views
Skip to first unread message

Naga

unread,
Sep 28, 2004, 3:04:47 AM9/28/04
to
I want to write some data into a some piece of memory thru PCI driver,
for which I need the absolute address of a windows memory location to
be passed to PCI driver
.I was trying to use this MMGetPhysical address in one simple program
in VC++environtment
just adding the necessary header files and library files.

But I got some n number of errors while building it??
So all I want to know is can MMGetPhysicaladdress API be used in
a simple program(user mode) in MSVC++ environtment or is it that it
works only in kernel mode(in the environment that comes along with DDK
CD)
Can some body enlighten me on this issue??

Mark Roddy

unread,
Sep 28, 2004, 7:16:19 AM9/28/04
to
In article <7d6b4691.04092...@posting.google.com>,
nagam...@gmail.com says...
Yes.

"No".

No go read a good book on NT device drivers and the windows operating system.
Actually that's two good books. Go read Russinovich and Solomon's Inside
windows 2000, and Walter Oney's Programming the Windows Driver Model. Then
send the virtual address to your driver and let it resolve the physical
address.

--

=====================
Mark Roddy DDK MVP
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com
ma...@hollistech.com

Maxim S. Shatskih

unread,
Sep 30, 2004, 1:19:04 AM9/30/04
to
Forget this API. In the driver, lock the memory to a MDL, and use the MDL
and the DMA adapter object methods.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
ma...@storagecraft.com
http://www.storagecraft.com

"Naga" <nagam...@gmail.com> wrote in message
news:7d6b4691.04092...@posting.google.com...

0 new messages