****** 怎么样通过程序开启和关闭 电源选项属性中的"启用休眠"复选框???****** 怎么样通过程序开启和关闭 电源选项属性中的"启用休眠"复选框??? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 偶找到这些,你看看禁止[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]"Heuristics"=hex:05,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,3f,42,0f,00[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Power]"Heuristics"=hex:05,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,3f,42,0f,00[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Control\Session Manager\Power]"Heuristics"=hex:05,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,3f,42,0f,00 启用[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]"Heuristics"=hex:05,00,00,00,00,01,01,00,97,0B,00,00,16,00,00,00,8C,00,00,00[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Power]"Heuristics"=hex:05,00,00,00,00,01,01,00,97,0B,00,00,16,00,00,00,8C,00,00,00[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Control\Session Manager\Power]"Heuristics"=hex:05,00,00,00,00,01,01,00,97,0B,00,00,16,00,00,00,8C,00,00,00 启用:HKEY hk; BYTE szBuf[]={5,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,63,66,15,0}; LONG lRet; lRet = RegOpenKey(HKEY_LOCAL_MACHINE, "SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Power", &hk);if (lRet == ERROR_SUCCESS) { RegSetValueEx(hk,"Heuristics", 0,REG_BINARY,(LPBYTE) szBuf,sizeof(szBuf)); RegCloseKey(hk);}禁用:HKEY hk; BYTE szBuf[]={5,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,63,66,15,0}; LONG lRet; lRet = RegOpenKey(HKEY_LOCAL_MACHINE, "SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Power", &hk);if (lRet == ERROR_SUCCESS) { RegSetValueEx(hk,"Heuristics", 0,REG_BINARY,(LPBYTE) szBuf,sizeof(szBuf)); RegCloseKey(hk);}要重新启动电脑才会生效! To jjkk168 : 辛苦你了...To supergreenbean : 试试看.To wxfy1977 :要重新启动电脑??? 应当关键不在于编注册表,而在于怎么分配一段与内存大小相同的空间,分配在什么位置,以什么格式分配,相信Windows应当有未公开的API 找到并结束Explorer.exe进程,然后在加载Explorer.exe进程!就不用重新启动了! 因为 Windows 本身设置是不要做其他什么动作的Windows是怎么样做的呢?呵呵 大家继续研究下巴 我上网找了下 Windows Server 2003 中使用 Powercfg.exe可以完成这个要求/hibernate, /h使用此参数打开或关闭休眠功能。所有支持休眠的计算机都不支持休眠超时。你可以用shell调用这个xp中有wmi估计也可以完成命令行下关闭休眠 但是具体参数还没有找到希望对你有启发 更正一下我在xp系统试了下也有这个命令命令格式是这样的powercfg /h off这样就可以了2000不知道,98估计是没有这个命令 200分给我一半就行阿我不黑哈哈 感谢:aspower_(我知道楼下就欣赏偶的分)分都给你了好不?但是还是给别人一点巴你给150 Win2000不重新启动启用休眠是怎么样做到的? 0x04;0x5F;0x00000000是什么格式来的,如要转成16进制的值是什么 怎样访问摄像头?谢谢! 学习C/S编程需要什么? 为何用sql可以,用access不可以? 关于数据库事务处理的问题.分不够可以再加 弱问题:如何选择输出多行文本框的每一行 请教在做控件时, 在调用控件的程序中调用的控件方法应该做成控件的子程序还是函数 谁有用VB做的扫雷源程序?100分相送!绝不失言 来看看我写的MUGEN人物预览利器。 各位 请教一个CAD加载用vb开发的exe问题 在MSHFlexGrid中,当选中某一行、或某一列、或某一单元格时,如何得到这三个位置的返回值。 错在哪里?
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]
"Heuristics"=hex:05,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,3f,42,0f,00[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Power]
"Heuristics"=hex:05,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,3f,42,0f,00[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Control\Session Manager\Power]
"Heuristics"=hex:05,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,3f,42,0f,00 启用
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power]
"Heuristics"=hex:05,00,00,00,00,01,01,00,97,0B,00,00,16,00,00,00,8C,00,00,00[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Power]
"Heuristics"=hex:05,00,00,00,00,01,01,00,97,0B,00,00,16,00,00,00,8C,00,00,00[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Control\Session Manager\Power]
"Heuristics"=hex:05,00,00,00,00,01,01,00,97,0B,00,00,16,00,00,00,8C,00,00,00
HKEY hk;
BYTE szBuf[]={5,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,63,66,15,0};
LONG lRet;
lRet = RegOpenKey(HKEY_LOCAL_MACHINE, "SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Power", &hk);
if (lRet == ERROR_SUCCESS)
{
RegSetValueEx(hk,"Heuristics", 0,REG_BINARY,(LPBYTE) szBuf,sizeof(szBuf));
RegCloseKey(hk);
}禁用:
HKEY hk;
BYTE szBuf[]={5,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,63,66,15,0};
LONG lRet;
lRet = RegOpenKey(HKEY_LOCAL_MACHINE, "SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Power", &hk);
if (lRet == ERROR_SUCCESS)
{
RegSetValueEx(hk,"Heuristics", 0,REG_BINARY,(LPBYTE) szBuf,sizeof(szBuf));
RegCloseKey(hk);
}要重新启动电脑才会生效!
/hibernate, /h
使用此参数打开或关闭休眠功能。所有支持休眠的计算机都不支持休眠超时。你可以用shell调用这个xp中有wmi估计也可以完成命令行下关闭休眠 但是具体参数还没有找到希望对你有启发