Share via


FSCTL_REPAIR_COPIES IOCTL (winioctl.h)

Para reparar los datos dañados, seleccione la copia adecuada que se va a usar. Este código de control se introdujo en Windows 8 y Windows Server 2012 para su uso en Espacios de almacenamiento y Streams en NTFS y ReFS y secuencias que no son de integridad en ReFS (las secuencias con integridad en ReFS controlan esto automáticamente).

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

BOOL DeviceIoControl(
  (HANDLE)  hDevice,                // handle to file or directory
  FSCTL_REPAIR_COPIES,              // dwIoControlCode
  (LPDWORD) pInBuffer,              // REPAIR_COPIES_INPUT
  (DWORD)   InBufferSize,           // size of input buffer
  (LPDWORD) pOutBuffer,             // REPAIR_COPIES_OUTPUT
  (DWORD)   OutBufferSize,          // size of output buffer
  (LPDWORD) lpBytesReturned,        // number of bytes returned
  (LPOVERLAPPED) lpOverlapped       // OVERLAPPED structure
);

Requisitos

   
Cliente mínimo compatible No se admite ninguno
Servidor mínimo compatible Windows Server 2012 [solo aplicaciones de escritorio]
Encabezado winioctl.h (incluye Windows.h)

Consulte también