mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-24 10:49:51 +08:00
23 lines
688 B
C#
23 lines
688 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using System.Text;
|
|
|
|
namespace SteamTool.Auth.Win32
|
|
{
|
|
public class WinAPI
|
|
{
|
|
public const string LibraryName = "user32.dll";
|
|
|
|
[DllImport(LibraryName, CharSet = CharSet.Auto)]
|
|
internal static extern IntPtr GetOpenClipboardWindow();
|
|
|
|
[DllImport(LibraryName, SetLastError = true, CharSet = CharSet.Auto)]
|
|
internal static extern int GetWindowTextLength(IntPtr hWnd);
|
|
|
|
[DllImport(LibraryName, CharSet = CharSet.Auto, SetLastError = true)]
|
|
internal static extern int GetWindowText(IntPtr hWnd, StringBuilder lpString, int nMaxCount);
|
|
|
|
}
|
|
}
|