IWindowsMediaLibrarySharingServices interface (wmlss.h)

[The feature associated with this page, Windows Media Library Sharing Services, is a legacy feature. It has been superseded by Media Casting. Media Casting has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Media Casting instead of #FEATURENAMENOLINK#, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The IWindowsMediaLibrarySharingServices interface defines methods that configure the sharing of media libraries among users on the local computer, users on the home network, and users on the Internet.

Inheritance

The IWindowsMediaLibrarySharingServices interface inherits from the IDispatch interface. IWindowsMediaLibrarySharingServices also has these types of members:

Methods

The IWindowsMediaLibrarySharingServices interface has these methods.

 
IWindowsMediaLibrarySharingServices::get_allowSharingToAllDevices

The get_allowSharingToAllDevices method retrieves a value that indicates whether the current user's media library is shared with all devices on the home network.
IWindowsMediaLibrarySharingServices::get_computerHomeMediaSharingAllowedState

The get_computerHomeMediaSharingAllowedState method retrieves a value that indicates whether media libraries on the computer are allowed to be shared on the home network.
IWindowsMediaLibrarySharingServices::get_computerInternetMediaSharingAllowedState

The get_computerInternetMediaSharingAllowedState method retrieves a value that indicates whether media libraries on the computer are allowed to be shared on the Internet.
IWindowsMediaLibrarySharingServices::get_customSettingsApplied

The get_customSettingsApplied method retrieves a value that indicates whether any custom media-sharing settings are in place for the current user.
IWindowsMediaLibrarySharingServices::get_internetMediaSharingSecurityGroup

The get_internetMediaSharingSecurityGroup method retrieves the name of the security group that is used to authenticate connections coming in over the Internet.
IWindowsMediaLibrarySharingServices::get_userHomeMediaSharingLibraryName

The get_userHomeMediaSharingLibraryName method retrieves the name of the current user's shared media library.
IWindowsMediaLibrarySharingServices::get_userHomeMediaSharingState

The get_userHomeMediaSharingState method retrieves a value that indicates whether the current user's media library is shared on the home network.
IWindowsMediaLibrarySharingServices::get_userInternetMediaSharingState

The get_userInternetMediaSharingState method retrieves a value that indicates whether the current user's media library is shared on the Internet.
IWindowsMediaLibrarySharingServices::getAllDevices

The getAllDevices method retrieves an IWindowsMediaLibrarySharingDevices interface that represents all of the media-sharing client devices on the home network.
IWindowsMediaLibrarySharingServices::put_allowSharingToAllDevices

The put_allowSharingToAllDevices method allows or disallows sharing of the current user's media library with all devices on the home network.
IWindowsMediaLibrarySharingServices::put_computerHomeMediaSharingAllowedState

The put_computerHomeMediaSharingAllowedState method specifies whether media libraries on the computer are allowed to be shared on the home network.
IWindowsMediaLibrarySharingServices::put_computerInternetMediaSharingAllowedState

The put_computerInternetMediaSharingAllowedState method specifies whether media libraries on the computer are allowed to be shared on the Internet.
IWindowsMediaLibrarySharingServices::put_internetMediaSharingSecurityGroup

The put_internetMediaSharingSecurityGroup method specifies the name of the security group that is used to authenticate connections coming in over the Internet.
IWindowsMediaLibrarySharingServices::put_userHomeMediaSharingLibraryName

The put_userHomeMediaSharingLibraryName method sets the name of the current user's shared media library.
IWindowsMediaLibrarySharingServices::put_userHomeMediaSharingState

The put_userHomeMediaSharingState method enables or disables sharing of the current user's media library on the home network.
IWindowsMediaLibrarySharingServices::put_userInternetMediaSharingState

The put_userInternetMediaSharingState method enables or disables sharing of the current user's media library on the Internet.
IWindowsMediaLibrarySharingServices::setAuthorizationState

The setAuthorizationState method enables or disables access to the current user's media library by a specified device.
IWindowsMediaLibrarySharingServices::setDefaultAuthorization

The setDefaultAuthorization method enables or disables access to all users' media libraries by a specified set of devices.
IWindowsMediaLibrarySharingServices::showShareMediaCPL

The showShareMediaCPL method displays the media sharing page in the Control Panel and highlights a specified device.

Remarks

To obtain an IWindowsMediaLibrarySharingServices interface, call CoCreateInstance to create a WindowsMediaLibrarySharingServices object.

Requirements

   
Minimum supported client Windows�7 [desktop apps only]
Minimum supported server Windows Server�2008�R2 [desktop apps only]
Target Platform Windows
Header wmlss.h (include Wmlss.h)

See also

IDispatch

Windows Media Library Sharing Services