Re[2]: Check for mutex

Hello Andrei,

there are various other synchronization primitives you
might use. I think a notification event might do the trick in
this case…


Best regards,
Alex mailto:xxxxx@bitdefender.com

Thursday, August 25, 2005, 9:50:32 AM, you wrote:

Hello,

Me again… It seems that “undocumented” is the best title for these
functions. I seem unable to find some usage sample (I’ve found the
definition…) of the Zw(Nt)OpenMutant. Does anyone worked with this
functions? Please help!

Thank you,

Andrei Ciubotaru [Hardwired]

Andrei Ciubotaru [Hardwired] wrote:

> I make this check only once in 2 seconds. It shouldn’t affect the
> performance too much… i think.
>
> Thank you for the quick answer.
>
> Thank you,
>
> Andrei Ciubotaru
>
>
>
>
>
> Satya Das wrote:
>
>> ZwOpenMutant/NtOpenMutant which are undocumented. You can switch to
>> semaphores and call NtCreateSemaphore instead. You can get the prototype
>> from internet.
>> It is not unsafe to use mutants in kernel mode. They are not preferred
>> in kernel because of performance reasons.
>> —
>> Questions? First check the Kernel Driver FAQ at
>> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: unknown lmsubst tag
>> argument: ‘’
>> To unsubscribe send a blank email to
>> xxxxx@lists.osr.com
>>
>>
>>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@icode.ro
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@bitdefender.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


This message was scanned for spam and viruses by BitDefender.
For more information please visit http://www.bitdefender.com/

Hi.

If it’s a named mutex you can use ObOpenObjectByName and check is it exists
or not.

“Andrei Ciubotaru [Hardwired]” ???/??? ?
??? ???: news:xxxxx@ntdev…
> Hello,
>
> Me again… It seems that “undocumented” is the best title for these
> functions. I seem unable to find some usage sample (I’ve found the
> definition…) of the Zw(Nt)OpenMutant. Does anyone worked with this
> functions? Please help!
>
> Thank you,
>
> Andrei Ciubotaru [Hardwired]
>
>
>
>
>
> Andrei Ciubotaru [Hardwired] wrote:
>
>> I make this check only once in 2 seconds. It shouldn’t affect the
>> performance too much… i think.
>>
>> Thank you for the quick answer.
>>
>> Thank you,
>>
>> Andrei Ciubotaru
>>
>>
>>
>>
>>
>> Satya Das wrote:
>>
>>> ZwOpenMutant/NtOpenMutant which are undocumented. You can switch to
>>> semaphores and call NtCreateSemaphore instead. You can get the prototype
>>> from internet.
>>> It is not unsafe to use mutants in kernel mode. They are not preferred
>>> in kernel because of performance reasons.
>>> —
>>> Questions? First check the Kernel Driver FAQ at
>>> http://www.osronline.com/article.cfm?id=256
>>>
>>> You are currently subscribed to ntdev as: unknown lmsubst tag argument:
>>> ‘’
>>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>>
>>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
>> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@icode.ro
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>