Shell Functions


SHGetDriveMedia Function

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 VersionShell32.dll
Custom ImplementationNo
Headershellapi.h
Import libraryNone
Minimum operating systems Windows Vista
Tags :


Page view tracker