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
9cb1870f
Commit
9cb1870f
authored
Jul 29, 2000
by
Marcus Meissner
Committed by
Alexandre Julliard
Jul 29, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented OleGetAutoConvert.
parent
f1fd89db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
compobj.c
dlls/ole32/compobj.c
+22
-0
ole32.spec
dlls/ole32/ole32.spec
+1
-1
No files found.
dlls/ole32/compobj.c
View file @
9cb1870f
...
...
@@ -1941,3 +1941,25 @@ BOOL WINAPI COMPOBJ_DllEntryPoint(DWORD Reason, HINSTANCE16 hInst, WORD ds, WORD
}
return
TRUE
;
}
/******************************************************************************
* OleGetAutoConvert [OLE32.104]
*/
HRESULT
WINAPI
OleGetAutoConvert
(
REFCLSID
clsidOld
,
LPCLSID
pClsidNew
)
{
HKEY
hkey
;
char
buf
[
200
];
WCHAR
wbuf
[
200
];
DWORD
len
;
sprintf
(
buf
,
"CLSID
\\
"
);
WINE_StringFromCLSID
(
clsidOld
,
&
buf
[
6
]);
if
(
RegOpenKeyA
(
HKEY_CLASSES_ROOT
,
buf
,
&
hkey
))
return
REGDB_E_CLASSNOTREG
;
len
=
200
;
if
(
RegQueryValueA
(
hkey
,
"AutoConvertTo"
,
buf
,
&
len
))
return
REGDB_E_KEYMISSING
;
RegCloseKey
(
hkey
);
lstrcpyAtoW
(
wbuf
,
buf
);
CLSIDFromString
(
wbuf
,
pClsidNew
);
return
S_OK
;
}
dlls/ole32/ole32.spec
View file @
9cb1870f
...
...
@@ -107,7 +107,7 @@ import kernel32
101 stub OleDraw
102 stdcall OleDuplicateData(long long long) OleDuplicateData
103 stdcall OleFlushClipboard() OleFlushClipboard
104 st
ub
OleGetAutoConvert
104 st
dcall OleGetAutoConvert(ptr ptr)
OleGetAutoConvert
105 stdcall OleGetClipboard(ptr) OleGetClipboard
106 stdcall OleGetIconOfClass(ptr ptr long) OleGetIconOfClass
107 stub OleGetIconOfFile
...
...
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