#ifndef _NTRTL_H
NTSYSAPI
ULONG
NTAPI
RtlSetCriticalSectionSpinCount(
_Inout_ PRTL_CRITICAL_SECTION CriticalSection,
_In_ ULONG SpinCount
);
View code on GitHubSets the specified spin count for the provided critical section object.
SetCriticalSectionSpinCount maps directly to this function.