CreateSemaphoreW method

Pointer<Void> CreateSemaphoreW(
  1. Pointer<LPSECURITY_ATTRIBUTES> lpSemaphoreAttributes,
  2. int lInitialCount,
  3. int lMaximumCount,
  4. Pointer<Uint16> lpName,
)

Implementation

ffi.Pointer<ffi.Void> CreateSemaphoreW(
  ffi.Pointer<LPSECURITY_ATTRIBUTES> lpSemaphoreAttributes,
  int lInitialCount,
  int lMaximumCount,
  ffi.Pointer<ffi.Uint16> lpName,
) {
  return (_CreateSemaphoreW ??=
      _dylib.lookupFunction<_c_CreateSemaphoreW, _dart_CreateSemaphoreW>(
          'CreateSemaphoreW'))(
    lpSemaphoreAttributes,
    lInitialCount,
    lMaximumCount,
    lpName,
  );
}