diff --git a/include/Makefile.in b/include/Makefile.in index f28cfab..881b92d 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -15,6 +15,7 @@ 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 0000000..e67f23d --- /dev/null +++ b/include/ctxtcall.idl @@ -0,0 +1,48 @@ +/* + * Copyright 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 "objidl.idl"; + +typedef struct tagComCallData +{ + DWORD dispid; + DWORD dwreserved; + void *userdata; +} ComCallData; + +typedef HRESULT (__stdcall *PFNCONTEXTCALL)(ComCallData *pparam); + +/***************************************************************************** + * IContextCallback interface + */ +[ + local, + object, + uuid(000001da-0000-0000-c000-000000000046), + pointer_default(unique) +] + +interface IContextCallback : IUnknown +{ + HRESULT ContextCallback( + [in] PFNCONTEXTCALL callback, + [in] ComCallData *pparam, + [in] REFIID riid, + [in] int method, + [in] IUnknown *punk); +}