Alistair Leslie-Hughes : include: Complete IMimeHeaderTable/ IMimeEnumHeaderRows interfaces.
Alexandre Julliard
julliard at winehq.org
Thu Jun 27 15:33:58 CDT 2019
Module: wine
Branch: master
Commit: 543807a31ceec414130991b32f012d9785626c38
URL: https://source.winehq.org/git/wine.git/?a=commit;h=543807a31ceec414130991b32f012d9785626c38
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Thu Jun 27 05:15:16 2019 +0000
include: Complete IMimeHeaderTable/IMimeEnumHeaderRows interfaces.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
include/mimeole.idl | 124 ++++++++++++++++++++++++++++++++++++++++++++--------
1 file changed, 105 insertions(+), 19 deletions(-)
diff --git a/include/mimeole.idl b/include/mimeole.idl
index cc80c12..b560cae 100644
--- a/include/mimeole.idl
+++ b/include/mimeole.idl
@@ -496,12 +496,116 @@ library MIMEOLE
}
[
+ uuid(c558834d-7f86-11d0-8252-00c04fd85ab4),
+ object
+ ]
+ interface IMimeEnumHeaderRows : IUnknown
+ {
+ typedef struct tagENUMHEADERROW
+ {
+ HHEADERROW hRow;
+ LPSTR pszHeader;
+ LPSTR pszData;
+ ULONG cchData;
+ DWORD_PTR dwReserved;
+ } ENUMHEADERROW, *LPENUMHEADERROW;
+
+ HRESULT Next(
+ [in] ULONG fetch,
+ [in,out] LPENUMHEADERROW row,
+ [out] ULONG *fetched);
+
+ HRESULT Skip(
+ [in] ULONG items);
+
+ HRESULT Reset(void);
+
+ HRESULT Clone(
+ [out] IMimeEnumHeaderRows **rows);
+
+ HRESULT Count(
+ [out] ULONG *pcItems);
+ }
+
+ [
uuid(fd853cd1-7f86-11d0-8252-00c04fd85ab4),
object
]
interface IMimeHeaderTable : IPersistStream
{
- /* FIXME: fill this in */
+ typedef struct tagFINDHEADER
+ {
+ LPCSTR pszHeader;
+ DWORD dwReserved;
+ } FINDHEADER, *LPFINDHEADER;
+
+ typedef struct tagHEADERROWINFO
+ {
+ DWORD dwRowNumber;
+ ULONG cboffStart;
+ ULONG cboffColon;
+ ULONG cboffEnd;
+ } HEADERROWINFO, *LPHEADERROWINFO;
+
+ typedef enum tagHEADERTABLEFLAGS
+ {
+ HTF_NAMEINDATA = 0x00000001,
+ HTF_ENUMHANDLESONLY = 0x00000002
+ } HEADERTABLEFLAGS;
+
+ HRESULT FindFirstRow(
+ [in] LPFINDHEADER header,
+ [out] LPHHEADERROW row);
+
+ HRESULT FindNextRow(
+ [in] LPFINDHEADER header,
+ [out] LPHHEADERROW row);
+
+ HRESULT CountRows(
+ [in] const char *header,
+ [out] ULONG *rows);
+
+ HRESULT AppendRow(
+ [in] const char *header,
+ [in] DWORD flags,
+ [in] const char *data,
+ [in] ULONG count,
+ [out] LPHHEADERROW row);
+
+ HRESULT DeleteRow(
+ [in] HHEADERROW row);
+
+ HRESULT GetRowData(
+ [in] HHEADERROW row,
+ [in] DWORD flags,
+ [out] char **data,
+ [out] ULONG *len);
+
+ HRESULT SetRowData(
+ [in] HHEADERROW row,
+ [in] DWORD flags,
+ [in] const char *data,
+ [in] ULONG len);
+
+ HRESULT GetRowInfo(
+ [in] HHEADERROW row,
+ [in,out] LPHEADERROWINFO info);
+
+ HRESULT SetRowNumber(
+ [in] HHEADERROW row,
+ [in] DWORD number);
+
+ HRESULT EnumRows(
+ [in] const char *header,
+ [in] DWORD flags,
+ [out] IMimeEnumHeaderRows **rows);
+
+ HRESULT Clone(
+ [out] IMimeHeaderTable **table);
+
+ HRESULT BindToObject(
+ [in] REFIID riid,
+ [out, iid_is(riid)] void *object);
}
[
@@ -1257,24 +1361,6 @@ cpp_quote("#endif")
}
[
- uuid(c558834d-7f86-11d0-8252-00c04fd85ab4),
- object
- ]
- interface IMimeEnumHeaderRows : IUnknown
- {
- typedef struct tagENUMHEADERROW
- {
- HHEADERROW hRow;
- LPSTR pszHeader;
- LPSTR pszData;
- ULONG cchData;
- DWORD_PTR dwReserved;
- } ENUMHEADERROW, *LPENUMHEADERROW;
-
- /* FIXME: fill this in */
- }
-
- [
uuid(fd853cee-7f86-11d0-8252-00c04fd85ab4),
object
]
More information about the wine-cvs
mailing list