IOCTL_STORAGE_SET_TEMPERATURE_THRESHOLD IOCTL (winioctl.h)

Las aplicaciones de Windows pueden usar este código de control para establecer el umbral de temperatura de un dispositivo (cuando es compatible con el dispositivo). Use IOCTL_STORAGE_QUERY_PROPERTY para determinar si el dispositivo admite el cambio superior y bajo umbrales de temperatura.

Para realizar esta operación, llame a la función DeviceIoControl con los siguientes parámetros.

BOOL DeviceIoControl(
  (HANDLE) hDevice,                         // handle to device
  IOCTL_STORAGE_SET_TEMPERATURE_THRESHOLD,  // dwIoControlCode
  (LPDWORD) lpInBuffer,                     // input buffer
  (DWORD) nInBufferSize,                    // size of input buffer
  (LPDWORD) lpOutBuffer,                    // output buffer
  (DWORD) nOutBufferSize,                   // size of output buffer
  (LPDWORD) lpBytesReturned,                // number of bytes returned
  (LPOVERLAPPED) lpOverlapped               // OVERLAPPED structure
);

Requisitos

   
Cliente mínimo compatible Windows 10
Servidor mínimo compatible Windows Server 2016
Encabezado winioctl.h (incluye Windows.h)

Consulte también