Andrew Nguyen : oleaut32: Partially implement RegisterTypeLibForUser.

Alexandre Julliard julliard at winehq.org
Fri Jul 30 10:24:17 CDT 2010


Module: wine
Branch: master
Commit: f4fa417be95f584863c64fc886cb027d84f7496e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f4fa417be95f584863c64fc886cb027d84f7496e

Author: Andrew Nguyen <anguyen at codeweavers.com>
Date:   Fri Jul 30 07:43:50 2010 -0500

oleaut32: Partially implement RegisterTypeLibForUser.

---

 dlls/oleaut32/oleaut32.spec |    1 +
 dlls/oleaut32/typelib.c     |   23 +++++++++++++++++++++++
 include/oleauto.h           |    1 +
 3 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/dlls/oleaut32/oleaut32.spec b/dlls/oleaut32/oleaut32.spec
index 7b764ef..239b022 100644
--- a/dlls/oleaut32/oleaut32.spec
+++ b/dlls/oleaut32/oleaut32.spec
@@ -410,6 +410,7 @@
 439 stdcall VarUI8FromUI2(long ptr)
 440 stdcall VarUI8FromUI4(long ptr)
 441 stdcall VarUI8FromDec(long ptr)
+442 stdcall RegisterTypeLibForUser(ptr wstr wstr)
 
 @ stdcall -private DllCanUnloadNow()
 @ stdcall -private DllGetClassObject(ptr ptr ptr)
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index 81d0ae0..e168953 100644
--- a/dlls/oleaut32/typelib.c
+++ b/dlls/oleaut32/typelib.c
@@ -903,6 +903,29 @@ end:
     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 =======================*/
 
 typedef struct tagTLBCustData
diff --git a/include/oleauto.h b/include/oleauto.h
index 98e8dbf..573f5cc 100644
--- a/include/oleauto.h
+++ b/include/oleauto.h
@@ -750,6 +750,7 @@ HRESULT WINAPI LoadTypeLibEx(LPCOLESTR,REGKIND,ITypeLib**);
 HRESULT WINAPI QueryPathOfRegTypeLib(REFGUID,WORD,WORD,LCID,LPBSTR);
 HRESULT WINAPI RegisterTypeLib(ITypeLib*,OLECHAR*,OLECHAR*);
 HRESULT WINAPI UnRegisterTypeLib(REFGUID,WORD,WORD,LCID,SYSKIND);
+HRESULT WINAPI RegisterTypeLibForUser(ITypeLib*,OLECHAR*,OLECHAR*);
 
 VOID WINAPI ClearCustData(LPCUSTDATA);
 




More information about the wine-cvs mailing list