src/Demo/Classes/NativeMethods.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System.Runtime.InteropServices;
using System;
namespace XRails_LoginUI.Demo.Classes
{
internal static class NativeMethods
{
#region DWM Functions
/// <summary>
/// Extends the window frame into the client area.
/// </summary>
///
/// <param name="hWnd">
/// The handle to the window in which the frame will be extended into
/// the client area.
/// </param>
///
/// <param name="pMarInset">
/// A pointer to a <see cref="MARGINS"/> structure that describes the margins to use
/// when extending the frame into the client area.
/// </param>
[DllImport("dwmapi.dll")]
internal static extern int DwmExtendFrameIntoClientArea(IntPtr hWnd, ref MARGINS pMarInset);
/// <summary>
/// Obtains a value that indicates whether Desktop Window Manager (DWM)
/// composition is enabled.
/// </summary>
///
/// <param name="pfEnabled">
/// A pointer to a value that, when this function returns successfully,
/// receives TRUE if DWM composition is enabled; otherwise, FALSE.
/// </param>
[DllImport("dwmapi.dll")]
internal static extern int DwmIsCompositionEnabled(out bool pfEnabled);
/// <summary>
/// Sets the value of non-client rendering attributes for a window.
/// </summary>
///
/// <param name="hwnd">
/// The handle to the window that will receive the attributes.
/// </param>
///
/// <param name="dwAttribute">
/// A single <see cref="DWMWINDOWATTRIBUTE"/> flag to apply to the window.
/// </param>
///
/// <param name="pvAttribute ">
/// A pointer to the value of the attribute specified in the
/// <paramref name="dwAttribute"/> parameter.
/// </param>
///
/// <param name="cbAttribute">
/// The size, in bytes, of the value type pointed to by the
/// <paramref name="pvAttribute"/> parameter.
/// </param>
[DllImport("dwmapi.dll")]
internal static extern int DwmSetWindowAttribute(IntPtr hwnd, DWMWINDOWATTRIBUTE dwAttribute, ref int pvAttribute, int cbAttribute);
后面还有 57 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。