Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
850c6347
Commit
850c6347
authored
Dec 08, 2009
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Dec 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add mmdeviceapi.idl.
parent
042f73b1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
255 additions
and
0 deletions
+255
-0
.gitignore
.gitignore
+1
-0
Makefile.in
include/Makefile.in
+1
-0
devicetopology.idl
include/devicetopology.idl
+3
-0
mmdeviceapi.idl
include/mmdeviceapi.idl
+250
-0
No files found.
.gitignore
View file @
850c6347
...
...
@@ -156,6 +156,7 @@ include/mediaobj.h
include/mimeinfo.h
include/mimeole.h
include/mlang.h
include/mmdeviceapi.h
include/mmstream.h
include/mscoree.h
include/msctf.h
...
...
include/Makefile.in
View file @
850c6347
...
...
@@ -45,6 +45,7 @@ PUBLIC_IDL_H_SRCS = \
mimeinfo.idl
\
mimeole.idl
\
mlang.idl
\
mmdeviceapi.idl
\
mmstream.idl
\
mscoree.idl
\
msctf.idl
\
...
...
include/devicetopology.idl
View file @
850c6347
...
...
@@ -31,7 +31,10 @@ import "oaidl.idl";
import
"ocidl.idl"
;
import
"propidl.idl"
;
cpp_quote
(
"#ifndef E_NOTFOUND"
)
cpp_quote
(
"#define E_NOTFOUND HRESULT_FROM_WIN32(ERROR_NOT_FOUND)"
)
cpp_quote
(
"#endif"
)
cpp_quote
(
"#define DEVTOPO_HARDWARE_INITIATED_EVENTCONTEXT 'draH'"
)
cpp_quote
(
"DEFINE_GUID(EVENTCONTEXT_VOLUMESLIDER, 0xe2c2e9de, 0x09b1, 0x4b04,0x84,0xe5, 0x07, 0x93, 0x12, 0x25, 0xee, 0x04);"
)
...
...
include/mmdeviceapi.idl
0 → 100644
View file @
850c6347
/*
*
Copyright
(
C
)
2009
Maarten
Lankhorst
*
*
This
library
is
free
software
; you can redistribute it and/or
*
modify
it
under
the
terms
of
the
GNU
Lesser
General
Public
*
License
as
published
by
the
Free
Software
Foundation
; either
*
version
2.1
of
the
License
,
or
(
at
your
option
)
any
later
version
.
*
*
This
library
is
distributed
in
the
hope
that
it
will
be
useful
,
*
but
WITHOUT
ANY
WARRANTY
; without even the implied warranty of
*
MERCHANTABILITY
or
FITNESS
FOR
A
PARTICULAR
PURPOSE
.
See
the
GNU
*
Lesser
General
Public
License
for
more
details
.
*
*
You
should
have
received
a
copy
of
the
GNU
Lesser
General
Public
*
License
along
with
this
library
; if not, write to the Free Software
*
Foundation
,
Inc
.
,
51
Franklin
St
,
Fifth
Floor
,
Boston
,
MA
02110
-
1301
,
USA
*/
import
"unknwn.idl"
;
import
"propsys.idl"
;
cpp_quote
(
"#ifndef E_NOTFOUND"
)
cpp_quote
(
"#define E_NOTFOUND HRESULT_FROM_WIN32(ERROR_NOT_FOUND)"
)
cpp_quote
(
"#endif"
)
cpp_quote
(
"#ifndef E_UNSUPPORTED_TYPE"
)
cpp_quote
(
"#define E_UNSUPPORTED_TYPE HRESULT_FROM_WIN32(ERROR_UNSUPPORTED_TYPE)"
)
cpp_quote
(
"#endif"
)
cpp_quote
(
"#define DEVICE_STATE_ACTIVE 0x1"
)
cpp_quote
(
"#define DEVICE_STATE_DISABLED 0x2"
)
cpp_quote
(
"#define DEVICE_STATE_NOTPRESENT 0x4"
)
cpp_quote
(
"#define DEVICE_STATE_UNPLUGGED 0x8"
)
cpp_quote
(
"#define DEVICE_STATEMASK_ALL 0xf"
)
/*
Generic
PKEY_AudioEndPoint
ID
for
grepping
:
{
1
da5d803
-
d492
-
4
edd
-
8
c23
-
e0c0ffee7f0e
}
*/
cpp_quote
(
"DEFINE_PROPERTYKEY(PKEY_AudioEndpoint_FormFactor,0x1da5d803,0xd492,0x4edd,0x8c,0x23,0xe0,0xc0,0xff,0xee,0x7f,0x0e,0);"
)
cpp_quote
(
"DEFINE_PROPERTYKEY(PKEY_AudioEndpoint_ControlPanelPageProvider,0x1da5d803,0xd492,0x4edd,0x8c,0x23,0xe0,0xc0,0xff,0xee,0x7f,0x0e,1);"
)
cpp_quote
(
"DEFINE_PROPERTYKEY(PKEY_AudioEndpoint_Association,0x1da5d803,0xd492,0x4edd,0x8c,0x23,0xe0,0xc0,0xff,0xee,0x7f,0x0e,2);"
)
cpp_quote
(
"DEFINE_PROPERTYKEY(PKEY_AudioEndpoint_PhysicalSpeakers,0x1da5d803,0xd492,0x4edd,0x8c,0x23,0xe0,0xc0,0xff,0xee,0x7f,0x0e,3);"
)
cpp_quote
(
"DEFINE_PROPERTYKEY(PKEY_AudioEndpoint_GUID,0x1da5d803,0xd492,0x4edd,0x8c,0x23,0xe0,0xc0,0xff,0xee,0x7f,0x0e,4);"
)
cpp_quote
(
"DEFINE_PROPERTYKEY(PKEY_AudioEndpoint_Disable_SysFx,0x1da5d803,0xd492,0x4edd,0x8c,0x23,0xe0,0xc0,0xff,0xee,0x7f,0x0e,5);"
)
cpp_quote
(
"#define ENDPOINT_SYSFX_ENABLED 0"
)
cpp_quote
(
"#define ENDPOINT_SYSFX_DISABLED 1"
)
cpp_quote
(
"DEFINE_PROPERTYKEY(PKEY_AudioEndpoint_FullRangeSpeakers,0x1da5d803,0xd492,0x4edd,0x8c,0x23,0xe0,0xc0,0xff,0xee,0x7f,0x0e,6);"
)
cpp_quote
(
"DEFINE_PROPERTYKEY(PKEY_AudioEndpoint_Supports_EventDriven_Mode,0x1da5d803,0xd492,0x4edd,0x8c,0x23,0xe0,0xc0,0xff,0xee,0x7f,0x0e,7);"
)
cpp_quote
(
"DEFINE_PROPERTYKEY(PKEY_AudioEndpoint_JackSubType,0x1da5d803,0xd492,0x4edd,0x8c,0x23,0xe0,0xc0,0xff,0xee,0x7f,0x0e,8);"
)
cpp_quote
(
"DEFINE_PROPERTYKEY(PKEY_AudioEngine_DeviceFormat,0xf19f064d,0x082c,0x4e27,0xbc,0x73,0x68,0x82,0xa1,0xbb,0x8e,0x4c,0);"
)
cpp_quote
(
"DEFINE_PROPERTYKEY(PKEY_AudioEngine_OEMFormat,0xe4870e26,0x3cc5,0x4cd2,0xba,0x46,0xca,0x0a,0x9a,0x70,0xed,0x04,3);"
)
typedef
struct
tagDIRECTX_AUDIO_ACTIVATION_PARAMS
{
DWORD
cbDirectXAudioActivationParams
;
GUID
guidAudioSession
;
DWORD
dwAudioStreamFlags
;
}
DIRECTX_AUDIO_ACTIVATION_PARAMS
,
*
PDIRECTX_AUDIO_ACTIVATION_PARAMS
;
typedef
enum
_EDataFlow
{
eRender
,
eCapture
,
eAll
,
EDataFlow_enum_count
}
EDataFlow
;
typedef
enum
_ERole
{
eConsole
,
eMultimedia
,
eCommunications
,
ERole_enum_count
}
ERole
;
typedef
enum
_EndpointFormFactor
{
RemoteNetworkDevice
,
Speakers
,
LineLevel
,
Headphones
,
Microphone
,
Headset
,
Handset
,
UnknownDigitalPassthrough
,
SPDIF
,
DigitalAudioDisplayDevice
,
UnknownFormFactor
,
EndpointFormFactor_enum_count
}
EndpointFormFactor
;
cpp_quote
(
"#define HDMI DigitalAudioDisplayDevice"
)
[
object
,
local
,
uuid
(
7991
eec9
-
7
e89
-
4
d85
-
8390
-
6
c703cec60c0
),
nonextensible
,
pointer_default
(
unique
)
]
interface
IMMNotificationClient
:
IUnknown
{
[
id
(
1
)
]
HRESULT
OnDeviceStateChanged
(
[
in
]
LPCWSTR
pwstrDeviceId
,
[
in
]
DWORD
dwNewState
)
;
[
id
(
2
)
]
HRESULT
OnDeviceAdded
(
[
in
]
LPCWSTR
pwstrDeviceId
)
;
[
id
(
3
)
]
HRESULT
OnDeviceRemoved
(
[
in
]
LPCWSTR
pwstrDeviceId
)
;
[
id
(
4
)
]
HRESULT
OnDefaultDeviceChanged
(
[
in
]
EDataFlow
flow
,
[
in
]
ERole
role
,
[
in
]
LPCWSTR
pwstrDeviceId
)
;
[
id
(
5
)
]
HRESULT
OnPropertyValueChanged
(
[
in
]
LPCWSTR
pwstrDeviceId
,
[
in
]
const
PROPERTYKEY
key
)
;
}
[
object
,
local
,
uuid
(
d666063f
-
1587
-
4
e43
-
81
f1
-
b948e807363f
),
nonextensible
,
pointer_default
(
unique
)
]
interface
IMMDevice
:
IUnknown
{
[
id
(
1
)
]
HRESULT
Activate
(
[
in
]
REFIID
iid
,
[
in
]
DWORD
dwClsCtx
,
[
in
,
unique
]
PROPVARIANT
*
pActivationParams
,
[
out
,
iid_is
(
iid
)
]
void
**
ppv
)
;
[
id
(
2
)
]
HRESULT
OpenPropertyStore
(
[
in
]
DWORD
stgmAccess
,
[
out
]
IPropertyStore
**
ppProperties
)
;
[
id
(
3
)
]
HRESULT
GetId
(
[
out
]
LPWSTR
*
ppstrId
)
;
[
id
(
4
)
]
HRESULT
GetState
(
[
out
]
DWORD
*
pdwState
)
;
}
[
object
,
local
,
uuid
(
0b
d7a1be
-
7
a1a
-
44
db
-
8397
-
cc5392387b5e
),
nonextensible
,
pointer_default
(
unique
)
]
interface
IMMDeviceCollection
:
IUnknown
{
[
id
(
1
)
]
HRESULT
GetCount
(
[
out
]
UINT
*
pcDevices
)
;
[
id
(
2
)
]
HRESULT
Item
(
[
in
]
UINT
nDevice
,
[
out
]
IMMDevice
**
ppdevice
)
;
}
[
object
,
local
,
uuid
(
1b
e09788
-
6894
-
4089
-
8586
-
9
a2a6c265ac5
),
nonextensible
,
pointer_default
(
unique
)
]
interface
IMMEndPoint
:
IUnknown
{
[
id
(
1
)
]
HRESULT
GetDataFlow
(
[
out
]
EDataFlow
*
pDataFlow
)
;
}
[
object
,
local
,
uuid
(
a95664d2
-
9614
-
4
f35
-
a746
-
de8db63617e6
),
nonextensible
,
pointer_default
(
unique
)
]
interface
IMMDeviceEnumerator
:
IUnknown
{
[
id
(
1
)
]
HRESULT
EnumAudioEndpoints
(
[
in
]
EDataFlow
dataFlow
,
[
in
]
DWORD
dwStateMask
,
[
out
]
IMMDeviceCollection
**
ppDevices
)
;
[
id
(
2
)
]
HRESULT
GetDefaultAudioEndpoint
(
[
in
]
EDataFlow
dataFlow
,
[
in
]
ERole
role
,
[
out
]
IMMDevice
**
ppEndpoint
)
;
[
id
(
3
)
]
HRESULT
GetDevice
(
[
in
]
LPCWSTR
pwstrId
,
[
out
]
IMMDevice
**
ppDevice
)
;
[
id
(
4
)
]
HRESULT
RegisterEndpointNotificationCallback
(
[
in
]
IMMNotificationClient
*
pClient
)
;
[
id
(
5
)
]
HRESULT
UnregisterEndpointNotificationCallback
(
[
in
]
IMMNotificationClient
*
pClient
)
;
}
[
object
,
local
,
uuid
(
3b0
d0ea4
-
d0a9
-
4b
0e-935
b
-
09516746
fac0
),
nonextensible
,
pointer_default
(
unique
)
]
interface
IMMDeviceActivator
:
IUnknown
{
[
id
(
1
)
]
HRESULT
Activate
(
[
in
]
REFIID
iid
,
[
in
]
IMMDevice
*
pDevice
,
[
in
]
PROPVARIANT
*
pActivationParams
,
[
out
,
iid_is
(
iid
)
]
void
**
ppv
)
;
}
typedef
struct
_AudioExtensionParams
{
LPARAM
AddPageParam
;
IMMDevice
*
pEndPoint
;
IMMDevice
*
pPnpInterface
;
IMMDevice
*
pPnpDevnode
;
}
AudioExtensionParams
;
[
uuid
(
2
fdaafa3
-
7523
-
4
f66
-
9957
-
9
d5e7fe698f6
),
version
(
1.0
)
]
library
MMDeviceAPILib
{
[
uuid
(
bcde0395
-
e52f
-
467
c
-
8
e3d
-
c4579291692e
)
]
coclass
MMDeviceEnumerator
{
[
default
]
interface
IMMDeviceEnumerator
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment