Edit

Share via


ExDeleteResourceLite function (wdm.h)

The ExDeleteResourceLite routine deletes a given resource from the system's resource list.

Syntax

NTSTATUS ExDeleteResourceLite(
  [in, out] PERESOURCE Resource
);

Parameters

[in, out] Resource

A pointer to the caller-supplied storage for the initialized resource variable to be deleted.

Return value

ExDeleteResourceLite returns STATUS_SUCCESS if the resource was deleted.

Remarks

A call to ExDeleteResourceLite must be preceded by a call to ExInitializeResourceLite.

After calling ExDeleteResourceLite, the caller can free the memory it allocated for its resource.

For more information, see ERESOURCE routines.

Requirements

Requirement Value
Minimum supported client Windows 2000
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <= APC_LEVEL
DDI compliance rules HwStorPortProhibitedDDIs(storport), IrqlExApcLte3(wdm)

See also

ExFreePool

ExInitializeResourceLite

ExReinitializeResourceLite