forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


System service option

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced Wish List
View previous topic :: View next topic  
Author Message
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Wed Nov 20, 2002 10:11 pm    Post subject: System service option Reply with quote

It would be invaluable to have the option of creating programs that run as a Windows service. There are many programs that will run nearly any kind of program including batch files as Windows services. VDS programmers everywhere would rejoice at a giant step forward in the development of VDS like that... at least I would.

Even a DLL that could do it would be awesome! Very Happy
Anyone...?
Back to top
View user's profile Send private message Send e-mail
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Nov 21, 2002 1:03 am    Post subject: Reply with quote

I totally agree with you. I cannot remember how long I have
been wanting this capability in VDS. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Thu Nov 21, 2002 7:27 am    Post subject: Reply with quote

Running a VDS made program as a service on Windows 95 through ME
is already possible. Just add key and value to your program in the
registry at:

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices

Reboot and your program is now running as a service. It will start
before you even login.

Now for NT it is a different story. You can't and never will get a VDS
made program to run as a true native service on NT. This is because
NT requires that the program be multi-threading, and VDS made
programs are not, and most likely will never be. But!! MS realized
that such languages as VB (Which wasn't multi-threading either and
I'm not sure is multi-threading yet) were not multi-threading. So the
dropped in a little program in the NT resource kit called "SRVANY.EXE".

This program works as an go between program between NT and your
program and allows non multi-threading programs to run as a NT
service.

You will need "INSTSRV.EXE" to install "SRVANY.EXE" and setup your
program as a service. Basically, "SRVANY.EXE" becomes the service
for your program.

I don't know the details of actually installing and setting up this on NT,
so you're kind of on your own.

Ohhhh, one other thing. If the program you want to run as a service
requires the use of a TASKICON, be sure you wait to add that until
after the desktop has loaded, or you may not have your icon showing
in the tray if you try to load it before the desktop and the system tray
are available. You might also want to use NOTITLE if you don't want
your window showing in the taskbar. I'm not sure if adding your
programs to the service will hide title bars.

-Garrett
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Mar 29, 2003 2:01 pm    Post subject: Reply with quote

Garrett, do you think that VDS 5 will have services capabilities?
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group