public static GetForegroundWindow ( ) : |
||
return |
public void Dispose() { if (savedForegroundWindow != Utils.GetForegroundWindow()) { Utils.ForceForegroundWindow(savedForegroundWindow); } foregroundMutex.ReleaseMutex(); }
public ForegroundWindowGuard() { foregroundMutex.WaitOne(); savedForegroundWindow = Utils.GetForegroundWindow(); }