如何通过批处理/运行命令将平板电脑带入连接待机状态? [英] How to bring a tablet into connected standby via batch/run command?

查看:115
本文介绍了如何通过批处理/运行命令将平板电脑带入连接待机状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

%windir%\system32\rundll32.exe PowrProf.dll, SetSuspendState Standby
%windir%\system32\rundll32.exe PowrProf.dll, SetSuspendState 0,1,0

不起作用,它总是触发休眠。这对我来说似乎是个错误。但是需要有一种触发连接待机的方法,否则启动菜单睡眠或电源键都不会工作。

Doesnt work, it always triggers a hibernate. This seems like a bug to me. But there needs to be a way to trigger connected standby, otherwise start menu sleep nor power key wont work.

int _tmain(int argc, _TCHAR* argv[])
{
SetSuspendState(false, false, false);

return 0;
}


简单的c ++程序也不起作用。



Simple c++ program doesnt work neither.


推荐答案

您好,

您能否提供更多信息以便我们解决问题? 
根据您的描述。我很迷惑。关于如何使用SetSuspendState函数?我认为这是对的。如果我们测试代码是一个bug。我们可以在connect.microsoft上发布该问题。

Could you please provide more information for us to solve the problem?  According to your description. I am confused. About how to use the SetSuspendState function? I think this is right. If we test the code is a bug. We can post the issue on connect.microsoft.

https://connect.microsoft.com/

最好的问候,

Hart


这篇关于如何通过批处理/运行命令将平板电脑带入连接待机状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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