Test Header Code

C# API—— SendMessage 用法

 函数功能:该函数将指定的消息发送到一个或多个窗口。此函数为指定的窗口调用窗口程序,直到窗口程序处理完消息再返回。该函数是应用程序和应用程序之间进行消息传递的主要手段之一。
 函数原型:LRESULT SendMessage(HWND hWnd,UINT Msg,WPARAM wParam,LPARAM IParam);

 参数:

    hWnd:其窗口程序将接收消息的窗口的句柄。如果此参数为HWND_BROADCAST,则消息将被发送到系统中所有顶层窗口,包括无效或不可见的非自身拥有的窗口、被覆盖的窗口和弹出式窗口,但消息不被发送到子窗口。

    Msg:指定被发送的消息。

    wParam:指定附加的消息指定信息。

    IParam:指定附加的消息指定信息。

    返回值:返回值指定消息处理的结果,依赖于所发送的消息。

    备注:需要用HWND_BROADCAST通信的应用程序应当使用函数RegisterWindowMessage来为应用程序间的通信取得一个唯一的消息。

    如果指定的窗口是由调用线程创建的,则窗口程序立即作为子程序调用。如果指定的窗口是由不同线程创建的,则系统切换到该线程并调用恰当的窗口程序。线程间的消息只有在线程执行消息检索代码时才被处理。发送线程被阻塞直到接收线程处理完消息为止。

 

使用:

C#中使用该函数首先导入命名空间:

using System.Runtime.InteropServices;

然后写API引用部分的代码,放入 class 内部

[DllImport("user32.dll", EntryPoint = "SendMessage")]
private static extern int SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);

这个函数有四个参数:

第一个是窗口句柄,窗口可以是任何类型的屏幕对象;

第二个是操作消息的常量值,如点击鼠标的0xF5用于区别其他消息的常量值;

第三个通常是一个与消息有关的常量值,也可能是窗口或控件的句柄。该参数为可选参数,比如单击就不需要这个参数,而鼠标移动就可能需要在这里加上一些鼠标的参数;

第四个通常是一个指向内存中数据的指针。在C#中消息需要定义成windows系统中的原始的16进制数字,如 const int WM_Lbutton = 0x201; //定义了鼠标的左键点击消息。详细值见下方表格。

范例代码:

const int BM_CLICK = 0xF5;

//获取QQ登陆框的句柄
IntPtr maindHwnd = FindWindow(null, "QQ用户登录");

 if (maindHwnd != IntPtr.Zero)
{
     //获取登录按钮的句柄
    IntPtr childHwnd = FindWindowEx(maindHwnd, IntPtr.Zero, null, "登录");
      if (childHwnd != IntPtr.Zero)
    {
        //发送点击按钮的消息
        SendMessage(childHwnd, BM_CLICK, 0, 0);    
    }
    else
    {
        MessageBox.Show("没有找到子窗口");
    }
}
else
{
    MessageBox.Show("没有找到窗口");
}     

 

wMsg参数常量值

  1 const    int    WM_CREATE    =    0x01;    //创建一个窗口
  2 const    int    WM_DESTROY    =    0x02;    //当一个窗口被破坏时发送
  3 const    int    WM_MOVE    =    0x03;    //移动一个窗口
  4 const    int    WM_SIZE    =    0x05;    //改变一个窗口的大小
  5 const    int    WM_ACTIVATE    =    0x06;    //一个窗口被激活或失去激活状态
  6 const    int    WM_SETFOCUS    =    0x07;    //一个窗口获得焦点
  7 const    int    WM_KILLFOCUS    =    0x08;    //一个窗口失去焦点
  8 const    int    WM_ENABLE    =    0x0A;    //一个窗口改变成Enable状态
  9 const    int    WM_SETREDRAW    =    0x0B;    //设置窗口是否能重画
 10 const    int    WM_SETTEXT    =    0x0C;    //应用程序发送此消息来设置一个窗口的文本
 11 const    int    WM_GETTEXT    =    0x0D;    //应用程序发送此消息来复制对应窗口的文本到缓冲区
 12 const    int    WM_GETTEXTLENGTH    =    0x0E;    //得到与一个窗口有关的文本的长度(不包含空字符)
 13 const    int    WM_PAINT    =    0x0F;    //要求一个窗口重画自己
 14 const    int    WM_CLOSE    =    0x10;    //当一个窗口或应用程序要关闭时发送一个信号
 15 const    int    WM_QUERYENDSESSION    =    0x11;    //当用户选择结束对话框或程序自己调用ExitWindows函数
 16 const    int    WM_QUIT    =    0x12;    //用来结束程序运行
 17 const    int    WM_QUERYOPEN    =    0x13;    //当用户窗口恢复以前的大小位置时,把此消息发送给某个图标
 18 const    int    WM_ERASEBKGND    =    0x14;    //当窗口背景必须被擦除时(例在窗口改变大小时)
 19 const    int    WM_SYSCOLORCHANGE    =    0x15;    //当系统颜色改变时,发送此消息给所有顶级窗口
 20 const    int    WM_ENDSESSION    =    0x16;    //当系统进程发出WM_QUERYENDSESSION消息后,此消息发送给应用程序,通知它对话是否结束
 21 const    int    WM_SHOWWINDOW    =    0x18;    //当隐藏或显示窗口是发送此消息给这个窗口
 22 const    int    WM_ACTIVATEAPP    =    0x1C;    //发此消息给应用程序哪个窗口是激活的,哪个是非激活的
 23 const    int    WM_FONTCHANGE    =    0x1D;    //当系统的字体资源库变化时发送此消息给所有顶级窗口
 24 const    int    WM_TIMECHANGE    =    0x1E;    //当系统的时间变化时发送此消息给所有顶级窗口
 25 const    int    WM_CANCELMODE    =    0x1F;    //发送此消息来取消某种正在进行的摸态(操作)
 26 const    int    WM_SETCURSOR    =    0x20;    //如果鼠标引起光标在某个窗口中移动且鼠标输入没有捕获时,就发消息给某个窗口
 27 const    int    WM_MOUSEACTIVATE    =    0x21;    //当光标在某个非激活的窗口中而用户正按着鼠标的某个键发送此消息给//当前窗口
 28 const    int    WM_CHILDACTIVATE    =    0x22;    //发送此消息给MDI子窗口//当用户点击此窗口的标题栏,或//当窗口被激活,移动,改变大小
 29 const    int    WM_QUEUESYNC    =    0x23;    //此消息由基于计算机的训练程序发送,通过WH_JOURNALPALYBACK的hook程序分离出用户输入消息
 30 const    int    WM_GETMINMAXINFO    =    0x24;    //此消息发送给窗口当它将要改变大小或位置
 31 const    int    WM_PAINTICON    =    0x26;    //发送给最小化窗口当它图标将要被重画
 32 const    int    WM_ICONERASEBKGND    =    0x27;    //此消息发送给某个最小化窗口,仅//当它在画图标前它的背景必须被重画
 33 const    int    WM_NEXTDLGCTL    =    0x28;    //发送此消息给一个对话框程序去更改焦点位置
 34 const    int    WM_SPOOLERSTATUS    =    0x2A;    //每当打印管理列队增加或减少一条作业时发出此消息
 35 const    int    WM_DRAWITEM    =    0x2B;    //当button,combobox,listbox,menu的可视外观改变时发送
 36 const    int    WM_MEASUREITEM    =    0x2C;    //当button,combobox,listbox,listviewcontrol,or   menuitem 被创建时
 37 const    int    WM_VKEYTOITEM    =    0x2E;    //此消息有一个LBS_WANTKEYBOARDINPUT风格的发出给它的所有者来响应WM_KEYDOWN消息
 38 const    int    WM_CHARTOITEM    =    0x2F;    //此消息由一个LBS_WANTKEYBOARDINPUT风格的列表框发送给他的所有者来响应WM_CHAR消息
 39 const    int    WM_SETFONT    =    0x30;    //当绘制文本时程序发送此消息得到控件要用的颜色
 40 const    int    WM_GETFONT    =    0x31;    //应用程序发送此消息得到当前控件绘制文本的字体
 41 const    int    WM_SETHOTKEY    =    0x32;    //应用程序发送此消息让一个窗口与一个热键相关连
 42 const    int    WM_GETHOTKEY    =    0x33;    //应用程序发送此消息来判断热键与某个窗口是否有关联
 43 const    int    WM_QUERYDRAGICON    =    0x37;    //此消息发送给最小化窗口,当此窗口将要被拖放而它的类中没有定义图标,应用程序能返回一个图标或光标的句柄,当用户拖放图标时系统显示这个图标或光标
 44 const    int    WM_COMPAREITEM    =    0x39;    //发送此消息来判定combobox或listbox新增加的项的相对位置
 45 const    int    WM_COMPACTING    =    0x41;    //显示内存已经很少了
 46 const    int    WM_WINDOWPOSCHANGING    =    0x46;    //发送此消息给那个窗口的大小和位置将要被改变时,来调用setwindowpos函数或其它窗口管理函数
 47 const    int    WM_WINDOWPOSCHANGED    =    0x47;    //发送此消息给那个窗口的大小和位置已经被改变时,来调用setwindowpos函数或其它窗口管理函数
 48 const    int    WM_POWER    =    0x48;    //当系统将要进入暂停状态时发送此消息
 49 const    int    WM_COPYDATA    =    0x4A;    //当一个应用程序传递数据给另一个应用程序时发送此消息
 50 const    int    WM_CANCELJOURNA    =    0x4B;    //当某个用户取消程序日志激活状态,提交此消息给程序
 51 const    int    WM_NOTIFY    =    0x4E;    //当某个控件的某个事件已经发生或这个控件需要得到一些信息时,发送此消息给它的父窗口
 52 const    int    WM_INPUTLANGCHANGEREQUEST    =    0x50;    //当用户选择某种输入语言,或输入语言的热键改变
 53 const    int    WM_INPUTLANGCHANGE    =    0x51;    //当平台现场已经被改变后发送此消息给受影响的最顶级窗口
 54 const    int    WM_TCARD    =    0x52;    //当程序已经初始化windows帮助例程时发送此消息给应用程序
 55 const    int    WM_HELP    =    0x53;    //此消息显示用户按下了F1,如果某个菜单是激活的,就发送此消息个此窗口关联的菜单,否则就发送给有焦点的窗口,如果//当前都没有焦点,就把此消息发送给//当前激活的窗口
 56 const    int    WM_USERCHANGED    =    0x54;    //当用户已经登入或退出后发送此消息给所有的窗口,//当用户登入或退出时系统更新用户的具体设置信息,在用户更新设置时系统马上发送此消息
 57 const    int    WM_NOTIFYFORMAT    =    0x55;    //公用控件,自定义控件和他们的父窗口通过此消息来判断控件是使用ANSI还是UNICODE结构
 58 const    int    WM_CONTEXTMENU    =    ??;    //当用户某个窗口中点击了一下右键就发送此消息给这个窗口
 59 const    int    WM_STYLECHANGING    =    0x7C;    //当调用SETWINDOWLONG函数将要改变一个或多个窗口的风格时发送此消息给那个窗口
 60 const    int    WM_STYLECHANGED    =    0x7D;    //当调用SETWINDOWLONG函数一个或多个窗口的风格后发送此消息给那个窗口
 61 const    int    WM_DISPLAYCHANGE    =    0x7E;    //当显示器的分辨率改变后发送此消息给所有的窗口
 62 const    int    WM_GETICON    =    0x7F;    //此消息发送给某个窗口来返回与某个窗口有关连的大图标或小图标的句柄
 63 const    int    WM_SETICON    =    0x80;    //程序发送此消息让一个新的大图标或小图标与某个窗口关联
 64 const    int    WM_NCCREATE    =    0x81;    //当某个窗口第一次被创建时,此消息在WM_CREATE消息发送前发送
 65 const    int    WM_NCDESTROY    =    0x82;    //此消息通知某个窗口,非客户区正在销毁
 66 const    int    WM_NCCALCSIZE    =    0x83;    //当某个窗口的客户区域必须被核算时发送此消息
 67 const    int    WM_NCHITTEST    =    0x84;    //移动鼠标,按住或释放鼠标时发生
 68 const    int    WM_NCPAINT    =    0x85;    //程序发送此消息给某个窗口当它(窗口)的框架必须被绘制时
 69 const    int    WM_NCACTIVATE    =    0x86;    //此消息发送给某个窗口仅当它的非客户区需要被改变来显示是激活还是非激活状态
 70 const    int    WM_GETDLGCODE    =    0x87;    //发送此消息给某个与对话框程序关联的控件,widdows控制方位键和TAB键使输入进入此控件通过应
 71 const    int    WM_NCMOUSEMOVE    =    0xA0;    //当光标在一个窗口的非客户区内移动时发送此消息给这个窗口非客户区为:窗体的标题栏及窗的边框体
 72 const    int    WM_NCLBUTTONDOWN    =    0xA1;    //当光标在一个窗口的非客户区同时按下鼠标左键时提交此消息
 73 const    int    WM_NCLBUTTONUP    =    0xA2;    //当用户释放鼠标左键同时光标某个窗口在非客户区十发送此消息
 74 const    int    WM_NCLBUTTONDBLCLK    =    0xA3;    //当用户双击鼠标左键同时光标某个窗口在非客户区十发送此消息
 75 const    int    WM_NCRBUTTONDOWN    =    0xA4;    //当用户按下鼠标右键同时光标又在窗口的非客户区时发送此消息
 76 const    int    WM_NCRBUTTONUP    =    0xA5;    //当用户释放鼠标右键同时光标又在窗口的非客户区时发送此消息
 77 const    int    WM_NCRBUTTONDBLCLK    =    0xA6;    //当用户双击鼠标右键同时光标某个窗口在非客户区十发送此消息
 78 const    int    WM_NCMBUTTONDOWN    =    0xA7;    //当用户按下鼠标中键同时光标又在窗口的非客户区时发送此消息
 79 const    int    WM_NCMBUTTONUP    =    0xA8;    //当用户释放鼠标中键同时光标又在窗口的非客户区时发送此消息
 80 const    int    WM_NCMBUTTONDBLCLK    =    0xA9;    //当用户双击鼠标中键同时光标又在窗口的非客户区时发送此消息
 81 const    int    WM_KEYDOWN    =    0x0100;    //WM_KEYDOWN按下一个键
 82 const    int    WM_KEYUP    =    0x0101;    //释放一个键
 83 const    int    WM_CHAR    =    0x102;    //按下某键,并已发出WM_KEYDOWN,WM_KEYUP消息
 84 const    int    WM_DEADCHAR    =    0x103;    //当用translatemessage函数翻译WM_KEYUP消息时发送此消息给拥有焦点的窗口
 85 const    int    WM_SYSKEYDOWN    =    0x104;    //当用户按住ALT键同时按下其它键时提交此消息给拥有焦点的窗口
 86 const    int    WM_SYSKEYUP    =    0x105;    //当用户释放一个键同时ALT键还按着时提交此消息给拥有焦点的窗口
 87 const    int    WM_SYSCHAR    =    0x106;    //当WM_SYSKEYDOWN消息被TRANSLATEMESSAGE函数翻译后提交此消息给拥有焦点的窗口
 88 const    int    WM_SYSDEADCHAR    =    0x107;    //当WM_SYSKEYDOWN消息被TRANSLATEMESSAGE函数翻译后发送此消息给拥有焦点的窗口
 89 const    int    WM_INITDIALOG    =    0x110;    //在一个对话框程序被显示前发送此消息给它,通常用此消息初始化控件和执行其它任务
 90 const    int    WM_COMMAND    =    0x111;    //当用户选择一条菜单命令项或当某个控件发送一条消息给它的父窗口,一个快捷键被翻译
 91 const    int    WM_SYSCOMMAND    =    0x112;    //当用户选择窗口菜单的一条命令或//当用户选择最大化或最小化时那个窗口会收到此消息
 92 const    int    WM_TIMER    =    0x113;    //发生了定时器事件
 93 const    int    WM_HSCROLL    =    0x114;    //当一个窗口标准水平滚动条产生一个滚动事件时发送此消息给那个窗口,也发送给拥有它的控件
 94 const    int    WM_VSCROLL    =    0x115;    //当一个窗口标准垂直滚动条产生一个滚动事件时发送此消息给那个窗口也,发送给拥有它的控件
 95 const    int    WM_INITMENU    =    0x116;    //当一个菜单将要被激活时发送此消息,它发生在用户菜单条中的某项或按下某个菜单键,它允许程序在显示前更改菜单
 96 const    int    WM_INITMENUPOPUP    =    0x117;    //当一个下拉菜单或子菜单将要被激活时发送此消息,它允许程序在它显示前更改菜单,而不要改变全部
 97 const    int    WM_MENUSELECT    =    0x11F;    //当用户选择一条菜单项时发送此消息给菜单的所有者(一般是窗口)
 98 const    int    WM_MENUCHAR    =    0x120;    //当菜单已被激活用户按下了某个键(不同于加速键),发送此消息给菜单的所有者
 99 const    int    WM_ENTERIDLE    =    0x121;    //当一个模态对话框或菜单进入空载状态时发送此消息给它的所有者,一个模态对话框或菜单进入空载状态就是在处理完一条或几条先前的消息后没有消息它的列队中等待
