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
bc6f1b0c
Commit
bc6f1b0c
authored
Jul 06, 2008
by
Jon Griffiths
Committed by
Alexandre Julliard
Jul 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Implement ICreateTypeLib2::SetHelpStringContext/SetHelpStringDll.
parent
85d19193
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
13 deletions
+38
-13
typelib2.c
dlls/oleaut32/typelib2.c
+38
-13
No files found.
dlls/oleaut32/typelib2.c
View file @
bc6f1b0c
...
...
@@ -152,6 +152,7 @@ typedef struct tagICreateTypeLib2Impl
WCHAR
*
filename
;
MSFT_Header
typelib_header
;
INT
helpStringDll
;
MSFT_pSeg
typelib_segdir
[
MSFT_SEG_MAX
];
char
*
typelib_segment_data
[
MSFT_SEG_MAX
];
int
typelib_segment_block_length
[
MSFT_SEG_MAX
];
...
...
@@ -231,6 +232,7 @@ static void ctl2_init_header(
This
->
typelib_header
.
res48
=
0x80
;
This
->
typelib_header
.
dispatchpos
=
-
1
;
This
->
typelib_header
.
nimpinfos
=
0
;
This
->
helpStringDll
=
-
1
;
}
/****************************************************************************
...
...
@@ -3331,6 +3333,8 @@ static HRESULT WINAPI ICreateTypeLib2_fnSaveAllChanges(ICreateTypeLib2 * iface)
ctl2_finalize_typeinfos
(
This
,
filepos
);
if
(
!
ctl2_write_chunk
(
hFile
,
&
This
->
typelib_header
,
sizeof
(
This
->
typelib_header
)))
return
retval
;
if
(
This
->
typelib_header
.
varflags
&
HELPDLLFLAG
)
if
(
!
ctl2_write_chunk
(
hFile
,
&
This
->
helpStringDll
,
sizeof
(
This
->
helpStringDll
)))
return
retval
;
if
(
!
ctl2_write_chunk
(
hFile
,
This
->
typelib_typeinfo_offsets
,
This
->
typelib_header
.
nrtypeinfos
*
4
))
return
retval
;
if
(
!
ctl2_write_chunk
(
hFile
,
&
This
->
typelib_segdir
,
sizeof
(
This
->
typelib_segdir
)))
return
retval
;
if
(
!
ctl2_write_segment
(
This
,
hFile
,
MSFT_SEG_TYPEINFO
))
return
retval
;
...
...
@@ -3401,35 +3405,56 @@ static HRESULT WINAPI ICreateTypeLib2_fnSetCustData(
*
* Sets a context number for the library help string.
*
* RETURNS
* PARAMS
* iface [I] The type library to set the help string context for.
* dwContext [I] The help string context.
*
* RETURNS
* Success: S_OK
* Failure: E_OUTOFMEMORY or E_INVALIDARG.
*/
static
HRESULT
WINAPI
ICreateTypeLib2_fnSetHelpStringContext
(
ICreateTypeLib2
*
iface
,
/* [I] The type library to set the help string context for. */
ULONG
dwHelpStringContext
)
/* [I] The help string context. */
static
HRESULT
WINAPI
ICreateTypeLib2_fnSetHelpStringContext
(
ICreateTypeLib2
*
iface
,
ULONG
dwContext
)
{
FIXME
(
"(%p,%d), stub!
\n
"
,
iface
,
dwHelpStringContext
);
return
E_OUTOFMEMORY
;
ICreateTypeLib2Impl
*
This
=
(
ICreateTypeLib2Impl
*
)
iface
;
TRACE
(
"(%p,%d)
\n
"
,
iface
,
dwContext
);
This
->
typelib_header
.
helpstringcontext
=
dwContext
;
return
S_OK
;
}
/******************************************************************************
* ICreateTypeLib2_SetHelpStringDll {OLEAUT32}
*
* Set
s
the DLL used to look up localized help strings.
* Set the DLL used to look up localized help strings.
*
* RETURNS
* PARAMS
* iface [I] The type library to set the help DLL for.
* szDllName [I] The name of the help DLL.
*
* RETURNS
* Success: S_OK
* Failure: E_OUTOFMEMORY or E_INVALIDARG.
*/
static
HRESULT
WINAPI
ICreateTypeLib2_fnSetHelpStringDll
(
ICreateTypeLib2
*
iface
,
/* [I] The type library to set the help DLL for. */
LPOLESTR
szFileName
)
/* [I] The name of the help DLL. */
static
HRESULT
WINAPI
ICreateTypeLib2_fnSetHelpStringDll
(
ICreateTypeLib2
*
iface
,
LPOLESTR
szDllName
)
{
FIXME
(
"(%p,%s), stub!
\n
"
,
iface
,
debugstr_w
(
szFileName
));
return
E_OUTOFMEMORY
;
ICreateTypeLib2Impl
*
This
=
(
ICreateTypeLib2Impl
*
)
iface
;
int
offset
;
TRACE
(
"(%p,%s)
\n
"
,
iface
,
debugstr_w
(
szDllName
));
if
(
!
szDllName
)
return
E_INVALIDARG
;
offset
=
ctl2_alloc_string
(
This
,
szDllName
);
if
(
offset
==
-
1
)
return
E_OUTOFMEMORY
;
This
->
typelib_header
.
varflags
|=
HELPDLLFLAG
;
This
->
helpStringDll
=
offset
;
return
S_OK
;
}
/*================== ITypeLib2 Implementation ===================================*/
...
...
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