2008-05-07 18:22:19 +04:00
/**
DCOM interfaces
http://www.ietf.org/internet-drafts/draft-brown-dcom-v1-spec-04.txt
*/
2008-09-16 04:27:33 +04:00
import "misc.idl";
2008-05-07 18:22:19 +04:00
[
uuid("18f70770-8e64-11cf-9af1-0020af6e72f4"),
pointer_default(unique),
version(0.0)
] interface dcom_Unknown
{
void UseProtSeq();
void GetCustomProtseqInfo();
void UpdateResolverBindings();
}
[
object,
uuid("00000000-0000-0000-C000-000000000046"),
pointer_default(unique),
2008-05-07 19:18:18 +04:00
helpstring("Base interface for all COM interfaces")
2008-05-07 18:22:19 +04:00
]
interface IUnknown
{
/*****************/
/* Function 0x00 */
2015-07-21 21:39:15 +03:00
/* Returns the interface with the specified IID
2008-05-07 18:22:19 +04:00
if implemented by this object */
2015-07-21 21:49:22 +03:00
[local] WERROR QueryInterface(
[in,unique] GUID *iid,
[out,iid_is(riid)] IUnknown **data
);
2008-05-07 18:22:19 +04:00
/*****************/
/* Function 0x01 */
[local] uint32 AddRef();
/*****************/
/* Function 0x02 */
[local] uint32 Release();
}
[
object,
uuid("00000001-0000-0000-C000-000000000046"),
2008-05-07 19:18:18 +04:00
pointer_default(unique)
2008-05-07 18:22:19 +04:00
] interface IClassFactory : IUnknown
{
2015-07-21 21:49:22 +03:00
[local] WERROR CreateInstance(
[in,unique] MInterfacePointer *pUnknown,
[in,unique] GUID *iid,
2017-07-26 19:16:43 +03:00
[out, iid_is(riid),unique] MInterfacePointer **ppv
2015-07-21 21:49:22 +03:00
);
2008-05-07 18:22:19 +04:00
[call_as(CreateInstance)] WERROR RemoteCreateInstance();
/* Set lock to TRUE when you want to do a lock
and set it to FALSE when you want to unlock */
2015-07-21 21:49:22 +03:00
[local] WERROR LockServer(
[in] uint8 lock
);
2008-05-07 18:22:19 +04:00
[call_as(LockServer)] WERROR RemoteLockServer();
}
/* The remote version of IUnknown. This interface exists on every */
/* OXID (whether an OXID represents either a thread or a process is */
/* implementation specific). It is used by clients to query for new */
/* interfaces, get additional references (for marshaling), and release */
/* outstanding references. */
/* This interface is passed along during OXID resolution. */
/* */
[
uuid("00000131-0000-0000-C000-000000000046"),
object,
pointer_default(unique),
2008-05-07 19:18:18 +04:00
helpstring("Remote version of IUnknown")
2008-05-07 18:22:19 +04:00
]
interface IRemUnknown : IUnknown
{
2015-07-21 21:39:15 +03:00
typedef [public] struct
2008-05-07 18:22:19 +04:00
{
WERROR hResult; /* result of call */
STDOBJREF std; /* data for returned interface */
}
REMQIRESULT;
[call_as(QueryInterface)] WERROR RemQueryInterface (
[in,unique] GUID *ripid, /* interface to QI on */
[in] uint32 cRefs, /* count of AddRefs requested */
[in] uint16 cIids, /* count of IIDs that follow */
[in, unique, size_is(cIids)] GUID *iids, /* IIDs to QI for */
[out, size_is(cIids), unique] MInterfacePointer *ip
);
2015-07-21 21:39:15 +03:00
typedef struct
2008-05-07 18:22:19 +04:00
{
GUID ipid; /* ipid to AddRef/Release */
uint32 cPublicRefs;
uint32 cPrivateRefs;
} REMINTERFACEREF;
[call_as(AddRef)] WERROR RemAddRef (
2015-07-21 21:49:22 +03:00
[in] uint16 cInterfaceRefs,
[in, size_is(cInterfaceRefs)] REMINTERFACEREF InterfaceRefs[],
[out, size_is(cInterfaceRefs), unique] WERROR *pResults
2008-05-07 18:22:19 +04:00
);
[call_as(Release)] WERROR RemRelease (
2015-07-21 21:49:22 +03:00
[in] uint16 cInterfaceRefs,
[in, size_is(cInterfaceRefs)] REMINTERFACEREF InterfaceRefs[]
2008-05-07 18:22:19 +04:00
);
}
[
uuid("00000140-0000-0000-c000-000000000046"),
object
] interface IClassActivator : IUnknown
{
2015-07-21 21:49:22 +03:00
void GetClassObject(
[in] GUID clsid,
[in] uint32 context,
[in] uint32 locale,
[in] GUID iid,
[out, iid_is(iid)] MInterfacePointer *data
);
2008-05-07 18:22:19 +04:00
}
[
uuid("00000136-0000-0000-c000-000000000046"),
pointer_default(unique),
object
] interface ISCMLocalActivator : IClassActivator
{
WERROR ISCMLocalActivator_CreateInstance( );
}
[
pointer_default(unique),
uuid("c6f3ee72-ce7e-11d1-b71e-00c04fc3111a")
2015-07-21 21:39:15 +03:00
] interface IMachineLocalActivator
2008-05-07 18:22:19 +04:00
{
WERROR IMachineLocalActivator_foo();
}
[
pointer_default(unique),
uuid("e60c73e6-88f9-11cf-9af1-0020af6e72f4")
] interface ILocalObjectExporter
{
WERROR ILocalObjectExporter_Foo();
}
2015-07-21 21:39:15 +03:00
/* Looks like this is the equivalent of .NET's
2008-05-07 18:22:19 +04:00
System.Activator class */
[
uuid("000001a0-0000-0000-c000-000000000046"),
object
]
interface ISystemActivator : IClassActivator
{
2015-07-21 21:49:22 +03:00
WERROR ISystemActivatorRemoteCreateInstance(
[in] hyper unknown1, /* OXID ? */
[in] MInterfacePointer iface1,
[in] hyper unknown2,
[out] uint32 *unknown3,
[out] MInterfacePointer *iface2
);
2008-05-07 18:22:19 +04:00
}
/* Derived from IRemUnknown, this interface supports Remote Query interface */
/* for objects that supply additional data beyond the STDOBJREF in their */
/* marshaled interface packets. */
[
object,
pointer_default(unique),
2008-05-07 19:18:18 +04:00
uuid("00000143-0000-0000-C000-000000000046")
2008-05-07 18:22:19 +04:00
]
interface IRemUnknown2 : IRemUnknown
{
[call_as(QueryInterface2)] WERROR RemQueryInterface2 (
2015-07-21 21:49:22 +03:00
[in, unique] GUID *ripid,
[in] uint16 cIids,
[in, size_is(cIids), unique] GUID *iids,
[out, size_is(cIids), unique] WERROR *phr,
[out, size_is(cIids), unique] MInterfacePointer *ppMIF
2008-05-07 18:22:19 +04:00
);
}
[
object,
pointer_default(unique),
2008-05-07 19:18:18 +04:00
uuid("00020400-0000-0000-C000-000000000046")
2008-05-07 18:22:19 +04:00
] interface IDispatch : IUnknown
{
/*****************/
/* Function 0x03 */
WERROR GetTypeInfoCount(
2015-07-21 21:49:22 +03:00
[out, unique] uint16 *pctinfo
);
2008-05-07 18:22:19 +04:00
typedef struct {
} REF_ITypeInfo;
/*****************/
/* Function 0x04 */
WERROR GetTypeInfo (
2015-07-21 21:49:22 +03:00
[in] uint16 iTInfo,
[in] uint32 lcid,
[out, unique] REF_ITypeInfo *ppTInfo
);
2008-05-07 18:22:19 +04:00
/*****************/
/* Function 0x05 */
WERROR GetIDsOfNames(
2015-07-21 21:49:22 +03:00
[in, unique] GUID *riid,
/*FIXME[in,size_is(cNames)] OLESTR *rgszNames[], */
[in] uint16 cNames,
[in] uint32 lcid,
[out,size_is(cNames), unique] uint32 *rgDispId
);
2008-05-07 18:22:19 +04:00
typedef struct {
uint16 vartype;
uint16 FIXME;
} VARIANT;
typedef struct {
uint16 FIXME;
} DISPPARAMS;
/* Exception ? */
typedef struct {
uint16 FIXME;
} EXCEPINFO;
/*****************/
/* Function 0x06 */
WERROR Invoke(
2015-07-21 21:49:22 +03:00
[in] uint32 dispIdMember,
[in, unique] GUID *riid,
[in] uint32 lcid,
[in] uint16 wFlags,
[out,in, unique] DISPPARAMS *pDispParams,
[out, unique] VARIANT *pVarResult,
[out, unique] EXCEPINFO *pExcepInfo,
[out, unique] uint16 *puArgErr
);
2008-05-07 18:22:19 +04:00
}
[
object,
local,
uuid("00000003-0000-0000-C000-000000000046")
] interface IMarshal : IUnknown
{
WERROR MarshalInterface();
WERROR UnMarshalInterface();
}
[
2015-09-28 20:08:58 +03:00
uuid("DA23F6DB-6F45-466C-9EED-0B65286F2D78"),
2008-05-07 18:22:19 +04:00
helpstring("ICoffeeMachine Interface"),
pointer_default(unique),
2008-05-07 19:18:18 +04:00
object
2008-05-07 18:22:19 +04:00
] interface ICoffeeMachine : IUnknown
{
WERROR MakeCoffee([in,string,charset(UTF16)] uint16 *flavor);
}
[
uuid("db7c21f8-fe33-4c11-aea5-ceb56f076fbb"),
helpstring("coffeemachine class")
] coclass coffeemachine
{
interface icoffeemachine;
}
[
object,
uuid("0000000C-0000-0000-C000-000000000046"),
2008-05-07 19:18:18 +04:00
helpstring("Stream")
2008-05-07 18:22:19 +04:00
]
interface IStream : IUnknown
{
WERROR Read(
2015-07-21 21:49:22 +03:00
[out, size_is(num_requested), length_is(*num_read)] uint8 pv[],
[in] uint32 num_requested,
[in, unique] uint32 *num_readx,
[out] uint32 *num_read
);
2008-05-07 18:22:19 +04:00
WERROR Write(
2015-07-21 21:49:22 +03:00
[in,size_is(num_requested),unique] uint8 *data,
[in] uint32 num_requested,
[out] uint32 *num_written
);
2008-05-07 18:22:19 +04:00
}
[
uuid("5e9ddec7-5767-11cf-beab-00aa006c3606"),
progid("Samba.Simple"),
helpstring("simple class"),
internal
2015-07-21 21:39:15 +03:00
] coclass simple
2008-05-07 18:22:19 +04:00
{
interface IStream;
}