次の方法で共有


CBaseOutputPin::InitAllocator (Compact 2013)

3/26/2014

Creates a default memory allocator.

To provide your own allocator, or to provide no allocator, overrride this.

Syntax

virtual HRESULT InitAllocator(
  IMemAllocator** ppAlloc
);

Parameters

  • ppAlloc
    Returned memory allocator.

Return Value

Returns an HRESULT value.

Remarks

The allocator should be released after use.

This is typically handled in the CBaseOutputPin::BreakConnect member function.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CBaseOutputPin Class