Share via


IOsAxsVirtualMem::TranslateAddressVirtualToPhysical (Windows Embedded CE 6.0)

1/5/2010

This method translates an address in virtual memory to a corresponding address in physical memory.

Syntax

HRESULT TranslateAddressVirtualToPhysical(
  ADDRESS_TYPE addrVirt,
  ADDRESS_TYPE* paddrPhys
);

Parameters

  • addrVirt
    [in] Virtual address.
  • paddrPhys
    [out] Pointer to the physical address.

Return Value

The following table shows return values for this method.

Value Description

S_OK

Indicates the function was successful.

EXDI_E_UNTRANSLATABLE

Indicates that OsAccess cannot translate the address, probably because the address is in the kernel.

E_INVALIDARG

Indicates one or more invalid arguments.

E_POINTER

Indicates one or more invalid pointers.

E_OUTOFMEMORY

Indicates an out of memory error.

E_ACCESSDENIED

Indicates the specified object is no longer valid.

E_FAIL

Indicates an unspecified failure.

Requirements

Header OsAccess.h
Library OSAXSC.lib
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

IOsAxsVirtualMem
IOsAxs Interfaces