Creates an empty media sample.
HRESULT MFCreateSample(
IMFSample **ppIMFSample
)
ppIMFSample
Type: IMFSample **
[out]
Receives a pointer to the IMFSample interface of the media sample. The caller must release the interface.
Type: HRESULT
The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
| S_OK | The function succeeded. |
Refer to Media Foundation return codes.
Initially the sample does not contain any media buffers.
Header: Declared in mfapi.h.
Library: Use Mfplat.lib.