5
5
6
6
namespace SoundSwitch . Audio . Manager . Interop . Interface . Policy . Extended
7
7
{
8
+ public interface IAudioPolicyConfigFactory
9
+ {
10
+ HRESULT SetPersistedDefaultAudioEndpoint ( uint processId , EDataFlow flow , ERole role , HSTRING deviceId ) ;
11
+ HRESULT GetPersistedDefaultAudioEndpoint ( uint processId , EDataFlow flow , ERole role , [ Out , MarshalAs ( UnmanagedType . HString ) ] out HSTRING deviceId ) ;
12
+ HRESULT ClearAllPersistedApplicationDefaultEndpoints ( ) ;
13
+ }
14
+
15
+ [ Guid ( "ab3d4648-e242-459f-b02f-541c70306324" ) ]
16
+ [ InterfaceType ( ComInterfaceType . InterfaceIsIInspectable ) ]
17
+ public interface IAudioPolicyConfigFactoryVariant21H2Windows11 : IAudioPolicyConfigFactory
18
+ {
19
+ int __incomplete__add_CtxVolumeChange ( ) ;
20
+ int __incomplete__remove_CtxVolumeChanged ( ) ;
21
+ int __incomplete__add_RingerVibrateStateChanged ( ) ;
22
+ int __incomplete__remove_RingerVibrateStateChange ( ) ;
23
+ int __incomplete__SetVolumeGroupGainForId ( ) ;
24
+ int __incomplete__GetVolumeGroupGainForId ( ) ;
25
+ int __incomplete__GetActiveVolumeGroupForEndpointId ( ) ;
26
+ int __incomplete__GetVolumeGroupsForEndpoint ( ) ;
27
+ int __incomplete__GetCurrentVolumeContext ( ) ;
28
+ int __incomplete__SetVolumeGroupMuteForId ( ) ;
29
+ int __incomplete__GetVolumeGroupMuteForId ( ) ;
30
+ int __incomplete__SetRingerVibrateState ( ) ;
31
+ int __incomplete__GetRingerVibrateState ( ) ;
32
+ int __incomplete__SetPreferredChatApplication ( ) ;
33
+ int __incomplete__ResetPreferredChatApplication ( ) ;
34
+ int __incomplete__GetPreferredChatApplication ( ) ;
35
+ int __incomplete__GetCurrentChatApplications ( ) ;
36
+ int __incomplete__add_ChatContextChanged ( ) ;
37
+ int __incomplete__remove_ChatContextChanged ( ) ;
38
+
39
+ [ PreserveSig ]
40
+ HRESULT SetPersistedDefaultAudioEndpoint ( uint processId , EDataFlow flow , ERole role , HSTRING deviceId ) ;
41
+
42
+ [ PreserveSig ]
43
+ HRESULT GetPersistedDefaultAudioEndpoint ( uint processId , EDataFlow flow , ERole role , [ Out , MarshalAs ( UnmanagedType . HString ) ] out HSTRING deviceId ) ;
44
+
45
+ [ PreserveSig ]
46
+ HRESULT ClearAllPersistedApplicationDefaultEndpoints ( ) ;
47
+ }
48
+
8
49
[ Guid ( "2a59116d-6c4f-45e0-a74f-707e3fef9258" ) ]
9
- [ InterfaceType ( ComInterfaceType . InterfaceIsIUnknown ) ]
50
+ [ InterfaceType ( ComInterfaceType . InterfaceIsIInspectable ) ]
10
51
[ ComImport ]
11
- public interface IAudioPolicyConfigFactory
52
+ public interface IAudioPolicyConfigFactoryWindows10Pre21H2 : IAudioPolicyConfigFactory
12
53
{
13
54
void GetIids ( out int iidCount , out IntPtr iids ) ;
14
55
void GetRuntimeClassName ( out IntPtr className ) ;
@@ -33,10 +74,13 @@ public interface IAudioPolicyConfigFactory
33
74
int __incomplete__GetCurrentChatApplications ( ) ;
34
75
int __incomplete__add_ChatContextChanged ( ) ;
35
76
int __incomplete__remove_ChatContextChanged ( ) ;
77
+
36
78
[ PreserveSig ]
37
79
HRESULT SetPersistedDefaultAudioEndpoint ( [ In ] uint processId , [ In ] EDataFlow flow , [ In ] ERole role , [ In ] HSTRING deviceId ) ;
80
+
38
81
[ PreserveSig ]
39
82
HRESULT GetPersistedDefaultAudioEndpoint ( [ In ] uint processId , [ In ] EDataFlow flow , [ In ] ERole role , [ Out ] out HSTRING deviceId ) ;
83
+
40
84
[ PreserveSig ]
41
85
HRESULT ClearAllPersistedApplicationDefaultEndpoints ( ) ;
42
86
}
0 commit comments