private static extern Int32 _GetSwapStorageInfo(string deviceName, out FixedVolumeSwapStorageInfo info);
/// <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"); } }