RtlCmDecodeMemIoResource routine

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


ULONGLONG RtlCmDecodeMemIoResource(
  _In_      PCM_PARTIAL_RESOURCE_DESCRIPTOR Descriptor,
  _Out_opt_ PULONGLONG                      Start
);

Parameters

Descriptor [in]

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

Start [out, optional]

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

Target platform

Universal

Version

Available in Windows Vista and later versions of Windows.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

Any level

See also

CM_PARTIAL_RESOURCE_DESCRIPTOR
RtlCmEncodeMemIoResource

 

 

Send comments about this topic to Microsoft

Show: