Data Structures | Defines | Typedefs | Enumerations | Functions | Variables

mmdeviceapi.h File Reference

#include "rpc.h"
#include "rpcndr.h"
#include "windows.h"
#include "ole2.h"
#include "unknwn.h"
#include "propsys.h"

Go to the source code of this file.

Data Structures

struct  tagDIRECTX_AUDIO_ACTIVATION_PARAMS
struct  IMMNotificationClientVtbl
struct  IMMDeviceVtbl
struct  IMMDeviceCollectionVtbl
struct  IMMEndpointVtbl
struct  IMMDeviceEnumeratorVtbl
struct  IMMDeviceActivatorVtbl
struct  __MIDL___MIDL_itf_mmdeviceapi_0000_0006_0001

Defines

#define __REQUIRED_RPCNDR_H_VERSION__   500
#define __mmdeviceapi_h__
#define __IMMNotificationClient_FWD_DEFINED__
#define __IMMDevice_FWD_DEFINED__
#define __IMMDeviceCollection_FWD_DEFINED__
#define __IMMEndpoint_FWD_DEFINED__
#define __IMMDeviceEnumerator_FWD_DEFINED__
#define __IMMDeviceActivator_FWD_DEFINED__
#define __MMDeviceEnumerator_FWD_DEFINED__
#define E_NOTFOUND   HRESULT_FROM_WIN32(ERROR_NOT_FOUND)
#define E_UNSUPPORTED_TYPE   HRESULT_FROM_WIN32(ERROR_UNSUPPORTED_TYPE)
#define DEVICE_STATE_ACTIVE   0x00000001
#define DEVICE_STATE_DISABLED   0x00000002
#define DEVICE_STATE_NOTPRESENT   0x00000004
#define DEVICE_STATE_UNPLUGGED   0x00000008
#define DEVICE_STATEMASK_ALL   0x0000000f
#define DEFINE_PROPERTYKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid)   EXTERN_C const PROPERTYKEY name
#define ENDPOINT_SYSFX_ENABLED   0x00000000
#define ENDPOINT_SYSFX_DISABLED   0x00000001
#define __IMMNotificationClient_INTERFACE_DEFINED__
#define __IMMDevice_INTERFACE_DEFINED__
#define __IMMDeviceCollection_INTERFACE_DEFINED__
#define __IMMEndpoint_INTERFACE_DEFINED__
#define __IMMDeviceEnumerator_INTERFACE_DEFINED__
#define __IMMDeviceActivator_INTERFACE_DEFINED__
#define __MMDeviceAPILib_LIBRARY_DEFINED__

Typedefs

typedef interface
IMMNotificationClient 
IMMNotificationClient
typedef interface IMMDevice IMMDevice
typedef interface
IMMDeviceCollection 
IMMDeviceCollection
typedef interface IMMEndpoint IMMEndpoint
typedef interface
IMMDeviceEnumerator 
IMMDeviceEnumerator
typedef interface
IMMDeviceActivator 
IMMDeviceActivator
typedef struct MMDeviceEnumerator MMDeviceEnumerator
typedef struct
tagDIRECTX_AUDIO_ACTIVATION_PARAMS 
DIRECTX_AUDIO_ACTIVATION_PARAMS
typedef struct
tagDIRECTX_AUDIO_ACTIVATION_PARAMS
PDIRECTX_AUDIO_ACTIVATION_PARAMS
typedef enum
__MIDL___MIDL_itf_mmdeviceapi_0000_0000_0001 
EDataFlow
typedef enum
__MIDL___MIDL_itf_mmdeviceapi_0000_0000_0002 
ERole
typedef enum
__MIDL___MIDL_itf_mmdeviceapi_0000_0000_0003 
EndpointFormFactor
typedef struct
IMMNotificationClientVtbl 
IMMNotificationClientVtbl
typedef struct IMMDeviceVtbl IMMDeviceVtbl
typedef struct
IMMDeviceCollectionVtbl 
IMMDeviceCollectionVtbl
typedef struct IMMEndpointVtbl IMMEndpointVtbl
typedef struct
IMMDeviceEnumeratorVtbl 
IMMDeviceEnumeratorVtbl
typedef struct
IMMDeviceActivatorVtbl 
IMMDeviceActivatorVtbl
typedef struct
__MIDL___MIDL_itf_mmdeviceapi_0000_0006_0001 
AudioExtensionParams

Enumerations

