GifRecorder/Capture/Win32Stuff.cs
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Runtime.InteropServices;
namespace ScreenToGif.Capture
{
static class Win32Stuff
{
#region Variables
public const Int32 CURSOR_SHOWING = 0x00000001;
[StructLayout(LayoutKind.Sequential)]
public struct ICONINFO
{
public bool fIcon; // Specifies whether this structure defines an icon or a cursor. A value of TRUE specifies
public Int32 xHotspot; // Specifies the x-coordinate of a cursor's hot spot. If this structure defines an icon, the hot
public Int32 yHotspot; // Specifies the y-coordinate of the cursor's hot spot. If this structure defines an icon, the hot
public IntPtr hbmMask; // (HBITMAP) Specifies the icon bitmask bitmap. If this structure defines a black and white icon,
public IntPtr hbmColor; // (HBITMAP) Handle to the icon color bitmap. This member can be optional if this
}
[StructLayout(LayoutKind.Sequential)]
public struct POINT
{
public Int32 x;
public Int32 y;
}
[StructLayout(LayoutKind.Sequential)]
public struct CURSORINFO
{
/// <summary>
/// Specifies the size, in bytes, of the structure.
/// </summary>
public Int32 cbSize;
/// <summary>
/// Specifies the cursor state. This parameter can be one of the following values:
/// </summary>
public Int32 flags;
///<summary>
///Handle to the cursor.
///</summary>
public IntPtr hCursor;
/// <summary>
/// A POINT structure that receives the screen coordinates of the cursor.
/// </summary>
public POINT ptScreenPos;
}
///<summary>
///Specifies a raster-operation code. These codes define how the color data for the
///source rectangle is to be combined with the color data for the destination
///rectangle to achieve the final color.
///</summary>
public enum TernaryRasterOperations : uint
{
/// <summary>dest = source</summary>
SRCCOPY = 0x00CC0020,
/// <summary>dest = source OR dest</summary>
后面还有 125 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
