在System Start + win32应用程序上运行 [英] Run on System Start + win32 application

查看:99
本文介绍了在System Start + win32应用程序上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在那里

我希望基于Win32对话框的应用程序在系统启动时自动运行.
我该怎么办?

Hi,, there

I want my Win32 dialog based application to run automatically when system start..

how can i do this ?

推荐答案

这看起来很有希望:
This looks promising: http://weblogs.asp.net/rajneesh-verma/archive/2011/02/14/run-the-windows-net-application-in-system-tray-on-system-startup.aspx[^].

Cheers!


当然可以.有很多方法可以实现.
1.您可以将程序添加到启动"文件夹中
2.您可以通过将条目添加到HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Run注册表项来实现.

这里有一些指针:

http://oreilly.com/pub/a/oreilly/windows/ron/startup_0401.html [ ^ ]
Of course you can do it. There are serveral ways of doing it.
1. You can add your program to the Startup folder
2. You can do it by adding an entry to HKCU\Software\Microsoft\Windows\CurrentVersion\Run registry keys.

Here are few pointers:

http://oreilly.com/pub/a/oreilly/windows/ron/startup_0401.html[^]


第一个也是最高级的选项是开发Windows服务.如果在其属性中使用Auto选项,它将在系统启动时运行.

有很多地方可以注册启动运行的应用程序.我基于 SysInternals 应用程序" AutoRuns "使用自己的方法.

访问Sysinternals,下载SysInternals Suite: http://technet.microsoft.com/en-us/sysinternals/bb842062 [ ^ ](您可以仅下载AutoRuns ,但是整个套件是如此有用,请参见索引: http://technet.microsoft.com/en-us/sysinternals/bb545027 [^ ])) .

解压并执行 AutoRuns .它将显示一棵带有完整位置列表的树.您可以使用转到注册表"功能来找到注册表项,您需要以编程方式进行安装.

—SA
First and most advanced option is developing a Windows Service. It will run on system start if you use Auto option in its properties.

There are good number of place where to register an application to run on start. I use my own method based on SysInternals application "AutoRuns".

Visit Sysinternals, Download SysInternals Suite: http://technet.microsoft.com/en-us/sysinternals/bb842062[^] (you can download just AutoRuns, but whole suite is so useful, see the index: http://technet.microsoft.com/en-us/sysinternals/bb545027[^]).

Unpack and execute AutoRuns. It will show a tree with the comprehensive list of locations. You can use "go to registry" feature to locate the registry key, which you need to do programmatic installation.

—SA


这篇关于在System Start + win32应用程序上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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