Re: Detecting OS loader lock
- From: "Christoph Lindemann" <clindemann2@xxxxxxxxxxxxxxxxx>
- Date: Fri, 12 Oct 2007 12:42:26 +0200
If this were that easy, why was "TryEnterCriticalSection" ever programmed?
For the same reason it would be very nice (yet years too late!) to either
get the loader lock's state, or a "try" version of critical APIs like
GetModuleHandle().
Exactly, this would at least make it possible to "fail gracefully", instead
of ending up in a deadlock - which potentially could go unnoticed for quite
a while until your customer wonders why nothing is happening (Kinda "no
entries in the event log, the service runs, everything looks ok -> hmm why
do no orders arrive?" situation)
Best regards,
Christoph
.
- References:
- Detecting OS loader lock
- From: Christoph Lindemann
- RE: Detecting OS loader lock
- From: "Jeffrey Tan[MSFT]"
- Re: Detecting OS loader lock
- From: Christian Kaiser
- Detecting OS loader lock
- Prev by Date: Re: Detecting OS loader lock
- Next by Date: Re: ProcessNotifyRoutine and NtQueryInformationProcess
- Previous by thread: Re: Detecting OS loader lock
- Next by thread: Re: Detecting OS loader lock
- Index(es):
Relevant Pages
|
|