Destroying or freeing events

Dear All,

How to destroy or free the events that were created by
KeInitializeEvent()function.

Any Information will be greatly appreciated ,
Thanx in advance,
Kedar.

There is no official destructor for many KE synchronization objects (like
timers, DPCs and Events). You have to ensure that the object is not in use
and just free the memory (this could be embedded in another structure).


Nar Ganapathy
Windows Core OS group
This posting is provided “AS IS” with no warranties, and confers no rights.

“kedar” wrote in message news:xxxxx@ntdev…
>
> Dear All,
>
> How to destroy or free the events that were created by
> KeInitializeEvent()function.
>
> Any Information will be greatly appreciated ,
> Thanx in advance,
> Kedar.
>
>

there is no destruction routine for KEVENTS created by
KeInitializeEvent. You simply free the memory the event is in.

like any of your other data structures, you are responsible for ensuring
that no one else is using that event now and that it won’t be used in
the future (through a stale pointer for example).

-p

-----Original Message-----
From: kedar [mailto:xxxxx@hotmail.com]
Sent: Wednesday, August 28, 2002 6:57 AM
To: NT Developers Interest List
Subject: [ntdev] Destroying or freeing events

Dear All,

How to destroy or free the events that were created by
KeInitializeEvent()function.

Any Information will be greatly appreciated ,
Thanx in advance,
Kedar.


You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%

Thanks for all the valuable information.

Kedar.

> How to destroy or free the events that were created by

KeInitializeEvent()function.

Not necessary. KeInitializeEvent just fills the fields.

Max