HI,
I am unable to compile a driver successfully using
MmGetPhysicalAddress(); it says error C4013: MmGetPhysicalAddress
undefined.
i am using all other apis like MmMapIoSpace, which are also
defined in ntddk.h and compiling successfully. I ve seen the ntddk.h
file and MmGetPhysicalAddress is declared.

However, if i use the same MmGetPhysicalAddress(); in some
other driver and compile, it is compiling sucessfully, strange.
I am using Win XP DDK to compile my driver.
Please help, am not able to find the problem.

Re: MmGetPhysicalAddress, compile error by soviet_bloke

soviet_bloke
Fri Nov 17 16:59:59 CST 2006

Are you sure you have not made some spelling mistake (for example,
something like MMGetPhysicalAddress)????It never occured to you to
think this way????

Anton Bassov

Chin wrote:
> HI,
> I am unable to compile a driver successfully using
> MmGetPhysicalAddress(); it says error C4013: MmGetPhysicalAddress
> undefined.
> i am using all other apis like MmMapIoSpace, which are also
> defined in ntddk.h and compiling successfully. I ve seen the ntddk.h
> file and MmGetPhysicalAddress is declared.
>
> However, if i use the same MmGetPhysicalAddress(); in some
> other driver and compile, it is compiling sucessfully, strange.
> I am using Win XP DDK to compile my driver.
> Please help, am not able to find the problem.