GlobalAlloc function Null safety kernel32

int GlobalAlloc(
  1. int uFlags,
  2. int dwBytes
)

Allocates the specified number of bytes from the heap.

HGLOBAL GlobalAlloc(
  UINT   uFlags,
  SIZE_T dwBytes
);

Implementation

int GlobalAlloc(int uFlags, int dwBytes) => _GlobalAlloc(uFlags, dwBytes);