enum  __MIDL___MIDL_itf_mmdeviceapi_0000_0000_0001 { eRender = 0, eCapture = ( eRender + 1 ), eAll = ( eCapture + 1 ), EDataFlow_enum_count = ( eAll + 1 ) }
enum  __MIDL___MIDL_itf_mmdeviceapi_0000_0000_0002 { eConsole = 0, eMultimedia = ( eConsole + 1 ), eCommunications = ( eMultimedia + 1 ), ERole_enum_count = ( eCommunications + 1 ) }
enum  __MIDL___MIDL_itf_mmdeviceapi_0000_0000_0003 {
  RemoteNetworkDevice = 0, Speakers = ( RemoteNetworkDevice + 1 ), LineLevel = ( Speakers + 1 ), Headphones = ( LineLevel + 1 ),
  Microphone = ( Headphones + 1 ), Headset = ( Microphone + 1 ), Handset = ( Headset + 1 ), UnknownDigitalPassthrough = ( Handset + 1 ),
  SPDIF = ( UnknownDigitalPassthrough + 1 ), HDMI = ( SPDIF + 1 ), UnknownFormFactor = ( HDMI + 1 )
}

Functions

 DEFINE_PROPERTYKEY (PKEY_AudioEndpoint_FormFactor, 0x1da5d803, 0xd492, 0x4edd, 0x8c, 0x23, 0xe0, 0xc0, 0xff, 0xee, 0x7f, 0x0e, 0)
 DEFINE_PROPERTYKEY (PKEY_AudioEndpoint_ControlPanelPageProvider, 0x1da5d803, 0xd492, 0x4edd, 0x8c, 0x23, 0xe0, 0xc0, 0xff, 0xee, 0x7f, 0x0e, 1)
 DEFINE_PROPERTYKEY (PKEY_AudioEndpoint_Association, 0x1da5d803, 0xd492, 0x4edd, 0x8c, 0x23, 0xe0, 0xc0, 0xff, 0xee, 0x7f, 0x0e, 2)
 DEFINE_PROPERTYKEY (PKEY_AudioEndpoint_PhysicalSpeakers, 0x1da5d803, 0xd492, 0x4edd, 0x8c, 0x23, 0xe0, 0xc0, 0xff, 0xee, 0x7f, 0x0e, 3)
 DEFINE_PROPERTYKEY (PKEY_AudioEndpoint_GUID, 0x1da5d803, 0xd492, 0x4edd, 0x8c, 0x23, 0xe0, 0xc0, 0xff, 0xee, 0x7f, 0x0e, 4)
 DEFINE_PROPERTYKEY (PKEY_AudioEndpoint_Disable_SysFx, 0x1da5d803, 0xd492, 0x4edd, 0x8c, 0x23, 0xe0, 0xc0, 0xff, 0xee, 0x7f, 0x0e, 5)
 DEFINE_PROPERTYKEY (PKEY_AudioEndpoint_FullRangeSpeakers, 0x1da5d803, 0xd492, 0x4edd, 0x8c, 0x23, 0xe0, 0xc0, 0xff, 0xee, 0x7f, 0x0e, 6)
 DEFINE_PROPERTYKEY (PKEY_AudioEngine_DeviceFormat, 0xf19f064d, 0x82c, 0x4e27, 0xbc, 0x73, 0x68, 0x82, 0xa1, 0xbb, 0x8e, 0x4c, 0)

Variables

RPC_IF_HANDLE __MIDL_itf_mmdeviceapi_0000_0000_v0_0_c_ifspec
RPC_IF_HANDLE __MIDL_itf_mmdeviceapi_0000_0000_v0_0_s_ifspec
EXTERN_C const IID IID_IMMNotificationClient
EXTERN_C const IID IID_IMMDevice
EXTERN_C const IID IID_IMMDeviceCollection
EXTERN_C const IID IID_IMMEndpoint
EXTERN_C const IID IID_IMMDeviceEnumerator
EXTERN_C const IID IID_IMMDeviceActivator
RPC_IF_HANDLE __MIDL_itf_mmdeviceapi_0000_0006_v0_0_c_ifspec
RPC_IF_HANDLE __MIDL_itf_mmdeviceapi_0000_0006_v0_0_s_ifspec
EXTERN_C const IID LIBID_MMDeviceAPILib
EXTERN_C const CLSID CLSID_MMDeviceEnumerator

Define Documentation

#define __IMMDevice_FWD_DEFINED__
#define __IMMDevice_INTERFACE_DEFINED__
#define __IMMDeviceActivator_FWD_DEFINED__
#define __IMMDeviceActivator_INTERFACE_DEFINED__
#define __IMMDeviceCollection_FWD_DEFINED__
#define __IMMDeviceCollection_INTERFACE_DEFINED__
#define __IMMDeviceEnumerator_FWD_DEFINED__
#define __IMMDeviceEnumerator_INTERFACE_DEFINED__
#define __IMMEndpoint_FWD_DEFINED__
#define __IMMEndpoint_INTERFACE_DEFINED__
#define __IMMNotificationClient_FWD_DEFINED__
#define __IMMNotificationClient_INTERFACE_DEFINED__
#define __mmdeviceapi_h__
#define __MMDeviceAPILib_LIBRARY_DEFINED__
#define __MMDeviceEnumerator_FWD_DEFINED__
#define __REQUIRED_RPCNDR_H_VERSION__   500
#define DEFINE_PROPERTYKEY (   name,
  l,
  w1,
  w2,
  b1,
  b2,
  b3,
  b4,
  b5,
  b6,
  b7,
  b8,
  pid 
)    EXTERN_C const PROPERTYKEY name
#define DEVICE_STATE_ACTIVE   0x00000001

