4 * Copyright 1999 Corel Corporation
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 #include "wine/debug.h"
29 WINE_DEFAULT_DEBUG_CHANNEL(urlmon);
31 /* native urlmon.dll uses this key, too */
32 static WCHAR BSCBHolder[] = { '_','B','S','C','B','_','H','o','l','d','e','r','_',0 };
35 /***********************************************************************
36 * CreateAsyncBindCtxEx (URLMON.@)
41 HRESULT WINAPI CreateAsyncBindCtxEx(IBindCtx *ibind, DWORD options,
42 IBindStatusCallback *callback, IEnumFORMATETC *format, IBindCtx** pbind,
45 FIXME("stub, returns failure\n");
50 /***********************************************************************
51 * RegisterBindStatusCallback (URLMON.@)
53 * Register a bind status callback
57 * E_INVALIDARG invalid argument(s)
58 * E_OUTOFMEMORY out of memory
61 HRESULT WINAPI RegisterBindStatusCallback(
63 IBindStatusCallback *pbsc,
64 IBindStatusCallback **ppbscPrevious,
67 IBindStatusCallback *prev;
69 TRACE("(%p,%p,%p,%lu)\n", pbc, pbsc, ppbscPrevious, dwReserved);
71 if (pbc == NULL || pbsc == NULL)
74 if (SUCCEEDED(IBindCtx_GetObjectParam(pbc, BSCBHolder, (IUnknown **)&prev)))
76 IBindCtx_RevokeObjectParam(pbc, BSCBHolder);
78 *ppbscPrevious = prev;
80 IBindStatusCallback_Release(prev);
83 return IBindCtx_RegisterObjectParam(pbc, BSCBHolder, (IUnknown *)pbsc);
86 /***********************************************************************
87 * RevokeBindStatusCallback (URLMON.@)
89 * Unregister a bind status callback
93 * E_INVALIDARG invalid argument(s)
94 * E_FAIL pbsc wasn't registered with pbc
97 HRESULT WINAPI RevokeBindStatusCallback(
99 IBindStatusCallback *pbsc)
101 IBindStatusCallback *callback;
104 TRACE("(%p,%p)\n", pbc, pbsc);
106 if (pbc == NULL || pbsc == NULL)
109 if (SUCCEEDED(IBindCtx_GetObjectParam(pbc, BSCBHolder, (IUnknown **)&callback)))
111 if (callback == pbsc)
113 IBindCtx_RevokeObjectParam(pbc, BSCBHolder);
116 IBindStatusCallback_Release(pbsc);
122 /***********************************************************************
126 HRESULT WINAPI Extract(DWORD Param1, DWORD Param2)
128 FIXME("%lx %lx\n", Param1, Param2);