CreateMutexExW method

Pointer<Void> CreateMutexExW(
  1. Pointer<LPSECURITY_ATTRIBUTES> lpMutexAttributes,
  2. Pointer<Uint16> lpName,
  3. int dwFlags,
  4. int dwDesiredAccess,
)

Implementation

ffi.Pointer<ffi.Void> CreateMutexExW(
  ffi.Pointer<LPSECURITY_ATTRIBUTES> lpMutexAttributes,
  ffi.Pointer<ffi.Uint16> lpName,
  int dwFlags,
  int dwDesiredAccess,
) {
  return (_CreateMutexExW ??=
      _dylib.lookupFunction<_c_CreateMutexExW, _dart_CreateMutexExW>(
          'CreateMutexExW'))(
    lpMutexAttributes,
    lpName,
    dwFlags,
    dwDesiredAccess,
  );
}