DESKBAND
info is a struct documented here. You can find a C# translation on pinvoke.net.
[StructLayout(LayoutKind.Sequential)]
public struct POINT
{
public int X;
public int Y;
public POINT(int x, int y)
{
this.X = x;
this.Y = y;
}
public POINT(System.Drawing.Point pt) : this(pt.X, pt.Y) { }
public static implicit operator System.Drawing.Point(POINT p)
{
return new System.Drawing.Point(p.X, p.Y);
}
public static implicit operator POINT(System.Drawing.Point p)
{
return new POINT(p.X, p.Y);
}
}
[StructLayout (LayoutKind.Sequential, CharSet=CharSet.Unicode)]
struct DESKBANDINFO {
public uint dwMask;
public Point ptMinSize;
public Point ptMaxSize;
public Point ptIntegral;
public Point ptActual;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
public String wszTitle;
public uint dwModeFlags;
public Int32 crBkgnd;
}
The deskband API documentation clearly states that it is a deprecated API. It says:
Important You should use thumbnail toolbars in new development in place of desk bands, which are not supported as of Windows 7.
In other words, you should almost certainly not be solving your problem with the deskband API.
That said, if you want to learn how to use deskband API look for example code in C++. Don't restrict the search to C#. Expect to find good examples in C++ but not in C#.