在Windows 7中系统登录时如何创建进程 [英] How can I create a process when system Logon in windows 7

查看:110
本文介绍了在Windows 7中系统登录时如何创建进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个困扰我很久的问题.
当用户选择要登录LogonUI的帐户时,我想启动一个过程.
我曾尝试使用通常会创建诸如CreateProcess之类的进程的API在LogonProvide.dll中创建它,但是所有操作都失败了.(LogonProvide.dll称为winlogon.exe,并且以系统帐户身份运行)
有什么办法可以解决这个问题.
如果有人有任何建议,请回复我.
非常感谢.

Here a problem puzzle me for a long time.
I want to start a process when user select a account to login at LogonUI.
I had tried to create it in LogonProvide.dll with API which normally create a process, such as CreateProcess, but all failed.(LogonProvide.dll is called winlogon.exe and run as system account)
Is there any way to solve this problem.
If somebody has any suggestion please reply me.
Thanks a lot.

推荐答案

您可以使用以下项将应用程序放置在注册表中运行:

You can place the application to run in Registry using the key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run



我拥有秘密武器",可用来学习有关自动启动过程的所有信息:Sysinternals AuroRuns应用程序.转到Sysinternals网站: http://technet.microsoft.com/zh-cn/sysinternals [ ^ ],下载Sysinternals Suite:http://technet.microsoft.com/en-us/sysinternals/bb842062 [



I have my "secret weapon" I use to learn all I need about auto-start processes: Sysinternals AuroRuns application. Go to Sysinternals Web site: http://technet.microsoft.com/en-us/sysinternals[^], download Sysinternals Suite: http://technet.microsoft.com/en-us/sysinternals/bb842062[^], unpack and run AutoRuns.exe. Read help, browse auto-run categories and items — you will find out what is called from where and how you can add your application to it.

—SA


这可以帮助您:

从NT服务启动Windows程序 [刘向阳 [
This could help you:

Start Your Windows Programs From An NT Service[^]

It is an article from Xiangyang Liu[^] that will allow you to start your application as if it was a service.

Easy to use and it can work for you.

Regarding the CTRL+ALT+DELETE, you should look at GINA.DLL (if you are using a prior to 7 windows version).

In windows 7 I don''t know how to change it''s behavior.

HTH!


这篇关于在Windows 7中系统登录时如何创建进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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