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 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | [
|
---|
29 | object,
|
---|
30 | uuid(0c733a67-2a1c-11ce-ade5-00aa0044773d),
|
---|
31 | pointer_default(unique)
|
---|
32 | ]
|
---|
33 | interface IErrorRecords : IUnknown
|
---|
34 | {
|
---|
35 |
|
---|
36 | cpp_quote("#define IDENTIFIER_SDK_MASK 0xF0000000")
|
---|
37 | cpp_quote("#define IDENTIFIER_SDK_ERROR 0x10000000")
|
---|
38 |
|
---|
39 | typedef struct tagERRORINFO
|
---|
40 | {
|
---|
41 | HRESULT hrError;
|
---|
42 | DWORD dwMinor;
|
---|
43 | CLSID clsid;
|
---|
44 | IID iid;
|
---|
45 | DISPID dispid;
|
---|
46 | } ERRORINFO;
|
---|
47 |
|
---|
48 | [local]
|
---|
49 | HRESULT AddErrorRecord([in] ERRORINFO * pErrorInfo, [in] DWORD dwLookupID, [in] DISPPARAMS * pdispparams,
|
---|
50 | [in] IUnknown * punkCustomError, [in] DWORD dwDynamicErrorID);
|
---|
51 |
|
---|
52 | [call_as(AddErrorRecord)]
|
---|
53 | HRESULT RemoteAddErrorRecord([in] ERRORINFO * pErrorInfo, [in] DWORD dwLookupID, [in] DISPPARAMS * pdispparams,
|
---|
54 | [in] IUnknown * punkCustomError, [in] DWORD dwDynamicErrorID, [out] IErrorInfo ** ppErrorInfoRem);
|
---|
55 |
|
---|
56 | [local]
|
---|
57 | HRESULT GetBasicErrorInfo([in] ULONG ulRecordNum, [out] ERRORINFO * pErrorInfo);
|
---|
58 |
|
---|
59 | [call_as(GetBasicErrorInfo)]
|
---|
60 | HRESULT RemoteGetBasicErrorInfo([in] ULONG ulRecordNum, [out] ERRORINFO * pErrorInfo, [out] IErrorInfo **ppErrorInfoRem);
|
---|
61 |
|
---|
62 | [local]
|
---|
63 | HRESULT GetCustomErrorObject([in] ULONG ulRecordNum, [in] REFIID riid, [out] IUnknown ** ppObject);
|
---|
64 |
|
---|
65 | [call_as(GetCustomErrorObject)]
|
---|
66 | HRESULT RemoteGetCustomErrorObject([in] ULONG ulRecordNum, [in] REFIID riid, [out] IUnknown ** ppObject,
|
---|
67 | [out] IErrorInfo **ppErrorInfoRem);
|
---|
68 |
|
---|
69 | [local]
|
---|
70 | HRESULT GetErrorInfo([in] ULONG ulRecordNum, [in] LCID lcid, [out] IErrorInfo **ppErrorInfo);
|
---|
71 |
|
---|
72 | [call_as(GetErrorInfo)]
|
---|
73 | HRESULT RemoteGetErrorInfo([in] ULONG ulRecordNum, [in] LCID lcid, [out] IErrorInfo **ppErrorInfo,
|
---|
74 | [out] IErrorInfo **ppErrorInfoRem);
|
---|
75 |
|
---|
76 | [local]
|
---|
77 | HRESULT GetErrorParameters([in] ULONG ulRecordNum, [out] DISPPARAMS * pdispparams);
|
---|
78 |
|
---|
79 | [call_as(GetErrorParameters)]
|
---|
80 | HRESULT RemoteGetErrorParameters([in] ULONG ulRecordNum, [out] DISPPARAMS * pdispparams, [out] IErrorInfo ** ppErrorInfoRem);
|
---|
81 |
|
---|
82 | [local]
|
---|
83 | HRESULT GetRecordCount([out] ULONG *records);
|
---|
84 |
|
---|
85 | [call_as(GetRecordCount)]
|
---|
86 | HRESULT RemoteGetRecordCount([out] ULONG * pcRecords, [out] IErrorInfo **ppErrorInfoRem);
|
---|
87 | }
|
---|