RtlCmDecodeMemIoResource function (wdm.h)

The RtlCmDecodeMemIoResource routine provides the starting address and length of a CM_PARTIAL_RESOURCE_DESCRIPTOR structure that describes a range of memory or I/O port addresses.

Syntax

NTSYSAPI ULONGLONG RtlCmDecodeMemIoResource(
  [in]            PCM_PARTIAL_RESOURCE_DESCRIPTOR Descriptor,
  [out, optional] PULONGLONG                      Start
);

Parameters

[in] Descriptor

A pointer to the CM_PARTIAL_RESOURCE_DESCRIPTOR structure to provide the starting address and length for.

[out, optional] Start

A pointer to a variable that receives the starting address of the range of memory or I/O port addresses.

Return value

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

Remarks

The Type member of the CM_PARTIAL_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

CM_PARTIAL_RESOURCE_DESCRIPTOR

RtlCmEncodeMemIoResource