Share via


NdisAllocateMemoryWithTag

This function allocates resident system-space memory.

NDIS_STATUS NdisAllocateMemoryWithTag(
  PVOID* VirtualAddress,
  UINT Length,
  ULONG Tag
);

Parameters

  • VirtualAddress
    [out] Points to a caller-supplied variable in which this function returns the base virtual address of the allocated memory or NULL if sufficient memory is currently unavailable.
  • Length
    [in] Specifies the size in bytes to be allocated.
  • Tag
    Unused in Windows CE.

Return Values

The following table shows the return values for NdisAllocateMemoryWithTag.

Value Description
NDIS_STATUS_SUCCESS The caller can use the allocated memory range starting at the value returned at VirtualAddress.
NDIS_STATUS_FAILURE An attempt to allocate the requested memory failed. This return does not necessarily mean that a subsequent call will fail.

Remarks

A call to NdisAllocateMemoryWithTag is equivalent to calling NdisAllocateMemory.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Ndis.h.

See Also

NdisAllocateMemory | NdisFreeMemory | NdisMSetAttributes | NdisMSetAttributesEx

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.