如何使用C#或VB.net检测笔记本电脑的机盖关闭或打开 [英] How to detect laptop lid close or open using C# or VB.net

查看:117
本文介绍了如何使用C#或VB.net检测笔记本电脑的机盖关闭或打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要检测笔记本电脑的机盖是关闭还是打开,然后我的程序将选择其操作模式.那么,使用C#或VB.net有什么办法,我可以找到笔记本电脑盖的状态吗?

I need to detect if the laptop lid is close or open and based on that my program will select its mode of operation. So is there any way using C# or VB.net, I can find the status of laptop lid?

谢谢

推荐答案

这里有一个类似的问题.

There is a similar question asked here.

http://msdn.microsoft.com/en-us/library/aa373196.aspx

此页面为您提供详细信息.

This page gives you details.

http://msdn.microsoft.com/en-us/library/aa373195.aspx


这篇关于如何使用C#或VB.net检测笔记本电脑的机盖关闭或打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