Beispiel #1
0
 /// <summary>
 /// Retrieves information about the specified pre-defined icon.
 /// </summary>
 /// <param name="iconName">One of the pre-defined cursors.</param>
 /// <param name="iconInfo">
 /// A pointer to an <see cref="IconInfo"/> structure. The function fills in the structure's members.
 /// </param>
 /// <returns>
 /// If the function succeeds, the return value is true and the function
 /// fills in the members of the specified <see cref="IconInfo"/> structure.<para/>
 /// If the function fails, the return value is false.
 /// To get extended error information, call <see cref="Marshal.GetLastWin32Error"/>.
 /// </returns>
 public static bool GetIconInfo(IconName iconName, out IconInfo iconInfo)
 {
     return(GetIconInfo(new IntPtr((int)iconName), out iconInfo));
 }
Beispiel #2
0
 public static extern bool GetIconInfo([In] IntPtr icon, [Out] out IconInfo iconInfo);
Beispiel #3
0
 /// <summary>
 /// Retrieves information about the specified pre-defined cursor.
 /// </summary>
 /// <param name="cursorName">One of the pre-defined cursors.</param>
 /// <param name="iconInfo">
 /// A pointer to an <see cref="IconInfo"/> structure. The function fills in the structure's members.
 /// </param>
 /// <returns>
 /// If the function succeeds, the return value is true and the function
 /// fills in the members of the specified <see cref="IconInfo"/> structure.<para/>
 /// If the function fails, the return value is false.
 /// To get extended error information, call <see cref="Marshal.GetLastWin32Error"/>.
 /// </returns>
 public static bool GetIconInfo(CursorName cursorName, out IconInfo iconInfo)
 {
     return(GetIconInfo(new IntPtr((int)cursorName), out iconInfo));
 }
Beispiel #4
0
 public static extern IntPtr CreateIconIndirect([In] ref IconInfo iconInfo);