InitializeCriticalSectionAndSpinCount method

int InitializeCriticalSectionAndSpinCount(
  1. Pointer<PRTL_CRITICAL_SECTION> lpCriticalSection,
  2. int dwSpinCount
)

Implementation

int InitializeCriticalSectionAndSpinCount(
  ffi.Pointer<PRTL_CRITICAL_SECTION> lpCriticalSection,
  int dwSpinCount,
) {
  return (_InitializeCriticalSectionAndSpinCount ??= _dylib.lookupFunction<
          _c_InitializeCriticalSectionAndSpinCount,
          _dart_InitializeCriticalSectionAndSpinCount>(
      'InitializeCriticalSectionAndSpinCount'))(
    lpCriticalSection,
    dwSpinCount,
  );
}