IWindowsMediaLibrarySharingServices::get_allowSharingToAllDevices method
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.
Syntax
HRESULT get_allowSharingToAllDevices( [out] VARIANT_BOOL *sharingEnabled );
Parameters
- sharingEnabled [out]
-
Pointer to a VARIANT_BOOL that receives VARIANT_TRUE if the media libray is shared with all devices and VARIANT_FALSE if the media library is not shared with at least one device.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
|
The method succeeded. |
Requirements
|
Minimum supported client | Windows 7 [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
|
Header |
|
|
DLL |
|