Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
260cd4ec
Commit
260cd4ec
authored
Sep 29, 1999
by
Rein Klazes
Committed by
Alexandre Julliard
Sep 29, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First implementation of LoadTypeLibEx().
parent
97a99e51
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
2 deletions
+34
-2
oleaut32.spec
dlls/oleaut32/oleaut32.spec
+1
-1
typelib.c
dlls/oleaut32/typelib.c
+21
-1
oleauto.h
include/oleauto.h
+12
-0
No files found.
dlls/oleaut32/oleaut32.spec
View file @
260cd4ec
...
...
@@ -140,7 +140,7 @@ type win32
170 stdcall OaBuildVersion() OaBuildVersion
171 stub ClearCustData
180 stub CreateTypeLib2
183 st
ub
LoadTypeLibEx
183 st
dcall LoadTypeLibEx (ptr long ptr)
LoadTypeLibEx
184 stub SystemTimeToVariantTime
185 stub VariantTimeToSystemTime
186 stdcall UnRegisterTypeLib (ptr long long long long) UnRegisterTypeLib
...
...
dlls/oleaut32/typelib.c
View file @
260cd4ec
...
...
@@ -162,11 +162,31 @@ HRESULT WINAPI LoadTypeLib(
OLECHAR
*
szFile
,
/* [in] Name of file to load from */
ITypeLib
*
*
pptLib
)
/* [out] Pointer to pointer to loaded type library */
{
return
LoadTypeLibEx
(
szFile
,
REGKIND_DEFAULT
,
pptLib
);
}
/******************************************************************************
* LoadTypeLibEx [OLEAUT32.183]
* Loads and optionally registers a type library
*
* RETURNS
* Success: S_OK
* Failure: Status
*/
HRESULT
WINAPI
LoadTypeLibEx
(
LPOLESTR
szFile
,
/* [in] Name of file to load from */
REGKIND
regkind
,
/* specify kind of registration */
ITypeLib
**
pptLib
)
/* [out] Pointer to pointer to loaded type library */
{
LPSTR
p
;
HRESULT
res
;
TRACE_
(
typelib
)(
"('%s',%
p)
\n
"
,
debugstr_w
(
szFile
),
pptLib
);
TRACE_
(
typelib
)(
"('%s',%
d,%p)
\n
"
,
debugstr_w
(
szFile
),
regkind
,
pptLib
);
p
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
szFile
);
if
(
regkind
!=
REGKIND_NONE
)
FIXME_
(
typelib
)
(
"registration of typelibs not supported yet!
\n
"
);
res
=
TLB_ReadTypeLib
(
p
,
pptLib
);
/* XXX need to free p ?? */
...
...
include/oleauto.h
View file @
260cd4ec
...
...
@@ -495,4 +495,16 @@ typedef struct tagINTERFACEDATA {
UINT16
cMembers
;
/* count of members */
}
INTERFACEDATA
,
*
LPINTERFACEDATA
;
typedef
enum
tagREGKIND
{
REGKIND_DEFAULT
,
REGKIND_REGISTER
,
REGKIND_NONE
}
REGKIND
;
HRESULT
WINAPI
LoadTypeLib
(
OLECHAR
*
szFile
,
ITypeLib
**
pptLib
);
HRESULT
WINAPI
LoadTypeLibEx
(
LPOLESTR
szFile
,
REGKIND
regKind
,
ITypeLib
**
pptLib
);
#endif
/*__WINE_OLEAUTO_H*/
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