Windows启动时执行.dll,而无需打开应用程序 [英] execute .dll wih windows start without open the application

查看:88
本文介绍了Windows启动时执行.dll,而无需打开应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有执行许多功能的.DLL文件.
但是我想在Windows每10分钟启动一次时执行此DLL.
无论打开我的应用程序

I have .DLL file that do alot of functions.
But I want to execute this DLL when windows start up every 10 minutes.
Regardless opening my application
how can I do this please I want help.

推荐答案

通常,此类功能是通过Windows服务完成的,为DLL创建服务并在Timer上调用方法.

阅读以下内容:
http://msdn.microsoft.com/en-us/library/aa984464%28v = vs.71%29.aspx [ ^ ]

简单Windows服务示例 [
Usually such functionality is done with a windows service, create a service for your DLL and call your methods on a Timer.

Read the following :
http://msdn.microsoft.com/en-us/library/aa984464%28v=vs.71%29.aspx[^]

Simple Windows Service Sample[^]


请参阅我对问题的评论.问题是您没有指定运行DLL"的含义,因此,除非您了解真正的需求,否则无法解决您的问题.

为了更好地理解,您应该了解什么是可执行模块以及DLL的作用.您可以从RunDLL.exe或RunDLL32.exe应用程序上的信息中快速获得一些想法.他们需要指定什么是DLL以及将什么用作入口点:
http://support.microsoft.com/kb/164787 [ http://en.wikipedia.org/wiki/Shared_library#Shared_libraries [ http://en.wikipedia.org/wiki/Dynamic-link_library [ http://en.wikipedia.org/wiki/EXE [ http://en.wikipedia.org/wiki/Portable_Executable [ http://en.wikipedia.org/wiki/Executable [ http://en.wikipedia.org/wiki/Executable_file_format [
Please see my comment to the question. The problem is that you don''t specify what do you mean by "run a DLL", so your problem cannot be solved until you understand what you really need.

For better understanding, you should understand what the executable modules are and what is the role of DLLs. You can get some idea quickly from the information on the RunDLL.exe or RunDLL32.exe applications. They require to specify what is the DLL and what to use as the entry point:
http://support.microsoft.com/kb/164787[^].

Are you getting the idea?

Now, you need to understand what the executable modules do:
http://en.wikipedia.org/wiki/Shared_library#Shared_libraries[^],
http://en.wikipedia.org/wiki/Dynamic-link_library[^],
http://en.wikipedia.org/wiki/EXE[^],
http://en.wikipedia.org/wiki/Portable_Executable[^],
http://en.wikipedia.org/wiki/Executable[^],
http://en.wikipedia.org/wiki/Executable_file_format[^].

Makes some research, have a good reading and come back with your questions. To solve your problem you tried to formulate in the present question, try to understand what you really want, based on new knowledge and come back with more accurate questions. We will gladly help you.

—SA


这篇关于Windows启动时执行.dll,而无需打开应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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