Microsoft DirectX 9.0 |
The get_MediaState method retrieves the current state of the media.
Syntax
HRESULT get_MediaState(
long *pState
);
Parameters
pState
[out] Pointer to a long integer that receives one of the following values.
Value | Description |
ED_MEDIA_SPIN_DOWN | For disk media: Stopped spinning. For tape media: Tape is unthreaded. |
ED_MEDIA_SPIN_UP | For disk media: Started spinning, but not at full speed. For tape media: Threading the tape. |
ED_MEDIA_UNLOAD | Media is ejected from the drive. |
Return Values
When this method succeeds, it returns S_OK. Otherwise it returns an HRESULT error code.
DV Implementation
MSDV does not support this method. It returns E_NOTIMPL.
See Also