CoTaskMemRealloc function Null safety ole32

Pointer<NativeType> CoTaskMemRealloc(
  1. Pointer<NativeType> pv,
  2. int cb
)

Changes the size of a previously allocated block of task memory.

LPVOID CoTaskMemRealloc(
  LPVOID pv,
  SIZE_T cb
);

Implementation

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