|Microsoft DirectX 9.0|
CBaseAllocator( TCHAR *pName, LPUNKNOWN pUnk, HRESULT *phr, BOOL bEvent = TRUE, BOOL fEnableReleaseCallback = FALSE );
Pointer to a string containing the debug name of the allocator. For more information, see CBaseObject.
Pointer to the owner of this object. If the object is aggregated, pass a pointer to the aggregating object's IUnknown interface. Otherwise, set this parameter to NULL.
Pointer to an HRESULT value. Set the value to S_OK before creating the object. If the constructor fails, the value is set to an error code.
Boolean value indicating whether to create a semaphore. If TRUE, the allocator creates a semaphore (CBaseAllocator::m_hSem), which is signaled whenever a sample becomes available. Set the value to FALSE if you are implementing a derived class that does not require a semaphore.
Boolean value indicating whether the release callback mechanism is enabled. Set the value to TRUE if you want to supply a callback interface, which is called when buffers are released. Specify the callback by calling the CBaseAllocator::SetNotify method.