Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
ba5c9c7d
Commit
ba5c9c7d
authored
May 24, 2013
by
Andrew Eikum
Committed by
Alexandre Julliard
May 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Implement basic ICreateTypeLib functions.
parent
97a96094
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
18 deletions
+70
-18
typelib.c
dlls/oleaut32/typelib.c
+70
-18
No files found.
dlls/oleaut32/typelib.c
View file @
ba5c9c7d
...
...
@@ -8110,64 +8110,109 @@ static HRESULT WINAPI ICreateTypeLib2_fnSetName(ICreateTypeLib2 *iface,
LPOLESTR
name
)
{
ITypeLibImpl
*
This
=
impl_from_ICreateTypeLib2
(
iface
);
FIXME
(
"%p %s - stub
\n
"
,
This
,
wine_dbgstr_w
(
name
));
return
E_NOTIMPL
;
TRACE
(
"%p %s
\n
"
,
This
,
wine_dbgstr_w
(
name
));
if
(
!
name
)
return
E_INVALIDARG
;
SysFreeString
(
This
->
Name
);
This
->
Name
=
SysAllocString
(
name
);
return
S_OK
;
}
static
HRESULT
WINAPI
ICreateTypeLib2_fnSetVersion
(
ICreateTypeLib2
*
iface
,
WORD
majorVerNum
,
WORD
minorVerNum
)
{
ITypeLibImpl
*
This
=
impl_from_ICreateTypeLib2
(
iface
);
FIXME
(
"%p %d %d - stub
\n
"
,
This
,
majorVerNum
,
minorVerNum
);
return
E_NOTIMPL
;
TRACE
(
"%p %d %d
\n
"
,
This
,
majorVerNum
,
minorVerNum
);
This
->
LibAttr
.
wMajorVerNum
=
majorVerNum
;
This
->
LibAttr
.
wMinorVerNum
=
minorVerNum
;
return
S_OK
;
}
static
HRESULT
WINAPI
ICreateTypeLib2_fnSetGuid
(
ICreateTypeLib2
*
iface
,
REFGUID
guid
)
{
ITypeLibImpl
*
This
=
impl_from_ICreateTypeLib2
(
iface
);
FIXME
(
"%p %s - stub
\n
"
,
This
,
debugstr_guid
(
guid
));
return
E_NOTIMPL
;
TRACE
(
"%p %s
\n
"
,
This
,
debugstr_guid
(
guid
));
memcpy
(
&
This
->
LibAttr
.
guid
,
guid
,
sizeof
(
GUID
));
return
S_OK
;
}
static
HRESULT
WINAPI
ICreateTypeLib2_fnSetDocString
(
ICreateTypeLib2
*
iface
,
LPOLESTR
doc
)
{
ITypeLibImpl
*
This
=
impl_from_ICreateTypeLib2
(
iface
);
FIXME
(
"%p %s - stub
\n
"
,
This
,
wine_dbgstr_w
(
doc
));
return
E_NOTIMPL
;
TRACE
(
"%p %s
\n
"
,
This
,
wine_dbgstr_w
(
doc
));
if
(
!
doc
)
return
E_INVALIDARG
;
SysFreeString
(
This
->
DocString
);
This
->
DocString
=
SysAllocString
(
doc
);
return
S_OK
;
}
static
HRESULT
WINAPI
ICreateTypeLib2_fnSetHelpFileName
(
ICreateTypeLib2
*
iface
,
LPOLESTR
helpFileName
)
{
ITypeLibImpl
*
This
=
impl_from_ICreateTypeLib2
(
iface
);
FIXME
(
"%p %s - stub
\n
"
,
This
,
wine_dbgstr_w
(
helpFileName
));
return
E_NOTIMPL
;
TRACE
(
"%p %s
\n
"
,
This
,
wine_dbgstr_w
(
helpFileName
));
if
(
!
helpFileName
)
return
E_INVALIDARG
;
SysFreeString
(
This
->
HelpFile
);
This
->
HelpFile
=
SysAllocString
(
helpFileName
);
return
S_OK
;
}
static
HRESULT
WINAPI
ICreateTypeLib2_fnSetHelpContext
(
ICreateTypeLib2
*
iface
,
DWORD
helpContext
)
{
ITypeLibImpl
*
This
=
impl_from_ICreateTypeLib2
(
iface
);
FIXME
(
"%p %d - stub
\n
"
,
This
,
helpContext
);
return
E_NOTIMPL
;
TRACE
(
"%p %d
\n
"
,
This
,
helpContext
);
This
->
dwHelpContext
=
helpContext
;
return
S_OK
;
}
static
HRESULT
WINAPI
ICreateTypeLib2_fnSetLcid
(
ICreateTypeLib2
*
iface
,
LCID
lcid
)
{
ITypeLibImpl
*
This
=
impl_from_ICreateTypeLib2
(
iface
);
FIXME
(
"%p %x - stub
\n
"
,
This
,
lcid
);
return
E_NOTIMPL
;
TRACE
(
"%p %x
\n
"
,
This
,
lcid
);
This
->
LibAttr
.
lcid
=
lcid
;
return
S_OK
;
}
static
HRESULT
WINAPI
ICreateTypeLib2_fnSetLibFlags
(
ICreateTypeLib2
*
iface
,
UINT
libFlags
)
{
ITypeLibImpl
*
This
=
impl_from_ICreateTypeLib2
(
iface
);
FIXME
(
"%p %x - stub
\n
"
,
This
,
libFlags
);
return
E_NOTIMPL
;
TRACE
(
"%p %x
\n
"
,
This
,
libFlags
);
This
->
LibAttr
.
wLibFlags
=
libFlags
;
return
S_OK
;
}
static
HRESULT
WINAPI
ICreateTypeLib2_fnSaveAllChanges
(
ICreateTypeLib2
*
iface
)
...
...
@@ -8205,8 +8250,15 @@ static HRESULT WINAPI ICreateTypeLib2_fnSetHelpStringDll(ICreateTypeLib2 *iface,
LPOLESTR
filename
)
{
ITypeLibImpl
*
This
=
impl_from_ICreateTypeLib2
(
iface
);
FIXME
(
"%p %s - stub
\n
"
,
This
,
wine_dbgstr_w
(
filename
));
return
E_NOTIMPL
;
TRACE
(
"%p %s
\n
"
,
This
,
wine_dbgstr_w
(
filename
));
if
(
!
filename
)
return
E_INVALIDARG
;
SysFreeString
(
This
->
HelpStringDll
);
This
->
HelpStringDll
=
SysAllocString
(
filename
);
return
S_OK
;
}
static
const
ICreateTypeLib2Vtbl
CreateTypeLib2Vtbl
=
{
...
...
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