// ntddchgr.h
typedef struct _CHANGER_SET_ACCESS {
CHANGER_ELEMENT Element;
ULONG Control;
} CHANGER_SET_ACCESS, *PCHANGER_SET_ACCESS;
View the official Windows Driver Kit DDI reference// winioctl.h
typedef struct _CHANGER_SET_ACCESS {
CHANGER_ELEMENT Element;
DWORD Control;
} CHANGER_SET_ACCESS, *PCHANGER_SET_ACCESS;
View the official Win32 API referenceNo description available.
The CHANGER_SET_ACCESS structure is used in conjunction with theIOCTL_CHANGER_SET_ACCESS request to set the state of the device's import/export port (IEport), door, or keypad.
ElementContains a CHANGER_ELEMENT structure that specifies the element type and the zero-based address of the element to set. The ElementType member of the CHANGER_ELEMENT structure must be assigned one of the following values:
ChangerIEPortChangerDoorChangerKeypad
ControlSpecifies the operation to perform on the element. The Features0 member of GET_CHANGER_PARAMETERS indicates whether the changer supports a particular category of operation.
Lock the door, IEport, or keypad. Valid only if CHANGER_LOCK_UNLOCK is set.
Unlock the door, IEport, or keypad. Valid only if CHANGER_LOCK_UNLOCK is set.
Extend the IEport. Valid only if CHANGER_OPEN_IEPORT is set.
Retract the IEport. Valid only if CHANGER_CLOSE_IEPORT is set.
Contains information that the IOCTL_CHANGER_SET_ACCESS control code needs to set the state of the device's insert/eject port, door, or keypad.
ElementA CHANGER_ELEMENT structure that represents the changer element. The ElementType member can be one of the following values: ChangerDoor, ChangerIEPort, or ChangerKeypad.
ControlThe operation to be performed.
| Value | Meaning |
|---|---|
| EXTEND_IEPORT 2 |
The element is to be extended. Requires that Features0 is CHANGER_OPEN_IEPORT. |
| LOCK_ELEMENT 0 |
The element is to be locked. Requires that Features0 is CHANGER_LOCK_UNLOCK. |
| RETRACT_IEPORT 3 |
The element is to be retracted. Requires that Features0 is CHANGER_CLOSE_IEPORT. |
| UNLOCK_ELEMENT 1 |
The element is to be unlocked. Requires that Features0 is CHANGER_LOCK_UNLOCK. |