Exemplo n.º 1
0
 private static extern Int32 _SetFixedVolumeBootAction(string securityToken, string deviceName, FixedVolumeBootAction newAction);
Exemplo n.º 2
0
 /// <summary>
 /// Defines the action for the next reboot of a given fixed volume
 /// </summary>
 /// <param name="securityToken">Security token</param>
 /// <param name="deviceName">Device name of the volume</param>
 /// <param name="newAction">New boot action</param>
 /// <exception cref="Exception">if call was not successfull.</exception>
 public static void SetFixedVolumeBootAction(string securityToken, string deviceName, FixedVolumeBootAction newAction)
 {
     if (_SetFixedVolumeBootAction(securityToken, deviceName, newAction) != 0)
     {
         throw new Exception();
     }
 }