Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Windows Shell
Shell Reference
Shell Functions
 SHGetDriveMedia Function

  Switch on low bandwidth view
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 What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker