CreateMutexW method

Pointer<Void> CreateMutexW(
  1. Pointer<LPSECURITY_ATTRIBUTES> lpMutexAttributes,
  2. int bInitialOwner,
  3. Pointer<Uint16> lpName
)

Implementation

ffi.Pointer<ffi.Void> CreateMutexW(
  ffi.Pointer<LPSECURITY_ATTRIBUTES> lpMutexAttributes,
  int bInitialOwner,
  ffi.Pointer<ffi.Uint16> lpName,
) {
  return (_CreateMutexW ??= _dylib
      .lookupFunction<_c_CreateMutexW, _dart_CreateMutexW>('CreateMutexW'))(
    lpMutexAttributes,
    bInitialOwner,
    lpName,
  );
}