msxml3/tests: Add test saving XML with non-english characters.
[wine.git] / include / corsym.idl
blobf46b1f5a78a07bfa2763c3c9bec5bf6d97ad19be
1 /*
2 * Copyright (C) 2022 Esme Povirk
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.
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.
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
19 import "unknwn.idl";
20 import "objidl.idl";
21 import "oaidl.idl";
23 cpp_quote("#if 0")
24 /* defined in corhdr.h */
25 typedef UINT32 mdToken;
26 typedef mdToken mdMethodDef;
27 typedef mdToken mdTypeDef;
28 /* defined in winnt.h */
29 typedef SIZE_T IMAGE_DEBUG_DIRECTORY;
30 cpp_quote("#endif")
33 object,
34 uuid(b01fafeb-c450-3a4d-beec-b4ceec01e006),
35 pointer_default(unique)
37 interface ISymUnmanagedDocumentWriter : IUnknown
39 HRESULT SetSource([in] ULONG32 sourceSize, [in, size_is(sourceSize)] BYTE source[]);
40 HRESULT SetCheckSum([in] GUID algorithmId,
41 [in] ULONG32 checkSumSize, [in, size_is(checkSumSize)] BYTE checkSum[]);
45 object,
46 uuid(ed14aa72-78e2-4884-84e2-334293ae5214),
47 pointer_default(unique)
49 interface ISymUnmanagedWriter : IUnknown
51 HRESULT DefineDocument([in] const WCHAR *url, [in] const GUID *language, [in] const GUID *languageVendor,
52 [in] const GUID *documentType, [out, retval] ISymUnmanagedDocumentWriter** pRetVal);
53 HRESULT SetUserEntryPoint([in] mdMethodDef entryMethod);
54 HRESULT OpenMethod([in] mdMethodDef method);
55 HRESULT CloseMethod();
56 HRESULT OpenScope([in] ULONG32 startOffset, [out, retval] ULONG32 *pRetVal);
57 HRESULT CloseScope([in] ULONG32 endOffset);
58 HRESULT SetScopeRange([in] ULONG32 scopeID, [in] ULONG32 startOffset, [in] ULONG32 endOffset);
59 HRESULT DefineLocalVariable([in] const WCHAR *name, [in] ULONG32 attributes, [in] ULONG32 cSig,
60 [in, size_is(cSig)] unsigned char signature[], [in] ULONG32 addrKind,
61 [in] ULONG32 addr1, [in] ULONG32 addr2, [in] ULONG32 addr3,
62 [in] ULONG32 startOffset, [in] ULONG32 endOffset);
63 HRESULT DefineParameter([in] const WCHAR *name, [in] ULONG32 attributes, [in] ULONG32 sequence,
64 [in] ULONG32 addrKind,
65 [in] ULONG32 addr1, [in] ULONG32 addr2, [in] ULONG32 addr3);
66 HRESULT DefineField([in] mdTypeDef parent, [in] const WCHAR *name, [in] ULONG32 attributes, [in] ULONG32 cSig,
67 [in, size_is(cSig)] unsigned char signature[], [in] ULONG32 addrKind,
68 [in] ULONG32 addr1, [in] ULONG32 addr2, [in] ULONG32 addr3);
69 HRESULT DefineGlobalVariable([in] const WCHAR *name, [in] ULONG32 attributes, [in] ULONG32 cSig,
70 [in, size_is(cSig)] unsigned char signature[], [in] ULONG32 addrKind,
71 [in] ULONG32 addr1, [in] ULONG32 addr2, [in] ULONG32 addr3);
72 HRESULT Close();
73 HRESULT SetSymAttributes([in] mdToken parent, [in] const WCHAR *name,
74 [in] ULONG32 cData, [in, size_is(cData)] unsigned char data[]);
75 HRESULT OpenNamespace([in] const WCHAR *name);
76 HRESULT CloseNamespace();
77 HRESULT UsingNamespace([in] const WCHAR *fullName);
78 HRESULT SetMethodSourceRange([in] ISymUnmanagedDocumentWriter *startDoc, ULONG32 startLine, ULONG32 startColumn,
79 [in] ISymUnmanagedDocumentWriter *endDoc, ULONG32 endLine, ULONG32 endColumn);
80 HRESULT Initialize([in] IUnknown *emitter, [in] const WCHAR *filename, [in] IStream *pIStream,
81 [in] BOOL fFullBuild);
82 HRESULT GetDebugInfo([in, out] IMAGE_DEBUG_DIRECTORY *pIDD, [in] DWORD cData, [out] DWORD *pcData,
83 [out, size_is(cData), length_is(*pcData)] BYTE data[]);
84 HRESULT DefineSequencePoints([in] ISymUnmanagedDocumentWriter *document, [in] ULONG32 spCount,
85 [in, size_is(spCount)] ULONG32 offsets[], [in, size_is(spCount)] ULONG32 lines[],
86 [in, size_is(spCount)] ULONG32 columns[], [in, size_is(spCount)] ULONG32 endLines[],
87 [in, size_is(spCount)] ULONG32 endColumns[]);
88 HRESULT RemapToken([in] mdToken oldToken, [in] mdToken newToken);
89 HRESULT Initialize2([in] IUnknown *emitter, [in] const WCHAR *tempFilename, [in] IStream *pIStream,
90 [in] BOOL fFullBuild, [in] const WCHAR *finalFilename);
91 HRESULT DefineConstant([in] const WCHAR *name, [in] VARIANT value, [in] ULONG32 cSig,
92 [in, size_is(cSig)] unsigned char signature[]);
93 HRESULT Abort();
96 cpp_quote("DEFINE_GUID(CLSID_CorSymWriter_SxS, 0x0ae2deb0,0xf901,0x478b,0xbb,0x9f,0x88,0x1e,0xe8,0x06,0x67,0x88);")