36#define BINDCTX_FIRST_TABLE_SIZE 4
96 IBindCtx_AddRef(iface);
160 DWORD lastIndex=
This->bindCtxTableLastIndex;
167 if (lastIndex ==
This->bindCtxTableSize)
174 IUnknown_AddRef(punk);
177 This->bindCtxTable[lastIndex].pObj = punk;
178 This->bindCtxTable[lastIndex].pkeyObj =
NULL;
179 This->bindCtxTable[lastIndex].regType = 0;
180 lastIndex= ++
This->bindCtxTableLastIndex;
205 IUnknown_Release(
This->bindCtxTable[
index].pObj);
210 This->bindCtxTable[
j]=
This->bindCtxTable[
j+1];
212 This->bindCtxTableLastIndex--;
229 for(
i=0;
i<
This->bindCtxTableLastIndex;
i++)
231 if(
This->bindCtxTable[
i].pObj)
232 IUnknown_Release(
This->bindCtxTable[
i].pObj);
236 This->bindCtxTableLastIndex = 0;
254 if (pbindopts->cbStruct >
sizeof(BIND_OPTS2))
256 WARN(
"invalid size\n");
259 memcpy(&
This->bindOption2, pbindopts, pbindopts->cbStruct);
277 cbStruct = pbindopts->cbStruct;
278 if (cbStruct >
sizeof(BIND_OPTS2))
279 cbStruct =
sizeof(BIND_OPTS2);
281 memcpy(pbindopts, &
This->bindOption2, cbStruct);
282 pbindopts->cbStruct = cbStruct;
319 TRACE(
"Overwriting existing key\n");
321 IUnknown_Release(
This->bindCtxTable[
index].pObj);
323 IUnknown_AddRef(punk);
327 if (
This->bindCtxTableLastIndex ==
This->bindCtxTableSize)
334 This->bindCtxTable[
This->bindCtxTableLastIndex].pObj = punk;
335 This->bindCtxTable[
This->bindCtxTableLastIndex].regType = 1;
339 This->bindCtxTable[
This->bindCtxTableLastIndex].pkeyObj=
NULL;
344 This->bindCtxTable[
This->bindCtxTableLastIndex].pkeyObj=
347 if (
This->bindCtxTable[
This->bindCtxTableLastIndex].pkeyObj==
NULL)
352 This->bindCtxTableLastIndex++;
354 IUnknown_AddRef(punk);
377 IUnknown_AddRef(
This->bindCtxTable[
index].pObj);
401 IUnknown_Release(
This->bindCtxTable[
index].pObj);
406 This->bindCtxTable[
j]=
This->bindCtxTable[
j+1];
408 This->bindCtxTableLastIndex--;
419 TRACE(
"(%p,%p)\n",iface,pszkey);
442 for(
i=0; ( (
i<
This->bindCtxTableLastIndex) && (!found));
i++)
444 if(
This->bindCtxTable[
i].regType==1){
446 if ( ( (
This->bindCtxTable[
i].pkeyObj==
NULL) && (pszkey==
NULL) ) ||
447 ( (
This->bindCtxTable[
i].pkeyObj!=
NULL) &&
458 for(
i=0; ( (
i<
This->bindCtxTableLastIndex) && (!found));
i++)
459 if(
This->bindCtxTable[
i].pObj==punk)
467 TRACE(
"key not found\n");
473 if (!
This->bindCtxTableSize)
481 This->bindCtxTableSize *= 2;
487 if (!
This->bindCtxTable)
524 This->bindOption2.cbStruct =
sizeof(BIND_OPTS2);
525 This->bindOption2.grfFlags = 0;
527 This->bindOption2.dwTickCountDeadline = 0;
529 This->bindOption2.dwTrackFlags = 0;
530 This->bindOption2.dwClassContext = CLSCTX_SERVER;
532 This->bindOption2.pServerInfo = 0;
535 This->bindCtxTableSize=0;
536 This->bindCtxTableLastIndex=0;
612 res = IMoniker_BindToObject(pmk, pbc,
NULL,
riid, ppvResult);
613 IBindCtx_Release(pbc);
#define InterlockedIncrement
#define InterlockedDecrement
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define HeapFree(x, y, z)
LCID WINAPI GetThreadLocale(void)
HRESULT WINAPI GetRunningObjectTable(DWORD reserved, LPRUNNINGOBJECTTABLE *pprot)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
#define memcpy(s1, s2, n)
interface IMoniker * LPMONIKER
interface IBindCtx * LPBC
static HRESULT BindCtxImpl_Construct(BindCtxImpl *This)
static HRESULT WINAPI BindCtxImpl_GetObjectParam(IBindCtx *iface, LPOLESTR pszkey, IUnknown **punk)
static HRESULT BindCtxImpl_GetObjectIndex(BindCtxImpl *, IUnknown *, LPOLESTR, DWORD *)
static ULONG WINAPI BindCtxImpl_Release(IBindCtx *iface)
static HRESULT WINAPI BindCtxImpl_RevokeObjectParam(IBindCtx *iface, LPOLESTR ppenum)
#define BINDCTX_FIRST_TABLE_SIZE
static HRESULT WINAPI BindCtxImpl_EnumObjectParam(IBindCtx *iface, IEnumString **pszkey)
static HRESULT BindCtxImpl_ExpandTable(BindCtxImpl *)
static HRESULT WINAPI BindCtxImpl_GetBindOptions(IBindCtx *iface, BIND_OPTS *pbindopts)
static HRESULT WINAPI BindCtxImpl_RegisterObjectParam(IBindCtx *iface, LPOLESTR pszkey, IUnknown *punk)
static ULONG WINAPI BindCtxImpl_AddRef(IBindCtx *iface)
static HRESULT WINAPI BindCtxImpl_ReleaseBoundObjects(IBindCtx *)
static HRESULT WINAPI BindCtxImpl_SetBindOptions(IBindCtx *iface, BIND_OPTS *pbindopts)
static BindCtxImpl * impl_from_IBindCtx(IBindCtx *iface)
static HRESULT WINAPI BindCtxImpl_RevokeObjectBound(IBindCtx *iface, IUnknown *punk)
HRESULT WINAPI BindMoniker(LPMONIKER pmk, DWORD grfOpt, REFIID riid, LPVOID *ppvResult)
static HRESULT BindCtxImpl_Destroy(BindCtxImpl *This)
static HRESULT WINAPI BindCtxImpl_RegisterObjectBound(IBindCtx *iface, IUnknown *punk)
static HRESULT WINAPI BindCtxImpl_GetRunningObjectTable(IBindCtx *iface, IRunningObjectTable **pprot)
HRESULT WINAPI CreateBindCtx(DWORD reserved, LPBC *ppbc)
static HRESULT WINAPI BindCtxImpl_QueryInterface(IBindCtx *iface, REFIID riid, void **ppvObject)
static const IBindCtxVtbl VT_BindCtxImpl
#define IsEqualIID(riid1, riid2)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
DWORD bindCtxTableLastIndex
BindCtxObject * bindCtxTable
#define CONTAINING_RECORD(address, type, field)
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject