Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
81c42ce7
Commit
81c42ce7
authored
Jan 08, 2014
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devenum: Populate CLSID_VideoCompressorCategory category in key in DEVENUM_CreateSpecialCategories.
parent
92be7be4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
Makefile.in
dlls/devenum/Makefile.in
+1
-0
createdevenum.c
dlls/devenum/createdevenum.c
+44
-0
No files found.
dlls/devenum/Makefile.in
View file @
81c42ce7
MODULE
=
devenum.dll
IMPORTS
=
strmiids uuid ole32 oleaut32 avicap32 winmm user32 advapi32
DELAYIMPORTS
=
msvfw32
C_SRCS
=
\
createdevenum.c
\
...
...
dlls/devenum/createdevenum.c
View file @
81c42ce7
...
...
@@ -28,6 +28,7 @@
#include "devenum_private.h"
#include "vfw.h"
#include "aviriff.h"
#include "wine/debug.h"
#include "wine/unicode.h"
...
...
@@ -598,6 +599,44 @@ static HRESULT DEVENUM_CreateAMCategoryKey(const CLSID * clsidCategory)
return
res
;
}
static
void
register_vfw_codecs
(
void
)
{
WCHAR
avico_clsid_str
[
CHARS_IN_GUID
];
HKEY
basekey
,
key
;
ICINFO
icinfo
;
DWORD
i
,
res
;
static
const
WCHAR
CLSIDW
[]
=
{
'C'
,
'L'
,
'S'
,
'I'
,
'D'
,
0
};
static
const
WCHAR
FccHandlerW
[]
=
{
'F'
,
'c'
,
'c'
,
'H'
,
'a'
,
'n'
,
'd'
,
'l'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
FriendlyNameW
[]
=
{
'F'
,
'r'
,
'i'
,
'e'
,
'n'
,
'd'
,
'l'
,
'y'
,
'N'
,
'a'
,
'm'
,
'e'
,
0
};
StringFromGUID2
(
&
CLSID_AVICo
,
avico_clsid_str
,
sizeof
(
avico_clsid_str
)
/
sizeof
(
WCHAR
));
basekey
=
open_special_category_key
(
&
CLSID_VideoCompressorCategory
,
TRUE
);
if
(
!
basekey
)
{
ERR
(
"Could not create key
\n
"
);
return
;
}
for
(
i
=
0
;
ICInfo
(
FCC
(
'v'
,
'i'
,
'd'
,
'c'
),
i
,
&
icinfo
);
i
++
)
{
WCHAR
fcc_str
[
5
]
=
{
LOBYTE
(
LOWORD
(
icinfo
.
fccHandler
)),
HIBYTE
(
LOWORD
(
icinfo
.
fccHandler
)),
LOBYTE
(
HIWORD
(
icinfo
.
fccHandler
)),
HIBYTE
(
HIWORD
(
icinfo
.
fccHandler
))};
res
=
RegCreateKeyW
(
basekey
,
fcc_str
,
&
key
);
if
(
res
!=
ERROR_SUCCESS
)
continue
;
RegSetValueExW
(
key
,
CLSIDW
,
0
,
REG_SZ
,
(
const
BYTE
*
)
avico_clsid_str
,
sizeof
(
avico_clsid_str
));
RegSetValueExW
(
key
,
FccHandlerW
,
0
,
REG_SZ
,
(
const
BYTE
*
)
fcc_str
,
sizeof
(
fcc_str
));
RegSetValueExW
(
key
,
FriendlyNameW
,
0
,
REG_SZ
,
(
const
BYTE
*
)
icinfo
.
szName
,
(
strlenW
(
icinfo
.
szName
)
+
1
)
*
sizeof
(
WCHAR
));
/* FIXME: Set ClassManagerFlags and FilterData values */
RegCloseKey
(
key
);
}
RegCloseKey
(
basekey
);
}
static
HANDLE
DEVENUM_populate_handle
;
static
const
WCHAR
DEVENUM_populate_handle_nameW
[]
=
{
'_'
,
'_'
,
'W'
,
'I'
,
'N'
,
'E'
,
'_'
,
...
...
@@ -648,6 +687,8 @@ static HRESULT DEVENUM_CreateSpecialCategories(void)
RegDeleteTreeW
(
basekey
,
path
);
if
(
SUCCEEDED
(
DEVENUM_GetCategoryKey
(
&
CLSID_MidiRendererCategory
,
&
basekey
,
path
,
MAX_PATH
)))
RegDeleteTreeW
(
basekey
,
path
);
if
(
SUCCEEDED
(
DEVENUM_GetCategoryKey
(
&
CLSID_VideoCompressorCategory
,
&
basekey
,
path
,
MAX_PATH
)))
RegDeleteTreeW
(
basekey
,
path
);
rf2
.
dwVersion
=
2
;
rf2
.
dwMerit
=
MERIT_PREFERRED
;
...
...
@@ -927,6 +968,9 @@ static HRESULT DEVENUM_CreateSpecialCategories(void)
if
(
pMapper
)
IFilterMapper2_Release
(
pMapper
);
register_vfw_codecs
();
SetEvent
(
DEVENUM_populate_handle
);
return
res
;
}
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