<div dir="ltr">Mersi pt raspuns, stiam ca se poate afla valoarea semaforului cu ReleaseCount, insa param de la release tr sa fie o val strict pozitiva si asta modifica val semaforului. Nu e ceea ce caut.<br>Am gasit ca exista in ntdll.dll o functie NTQuerySemaphore, am incercat sa o folosesc si imi intoarce mereu 0.. intrebarea e ar trebui sa mearga functia aia?<br>
<br>Cristina<br><br><div class="gmail_quote">2008/8/26 Daniel Baluta <span dir="ltr"><<a href="mailto:daniel.baluta@gmail.com">daniel.baluta@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<a href="http://msdn.microsoft.com/en-us/library/ms685071%28VS.85%29.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/ms685071(VS.85).aspx</a><br>
<br>
Teoretic daca pui lReleaseCount = 1, atunci PreviousCount-1 ,<br>
e ceea ce cauti.<br>
<br>
Insa nu-ti recomand abordarea asta.<br>
<br>
Dan.<br>
<br>
<br>
2008/8/26 Cristina Basescu <<a href="mailto:cristina.basescu@gmail.com">cristina.basescu@gmail.com</a>>:<br>
<div><div></div><div class="Wj3C7c">> Salut,<br>
><br>
> stie cineva cum se poate afla valorea unui semafor pe windows?<br>
><br>
> Multumesc,<br>
> Cristina<br>
><br>
</div></div>> _______________________________________________<br>
> so mailing list<br>
> <a href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a><br>
> <a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br>
><br>
><br>
_______________________________________________<br>
so mailing list<br>
<a href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a><br>
<a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br>
</blockquote></div><br></div>