NTMS_IEDOORINFORMATION structure (ntmsapi.h)

[Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]

The NTMS_IEDOORINFORMATION structure defines properties specific to an insert/eject door object.

Syntax

typedef struct _NTMS_IEDOORINFORMATION {
  DWORD     Number;
  DWORD     State;
  WORD      MaxOpenSecs;
  NTMS_GUID Library;
} NTMS_IEDOORINFORMATION;

Members

Number

Number of the door in the library. Typically, libraries have one door.

State

State of the door. This can be one of the following values.

Value Meaning
NTMS_DOORSTATE_CLOSED
Library door is closed.
NTMS_DOORSTATE_OPEN
Library door is open.
NTMS_DOORSTATE_UNKNOWN
State of the library is unknown.

MaxOpenSecs

Maximum number of seconds the door is to remain open. Valid values are between 0-65,535 seconds This member is writable.

Library

Library that contains this door.

Remarks

The NTMS_IEDOORINFORMATION structure is included in the NTMS_OBJECTINFORMATION structure.

If the MaxOpenSecs member is zero, an operator request to close the door is generated as soon as the door is open.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header ntmsapi.h

See also

NTMS_OBJECTINFORMATION