C_WaitForSlotEvent

This function operates as specified in PKCS#11 except:

The library cannot block while waiting for an event therefore the CKF_DONT_BLOCK must always be set. 

If CKF_DONT_BLOCK is not set and there is no event pending on any slot then:

CKR_FUNCTION_FAILED is returned.

Slot Events supported:

There are no events supported by this library.

Synopsis

C_WaitForSlotEvent(
        CK_FLAGS flags,
        CK_SLOT_ID_PTR pSlot,
        CK_VOID_PTR pReserved
);