Checking for Permission to Call APIs

Windows Media Center allows users to place restrictions on Windows Media Center applications for reasons of security and privacy. These settings determine whether Windows Media Center applications are allowed to control Windows Media Center and retrieve its settings, and whether applications can retrieve Windows Media Center metadata. To see the settings page, on the Windows Media Center Start menu go to Tasks > Settings > Start Menu and Extras > Extras Library Options.

Developers should be aware of these settings and design applications to handle them appropriately. To determine the current control level when using managed code, monitor the following exceptions that are thrown when you try to use an API, which indicate a restriction:

Sample Explorer

  • Web > Exception Handling

See Also