DosQueryEventSem returns the post count for an event semaphore. The post count is the number of times that DosPostEventSem has been called since the last time the semaphore was in the reset state.
This function can be called by any thread in the process that created the semaphore. Other processes can also call this function, but they must first gain access to the semaphore by calling DosOpenEventSem.