关闭显示器-转
来源:互联网 发布:单片机编程技巧 编辑:程序博客网 时间:2024/04/29 08:20
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace WindowsFormsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
public const uint WM_SYSCOMMAND = 0x0112;
public const uint SC_MONITORPOWER = 0xF170;
[DllImport("user32")]
public static extern IntPtr SendMessage(IntPtr hWnd,uint wMsg,uint wParam, int IParam);
private void button1_Click(object sender, EventArgs e)
{
CloseLCD(sender,e);
}
void CloseLCD(object sender,EventArgs e)
{
SendMessage(this.Handle, WM_SYSCOMMAND, SC_MONITORPOWER, 2);//2为黑屏,-1为打开
}
}
}
- 关闭显示器-转
- 关闭显示器
- 关闭显示器
- C++ 关闭显示器 打开显示器
- C#关闭显示器,打开显示器
- 关闭笔记本显示器
- [VC]关闭笔记本显示器
- [VC]关闭笔记本显示器
- C#之关闭显示器!...
- Ubuntu笔记本关闭显示器
- 关闭显示器自动休眠
- mac bookpro 关闭显示器
- C++暂时关闭显示器
- 打开, 关闭显示器
- 关闭显示器的小程序
- 编程实现关闭电脑显示器
- C# 关闭/打开显示器工具
- win7: 设定关闭显示器时间
- 网管---网吧里的专业技术人才
- 实用JavaScript脚本代码大全
- Fiddler 网页分析工具
- 带滚动条的table (ie only)
- iBatis resultMap出错 The error happened while setting a property on the result object 解决办法
- 关闭显示器-转
- new、vitual、override之间那点事
- 郁闷
- SSRS ReportViewer : Unable to load client print control
- 可编辑的下拉菜单
- 恰当选择嵌入式Linux环境下的GUI系统
- c#语言基础(6)----结构(struct)和类(class)的 区别
- JS的下拉提示框,和Google下拉提示框差不多
- php程序提速原理分析