NTMS_IEPORTINFORMATION structure (ntmsapi.h)

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

The NTMS_IEPORTINFORMATION structure defines properties specific to an insert/eject port object.

Syntax

typedef struct _NTMS_IEPORTINFORMATION {
  DWORD     Number;
  DWORD     Content;
  DWORD     Position;
  WORD      MaxExtendSecs;
  NTMS_GUID Library;
} NTMS_IEPORTINFORMATION;

Members

Number

Library port number.

Content

Full/Empty state of the NTMS_IEPORT object. This can be one of the following values.

Value Meaning
NTMS_PORTCONTENT_FULL
Port is full.
NTMS_PORTCONTENT_EMPTY
Port is empty.
NTMS_PORTCONTENT_UNKNOWN
Content of port is not known.

Position

Position of the NTMS_IEPORT object. This can be one of the following values.

Value Meaning
NTMS_PORTPOSITION_EXTENDED
Port is extended.
NTMS_PORTPOSITION_RETRACTED
Port is retracted.
NTMS_PORTPOSITION_UNKNOWN
Port position is unknown.

MaxExtendSecs

Maximum number of seconds the port is allowed to remain open before an operator request is issued. Valid values are between 0 and 65,535 seconds. This member is writable.

Library

Library that contains the port.

Remarks

The NTMS_IEPORTINFORMATION structure is included in the NTMS_OBJECTINFORMATION structure.

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