NtStatus RtlInitializeCriticalSection(ref RtlCriticalSection crit) { if (crit.Unknown[0] == 0xDEADBEEF) { return(NtStatus.Success); } crit = new RtlCriticalSection { Unknown = new[] { 0xDEADBEEFU, 0U, 0U, 0U }, LockCount = -1, RecursionCount = 0, OwningThread = Box.ThreadManager.Current.Id }; return(NtStatus.Success); }
NtStatus RtlLeaveCriticalSection(ref RtlCriticalSection crit) { return(NtStatus.Success); }
NtStatus RtlEnterCriticalSection(ref RtlCriticalSection crit) { return(NtStatus.Success); }