Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The GetAttributes2 method gets attributes of files or storages.
HRESULT GetAttributes2(
[out] DWORD *pdwAttributes,
[out] DWORD *pdwAttributesEx,
[out] _WAVEFORMATEX *pAudioFormat,
[out] _VIDEOINFOHEADER *pVideoFormat
);
[out] pdwAttributes
Pointer to a DWORD containing the base attributes as defined in the IWMDMStorage::GetAttributes method.
[out] pdwAttributesEx
Pointer to a DWORD containing the extended attributes. Currently no extended attributes are defined.
[out] pAudioFormat
Pointer to a _WAVEFORMATEX structure that contains audio format information about the object. This parameter is optional and is ignored if the file is not audio.
[out] pVideoFormat
Pointer to a _VIDEOINFOHEADER structure that contains video format information about the object. This parameter is optional and is ignored if the file is not video.
The method returns an HRESULT. All the interface methods in Windows Media Device Manager can return any of the following classes of error codes:
See remarks for IWMDMStorage::GetAttributes.
This method must be implemented. It must not return WMDM_E_NOTSUPPORTED or E_NOTIMPL. For more information, see Mandatory and Optional Interfaces.
Requirement | Value |
---|---|
Target Platform | Windows |
Header | mswmdm.h |
Library | Mssachlp.lib |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today