private static extern Int32 _SetFixedVolumeBootMode(string securityToken, string deviceName, FixedVolumeBootMode newMode);
/// <summary> /// Defines the boot 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 boot mode</param> public static void SetFixedVolumeBootMode(string securityToken, string deviceName, FixedVolumeBootMode newMode) { if (_SetFixedVolumeBootMode(securityToken, deviceName, newMode) != 0) { throw new Exception(); } }