diff --git a/src/modules/FileLocksmith/FileLocksmithLibInterop/interop.cpp b/src/modules/FileLocksmith/FileLocksmithLibInterop/interop.cpp index 39683489977..cc0fce4a792 100644 --- a/src/modules/FileLocksmith/FileLocksmithLibInterop/interop.cpp +++ b/src/modules/FileLocksmith/FileLocksmithLibInterop/interop.cpp @@ -151,7 +151,7 @@ namespace FileLocksmith::Interop if (!stream) { - return false; + return false; } stream.close(); @@ -178,7 +178,7 @@ namespace FileLocksmith::Interop return false; } - /* Adapted from "https://learn.microsoft.com/en-us/windows/win32/secauthz/enabling-and-disabling-privileges-in-c--" */ + /* Adapted from "https://learn.microsoft.com/windows/win32/secauthz/enabling-and-disabling-privileges-in-c--" */ static System::Boolean SetDebugPrivilege() { HANDLE hToken; diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/UWPApplication.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/UWPApplication.cs index 737cc1559d4..7543e2af107 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/UWPApplication.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/UWPApplication.cs @@ -589,10 +589,10 @@ private bool SetHighContrastIcon(string path, string colorscheme) internal void LogoPathFromUri(string uri, Theme theme) { - // all https://msdn.microsoft.com/windows/uwp/controls-and-patterns/tiles-and-notifications-app-assets - // windows 10 https://msdn.microsoft.com/en-us/library/windows/apps/dn934817.aspx - // windows 8.1 https://msdn.microsoft.com/en-us/library/windows/apps/hh965372.aspx#target_size - // windows 8 https://msdn.microsoft.com/en-us/library/windows/apps/br211475.aspx + // all https://learn.microsoft.com/windows/uwp/controls-and-patterns/tiles-and-notifications-app-assets + // windows 10 https://msdn.microsoft.com/library/windows/apps/dn934817.aspx + // windows 8.1 https://msdn.microsoft.com/library/windows/apps/hh965372.aspx#target_size + // windows 8 https://msdn.microsoft.com/library/windows/apps/br211475.aspx string path; bool isLogoUriSet; diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/Win32Program.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/Win32Program.cs index 3faa318a1fd..9f22fd03820 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/Win32Program.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Programs/Win32Program.cs @@ -821,7 +821,7 @@ private static IEnumerable DesktopProgramPaths(IList suffixes) private static IEnumerable RegistryAppProgramPaths(IList suffixes) { - // https://msdn.microsoft.com/en-us/library/windows/desktop/ee872121 + // https://msdn.microsoft.com/library/windows/desktop/ee872121 const string appPaths = @"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths"; var paths = new List(); using (var root = Registry.LocalMachine.OpenSubKey(appPaths)) @@ -954,7 +954,7 @@ private static bool TryGetIcoPathForRunCommandProgram(Win32Program program, out return false; } - // https://msdn.microsoft.com/en-us/library/windows/desktop/ee872121 + // https://msdn.microsoft.com/library/windows/desktop/ee872121 try { var redirectionPath = ReparsePoint.GetTarget(program.FullPath); diff --git a/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.System/Components/ResultHelper.cs b/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.System/Components/ResultHelper.cs index 047cc94c3c2..3886cf7effc 100644 --- a/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.System/Components/ResultHelper.cs +++ b/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.System/Components/ResultHelper.cs @@ -113,7 +113,7 @@ private static void EmptyRecycleBinTask(bool settingEmptyRBSuccesMsg) { executingEmptyRecycleBinTask = true; - // https://learn.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shemptyrecyclebina/ + // https://learn.microsoft.com/windows/win32/api/shellapi/nf-shellapi-shemptyrecyclebina/ // http://www.pinvoke.net/default.aspx/shell32/SHEmptyRecycleBin.html/ // If the recycle bin is already empty, it will return -2147418113 (0x8000FFFF (E_UNEXPECTED)) // If the user canceled the deletion task it will return 2147943623 (0x800704C7 (E_CANCELLED - The operation was canceled by the user.)) @@ -128,7 +128,7 @@ private static void EmptyRecycleBinTask(bool settingEmptyRBSuccesMsg) var errorDesc = Win32Helpers.MessageFromHResult((int)result); var name = "Plugin: " + Resources.Microsoft_plugin_sys_plugin_name; var message = $"{Resources.Microsoft_plugin_sys_RecycleBin_ErrorMsg} {errorDesc}"; - Log.Error(message + " - Please refer to https://msdn.microsoft.com/en-us/library/windows/desktop/aa378137 for more information.", typeof(Commands)); + Log.Error(message + " - Please refer to https://msdn.microsoft.com/library/windows/desktop/aa378137 for more information.", typeof(Commands)); _ = MessageBox.Show(message, name, MessageBoxButton.OK, MessageBoxImage.Error); } diff --git a/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.TimeDate/Components/TimeAndDateHelper.cs b/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.TimeDate/Components/TimeAndDateHelper.cs index cba39189ed5..86e8ca2274a 100644 --- a/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.TimeDate/Components/TimeAndDateHelper.cs +++ b/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.TimeDate/Components/TimeAndDateHelper.cs @@ -53,7 +53,7 @@ internal static string GetStringFormat(FormatStringType targetFormat, bool timeL } /// - /// Returns the number week in the month (Used code from 'David Morton' from ) + /// Returns the number week in the month (Used code from 'David Morton' from ) /// /// date /// Number of week in the month diff --git a/src/modules/launcher/PowerLauncher/Helper/DragDataObject.cs b/src/modules/launcher/PowerLauncher/Helper/DragDataObject.cs index b0584bb23d8..2e818cda628 100644 --- a/src/modules/launcher/PowerLauncher/Helper/DragDataObject.cs +++ b/src/modules/launcher/PowerLauncher/Helper/DragDataObject.cs @@ -58,7 +58,7 @@ private class DragDropHelper { } - // https://docs.microsoft.com/en-us/windows/win32/api/shobjidl_core/ns-shobjidl_core-shdragimage + // https://learn.microsoft.com/windows/win32/api/shobjidl_core/ns-shobjidl_core-shdragimage [StructLayout(LayoutKind.Sequential)] private struct ShDragImage { @@ -68,7 +68,7 @@ private struct ShDragImage public int CrColorKey; } - // https://docs.microsoft.com/en-us/windows/win32/api/shobjidl_core/nn-shobjidl_core-idragsourcehelper + // https://learn.microsoft.com/windows/win32/api/shobjidl_core/nn-shobjidl_core-idragsourcehelper [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [Guid("DE5BF786-477A-11D2-839D-00C04FD918D0")] private interface IDragSourceHelper diff --git a/src/modules/launcher/Wox.Infrastructure/Exception/ExceptionFormatter.cs b/src/modules/launcher/Wox.Infrastructure/Exception/ExceptionFormatter.cs index 9baf7a6d948..2695f43f0b6 100644 --- a/src/modules/launcher/Wox.Infrastructure/Exception/ExceptionFormatter.cs +++ b/src/modules/launcher/Wox.Infrastructure/Exception/ExceptionFormatter.cs @@ -116,7 +116,7 @@ private static string CreateExceptionReport(System.Exception ex) return sb.ToString(); } - // http://msdn.microsoft.com/en-us/library/hh925568%28v=vs.110%29.aspx + // http://msdn.microsoft.com/library/hh925568%28v=vs.110%29.aspx private static List GetFrameworkVersionFromRegistry() { try diff --git a/src/modules/launcher/Wox.Plugin/Common/Win32/NativeMethods.cs b/src/modules/launcher/Wox.Plugin/Common/Win32/NativeMethods.cs index f54ec9b5aff..432d7ea5f53 100644 --- a/src/modules/launcher/Wox.Plugin/Common/Win32/NativeMethods.cs +++ b/src/modules/launcher/Wox.Plugin/Common/Win32/NativeMethods.cs @@ -223,7 +223,7 @@ public enum HRESULT : uint /// /// The operation was canceled by the user. (Error source 7 means Win32.) /// - /// + /// /// E_CANCELLED = 0x800704C7, } diff --git a/src/modules/pasteplain/PastePlainModuleInterface/dllmain.cpp b/src/modules/pasteplain/PastePlainModuleInterface/dllmain.cpp index 4641c512ac5..ec4f44c1c4f 100644 --- a/src/modules/pasteplain/PastePlainModuleInterface/dllmain.cpp +++ b/src/modules/pasteplain/PastePlainModuleInterface/dllmain.cpp @@ -152,7 +152,7 @@ class PastePlain : public PowertoyModuleIface } } - void try_inject_modifier_key_up(std::vector &inputs, short modifier) + void try_inject_modifier_key_up(std::vector& inputs, short modifier) { // Most significant bit is set if key is down if ((GetAsyncKeyState(static_cast(modifier)) & 0x8000) != 0) @@ -204,9 +204,9 @@ class PastePlain : public PowertoyModuleIface return; } - wchar_t* pch_data= static_cast(GlobalLock(h_clipboard_data)); + wchar_t* pch_data = static_cast(GlobalLock(h_clipboard_data)); - if (NULL == pch_data ) + if (NULL == pch_data) { DWORD errorCode = GetLastError(); auto errorMessage = get_last_error_message(errorCode); @@ -228,7 +228,7 @@ class PastePlain : public PowertoyModuleIface UINT no_clipboard_history_or_roaming_format = 0; // Get the format identifier for not adding the data to the clipboard history or roaming. - // https://learn.microsoft.com/en-us/windows/win32/dataxchg/clipboard-formats#cloud-clipboard-and-clipboard-history-formats + // https://learn.microsoft.com/windows/win32/dataxchg/clipboard-formats#cloud-clipboard-and-clipboard-history-formats if (0 == (no_clipboard_history_or_roaming_format = RegisterClipboardFormat(L"ExcludeClipboardContentFromMonitorProcessing"))) { DWORD errorCode = GetLastError(); @@ -295,7 +295,7 @@ class PastePlain : public PowertoyModuleIface } { // Clear kb state and send Ctrl+V begin - + // we can assume that the last pressed key is... // (1) not a modifier key and // (2) marked as handled (so it never gets a key down input event). @@ -464,8 +464,6 @@ class PastePlain : public PowertoyModuleIface Trace::EnablePastePlain(false); } - - virtual bool on_hotkey(size_t /*hotkeyId*/) override { if (m_enabled) diff --git a/src/modules/previewpane/common/Utilities/SvgPreviewHandlerHelper.cs b/src/modules/previewpane/common/Utilities/SvgPreviewHandlerHelper.cs index fe71982fac6..1c4f7b66de0 100644 --- a/src/modules/previewpane/common/Utilities/SvgPreviewHandlerHelper.cs +++ b/src/modules/previewpane/common/Utilities/SvgPreviewHandlerHelper.cs @@ -17,7 +17,7 @@ public static class SvgPreviewHandlerHelper { /// /// Dictionary of elements in lower case that are blocked from Svg for preview pane. - /// Reference for list of Svg Elements: https://developer.mozilla.org/en-US/docs/Web/SVG/Element. + /// Reference for list of Svg Elements: https://developer.mozilla.org/docs/Web/SVG/Element. /// private static Dictionary blockedElementsName = new Dictionary { diff --git a/src/settings-ui/Settings.UI/OOBE/Views/OobeWhatsNew.xaml.cs b/src/settings-ui/Settings.UI/OOBE/Views/OobeWhatsNew.xaml.cs index cd069e9c60b..258b8625cd7 100644 --- a/src/settings-ui/Settings.UI/OOBE/Views/OobeWhatsNew.xaml.cs +++ b/src/settings-ui/Settings.UI/OOBE/Views/OobeWhatsNew.xaml.cs @@ -73,7 +73,7 @@ private static async Task GetReleaseNotesMarkdown() using var getReleaseInfoClient = new HttpClient(proxyClientHandler); // GitHub APIs require sending an user agent - // https://docs.github.com/en/rest/overview/resources-in-the-rest-api#user-agent-required + // https://docs.github.com/rest/overview/resources-in-the-rest-api#user-agent-required getReleaseInfoClient.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", "PowerToys"); releaseNotesJSON = await getReleaseInfoClient.GetStringAsync("https://api.github.com/repos/microsoft/PowerToys/releases"); IList releases = JsonSerializer.Deserialize>(releaseNotesJSON); diff --git a/src/tests/win-app-driver/README.md b/src/tests/win-app-driver/README.md index 0e76f9c7174..dfa5d882f57 100644 --- a/src/tests/win-app-driver/README.md +++ b/src/tests/win-app-driver/README.md @@ -56,7 +56,7 @@ If a remote test machine is being used, the IP of the test machine must be used ### Extra tools and information -For tests creation you will need a tool that enables you select any UI element and view the element's accessibility data. For this purpose you could use [AccessibilityInsights](https://accessibilityinsights.io/docs/en/windows/overview) or [Inspect](https://learn.microsoft.com/windows/win32/winauto/inspect-objects?redirectedfrom=MSDN). +For tests creation you will need a tool that enables you select any UI element and view the element's accessibility data. For this purpose you could use [AccessibilityInsights](https://accessibilityinsights.io/docs/windows/overview) or [Inspect](https://learn.microsoft.com/windows/win32/winauto/inspect-objects?redirectedfrom=MSDN). * `inspect.exe` you can find installed at `C:\Program Files (x86)\Windows Kits\10\bin\\\inspect.exe` * `AccessibilityInsights` you can download [here](https://aka.ms/accessibilityinsights-windows/download)