Implemented OleGetAutoConvert.
This commit is contained in:
parent
f1fd89db42
commit
9cb1870fe9
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -107,7 +107,7 @@ import kernel32
|
|||
101 stub OleDraw
|
||||
102 stdcall OleDuplicateData(long long long) OleDuplicateData
|
||||
103 stdcall OleFlushClipboard() OleFlushClipboard
|
||||
104 stub OleGetAutoConvert
|
||||
104 stdcall OleGetAutoConvert(ptr ptr) OleGetAutoConvert
|
||||
105 stdcall OleGetClipboard(ptr) OleGetClipboard
|
||||
106 stdcall OleGetIconOfClass(ptr ptr long) OleGetIconOfClass
|
||||
107 stub OleGetIconOfFile
|
||||
|
|
Loading…
Reference in New Issue