dynamic vs static memory for ERESOURCE

HI,

I am having confusion, that what will be good and safe way to use ERESOURCE for ExInitializeResourceLite.

Means.
allocating memory for ERESOURCE dynamically from non-paged or just declare ERESOURCE
globally( if required) and then use it.

Thanks.

It depends on what the resource is locking.

Mark Roddy

On Thu, Apr 13, 2017 at 2:40 AM, wrote:

> HI,
>
> I am having confusion, that what will be good and safe way to use
> ERESOURCE for ExInitializeResourceLite.
>
> Means.
> allocating memory for ERESOURCE dynamically from non-paged or just declare
> ERESOURCE
> globally( if required) and then use it.
>
> Thanks.
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list online at: http:> showlists.cfm?list=ntdev>
>
> MONTHLY seminars on crash dump analysis, WDF, Windows internals and
> software drivers!
> Details at http:
>
> To unsubscribe, visit the List Server section of OSR Online at <
> http://www.osronline.com/page.cfm?name=ListServer&gt;
></http:></http:>

for example I am using generic tables and own defined global link list.

The both ways are good and safe.