Skip to content

Commit

Permalink
Remove unnecessary unsafe keywords
Browse files Browse the repository at this point in the history
Remove unnecessary unsafe keywords
  • Loading branch information
Gaoyifei1011 committed Dec 6, 2024
1 parent fe78617 commit 789a572
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion WindowsTools/WindowsAPI/PInvoke/Gdi32/BP_PAINTPARAMS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace WindowsTools.WindowsAPI.PInvoke.Gdi32
/// <summary>
/// 定义 BeginBufferedPaint 的绘制操作参数。
/// </summary>
public unsafe struct BP_PAINTPARAMS
public struct BP_PAINTPARAMS
{
/// <summary>
/// 此结构的大小(以字节为单位)。
Expand Down
2 changes: 1 addition & 1 deletion WindowsTools/WindowsAPI/PInvoke/Uxtheme/UxthemeLibrary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static class UxthemeLibrary
/// 在调用 BeginBufferedPaint 之前,应用程序应在调用线程上调用 BufferedPaintInit,并在线程终止之前调用 BufferedPaintUnInit。 调用 BufferedPaintInit 失败可能会导致性能下降,因为每个缓冲的绘制操作的内部数据都会被初始化和销毁。
/// </returns>
[DllImport(Uxtheme, CharSet = CharSet.Unicode, EntryPoint = "BeginBufferedPaint", PreserveSig = true, SetLastError = false)]
public static extern unsafe IntPtr BeginBufferedPaint(IntPtr hdcTarget, ref RECT prcTarget, BP_BUFFERFORMAT dwFormat, ref BP_PAINTPARAMS pPaintParams, out IntPtr phdc);
public static extern IntPtr BeginBufferedPaint(IntPtr hdcTarget, ref RECT prcTarget, BP_BUFFERFORMAT dwFormat, ref BP_PAINTPARAMS pPaintParams, out IntPtr phdc);

/// <summary>
/// 初始化当前线程的缓冲绘制。
Expand Down
2 changes: 1 addition & 1 deletion WindowsToolsPackage/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Identity
Name="Gaoyifei1011.WindowsTools"
Publisher="CN=高怡飞"
Version="3.3.1204.0" />
Version="3.3.1206.0" />

<Properties>
<DisplayName>ms-resource:PackageDisplayName</DisplayName>
Expand Down

0 comments on commit 789a572

Please sign in to comment.