Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CMediaSample.SetPointer method

The SetPointer method sets the pointer to the memory buffer.

Syntax


HRESULT SetPointer(
   BYTE *ptr,
   LONG cBytes
);

Parameters

ptr

Pointer to a memory buffer allocated by the caller, of size cBytes.

cBytes

Length of the buffer, in bytes.

Return value

Returns S_OK.

Remarks

This method enables the allocator to set a new pointer for the sample.

This method is not available through the IMediaSample interface. The object that creates the sample can access this method (through CMediaSample), but other objects cannot.

Requirements

Header

Amfilter.h (include Streams.h)

Library

Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

CMediaSample Class

 

 

Community Additions

ADD
Show:
© 2015 Microsoft