Reference

LocalAlloc(3w)

NAME

LocalAlloc (KERNEL32.@)

SYNOPSIS

HLOCAL LocalAlloc
(
UINT flags,
SIZE_T size
)

PARAMS

flags [In] Allocation attributes.

[In] Number of bytes to allocate.

DESCRIPTION

Allocate a local memory object.

RETURNS

Handle: Success

NULL: Failure.

NOTES

Windows memory management does not provide a separate local heap and global heap.

IMPLEMENTATION

Declared in "winbase.h".

Implemented in "dlls/kernel32/heap.c".

Debug channel "heap".

History