INtime SDK Help
GetRtPhysicalAddress
INtime SDK v6 > About INtime > INtime Kernel > Memory management > GetRtPhysicalAddress

Returns the physical address for a valid buffer described by the call parameters. If the buffer is read-write and contiguous across the range of cbLength, and is mapped into the caller's virtual segment, a value representing the physical address of the buffer is returned.

DWORD GetRtPhysicalAddress(
    PVOID pOffset,      // pointer to buffer
    DWORD cbLength,     // length of buffer
    DWORD dwReserved    // reserved value
);

Parameters

pOffset
A pointer to the buffer whose address will be converted.
cbLength
The length of the buffer.
dwReserved
Reserved for future use.

Remarks

Note that if the physical address of the buffer is greater than  0xFFFFFFFF then this call will fail with status E_LIMIT.

Return Values

The physical address for a valid buffer described by the call parameters.
Success.
BAD_PHYSICAL_ADDRESS
Failure. To determine the status, call GetLastRtError.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/rtbase.h rt.h rt.lib
See Also