TryEnterCriticalSection (kernel32)
Last changed: anonymous

.
Summary

C# Signature:

[DllImport("kernel32.dll")]
static extern bool TryEnterCriticalSection(ref CRITICAL_SECTION
   lpCriticalSection);

User-Defined Types:

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct CRITICAL_SECTION
{
    IntPtr DebugInfo;
    long LockCount;
    long RecursionCount;
    IntPtr OwningThread;
    IntPtr LockSemaphore;
    ulong SpinCount;
}

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation