CoInitializeEx function Null safety ole32

int CoInitializeEx(
  1. Pointer<NativeType> pvReserved,
  2. int dwCoInit
)

Initializes the COM library for use by the calling thread, sets the thread's concurrency model, and creates a new apartment for the thread if one is required.

HRESULT CoInitializeEx(
  LPVOID pvReserved,
  DWORD  dwCoInit
);

Implementation

int CoInitializeEx(Pointer pvReserved, int dwCoInit) {
  final _CoInitializeEx = _ole32.lookupFunction<
      Int32 Function(Pointer pvReserved, Uint32 dwCoInit),
      int Function(Pointer pvReserved, int dwCoInit)>('CoInitializeEx');
  return _CoInitializeEx(pvReserved, dwCoInit);
}