Windows Media Player 11 SDK IWMPSettings2::get_mediaAccessRightsÂ
Previous | Next |
IWMPSettings2::get_mediaAccessRights
The get_mediaAccessRights method retrieves a value indicating the permissions currently granted for library access.
Syntax
Parameters
pbstrRights
[out] Pointer to a BSTR containing one of the following values.
Value | Description |
none | Current item access rights only. |
read | Read access rights only. |
full | Read/Write access rights. |
Return Values
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
S_OK | The method succeeded. |
Remarks
A Web page must first request permission from the user to read information from or write data to the library. This means that certain methods, properties, and events will be inaccessible from code if the appropriate access rights have not been granted. To obtain access rights, the application calls IWMPSettings2::get_requestMediaAccessRights, passing a parameter that specifies the desired access rights level.
Applications running on the user's computer always have full access rights.
Windows Media Player 10 Mobile: This method always retrieves a BSTR containing the string "full".
Requirements
Version: Windows Media Player 9 Series or later.
Header: Include wmp.h.
Library: Use wmp.dll.
See Also
Previous | Next |