Esempio n. 1
0
 /// <summary>
 /// IOCTL_DISK_GET_CACHE_INFORMATION IOCTL ( https://docs.microsoft.com/en-us/windows/desktop/api/WinIoCtl/ni-winioctl-ioctl_disk_get_cache_information )
 /// </summary>
 /// <param name="IoControl"></param>
 /// <returns></returns>
 public static bool DiskSetCacheInformation(this IoControl IoControl, ref DiskCacheInformation information, out uint ReturnBytes) => IoControl.DeviceIoControl(IOControlCode.DiskSetCacheInformation, ref information, out ReturnBytes);
Esempio n. 2
0
 /// <summary>
 /// IOCTL_DISK_GET_CACHE_INFORMATION IOCTL ( https://docs.microsoft.com/en-us/windows/desktop/api/WinIoCtl/ni-winioctl-ioctl_disk_get_cache_information )
 /// </summary>
 /// <param name="IoControl"></param>
 /// <param name="information"></param>
 public static bool DiskGetCacheInformation(this IoControl IoControl, out DiskCacheInformation information) => IoControl.DeviceIoControlOutOnly(IOControlCode.DiskGetCacheInformation, out information, out var _);