wtypes.idl revision 5112e32d7072e280613921c982a6672f2c859cf3
af062818b47340eef15700d2f0211576ba3506eevboxsync * Basic types used by COM interfaces
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright 2002 Ove Kaaven
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is free software; you can redistribute it and/or
af062818b47340eef15700d2f0211576ba3506eevboxsync * modify it under the terms of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License as published by the Free Software Foundation; either
af062818b47340eef15700d2f0211576ba3506eevboxsync * version 2.1 of the License, or (at your option) any later version.
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is distributed in the hope that it will be useful,
af062818b47340eef15700d2f0211576ba3506eevboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
af062818b47340eef15700d2f0211576ba3506eevboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync * Lesser General Public License for more details.
af062818b47340eef15700d2f0211576ba3506eevboxsync * You should have received a copy of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License along with this library; if not, write to the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * other than GPL or LGPL is available it will apply instead, Sun elects to use only
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * a choice of LGPL license versions is made available with the language indicating
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * that LGPLv2 or any later version may be used, or where a choice of which version
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * of the LGPL is applied is otherwise unspecified.
af062818b47340eef15700d2f0211576ba3506eevboxsyncimport "basetsd.h";
af062818b47340eef15700d2f0211576ba3506eevboxsyncimport "guiddef.h";
af062818b47340eef15700d2f0211576ba3506eevboxsync/******************** BASIC WIN32 TYPES ********************/
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#if 0 /* winnt.h */") /* don't redefine these */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define DECLARE_WIREM_HANDLE(name) typedef [wire_marshal(wire##name)] void*name
af062818b47340eef15700d2f0211576ba3506eevboxsync} SID_IDENTIFIER_AUTHORITY, *PSID_IDENTIFIER_AUTHORITY;
af062818b47340eef15700d2f0211576ba3506eevboxsync [size_is(SubAuthorityCount)] ULONG SubAuthority[*];
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef USHORT SECURITY_DESCRIPTOR_CONTROL, *PSECURITY_DESCRIPTOR_CONTROL;
af062818b47340eef15700d2f0211576ba3506eevboxsync} SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES;
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#ifdef _MSC_VER") /* for IDL and MSVC only */
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("typedef double DECLSPEC_ALIGN(8) DOUBLE;")
af062818b47340eef15700d2f0211576ba3506eevboxsync [size_is(palNumEntries)] PALETTEENTRY palPalEntry[*];
af062818b47340eef15700d2f0211576ba3506eevboxsync/******************** BASIC COM/OLE TYPES ********************/
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define ROTFLAGS_REGISTRATIONKEEPSALIVE 0x1")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define CLSCTX_INPROC (CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define CLSCTX_ALL (CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define CLSCTX_SERVER (CLSCTX_INPROC_SERVER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER)")
af062818b47340eef15700d2f0211576ba3506eevboxsync/******************** BLOB TYPES ********************/
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef [unique] FLAGGED_BYTE_BLOB *UP_FLAGGED_BYTE_BLOB;
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef [unique] FLAGGED_WORD_BLOB *UP_FLAGGED_WORD_BLOB;
af062818b47340eef15700d2f0211576ba3506eevboxsync/******************** GDI TYPES ********************/
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef union _userCLIPFORMAT switch(long fContext) u {
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef [wire_marshal(wireCLIPFORMAT)] WORD CLIPFORMAT;
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef union _userHGLOBAL switch(long fContext) u {
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef union _userHMETAFILE switch(long fContext) u {
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef union _userHMETAFILEPICT switch(long fContext) u {
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef [unique] userHMETAFILEPICT *wireHMETAFILEPICT;
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef union _userHENHMETAFILE switch(long fContext) u {
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef [unique] userHENHMETAFILE *wireHENHMETAFILE;
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef union _userHBITMAP switch(long fContext) u {
af062818b47340eef15700d2f0211576ba3506eevboxsync [size_is(palNumEntries)] PALETTEENTRY palPalEntry[];
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef union _userHPALETTE switch(long fContext) u {
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef union _RemotableHandle switch (long fContext) u
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#if 0") /* for IDL only (C/C++ defs are in windef.h) */
af062818b47340eef15700d2f0211576ba3506eevboxsync/******************** GUID TYPES ********************/
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#if 0") /* for IDL only (C/C++ defs are in guiddef.h) */
af062818b47340eef15700d2f0211576ba3506eevboxsync/******************** MISC TYPES ********************/
af062818b47340eef15700d2f0211576ba3506eevboxsync/******************** OLE Automation ********************/
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#ifdef _MSC_VER") /* for IDL and MSVC only */
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define DECIMAL_SETZERO(d) do{ memset(((char*)&(d)) + sizeof(USHORT), 0, sizeof(ULONG) * 3u + sizeof(USHORT)); }while (0)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define VARIANT_TRUE ((VARIANT_BOOL)0xFFFF)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define VARIANT_FALSE ((VARIANT_BOOL)0x0000)")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define CBPCLIPDATA(cb) ((cb).cbSize - sizeof((cb).ulClipFmt))")
af062818b47340eef15700d2f0211576ba3506eevboxsync/******************** VARTYPE ********************/
af062818b47340eef15700d2f0211576ba3506eevboxsync} /* interface IWinTypes */