Skip to content

Instantly share code, notes, and snippets.

View varVanse's full-sized avatar

Vanse varVanse

View GitHub Profile
@varVanse
varVanse / index.html
Created October 11, 2024 18:49
rexVirtualJoyStick
<footer><div id=version></div></footer>
using System;
using System.Runtime.InteropServices;
// ReSharper disable SuspiciousTypeConversion.Global
// ReSharper disable InconsistentNaming
namespace VideoPlayerController
{
/// <summary>
/// Controls audio using the Windows CoreAudio API
/// from: http://stackoverflow.com/questions/14306048/controling-volume-mixer
@varVanse
varVanse / ProcessUtils.cs
Created November 17, 2022 17:51 — forked from sparksbat/ProcessUtils.cs
C# Get Foreground Process
using System;
using System.Runtime.InteropServices;
using System.Diagnostics;
namespace FGWindow
{
class ProcessUtils
{
[DllImport("user32.dll")]
private static extern IntPtr GetForegroundWindow();