TryEnterCriticalSection method

int TryEnterCriticalSection(
  1. Pointer<PRTL_CRITICAL_SECTION> lpCriticalSection
)

Implementation

int TryEnterCriticalSection(
  ffi.Pointer<PRTL_CRITICAL_SECTION> lpCriticalSection,
) {
  return (_TryEnterCriticalSection ??= _dylib.lookupFunction<
      _c_TryEnterCriticalSection,
      _dart_TryEnterCriticalSection>('TryEnterCriticalSection'))(
    lpCriticalSection,
  );
}