예제 #1
0
 private static extern Int32 _GetSwapStorageInfo(string deviceName, out FixedVolumeSwapStorageInfo info);
예제 #2
0
 /// <summary>
 /// Get swap storage info for a specific volume
 /// </summary>
 /// <param name="deviceName">Device name of the volume</param>
 /// <param name="info"></param>
 /// <exception cref="Exception">if call was not successfull.</exception>
 public static void GetSwapStorageInfo(string deviceName, out FixedVolumeSwapStorageInfo info)
 {
     if (_GetSwapStorageInfo(deviceName, out info) != 0)
     {
         throw new Exception("Api error");
     }
 }