> When you call the function in the dll you are obliged to check the error code since the dll cannot signal error.
You could have an argument on Close, since it is difficult to determine a correct action to a non zero errorcode.
I am struggling to understand why you would have a shy result from Wait. Wait is the function to get the next “event”, making that shy it would signify that you are throwing events away without looking at it.