Added raw ZuneDBApi decomp

This commit is contained in:
Yoshi Askharoun
2021-11-11 11:18:46 -06:00
parent c24e2bd702
commit d0fd93a913
1034 changed files with 70246 additions and 2 deletions
@@ -0,0 +1,20 @@
using System;
using System.Runtime.CompilerServices;
namespace Microsoft.Zune.Util
{
public class Windowing
{
public unsafe static void ForceSetForegroundWindow(IntPtr hwnd)
{
//IL_000a: Expected I4, but got I8
tagINPUT tagINPUT;
// IL initblk instruction
System.Runtime.CompilerServices.Unsafe.InitBlock(ref System.Runtime.CompilerServices.Unsafe.AddByteOffset(ref tagINPUT, 8), 0, 32);
*(int*)(&tagINPUT) = 1;
System.Runtime.CompilerServices.Unsafe.As<tagINPUT, short>(ref System.Runtime.CompilerServices.Unsafe.AddByteOffset(ref tagINPUT, 8)) = 0;
_003CModule_003E.SendInput(1u, &tagINPUT, 40);
_003CModule_003E.SetForegroundWindow((HWND__*)hwnd.ToPointer());
}
}
}