Skip to content

Commit af8e8ff

Browse files
committed
5.4.0-preview.1 Optimize calls to the Windows API
1 parent e0e2091 commit af8e8ff

10 files changed

Lines changed: 97 additions & 362 deletions

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
44
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6+
## [5.4.0] - 2026-01-14
7+
### Changed
8+
- Optimize calls to the Windows API by using [C#/Win32 Interop Projection](https://github.com/microsoft/CsWin32).
9+
610
## [5.3.0] - 2025-11-21
711
### Changed
812
- Re-enabled DPI awareness. Launchbar now looks sharp and natural on high-DPI displays.

Source/Directory.Packages.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
</PropertyGroup>
66
<ItemGroup>
77
<PackageVersion Include="fm.Extensions.Wpf" Version="7.0.0" />
8-
<PackageVersion Include="JetBrains.Annotations" Version="2025.2.2" />
8+
<PackageVersion Include="JetBrains.Annotations.Sources" Version="2025.2.4" />
99
<PackageVersion Include="Markdig.Wpf" Version="0.5.0.1" />
10+
<PackageVersion Include="Microsoft.Windows.CsWin32" Version="0.3.264" />
1011
<PackageVersion Include="WpfScreenHelper" Version="2.1.1" />
1112
</ItemGroup>
1213
</Project>

Source/Launchbar/Launchbar.csproj

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<TargetFramework>net10.0-windows</TargetFramework>
44
<UseWPF>true</UseWPF>
55
<OutputType>WinExe</OutputType>
6+
<PlatformTarget>x64</PlatformTarget>
67

78
<IsPublishable>true</IsPublishable>
89
<!-- https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#generateassemblyinfo -->
@@ -13,10 +14,23 @@
1314
<Description>RunIT to the next level.</Description>
1415
</PropertyGroup>
1516

17+
<PropertyGroup>
18+
<!-- https://microsoft.github.io/CsWin32/docs/getting-started.html#enable-cswin32runasbuildtask -->
19+
<CsWin32RunAsBuildTask>true</CsWin32RunAsBuildTask>
20+
<DisableRuntimeMarshalling>true</DisableRuntimeMarshalling>
21+
</PropertyGroup>
22+
1623
<ItemGroup>
1724
<PackageReference Include="fm.Extensions.Wpf" />
18-
<PackageReference Include="JetBrains.Annotations" />
25+
<PackageReference Include="JetBrains.Annotations.Sources">
26+
<PrivateAssets>all</PrivateAssets>
27+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
28+
</PackageReference>
1929
<PackageReference Include="Markdig.Wpf" />
30+
<PackageReference Include="Microsoft.Windows.CsWin32">
31+
<PrivateAssets>all</PrivateAssets>
32+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
33+
</PackageReference>
2034
<PackageReference Include="WpfScreenHelper" />
2135
</ItemGroup>
2236

Source/Launchbar/NativeMethods.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
GetWindowLongPtrW
2+
SetWindowLongPtrW
3+
PickIconDlg
4+
ExtractIcon
5+
ExtractAssociatedIcon
6+
SendInput
7+
WINDOW_EX_STYLE

Source/Launchbar/Win32/ExtendedWindowStyles.cs

Lines changed: 0 additions & 40 deletions
This file was deleted.

Source/Launchbar/Win32/GWL.cs

Lines changed: 0 additions & 16 deletions
This file was deleted.

Source/Launchbar/Win32/LibraryImport.cs

Lines changed: 0 additions & 240 deletions
This file was deleted.

0 commit comments

Comments
 (0)