Skip to content

Commit

Permalink
Updated the code to use the comiid guids xD
Browse files Browse the repository at this point in the history
  • Loading branch information
xenolightning committed Jun 2, 2016
1 parent 853ef53 commit bfe9b9c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ [In] [MarshalAs(UnmanagedType.U4)] IntPtr accessMode,
[Out] [MarshalAs(UnmanagedType.Interface)] out IntPtr properties);

[PreserveSig]
int GetId(
[Out] [MarshalAs(UnmanagedType.LPWStr)] out string strId);
int GetId([Out] [MarshalAs(UnmanagedType.LPWStr)] out string strId);

[PreserveSig]
int GetState(
[Out] [MarshalAs(UnmanagedType.U4)] out DeviceState deviceState);
int GetState([Out] [MarshalAs(UnmanagedType.U4)] out DeviceState deviceState);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace AudioSwitcher.AudioApi.Hooking.ComObjects
{
[Guid("A95664D2-9614-4F35-A746-DE8DB63617E6"),]
[Guid(ComIIds.IMM_DEVICE_ENUMERATOR_IID)]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[ComVisible(true)]
public interface IMultimediaDeviceEnumerator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace AudioSwitcher.AudioApi.Hooking.ComObjects
{
[Guid("00000000-0000-0000-C000-000000000046")]
[Guid(ComIIds.UNKNOWN_IID)]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
internal interface IPolicyConfigUnknown
{
Expand Down

0 comments on commit bfe9b9c

Please sign in to comment.