次の方法で共有


CBaseAllocator::Decommit (Compact 2013)

3/26/2014

Releases the memory for the specified buffers.

Syntax

HRESULT Decommit(void);

Parameters

None.

Return Value

Returns an HRESULT value.

Remarks

This member function implements the IMemAllocator::Decommit method. Any threads waiting in the IMemAllocator::GetBuffer method return with an error after this method is called.

The IMemAllocator::GetBuffer method fails if it is called before the IMemAllocator::Commit method or after this method.

Requirements

Header

dshow.h,
Streams.h

Library

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

See Also

Reference

CBaseAllocator Class
CBaseAllocator::Commit