Re: how to tell the service my account is login
- From: "Mark Yudkin" <myudkinATcompuserveDOTcom@xxxxxxxxx>
- Date: Wed, 18 May 2005 08:18:10 +0200
You can't. A service runs without a user logon by definition. If you only
need somethjing that runs whilst you're logged in, use the startup folder.
The best you can do is to have the service automatically pause when started,
place a (second) program in the all users or your account user's startup
folder, and have that use the Service API to continue your service. To
handle the user logoff, use SetConsoleCtrlhandler to register a handler for
the logoff event.
You may wish toconsider purchasing Dan Appleman's kit for writing services
in VB6. The MS demo ntsvc.ocx has a lot ot "limitations".
"Alzzl" <alzzlnewtype@xxxxxxxxxxx> wrote in message
news:op.squdhbxafoiyvw@xxxxxxxx
>I make my vb app as a service,by use the control ntsvc.ocx,but the service
>app
> is running after the windows was loaded ,I want to pause my service app
> until
> I have login my account,how I do it?
>
> thanks in advance
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
.
- References:
- how to tell the service my account is login
- From: Alzzl
- how to tell the service my account is login
- Prev by Date: Re: Retrieve CPU FID
- Next by Date: Re: System-wide hooking, VB+ASM
- Previous by thread: how to tell the service my account is login
- Next by thread: I need a MouseOff event!
- Index(es):
Relevant Pages
|
Loading