OleInitialize function Null safety ole32

int OleInitialize(
  1. Pointer<NativeType> pvReserved

Initializes the COM library on the current apartment, and identifies the concurrency model as single-thread apartment (STA). Applications must initialize the COM library before they can call COM library functions other than CoGetMalloc and memory allocation functions.

HRESULT OleInitialize(
  LPVOID pvReserved


int OleInitialize(Pointer pvReserved) {
  final _OleInitialize = _ole32.lookupFunction<
      Int32 Function(Pointer pvReserved),
      int Function(Pointer pvReserved)>('OleInitialize');
  return _OleInitialize(pvReserved);