Export (0) Print
Expand All

CLASS_MEDIA_CHANGE_CONTEXT structure

Contains information associated with a media change event.

Syntax


typedef struct _CLASS_MEDIA_CHANGE_CONTEXT {
  DWORD MediaChangeCount;
  DWORD NewState;
} CLASS_MEDIA_CHANGE_CONTEXT, *PCLASS_MEDIA_CHANGE_CONTEXT;

Members

MediaChangeCount

The number of times that media has been changed since system startup.

NewState

The state information. This member can be one of the following values from the MEDIA_CHANGE_DETECTION_STATE enumeration type.

MediaUnknown (0)
MediaPresent (1)
MediaNotPresent (2)
MediaUnavailable (3)

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Header

WinIoCtl.h (include Windows.h)

See also

DBT_CUSTOMEVENT
DBT_DEVICEREMOVECOMPLETE

 

 

Community Additions

ADD
Show:
© 2014 Microsoft