NativeMethods.cs (258B)
1 using System; 2 using System.Runtime.InteropServices; 3 4 namespace LanTool.Classes 5 { 6 static class NativeMethods 7 { 8 // Import the SetForeground API to activate it 9 [DllImport("User32.dll")] 10 public static extern IntPtr SetForegroundWindow(int hWnd); 11 } 12 }