oleaut32: Partially implement RegisterTypeLibForUser.

This commit is contained in:
Andrew Nguyen 2010-07-30 07:43:50 -05:00 committed by Alexandre Julliard
parent 10356abd8a
commit f4fa417be9
3 changed files with 25 additions and 0 deletions

View File

@ -410,6 +410,7 @@
439 stdcall VarUI8FromUI2(long ptr) 439 stdcall VarUI8FromUI2(long ptr)
440 stdcall VarUI8FromUI4(long ptr) 440 stdcall VarUI8FromUI4(long ptr)
441 stdcall VarUI8FromDec(long ptr) 441 stdcall VarUI8FromDec(long ptr)
442 stdcall RegisterTypeLibForUser(ptr wstr wstr)
@ stdcall -private DllCanUnloadNow() @ stdcall -private DllCanUnloadNow()
@ stdcall -private DllGetClassObject(ptr ptr ptr) @ stdcall -private DllGetClassObject(ptr ptr ptr)

View File

@ -903,6 +903,29 @@ end:
return result; return result;
} }
/******************************************************************************
* RegisterTypeLibForUser [OLEAUT32.442]
* Adds information about a type library to the user registry
* NOTES
* Docs: ITypeLib FAR * ptlib
* Docs: OLECHAR FAR* szFullPath
* Docs: OLECHAR FAR* szHelpDir
*
* RETURNS
* Success: S_OK
* Failure: Status
*/
HRESULT WINAPI RegisterTypeLibForUser(
ITypeLib * ptlib, /* [in] Pointer to the library*/
OLECHAR * szFullPath, /* [in] full Path of the library*/
OLECHAR * szHelpDir) /* [in] dir to the helpfile for the library,
may be NULL*/
{
FIXME("(%p, %s, %s) registering the typelib system-wide\n", ptlib,
debugstr_w(szFullPath), debugstr_w(szHelpDir));
return RegisterTypeLib(ptlib, szFullPath, szHelpDir);
}
/*======================= ITypeLib implementation =======================*/ /*======================= ITypeLib implementation =======================*/
typedef struct tagTLBCustData typedef struct tagTLBCustData

View File

@ -750,6 +750,7 @@ HRESULT WINAPI LoadTypeLibEx(LPCOLESTR,REGKIND,ITypeLib**);
HRESULT WINAPI QueryPathOfRegTypeLib(REFGUID,WORD,WORD,LCID,LPBSTR); HRESULT WINAPI QueryPathOfRegTypeLib(REFGUID,WORD,WORD,LCID,LPBSTR);
HRESULT WINAPI RegisterTypeLib(ITypeLib*,OLECHAR*,OLECHAR*); HRESULT WINAPI RegisterTypeLib(ITypeLib*,OLECHAR*,OLECHAR*);
HRESULT WINAPI UnRegisterTypeLib(REFGUID,WORD,WORD,LCID,SYSKIND); HRESULT WINAPI UnRegisterTypeLib(REFGUID,WORD,WORD,LCID,SYSKIND);
HRESULT WINAPI RegisterTypeLibForUser(ITypeLib*,OLECHAR*,OLECHAR*);
VOID WINAPI ClearCustData(LPCUSTDATA); VOID WINAPI ClearCustData(LPCUSTDATA);