1 using System; 2 using System.Runtime.InteropServices; 3 4 namespace x 5 { 6 unsafe class NativeWindow 7 { 8 /* 9 * Window field offsets for GetWindowLong() 10 */ 11 public const int GWL_WNDPROC = (-4); 12 public const int GWL_HINSTANCE = (-6); 13 public const int GWL_HWNDPARENT = (-8); 14 public const int GWL_STYLE = (-16); 15 public const int GWL_EXSTYLE = (-20); 16 public const int GWL_USERDATA = (-21); 17 public const int GWL_ID = (-12); 18 19 public const int GWLP_WNDPROC = (-4); 20 public const int GWLP_HINSTANCE = (-6