Returns the type of media that is in the given drive.
Syntax
HRESULT SHGetDriveMedia(
LPCWSTR pszDrive,
DWORD *pdwMediaContent
);
Parameters
- pszDrive
-
[in] The drive in which to check the media type.
- pdwMediaContent
-
[out] A pointer to the type of media in the given drive. A combination of ARCONTENT flags.
Return Value
Returns S_OK if successful, or an error value otherwise.
Function Information
| Minimum DLL Version | Shell32.dll |
|---|
| Custom Implementation | No |
|---|
| Header | shellapi.h |
|---|
| Import library | None |
|---|
| Minimum operating systems |
Windows Vista |
|---|