Avem voie cu functia asta? NtQuerySemaphore e buna sa aflam valoarea unui semafor (nu sunt sigur ca e atomica, dar mi s-ar parea ca normal sa fie) http://undocumented.ntinternals.net/UserMode/Undocumented%20Functions/NT%20Objects/Semaphore/NtQuerySemaphore.html __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree