C# Win32消息系列-User32.dll


        [DllImport("User32.dll", EntryPoint = "SendMessage")]
        private static extern int SendMessage(
        IntPtr hWnd,   // handle to destination window 
        int msg,    // message 
        int wParam, // first message parameter 
        int lParam // second message parameter 
        );

        [DllImport("User32.dll")]
        private static extern IntPtr GetSystemMenu(IntPtr hWnd,bool bRevert);
        [DllImport("User32.dll")]
        private static extern bool EnableWindow(IntPtr hWnd, bool bEnabled);
        [DllImport("User32.dll")]
        private static extern bool ShowWindow(IntPtr hWnd, int showFlag);
        [DllImport("User32.dll")]
        private static extern IntPtr GetSubMenu(IntPtr hWnd, int pos); 
        [DllImport("User32.dll")]
        private static extern int GetMenuItemCount(IntPtr hWnd);  
        [DllImport("User32.dll")]
        private static extern IntPtr GetMenu(IntPtr hWnd);   
        [DllImport("User32.dll")]
        private static extern bool SetWindowTextA(IntPtr hWnd,string text); 


展开阅读全文

没有更多推荐了,返回首页