ExInitializeResourceLite - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdm.h

NTSTATUS ExInitializeResourceLite(
  [out] PERESOURCE Resource
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdm-exinitializeresourcelite)

ExInitializeResourceLite function

Description

The ExInitializeResourceLite routine initializes a resource variable.

Parameters

Resource [out]

A pointer to the caller-supplied storage, which must be at least sizeof(ERESOURCE), for the resource variable being initialized. The storage must be 4-byte aligned on 32-bit platforms, and 8-byte aligned on 64-bit platforms.

Return value

ExInitializeResourceLite returns STATUS_SUCCESS.

Remarks

The storage for ERESOURCE must be allocated from nonpaged pool.

The resource variable can be used for synchronization by a set of threads. Although the caller provides the storage for the resource variable, the ERESOURCE structure is opaque; that is, its members are reserved for system use.

Call ExDeleteResourceLite before freeing the memory for the resource.

For more information, see ERESOURCE routines.

See also

ExAcquireResourceExclusiveLite

ExAcquireResourceSharedLite

ExAcquireSharedStarveExclusive

ExAcquireSharedWaitForExclusive

ExConvertExclusiveToSharedLite

ExDeleteResourceLite

ExIsResourceAcquiredExclusiveLite

ExIsResourceAcquiredSharedLite

ExReinitializeResourceLite

ExReleaseResourceForThreadLite