Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RtlIoDecodeMemIoResource
Collapse the table of content
Expand the table of content

RtlIoDecodeMemIoResource routine

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


ULONGLONG RtlIoDecodeMemIoResource(
  _In_      PIO_RESOURCE_DESCRIPTOR Descriptor,
  _Out_opt_ PULONGLONG              Alignment,
  _Out_opt_ PULONGLONG              MinimumAddress,
  _Out_opt_ PULONGLONG              MaximumAddress
);

Parameters

Descriptor [in]

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

Alignment [out, optional]

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

MinimumAddress [out, optional]

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

MaximumAddress [out, optional]

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

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

IO_RESOURCE_DESCRIPTOR
RtlIoEncodeMemIoResource

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft