ReactOS  0.4.15-dev-439-g292f67a
imnact.idl
Go to the documentation of this file.
1 /*
2  * Copyright 2006 Robert Shearman for CodeWeavers
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  */
18 
19 import "objidl.idl";
20 
21 interface IImnAccount;
22 
23 cpp_quote("#ifndef HR_E")
24 cpp_quote("#define HR_E(n) MAKE_SCODE(SEVERITY_ERROR, FACILITY_INTERNET, n)")
25 cpp_quote("#endif")
26 cpp_quote("#ifndef HR_S")
27 cpp_quote("#define HR_S(n) MAKE_SCODE(SEVERITY_SUCCESS, FACILITY_INTERNET, n)")
28 cpp_quote("#endif")
29 
30 typedef enum tagSMTPAUTHTYPE
31 {
36 } SMTPAUTHTYPE;
37 
38 const SHORT CCHMAX_ORG_NAME = 256;
42 const SHORT CCHMAX_PASSWORD = 256;
43 const SHORT CCHMAX_USERNAME = 256;
49 const SHORT CCHMAX_SERVICE = 256;
50 
51 [
52  object,
53  uuid(0A06BD31-166F-11D0-81B9-00C04FD85AB4),
55 ]
57 {
58  typedef enum
59  {
64  } ACCTTYPE;
65 
66  typedef struct tagAccountContext
67  {
72  } ACTX;
73 
75  [in] DWORD dwAdviseType,
76  [in] ACTX *pAcctCtx);
77 }
78 
79 [
80  object,
81  uuid(8D0AED11-1638-11D0-81B9-00C04FD85AB4),
83 ]
85 {
87  [in] DWORD dwSrvType,
88  [in] IImnAccount *pAccount);
89 }
90 
91 [
92  object,
93  uuid(FD465483-1384-11D0-ABBD-0020AFDFD10A),
95 ]
97 {
99  [out] ULONG *pcItems);
100 
102 
104  [out] IImnAccount **ppAccount);
105 
106  HRESULT Reset();
107 }
108 
109 [
110  object,
111  uuid(FD465481-1384-11D0-ABBD-0020AFDFD10A),
113 ]
115 {
116  typedef struct tagACCTLISTINFO
117  {
119  ACCTTYPE AcctTypeInit;
122  } ACCTLISTINFO;
123 
124  HRESULT Init(
125  [in] IImnAdviseMigrateServer *pAdviseMigrateServer);
126 
128  [in] ACCTTYPE AcctType,
129  [out] IImnAccount **ppAccount);
130 
132  [in] DWORD dwSrvTypes,
133  [out] IImnEnumAccounts **ppEnumAccounts);
134 
136  [in] ACCTTYPE AcctType,
137  [out] ULONG *pcServers);
138 
140  [in] DWORD dwPropTag,
141  [in] LPCSTR pszSearchData,
142  [out] IImnAccount **ppAccount);
143 
145  [in] ACCTTYPE AcctType,
146  [in,ref] LPSTR pszAccount,
147  [in] ULONG cchMax);
148 
150  [in] UINT uMsg,
151  [in] WPARAM wParam,
152  [in] LPARAM lParam);
153 
155 
157  [in] HWND hwnd,
158  [in] ACCTLISTINFO *pinfo);
159 
160  HRESULT Advise(
161  [in] IImnAdviseAccount *pAdviseAccount,
162  [out] DWORD *pdwConnection);
163 
165  [in] DWORD dwConnection);
166 
168  [in] LPSTR szName,
169  [in] UINT cch);
170 
171  HRESULT InitEx(
172  [in] IImnAdviseMigrateServer *pAdviseMigrateServer,
173  [in] DWORD dwFlags);
174 }
175 
176 [
177  object,
178  uuid(C43DFC6F-62BB-11D2-A727-00C04F79E7C8),
180 ]
182 {
184  [in] IImnAdviseMigrateServer *pAdviseMigrateServer,
185  [in] REFGUID rguidID,
186  [in] DWORD dwFlags);
187 
189  [in] ACCTTYPE AcctType,
190  [in,ref] LPSTR pszAccountId,
191  [in] ULONG cchMax);
192 
194  [in] ACCTTYPE AcctType,
195  [in] LPCSTR pszAccountId);
196 }
197 
198 [
199  object,
200  uuid(FD465484-1384-11D0-ABBD-0020AFDFD10A),
202 ]
204 {
205  typedef enum
206  {
207  TYPE_ERROR = 1000,
223  } PROPTYPE;
224 
225 cpp_quote("#ifdef WINE_NO_UNICODE_MACROS")
226 cpp_quote("#undef GetProp")
227 cpp_quote("#undef SetProp")
228 cpp_quote("#endif")
229 
231  [in] DWORD dwPropTag,
232  [in,size_is(*pcb),ref] BYTE *pb,
233  [in] ULONG *pcb);
234 
236  [in] DWORD dwPropTag,
237  [out] DWORD *pdw);
238 
240  [in] DWORD dwPropTag,
241  [in,ref] LPSTR psz,
242  [in] ULONG cchMax);
243 
245  [in] DWORD dwPropTag,
246  [in,size_is(cb)] BYTE *pb,
247  [in] ULONG cb);
248 
250  [in] DWORD dwPropTag,
251  [in] DWORD dw);
252 
254  [in] DWORD dwPropTag,
255  [in] LPSTR psz);
256 }
257 
258 [
259  object,
260  uuid(FD465482-1384-11D0-ABBD-0020AFDFD10A),
262 ]
264 {
265  HRESULT Exist();
266 
268 
269  HRESULT Delete();
270 
272 
274  [out] ACCTTYPE *pAcctType);
275 
277  [out] DWORD *pdwSrvTypes);
278 
280  [in] HWND hwnd,
281  [in] DWORD dwFlags);
282 
284  [in] DWORD dwPropTag,
285  [in,size_is(cb)] BYTE *pb,
286  [in] ULONG cb);
287 
289  [in] HWND hwnd,
290  [in] DWORD dwFlags);
291 
293  [in] HWND hwnd,
294  [in] CLSID clsid,
295  [in] DWORD dwFlags);
296 }
297 
298 cpp_quote("HRESULT WINAPI HrCreateAccountManager(IImnAccountManager **ppAccountManager);")
HRESULT AccountListDialog([in] HWND hwnd, [in] ACCTLISTINFO *pinfo)
HRESULT GetNext([out] IImnAccount **ppAccount)
HRESULT Delete()
const SHORT CCHMAX_SEARCH_BASE
Definition: imnact.idl:46
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
HRESULT ProcessNotification([in] UINT uMsg, [in] WPARAM wParam, [in] LPARAM lParam)
Definition: scsiwmi.h:51
const SHORT CCHMAX_CONNECTOID
Definition: imnact.idl:45
HRESULT Enumerate([in] DWORD dwSrvTypes, [out] IImnEnumAccounts **ppEnumAccounts)
HRESULT CreateAccountObject([in] ACCTTYPE AcctType, [out] IImnAccount **ppAccount)
HRESULT GetIncompleteAccount([in] ACCTTYPE AcctType, [in, ref] LPSTR pszAccountId, [in] ULONG cchMax)
HRESULT GetProp([in] DWORD dwPropTag, [in, size_is(*pcb), ref] BYTE *pb, [in] ULONG *pcb)
HRESULT Unadvise([in] DWORD dwConnection)
HRESULT FindAccount([in] DWORD dwPropTag, [in] LPCSTR pszSearchData, [out] IImnAccount **ppAccount)
const SHORT CCHMAX_SERVICE
Definition: imnact.idl:49
static int int const SCRIPT_CONTROL const SCRIPT_STATE SCRIPT_ITEM ULONG int * pcItems
Definition: usp10.c:62
const SHORT CCHMAX_SERVER_NAME
Definition: imnact.idl:41
HRESULT GetUniqueAccountName([in] LPSTR szName, [in] UINT cch)
UINT_PTR WPARAM
Definition: windef.h:207
char * LPSTR
Definition: xmlstorage.h:182
Definition: send.c:48
WPARAM wParam
Definition: combotst.c:138
coclass AMMultiMediaStream cpp_quote("DEFINE_GUID(CLSID_AMDirectDrawStream, 0x49c47ce4, 0x9ba4, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45);") cpp_quote("DEFINE_GUID(CLSID_AMAudioStream
HRESULT SetPropSz([in] DWORD dwPropTag, [in] LPSTR psz)
HRESULT SetProp([in] DWORD dwPropTag, [in, size_is(cb)] BYTE *pb, [in] ULONG cb)
const SHORT CCHMAX_ACCOUNT_NAME
Definition: imnact.idl:40
HRESULT AdviseAccount([in] DWORD dwAdviseType, [in] ACTX *pAcctCtx)
HRESULT GetCount([out] ULONG *pcItems)
HRESULT SetPropDw([in] DWORD dwPropTag, [in] DWORD dw)
HRESULT ShowProperties([in] HWND hwnd, [in] DWORD dwFlags)
short SHORT
Definition: pedump.c:59
HRESULT InitEx([in] IImnAdviseMigrateServer *pAdviseMigrateServer, [in] DWORD dwFlags)
const SHORT CCHMAX_ROOT_FOLDER
Definition: imnact.idl:47
REFIID LPVOID DWORD_PTR dw
Definition: atlbase.h:40
static DWORD DWORD void LPSTR DWORD cch
Definition: str.c:201
const SHORT CCHMAX_ORG_NAME
Definition: imnact.idl:38
HRESULT SetIncompleteAccount([in] ACCTTYPE AcctType, [in] LPCSTR pszAccountId)
LONG_PTR LPARAM
Definition: windef.h:208
const char * LPCSTR
Definition: xmlstorage.h:183
HRESULT InitUser([in] IImnAdviseMigrateServer *pAdviseMigrateServer, [in] REFGUID rguidID, [in] DWORD dwFlags)
LONG HRESULT
Definition: typedefs.h:78
#define WINAPI
Definition: msvc.h:6
static FILE * out
Definition: regtests2xml.c:44
HRESULT Init([in] IImnAdviseMigrateServer *pAdviseMigrateServer)
unsigned long DWORD
Definition: ntddk_ex.h:95
HRESULT DoImportWizard([in] HWND hwnd, [in] CLSID clsid, [in] DWORD dwFlags)
UINT cchMax
HRESULT GetPropDw([in] DWORD dwPropTag, [out] DWORD *pdw)
HRESULT SaveChanges()
HRESULT ValidateDefaultSendAccount()
REFCLSID clsid
Definition: msctf.c:82
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
struct IImnAdviseAccount::tagAccountContext ACTX
unsigned char BYTE
Definition: xxhash.c:193
HRESULT SetAsDefault()
HR_S(n) enum tagSMTPAUTHTYPE SMTPAUTHTYPE
HRESULT ValidateProperty([in] DWORD dwPropTag, [in, size_is(cb)] BYTE *pb, [in] ULONG cb)
HRESULT GetAccountCount([in] ACCTTYPE AcctType, [out] ULONG *pcServers)
HRESULT MigrateServer([in] DWORD dwSrvType, [in] IImnAccount *pAccount)
const SHORT CCHMAX_PASSWORD
Definition: imnact.idl:42
GLuint in
Definition: glext.h:9616
static unsigned char pointer_default
Definition: parser.tab.c:114
const SHORT CCHMAX_EMAIL_ADDRESS
Definition: imnact.idl:44
HRESULT GetDefaultAccountName([in] ACCTTYPE AcctType, [in, ref] LPSTR pszAccount, [in] ULONG cchMax)
HRESULT Advise([in] IImnAdviseAccount *pAdviseAccount, [out] DWORD *pdwConnection)
HRESULT GetServerTypes([out] DWORD *pdwSrvTypes)
unsigned int UINT
Definition: ndis.h:50
const SHORT CCHMAX_DISPLAY_NAME
Definition: imnact.idl:39
const SHORT CCHMAX_USERNAME
Definition: imnact.idl:43
static HMODULE MODULEINFO DWORD cb
Definition: module.c:32
static const WCHAR szName[]
Definition: msipriv.h:1194
HRESULT Exist()
tagSMTPAUTHTYPE
Definition: imnact.idl:30
unsigned int ULONG
Definition: retypes.h:1
HRESULT WINAPI ValidEmailAddress(LPSTR lpAddress)
HRESULT GetPropSz([in] DWORD dwPropTag, [in, ref] LPSTR psz, [in] ULONG cchMax)
HRESULT DoWizard([in] HWND hwnd, [in] DWORD dwFlags)
HRESULT GetAccountType([out] ACCTTYPE *pAcctType)
HRESULT SortByAccountName()
LPARAM lParam
Definition: combotst.c:139
struct IImnAccountManager::tagACCTLISTINFO ACCTLISTINFO
void * object
Definition: jmemsys.h:48
#define F(x, y, z)
Definition: md5.c:51
const SHORT CCHMAX_SIGNATURE
Definition: imnact.idl:48