CreateSemaphoreExW method

Pointer<Void> CreateSemaphoreExW(
  1. Pointer<LPSECURITY_ATTRIBUTES> lpSemaphoreAttributes,
  2. int lInitialCount,
  3. int lMaximumCount,
  4. Pointer<Uint16> lpName,
  5. int dwFlags,
  6. int dwDesiredAccess,
)

Implementation

ffi.Pointer<ffi.Void> CreateSemaphoreExW(
  ffi.Pointer<LPSECURITY_ATTRIBUTES> lpSemaphoreAttributes,
  int lInitialCount,
  int lMaximumCount,
  ffi.Pointer<ffi.Uint16> lpName,
  int dwFlags,
  int dwDesiredAccess,
) {
  return (_CreateSemaphoreExW ??=
      _dylib.lookupFunction<_c_CreateSemaphoreExW, _dart_CreateSemaphoreExW>(
          'CreateSemaphoreExW'))(
    lpSemaphoreAttributes,
    lInitialCount,
    lMaximumCount,
    lpName,
    dwFlags,
    dwDesiredAccess,
  );
}