Export (0) Print
Expand All

IWindowsMediaLibrarySharingServices interface

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.

Members

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

Methods

The IWindowsMediaLibrarySharingServices interface has these methods.

MethodDescription
get_allowSharingToAllDevices

Retrieves a value that indicates whether the current user's media library is shared with all devices on the home network.

get_computerHomeMediaSharingAllowedState

Retrieves a value that indicates whether media libraries on the computer are allowed to be shared on the home network.

get_computerInternetMediaSharingAllowedState

Retrieves a value that indicates whether media libraries on the computer are allowed to be shared on the Internet.

get_customSettingsApplied

Retrieves a value that indicates whether any custom media-sharing settings are in place for the current user.

get_internetMediaSharingSecurityGroup

Retrieves the name of the security group that is used to authenticate connections coming in over the Internet.

get_userHomeMediaSharingLibraryName

Retrieves the name of the current user's shared media library.

get_userHomeMediaSharingState

Retrieves a value that indicates whether the current user's media library is shared on the home network.

get_userInternetMediaSharingState

Retrieves a value that indicates whether the current user's media library is shared on the Internet.

getAllDevices

Retrieves an IWindowsMediaLibrarySharingDevices interface that represents all of the media-sharing client devices on the home network.

put_allowSharingToAllDevices

Allows or disallows sharing of the current user's media library with all devices on the home network.

put_computerHomeMediaSharingAllowedState

Specifies whether media libraries on the computer are allowed to be shared on the home network.

put_computerInternetMediaSharingAllowedState

Specifies whether media libraries on the computer are allowed to be shared on the Internet.

put_internetMediaSharingSecurityGroup

Specifies the name of the security group that is used to authenticate connections coming in over the Internet.

put_userHomeMediaSharingLibraryName

Sets the name of the current user's shared media library.

put_userHomeMediaSharingState

Enables or disables sharing of the current user's media library on the home network.

put_userInternetMediaSharingState

Enables or disables sharing of the current user's media library on the Internet.

setAuthorizationState

Enables or disables access to the current user's media library by a specified device.

setDefaultAuthorization

Enables or disables access to all users' media libraries by a specified set of devices.

showShareMediaCPL

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]

Header

Wmlss.h (include Wmlss.h)

DLL

WMPMediaSharing.dll

See also

Windows Media Library Sharing Services

 

 

Community Additions

ADD
Show:
© 2014 Microsoft