[DllImport("shell32.dll")]
static extern bool Shell_NotifyIcon(uint dwMessage,
[In] ref NOTIFYICONDATA pnid);
Here's the data structure for the NotifyIconData block, contributed by staff at http://www.softswift.com
[StructLayout(LayoutKind.Sequential)]
public struct NotifyIconData
{
public System.Int32 cbSize; // DWORD
public System.IntPtr hWnd; // HWND
public System.Int32 uID; // UINT
public NotifyFlags uFlags; // UINT
public System.Int32 uCallbackMessage; // UINT
public System.IntPtr hIcon; // HICON
[MarshalAs(UnmanagedType.ByValTStr, SizeConst=128)]
public System.String szTip; // char[128]
public System.Int32 dwState; // DWORD
public System.Int32 dwStateMask; // DWORD
[MarshalAs(UnmanagedType.ByValTStr, SizeConst=256)]
public System.String szInfo; // char[256]
public System.Int32 uTimeoutOrVersion; // UINT
[MarshalAs(UnmanagedType.ByValTStr, SizeConst=64)]
public System.String szInfoTitle; // char[64]
public System.Int32 dwInfoFlags; // DWORD
//GUID guidItem; > IE 6
}
None.
Please add some!
Please add some!
System.Windows.Forms.NotifyIcon