mirror of
https://github.com/ZuneDev/ZuneShell.dll.git
synced 2026-07-27 13:11:51 -07:00
Added raw ZuneDBApi decomp
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user