The ExInitializeResourceLite routine initializes a resource variable.
- 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.
ExInitializeResourceLite returns STATUS_SUCCESS.
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.
|Available starting with Windows 2000.|
DDI compliance rules
Build date: 5/22/2013