// // Copyright (c) Microsoft Corporation. All rights reserved. // // // Use of this source code is subject to the terms of the Microsoft end-user // license agreement (EULA) under which you licensed this SOFTWARE PRODUCT. // If you did not accept the terms of the EULA, you are not authorized to use // this source code. For a copy of the EULA, please see the LICENSE.RTF on your // install media. // //+------------------------------------------------------------------------- // // File: unknwn.idl // // Contents: IUnknown interface definition // // //-------------------------------------------------------------------------- cpp_quote("//") cpp_quote("//") #ifndef DO_NO_IMPORTS import "wtypes.idl"; #endif [ local, object, uuid(00000000-0000-0000-C000-000000000046), pointer_default(unique) ] interface IUnknown { typedef [unique] IUnknown *LPUNKNOWN; cpp_quote("//////////////////////////////////////////////////////////////////") cpp_quote("// IID_IUnknown and all other system IIDs are provided in UUID.LIB") cpp_quote("// Link that library in with your proxies, clients and servers") cpp_quote("//////////////////////////////////////////////////////////////////") HRESULT QueryInterface( [in] REFIID riid, [out, iid_is(riid)] void **ppvObject); ULONG AddRef(); ULONG Release(); } [ object, uuid(00000001-0000-0000-C000-000000000046), pointer_default(unique) ] interface IClassFactory : IUnknown { typedef [unique] IClassFactory * LPCLASSFACTORY; [local] HRESULT CreateInstance( [in, unique] IUnknown * pUnkOuter, [in] REFIID riid, [out, iid_is(riid)] void **ppvObject); [call_as(CreateInstance)] HRESULT RemoteCreateInstance( [in] REFIID riid, [out, iid_is(riid)] IUnknown ** ppvObject); [local] HRESULT LockServer( [in] BOOL fLock); [call_as(LockServer)] HRESULT __stdcall RemoteLockServer( [in] BOOL fLock); }