Implemented OleGetAutoConvert.

This commit is contained in:
Marcus Meissner 2000-07-29 11:29:26 +00:00 committed by Alexandre Julliard
parent f1fd89db42
commit 9cb1870fe9
2 changed files with 23 additions and 1 deletions

View File

@ -1941,3 +1941,25 @@ BOOL WINAPI COMPOBJ_DllEntryPoint(DWORD Reason, HINSTANCE16 hInst, WORD ds, WORD
} }
return TRUE; 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;
}

View File

@ -107,7 +107,7 @@ import kernel32
101 stub OleDraw 101 stub OleDraw
102 stdcall OleDuplicateData(long long long) OleDuplicateData 102 stdcall OleDuplicateData(long long long) OleDuplicateData
103 stdcall OleFlushClipboard() OleFlushClipboard 103 stdcall OleFlushClipboard() OleFlushClipboard
104 stub OleGetAutoConvert 104 stdcall OleGetAutoConvert(ptr ptr) OleGetAutoConvert
105 stdcall OleGetClipboard(ptr) OleGetClipboard 105 stdcall OleGetClipboard(ptr) OleGetClipboard
106 stdcall OleGetIconOfClass(ptr ptr long) OleGetIconOfClass 106 stdcall OleGetIconOfClass(ptr ptr long) OleGetIconOfClass
107 stub OleGetIconOfFile 107 stub OleGetIconOfFile