Windows Vista系统如何彻底清除垃圾? 史上最便宜的Vista笔记本大比拼 完全清理Vista注册表文件垃圾 Windows Vista的超级防火墙 全方位、360度的保护你的Vista系统 戴尔(Dell)笔记本预装Vista更送200元 世界顶级免费Vista系统杀毒软件 Vista 系统运行更快速的秘密
当前位置:首页 >> Vista下载

【Vista之家原创】借助老外小软件,为vista的笔记本省电


2007年5月9日 编辑:Vista之家 - doo 人气: 评论:3

今天上网,发现了一个老外的创意小程序,程序大小16K,号称可以给Windows Vista省电。根据原文简译了下它的介绍,原理大概就是驻留内存检测电源情况,如果为电池供电则自动关闭Aero,如果来电了就自动把Aero打开,对于笔记本用户来说这样的程序能给电池续航带来不少帮助。

大家感兴趣的话可以下载来试用一下,或者会带给你意想不到的效果!

下载:Windows Vista Aero 笔记本省电器
下载:Windows Vista Aero 笔记本省电器 源代码

Vista之家www.vista123.com)特别提供英文原文如下给大家参考:

I get a bit irked when I see stuff that can be solved but people just complain about it. News.com, slashdot, zdnet … list goes on and on about people jumping on the bandwagon. So you know what, I attempted to fix it.

Ok, here is my solution. I spent more time prepping this post than writing the application. Two source materials are a coding 4 fun post by Arian Kulp that handled the power management and a MSDN magazine article by Ron Fosner.

源代码:

using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;
	
using Microsoft.Win32;
	
namespace VistaLaptopBatterySaver
{
    public partial class Form1 : Form
    {
        /* 
         * Copyright Clint Rutkas May 2007
         * 
         */
        [DllImport(“dwmapi.dll”, PreserveSig = false)]
        public static extern void DwmEnableComposition(bool bEnable);
	
        [DllImport(“dwmapi.dll”, PreserveSig = false)]
        public static extern bool DwmIsCompositionEnabled();
	
        public Form1()
        {
            InitializeComponent();
            enableToolStripMenuItem.Checked = DwmIsCompositionEnabled();
        }
	
        private void Form1_Load(object sender, EventArgs e)
        {
            SystemEvents.PowerModeChanged += new PowerModeChangedEventHandler(SystemEvents_PowerModeChanged);
            UpdatePowerInfo();
        }
	
        private void SystemEvents_PowerModeChanged(object sender, PowerModeChangedEventArgs e)
        {
            UpdatePowerInfo();
        }
	
        private void UpdatePowerInfo()
        {
            if (enableToolStripMenuItem.Checked)
            {
                PowerStatus ps = SystemInformation.PowerStatus;
	
                DwmEnableComposition((ps.PowerLineStatus == PowerLineStatus.Online));
            }
        }
	
        private void enableToolStripMenuItem_CheckStateChanged(object sender, EventArgs e)
        {
            UpdatePowerInfo();
        }
	
        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Close();
        }
	
        private static void aboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AboutBox ab = new AboutBox();
            ab.Show();
        }
    }
}
      
Vista之家网友 (202.99.210.*) 于 2008-4-16 19:07:32 发表下列评论:   [删除]
拿来用用
Vista之家网友 (211.82.100.*) 于 2007-11-16 15:15:44 发表下列评论:   [删除]
我也是Aero啊,用电池的时候系统自动把Aero给关了
Vista之家网友 (116.24.161.*) 于 2007-11-15 11:30:14 发表下列评论:   [删除]
行不行?
发表评论
昵称:
内容:
(按Control+Enter直接提交)   点击一下,Vista问题有问必答
Vista优化大师
firefox
搜狗拼音输入法

完全清理 Windows Vista 注册表和系统垃圾
世界顶级的注册表垃圾清理软件,完全免费下载
多项世界大奖的5星级清理专家,完美支持Vista

Windows Vista 系统加速的秘密
Windows Vista系统应用运转更加快速
加速你的Windows Vista应用程序

Windows Vista 最好的防火墙 - Stopzilla
Stopzilla保护你的电脑,防止Trojan(特洛伊木马)程序
防止黑客入侵您的Windows Vista系统

戴尔笔记本电脑3199元疯狂热销
七天免费试用?免费升级内存硬盘?
更有超多礼物发送中,不抢白不抢

Windows Vista 装机必备软件大全
压缩、备份、杀毒、优化、办公、美化、虚拟光驱等常用软件
Windows Vista操作系统软件安装一条龙

热门文章