46 #include <sbWindowsUtils.h>
80 ULONG refCount = --mRefCount;
106 if (IsBadWritePtr(aInterface,
sizeof(
void*)))
113 if (InlineIsEqualGUID(aIID, IID_IUnknown))
114 *aInterface =
static_cast<IUnknown*
>(
this);
115 else if (InlineIsEqualGUID(aIID, IID_IClassFactory))
116 *aInterface = static_cast<IClassFactory*>(
this);
118 return E_NOINTERFACE;
121 (
static_cast<IUnknown*
>(*aInterface))->AddRef();
154 return CLASS_E_NOAGGREGATION;
157 if (IsBadWritePtr(aInstance,
sizeof(
void*)))
168 sbAutoIUnknown autoWindowsFormatter(windowsFormatter);
#define SB_WIN_ENSURE_SUCCESS(aHR, aRV)