af062818b47340eef15700d2f0211576ba3506eevboxsync/*
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright 2007 Robert Shearman for CodeWeavers
af062818b47340eef15700d2f0211576ba3506eevboxsync *
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 *
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 *
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
af062818b47340eef15700d2f0211576ba3506eevboxsync */
af062818b47340eef15700d2f0211576ba3506eevboxsync
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync/*
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * other than GPL or LGPL is available it will apply instead, Oracle 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.
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync */
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncimport "wtypes.idl";
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IROT_PROTSEQ {'n','c','a','l','r','p','c',0}")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define IROT_ENDPOINT {'i','r','o','t',0}")
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct tagMonikerComparisonData {
af062818b47340eef15700d2f0211576ba3506eevboxsync ULONG ulCntData;
af062818b47340eef15700d2f0211576ba3506eevboxsync [size_is(ulCntData)] BYTE abData[];
af062818b47340eef15700d2f0211576ba3506eevboxsync} MonikerComparisonData;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync[
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(7a98c254-6808-11cf-b73b-00aa00b677a8),
af062818b47340eef15700d2f0211576ba3506eevboxsync version(0.2),
af062818b47340eef15700d2f0211576ba3506eevboxsync strict_context_handle
af062818b47340eef15700d2f0211576ba3506eevboxsync]
af062818b47340eef15700d2f0211576ba3506eevboxsyncinterface Irot
af062818b47340eef15700d2f0211576ba3506eevboxsync{
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef struct tagInterfaceData
af062818b47340eef15700d2f0211576ba3506eevboxsync {
af062818b47340eef15700d2f0211576ba3506eevboxsync ULONG ulCntData;
af062818b47340eef15700d2f0211576ba3506eevboxsync [size_is(ulCntData)] BYTE abData[];
af062818b47340eef15700d2f0211576ba3506eevboxsync } InterfaceData;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [unique] InterfaceData *PInterfaceData;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef struct tagInterfaceList
af062818b47340eef15700d2f0211576ba3506eevboxsync {
af062818b47340eef15700d2f0211576ba3506eevboxsync ULONG size;
af062818b47340eef15700d2f0211576ba3506eevboxsync [size_is(size)] PInterfaceData interfaces[];
af062818b47340eef15700d2f0211576ba3506eevboxsync } InterfaceList;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [unique] InterfaceList *PInterfaceList;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef DWORD IrotCookie;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef handle_t IrotHandle;
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [context_handle] void *IrotContextHandle;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT IrotRegister(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] IrotHandle h,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] const MonikerComparisonData *moniker_data,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] const InterfaceData *object,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] const InterfaceData *moniker,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] const FILETIME *time,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] DWORD grfFlags,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] IrotCookie *cookie,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] IrotContextHandle *ctxt_handle);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT IrotRevoke(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] IrotHandle h,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] IrotCookie cookie,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in, out] IrotContextHandle *ctxt_handle,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] PInterfaceData *object,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] PInterfaceData *moniker);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT IrotIsRunning(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] IrotHandle h,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] const MonikerComparisonData *moniker_data);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT IrotGetObject(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] IrotHandle h,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] const MonikerComparisonData *moniker_data,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] PInterfaceData *obj,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] IrotCookie *cookie);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT IrotNoteChangeTime(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] IrotHandle h,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] IrotCookie cookie,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] const FILETIME *time);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT IrotGetTimeOfLastChange(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] IrotHandle h,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] const MonikerComparisonData *moniker_data,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] FILETIME *time);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT IrotEnumRunning(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] IrotHandle h,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] PInterfaceList *list);
af062818b47340eef15700d2f0211576ba3506eevboxsync}