Skip to content

Commit 8946c43

Browse files
committed
Use GuidRVAGen for Guid*
1 parent 415c6ba commit 8946c43

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

src/Files.App.CsWin32/Files.App.CsWin32.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
77
<Nullable>enable</Nullable>
88
<IsTrimmable>true</IsTrimmable>
9+
<LangVersion>13.0</LangVersion>
910
<Configurations>Debug;Release;Stable;Preview;Store</Configurations>
1011
<Platforms>x86;x64;arm64</Platforms>
1112
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
@@ -16,6 +17,7 @@
1617

1718
<ItemGroup>
1819
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.106" PrivateAssets="all" />
20+
<PackageReference Include="Dongle.GuidRVAGen" Version="1.0.5" />
1921
</ItemGroup>
2022

2123
</Project>

src/Files.App.CsWin32/Guids.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright (c) 2024 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
4+
using System.Runtime.InteropServices;
5+
using Windows.Win32.Foundation;
6+
7+
namespace Windows.Win32
8+
{
9+
public static unsafe partial class PInvoke
10+
{
11+
[GuidRVAGen.Guid("B92B56A9-8B55-4E14-9A89-0199BBB6F93B")]
12+
public static partial Guid* IID_DesktopWallpaper { get; }
13+
14+
[GuidRVAGen.Guid("B92B56A9-8B55-4E14-9A89-0199BBB6F93B")]
15+
public static partial Guid* CLSID_DesktopWallpaper { get; }
16+
}
17+
}

0 commit comments

Comments
 (0)