NativeMethods.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / WinFormsIntegration / MS / Win32 / NativeMethods.cs / 2 / NativeMethods.cs

                            //**************************************************************************** 
// DO NOT adjust the visibility of anything in these files.  They are marked
// internal on purpose.
//***************************************************************************
 
namespace MS.Win32
{ 
    using System; 

    internal static class NativeMethods 
    {
        public static IntPtr HWND_TOP = IntPtr.Zero;

        public const int LOGPIXELSX = 88; 
        public const int LOGPIXELSY = 90;
 
        public const int SWP_NOSIZE = 1; 
        public const int SWP_NOMOVE = 2;
 
        public const int UIS_SET = 1;
        public const int UIS_INITIALIZE = 3;
        public const int UISF_HIDEFOCUS = 0x1;
        public const int UISF_HIDEACCEL = 0x2; 

        public const int WM_CREATE = 0x0001; 
        public const int WM_MOVE = 0x0003; 
        public const int WM_SIZE = 0x0005;
        public const int WM_SETFOCUS = 0x0007; 
        public const int WM_KILLFOCUS = 0x0008;
        public const int WM_SETREDRAW = 0x000B;
        public const int WM_WINDOWPOSCHANGING = 0x0046;
        public const int WM_WINDOWPOSCHANGED = 0x0047; 
        public const int WM_ACTIVATEAPP = 0x001C;
        public const int WM_MOUSEACTIVATE = 0x0021; 
        public const int WM_CHILDACTIVATE = 0x0022; 
        public const int WM_GETOBJECT = 0x003D;
 
        public const int WM_KEYDOWN = 0x0100;
        public const int WM_KEYUP = 0x0101;
        public const int WM_CHAR = 0x0102;
        public const int WM_DEADCHAR = 0x0103; 
        public const int WM_SYSKEYDOWN = 0x0104;
        public const int WM_SYSKEYUP = 0x0105; 
        public const int WM_SYSCHAR = 0x0106; 
        public const int WM_SYSDEADCHAR = 0x0107;
        public const int WM_UPDATEUISTATE = 0x0128; 

        public const int WM_PARENTNOTIFY = 0x0210;
        public const int WM_USER = 0x0400;
        public const int WM_REFLECT = WM_USER + 0x1C00; 

        public const int WM_INPUTLANGCHANGE = 0x0051; 
        public const int WM_IME_NOTIFY = 0x0282; 
        public const int IMN_SETCONVERSIONMODE = 0x0006;
        public const int IMN_SETOPENSTATUS     = 0x0008; 
    }
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//**************************************************************************** 
// DO NOT adjust the visibility of anything in these files.  They are marked
// internal on purpose.
//***************************************************************************
 
namespace MS.Win32
{ 
    using System; 

    internal static class NativeMethods 
    {
        public static IntPtr HWND_TOP = IntPtr.Zero;

        public const int LOGPIXELSX = 88; 
        public const int LOGPIXELSY = 90;
 
        public const int SWP_NOSIZE = 1; 
        public const int SWP_NOMOVE = 2;
 
        public const int UIS_SET = 1;
        public const int UIS_INITIALIZE = 3;
        public const int UISF_HIDEFOCUS = 0x1;
        public const int UISF_HIDEACCEL = 0x2; 

        public const int WM_CREATE = 0x0001; 
        public const int WM_MOVE = 0x0003; 
        public const int WM_SIZE = 0x0005;
        public const int WM_SETFOCUS = 0x0007; 
        public const int WM_KILLFOCUS = 0x0008;
        public const int WM_SETREDRAW = 0x000B;
        public const int WM_WINDOWPOSCHANGING = 0x0046;
        public const int WM_WINDOWPOSCHANGED = 0x0047; 
        public const int WM_ACTIVATEAPP = 0x001C;
        public const int WM_MOUSEACTIVATE = 0x0021; 
        public const int WM_CHILDACTIVATE = 0x0022; 
        public const int WM_GETOBJECT = 0x003D;
 
        public const int WM_KEYDOWN = 0x0100;
        public const int WM_KEYUP = 0x0101;
        public const int WM_CHAR = 0x0102;
        public const int WM_DEADCHAR = 0x0103; 
        public const int WM_SYSKEYDOWN = 0x0104;
        public const int WM_SYSKEYUP = 0x0105; 
        public const int WM_SYSCHAR = 0x0106; 
        public const int WM_SYSDEADCHAR = 0x0107;
        public const int WM_UPDATEUISTATE = 0x0128; 

        public const int WM_PARENTNOTIFY = 0x0210;
        public const int WM_USER = 0x0400;
        public const int WM_REFLECT = WM_USER + 0x1C00; 

        public const int WM_INPUTLANGCHANGE = 0x0051; 
        public const int WM_IME_NOTIFY = 0x0282; 
        public const int IMN_SETCONVERSIONMODE = 0x0006;
        public const int IMN_SETOPENSTATUS     = 0x0008; 
    }
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK