19#define NONAMELESSUNION
47 return IWinInetInfo_RemoteQueryOption_Proxy(
This, dwOption,
pBuffer, pcbBuf);
54 return IWinInetInfo_QueryOption(
This, dwOption,
pBuffer, pcbBuf);
96 if((stgmed->tymed == TYMED_ISTREAM && stgmed->u.pstm) || stgmed->pUnkForRelease) {
102 switch(stgmed->tymed) {
108 MSHCTX_LOCAL,
NULL, MSHLFLAGS_NORMAL);
111 FIXME(
"unsupported tymed %u\n", stgmed->tymed);
117 MSHCTX_LOCAL,
NULL, MSHLFLAGS_NORMAL);
129 IStream_Seek(
stream,
zero, STREAM_SEEK_CUR, &off);
131 IStream_Seek(
stream,
zero, STREAM_SEEK_SET, &off);
179 switch(stgmed->tymed) {
187 FIXME(
"unsupported tymed %u\n", stgmed->tymed);
215 bindinfo->dwOptionsFlags =
rem_bindinfo->dwOptionsFlags;
218 bindinfo->pUnk =
NULL;
229 if(bindinfo->stgmedData.tymed != TYMED_NULL)
230 WARN(
"stgmed data (tymed %u) will be lost!\n", bindinfo->stgmedData.tymed);
242 rem_bindinfo->dwOptionsFlags = bindinfo->dwOptionsFlags;
270 BINDINFO bindinfo = {
sizeof(bindinfo)};
280 hres = IBindStatusCallbackEx_GetBindInfoEx(
This, grfBINDF, &bindinfo, grfBINDF2,
pdwReserved);
291 TRACE(
"(%p)->(%p %p)\n",
This, grfBINDF, bindinfo);
303 BINDINFO bindinfo = {
sizeof(bindinfo)};
309 hres = IBindStatusCallback_GetBindInfo(
This, grfBINDF, &bindinfo);
316 FORMATETC *pformatetc, STGMEDIUM *pstgmed)
318 RemFORMATETC rem_formatetc;
322 TRACE(
"(%p)->(%x %u %p %p)\n",
This, grfBSCF,
dwSize, pformatetc, pstgmed);
328 rem_formatetc.cfFormat = pformatetc->cfFormat;
329 rem_formatetc.ptd = 0;
330 rem_formatetc.dwAspect = pformatetc->dwAspect;
331 rem_formatetc.lindex = pformatetc->lindex;
332 rem_formatetc.tymed = pformatetc->tymed;
342 RemFORMATETC *pformatetc, RemSTGMEDIUM *pstgmed)
344 STGMEDIUM stgmed = { TYMED_NULL };
348 TRACE(
"(%p)->(%x %u %p %p)\n",
This, grfBSCF,
dwSize, pformatetc, pstgmed);
354 formatetc.cfFormat = pformatetc->cfFormat;
355 formatetc.ptd =
NULL;
356 formatetc.dwAspect = pformatetc->dwAspect;
357 formatetc.lindex = pformatetc->lindex;
358 formatetc.tymed = pformatetc->tymed;
360 hres = IBindStatusCallback_OnDataAvailable(
This, grfBSCF,
dwSize, &formatetc, &stgmed);
static BOOL heap_free(void *mem)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
HRESULT WINAPI CreateStreamOnHGlobal(HGLOBAL hGlobal, BOOL fDeleteOnRelease, LPSTREAM *ppstm)
HRESULT WINAPI CoUnmarshalInterface(IStream *pStream, REFIID riid, LPVOID *ppv)
HRESULT WINAPI CoMarshalInterface(IStream *pStream, REFIID riid, IUnknown *pUnk, DWORD dwDestContext, void *pvDestContext, DWORD mshlFlags)
void WINAPI ReleaseStgMedium(STGMEDIUM *pmedium)
static void proxy_marshal_bindinfo(BINDINFO *bindinfo, RemBINDINFO *rem_bindinfo)
HRESULT CALLBACK IBindHost_MonikerBindToStorage_Proxy(IBindHost *This, IMoniker *moniker, IBindCtx *bc, IBindStatusCallback *bsc, REFIID riid, void **obj)
static void stub_unmarshal_bindinfo(RemBINDINFO *rem_bindinfo, BINDINFO *bindinfo)
HRESULT CALLBACK IWinInetHttpInfo_QueryInfo_Proxy(IWinInetHttpInfo *This, DWORD dwOption, LPVOID pBuffer, DWORD *pcbBuf, DWORD *pdwFlags, DWORD *pdwReserved)
HRESULT CALLBACK IBindStatusCallbackEx_GetBindInfoEx_Proxy(IBindStatusCallbackEx *This, DWORD *grfBINDF, BINDINFO *bindinfo, DWORD *grfBINDF2, DWORD *pdwReserved)
HRESULT CALLBACK IBinding_GetBindResult_Proxy(IBinding *This, CLSID *pclsidProtocol, DWORD *pdwResult, LPOLESTR *pszResult, DWORD *pdwReserved)
HRESULT __RPC_STUB IBindStatusCallbackEx_GetBindInfoEx_Stub(IBindStatusCallbackEx *This, DWORD *grfBINDF, RemBINDINFO *rem_bindinfo, RemSTGMEDIUM *rem_stgmed, DWORD *grfBINDF2, DWORD *pdwReserved)
HRESULT __RPC_STUB IBindHost_MonikerBindToObject_Stub(IBindHost *This, IMoniker *moniker, IBindCtx *bc, IBindStatusCallback *bsc, REFIID riid, IUnknown **obj)
static void stub_marshal_bindinfo(BINDINFO *bindinfo, RemBINDINFO *rem_bindinfo)
static HRESULT marshal_stgmed(STGMEDIUM *stgmed, RemSTGMEDIUM **ret)
HRESULT CALLBACK IBindHost_MonikerBindToObject_Proxy(IBindHost *This, IMoniker *moniker, IBindCtx *bc, IBindStatusCallback *bsc, REFIID riid, void **obj)
HRESULT CALLBACK IBindStatusCallback_OnDataAvailable_Proxy(IBindStatusCallback *This, DWORD grfBSCF, DWORD dwSize, FORMATETC *pformatetc, STGMEDIUM *pstgmed)
HRESULT __RPC_STUB IBindStatusCallback_GetBindInfo_Stub(IBindStatusCallback *This, DWORD *grfBINDF, RemBINDINFO *rem_bindinfo, RemSTGMEDIUM *rem_stgmed)
HRESULT __RPC_STUB IBindHost_MonikerBindToStorage_Stub(IBindHost *This, IMoniker *moniker, IBindCtx *bc, IBindStatusCallback *bsc, REFIID riid, IUnknown **obj)
HRESULT CALLBACK IWinInetInfo_QueryOption_Proxy(IWinInetInfo *This, DWORD dwOption, LPVOID pBuffer, DWORD *pcbBuf)
HRESULT __RPC_STUB IBinding_GetBindResult_Stub(IBinding *This, CLSID *pclsidProtocol, DWORD *pdwResult, LPOLESTR *pszResult, DWORD dwReserved)
HRESULT __RPC_STUB IBindStatusCallback_OnDataAvailable_Stub(IBindStatusCallback *This, DWORD grfBSCF, DWORD dwSize, RemFORMATETC *pformatetc, RemSTGMEDIUM *pstgmed)
HRESULT CALLBACK IBindStatusCallback_GetBindInfo_Proxy(IBindStatusCallback *This, DWORD *grfBINDF, BINDINFO *bindinfo)
HRESULT __RPC_STUB IWinInetHttpInfo_QueryInfo_Stub(IWinInetHttpInfo *This, DWORD dwOption, BYTE *pBuffer, DWORD *pcbBuf, DWORD *pdwFlags, DWORD *pdwReserved)
static HRESULT unmarshal_stgmed(RemSTGMEDIUM *rem_stgmed, STGMEDIUM *stgmed)
static void proxy_unmarshal_bindinfo(RemBINDINFO *rem_bindinfo, BINDINFO *bindinfo)
HRESULT __RPC_STUB IWinInetInfo_QueryOption_Stub(IWinInetInfo *This, DWORD dwOption, BYTE *pBuffer, DWORD *pcbBuf)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
static BINDINFO rem_bindinfo
static STGMEDIUM rem_stgmed
static IBindStatusCallbackEx bsc
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED _In_opt_ LPTRANSMIT_FILE_BUFFERS _In_ DWORD dwReserved
_In_ UINT _In_ DWORD _Out_ DWORD * pdwResult
#define FIELD_OFFSET(t, f)
_Reserved_ DWORD * pdwReserved