mirror of
https://github.com/Stone-Red-Code/ClipCMD.git
synced 2026-09-04 08:56:11 +02:00
17 lines
565 B
C#
17 lines
565 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace ClipCMD;
|
|
|
|
internal static class NativeMethods
|
|
{
|
|
// See http://msdn.microsoft.com/en-us/library/ms649021%28v=vs.85%29.aspx
|
|
public const int WM_CLIPBOARDUPDATE = 0x031D;
|
|
|
|
public static readonly IntPtr HWND_MESSAGE = new IntPtr(-3);
|
|
|
|
// See http://msdn.microsoft.com/en-us/library/ms632599%28VS.85%29.aspx#message_only
|
|
[DllImport("user32.dll", SetLastError = true)]
|
|
[return: MarshalAs(UnmanagedType.Bool)]
|
|
public static extern bool AddClipboardFormatListener(IntPtr hwnd);
|
|
} |