Sunshine master
Self-hosted game stream host for Moonlight.
PolicyConfig.h File Reference

Undocumented COM-interface IPolicyConfig. More...

#include <mmdeviceapi.h>
Include dependency graph for PolicyConfig.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

interface WAVEFORMATEX **virtual HRESULT STDMETHODCALLTYPE GetDeviceFormat (PCWSTR, INT, WAVEFORMATEX **)
 Get the device format for an endpoint.
 
virtual HRESULT STDMETHODCALLTYPE GetProcessingPeriod (PCWSTR, INT, PINT64, PINT64)
 Get the processing period for an endpoint.
 
virtual HRESULT STDMETHODCALLTYPE GetPropertyValue (PCWSTR, const PROPERTYKEY &, PROPVARIANT *)
 Get a property value for an endpoint.
 
virtual HRESULT STDMETHODCALLTYPE GetShareMode (PCWSTR, struct DeviceShareMode *)
 Get the share mode for an endpoint.
 
virtual HRESULT STDMETHODCALLTYPE ResetDeviceFormat (PCWSTR)
 Reset the device format for an endpoint.
 
virtual HRESULT STDMETHODCALLTYPE SetDefaultEndpoint (PCWSTR wszDeviceId, ERole eRole)
 Set the default endpoint for a role.
 
virtual HRESULT STDMETHODCALLTYPE SetDeviceFormat (PCWSTR, WAVEFORMATEX *, WAVEFORMATEX *)
 Set the device format for an endpoint.
 
virtual HRESULT STDMETHODCALLTYPE SetEndpointVisibility (PCWSTR, INT)
 Set endpoint visibility.
 
virtual HRESULT STDMETHODCALLTYPE SetProcessingPeriod (PCWSTR, PINT64)
 Set the processing period for an endpoint.
 
virtual HRESULT STDMETHODCALLTYPE SetPropertyValue (PCWSTR, const PROPERTYKEY &, PROPVARIANT *)
 Set a property value for an endpoint.
 
virtual HRESULT STDMETHODCALLTYPE SetShareMode (PCWSTR, struct DeviceShareMode *)
 Set the share mode for an endpoint.
 

Detailed Description

Undocumented COM-interface IPolicyConfig.

Use for setting default audio render endpoint.

Author
EreTIk
See also
https://kitere.github.io/

Function Documentation

◆ GetDeviceFormat()

interface WAVEFORMATEX **virtual HRESULT STDMETHODCALLTYPE GetDeviceFormat ( PCWSTR ,
INT ,
WAVEFORMATEX **  )
virtual

Get the device format for an endpoint.

Returns
HRESULT or platform status returned by the wrapped API.

◆ GetProcessingPeriod()

virtual HRESULT STDMETHODCALLTYPE GetProcessingPeriod ( PCWSTR ,
INT ,
PINT64 ,
PINT64  )
virtual

Get the processing period for an endpoint.

Returns
HRESULT or platform status returned by the wrapped API.

◆ GetPropertyValue()

virtual HRESULT STDMETHODCALLTYPE GetPropertyValue ( PCWSTR ,
const PROPERTYKEY & ,
PROPVARIANT *  )
virtual

Get a property value for an endpoint.

Returns
HRESULT or platform status returned by the wrapped API.

◆ GetShareMode()

virtual HRESULT STDMETHODCALLTYPE GetShareMode ( PCWSTR ,
struct DeviceShareMode *  )
virtual

Get the share mode for an endpoint.

Returns
HRESULT or platform status returned by the wrapped API.

◆ ResetDeviceFormat()

virtual HRESULT STDMETHODCALLTYPE ResetDeviceFormat ( PCWSTR )
virtual

Reset the device format for an endpoint.

Returns
HRESULT or platform status returned by the wrapped API.

◆ SetDefaultEndpoint()

virtual HRESULT STDMETHODCALLTYPE SetDefaultEndpoint ( PCWSTR wszDeviceId,
ERole eRole )
virtual

Set the default endpoint for a role.

Parameters
wszDeviceIdEndpoint device identifier.
eRoleEndpoint role.
Returns
HRESULT or platform status returned by the wrapped API.

◆ SetDeviceFormat()

virtual HRESULT STDMETHODCALLTYPE SetDeviceFormat ( PCWSTR ,
WAVEFORMATEX * ,
WAVEFORMATEX *  )
virtual

Set the device format for an endpoint.

Returns
HRESULT or platform status returned by the wrapped API.

◆ SetEndpointVisibility()

virtual HRESULT STDMETHODCALLTYPE SetEndpointVisibility ( PCWSTR ,
INT  )
virtual

Set endpoint visibility.

Returns
HRESULT or platform status returned by the wrapped API.

◆ SetProcessingPeriod()

virtual HRESULT STDMETHODCALLTYPE SetProcessingPeriod ( PCWSTR ,
PINT64  )
virtual

Set the processing period for an endpoint.

Returns
HRESULT or platform status returned by the wrapped API.

◆ SetPropertyValue()

virtual HRESULT STDMETHODCALLTYPE SetPropertyValue ( PCWSTR ,
const PROPERTYKEY & ,
PROPVARIANT *  )
virtual

Set a property value for an endpoint.

Returns
HRESULT or platform status returned by the wrapped API.

◆ SetShareMode()

virtual HRESULT STDMETHODCALLTYPE SetShareMode ( PCWSTR ,
struct DeviceShareMode *  )
virtual

Set the share mode for an endpoint.

Returns
HRESULT or platform status returned by the wrapped API.