mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 12:18:50 +02:00
Dev/crutkas/fixing warnings (#5161)
* new lines & braces * Tabs /space auto fix Co-authored-by: Clint Rutkas <crutkas@microsoft.com>
This commit is contained in:
@@ -815,7 +815,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
|
||||
public static extern uint GetWindowThreadProcessId(IntPtr hWnd, out uint lpdwProcessId);
|
||||
|
||||
[DllImport("psapi.dll")]
|
||||
public static extern uint GetProcessImageFileName(IntPtr hProcess, [Out] StringBuilder lpImageFileName, [In] [MarshalAs(UnmanagedType.U4)] int nSize);
|
||||
public static extern uint GetProcessImageFileName(IntPtr hProcess, [Out] StringBuilder lpImageFileName, [In][MarshalAs(UnmanagedType.U4)] int nSize);
|
||||
|
||||
[DllImport("user32.dll", SetLastError = true)]
|
||||
public static extern IntPtr GetProp(IntPtr hWnd, string lpString);
|
||||
@@ -824,7 +824,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
|
||||
public static extern IntPtr OpenProcess(ProcessAccessFlags dwDesiredAccess, [MarshalAs(UnmanagedType.Bool)] bool bInheritHandle, int dwProcessId);
|
||||
|
||||
[DllImport("dwmapi.dll", EntryPoint = "#113", CallingConvention = CallingConvention.StdCall)]
|
||||
public static extern int DwmpActivateLivePreview([MarshalAs(UnmanagedType.Bool)]bool fActivate, IntPtr hWndExclude, IntPtr hWndInsertBefore, LivePreviewTrigger lpt, IntPtr prcFinalRect);
|
||||
public static extern int DwmpActivateLivePreview([MarshalAs(UnmanagedType.Bool)] bool fActivate, IntPtr hWndExclude, IntPtr hWndInsertBefore, LivePreviewTrigger lpt, IntPtr prcFinalRect);
|
||||
|
||||
[DllImport("dwmapi.dll", PreserveSig = false)]
|
||||
public static extern int DwmSetWindowAttribute(IntPtr hwnd, int attr, ref int attrValue, int attrSize);
|
||||
|
||||
@@ -91,7 +91,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
|
||||
Window newWindow = new Window(hwnd);
|
||||
|
||||
if (newWindow.IsWindow && newWindow.Visible && newWindow.IsOwner &&
|
||||
(!newWindow.IsToolWindow || newWindow.IsAppWindow ) && !newWindow.TaskListDeleted &&
|
||||
(!newWindow.IsToolWindow || newWindow.IsAppWindow) && !newWindow.TaskListDeleted &&
|
||||
newWindow.ClassName != "Windows.UI.Core.CoreWindow")
|
||||
{
|
||||
windows.Add(newWindow);
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
|
||||
/// Event handler for when the search text has been updated
|
||||
/// </summary>
|
||||
public async Task UpdateSearchText(string searchText)
|
||||
{
|
||||
{
|
||||
this.SearchText = searchText;
|
||||
await SyncOpenWindowsWithModelAsync();
|
||||
}
|
||||
|
||||
@@ -6,13 +6,13 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Microsoft.Plugin.WindowWalker.Components
|
||||
{
|
||||
class WindowResult:Window
|
||||
class WindowResult : Window
|
||||
{
|
||||
/// <summary>
|
||||
/// Number of letters in between constant for when
|
||||
/// the result hasn't been set yet
|
||||
/// </summary>
|
||||
public const int NoResult = -1;
|
||||
public const int NoResult = -1;
|
||||
|
||||
/// <summary>
|
||||
/// Properties that signify how many characters (including spaces)
|
||||
@@ -27,7 +27,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
|
||||
/// <summary>
|
||||
/// Constructor for WindowResult
|
||||
/// </summary>
|
||||
public WindowResult(Window window):base(window.Hwnd)
|
||||
public WindowResult(Window window) : base(window.Hwnd)
|
||||
{
|
||||
LettersInBetweenScore = WindowResult.NoResult;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user