Squashed 'NotifyIconWpf/' content from commit 7307bdf
git-subtree-dir: NotifyIconWpf git-subtree-split: 7307bdf5402239df475ea38a0647901cb4b95645
This commit is contained in:
34
NotifyIconWpf/Interop/WindowClass.cs
Normal file
34
NotifyIconWpf/Interop/WindowClass.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Hardcodet.Wpf.TaskbarNotification.Interop
|
||||
{
|
||||
/// <summary>
|
||||
/// Callback delegate which is used by the Windows API to
|
||||
/// submit window messages.
|
||||
/// </summary>
|
||||
public delegate IntPtr WindowProcedureHandler(IntPtr hWnd, uint uMsg, IntPtr wParam, IntPtr lParam);
|
||||
|
||||
/// <summary>
|
||||
/// Win API WNDCLASS struct - represents a single window.
|
||||
/// Used to receive window messages.
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct WindowClass
|
||||
{
|
||||
#pragma warning disable 1591
|
||||
|
||||
public uint style;
|
||||
public WindowProcedureHandler lpfnWndProc;
|
||||
public int cbClsExtra;
|
||||
public int cbWndExtra;
|
||||
public IntPtr hInstance;
|
||||
public IntPtr hIcon;
|
||||
public IntPtr hCursor;
|
||||
public IntPtr hbrBackground;
|
||||
[MarshalAs(UnmanagedType.LPWStr)] public string lpszMenuName;
|
||||
[MarshalAs(UnmanagedType.LPWStr)] public string lpszClassName;
|
||||
|
||||
#pragma warning restore 1591
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user