1 | /*
|
---|
2 | * Copyright (C) 2013 Alistair Leslie-Hughes
|
---|
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 | [
|
---|
20 | object,
|
---|
21 | uuid(0c733a67-2a1c-11ce-ade5-00aa0044773d),
|
---|
22 | pointer_default(unique)
|
---|
23 | ]
|
---|
24 | interface IErrorRecords : IUnknown
|
---|
25 | {
|
---|
26 |
|
---|
27 | cpp_quote("#define IDENTIFIER_SDK_MASK 0xF0000000")
|
---|
28 | cpp_quote("#define IDENTIFIER_SDK_ERROR 0x10000000")
|
---|
29 |
|
---|
30 | typedef struct tagERRORINFO
|
---|
31 | {
|
---|
32 | HRESULT hrError;
|
---|
33 | DWORD dwMinor;
|
---|
34 | CLSID clsid;
|
---|
35 | IID iid;
|
---|
36 | DISPID dispid;
|
---|
37 | } ERRORINFO;
|
---|
38 |
|
---|
39 | [local]
|
---|
40 | HRESULT AddErrorRecord([in] ERRORINFO * pErrorInfo, [in] DWORD dwLookupID, [in] DISPPARAMS * pdispparams,
|
---|
41 | [in] IUnknown * punkCustomError, [in] DWORD dwDynamicErrorID);
|
---|
42 |
|
---|
43 | [call_as(AddErrorRecord)]
|
---|
44 | HRESULT RemoteAddErrorRecord([in] ERRORINFO * pErrorInfo, [in] DWORD dwLookupID, [in] DISPPARAMS * pdispparams,
|
---|
45 | [in] IUnknown * punkCustomError, [in] DWORD dwDynamicErrorID, [out] IErrorInfo ** ppErrorInfoRem);
|
---|
46 |
|
---|
47 | [local]
|
---|
48 | HRESULT GetBasicErrorInfo([in] ULONG ulRecordNum, [out] ERRORINFO * pErrorInfo);
|
---|
49 |
|
---|
50 | [call_as(GetBasicErrorInfo)]
|
---|
51 | HRESULT RemoteGetBasicErrorInfo([in] ULONG ulRecordNum, [out] ERRORINFO * pErrorInfo, [out] IErrorInfo **ppErrorInfoRem);
|
---|
52 |
|
---|
53 | [local]
|
---|
54 | HRESULT GetCustomErrorObject([in] ULONG ulRecordNum, [in] REFIID riid, [out] IUnknown ** ppObject);
|
---|
55 |
|
---|
56 | [call_as(GetCustomErrorObject)]
|
---|
57 | HRESULT RemoteGetCustomErrorObject([in] ULONG ulRecordNum, [in] REFIID riid, [out] IUnknown ** ppObject,
|
---|
58 | [out] IErrorInfo **ppErrorInfoRem);
|
---|
59 |
|
---|
60 | [local]
|
---|
61 | HRESULT GetErrorInfo([in] ULONG ulRecordNum, [in] LCID lcid, [out] IErrorInfo **ppErrorInfo);
|
---|
62 |
|
---|
63 | [call_as(GetErrorInfo)]
|
---|
64 | HRESULT RemoteGetErrorInfo([in] ULONG ulRecordNum, [in] LCID lcid, [out] IErrorInfo **ppErrorInfo,
|
---|
65 | [out] IErrorInfo **ppErrorInfoRem);
|
---|
66 |
|
---|
67 | [local]
|
---|
68 | HRESULT GetErrorParameters([in] ULONG ulRecordNum, [out] DISPPARAMS * pdispparams);
|
---|
69 |
|
---|
70 | [call_as(GetErrorParameters)]
|
---|
71 | HRESULT RemoteGetErrorParameters([in] ULONG ulRecordNum, [out] DISPPARAMS * pdispparams, [out] IErrorInfo ** ppErrorInfoRem);
|
---|
72 |
|
---|
73 | [local]
|
---|
74 | HRESULT GetRecordCount([out] ULONG *records);
|
---|
75 |
|
---|
76 | [call_as(GetRecordCount)]
|
---|
77 | HRESULT RemoteGetRecordCount([out] ULONG * pcRecords, [out] IErrorInfo **ppErrorInfoRem);
|
---|
78 | }
|
---|