Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

MFHeapAlloc function

Allocates a block of memory.

Syntax


void* MFHeapAlloc(
  _In_  size_t nSize,
  _In_  ULONG dwFlags,
  _In_  char *pszFile,
  _In_  int line,
  _In_  EAllocationType eat
);

Parameters

nSize [in]

Number of bytes to allocate.

dwFlags [in]

Zero or more flags. For a list of valid flags, see HeapAlloc in the Windows SDK documentation.

pszFile [in]

Reserved. Set to NULL.

line [in]

Reserved. Set to zero.

eat [in]

Reserved. Set to eAllocationTypeIgnore.

Return value

If the function succeeds, it returns a pointer to the allocated memory block. If the function fails, it returns NULL.

Remarks

In the current version of Media Foundation, this function is equivalent to calling the HeapAlloc function and specifying the heap of the calling process.

To free the allocated memory, call MFHeapFree.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Mfapi.h

Library

Mfplat.lib

DLL

Mfplat.dll

See also

Media Foundation Functions

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.