CreateSemaphoreA method

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

Implementation

ffi.Pointer<ffi.Void> CreateSemaphoreA(
  ffi.Pointer<LPSECURITY_ATTRIBUTES> lpSemaphoreAttributes,
  int lInitialCount,
  int lMaximumCount,
  ffi.Pointer<ffi.Int8> lpName,
) {
  return (_CreateSemaphoreA ??=
      _dylib.lookupFunction<_c_CreateSemaphoreA, _dart_CreateSemaphoreA>(
          'CreateSemaphoreA'))(
    lpSemaphoreAttributes,
    lInitialCount,
    lMaximumCount,
    lpName,
  );
}