如何把NT的服务service程序(delphi或其它软件写的)加载到NT的service里?(100分)

  • 主题发起人 主题发起人 pppig
  • 开始时间 开始时间
P

pppig

Unregistered / Unconfirmed
GUEST, unregistred user!
万分感谢!
 
对DELPHI的Service应该是:
yoursvr.exe -install
参数是不是install记不清了,多半是的.
其它的service各有自己的参数,但应该可以用 /? 参数查询,
或者不用参数运行就可以安装.
 
可以自己写一个小程序, 或者用NT ResourceKit里面的。
我写了一个这样的程序, 帮你注册Service程序的, VC source code.
需要的话给我发电子邮件
 
yoursvr.exe /install 安装
yoursvr.exe /uninstall 卸载。

net start yourservicename 启动
net stop yourservicename 停止
 
With SRVANY, you can run any WindowsNT application as a service.

This allows:

applications to run within a logon account different from that of the
current user applications to keep running when one user logs off and
another logs on server applications to service requests even when
nobody is logged on to the server

SRVANY works best with 32-bit applications written for WindowsNT.
You can use this utility to start 16-bit Windows applications as
services, but some 16-bit applications are not able to keep running
after a user logs off from the computer.

Note All SRVANY services should be disabled when installing or
upgrading WindowsNT Server, WindowsNT Workstation, or applications.

Overview of Windows NT Resource Kit Tools version 4.03.05
Microsoft Corporation 1985 - 1998
 
The topic above it how to "make" an application to be a service.
NT resource kit has another tool can help to register or unregister
your service.

I recommend you to refer the sample code in VC (which name is
service) for more detailed information.
 
多人接受答案了。
 
后退
顶部