RtlIoDecodeMemIoResource function (wdm.h)

The RtlIoDecodeMemIoResource routine provides the address information that is contained in an IO_RESOURCE_DESCRIPTOR structure that describes a range of memory or I/O port addresses.

Syntax

NTSYSAPI ULONGLONG RtlIoDecodeMemIoResource(
  [in]            PIO_RESOURCE_DESCRIPTOR Descriptor,
  [out, optional] PULONGLONG              Alignment,
  [out, optional] PULONGLONG              MinimumAddress,
  [out, optional] PULONGLONG              MaximumAddress
);

Parameters

[in] Descriptor

A pointer to the IO_RESOURCE_DESCRIPTOR structure to provide the address information for.

[out, optional] Alignment

A pointer to a variable that receives the alignment, in bytes, of the address range. This parameter can be NULL.

[out, optional] MinimumAddress

A pointer to a variable that receives the minimum address of the address range. This parameter can be NULL.

[out, optional] MaximumAddress

A pointer to a variable that receives the maximum address of the address range. This parameter can be NULL.

Return value

RtlIoDecodeMemIoResource returns the length of the address range, in bytes.

Remarks

The Type member of the IO_RESOURCE_DESCRIPTOR structure must be CmResourceTypeMemory, CmResourceTypeMemoryLarge, or CmResourceTypePort.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of Windows.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL Any level

See also

IO_RESOURCE_DESCRIPTOR

RtlIoEncodeMemIoResource