public void WaitForSlotEvent(bool dontBlock, out bool eventOccured, out ulong slotId)
{
if (this._disposed)
throw new ObjectDisposedException(this.GetType().FullName);
if (Platform.UnmanagedLongSize == 4)
{
uint uintSlotId = CK.CK_INVALID_HANDLE;
if (Platform.StructPackingSize == 0)
_p11_40.WaitForSlotEvent(dontBlock, out eventOccured, out uintSlotId);
else
_p11_41.WaitForSlotEvent(dontBlock, out eventOccured, out uintSlotId);
slotId = uintSlotId;
}
else
{
if (Platform.StructPackingSize == 0)
_p11_80.WaitForSlotEvent(dontBlock, out eventOccured, out slotId);
else
_p11_81.WaitForSlotEvent(dontBlock, out eventOccured, out slotId);
}
}