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
4615f4db
Commit
4615f4db
authored
May 08, 2017
by
Michael Müller
Committed by
Alexandre Julliard
May 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Implement MFTUnregister.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
993f5936
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
1 deletion
+40
-1
main.c
dlls/mfplat/main.c
+38
-0
mfplat.spec
dlls/mfplat/mfplat.spec
+1
-1
mfapi.h
include/mfapi.h
+1
-0
No files found.
dlls/mfplat/main.c
View file @
4615f4db
...
...
@@ -164,6 +164,44 @@ HRESULT WINAPI MFTRegister(CLSID clsid, GUID category, LPWSTR name, UINT32 flags
}
/***********************************************************************
* MFTUnregister (mfplat.@)
*/
HRESULT
WINAPI
MFTUnregister
(
CLSID
clsid
)
{
WCHAR
buffer
[
64
],
category
[
MAX_PATH
];
HKEY
htransform
,
hcategory
,
htmp
;
DWORD
size
=
MAX_PATH
;
DWORD
index
=
0
;
TRACE
(
"(%s)
\n
"
,
debugstr_guid
(
&
clsid
));
GUIDToString
(
buffer
,
&
clsid
);
if
(
!
RegOpenKeyW
(
HKEY_CLASSES_ROOT
,
transform_keyW
,
&
htransform
))
{
RegDeleteKeyW
(
htransform
,
buffer
);
RegCloseKey
(
htransform
);
}
if
(
!
RegOpenKeyW
(
HKEY_CLASSES_ROOT
,
categories_keyW
,
&
hcategory
))
{
while
(
RegEnumKeyExW
(
hcategory
,
index
,
category
,
&
size
,
NULL
,
NULL
,
NULL
,
NULL
)
==
ERROR_SUCCESS
)
{
if
(
!
RegOpenKeyW
(
hcategory
,
category
,
&
htmp
))
{
RegDeleteKeyW
(
htmp
,
buffer
);
RegCloseKey
(
htmp
);
}
size
=
MAX_PATH
;
index
++
;
}
RegCloseKey
(
hcategory
);
}
return
S_OK
;
}
/***********************************************************************
* MFStartup (mfplat.@)
*/
HRESULT
WINAPI
MFStartup
(
ULONG
version
,
DWORD
flags
)
...
...
dlls/mfplat/mfplat.spec
View file @
4615f4db
...
...
@@ -140,7 +140,7 @@
@ stdcall MFTRegister(int128 int128 wstr long long ptr long ptr ptr)
@ stub MFTRegisterLocal
@ stub MFTRegisterLocalByCLSID
@ st
ub MFTUnregister
@ st
dcall MFTUnregister(int128)
@ stub MFTUnregisterLocal
@ stub MFTUnregisterLocalByCLSID
@ stub MFTraceError
...
...
include/mfapi.h
View file @
4615f4db
...
...
@@ -39,6 +39,7 @@ HRESULT WINAPI MFTRegister(CLSID clsid, GUID category, LPWSTR name, UINT32 flags
HRESULT
WINAPI
MFShutdown
(
void
);
HRESULT
WINAPI
MFStartup
(
ULONG
version
,
DWORD
flags
);
HRESULT
WINAPI
MFUnlockPlatform
(
void
);
HRESULT
WINAPI
MFTUnregister
(
CLSID
clsid
);
HRESULT
WINAPI
MFGetPluginControl
(
IMFPluginControl
**
);
#endif
/* __WINE_MFAPI_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