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
869b10b4
Commit
869b10b4
authored
Feb 12, 2008
by
Huw Davies
Committed by
Alexandre Julliard
Feb 13, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inetcomm: Implement IMimeMessage_GetTextBody.
parent
a9287e35
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
2 deletions
+43
-2
mimeole.c
dlls/inetcomm/mimeole.c
+38
-2
mimeole.idl
include/mimeole.idl
+5
-0
No files found.
dlls/inetcomm/mimeole.c
View file @
869b10b4
...
...
@@ -2189,8 +2189,44 @@ static HRESULT WINAPI MimeMessage_GetTextBody(
IStream
**
pStream
,
LPHBODY
phBody
)
{
FIXME
(
"(%p)->(%d, %d, %p, %p)
\n
"
,
iface
,
dwTxtType
,
ietEncoding
,
pStream
,
phBody
);
return
E_NOTIMPL
;
HRESULT
hr
;
HBODY
hbody
;
FINDBODY
find_struct
;
IMimeBody
*
mime_body
;
static
char
text
[]
=
"text"
;
static
char
plain
[]
=
"plain"
;
static
char
html
[]
=
"html"
;
TRACE
(
"(%p)->(%d, %d, %p, %p)
\n
"
,
iface
,
dwTxtType
,
ietEncoding
,
pStream
,
phBody
);
find_struct
.
pszPriType
=
text
;
switch
(
dwTxtType
)
{
case
TXT_PLAIN
:
find_struct
.
pszSubType
=
plain
;
break
;
case
TXT_HTML
:
find_struct
.
pszSubType
=
html
;
break
;
default:
return
MIME_E_INVALID_TEXT_TYPE
;
}
hr
=
IMimeMessage_FindFirst
(
iface
,
&
find_struct
,
&
hbody
);
if
(
hr
!=
S_OK
)
{
TRACE
(
"not found hr %08x
\n
"
,
hr
);
*
phBody
=
NULL
;
return
hr
;
}
IMimeMessage_BindToObject
(
iface
,
hbody
,
&
IID_IMimeBody
,
(
void
**
)
&
mime_body
);
IMimeBody_GetData
(
mime_body
,
ietEncoding
,
pStream
);
*
phBody
=
hbody
;
IMimeBody_Release
(
mime_body
);
return
hr
;
}
static
HRESULT
WINAPI
MimeMessage_SetTextBody
(
...
...
include/mimeole.idl
View file @
869b10b4
...
...
@@ -41,6 +41,8 @@ cpp_quote("#define MIME_E_NOT_FOUND 0x800cce05")
cpp_quote
(
"#define MIME_E_NO_DATA 0x800cce05"
)
cpp_quote
(
"#define MIME_E_BUFFER_TOO_SMALL 0x800cce06"
)
cpp_quote
(
"#define MIME_E_INVALID_TEXT_TYPE 0x800cce38"
)
cpp_quote
(
"typedef enum tagMIMEPROPID {"
)
cpp_quote
(
" PID_HDR_NEWSGROUP = 2,"
)
cpp_quote
(
" PID_HDR_NEWSGROUPS = 3,"
)
...
...
@@ -894,6 +896,9 @@ cpp_quote("#endif")
WCHAR
wchQuote
;
}
WEBPAGEOPTIONS
,
*
LPWEBPAGEOPTIONS
;
cpp_quote
(
"#define TXT_PLAIN 1"
)
cpp_quote
(
"#define TXT_HTML 2"
)
HRESULT
CreateWebPage
(
[
in
]
IStream
*
pRootStm
,
[
in
]
LPWEBPAGEOPTIONS
pOptions
,
...
...
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