private static extern Int32 _SetFixedVolumeProtectionMode(string securityToken, string deviceName, FixedVolumeProtectionMode newMode);
/// <summary> /// Defines the protection mode for a given fixed volume /// </summary> /// <param name="securityToken">Security token</param> /// <param name="deviceName">Device name of the volume</param> /// <param name="newMode">New protection mode</param> /// <exception cref="Exception">if call was not successfull.</exception> public static void SetFixedVolumeProtectionMode(string securityToken, string deviceName, FixedVolumeProtectionMode newMode) { if (_SetFixedVolumeProtectionMode(securityToken, deviceName, newMode) != 0) { throw new Exception(); } }