Skip to content

Latest commit

 

History

History
107 lines (85 loc) · 3.21 KB

ni-winioctl-fsctl_make_media_compatible.md

File metadata and controls

107 lines (85 loc) · 3.21 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist f1_keywords dev_langs topic_type api_type api_location api_name
NI:winioctl.FSCTL_MAKE_MEDIA_COMPATIBLE
FSCTL_MAKE_MEDIA_COMPATIBLE
Closes an open UDF session on write-once media to make the media ROM compatible.
FSCTL_MAKE_MEDIA_COMPATIBLE
FSCTL_MAKE_MEDIA_COMPATIBLE control
FSCTL_MAKE_MEDIA_COMPATIBLE control code [Files]
fs.fsctl_make_media_compatible
winioctl/FSCTL_MAKE_MEDIA_COMPATIBLE
fs\fsctl_make_media_compatible.htm
fs
bbe58c35-d0da-4c29-a412-a84a138dc9fb
12/05/2018
FSCTL_MAKE_MEDIA_COMPATIBLE, FSCTL_MAKE_MEDIA_COMPATIBLE control, FSCTL_MAKE_MEDIA_COMPATIBLE control code [Files], fs.fsctl_make_media_compatible, winioctl/FSCTL_MAKE_MEDIA_COMPATIBLE
winioctl.h
Windows.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Windows
FSCTL_MAKE_MEDIA_COMPATIBLE
winioctl/FSCTL_MAKE_MEDIA_COMPATIBLE
c++
APIRef
kbSyntax
HeaderDef
WinIoCtl.h
FSCTL_MAKE_MEDIA_COMPATIBLE

FSCTL_MAKE_MEDIA_COMPATIBLE IOCTL

-description

Closes an open UDF session on write-once media to make the media ROM compatible. Used in conjunction with FILE_SEQUENTIAL_WRITE_ONCE volume flag. This call must be issued on the volume handle.

To perform this operation, call the DeviceIoControl function with the following parameters.

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

-ioctlparameters

-input-buffer

-input-buffer-length

-output-buffer

-output-buffer-length

-in-out-buffer

-inout-buffer-length

-status-block

Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful.

Otherwise, Status to the appropriate error condition as a NTSTATUS code.

For more information, see NTSTATUS Values.

-remarks

In Windows 8 and Windows Server 2012, this code is supported by the following technologies.

Technology Supported
Server Message Block (SMB) 3.0 protocol No
SMB 3.0 Transparent Failover (TFO) No
SMB 3.0 with Scale-out File Shares (SO) No
Cluster Shared Volume File System (CsvFS) No
Resilient File System (ReFS) No

-see-also