Skip to content

Latest commit

 

History

History
96 lines (65 loc) · 4.42 KB

ni-ntddchgr-ioctl_changer_get_element_status.md

File metadata and controls

96 lines (65 loc) · 4.42 KB
UID title description old-location tech.root ms.date keywords 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 f1_keywords topic_type api_type api_location api_name
NI:ntddchgr.IOCTL_CHANGER_GET_ELEMENT_STATUS
IOCTL_CHANGER_GET_ELEMENT_STATUS (ntddchgr.h)
Returns the status of all elements or the status of a specified number of elements of a particular type. For a description of the possible element types, see CHANGER_ELEMENT.
storage\ioctl_changer_get_element_status.htm
storage
03/29/2018
IOCTL_CHANGER_GET_ELEMENT_STATUS IOCTL
IOCTL_CHANGER_GET_ELEMENT_STATUS, IOCTL_CHANGER_GET_ELEMENT_STATUS control, IOCTL_CHANGER_GET_ELEMENT_STATUS control code [Storage Devices], k307_017d1ca9-974c-4a25-b28f-51e0bdc562d8.xml, ntddchgr/IOCTL_CHANGER_GET_ELEMENT_STATUS, storage.ioctl_changer_get_element_status
ntddchgr.h
Ntddchgr.h
Windows
Windows
IOCTL_CHANGER_GET_ELEMENT_STATUS
ntddchgr/IOCTL_CHANGER_GET_ELEMENT_STATUS
APIRef
kbSyntax
HeaderDef
Ntddchgr.h
IOCTL_CHANGER_GET_ELEMENT_STATUS

IOCTL_CHANGER_GET_ELEMENT_STATUS IOCTL

-description

Returns the status of all elements or the status of a specified number of elements of a particular type.

For a description of the possible element types, see CHANGER_ELEMENT.

-ioctlparameters

-ioctl-major-code

-input-buffer

The buffer at Irp->AssociatedIrp.SystemBuffer contains the CHANGER_READ_ELEMENT_STATUS data that indicates the element type and the number of elements for which to return status.

If the caller sets the VolumeTagInfo member of CHANGER_READ_ELEMENT_STATUS to TRUE, the element status that is returned will include volume tag information.

-input-buffer-length

Parameters.DeviceIoControl.InputBufferLength in the I/O stack location indicates the size, in bytes, of the parameter buffer for input, which must be >= sizeof(CHANGER_READ_ELEMENT_STATUS).

-output-buffer

The changer miniclass driver returns the changer element status data in the buffer at Irp->AssociatedIrp.SystemBuffer. Some elements of type ChangerDrive return product information data. If the device provides product information, the miniclass driver will report the element status data in a structure of type CHANGER_ELEMENT_STATUS_EX. The miniclass driver sets ELEMENT_STATUS_PRODUCT_DATA in the Flags member of the structure to indicate that it contains product information data. For elements of all types other than ChangerDrive, the driver reports element status data in a structure of type CHANGER_ELEMENT_STATUS.

-output-buffer-length

Parameters.DeviceIoControl.OutputBufferLength indicates the size, in bytes, of the parameter buffer for output. For elements of type ChangerDrive, this value must be >= NumberOfElements * sizeof(CHANGER_ELEMENT_STATUS_EX). For elements of all other types, this value must be >= NumberOfElements * sizeof(CHANGER_ELEMENT_STATUS).

-in-out-buffer

-inout-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, STATUS_INFO_LENGTH_MISMATCH, STATUS_INSUFFICIENT_RESOURCES, STATUS_INVALID_ELEMENT_ADDRESS, or STATUS_INVALID_PARAMETER.

-see-also

CHANGER_ELEMENT

CHANGER_ELEMENT_STATUS

CHANGER_ELEMENT_STATUS_EX

ChangerGetElementStatus