100 const    int    WM_CTLCOLORMSGBOX    =    0x132;    //在windows绘制消息框前发送此消息给消息框的所有者窗口,通过响应这条消息,所有者窗口可以通过使用给定的相关显示设备的句柄来设置消息框的文本和背景颜色
101 const    int    WM_CTLCOLOREDIT    =    0x133;    //当一个编辑型控件将要被绘制时发送此消息给它的父窗口通过响应这条消息,所有者窗口可以通过使用给定的相关显示设备的句柄来设置编辑框的文本和背景颜色
102 const    int    WM_CTLCOLORLISTBOX    =    0x134;    //当一个列表框控件将要被绘制前发送此消息给它的父窗口通过响应这条消息,所有者窗口可以通过使用给定的相关显示设备的句柄来设置列表框的文本和背景颜色
103 const    int    WM_CTLCOLORBTN    =    0x135;    //当一个按钮控件将要被绘制时发送此消息给它的父窗口通过响应这条消息,所有者窗口可以通过使用给定的相关显示设备的句柄来设置按纽的文本和背景颜色
104 const    int    WM_CTLCOLORDLG    =    0x136;    //当一个对话框控件将要被绘制前发送此消息给它的父窗口通过响应这条消息,所有者窗口可以通过使用给定的相关显示设备的句柄来设置对话框的文本背景颜色
105 const    int    WM_CTLCOLORSCROLLBAR    =    0x137;    //当一个滚动条控件将要被绘制时发送此消息给它的父窗口通过响应这条消息,所有者窗口可以通过使用给定的相关显示设备的句柄来设置滚动条的背景颜色
106 const    int    WM_CTLCOLORSTATIC    =    0x138;    //当一个静态控件将要被绘制时发送此消息给它的父窗口通过响应这条消息,所有者窗口可以通过使用给定的相关显示设备的句柄来设置静态控件的文本和背景颜色
107 const    int    WM_MOUSEWHEEL    =    0x20A;    //当鼠标轮子转动时发送此消息个当前有焦点的控件
108 const    int    WM_MBUTTONDBLCLK    =    0x209;    //双击鼠标中键
109 const    int    WM_MBUTTONUP    =    0x208;    //释放鼠标中键
110 const    int    WM_MOUSEMOVE    =    0x200;    //移动鼠标时发生,同WM_MOUSEFIRST
111 const    int    WM_LBUTTONDOWN    =    0x201;    //按下鼠标左键
112 const    int    WM_LBUTTONUP    =    0x202;    //释放鼠标左键
113 const    int    WM_LBUTTONDBLCLK    =    0x203;    //双击鼠标左键
114 const    int    WM_RBUTTONDOWN    =    0x204;    //按下鼠标右键
115 const    int    WM_RBUTTONUP    =    0x205;    //释放鼠标右键
116 const    int    WM_RBUTTONDBLCLK    =    0x206;    //双击鼠标右键
117 const    int    WM_MBUTTONDOWN    =    0x207;    //按下鼠标中键
118 const    int    WM_USER    =    0x0400;    
119 const    int    MK_LBUTTON    =    0x0001;    
120 const    int    MK_RBUTTON    =    0x0002;    
121 const    int    MK_SHIFT    =    0x0004;    
122 const    int    MK_CONTROL    =    0x0008;    
123 const    int    MK_MBUTTON    =    0x0010;    
124 const    int    MK_XBUTTON1    =    0x0020;    
125 const    int    MK_XBUTTON2    =    0x0040;    
126 const    int    MK_XBUTTON3    =    0x0041;    
127 const    int    MK_XBUTTON4    =    0x0042;    
128 const    int    MK_XBUTTON5    =    0x0043;    
129 const    int    MK_XBUTTON6    =    0x0044;    
130 const    int    MK_XBUTTON7    =    0x0045;    
131 const    int    MK_XBUTTON8    =    0x0046;    
132 const    int    MK_XBUTTON9    =    0x0047;    
133 const    int    MK_XBUTTON10    =    0x0048;    
134 const    int    MK_XBUTTON11    =    0x0049;    
135 const    int    MK_XBUTTON12    =    0x0050;    
136 const    int    MK_XBUTTON13    =    0x0051;    
137 const    int    MK_XBUTTON14    =    0x0052;    
138 const    int    MK_XBUTTON15    =    0x0053;    
139 const    int    MK_XBUTTON16    =    0x0054;    
140 const    int    MK_XBUTTON17    =    0x0055;    
常用消息常量

 

   1 using System;
   2 using System.Drawing;
   3 using System.Collections;
   4 using System.ComponentModel;
   5 using System.Windows.Forms;
   6 using System.Runtime.InteropServices;
   7 using System.Text;
   8 
   9 
  10 namespace gowk.common
  11 {
  12     public sealed class API 
  13     {
  14         [DllImport("USER32.DLL", EntryPoint= "PostMessage")]
  15         public static extern bool PostMessage(IntPtr hwnd, uint msg,
  16             IntPtr wParam, IntPtr lParam);
  17             [DllImport("user32.dll", CharSet=CharSet.Auto, ExactSpelling=true)]
  18         public static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
  19  
  20 
  21         [DllImport("gdi32.dll")]
  22         public static extern int SetBkColor(
  23             IntPtr hdc,           // handle to DC
  24             int crColor   // background color value
  25             );
  26         [DllImport("gdi32.dll")]
  27         public static extern int GetBkColor(IntPtr hdc);
  28 
  29         [DllImport("user32.dll",EntryPoint="GetDC")]
  30         public static extern IntPtr GetDC(IntPtr ptr);
  31         [DllImport("user32.dll", CharSet=CharSet.Auto)]
  32         public static extern IntPtr GetDesktopWindow();
  33 
  34         [DllImport("user32")]
  35         public static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, 
  36             int x, int y, int cx, int cy, int flags);
  37         [DllImport("user32.dll", CharSet=CharSet.Auto, ExactSpelling=true)]
  38         internal static extern int MapWindowPoints(IntPtr hWndFrom, IntPtr hWndTo, ref Point pt, int cPoints);
  39 
  40         [DllImport("user32.dll", CharSet=CharSet.Auto, ExactSpelling=true)]
  41         public static extern IntPtr GetWindowDC(IntPtr hwnd);
  42         
  43         [DllImport("user32.dll", CharSet=CharSet.Auto, ExactSpelling=true)]
  44         public static extern int ReleaseDC(IntPtr hWnd,IntPtr hDC);
  45         
  46         [DllImport("user32.dll", CharSet=CharSet.Auto)]
  47         public static extern IntPtr SendMessage(IntPtr hWnd, int msg, int wParam, int lParam);
  48 
  49         [DllImport("user32.dll", CharSet=CharSet.Auto)]
  50         public static extern int RegisterWindowMessage(string msg);
  51 
  52         [DllImport("gdi32.dll", CharSet=CharSet.Auto, ExactSpelling=true)]
  53         public static extern bool BitBlt(IntPtr hDC, int x, int y, int nWidth, int nHeight, IntPtr hSrcDC, int xSrc, int ySrc, int dwRop);
  54  
  55         [DllImport("user32.dll", CharSet=CharSet.Auto)]
  56         public static extern IntPtr DefWindowProc(IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam);
  57 
  58         
  59         [DllImport("ole32.dll", PreserveSig=false)]
  60         public static extern IntPtr CreateILockBytesOnHGlobal(IntPtr hGlobal, bool fDeleteOnRelease);
  61         //    public static extern ILockBytes CreateILockBytesOnHGlobal(IntPtr hGlobal, bool fDeleteOnRelease);
  62  
  63 
  64         [DllImport("ole32.dll", PreserveSig=false)]
  65         public static extern IntPtr StgCreateDocfileOnILockBytes(IntPtr iLockBytes, STGM grfMode, int reserved);
  66         //    public static extern IStorage StgCreateDocfileOnILockBytes(ILockBytes iLockBytes, STGM grfMode, int reserved);
  67  
  68 
  69 
  70         [DllImport("User32.dll", CharSet=CharSet.Auto)]
  71         public static extern int SendMessage(IntPtr hWnd, int message, IntPtr wParam, IntPtr lParam);
  72 
  73         [DllImport("User32.dll", CharSet=CharSet.Auto)]
  74         public static extern bool GetWindowRect( IntPtr hWnd,ref Rectangle lpRect);
  75         
  76         [DllImport("user32.dll")] 
  77         public  static extern IntPtr GetSystemMenu(IntPtr hwnd, bool bRevert);
  78  
  79 
  80         [DllImport("USER32.DLL")]
  81         public static extern int SendMessage(    
  82             IntPtr hwnd, 
  83             int wMsg,
  84             int wParam,
  85             IntPtr lParam
  86             );    
  87         [DllImport("USER32.DLL")]
  88         public static extern int SendMessage(    
  89             IntPtr hwnd, 
  90             int wMsg,
  91             int wParam,
  92             StringBuilder lParam
  93             );    
  94         [DllImport("USER32.DLL")]
  95         public static extern int SendMessage(    
  96             IntPtr hwnd, 
  97             int wMsg,
  98             int wParam,
  99             string lParam
 100             );    
 101         [DllImport("USER32.DLL")]
 102         public static extern int SendMessage(    
 103             IntPtr hwnd, 
 104             int wMsg,
 105             bool wParam,
 106             string lParam
 107             );    
 108         [DllImport("USER32.DLL")]
 109         public static extern int SendMessage(    
 110             IntPtr hwnd, 
 111             int wMsg,
 112             bool wParam,
 113             int lParam
 114             );
 115 
 116 
 117         #region
 118         
 119         public const int  SRCCOPY             =0x00CC0020; /* dest = source                   */
 120         public const int  SRCPAINT            =0x00EE0086; /* dest = source OR dest           */
 121         public const int  SRCAND              =0x008800C6; /* dest = source AND dest          */
 122         public const int  SRCINVERT           =0x00660046; /* dest = source XOR dest          */
 123         public const int  SRCERASE            =0x00440328; /* dest = source AND (NOT dest )   */
 124         public const int  NOTSRCCOPY          =0x00330008; /* dest = (NOT source)             */
 125         public const int  NOTSRCERASE         =0x001100A6; /* dest = (NOT src) AND (NOT dest) */
 126         public const int  MERGECOPY           =0x00C000CA; /* dest = (source AND pattern)     */
 127         public const int  MERGEPAINT          =0x00BB0226; /* dest = (NOT source) OR dest     */
 128         public const int  PATCOPY             =0x00F00021; /* dest = pattern                  */
 129         public const int  PATPAINT            =0x00FB0A09; /* dest = DPSnoo                   */
 130         public const int  PATINVERT           =0x005A0049; /* dest = pattern XOR dest         */
 131         public const int  DSTINVERT           =0x00550009; /* dest = (NOT dest)               */
 132         public const int  BLACKNESS           =0x00000042; /* dest = BLACK                    */
 133         public const int  WHITENESS           =0x00FF0062; /* dest = WHITE   */
 134         static int wm_mouseenter=-1;
 135         public static int WM_MOUSEENTER
 136         {
 137             get
 138             {
 139                 if (wm_mouseenter == -1)
 140                 {
 141                     wm_mouseenter =RegisterWindowMessage("WinFormsMouseEnter");
 142                 }
 143                 return wm_mouseenter;
 144             }
 145         }
 146 
 147         public const int EM_GETOLEINTERFACE = WM_USER + 60;
 148         public const int SC_MOVE         =0xF010;
 149         /*
 150          * WM_NCHITTEST and MOUSEHOOKSTRUCT Mouse Position Codes
 151          */
 152         public const int HTERROR             =(-2);
 153         public const int HTTRANSPARENT       =(-1);
 154         //    public const int HTNOWHERE          = 0;
 155         //    public const int HTCLIENT            =1;
 156         public const int HTCAPTION          = 2;
 157         public const int HTSYSMENU          = 3;
 158         public const int HTGROWBOX          = 4;
 159         public const int HTSIZE             = HTGROWBOX;
 160         public const int HTMENU             = 5;
 161         public const int HTHSCROLL          = 6;
 162         public const int HTVSCROLL          = 7;
 163         public const int HTMINBUTTON        = 8;
 164         public const int HTMAXBUTTON         =9;
 165         public const int HTLEFT             = 10;
 166         public const int HTRIGHT             =11;
 167         public const int HTTOP               =12;
 168         public const int HTTOPLEFT          = 13;
 169         public const int HTTOPRIGHT        =  14;
 170         public const int HTBOTTOM          =  15;
 171         public const int HTBOTTOMLEFT      =  16;
 172         public const int HTBOTTOMRIGHT     =  17;
 173         public const int HTBORDER           = 18;
 174         public const int HTCLOSE            = 20;
 175         public const int HTHELP             = 21;
 176 
 177 
 178         /*
 179          * WM_NCHITTEST and MOUSEHOOKSTRUCT Mouse Position Codes
 180          */
 181         /*
 182 #define HTERROR             (-2)
 183 #define HTTRANSPARENT       (-1)
 184 #define HTNOWHERE           0
 185 #define HTCLIENT            1
 186 #define HTCAPTION           2
 187 #define HTSYSMENU           3
 188 #define HTGROWBOX           4
 189 #define HTSIZE              HTGROWBOX
 190 #define HTMENU              5
 191 #define HTHSCROLL           6
 192 #define HTVSCROLL           7
 193 #define HTMINBUTTON         8
 194 #define HTMAXBUTTON         9
 195 #define HTLEFT              10
 196 #define HTRIGHT             11
 197 #define HTTOP               12
 198 #define HTTOPLEFT           13
 199 #define HTTOPRIGHT          14
 200 #define HTBOTTOM            15
 201 #define HTBOTTOMLEFT        16
 202 #define HTBOTTOMRIGHT       17
 203 #define HTBORDER            18
 204 #define HTREDUCE            HTMINBUTTON
 205 #define HTZOOM              HTMAXBUTTON
 206 #define HTSIZEFIRST         HTLEFT
 207 #define HTSIZELAST          HTBOTTOMRIGHT
 208 #if(WINVER >= 0x0400)
 209 #define HTOBJECT            19
 210 #define HTCLOSE             20
 211 #define HTHELP              21
 212 #endif /* WINVER >= 0x0400 */
 213 
 214         
 215         public const int ACM_OPENA = 0x464;
 216         public const int ACM_OPENW = 0x467;
 217         public const int ADVF_ONLYONCE = 2;
 218         public const int ADVF_PRIMEFIRST = 4;
 219         public const int ARW_BOTTOMLEFT = 0;
 220         public const int ARW_BOTTOMRIGHT = 1;
 221         public const int ARW_DOWN = 4;
 222         public const int ARW_HIDE = 8;
 223         public const int ARW_LEFT = 0;
 224         public const int ARW_RIGHT = 0;
 225         public const int ARW_TOPLEFT = 2;
 226         public const int ARW_TOPRIGHT = 3;
 227         public const int ARW_UP = 4;
 228         public const int BDR_RAISED = 5;
 229         public const int BDR_RAISEDINNER = 4;
 230         public const int BDR_RAISEDOUTER = 1;
 231         public const int BDR_SUNKEN = 10;
 232         public const int BDR_SUNKENINNER = 8;
 233         public const int BDR_SUNKENOUTER = 2;
 234         public const int BF_ADJUST = 0x2000;
 235         public const int BF_BOTTOM = 8;
 236         public const int BF_FLAT = 0x4000;
 237         public const int BF_LEFT = 1;
 238         public const int BF_MIDDLE = 0x800;
 239         public const int BF_RIGHT = 4;
 240         public const int BF_TOP = 2;
 241         public const int BFFM_ENABLEOK = 0x465;
 242         public const int BFFM_INITIALIZED = 1;
 243         public const int BFFM_SELCHANGED = 2;
 244         public const int BFFM_SETSELECTION = 0x467;
 245         public const int BI_BITFIELDS = 3;
 246         public const int BI_RGB = 0;
 247         public const int BITMAPINFO_MAX_COLORSIZE = 0x100;
 248         public const int BITSPIXEL = 12;
 249         public const int BM_SETCHECK = 0xf1;
 250         public const int BM_SETSTATE = 0xf3;
 251         public const int BN_CLICKED = 0;
 252         public const int BS_3STATE = 5;
 253         public const int BS_BOTTOM = 0x800;
 254         public const int BS_CENTER = 0x300;
 255         public const int BS_DEFPUSHBUTTON = 1;
 256         public const int BS_GROUPBOX = 7;
 257         public const int BS_LEFT = 0x100;
 258         public const int BS_MULTILINE = 0x2000;
 259         public const int BS_OWNERDRAW = 11;
 260         public const int BS_PATTERN = 3;
 261         public const int BS_PUSHBUTTON = 0;
 262         public const int BS_PUSHLIKE = 0x1000;
 263         public const int BS_RADIOBUTTON = 4;
 264         public const int BS_RIGHT = 0x200;
 265         public const int BS_RIGHTBUTTON = 0x20;
 266         public const int BS_TOP = 0x400;
 267         public const int BS_VCENTER = 0xc00;
 268         public const int CB_ADDSTRING = 0x143;
 269         public const int CB_DELETESTRING = 0x144;
 270         public const int CB_ERR = -1;
 271         public const int CB_FINDSTRING = 0x14c;
 272         public const int CB_FINDSTRINGEXACT = 0x158;
 273         public const int CB_GETCURSEL = 0x147;
 274         public const int CB_GETDROPPEDSTATE = 0x157;
 275         public const int CB_GETEDITSEL = 320;
 276         public const int CB_GETITEMDATA = 0x150;
 277         public const int CB_GETITEMHEIGHT = 340;
 278         public const int CB_INSERTSTRING = 330;
 279         public const int CB_LIMITTEXT = 0x141;
 280         public const int CB_RESETCONTENT = 0x14b;
 281         public const int CB_SETCURSEL = 0x14e;
 282         public const int CB_SETDROPPEDWIDTH = 0x160;
 283         public const int CB_SETEDITSEL = 0x142;
 284         public const int CB_SETITEMHEIGHT = 0x153;
 285         public const int CB_SHOWDROPDOWN = 0x14f;
 286         public const int CBEM_GETITEMA = 0x404;
 287         public const int CBEM_GETITEMW = 0x40d;
 288         public const int CBEM_INSERTITEMA = 0x401;
 289         public const int CBEM_INSERTITEMW = 0x40b;
 290         public const int CBEM_SETITEMA = 0x405;
 291         public const int CBEM_SETITEMW = 0x40c;
 292         public const int CBEN_ENDEDITA = -805;
 293         public const int CBEN_ENDEDITW = -806;
 294         public const int CBN_DBLCLK = 2;
 295         public const int CBN_DROPDOWN = 7;
 296         public const int CBN_EDITCHANGE = 5;
 297         public const int CBN_SELCHANGE = 1;
 298         public const int CBN_SELENDOK = 9;
 299         public const int CBS_AUTOHSCROLL = 0x40;
 300         public const int CBS_DROPDOWN = 2;
 301         public const int CBS_DROPDOWNLIST = 3;
 302         public const int CBS_HASSTRINGS = 0x200;
 303         public const int CBS_NOINTEGRALHEIGHT = 0x400;
 304         public const int CBS_OWNERDRAWFIXED = 0x10;
 305         public const int CBS_OWNERDRAWVARIABLE = 0x20;
 306         public const int CBS_SIMPLE = 1;
 307         public const int CC_ANYCOLOR = 0x100;
 308         public const int CC_ENABLEHOOK = 0x10;
 309         public const int CC_FULLOPEN = 2;
 310         public const int CC_PREVENTFULLOPEN = 4;
 311         public const int CC_RGBINIT = 1;
 312         public const int CC_SHOWHELP = 8;
 313         public const int CC_SOLIDCOLOR = 0x80;
 314         public const int CCS_NODIVIDER = 0x40;
 315         public const int CCS_NOPARENTALIGN = 8;
 316         public const int CCS_NORESIZE = 4;
 317         public const int CDDS_ITEM = 0x10000;
 318         public const int CDDS_ITEMPREPAINT = 0x10001;
 319         public const int CDDS_POSTPAINT = 2;
 320         public const int CDDS_PREPAINT = 1;
 321         public const int CDDS_SUBITEM = 0x20000;
 322         public const int CDERR_DIALOGFAILURE = 0xffff;
 323         public const int CDERR_FINDRESFAILURE = 6;
 324         public const int CDERR_INITIALIZATION = 2;
 325         public const int CDERR_LOADRESFAILURE = 7;
 326         public const int CDERR_LOADSTRFAILURE = 5;
 327         public const int CDERR_LOCKRESFAILURE = 8;
 328         public const int CDERR_MEMALLOCFAILURE = 9;
 329         public const int CDERR_MEMLOCKFAILURE = 10;
 330         public const int CDERR_NOHINSTANCE = 4;
 331         public const int CDERR_NOHOOK = 11;
 332         public const int CDERR_NOTEMPLATE = 3;
 333         public const int CDERR_REGISTERMSGFAIL = 12;
 334         public const int CDERR_STRUCTSIZE = 1;
 335         public const int CDIS_CHECKED = 8;
 336         public const int CDIS_DEFAULT = 0x20;
 337         public const int CDIS_DISABLED = 4;
 338         public const int CDIS_FOCUS = 0x10;
 339         public const int CDIS_GRAYED = 2;
 340         public const int CDIS_HOT = 0x40;
 341         public const int CDIS_INDETERMINATE = 0x100;
 342         public const int CDIS_MARKED = 0x80;
 343         public const int CDIS_SELECTED = 1;
 344         public const int CDRF_DODEFAULT = 0;
 345         public const int CDRF_NEWFONT = 2;
 346         public const int CDRF_NOTIFYITEMDRAW = 0x20;
 347         public const int CDRF_NOTIFYPOSTPAINT = 0x10;
 348         public const int CDRF_NOTIFYSUBITEMDRAW = 0x20;
 349         public const int CDRF_SKIPDEFAULT = 4;
 350         public const int CF_APPLY = 0x200;
 351         public const int CF_BITMAP = 2;
 352         public const int CF_DIB = 8;
 353         public const int CF_DIF = 5;
 354         public const int CF_EFFECTS = 0x100;
 355         public const int CF_ENABLEHOOK = 8;
 356         public const int CF_ENHMETAFILE = 14;
 357         public const int CF_FIXEDPITCHONLY = 0x4000;
 358         public const int CF_FORCEFONTEXIST = 0x10000;
 359         public const int CF_HDROP = 15;
 360         public const int CF_INITTOLOGFONTSTRUCT = 0x40;
 361         public const int CF_LIMITSIZE = 0x2000;
 362         public const int CF_LOCALE = 0x10;
 363         public const int CF_METAFILEPICT = 3;
 364         public const int CF_NOSIMULATIONS = 0x1000;
 365         public const int CF_NOVECTORFONTS = 0x800;
 366         public const int CF_NOVERTFONTS = 0x1000000;
 367         public const int CF_OEMTEXT = 7;
 368         public const int CF_PALETTE = 9;
 369         public const int CF_PENDATA = 10;
 370         public const int CF_RIFF = 11;
 371         public const int CF_SCREENFONTS = 1;
 372         public const int CF_SCRIPTSONLY = 0x400;
 373         public const int CF_SELECTSCRIPT = 0x400000;
 374         public const int CF_SHOWHELP = 4;
 375         public const int CF_SYLK = 4;
 376         public const int CF_TEXT = 1;
 377         public const int CF_TIFF = 6;
 378         public const int CF_TTONLY = 0x40000;
 379         public const int CF_UNICODETEXT = 13;
 380         public const int CF_WAVE = 12;
 381         public const int CFERR_MAXLESSTHANMIN = 0x2002;
 382         public const int CFERR_NOFONTS = 0x2001;
 383         public const int CHILDID_SELF = 0;
 384         public const int CLR_DEFAULT = -16777216;
 385         public const int CLR_NONE = -1;
 386         public const int cmb4 = 0x473;
 387         public const int COLOR_WINDOW = 5;
 388         public const int CONNECT_E_CANNOTCONNECT = -2147220990;
 389         public const int CONNECT_E_NOCONNECTION = -2147220992;
 390         public const int CP_WINANSI = 0x3ec;
 391         public const int CS_DBLCLKS = 8;
 392         public const int CSIDL_APPDATA = 0x1a;
 393         public const int CSIDL_COMMON_APPDATA = 0x23;
 394         public const int CSIDL_COOKIES = 0x21;
 395         public const int CSIDL_DESKTOP = 0;
 396         public const int CSIDL_DESKTOPDIRECTORY = 0x10;
 397         public const int CSIDL_FAVORITES = 6;
 398         public const int CSIDL_HISTORY = 0x22;
 399         public const int CSIDL_INTERNET = 1;
 400         public const int CSIDL_INTERNET_CACHE = 0x20;
 401         public const int CSIDL_LOCAL_APPDATA = 0x1c;
 402         public const int CSIDL_PERSONAL = 5;
 403         public const int CSIDL_PROGRAM_FILES = 0x26;
 404         public const int CSIDL_PROGRAM_FILES_COMMON = 0x2b;
 405         public const int CSIDL_PROGRAMS = 2;
 406         public const int CSIDL_RECENT = 8;
 407         public const int CSIDL_SENDTO = 9;
 408         public const int CSIDL_STARTMENU = 11;
 409         public const int CSIDL_STARTUP = 7;
 410         public const int CSIDL_SYSTEM = 0x25;
 411         public const int CSIDL_TEMPLATES = 0x15;
 412         public const int CTRLINFO_EATS_ESCAPE = 2;
 413         public const int CTRLINFO_EATS_RETURN = 1;
 414         public const int CW_USEDEFAULT = -2147483648;
 415         public const int CWP_SKIPINVISIBLE = 1;
 416         public const int DCX_CACHE = 2;
 417         public const int DCX_LOCKWINDOWUPDATE = 0x400;
 418         public const int DCX_WINDOW = 1;
 419         public const int DEFAULT_GUI_FONT = 0x11;
 420         public const int DFC_BUTTON = 4;
 421         public const int DFC_CAPTION = 1;
 422         public const int DFC_MENU = 2;
 423         public const int DFC_SCROLL = 3;
 424         public const int DFCS_BUTTON3STATE = 8;
 425         public const int DFCS_BUTTONCHECK = 0;
 426         public const int DFCS_BUTTONPUSH = 0x10;
 427         public const int DFCS_BUTTONRADIO = 4;
 428         public const int DFCS_CAPTIONCLOSE = 0;
 429         public const int DFCS_CAPTIONHELP = 4;
 430         public const int DFCS_CAPTIONMAX = 2;
 431         public const int DFCS_CAPTIONMIN = 1;
 432         public const int DFCS_CAPTIONRESTORE = 3;
 433         public const int DFCS_CHECKED = 0x400;
 434         public const int DFCS_FLAT = 0x4000;
 435         public const int DFCS_INACTIVE = 0x100;
 436         public const int DFCS_MENUARROW = 0;
 437         public const int DFCS_MENUBULLET = 2;
 438         public const int DFCS_MENUCHECK = 1;
 439         public const int DFCS_PUSHED = 0x200;
 440         public const int DFCS_SCROLLCOMBOBOX = 5;
 441         public const int DFCS_SCROLLDOWN = 1;
 442         public const int DFCS_SCROLLLEFT = 2;
 443         public const int DFCS_SCROLLRIGHT = 3;
 444         public const int DFCS_SCROLLUP = 0;
 445         public const int DI_NORMAL = 3;
 446         public const int DIB_RGB_COLORS = 0;
 447         public const int DISP_E_EXCEPTION = -2147352567;
 448         public const int DISP_E_MEMBERNOTFOUND = -2147352573;
 449         public const int DISP_E_PARAMNOTFOUND = -2147352572;
 450         public const int DISPATCH_METHOD = 1;
 451         public const int DISPATCH_PROPERTYGET = 2;
 452         public const int DISPATCH_PROPERTYPUT = 4;
 453         public const int DISPID_PROPERTYPUT = -3;
 454         public const int DISPID_UNKNOWN = -1;
 455         public const int DLGC_WANTALLKEYS = 4;
 456         public const int DLGC_WANTARROWS = 1;
 457         public const int DLGC_WANTCHARS = 0x80;
 458         public const int DLGC_WANTTAB = 2;
 459         public const int DRAGDROP_E_ALREADYREGISTERED = -2147221247;
 460         public const int DRAGDROP_E_NOTREGISTERED = -2147221248;
 461         public const int DT_CALCRECT = 0x400;
 462         public const int DT_EDITCONTROL = 0x2000;
 463         public const int DT_END_ELLIPSIS = 0x8000;
 464         public const int DT_EXPANDTABS = 0x40;
 465         public const int DT_LEFT = 0;
 466         public const int DT_NOCLIP = 0x100;
 467         public const int DT_NOPREFIX = 0x800;
 468         public const int DT_RIGHT = 2;
 469         public const int DT_RTLREADING = 0x20000;
 470         public const int DT_SINGLELINE = 0x20;
 471         public const int DT_VCENTER = 4;
 472         public static readonly int DTM_SETFORMAT;
 473         public const int DTM_SETFORMATA = 0x1005;
 474         public const int DTM_SETFORMATW = 0x1032;
 475         public const int DTM_SETMCCOLOR = 0x1006;
 476         public const int DTM_SETMCFONT = 0x1009;
 477         public const int DTM_SETRANGE = 4100;
 478         public const int DTM_SETSYSTEMTIME = 0x1002;
 479         public const int DTN_CLOSEUP = -753;
 480         public const int DTN_DATETIMECHANGE = -759;
 481         public const int DTN_DROPDOWN = -754;
 482         public static readonly int DTN_FORMAT;
 483         public const int DTN_FORMATA = -756;
 484         public static readonly int DTN_FORMATQUERY;
 485         public const int DTN_FORMATQUERYA = -755;
 486         public const int DTN_FORMATQUERYW = -742;
 487         public const int DTN_FORMATW = -743;
 488         public static readonly int DTN_USERSTRING;
 489         public const int DTN_USERSTRINGA = -758;
 490         public const int DTN_USERSTRINGW = -745;
 491         public static readonly int DTN_WMKEYDOWN;
 492         public const int DTN_WMKEYDOWNA = -757;
 493         public const int DTN_WMKEYDOWNW = -744;
 494         public const int DTS_LONGDATEFORMAT = 4;
 495         public const int DTS_RIGHTALIGN = 0x20;
 496         public const int DTS_SHOWNONE = 2;
 497         public const int DTS_TIMEFORMAT = 9;
 498         public const int DTS_UPDOWN = 1;
 499         public const int DUPLICATE = 6;
 500         public const int DUPLICATE_SAME_ACCESS = 2;
 501         public const int DV_E_DVASPECT = -2147221397;
 502         public const int DVASPECT_CONTENT = 1;
 503         public const int DVASPECT_OPAQUE = 0x10;
 504         public const int DVASPECT_TRANSPARENT = 0x20;
 505         public const int E_ABORT = -2147467260;
 506         public const int E_FAIL = -2147467259;
 507         public const int E_INVALIDARG = -2147024809;
 508         public const int E_NOINTERFACE = -2147467262;
 509         public const int E_NOTIMPL = -2147467263;
 510         public const int E_OUTOFMEMORY = -2147024882;
 511         public const int E_UNEXPECTED = -2147418113;
 512         public const int EC_LEFTMARGIN = 1;
 513         public const int EC_RIGHTMARGIN = 2;
 514         public const int EDGE_BUMP = 9;
 515         public const int EDGE_ETCHED = 6;
 516         public const int EDGE_RAISED = 5;
 517         public const int EDGE_SUNKEN = 10;
 518         public const int EM_CANUNDO = 0xc6;
 519         public const int EM_CHARFROMPOS = 0xd7;
 520         public const int EM_EMPTYUNDOBUFFER = 0xcd;
 521         public const int EM_GETLINE = 0xc4;
 522         public const int EM_GETLINECOUNT = 0xba;
 523         public const int EM_GETMODIFY = 0xb8;
 524         public const int EM_GETSEL = 0xb0;
 525         public const int EM_LIMITTEXT = 0xc5;
 526         public const int EM_POSFROMCHAR = 0xd6;
 527         public const int EM_REPLACESEL = 0xc2;
 528         public const int EM_SCROLL = 0xb5;
 529         public const int EM_SCROLLCARET = 0xb7;
 530         public const int EM_SETMARGINS = 0xd3;
 531         public const int EM_SETMODIFY = 0xb9;
 532         public const int EM_SETPASSWORDCHAR = 0xcc;
 533         public const int EM_SETREADONLY = 0xcf;
 534         public const int EM_SETSEL = 0xb1;
 535         public const int EM_UNDO = 0xc7;
 536         public static readonly int EMR_POLYTEXTOUT;
 537         public const int EMR_POLYTEXTOUTA = 0x60;
 538         public const int EMR_POLYTEXTOUTW = 0x61;
 539         public const int EN_ALIGN_LTR_EC = 0x700;
 540         public const int EN_ALIGN_RTL_EC = 0x701;
 541         public const int EN_CHANGE = 0x300;
 542         public const int EN_HSCROLL = 0x601;
 543         public const int EN_VSCROLL = 0x602;
 544         public const int ES_AUTOHSCROLL = 0x80;
 545         public const int ES_AUTOVSCROLL = 0x40;
 546         public const int ES_CENTER = 1;
 547         public const int ES_LEFT = 0;
 548         public const int ES_LOWERCASE = 0x10;
 549         public const int ES_MULTILINE = 4;
 550         public const int ES_NOHIDESEL = 0x100;
 551         public const int ES_READONLY = 0x800;
 552         public const int ES_RIGHT = 2;
 553         public const int ES_UPPERCASE = 8;
 554         public const int ETO_CLIPPED = 4;
 555         public const int ETO_OPAQUE = 2;
 556         public const int FADF_BSTR = 0x100;
 557         public const int FADF_DISPATCH = 0x400;
 558         public const int FADF_UNKNOWN = 0x200;
 559         public const int FADF_VARIANT = 0x800;
 560         public const int FALT = 0x10;
 561         public const int FNERR_BUFFERTOOSMALL = 0x3003;
 562         public const int FNERR_INVALIDFILENAME = 12290;
 563         public const int FNERR_SUBCLASSFAILURE = 0x3001;
 564         public const int FORMAT_MESSAGE_FROM_SYSTEM = 0x1000;
 565         public const int FORMAT_MESSAGE_IGNORE_INSERTS = 0x200;
 566         public const int FRERR_BUFFERLENGTHZERO = 0x4001;
 567         public const int FSHIFT = 4;
 568         public const int FVIRTKEY = 1;
 569         public const int GDI_ERROR = -1;
 570         public const int GDT_NONE = 1;
 571         public const int GDT_VALID = 0;
 572         public const int GDTR_MAX = 2;
 573         public const int GDTR_MIN = 1;
 574         public const int GMEM_DDESHARE = 0x2000;
 575         public const int GMEM_MOVEABLE = 2;
 576         public const int GMEM_ZEROINIT = 0x40;
 577         public const int GMR_DAYSTATE = 1;
 578         public const int GMR_VISIBLE = 0;
 579         public const int GW_CHILD = 5;
 580         public const int GW_HWNDNEXT = 2;
 581         public const int GW_HWNDPREV = 3;
 582         public const int GWL_EXSTYLE = -20;
 583         public const int GWL_HWNDPARENT = -8;
 584         public const int GWL_ID = -12;
 585         public const int GWL_STYLE = -16;
 586         public const int GWL_WNDPROC = -4;
 587         public const int HC_ACTION = 0;
 588         public const int HC_GETNEXT = 1;
 589         public const int HC_SKIP = 2;
 590         public const int HCF_HIGHCONTRASTON = 1;
 591         public static readonly int HDM_GETITEM;
 592         public const int HDM_GETITEMA = 0x1203;
 593         public const int HDM_GETITEMCOUNT = 0x1200;
 594         public const int HDM_GETITEMW = 0x120b;
 595         public static readonly int HDM_INSERTITEM;
 596         public const int HDM_INSERTITEMA = 0x1201;
 597         public const int HDM_INSERTITEMW = 0x120a;
 598         public static readonly int HDM_SETITEM;
 599         public const int HDM_SETITEMA = 0x1204;
 600         public const int HDM_SETITEMW = 4620;
 601         public static readonly int HDN_BEGINTRACK;
 602         public const int HDN_BEGINTRACKA = -306;
 603         public const int HDN_BEGINTRACKW = -326;
 604         public static readonly int HDN_DIVIDERDBLCLICK;
 605         public const int HDN_DIVIDERDBLCLICKA = -305;
 606         public const int HDN_DIVIDERDBLCLICKW = -325;
 607         public static readonly int HDN_ENDTRACK;
 608         public const int HDN_ENDTRACKA = -307;
 609         public const int HDN_ENDTRACKW = -327;
 610         public static readonly int HDN_GETDISPINFO;
 611         public const int HDN_GETDISPINFOA = -309;
 612         public const int HDN_GETDISPINFOW = -329;
 613         public static readonly int HDN_ITEMCHANGED;
 614         public const int HDN_ITEMCHANGEDA = -301;
 615         public const int HDN_ITEMCHANGEDW = -321;
 616         public static readonly int HDN_ITEMCHANGING;
 617         public const int HDN_ITEMCHANGINGA = -300;
 618         public const int HDN_ITEMCHANGINGW = -320;
 619         public static readonly int HDN_ITEMCLICK;
 620         public const int HDN_ITEMCLICKA = -302;
 621         public const int HDN_ITEMCLICKW = -322;
 622         public static readonly int HDN_ITEMDBLCLICK;
 623         public const int HDN_ITEMDBLCLICKA = -303;
 624         public const int HDN_ITEMDBLCLICKW = -323;
 625         public static readonly int HDN_TRACK;
 626         public const int HDN_TRACKA = -308;
 627         public const int HDN_TRACKW = -328;
 628         public const int HELPINFO_WINDOW = 1;
 629         public static readonly int HH_FTS_DEFAULT_PROXIMITY;
 630         public const int HOLLOW_BRUSH = 5;
 631         public const int HTCLIENT = 1;
 632         public const int HTNOWHERE = 0;
 633         public static HandleRef HWND_BOTTOM;
 634         public static HandleRef HWND_NOTOPMOST;
 635         public static HandleRef HWND_TOP;
 636         public static HandleRef HWND_TOPMOST;
 637         public const int ICC_BAR_CLASSES = 4;
 638         public const int ICC_DATE_CLASSES = 0x100;
 639         public const int ICC_LISTVIEW_CLASSES = 1;
 640         public const int ICC_PROGRESS_CLASS = 0x20;
 641         public const int ICC_TAB_CLASSES = 8;
 642         public const int ICC_TREEVIEW_CLASSES = 2;
 643         public const int ICON_BIG = 1;
 644         public const int ICON_SMALL = 0;
 645         public const int IDC_APPSTARTING = 32650;
 646         public const int IDC_ARROW = 0x7f00;
 647         public const int IDC_CROSS = 0x7f03;
 648         public const int IDC_HELP = 0x7f8b;
 649         public const int IDC_IBEAM = 0x7f01;
 650         public const int IDC_NO = 0x7f88;
 651         public const int IDC_SIZEALL = 0x7f86;
 652         public const int IDC_SIZENESW = 0x7f83;
 653         public const int IDC_SIZENS = 0x7f85;
 654         public const int IDC_SIZENWSE = 0x7f82;
 655         public const int IDC_SIZEWE = 0x7f84;
 656         public const int IDC_UPARROW = 0x7f04;
 657         public const int IDC_WAIT = 0x7f02;
 658         public const int ILC_COLOR = 0;
 659         public const int ILC_COLOR16 = 0x10;
 660         public const int ILC_COLOR24 = 0x18;
 661         public const int ILC_COLOR32 = 0x20;
 662         public const int ILC_COLOR4 = 4;
 663         public const int ILC_COLOR8 = 8;
 664         public const int ILC_MASK = 1;
 665         public const int ILD_MASK = 0x10;
 666         public const int ILD_NORMAL = 0;
 667         public const int ILD_ROP = 0x40;
 668         public const int ILD_TRANSPARENT = 1;
 669         public const int IMAGE_CURSOR = 2;
 670         public const int IMAGE_ICON = 1;
 671         public const int IME_CMODE_FULLSHAPE = 8;
 672         public const int IME_CMODE_KATAKANA = 2;
 673         public const int IME_CMODE_NATIVE = 1;
 674         public const int INPLACE_E_NOTOOLSPACE = -2147221087;
 675         public static IntPtr InvalidIntPtr;
 676         public const int KEYEVENTF_KEYUP = 2;
 677         public const int LANG_NEUTRAL = 0;
 678         public static readonly int LANG_USER_DEFAULT;
 679         public const int LB_ADDSTRING = 0x180;
 680         public const int LB_DELETESTRING = 0x182;
 681         public const int LB_ERR = -1;
 682         public const int LB_ERRSPACE = -2;
 683         public const int LB_FINDSTRING = 0x18f;
 684         public const int LB_FINDSTRINGEXACT = 0x1a2;
 685         public const int LB_GETCARETINDEX = 0x19f;
 686         public const int LB_GETCURSEL = 0x188;
 687         public const int LB_GETITEMHEIGHT = 0x1a1;
 688         public const int LB_GETITEMRECT = 0x198;
 689         public const int LB_GETSEL = 0x187;
 690         public const int LB_GETSELCOUNT = 400;
 691         public const int LB_GETSELITEMS = 0x191;
 692         public const int LB_GETTEXT = 0x189;
 693         public const int LB_GETTEXTLEN = 0x18a;
 694         public const int LB_GETTOPINDEX = 0x18e;
 695         public const int LB_INSERTSTRING = 0x181;
 696         public const int LB_ITEMFROMPOINT = 0x1a9;
 697         public const int LB_RESETCONTENT = 0x184;
 698         public const int LB_SETCOLUMNWIDTH = 0x195;
 699         public const int LB_SETCURSEL = 390;
 700         public const int LB_SETHORIZONTALEXTENT = 0x194;
 701         public const int LB_SETITEMHEIGHT = 0x1a0;
 702         public const int LB_SETLOCALE = 0x1a5;
 703         public const int LB_SETSEL = 0x185;
 704         public const int LB_SETTOPINDEX = 0x197;
 705         public const int LBN_DBLCLK = 2;
 706         public const int LBN_SELCHANGE = 1;
 707         public const int LBS_DISABLENOSCROLL = 0x1000;
 708         public const int LBS_EXTENDEDSEL = 0x800;
 709         public const int LBS_HASSTRINGS = 0x40;
 710         public const int LBS_MULTICOLUMN = 0x200;
 711         public const int LBS_MULTIPLESEL = 8;
 712         public const int LBS_NOINTEGRALHEIGHT = 0x100;
 713         public const int LBS_NOSEL = 0x4000;
 714         public const int LBS_NOTIFY = 1;
 715         public const int LBS_OWNERDRAWFIXED = 0x10;
 716         public const int LBS_OWNERDRAWVARIABLE = 0x20;
 717         public const int LBS_USETABSTOPS = 0x80;
 718         public const int LBS_WANTKEYBOARDINPUT = 0x400;
 719         public const int LOCALE_IFIRSTDAYOFWEEK = 0x100c;
 720         public static readonly int LOCALE_USER_DEFAULT;
 721         public const int LOCK_EXCLUSIVE = 2;
 722         public const int LOCK_ONLYONCE = 4;
 723         public const int LOCK_WRITE = 1;
 724         public const int LOGPIXELSX = 0x58;
 725         public const int LOGPIXELSY = 90;
 726         public const int LVA_ALIGNLEFT = 1;
 727         public const int LVA_ALIGNTOP = 2;
 728         public const int LVA_DEFAULT = 0;
 729         public const int LVA_SNAPTOGRID = 5;
 730         public const int LVCF_FMT = 1;
 731         public const int LVCF_IMAGE = 0x10;
 732         public const int LVCF_ORDER = 0x20;
 733         public const int LVCF_TEXT = 4;
 734         public const int LVCF_WIDTH = 2;
 735         public const int LVFI_PARAM = 1;
 736         public const int LVHT_ONITEM = 14;
 737         public const int LVHT_ONITEMSTATEICON = 8;
 738         public const int LVIF_IMAGE = 2;
 739         public const int LVIF_PARAM = 4;
 740         public const int LVIF_STATE = 8;
 741         public const int LVIF_TEXT = 1;
 742         public const int LVIR_BOUNDS = 0;
 743         public const int LVIR_ICON = 1;
 744         public const int LVIR_LABEL = 2;
 745         public const int LVIR_SELECTBOUNDS = 3;
 746         public const int LVIS_CUT = 4;
 747         public const int LVIS_DROPHILITED = 8;
 748         public const int LVIS_FOCUSED = 1;
 749         public const int LVIS_OVERLAYMASK = 3840;
 750         public const int LVIS_SELECTED = 2;
 751         public const int LVIS_STATEIMAGEMASK = 61440;
 752         public const int LVM_ARRANGE = 0x1016;
 753         public const int LVM_DELETEALLITEMS = 0x1009;
 754         public const int LVM_DELETECOLUMN = 0x101c;
 755         public const int LVM_DELETEITEM = 0x1008;
 756         public static readonly int LVM_EDITLABEL;
 757         public const int LVM_EDITLABELA = 0x1017;
 758         public const int LVM_EDITLABELW = 0x1076;
 759         public const int LVM_ENSUREVISIBLE = 0x1013;
 760         public static readonly int LVM_FINDITEM;
 761         public const int LVM_FINDITEMA = 0x100d;
 762         public const int LVM_FINDITEMW = 0x1053;
 763         public static readonly int LVM_GETCOLUMN;
 764         public const int LVM_GETCOLUMNA = 0x1019;
 765         public const int LVM_GETCOLUMNW = 0x105f;
 766         public const int LVM_GETCOLUMNWIDTH = 0x101d;
 767         public const int LVM_GETHEADER = 0x101f;
 768         public const int LVM_GETHOTITEM = 0x103d;
 769         public static readonly int LVM_GETISEARCHSTRING;
 770         public const int LVM_GETISEARCHSTRINGA = 0x1034;
 771         public const int LVM_GETISEARCHSTRINGW = 0x1075;
 772         public static readonly int LVM_GETITEM;
 773         public const int LVM_GETITEMA = 0x1005;
 774         public const int LVM_GETITEMRECT = 4110;
 775         public const int LVM_GETITEMSTATE = 4140;
 776         public static readonly int LVM_GETITEMTEXT;
 777         public const int LVM_GETITEMTEXTA = 0x102d;
 778         public const int LVM_GETITEMTEXTW = 0x1073;
 779         public const int LVM_GETITEMW = 0x104b;
 780         public const int LVM_GETNEXTITEM = 0x100c;
 781         public const int LVM_GETSELECTEDCOUNT = 0x1032;
 782         public static readonly int LVM_GETSTRINGWIDTH;
 783         public const int LVM_GETSTRINGWIDTHA = 0x1011;
 784         public const int LVM_GETSTRINGWIDTHW = 0x1057;
 785         public const int LVM_GETTOPINDEX = 0x1027;
 786         public const int LVM_HITTEST = 0x1012;
 787         public static readonly int LVM_INSERTCOLUMN;
 788         public const int LVM_INSERTCOLUMNA = 0x101b;
 789         public const int LVM_INSERTCOLUMNW = 0x1061;
 790         public static readonly int LVM_INSERTITEM;
 791         public const int LVM_INSERTITEMA = 0x1007;
 792         public const int LVM_INSERTITEMW = 0x104d;
 793         public const int LVM_SETBKCOLOR = 0x1001;
 794         public static readonly int LVM_SETCOLUMN;
 795         public const int LVM_SETCOLUMNA = 0x101a;
 796         public const int LVM_SETCOLUMNW = 0x1060;
 797         public const int LVM_SETCOLUMNWIDTH = 0x101e;
 798         public const int LVM_SETEXTENDEDLISTVIEWSTYLE = 4150;
 799         public const int LVM_SETIMAGELIST = 0x1003;
 800         public static readonly int LVM_SETITEM;
 801         public const int LVM_SETITEMA = 0x1006;
 802         public const int LVM_SETITEMCOUNT = 0x102f;
 803         public const int LVM_SETITEMSTATE = 0x102b;
 804         public static readonly int LVM_SETITEMTEXT;
 805         public const int LVM_SETITEMTEXTA = 0x102e;
 806         public const int LVM_SETITEMTEXTW = 0x1074;
 807         public const int LVM_SETITEMW = 0x104c;
 808         public const int LVM_SETTEXTBKCOLOR = 0x1026;
 809         public const int LVM_SETTEXTCOLOR = 0x1024;
 810         public const int LVM_SORTITEMS = 0x1030;
 811         public const int LVN_BEGINDRAG = -109;
 812         public static readonly int LVN_BEGINLABELEDIT;
 813         public const int LVN_BEGINLABELEDITA = -105;
 814         public const int LVN_BEGINLABELEDITW = -175;
 815         public const int LVN_BEGINRDRAG = -111;
 816         public const int LVN_COLUMNCLICK = -108;
 817         public static readonly int LVN_ENDLABELEDIT;
 818         public const int LVN_ENDLABELEDITA = -106;
 819         public const int LVN_ENDLABELEDITW = -176;
 820         public static readonly int LVN_GETDISPINFO;
 821         public const int LVN_GETDISPINFOA = -150;
 822         public const int LVN_GETDISPINFOW = -177;
 823         public const int LVN_ITEMACTIVATE = -114;
 824         public const int LVN_ITEMCHANGED = -101;
 825         public const int LVN_ITEMCHANGING = -100;
 826         public const int LVN_KEYDOWN = -155;
 827         public static readonly int LVN_ODFINDITEM;
 828         public const int LVN_ODFINDITEMA = -152;
 829         public const int LVN_ODFINDITEMW = -179;
 830         public static readonly int LVN_SETDISPINFO;
 831         public const int LVN_SETDISPINFOA = -151;
 832         public const int LVN_SETDISPINFOW = -178;
 833         public const int LVNI_FOCUSED = 1;
 834         public const int LVNI_SELECTED = 2;
 835         public const int LVS_ALIGNLEFT = 0x800;
 836         public const int LVS_ALIGNTOP = 0;
 837         public const int LVS_AUTOARRANGE = 0x100;
 838         public const int LVS_EDITLABELS = 0x200;
 839         public const int LVS_EX_CHECKBOXES = 4;
 840         public const int LVS_EX_FULLROWSELECT = 0x20;
 841         public const int LVS_EX_GRIDLINES = 1;
 842         public const int LVS_EX_HEADERDRAGDROP = 0x10;
 843         public const int LVS_EX_ONECLICKACTIVATE = 0x40;
 844         public const int LVS_EX_TRACKSELECT = 8;
 845         public const int LVS_EX_TWOCLICKACTIVATE = 0x80;
 846         public const int LVS_ICON = 0;
 847         public const int LVS_LIST = 3;
 848         public const int LVS_NOCOLUMNHEADER = 0x4000;
 849         public const int LVS_NOLABELWRAP = 0x80;
 850         public const int LVS_NOSCROLL = 0x2000;
 851         public const int LVS_NOSORTHEADER = 0x8000;
 852         public const int LVS_REPORT = 1;
 853         public const int LVS_SHAREIMAGELISTS = 0x40;
 854         public const int LVS_SHOWSELALWAYS = 8;
 855         public const int LVS_SINGLESEL = 4;
 856         public const int LVS_SMALLICON = 2;
 857         public const int LVS_SORTASCENDING = 0x10;
 858         public const int LVS_SORTDESCENDING = 0x20;
 859         public const int LVSIL_NORMAL = 0;
 860         public const int LVSIL_SMALL = 1;
 861         public const int LVSIL_STATE = 2;
 862         public const int LWA_ALPHA = 2;
 863         public const int LWA_COLORKEY = 1;
 864         public const int MAX_PATH = 260;
 865         public const int MB_OK = 0;
 866         public const int MCHT_CALENDAR = 0x20000;
 867         public const int MCHT_CALENDARBK = 0x20000;
 868         public const int MCHT_CALENDARDATE = 0x20001;
 869         public const int MCHT_CALENDARDATENEXT = 0x1020001;
 870         public const int MCHT_CALENDARDATEPREV = 0x2020001;
 871         public const int MCHT_CALENDARDAY = 0x20002;
 872         public const int MCHT_CALENDARWEEKNUM = 0x20003;
 873         public const int MCHT_TITLE = 0x10000;
 874         public const int MCHT_TITLEBK = 0x10000;
 875         public const int MCHT_TITLEBTNNEXT = 0x1010003;
 876         public const int MCHT_TITLEBTNPREV = 0x2010003;
 877         public const int MCHT_TITLEMONTH = 0x10001;
 878         public const int MCHT_TITLEYEAR = 0x10002;
 879         public const int MCHT_TODAYLINK = 0x30000;
 880         public const int MCM_GETMAXTODAYWIDTH = 0x1015;
 881         public const int MCM_GETMINREQRECT = 0x1009;
 882         public const int MCM_GETMONTHRANGE = 0x1007;
 883         public const int MCM_GETTODAY = 0x100d;
 884         public const int MCM_HITTEST = 4110;
 885         public const int MCM_SETCOLOR = 0x100a;
 886         public const int MCM_SETFIRSTDAYOFWEEK = 0x100f;
 887         public const int MCM_SETMAXSELCOUNT = 4100;
 888         public const int MCM_SETMONTHDELTA = 0x1014;
 889         public const int MCM_SETRANGE = 0x1012;
 890         public const int MCM_SETSELRANGE = 0x1006;
 891         public const int MCM_SETTODAY = 0x100c;
 892         public const int MCN_GETDAYSTATE = -747;
 893         public const int MCN_SELCHANGE = -749;
 894         public const int MCN_SELECT = -746;
 895         public const int MCS_DAYSTATE = 1;
 896         public const int MCS_MULTISELECT = 2;
 897         public const int MCS_NOTODAY = 0x10;
 898         public const int MCS_NOTODAYCIRCLE = 8;
 899         public const int MCS_WEEKNUMBERS = 4;
 900         public const int MCSC_MONTHBK = 4;
 901         public const int MCSC_TEXT = 1;
 902         public const int MCSC_TITLEBK = 2;
 903         public const int MCSC_TITLETEXT = 3;
 904         public const int MCSC_TRAILINGTEXT = 5;
 905         public const int MDITILE_HORIZONTAL = 1;
 906         public const int MDITILE_VERTICAL = 0;
 907         public const int MEMBERID_NIL = -1;
 908         public const int MF_BYCOMMAND = 0;
 909         public const int MF_BYPOSITION = 0x400;
 910         public const int MF_ENABLED = 0;
 911         public const int MF_GRAYED = 1;
 912         public const int MF_POPUP = 0x10;
 913         public const int MF_SYSMENU = 0x2000;
 914         public const int MFT_MENUBREAK = 0x40;
 915         public const int MFT_RIGHTJUSTIFY = 0x4000;
 916         public const int MFT_RIGHTORDER = 0x2000;
 917         public const int MFT_SEPARATOR = 0x800;
 918         public const int MIIM_DATA = 0x20;
 919         public const int MIIM_ID = 2;
 920         public const int MIIM_STATE = 1;
 921         public const int MIIM_SUBMENU = 4;
 922         public const int MIIM_TYPE = 0x10;
 923         public const int MK_CONTROL = 8;
 924         public const int MK_LBUTTON = 1;
 925         public const int MK_MBUTTON = 0x10;
 926         public const int MK_RBUTTON = 2;
 927         public const int MK_SHIFT = 4;
 928         public const int MM_ANISOTROPIC = 8;
 929         public const int MM_TEXT = 1;
 930         public const int MNC_EXECUTE = 2;
 931         public const string MOUSEZ_CLASSNAME = "MouseZ";
 932         public const string MOUSEZ_TITLE = "Magellan MSWHEEL";
 933         public const string MSH_MOUSEWHEEL = "MSWHEEL_ROLLMSG";
 934         public const string MSH_SCROLL_LINES = "MSH_SCROLL_LINES_MSG";
 935         public const int NFR_ANSI = 1;
 936         public const int NFR_UNICODE = 2;
 937         public const int NIF_ICON = 2;
 938         public const int NIF_MESSAGE = 1;
 939         public const int NIF_TIP = 4;
 940         public const int NIM_ADD = 0;
 941         public const int NIM_DELETE = 2;
 942         public const int NIM_MODIFY = 1;
 943         public const int NM_CLICK = -2;
 944         public const int NM_CUSTOMDRAW = -12;
 945         public const int NM_DBLCLK = -3;
 946         public const int NM_RCLICK = -5;
 947         public const int NM_RDBLCLK = -6;
 948         public const int NM_RELEASEDCAPTURE = -16;
 949         public static HandleRef NullHandleRef;
 950         public const int OBJ_BITMAP = 7;
 951         public const int OBJ_BRUSH = 2;
 952         public const int OBJ_DC = 3;
 953         public const int OBJ_ENHMETADC = 12;
 954         public const int OBJ_EXTPEN = 11;
 955         public const int OBJ_FONT = 6;
 956         public const int OBJ_MEMDC = 10;
 957         public const int OBJ_METADC = 4;
 958         public const int OBJ_METAFILE = 9;
 959         public const int OBJ_PAL = 5;
 960         public const int OBJ_PEN = 1;
 961         public const int OBJ_REGION = 8;
 962         public const int OBJID_CLIENT = -4;
 963         public const int ODS_CHECKED = 8;
 964         public const int ODS_COMBOBOXEDIT = 0x1000;
 965         public const int ODS_DEFAULT = 0x20;
 966         public const int ODS_DISABLED = 4;
 967         public const int ODS_FOCUS = 0x10;
 968         public const int ODS_GRAYED = 2;
 969         public const int ODS_HOTLIGHT = 0x40;
 970         public const int ODS_INACTIVE = 0x80;
 971         public const int ODS_NOACCEL = 0x100;
 972         public const int ODS_NOFOCUSRECT = 0x200;
 973         public const int ODS_SELECTED = 1;
 974         public const int OFN_ALLOWMULTISELECT = 0x200;
 975         public const int OFN_CREATEPROMPT = 0x2000;
 976         public const int OFN_ENABLEHOOK = 0x20;
 977         public const int OFN_ENABLESIZING = 0x800000;
 978         public const int OFN_EXPLORER = 0x80000;
 979         public const int OFN_FILEMUSTEXIST = 0x1000;
 980         public const int OFN_HIDEREADONLY = 4;
 981         public const int OFN_NOCHANGEDIR = 8;
 982         public const int OFN_NODEREFERENCELINKS = 0x100000;
 983         public const int OFN_NOVALIDATE = 0x100;
 984         public const int OFN_OVERWRITEPROMPT = 2;
 985         public const int OFN_PATHMUSTEXIST = 0x800;
 986         public const int OFN_READONLY = 1;
 987         public const int OFN_SHOWHELP = 0x10;
 988         public const int OFN_USESHELLITEM = 0x1000000;
 989         public const int OLE_E_NOCONNECTION = -2147221500;
 990         public const int OLE_E_PROMPTSAVECANCELLED = -2147221492;
 991         public const int OLECLOSE_PROMPTSAVE = 2;
 992         public const int OLECLOSE_SAVEIFDIRTY = 0;
 993         public const int OLEIVERB_HIDE = -3;
 994         public const int OLEIVERB_INPLACEACTIVATE = -5;
 995         public const int OLEIVERB_PRIMARY = 0;
 996         public const int OLEIVERB_PROPERTIES = -7;
 997         public const int OLEIVERB_SHOW = -1;
 998         public const int OLEIVERB_UIACTIVATE = -4;
 999         public const int OLEMISC_ACTIVATEWHENVISIBLE = 0x100;
1000         public const int OLEMISC_ACTSLIKEBUTTON = 0x1000;
1001         public const int OLEMISC_INSIDEOUT = 0x80;
1002         public const int OLEMISC_RECOMPOSEONRESIZE = 1;
1003         public const int OLEMISC_SETCLIENTSITEFIRST = 0x20000;
1004         public const int PBM_SETPOS = 0x402;
1005         public const int PBM_SETRANGE = 0x401;
1006         public const int PBM_SETRANGE32 = 1030;
1007         public const int PBM_SETSTEP = 0x404;
1008         public const int PD_COLLATE = 0x10;
1009         public const int PD_DISABLEPRINTTOFILE = 0x80000;
1010         public const int PD_ENABLEPRINTHOOK = 0x1000;
1011         public const int PD_NOCURRENTPAGE = 0x800000;
1012         public const int PD_NONETWORKBUTTON = 0x200000;
1013         public const int PD_NOPAGENUMS = 8;
1014         public const int PD_NOSELECTION = 4;
1015         public const int PD_PRINTTOFILE = 0x20;
1016         public const int PD_SHOWHELP = 0x800;
1017         public const int PDERR_CREATEICFAILURE = 0x100a;
1018         public const int PDERR_DEFAULTDIFFERENT = 0x100c;
1019         public const int PDERR_DNDMMISMATCH = 0x1009;
1020         public const int PDERR_GETDEVMODEFAIL = 0x1005;
1021         public const int PDERR_INITFAILURE = 0x1006;
1022         public const int PDERR_LOADDRVFAILURE = 4100;
1023         public const int PDERR_NODEFAULTPRN = 0x1008;
1024         public const int PDERR_NODEVICES = 0x1007;
1025         public const int PDERR_PARSEFAILURE = 0x1002;
1026         public const int PDERR_PRINTERNOTFOUND = 0x100b;
1027         public const int PDERR_RETDEFFAILURE = 0x1003;
1028         public const int PDERR_SETUPFAILURE = 0x1001;
1029         public const int PLANES = 14;
1030         public const int PM_NOREMOVE = 0;
1031         public const int PM_NOYIELD = 2;
1032         public const int PM_REMOVE = 1;
1033         public const int PRF_CHECKVISIBLE = 1;
1034         public const int PRF_CHILDREN = 0x10;
1035         public const int PRF_CLIENT = 4;
1036         public const int PRF_ERASEBKGND = 8;
1037         public const int PRF_NONCLIENT = 2;
1038         public const int PS_DOT = 2;
1039         public const int PS_SOLID = 0;
1040         public const int PSD_DISABLEMARGINS = 0x10;
1041         public const int PSD_DISABLEORIENTATION = 0x100;
1042         public const int PSD_DISABLEPAPER = 0x200;
1043         public const int PSD_DISABLEPRINTER = 0x20;
1044         public const int PSD_ENABLEPAGESETUPHOOK = 0x2000;
1045         public const int PSD_INHUNDREDTHSOFMILLIMETERS = 8;
1046         public const int PSD_MARGINS = 2;
1047         public const int PSD_MINMARGINS = 1;
1048         public const int PSD_NONETWORKBUTTON = 0x200000;
1049         public const int PSD_SHOWHELP = 0x800;
1050         public static readonly int PSM_SETFINISHTEXT;
1051         public const int PSM_SETFINISHTEXTA = 0x473;
1052         public const int PSM_SETFINISHTEXTW = 0x479;
1053         public static readonly int PSM_SETTITLE;
1054         public const int PSM_SETTITLEA = 0x46f;
1055         public const int PSM_SETTITLEW = 0x478;
1056         public const int QS_ALLEVENTS = 0xbf;
1057         public const int QS_ALLINPUT = 0xff;
1058         public const int QS_ALLPOSTMESSAGE = 0x100;
1059         public const int QS_HOTKEY = 0x80;
1060         public const int QS_INPUT = 7;
1061         public const int QS_KEY = 1;
1062         public const int QS_MOUSE = 6;
1063         public const int QS_MOUSEBUTTON = 4;
1064         public const int QS_MOUSEMOVE = 2;
1065         public const int QS_PAINT = 0x20;
1066         public const int QS_POSTMESSAGE = 8;
1067         public const int QS_SENDMESSAGE = 0x40;
1068         public const int QS_TIMER = 0x10;
1069         public static readonly int RB_INSERTBAND;
1070         public const int RB_INSERTBANDA = 0x401;
1071         public const int RB_INSERTBANDW = 0x40a;
1072         public const int RDW_ALLCHILDREN = 0x80;
1073         public const int RDW_ERASE = 4;
1074         public const int RDW_FRAME = 0x400;
1075         public const int RDW_INVALIDATE = 1;
1076         public const int RECO_DROP = 1;
1077         public const int RGN_DIFF = 4;
1078         public const int RPC_E_CHANGED_MODE = -2147417850;
1079         public const int S_FALSE = 1;
1080         public const int S_OK = 0;
1081         public const int SB_BOTTOM = 7;
1082         public const int SB_CTL = 2;
1083         public const int SB_ENDSCROLL = 8;
1084         public const int SB_GETRECT = 0x40a;
1085         public static readonly int SB_GETTEXT;
1086         public const int SB_GETTEXTA = 0x402;
1087         public static readonly int SB_GETTEXTLENGTH;
1088         public const int SB_GETTEXTLENGTHA = 0x403;
1089         public const int SB_GETTEXTLENGTHW = 0x40c;
1090         public const int SB_GETTEXTW = 0x40d;
1091         public static readonly int SB_GETTIPTEXT;
1092         public const int SB_GETTIPTEXTA = 0x412;
1093         public const int SB_GETTIPTEXTW = 0x413;
1094         public const int SB_HORZ = 0;
1095         public const int SB_LEFT = 6;
1096         public const int SB_LINEDOWN = 1;
1097         public const int SB_LINELEFT = 0;
1098         public const int SB_LINERIGHT = 1;
1099         public const int SB_LINEUP = 0;
1100         public const int SB_PAGEDOWN = 3;
1101         public const int SB_PAGELEFT = 2;
1102         public const int SB_PAGERIGHT = 3;
1103         public const int SB_PAGEUP = 2;
1104         public const int SB_RIGHT = 7;
1105         public const int SB_SETICON = 0x40f;
1106         public const int SB_SETPARTS = 0x404;
1107         public static readonly int SB_SETTEXT;
1108         public const int SB_SETTEXTA = 0x401;
1109         public const int SB_SETTEXTW = 0x40b;
1110         public static readonly int SB_SETTIPTEXT;
1111         public const int SB_SETTIPTEXTA = 1040;
1112         public const int SB_SETTIPTEXTW = 0x411;
1113         public const int SB_SIMPLE = 0x409;
1114         public const int SB_THUMBPOSITION = 4;
1115         public const int SB_THUMBTRACK = 5;
1116         public const int SB_TOP = 6;
1117         public const int SB_VERT = 1;
1118         public const int SBARS_SIZEGRIP = 0x100;
1119         public const int SBS_HORZ = 0;
1120         public const int SBS_VERT = 1;
1121         public const int SBT_NOBORDERS = 0x100;
1122         public const int SBT_OWNERDRAW = 0x1000;
1123         public const int SBT_POPOUT = 0x200;
1124         public const int SBT_RTLREADING = 0x400;
1125         public const int SC_CLOSE = 0xf060;
1126         public const int SC_KEYMENU = 0xf100;
1127         public const int SC_MAXIMIZE = 0xf030;
1128         public const int SC_MINIMIZE = 0xf020;
1129         public const int SC_RESTORE = 0xf120;
1130         public const int SC_SIZE = 61440;
1131         public const int SHGFP_TYPE_CURRENT = 0;
1132         public const int SIF_ALL = 0x17;
1133         public const int SIF_PAGE = 2;
1134         public const int SIF_POS = 4;
1135         public const int SIF_RANGE = 1;
1136         public const int SIF_TRACKPOS = 0x10;
1137         public const int SM_ARRANGE = 0x38;
1138         public const int SM_CLEANBOOT = 0x43;
1139         public const int SM_CMONITORS = 80;
1140         public const int SM_CMOUSEBUTTONS = 0x2b;
1141         public const int SM_CXBORDER = 5;
1142         public const int SM_CXCURSOR = 13;
1143         public const int SM_CXDOUBLECLK = 0x24;
1144         public const int SM_CXDRAG = 0x44;
1145         public const int SM_CXEDGE = 0x2d;
1146         public const int SM_CXFIXEDFRAME = 7;
1147         public const int SM_CXFRAME = 0x20;
1148         public const int SM_CXHSCROLL = 0x15;
1149         public const int SM_CXHTHUMB = 10;
1150         public const int SM_CXICON = 11;
1151         public const int SM_CXICONSPACING = 0x26;
1152         public const int SM_CXMAXIMIZED = 0x3d;
1153         public const int SM_CXMAXTRACK = 0x3b;
1154         public const int SM_CXMENUCHECK = 0x47;
1155         public const int SM_CXMENUSIZE = 0x36;
1156         public const int SM_CXMIN = 0x1c;
1157         public const int SM_CXMINIMIZED = 0x39;
1158         public const int SM_CXMINSPACING = 0x2f;
1159         public const int SM_CXMINTRACK = 0x22;
1160         public const int SM_CXSCREEN = 0;
1161         public const int SM_CXSIZE = 30;
1162         public const int SM_CXSMICON = 0x31;
1163         public const int SM_CXSMSIZE = 0x34;
1164         public const int SM_CXVIRTUALSCREEN = 0x4e;
1165         public const int SM_CXVSCROLL = 2;
1166         public const int SM_CYBORDER = 6;
1167         public const int SM_CYCAPTION = 4;
1168         public const int SM_CYCURSOR = 14;
1169         public const int SM_CYDOUBLECLK = 0x25;
1170         public const int SM_CYDRAG = 0x45;
1171         public const int SM_CYEDGE = 0x2e;
1172         public const int SM_CYFIXEDFRAME = 8;
1173         public const int SM_CYFRAME = 0x21;
1174         public const int SM_CYHSCROLL = 3;
1175         public const int SM_CYICON = 12;
1176         public const int SM_CYICONSPACING = 0x27;
1177         public const int SM_CYKANJIWINDOW = 0x12;
1178         public const int SM_CYMAXIMIZED = 0x3e;
1179         public const int SM_CYMAXTRACK = 60;
1180         public const int SM_CYMENU = 15;
1181         public const int SM_CYMENUCHECK = 0x48;
1182         public const int SM_CYMENUSIZE = 0x37;
1183         public const int SM_CYMIN = 0x1d;
1184         public const int SM_CYMINIMIZED = 0x3a;
1185         public const int SM_CYMINSPACING = 0x30;
1186         public const int SM_CYMINTRACK = 0x23;
1187         public const int SM_CYSCREEN = 1;
1188         public const int SM_CYSIZE = 0x1f;
1189         public const int SM_CYSMCAPTION = 0x33;
1190         public const int SM_CYSMICON = 50;
1191         public const int SM_CYSMSIZE = 0x35;
1192         public const int SM_CYVIRTUALSCREEN = 0x4f;
1193         public const int SM_CYVSCROLL = 20;
1194         public const int SM_CYVTHUMB = 9;
1195         public const int SM_DBCSENABLED = 0x2a;
1196         public const int SM_DEBUG = 0x16;
1197         public const int SM_MENUDROPALIGNMENT = 40;
1198         public const int SM_MIDEASTENABLED = 0x4a;
1199         public const int SM_MOUSEPRESENT = 0x13;
1200         public const int SM_MOUSEWHEELPRESENT = 0x4b;
1201         public const int SM_NETWORK = 0x3f;
1202         public const int SM_PENWINDOWS = 0x29;
1203         public const int SM_REMOTESESSION = 0x1000;
1204         public const int SM_SAMEDISPLAYFORMAT = 0x51;
1205         public const int SM_SECURE = 0x2c;
1206         public const int SM_SHOWSOUNDS = 70;
1207         public const int SM_SWAPBUTTON = 0x17;
1208         public const int SM_XVIRTUALSCREEN = 0x4c;
1209         public const int SM_YVIRTUALSCREEN = 0x4d;
1210         public const int SORT_DEFAULT = 0;
1211         public const int SPI_GETDEFAULTINPUTLANG = 0x59;
1212         public const int SPI_GETDRAGFULLWINDOWS = 0x26;
1213         public const int SPI_GETHIGHCONTRAST = 0x42;
1214         public const int SPI_GETNONCLIENTMETRICS = 0x29;
1215         public const int SPI_GETSNAPTODEFBUTTON = 0x5f;
1216         public const int SPI_GETWHEELSCROLLLINES = 0x68;
1217         public const int SPI_GETWORKAREA = 0x30;
1218         public const int SS_CENTER = 1;
1219         public const int SS_LEFT = 0;
1220         public const int SS_NOPREFIX = 0x80;
1221         public const int SS_OWNERDRAW = 13;
1222         public const int SS_RIGHT = 2;
1223         public const int SS_SUNKEN = 0x1000;
1224         public const int STARTF_USESHOWWINDOW = 1;
1225         public const int STATFLAG_DEFAULT = 0;
1226         public const int STATFLAG_NONAME = 1;
1227         public const int STATFLAG_NOOPEN = 2;
1228         public const int stc4 = 0x443;
1229         public const int STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE = 4;
1230         public const int STGC_DEFAULT = 0;
1231         public const int STGC_ONLYIFCURRENT = 2;
1232         public const int STGC_OVERWRITE = 1;
1233         public const int STGM_CREATE = 0x1000;
1234         public const int STGM_READ = 0;
1235         public const int STGM_READWRITE = 2;
1236         public const int STGM_SHARE_EXCLUSIVE = 0x10;
1237         public const int STGM_WRITE = 1;
1238         public const int STREAM_SEEK_CUR = 1;
1239         public const int STREAM_SEEK_END = 2;
1240         public const int STREAM_SEEK_SET = 0;
1241         public const int SUBLANG_DEFAULT = 1;
1242         public const int SW_ERASE = 4;
1243         public const int SW_HIDE = 0;
1244         public const int SW_INVALIDATE = 2;
1245         public const int SW_MAX = 10;
1246         public const int SW_MAXIMIZE = 3;
1247         public const int SW_MINIMIZE = 6;
1248         public const int SW_NORMAL = 1;
1249         public const int SW_RESTORE = 9;
1250         public const int SW_SCROLLCHILDREN = 1;
1251         public const int SW_SHOW = 5;
1252         public const int SW_SHOWMAXIMIZED = 3;
1253         public const int SW_SHOWMINIMIZED = 2;
1254         public const int SW_SHOWMINNOACTIVE = 7;
1255         public const int SW_SHOWNA = 8;
1256         public const int SW_SHOWNOACTIVATE = 4;
1257         public const int SWP_DRAWFRAME = 0x20;
1258         public const int SWP_HIDEWINDOW = 0x80;
1259         public const int SWP_NOACTIVATE = 0x10;
1260         public const int SWP_NOMOVE = 2;
1261         public const int SWP_NOSIZE = 1;
1262         public const int SWP_NOZORDER = 4;
1263         public const int SWP_SHOWWINDOW = 0x40;
1264         public static readonly int TB_ADDBUTTONS;
1265         public const int TB_ADDBUTTONSA = 0x414;
1266         public const int TB_ADDBUTTONSW = 0x444;
1267         public static readonly int TB_ADDSTRING;
1268         public const int TB_ADDSTRINGA = 0x41c;
1269         public const int TB_ADDSTRINGW = 0x44d;
1270         public const int TB_AUTOSIZE = 0x421;
1271         public const int TB_BOTTOM = 7;
1272         public const int TB_BUTTONSTRUCTSIZE = 0x41e;
1273         public const int TB_DELETEBUTTON = 0x416;
1274         public const int TB_ENABLEBUTTON = 0x401;
1275         public const int TB_ENDTRACK = 8;
1276         public const int TB_GETBUTTON = 0x417;
1277         public static readonly int TB_GETBUTTONINFO;
1278         public const int TB_GETBUTTONINFOA = 0x441;
1279         public const int TB_GETBUTTONINFOW = 0x43f;
1280         public const int TB_GETBUTTONSIZE = 0x43a;
1281         public static readonly int TB_GETBUTTONTEXT;
1282         public const int TB_GETBUTTONTEXTA = 0x42d;
1283         public const int TB_GETBUTTONTEXTW = 0x44b;
1284         public const int TB_GETRECT = 0x433;
1285         public const int TB_GETROWS = 0x428;
1286         public static readonly int TB_INSERTBUTTON;
1287         public const int TB_INSERTBUTTONA = 0x415;
1288         public const int TB_INSERTBUTTONW = 0x443;
1289         public const int TB_ISBUTTONCHECKED = 0x40a;
1290         public const int TB_ISBUTTONINDETERMINATE = 0x40d;
1291         public const int TB_LINEDOWN = 1;
1292         public const int TB_LINEUP = 0;
1293         public static readonly int TB_MAPACCELERATOR;
1294         public const int TB_MAPACCELERATORA = 0x44e;
1295         public const int TB_MAPACCELERATORW = 0x45a;
1296         public const int TB_PAGEDOWN = 3;
1297         public const int TB_PAGEUP = 2;
1298         public static readonly int TB_SAVERESTORE;
1299         public const int TB_SAVERESTOREA = 1050;
1300         public const int TB_SAVERESTOREW = 1100;
1301         public static readonly int TB_SETBUTTONINFO;
1302         public const int TB_SETBUTTONINFOA = 1090;
1303         public const int TB_SETBUTTONINFOW = 0x440;
1304         public const int TB_SETBUTTONSIZE = 0x41f;
1305         public const int TB_SETEXTENDEDSTYLE = 0x454;
1306         public const int TB_SETIMAGELIST = 0x430;
1307         public const int TB_THUMBPOSITION = 4;
1308         public const int TB_THUMBTRACK = 5;
1309         public const int TB_TOP = 6;
1310         public const int TBIF_COMMAND = 0x20;
1311         public const int TBIF_IMAGE = 1;
1312         public const int TBIF_SIZE = 0x40;
1313         public const int TBIF_STATE = 4;
1314         public const int TBIF_STYLE = 8;
1315         public const int TBIF_TEXT = 2;
1316         public const int TBM_GETPOS = 0x400;
1317         public const int TBM_SETLINESIZE = 0x417;
1318         public const int TBM_SETPAGESIZE = 0x415;
1319         public const int TBM_SETPOS = 0x405;
1320         public const int TBM_SETRANGE = 1030;
1321         public const int TBM_SETRANGEMAX = 0x408;
1322         public const int TBM_SETRANGEMIN = 0x407;
1323         public const int TBM_SETTIC = 0x404;
1324         public const int TBM_SETTICFREQ = 0x414;
1325         public const int TBN_DROPDOWN = -710;
1326         public static readonly int TBN_GETBUTTONINFO;
1327         public const int TBN_GETBUTTONINFOA = -700;
1328         public const int TBN_GETBUTTONINFOW = -720;
1329         public static readonly int TBN_GETDISPINFO;
1330         public const int TBN_GETDISPINFOA = -716;
1331         public const int TBN_GETDISPINFOW = -717;
1332         public static readonly int TBN_GETINFOTIP;
1333         public const int TBN_GETINFOTIPA = -718;
1334         public const int TBN_GETINFOTIPW = -719;
1335         public const int TBN_QUERYINSERT = -706;
1336         public const int TBS_AUTOTICKS = 1;
1337         public const int TBS_BOTH = 8;
1338         public const int TBS_BOTTOM = 0;
1339         public const int TBS_NOTICKS = 0x10;
1340         public const int TBS_TOP = 4;
1341         public const int TBS_VERT = 2;
1342         public const int TBSTATE_CHECKED = 1;
1343         public const int TBSTATE_ENABLED = 4;
1344         public const int TBSTATE_HIDDEN = 8;
1345         public const int TBSTATE_INDETERMINATE = 0x10;
1346         public const int TBSTYLE_BUTTON = 0;
1347         public const int TBSTYLE_CHECK = 2;
1348         public const int TBSTYLE_DROPDOWN = 8;
1349         public const int TBSTYLE_EX_DRAWDDARROWS = 1;
1350         public const int TBSTYLE_FLAT = 0x800;
1351         public const int TBSTYLE_LIST = 0x1000;
1352         public const int TBSTYLE_SEP = 1;
1353         public const int TBSTYLE_TOOLTIPS = 0x100;
1354         public const int TBSTYLE_WRAPPABLE = 0x200;
1355         public const int TCIF_IMAGE = 2;
1356         public const int TCIF_TEXT = 1;
1357         public const int TCM_ADJUSTRECT = 0x1328;
1358         public const int TCM_DELETEALLITEMS = 0x1309;
1359         public const int TCM_DELETEITEM = 0x1308;
1360         public const int TCM_GETCURSEL = 0x130b;
1361         public static readonly int TCM_GETITEM;
1362         public const int TCM_GETITEMA = 0x1305;
1363         public const int TCM_GETITEMRECT = 0x130a;
1364         public const int TCM_GETITEMW = 0x133c;
1365         public const int TCM_GETROWCOUNT = 0x132c;
1366         public const int TCM_GETTOOLTIPS = 0x132d;
1367         public static readonly int TCM_INSERTITEM;
1368         public const int TCM_INSERTITEMA = 0x1307;
1369         public const int TCM_INSERTITEMW = 0x133e;
1370         public const int TCM_SETCURSEL = 0x130c;
1371         public const int TCM_SETIMAGELIST = 0x1303;
1372         public static readonly int TCM_SETITEM;
1373         public const int TCM_SETITEMA = 4870;
1374         public const int TCM_SETITEMSIZE = 0x1329;
1375         public const int TCM_SETITEMW = 0x133d;
1376         public const int TCM_SETPADDING = 0x132b;
1377         public const int TCN_SELCHANGE = -551;
1378         public const int TCN_SELCHANGING = -552;
1379         public const int TCS_BOTTOM = 2;
1380         public const int TCS_BUTTONS = 0x100;
1381         public const int TCS_FIXEDWIDTH = 0x400;
1382         public const int TCS_FLATBUTTONS = 8;
1383         public const int TCS_HOTTRACK = 0x40;
1384         public const int TCS_MULTILINE = 0x200;
1385         public const int TCS_OWNERDRAWFIXED = 0x2000;
1386         public const int TCS_RAGGEDRIGHT = 0x800;
1387         public const int TCS_RIGHT = 2;
1388         public const int TCS_RIGHTJUSTIFY = 0;
1389         public const int TCS_TABS = 0;
1390         public const int TCS_TOOLTIPS = 0x4000;
1391         public const int TCS_VERTICAL = 0x80;
1392         public const int TME_HOVER = 1;
1393         public const int TME_LEAVE = 2;
1394         public const string TOOLTIPS_CLASS = "tooltips_class32";
1395         public const int TPM_LEFTALIGN = 0;
1396         public const int TPM_LEFTBUTTON = 0;
1397         public const int TPM_VERTICAL = 0x40;
1398         public const int TRANSPARENT = 1;
1399         public const int TTDT_AUTOMATIC = 0;
1400         public const int TTDT_AUTOPOP = 2;
1401         public const int TTDT_INITIAL = 3;
1402         public const int TTDT_RESHOW = 1;
1403         public const int TTF_IDISHWND = 1;
1404         public const int TTF_RTLREADING = 4;
1405         public const int TTF_SUBCLASS = 0x10;
1406         public const int TTF_TRACK = 0x20;
1407         public const int TTF_TRANSPARENT = 0x100;
1408         public const int TTI_WARNING = 2;
1409         public const int TTM_ACTIVATE = 0x401;
1410         public static readonly int TTM_ADDTOOL;
1411         public const int TTM_ADDTOOLA = 0x404;
1412         public const int TTM_ADDTOOLW = 0x432;
1413         public const int TTM_ADJUSTRECT = 0x41f;
1414         public static readonly int TTM_DELTOOL;
1415         public const int TTM_DELTOOLA = 0x405;
1416         public const int TTM_DELTOOLW = 0x433;
1417         public static readonly int TTM_ENUMTOOLS;
1418         public const int TTM_ENUMTOOLSA = 0x40e;
1419         public const int TTM_ENUMTOOLSW = 0x43a;
1420         public static readonly int TTM_GETCURRENTTOOL;
1421         public const int TTM_GETCURRENTTOOLA = 0x40f;
1422         public const int TTM_GETCURRENTTOOLW = 0x43b;
1423         public const int TTM_GETDELAYTIME = 0x415;
1424         public static readonly int TTM_GETTEXT;
1425         public const int TTM_GETTEXTA = 0x40b;
1426         public const int TTM_GETTEXTW = 1080;
1427         public static readonly int TTM_GETTOOLINFO;
1428         public const int TTM_GETTOOLINFOA = 0x408;
1429         public const int TTM_GETTOOLINFOW = 0x435;
1430         public static readonly int TTM_HITTEST;
1431         public const int TTM_HITTESTA = 0x40a;
1432         public const int TTM_HITTESTW = 0x437;
1433         public static readonly int TTM_NEWTOOLRECT;
1434         public const int TTM_NEWTOOLRECTA = 1030;
1435         public const int TTM_NEWTOOLRECTW = 0x434;
1436         public const int TTM_RELAYEVENT = 0x407;
1437         public const int TTM_SETDELAYTIME = 0x403;
1438         public const int TTM_SETMAXTIPWIDTH = 0x418;
1439         public static readonly int TTM_SETTITLE;
1440         public const int TTM_SETTITLEA = 0x420;
1441         public const int TTM_SETTITLEW = 0x421;
1442         public static readonly int TTM_SETTOOLINFO;
1443         public const int TTM_SETTOOLINFOA = 0x409;
1444         public const int TTM_SETTOOLINFOW = 0x436;
1445         public const int TTM_TRACKACTIVATE = 0x411;
1446         public const int TTM_TRACKPOSITION = 0x412;
1447         public const int TTM_UPDATE = 0x41d;
1448         public static readonly int TTM_UPDATETIPTEXT;
1449         public const int TTM_UPDATETIPTEXTA = 0x40c;
1450         public const int TTM_UPDATETIPTEXTW = 0x439;
1451         public const int TTM_WINDOWFROMPOINT = 1040;
1452         public static readonly int TTN_GETDISPINFO;
1453         public const int TTN_GETDISPINFOA = -520;
1454         public const int TTN_GETDISPINFOW = -530;
1455         public const int TTM_GETMAXTIPWIDTH     =(WM_USER + 25);
1456         public static readonly int TTN_NEEDTEXT;
1457         public const int TTN_NEEDTEXTA = -520;
1458         public const int TTN_NEEDTEXTW = -530;
1459         public const int TTN_POP = -522;
1460         public const int TTN_SHOW = -521;
1461         public const int TTS_ALWAYSTIP = 1;
1462         public const int TTS_BALLOON = 0x40;
1463         public const int TV_FIRST = 0x1100;
1464         public const int TVC_BYKEYBOARD = 2;
1465         public const int TVC_BYMOUSE = 1;
1466         public const int TVC_UNKNOWN = 0;
1467         public const int TVE_COLLAPSE = 1;
1468         public const int TVE_EXPAND = 2;
1469         public const int TVGN_CARET = 9;
1470         public const int TVGN_FIRSTVISIBLE = 5;
1471         public const int TVGN_NEXT = 1;
1472         public const int TVGN_NEXTVISIBLE = 6;
1473         public const int TVGN_PREVIOUS = 2;
1474         public const int TVGN_PREVIOUSVISIBLE = 7;
1475         public const int TVHT_ONITEM = 70;
1476         public const int TVHT_ONITEMSTATEICON = 0x40;
1477         public const int TVI_FIRST = -65535;
1478         public const int TVI_ROOT = -65536;
1479         public const int TVIF_HANDLE = 0x10;
1480         public const int TVIF_IMAGE = 2;
1481         public const int TVIF_SELECTEDIMAGE = 0x20;
1482         public const int TVIF_STATE = 8;
1483         public const int TVIF_TEXT = 1;
1484         public const int TVIS_EXPANDED = 0x20;
1485         public const int TVIS_EXPANDEDONCE = 0x40;
1486         public const int TVIS_SELECTED = 2;
1487         public const int TVIS_STATEIMAGEMASK = 61440;
1488         public const int TVM_DELETEITEM = 0x1101;
1489         public static readonly int TVM_EDITLABEL;
1490         public const int TVM_EDITLABELA = 0x110e;
1491         public const int TVM_EDITLABELW = 0x1141;
1492         public const int TVM_ENDEDITLABELNOW = 0x1116;
1493         public const int TVM_ENSUREVISIBLE = 0x1114;
1494         public const int TVM_EXPAND = 0x1102;
1495         public const int TVM_GETEDITCONTROL = 0x110f;
1496         public const int TVM_GETINDENT = 0x1106;
1497         public static readonly int TVM_GETISEARCHSTRING;
1498         public const int TVM_GETISEARCHSTRINGA = 0x1117;
1499         public const int TVM_GETISEARCHSTRINGW = 0x1140;
1500         public static readonly int TVM_GETITEM;
1501         public const int TVM_GETITEMA = 0x110c;
1502         public const int TVM_GETITEMHEIGHT = 4380;
1503         public const int TVM_GETITEMRECT = 0x1104;
1504         public const int TVM_GETITEMW = 0x113e;
1505         public const int TVM_GETNEXTITEM = 0x110a;
1506         public const int TVM_GETVISIBLECOUNT = 0x1110;
1507         public const int TVM_HITTEST = 0x1111;
1508         public static readonly int TVM_INSERTITEM;
1509         public const int TVM_INSERTITEMA = 0x1100;
1510         public const int TVM_INSERTITEMW = 0x1132;
1511         public const int TVM_SELECTITEM = 0x110b;
1512         public const int TVM_SETBKCOLOR = 0x111d;
1513         public const int TVM_SETIMAGELIST = 0x1109;
1514         public const int TVM_SETINDENT = 0x1107;
1515         public static readonly int TVM_SETITEM;
1516         public const int TVM_SETITEMA = 0x110d;
1517         public const int TVM_SETITEMHEIGHT = 0x111b;
1518         public const int TVM_SETITEMW = 0x113f;
1519         public const int TVM_SETTEXTCOLOR = 0x111e;
1520         public static readonly int TVN_BEGINDRAG;
1521         public const int TVN_BEGINDRAGA = -407;
1522         public const int TVN_BEGINDRAGW = -456;
1523         public static readonly int TVN_BEGINLABELEDIT;
1524         public const int TVN_BEGINLABELEDITA = -410;
1525         public const int TVN_BEGINLABELEDITW = -459;
1526         public static readonly int TVN_BEGINRDRAG;
1527         public const int TVN_BEGINRDRAGA = -408;
1528         public const int TVN_BEGINRDRAGW = -457;
1529         public static readonly int TVN_ENDLABELEDIT;
1530         public const int TVN_ENDLABELEDITA = -411;
1531         public const int TVN_ENDLABELEDITW = -460;
1532         public static readonly int TVN_GETDISPINFO;
1533         public const int TVN_GETDISPINFOA = -403;
1534         public const int TVN_GETDISPINFOW = -452;
1535         public static readonly int TVN_ITEMEXPANDED;
1536         public const int TVN_ITEMEXPANDEDA = -406;
1537         public const int TVN_ITEMEXPANDEDW = -455;
1538         public static readonly int TVN_ITEMEXPANDING;
1539         public const int TVN_ITEMEXPANDINGA = -405;
1540         public const int TVN_ITEMEXPANDINGW = -454;
1541         public static readonly int TVN_SELCHANGED;
1542         public const int TVN_SELCHANGEDA = -402;
1543         public const int TVN_SELCHANGEDW = -451;
1544         public static readonly int TVN_SELCHANGING;
1545         public const int TVN_SELCHANGINGA = -401;
1546         public const int TVN_SELCHANGINGW = -450;
1547         public static readonly int TVN_SETDISPINFO;
1548         public const int TVN_SETDISPINFOA = -404;
1549         public const int TVN_SETDISPINFOW = -453;
1550         public const int TVS_CHECKBOXES = 0x100;
1551         public const int TVS_EDITLABELS = 8;
1552         public const int TVS_FULLROWSELECT = 0x1000;
1553         public const int TVS_HASBUTTONS = 1;
1554         public const int TVS_HASLINES = 2;
1555         public const int TVS_LINESATROOT = 4;
1556         public const int TVS_RTLREADING = 0x40;
1557         public const int TVS_SHOWSELALWAYS = 0x20;
1558         public const int TVS_TRACKSELECT = 0x200;
1559         public const int UIS_CLEAR = 2;
1560         public const int UIS_INITIALIZE = 3;
1561         public const int UIS_SET = 1;
1562         public const int UISF_HIDEACCEL = 2;
1563         public const int UISF_HIDEFOCUS = 1;
1564         public const int UOI_FLAGS = 1;
1565         public const int USERCLASSTYPE_FULL = 1;
1566         public const string uuid_IAccessible = "{618736E0-3C3D-11CF-810C-00AA00389B71}";
1567         public const string uuid_IEnumVariant = "{00020404-0000-0000-C000-000000000046}";
1568         public const int VIEW_E_DRAW = -2147221184;
1569         public const int VK_CONTROL = 0x11;
1570         public const int VK_MENU = 0x12;
1571         public const int VK_SHIFT = 0x10;
1572         public const int VK_TAB = 9;
1573         public const int WA_ACTIVE = 1;
1574         public const int WA_CLICKACTIVE = 2;
1575         public const int WA_INACTIVE = 0;
1576         public const string WC_DATETIMEPICK = "SysDateTimePick32";
1577         public const string WC_LISTVIEW = "SysListView32";
1578         public const string WC_MONTHCAL = "SysMonthCal32";
1579         public const string WC_PROGRESS = "msctls_progress32";
1580         public const string WC_STATUSBAR = "msctls_statusbar32";
1581         public const string WC_TABCONTROL = "SysTabControl32";
1582         public const string WC_TOOLBAR = "ToolbarWindow32";
1583         public const string WC_TRACKBAR = "msctls_trackbar32";
1584         public const string WC_TREEVIEW = "SysTreeView32";
1585         public const int WH_GETMESSAGE = 3;
1586         public const int WH_JOURNALPLAYBACK = 1;
1587         public const int WH_MOUSE = 7;
1588         public const int WHEEL_DELTA = 120;
1589         public const int WM_ACTIVATE = 6;
1590         public const int WM_ACTIVATEAPP = 0x1c;
1591         public const int WM_AFXFIRST = 0x360;
1592         public const int WM_AFXLAST = 0x37f;
1593         public const int WM_APP = 0x8000;
1594         public const int WM_ASKCBFORMATNAME = 780;
1595         public const int WM_CANCELJOURNAL = 0x4b;
1596         public const int WM_CANCELMODE = 0x1f;
1597         public const int WM_CAPTURECHANGED = 0x215;
1598         public const int WM_CHANGECBCHAIN = 0x30d;
1599         public const int WM_CHANGEUISTATE = 0x127;
1600         public const int WM_CHAR = 0x102;
1601         public const int WM_CHARTOITEM = 0x2f;
1602         public const int WM_CHILDACTIVATE = 0x22;
1603         public const int WM_CHOOSEFONT_GETLOGFONT = 0x401;
1604         public const int WM_CLEAR = 0x303;
1605         public const int WM_CLOSE = 0x10;
1606         public const int WM_COMMAND = 0x111;
1607         public const int WM_COMMNOTIFY = 0x44;
1608         public const int WM_COMPACTING = 0x41;
1609         public const int WM_COMPAREITEM = 0x39;
1610         public const int WM_CONTEXTMENU = 0x7b;
1611         public const int WM_COPY = 0x301;
1612         public const int WM_COPYDATA = 0x4a;
1613         public const int WM_CREATE = 1;
1614         public const int WM_CTLCOLOR = 0x19;
1615         public const int WM_CTLCOLORBTN = 0x135;
1616         public const int WM_CTLCOLORDLG = 310;
1617         public const int WM_CTLCOLOREDIT = 0x133;
1618         public const int WM_CTLCOLORLISTBOX = 0x134;
1619         public const int WM_CTLCOLORMSGBOX = 0x132;
1620         public const int WM_CTLCOLORSCROLLBAR = 0x137;
1621         public const int WM_CTLCOLORSTATIC = 0x138;
1622         public const int WM_CUT = 0x300;
1623         public const int WM_DEADCHAR = 0x103;
1624         public const int WM_DELETEITEM = 0x2d;
1625         public const int WM_DESTROY = 2;
1626         public const int WM_DESTROYCLIPBOARD = 0x307;
1627         public const int WM_DEVICECHANGE = 0x219;
1628         public const int WM_DEVMODECHANGE = 0x1b;
1629         public const int WM_DISPLAYCHANGE = 0x7e;
1630         public const int WM_DRAWCLIPBOARD = 0x308;
1631         public const int WM_DRAWITEM = 0x2b;
1632         public const int WM_DROPFILES = 0x233;
1633         public const int WM_ENABLE = 10;
1634         public const int WM_ENDSESSION = 0x16;
1635         public const int WM_ENTERIDLE = 0x121;
1636         public const int WM_ENTERMENULOOP = 0x211;
1637         public const int WM_ENTERSIZEMOVE = 0x231;
1638         public const int WM_ERASEBKGND = 20;
1639         public const int WM_EXITMENULOOP = 530;
1640         public const int WM_EXITSIZEMOVE = 0x232;
1641         public const int WM_FONTCHANGE = 0x1d;
1642         public const int WM_GETDLGCODE = 0x87;
1643         public const int WM_GETFONT = 0x31;
1644         public const int WM_GETHOTKEY = 0x33;
1645         public const int WM_GETICON = 0x7f;
1646         public const int WM_GETMINMAXINFO = 0x24;
1647         public const int WM_GETOBJECT = 0x3d;
1648         public const int WM_GETTEXT = 13;
1649         public const int WM_GETTEXTLENGTH = 14;
1650         public const int WM_HANDHELDFIRST = 0x358;
1651         public const int WM_HANDHELDLAST = 0x35f;
1652         public const int WM_HELP = 0x53;
1653         public const int WM_HOTKEY = 0x312;
1654         public const int WM_HSCROLL = 0x114;
1655         public const int WM_HSCROLLCLIPBOARD = 0x30e;
1656         public const int WM_ICONERASEBKGND = 0x27;
1657         public const int WM_IME_CHAR = 0x286;
1658         public const int WM_IME_COMPOSITION = 0x10f;
1659         public const int WM_IME_COMPOSITIONFULL = 0x284;
1660         public const int WM_IME_CONTROL = 0x283;
1661         public const int WM_IME_ENDCOMPOSITION = 270;
1662         public const int WM_IME_KEYDOWN = 0x290;
1663         public const int WM_IME_KEYLAST = 0x10f;
1664         public const int WM_IME_KEYUP = 0x291;
1665         public const int WM_IME_NOTIFY = 0x282;
1666         public const int WM_IME_SELECT = 0x285;
1667         public const int WM_IME_SETCONTEXT = 0x281;
1668         public const int WM_IME_STARTCOMPOSITION = 0x10d;
1669         public const int WM_INITDIALOG = 0x110;
1670         public const int WM_INITMENU = 0x116;
1671         public const int WM_INITMENUPOPUP = 0x117;
1672         public const int WM_INPUTLANGCHANGE = 0x51;
1673         public const int WM_INPUTLANGCHANGEREQUEST = 80;
1674         public const int WM_KEYDOWN = 0x100;
1675         public const int WM_KEYFIRST = 0x100;
1676         public const int WM_KEYLAST = 0x108;
1677         public const int WM_KEYUP = 0x101;
1678         public const int WM_KILLFOCUS = 8;
1679         public const int WM_LBUTTONDBLCLK = 0x203;
1680         public const int WM_LBUTTONDOWN = 0x201;
1681         public const int WM_LBUTTONUP = 0x202;
1682         public const int WM_MBUTTONDBLCLK = 0x209;
1683         public const int WM_MBUTTONDOWN = 0x207;
1684         public const int WM_MBUTTONUP = 520;
1685         public const int WM_MDIACTIVATE = 0x222;
1686         public const int WM_MDICASCADE = 0x227;
1687         public const int WM_MDICREATE = 0x220;
1688         public const int WM_MDIDESTROY = 0x221;
1689         public const int WM_MDIGETACTIVE = 0x229;
1690         public const int WM_MDIICONARRANGE = 0x228;
1691         public const int WM_MDIMAXIMIZE = 0x225;
1692         public const int WM_MDINEXT = 0x224;
1693         public const int WM_MDIREFRESHMENU = 0x234;
1694         public const int WM_MDIRESTORE = 0x223;
1695         public const int WM_MDISETMENU = 560;
1696         public const int WM_MDITILE = 550;
1697         public const int WM_MEASUREITEM = 0x2c;
1698         public const int WM_MENUCHAR = 0x120;
1699         public const int WM_MENUSELECT = 0x11f;
1700         public const int WM_MOUSEACTIVATE = 0x21;
1701         public const int WM_MOUSEFIRST = 0x200;
1702         public const int WM_MOUSEHOVER = 0x2a1;
1703         public const int WM_MOUSELAST = 0x20a;
1704         public const int WM_MOUSELEAVE = 0x2a3;
1705         public const int WM_MOUSEMOVE = 0x200;
1706         public const int WM_MOUSEWHEEL = 0x20a;
1707         public const int WM_MOVE = 3;
1708         public const int WM_MOVING = 0x216;
1709         public const int WM_NCACTIVATE = 0x86;
1710         public const int WM_NCCALCSIZE = 0x83;
1711         public const int WM_NCCREATE = 0x81;
1712         public const int WM_NCDESTROY = 130;
1713         public const int WM_NCHITTEST = 0x84;
1714         public const int WM_NCLBUTTONDBLCLK = 0xa3;
1715         public const int WM_NCLBUTTONDOWN = 0xa1;
1716         public const int WM_NCLBUTTONUP = 0xa2;
1717         public const int WM_NCMBUTTONDBLCLK = 0xa9;
1718         public const int WM_NCMBUTTONDOWN = 0xa7;
1719         public const int WM_NCMBUTTONUP = 0xa8;
1720         public const int WM_NCMOUSEMOVE = 160;
1721         public const int WM_NCPAINT = 0x85;
1722         public const int WM_NCRBUTTONDBLCLK = 0xa6;
1723         public const int WM_NCRBUTTONDOWN = 0xa4;
1724         public const int WM_NCRBUTTONUP = 0xa5;
1725         public const int WM_NCXBUTTONDBLCLK = 0xad;
1726         public const int WM_NCXBUTTONDOWN = 0xab;
1727         public const int WM_NCXBUTTONUP = 0xac;
1728         public const int WM_NEXTDLGCTL = 40;
1729         public const int WM_NEXTMENU = 0x213;
1730         public const int WM_NOTIFY = 0x4e;
1731         public const int WM_NOTIFYFORMAT = 0x55;
1732         public const int WM_NULL = 0;
1733         public const int WM_PAINT = 15;
1734         public const int WM_PAINTCLIPBOARD = 0x309;
1735         public const int WM_PAINTICON = 0x26;
1736         public const int WM_PALETTECHANGED = 0x311;
1737         public const int WM_PALETTEISCHANGING = 0x310;
1738         public const int WM_PARENTNOTIFY = 0x210;
1739         public const int WM_PASTE = 770;
1740         public const int WM_PENWINFIRST = 0x380;
1741         public const int WM_PENWINLAST = 0x38f;
1742         public const int WM_POWER = 0x48;
1743         public const int WM_POWERBROADCAST = 0x218;
1744         public const int WM_PRINT = 0x317;
1745         public const int WM_PRINTCLIENT = 0x318;
1746         public const int WM_QUERYDRAGICON = 0x37;
1747         public const int WM_QUERYENDSESSION = 0x11;
1748         public const int WM_QUERYNEWPALETTE = 0x30f;
1749         public const int WM_QUERYOPEN = 0x13;
1750         public const int WM_QUERYUISTATE = 0x129;
1751         public const int WM_QUEUESYNC = 0x23;
1752         public const int WM_QUIT = 0x12;
1753         public const int WM_RBUTTONDBLCLK = 0x206;
1754         public const int WM_RBUTTONDOWN = 0x204;
1755         public const int WM_RBUTTONUP = 0x205;
1756         public const int WM_REFLECT = 0x2000;
1757         public const int WM_RENDERALLFORMATS = 0x306;
1758         public const int WM_RENDERFORMAT = 0x305;
1759         public const int WM_SETCURSOR = 0x20;
1760         public const int WM_SETFOCUS = 7;
1761         public const int WM_SETFONT = 0x30;
1762         public const int WM_SETHOTKEY = 50;
1763         public const int WM_SETICON = 0x80;
1764         public const int WM_SETREDRAW = 11;
1765         public const int WM_SETTEXT = 12;
1766         public const int WM_SETTINGCHANGE = 0x1a;
1767         public const int WM_SHOWWINDOW = 0x18;
1768         public const int WM_SIZE = 5;
1769         public const int WM_SIZECLIPBOARD = 0x30b;
1770         public const int WM_SIZING = 0x214;
1771         public const int WM_SPOOLERSTATUS = 0x2a;
1772         public const int WM_STYLECHANGED = 0x7d;
1773         public const int WM_STYLECHANGING = 0x7c;
1774         public const int WM_SYSCHAR = 0x106;
1775         public const int WM_SYSCOLORCHANGE = 0x15;
1776         public const int WM_SYSCOMMAND = 0x112;
1777         public const int WM_SYSDEADCHAR = 0x107;
1778         public const int WM_SYSKEYDOWN = 260;
1779         public const int WM_SYSKEYUP = 0x105;
1780         public const int WM_TCARD = 0x52;
1781         public const int WM_TIMECHANGE = 30;
1782         public const int WM_TIMER = 0x113;
1783         public const int WM_UNDO = 0x304;
1784         public const int WM_UPDATEUISTATE = 0x128;
1785         public const int WM_USER = 0x400;
1786         public const int WM_USERCHANGED = 0x54;
1787         public const int WM_VKEYTOITEM = 0x2e;
1788         public const int WM_VSCROLL = 0x115;
1789         public const int WM_VSCROLLCLIPBOARD = 0x30a;
1790         public const int WM_WINDOWPOSCHANGED = 0x47;
1791         public const int WM_WINDOWPOSCHANGING = 70;
1792         public const int WM_WININICHANGE = 0x1a;
1793         public const int WM_XBUTTONDBLCLK = 0x20d;
1794         public const int WM_XBUTTONDOWN = 0x20b;
1795         public const int WM_XBUTTONUP = 0x20c;
1796         public const int WPF_SETMINPOSITION = 1;
1797         public const int WS_BORDER = 0x800000;
1798         public const int WS_CAPTION = 0xc00000;
1799         public const int WS_CHILD = 0x40000000;
1800         public const int WS_CLIPCHILDREN = 0x2000000;
1801         public const int WS_CLIPSIBLINGS = 0x4000000;
1802         public const int WS_DISABLED = 0x8000000;
1803         public const int WS_DLGFRAME = 0x400000;
1804         public const int WS_EX_APPWINDOW = 0x40000;
1805         public const int WS_EX_CLIENTEDGE = 0x200;
1806         public const int WS_EX_CONTEXTHELP = 0x400;
1807         public const int WS_EX_CONTROLPARENT = 0x10000;
1808         public const int WS_EX_DLGMODALFRAME = 1;
1809         public const int WS_EX_LAYERED = 0x80000;
1810         public const int WS_EX_LEFT = 0;
1811         public const int WS_EX_LEFTSCROLLBAR = 0x4000;
1812         public const int WS_EX_MDICHILD = 0x40;
1813         public const int WS_EX_RIGHT = 0x1000;
1814         public const int WS_EX_RTLREADING = 0x2000;
1815         public const int WS_EX_STATICEDGE = 0x20000;
1816         public const int WS_EX_TOOLWINDOW = 0x80;
1817         public const int WS_EX_TOPMOST = 8;
1818         public const int WS_HSCROLL = 0x100000;
1819         public const int WS_MAXIMIZE = 0x1000000;
1820         public const int WS_MAXIMIZEBOX = 0x10000;
1821         public const int WS_MINIMIZE = 0x20000000;
1822         public const int WS_MINIMIZEBOX = 0x20000;
1823         public const int WS_OVERLAPPED = 0;
1824         public const int WS_POPUP = -2147483648;
1825         public const int WS_SYSMENU = 0x80000;
1826         public const int WS_TABSTOP = 0x10000;
1827         public const int WS_THICKFRAME = 0x40000;
1828         public const int WS_VISIBLE = 0x10000000;
1829         public const int WS_VSCROLL = 0x200000;
1830         public const int WSF_VISIBLE = 1;
1831         public const int XBUTTON1 = 1;
1832         public const int XBUTTON2 = 2;
1833 
1834         public const int WS_SIZEBOX          =WS_THICKFRAME;
1835         #endregion
1836 
1837     }
1838 }
更多

 

posted on 2016-08-15 14:01  Zoffe  阅读(636)  评论(0)    收藏  举报

导航


Test Footer Code