Updated documentation for NOTIFYICONIDENTIFIER and added constructors.

pull/250/head
dahall 2021-09-01 11:07:30 -06:00
parent e886259eef
commit e3ec9d17d7
1 changed files with 25 additions and 4 deletions

View File

@ -3696,8 +3696,8 @@ namespace Vanara.PInvoke
/// <summary>
/// <para>Type: <c>HWND</c></para>
/// <para>
/// A handle to the parent window used by the notification's callback function. For more information, see the member of the
/// NOTIFYICONDATA structure.
/// A handle to the parent window used by the notification's callback function. For more information, see the <see
/// cref="NOTIFYICONDATA.hwnd"/> member of the NOTIFYICONDATA structure.
/// </para>
/// </summary>
public HWND hWnd;
@ -3705,8 +3705,8 @@ namespace Vanara.PInvoke
/// <summary>
/// <para>Type: <c>UINT</c></para>
/// <para>
/// The application-defined identifier of the notification icon. Multiple icons can be associated with a single , each with their
/// own .
/// The application-defined identifier of the notification icon. Multiple icons can be associated with a single <c>hWnd</c>,
/// each with their own <c>uID</c>.
/// </para>
/// </summary>
public uint uID;
@ -3716,6 +3716,27 @@ namespace Vanara.PInvoke
/// <para>A registered GUID that identifies the icon. Use <c>GUID_NULL</c> if the icon is not identified by a GUID.</para>
/// </summary>
public Guid guidItem;
/// <summary>Initializes a new instance of the <see cref="NOTIFYICONIDENTIFIER"/> struct.</summary>
/// <param name="hWnd">A handle to the parent window used by the notification's callback function.</param>
/// <param name="uID">The application-defined identifier of the notification icon.</param>
public NOTIFYICONIDENTIFIER(HWND hWnd, uint uID)
{
cbSize = (uint)Marshal.SizeOf(typeof(NOTIFYICONIDENTIFIER));
this.hWnd = hWnd;
this.uID = uID;
guidItem = default;
}
/// <summary>Initializes a new instance of the <see cref="NOTIFYICONIDENTIFIER"/> struct.</summary>
/// <param name="guidItem">A registered GUID that identifies the icon.</param>
public NOTIFYICONIDENTIFIER(Guid guidItem)
{
cbSize = (uint)Marshal.SizeOf(typeof(NOTIFYICONIDENTIFIER));
this.hWnd = default;
this.uID = default;
this.guidItem = guidItem;
}
}
/// <summary>Contains information used by ShellExecuteEx.</summary>