Added comment

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2394 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-12-19 08:10:24 +00:00
commit 16a8122751

View file

@ -211,6 +211,10 @@ namespace GreenshotPlugin.UnmanagedHelpers {
} }
} }
/// <summary>
/// The structure for the WindowInfo
/// See: http://msdn.microsoft.com/en-us/library/windows/desktop/ms632610%28v=vs.85%29.aspx
/// </summary>
[StructLayout(LayoutKind.Sequential), Serializable()] [StructLayout(LayoutKind.Sequential), Serializable()]
public struct WindowInfo { public struct WindowInfo {
public uint cbSize; public uint cbSize;
@ -224,8 +228,7 @@ namespace GreenshotPlugin.UnmanagedHelpers {
public ushort atomWindowType; public ushort atomWindowType;
public ushort wCreatorVersion; public ushort wCreatorVersion;
// Allows automatic initialization of "cbSize" with "new WINDOWINFO(null/true/false)". // Allows automatic initialization of "cbSize" with "new WINDOWINFO(null/true/false)".
public WindowInfo(Boolean? filler) public WindowInfo(Boolean? filler) : this() {
: this() {
cbSize = (UInt32)(Marshal.SizeOf(typeof(WindowInfo))); cbSize = (UInt32)(Marshal.SizeOf(typeof(WindowInfo)));
} }
} }