Пример #1
0
 /// <summary>
 /// Retrieves information about a window class,
 /// including a handle to the small icon associated with the window class.
 /// </summary>
 /// <param name="instance">
 /// A handle to the instance of the application that created the class.
 /// To retrieve information about classes defined by the system (such as buttons or list boxes),
 /// set this parameter to <see cref="IntPtr.Zero"/>.
 /// </param>
 /// <param name="classAtom">
 /// A class atom created by a previous call to RegisterClass
 /// or <see cref="RegisterClassEx(ref ExtendedWindowClass)"/>.
 /// </param>
 /// <param name="extendedWindowStyle">
 /// A pointer to a <see cref="ExtendedWindowClass"/> structure
 /// that receives the information about the class.
 /// </param>
 /// <returns>
 /// If the function finds a matching class and successfully copies the data, the return value is
 /// true.<para/>
 /// If the function does not find a matching class and successfully copy the data, the return value is
 /// false. To get extended error information, call <see cref="Marshal.GetLastWin32Error"/>.
 /// </returns>
 public static bool GetClassInfoEx
 (
     [In] IntPtr instance,
     [In] ushort classAtom,
     [Out] out ExtendedWindowClass extendedWindowStyle
 )
 {
     return(GetClassInfoEx(instance, new IntPtr(classAtom), out extendedWindowStyle));
 }
Пример #2
0
 public static extern bool GetClassInfoEx
 (
     [In] IntPtr instance,
     [In] IntPtr className,
     [Out] out ExtendedWindowClass extendedWindowClass
 );
Пример #3
0
 public static extern ushort RegisterClassEx([In] ref ExtendedWindowClass extendedWindowClass);