Referenced by PaWasapi_Initialize().

#define DEVICE_STATE_DISABLED   0x00000002
#define DEVICE_STATE_NOTPRESENT   0x00000004
#define DEVICE_STATE_UNPLUGGED   0x00000008
#define DEVICE_STATEMASK_ALL   0x0000000f
#define E_NOTFOUND   HRESULT_FROM_WIN32(ERROR_NOT_FOUND)
#define E_UNSUPPORTED_TYPE   HRESULT_FROM_WIN32(ERROR_UNSUPPORTED_TYPE)
#define ENDPOINT_SYSFX_DISABLED   0x00000001
#define ENDPOINT_SYSFX_ENABLED   0x00000000

Typedef Documentation

typedef interface IMMDevice IMMDevice
typedef struct IMMDeviceVtbl IMMDeviceVtbl
typedef interface IMMEndpoint IMMEndpoint

Enumeration Type Documentation

Enumerator:
eRender 
eCapture 
eAll 
EDataFlow_enum_count 
Enumerator:
eConsole 
eMultimedia 
eCommunications 
ERole_enum_count 
Enumerator:
RemoteNetworkDevice 
Speakers 
LineLevel 
Headphones 
Microphone 
Headset 
Handset 
UnknownDigitalPassthrough 
SPDIF 
HDMI 
UnknownFormFactor 

Function Documentation

DEFINE_PROPERTYKEY ( PKEY_AudioEndpoint_FormFactor  ,
0x1da5d803  ,
0xd492  ,
0x4edd  ,
0x8c  ,
0x23  ,
0xe0  ,
0xc0  ,
0xff  ,
0xee  ,
0x7f  ,
0x0e  ,
 
)
DEFINE_PROPERTYKEY ( PKEY_AudioEngine_DeviceFormat  ,
0xf19f064d  ,
0x82c  ,
0x4e27  ,
0xbc  ,
0x73  ,
0x68  ,
0x82  ,
0xa1  ,
0xbb  ,
0x8e  ,
0x4c  ,
 
)
DEFINE_PROPERTYKEY ( PKEY_AudioEndpoint_FullRangeSpeakers  ,
0x1da5d803  ,
0xd492  ,
0x4edd  ,
0x8c  ,
0x23  ,
0xe0  ,
0xc0  ,
0xff  ,
0xee  ,
0x7f  ,
0x0e  ,
 
)
DEFINE_PROPERTYKEY ( PKEY_AudioEndpoint_Disable_SysFx  ,
0x1da5d803  ,
0xd492  ,
0x4edd  ,
0x8c  ,
0x23  ,
0xe0  ,
0xc0  ,
0xff  ,
0xee  ,
0x7f  ,
0x0e  ,
 
)
DEFINE_PROPERTYKEY ( PKEY_AudioEndpoint_GUID  ,
0x1da5d803  ,
0xd492  ,
0x4edd  ,
0x8c  ,
0x23  ,
0xe0  ,
0xc0  ,
0xff  ,
0xee  ,
0x7f  ,
0x0e  ,
 
)
DEFINE_PROPERTYKEY ( PKEY_AudioEndpoint_PhysicalSpeakers  ,
0x1da5d803  ,
0xd492  ,
0x4edd  ,
0x8c  ,
0x23  ,
0xe0  ,
0xc0  ,
0xff  ,
0xee  ,
0x7f  ,
0x0e  ,
 
)
DEFINE_PROPERTYKEY ( PKEY_AudioEndpoint_Association  ,
0x1da5d803  ,
0xd492  ,
0x4edd  ,
0x8c  ,
0x23  ,
0xe0  ,
0xc0  ,
0xff  ,
0xee  ,
0x7f  ,
0x0e  ,
 
)
DEFINE_PROPERTYKEY ( PKEY_AudioEndpoint_ControlPanelPageProvider  ,
0x1da5d803  ,
0xd492  ,
0x4edd  ,
0x8c  ,
0x23  ,
0xe0  ,
0xc0  ,
0xff  ,
0xee  ,
0x7f  ,
0x0e  ,
 
)

Variable Documentation

EXTERN_C const CLSID CLSID_MMDeviceEnumerator
EXTERN_C const IID IID_IMMDevice
EXTERN_C const IID IID_IMMDeviceActivator
EXTERN_C const IID IID_IMMDeviceCollection
EXTERN_C const IID IID_IMMDeviceEnumerator
EXTERN_C const IID IID_IMMEndpoint
EXTERN_C const IID IID_IMMNotificationClient
EXTERN_C const IID LIBID_MMDeviceAPILib