[DllImport("Kernel32.dll")][return: MarshalAs(UnmanagedType.I4)] public static extern int InterlockedDecrement( ref int lpAddend );
Microsoft documentation: Link
Last updated 1 year ago