CreateMutexExA method

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

Implementation

ffi.Pointer<ffi.Void> CreateMutexExA(
  ffi.Pointer<LPSECURITY_ATTRIBUTES> lpMutexAttributes,
  ffi.Pointer<ffi.Int8> lpName,
  int dwFlags,
  int dwDesiredAccess,
) {
  return (_CreateMutexExA ??=
      _dylib.lookupFunction<_c_CreateMutexExA, _dart_CreateMutexExA>(
          'CreateMutexExA'))(
    lpMutexAttributes,
    lpName,
    dwFlags,
    dwDesiredAccess,
  );
}