Exemple #1
0
 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);
 }
Exemple #2
0
 NtStatus RtlLeaveCriticalSection(ref RtlCriticalSection crit)
 {
     return(NtStatus.Success);
 }
Exemple #3
0
 NtStatus RtlEnterCriticalSection(ref RtlCriticalSection crit)
 {
     return(NtStatus.Success);
 }