public CKR C_EX_ChangeVolumeAttributes(NativeULong slotId, NativeULong userType,
            byte[] pin, NativeULong volumeId, FlashAccessMode newAccessMode, bool permanent)
        {
            if (_disposed)
                throw new ObjectDisposedException(GetType().FullName);

            NativeULong pinLength = 0;
            if (pin != null)
                pinLength = (NativeULong)(pin.Length);

            NativeULong rv = _rutokenDelegates.C_EX_ChangeVolumeAttributes(slotId, userType,
                pin, pinLength,
                volumeId, (NativeULong)newAccessMode, permanent);
            return (CKR)rv;
        }