WSDAllocateLinkedMemory function (wsdutil.h)

Allocates a linked memory block.

Syntax

void * WSDAllocateLinkedMemory(
  void   *pParent,
  size_t cbSize
);

Parameters

pParent

Pointer to the parent memory block.

cbSize

Size of the memory block to be allocated.

Return value

Pointer to the newly allocated memory block.

Remarks

The memory block allocated by WSDAllocateLinkedMemory is linked to a parent memory block and is freed when the parent memory block is freed.

If pParent is NULL the allocated memory block must be explicitly freed by calling WSDFreeLinkedMemory.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wsdutil.h (include Wsdapi.h)
Library Wsdapi.lib
DLL Wsdapi.dll