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
8a7960c4
Commit
8a7960c4
authored
Apr 27, 2005
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Apr 27, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the video input device category.
parent
6b4c02e5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
1 deletion
+44
-1
Makefile.in
dlls/devenum/Makefile.in
+1
-1
createdevenum.c
dlls/devenum/createdevenum.c
+42
-0
devenum_private.h
dlls/devenum/devenum_private.h
+1
-0
No files found.
dlls/devenum/Makefile.in
View file @
8a7960c4
...
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
devenum.dll
IMPORTS
=
ole32 oleaut32 winmm user32 advapi32 kernel32
IMPORTS
=
ole32 oleaut32
avicap32
winmm user32 advapi32 kernel32
EXTRALIBS
=
-lstrmiids
-luuid
C_SRCS
=
\
...
...
dlls/devenum/createdevenum.c
View file @
8a7960c4
...
...
@@ -27,6 +27,7 @@
#define NONAMELESSUNION
#include "devenum_private.h"
#include "vfw.h"
#include "wine/debug.h"
#include "mmddk.h"
...
...
@@ -117,6 +118,7 @@ HRESULT WINAPI DEVENUM_ICreateDevEnum_CreateClassEnumerator(
if
(
IsEqualGUID
(
clsidDeviceClass
,
&
CLSID_AudioRendererCategory
)
||
IsEqualGUID
(
clsidDeviceClass
,
&
CLSID_AudioInputDeviceCategory
)
||
IsEqualGUID
(
clsidDeviceClass
,
&
CLSID_VideoInputDeviceCategory
)
||
IsEqualGUID
(
clsidDeviceClass
,
&
CLSID_MidiRendererCategory
))
{
hbasekey
=
HKEY_CURRENT_USER
;
...
...
@@ -142,6 +144,7 @@ HRESULT WINAPI DEVENUM_ICreateDevEnum_CreateClassEnumerator(
{
if
(
IsEqualGUID
(
clsidDeviceClass
,
&
CLSID_AudioRendererCategory
)
||
IsEqualGUID
(
clsidDeviceClass
,
&
CLSID_AudioInputDeviceCategory
)
||
IsEqualGUID
(
clsidDeviceClass
,
&
CLSID_VideoInputDeviceCategory
)
||
IsEqualGUID
(
clsidDeviceClass
,
&
CLSID_MidiRendererCategory
))
{
HRESULT
hr
=
DEVENUM_CreateSpecialCategories
();
...
...
@@ -413,6 +416,45 @@ static HRESULT DEVENUM_CreateSpecialCategories()
CoTaskMemFree
(
pTypes
);
}
}
res
=
DEVENUM_CreateAMCategoryKey
(
&
CLSID_VideoInputDeviceCategory
);
if
(
SUCCEEDED
(
res
))
for
(
i
=
0
;
i
<
10
;
i
++
)
{
WCHAR
szDeviceName
[
80
],
szDeviceVersion
[
80
];
if
(
capGetDriverDescriptionW
((
WORD
)
i
,
szDeviceName
,
sizeof
(
szDeviceName
)
/
sizeof
(
WCHAR
),
szDeviceVersion
,
sizeof
(
szDeviceVersion
)
/
sizeof
(
WCHAR
)))
{
IMoniker
*
pMoniker
=
NULL
;
rfp2
.
nMediaTypes
=
1
;
pTypes
=
CoTaskMemAlloc
(
rfp2
.
nMediaTypes
*
sizeof
(
REGPINTYPES
));
if
(
!
pTypes
)
{
IFilterMapper2_Release
(
pMapper
);
return
E_OUTOFMEMORY
;
}
pTypes
[
0
].
clsMajorType
=
&
MEDIATYPE_Video
;
pTypes
[
0
].
clsMinorType
=
&
MEDIASUBTYPE_RGB24
;
rfp2
.
lpMediaType
=
pTypes
;
res
=
IFilterMapper2_RegisterFilter
(
pMapper
,
&
CLSID_VfwCapture
,
szDeviceName
,
&
pMoniker
,
&
CLSID_VideoInputDeviceCategory
,
szDeviceName
,
&
rf2
);
/* FIXME: do additional stuff with IMoniker here, depending on what RegisterFilter does */
if
(
pMoniker
)
IMoniker_Release
(
pMoniker
);
if
(
i
==
iDefaultDevice
)
FIXME
(
"Default device
\n
"
);
CoTaskMemFree
(
pTypes
);
}
}
}
if
(
pMapper
)
...
...
dlls/devenum/devenum_private.h
View file @
8a7960c4
...
...
@@ -26,6 +26,7 @@
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "winreg.h"
#include "winerror.h"
...
...
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