Added parameter attributes

pull/372/head
David Hall 2023-01-21 15:15:08 -07:00
parent d2d3dd21dd
commit c4d83136ca
1 changed files with 2 additions and 2 deletions

View File

@ -958,7 +958,7 @@ namespace Vanara.PInvoke
// lpIconName );
[DllImport(Lib.User32, SetLastError = true, CharSet = CharSet.Auto)]
[PInvokeData("winuser.h", MSDNShortId = "loadicon")]
public static extern SafeHICON LoadIcon(HINSTANCE hInstance, string lpIconName);
public static extern SafeHICON LoadIcon([Optional] HINSTANCE hInstance, string lpIconName);
/// <summary>
/// <para>Loads the specified icon resource from the executable (.exe) file associated with an application instance.</para>
@ -1048,7 +1048,7 @@ namespace Vanara.PInvoke
// lpIconName );
[DllImport(Lib.User32, SetLastError = true, CharSet = CharSet.Auto)]
[PInvokeData("winuser.h", MSDNShortId = "loadicon")]
public static extern SafeHICON LoadIcon(HINSTANCE hInstance, ResourceId lpIconName);
public static extern SafeHICON LoadIcon([Optional] HINSTANCE hInstance, ResourceId lpIconName);
/// <summary>
/// <para>Searches through icon or cursor data for the icon or cursor that best fits the current display device.</para>