IOCTL_CDROM_GET_LAST_SESSION - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntddcdrm.h

// CTL_CODE(0x0002, 0x00e, METHOD_BUFFERED, FILE_READ_ACCESS)
#define IOCTL_CDROM_GET_LAST_SESSION 0x00024038
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ni-ntddcdrm-ioctl_cdrom_get_last_session)

IOCTL_CDROM_GET_LAST_SESSION IOCTL

Description

Queries the device for the first complete session number, the last complete session number, and the last complete session starting address. This request is the same as an IOCTL_CDROM_READ_TOC_EX request with a format of CDROM_READ_TOC_EX_FORMAT_SESSION. For more information on the CDROM_READ_TOC_EX_FORMAT_SESSION format, see the description of the Format member of the CDROM_READ_TOC_EX structure.

On output, if the value in the FirstCompleteSession member of CDROM_TOC_SESSION_DATA is the same as the value in the LastCompleteSession member, the disc is not multisession.

Parameters

Major code

Input buffer

None.

Input buffer length

None.

Output buffer

The driver returns the query data in a CDROM_TOC_SESSION_DATA structure at Irp->AssociatedIrp.SystemBuffer.

Output buffer length

Length of a CDROM_TOC_SESSION_DATA structure.

Input/output buffer

Input/output buffer length

Status block

The Information field is set to the number of bytes returned. The Status field is set to STATUS_SUCCESS, or possibly to STATUS_BUFFER_TOO_SMALL or STATUS_INSUFFICIENT_RESOURCES.

Remarks