1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
|
/*
* Copyright (C) 2017 Alistair Leslie-Hughes
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
import "unknwn.idl";
import "objidl.idl";
import "oaidl.idl";
#ifndef __WIDL__
#define threading(model)
#endif
typedef DWORD_PTR INSTID;
typedef DWORD_PTR RESID;
typedef DWORD RESOURCERATING;
typedef DWORD_PTR RESTYPID;
typedef LPOLESTR SRESID;
typedef long TIMEINSECS;
typedef DWORD_PTR TRANSID;
[
uuid(2a005c00-a5de-11cf-9e66-00aa00a3f464),
version(1.0)
]
library COMSVCSLib
{
importlib("stdole2.tlb");
[
object,
hidden,
local,
uuid(bf6a1850-2b45-11cf-be10-00aa00a2fa25),
pointer_default(unique)
]
interface IHolder : IUnknown
{
HRESULT AllocResource([in] const RESTYPID typeid, [out] RESID *resid);
HRESULT FreeResource([in] const RESID _resid);
HRESULT TrackResource([in] const RESID resid);
HRESULT TrackResourceS([in] const SRESID resid);
HRESULT UntrackResource([in] const RESID resid, [in] const BOOL value);
HRESULT UntrackResourceS([in] const SRESID resid, [in] const BOOL value);
HRESULT Close(void);
HRESULT RequestDestroyResource([in] const RESID resid);
};
[
object,
hidden,
local,
uuid(208b3651-2b48-11cf-be10-00aa00a2fa25),
pointer_default(unique)
]
interface IDispenserDriver : IUnknown
{
HRESULT CreateResource([in] const RESTYPID restypid, [out] RESID *resid, [out] TIMEINSECS *destroy);
HRESULT RateResource([in] const RESTYPID restypid, [in] const RESID resid,
[in] const BOOL requires, [out] RESOURCERATING *rating);
HRESULT EnlistResource([in] const RESID resid, [in] const TRANSID transid);
HRESULT ResetResource([in] const RESID resid);
HRESULT DestroyResource([in] const RESID resid);
HRESULT DestroyResourceS([in] const SRESID resid);
};
[
object,
hidden,
local,
uuid(5cb31e10-2b5f-11cf-be10-00aa00a2fa25),
pointer_default(unique)
]
interface IDispenserManager : IUnknown
{
HRESULT RegisterDispenser([in] IDispenserDriver *driver, [in] LPCOLESTR name, [out] IHolder **dispenser);
HRESULT GetContext([out] INSTID *id, [out] TRANSID *transid);
};
[
uuid(ecabb0c0-7f19-11d2-978e-0000f8757e2a),
hidden,
threading(both)
]
coclass DispenserManager
{
[default] interface IDispenserManager;
};
[
object,
hidden,
local,
uuid(2a005c01-a5de-11cf-9e66-00aa00a3f464),
pointer_default(unique)
]
interface ISharedProperty : IDispatch
{
[id(DISPID_VALUE), propget] HRESULT Value([out, retval] VARIANT *value);
[id(DISPID_VALUE), propput] HRESULT Value([in] VARIANT value);
}
[
object,
hidden,
local,
uuid(2a005c07-a5de-11cf-9e66-00aa00a3f464),
pointer_default(unique)
]
interface ISharedPropertyGroup : IDispatch
{
[id(0x00000001)]
HRESULT CreatePropertyByPosition([in] int index, [out] VARIANT_BOOL *exists, [out, retval] ISharedProperty **property);
[id(0x00000002), propget]
HRESULT PropertyByPosition([in] int index, [out, retval] ISharedProperty **property);
[id(0x00000003)]
HRESULT CreateProperty([in] BSTR name, [out] VARIANT_BOOL *exists, [out, retval] ISharedProperty **property);
[id(0x00000004), propget]
HRESULT Property([in] BSTR name, [out, retval] ISharedProperty **property);
}
[
object,
hidden,
local,
uuid(2a005c0d-a5de-11cf-9e66-00aa00a3f464),
pointer_default(unique)
]
interface ISharedPropertyGroupManager : IDispatch
{
[id(0x00000001)]
HRESULT CreatePropertyGroup([in] BSTR name, [in, out] LONG *isolation, [in, out] LONG *release,
[out] VARIANT_BOOL *exists, [out, retval] ISharedPropertyGroup **group);
[id(0x00000002), propget]
HRESULT Group([in] BSTR name, [out, retval] ISharedPropertyGroup **group);
[id(DISPID_NEWENUM), propget]
HRESULT _NewEnum([out, retval] IUnknown **retval);
}
[
uuid(2a005c11-a5de-11cf-9e66-00aa00a3f464),
progid("MTxSpm.SharedPropertyGroupManager.1"),
vi_progid("MTxSpm.SharedPropertyGroupManager"),
threading(both)
]
coclass SharedPropertyGroupManager
{
[default] interface ISharedPropertyGroupManager;
}
}
|