widl: Generate helper macros for WinRT implementation.
[wine/zf.git] / include / hstring.idl
blob2623f34dcb52730dfb251d0a357cda0243632b97
1 /*
2 * Copyright (C) 2014 Martin Storsjo
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 "wtypes.idl";
21 typedef struct HSTRING__
23 int unused;
24 } HSTRING__;
26 typedef [wire_marshal(wireBSTR), unique] HSTRING__* HSTRING;
28 cpp_quote("DECLARE_HANDLE(HSTRING_BUFFER);")
30 cpp_quote("typedef struct HSTRING_HEADER")
31 cpp_quote("{")
32 cpp_quote(" union")
33 cpp_quote(" {")
34 cpp_quote(" PVOID Reserved1;")
35 cpp_quote("#ifdef _WIN64")
36 cpp_quote(" char Reserved2[24];")
37 cpp_quote("#else")
38 cpp_quote(" char Reserved2[20];")
39 cpp_quote("#endif")
40 cpp_quote(" } Reserved;")
41 cpp_quote("} HSTRING_HEADER;")