diff --git a/.gitignore b/.gitignore index 531c2fce5e0..4b61b4da2d1 100644 --- a/.gitignore +++ b/.gitignore @@ -142,6 +142,7 @@ include/bits1_5.h include/comcat.h include/config.h include/control.h +include/ctxtcall.h include/d3d10.h include/ddstream.h include/dimm.h diff --git a/dlls/uuid/uuid.c b/dlls/uuid/uuid.c index ecac2659878..94f345efabd 100644 --- a/dlls/uuid/uuid.c +++ b/dlls/uuid/uuid.c @@ -41,6 +41,7 @@ DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0); #include "olectl.h" #include "ocidl.h" +#include "ctxtcall.h" #include "docobj.h" #include "exdisp.h" diff --git a/include/Makefile.in b/include/Makefile.in index 09d7b3cc92f..2a990c0a10d 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -18,6 +18,7 @@ PUBLIC_IDL_H_SRCS = \ bits1_5.idl \ comcat.idl \ control.idl \ + ctxtcall.idl \ d3d10.idl \ ddstream.idl \ dimm.idl \ diff --git a/include/ctxtcall.idl b/include/ctxtcall.idl new file mode 100644 index 00000000000..f07dc1bb79e --- /dev/null +++ b/include/ctxtcall.idl @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2008 Louis Lenders + * + * 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 "wtypes.idl"; +import "objidl.idl"; +import "unknwn.idl"; + +typedef struct tagComCallData +{ + DWORD dwDispid; + DWORD dwReserved; + void *pUserDefined; +} ComCallData; + +/*************************************************************************** + * IContextCallback + */ +[ + local, + object, + uuid(000001da-0000-0000-c000-000000000046), + pointer_default(unique) +] +interface IContextCallback : IUnknown +{ + typedef HRESULT (__stdcall *PFNCONTEXTCALL)(ComCallData *pParam); + + HRESULT ContextCallback( + [in] PFNCONTEXTCALL pCallback, + [in] ComCallData *pParam, + [in] REFIID riid, + [in] int iMethod, + [in] IUnknown *pUnk); +}