Windows Media Player 11 SDK IWMPSettings2.requestMediaAccessRights (VB and C#)
Previous | Next |
IWMPSettings2.requestMediaAccessRights (VB and C#)
The requestMediaAccessRights method requests a specified level of access to the library.
Parameters
bstrDesiredAccess
A System.String that is one of the following values.
Value | Description |
none | Current item access rights only. |
read | Read access rights only. |
full | Read/Write access rights. |
Return Value
A System.Boolean that indicates whether the requested access rights were granted.
Remarks
A Web page must first request permission from the user to read information from or write data to the library. Invoking this method prompts the user with a dialog box that requests the specified permission level. This means that certain methods, properties, and events will be inaccessible from code if the appropriate access rights have not been granted. The current access rights level can be retrieved by using IWMPSettings2.mediaAccessRights.
Applications running on the user's computer are not required to use this method.
Requirements
Version: Windows Media Player 9 Series or later
Namespace: WMPLib
Assembly: Interop.WMPLib.dll (automatically generated by Visual Studio)
See Also
Previous | Next |