Re: how to tell the service my account is login



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/


.



Relevant Pages

  • Re: Launch iexplore at startup ...
    ... start that early in the boot process. ... The app must call SignalStarted ... You will do much better to use the startup folder. ... > This exe will have to wait for everything to be ready to start iexplorer. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Start program at system boot
    ... I know that I can put a shortcut for my app in the startup folder. ... system boot. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: complete uninstall of apps
    ... nothing there in any startup folder ... >> does anyone know why, when uninstalling an app such as skype, i get a ... >> where could the trigger be calling for this app to attempt to be ...
    (microsoft.public.pocketpc)
  • Re: "multi user" in Windows 2000
    ... >He started a program on a windows 2000 box, ... has the ability to start an app as user A, logoff, logon as user B ... startup folder. ...
    (borland.public.delphi.nativeapi)

Loading