CLASS_MEDIA_CHANGE_CONTEXT structure (winioctl.h)

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