RtlOffsetToPointer macro

The RtlOffsetToPointer routine returns a pointer for a given offset from a given base address.

Syntax


PCHAR RtlOffsetToPointer(
   PVOID Base,
   ULONG Offset
);

Parameters

Base

Pointer to the base address.

Offset

Offset, in bytes, relative to the base address pointed to by Base.

Return value

RtlOffsetToPointer returns a pointer to the given Offset from the given Base.

Remarks

RtlOffsetToPointer is useful for obtaining pointers within self-relative data structures.

Callers of RtlOffsetToPointer must be running at IRQL < DISPATCH_LEVEL if the memory range from Base to Offset is pageable.

Requirements

Target platform

Desktop

Header

Ntifs.h (include Ntifs.h)

IRQL

< DISPATCH_LEVEL (see Remarks section)

See also

RtlPointerToOffset

 

 

Send comments about this topic to Microsoft

Show: