CoTaskMemAlloc function Null safety ole32

Pointer<NativeType> CoTaskMemAlloc(
  1. int cb
)

Allocates a block of task memory in the same way that IMalloc::Alloc does.

LPVOID CoTaskMemAlloc(
  SIZE_T cb
);

Implementation

Pointer CoTaskMemAlloc(int cb) {
  final _CoTaskMemAlloc = _ole32.lookupFunction<Pointer Function(IntPtr cb),
      Pointer Function(int cb)>('CoTaskMemAlloc');
  return _CoTaskMemAlloc(cb);
}