Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run VFP App as service
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00471013
Message ID:
00471356
Vues:
21
>Okay, assuming I decide to do this and pick up the licensed Resourced Kit, I have two questions.
>
>First, if I have purchased the resource kit are the files then distributable with my application, or does each client have to purchase a resource kit as well?
>

Your purchase of an RK does not entitle your to distribute it.

>Second, regarding the logoff problem...
>In some documentation for srvany.exe I found the following:
>
>"For WIN32 graphical applications: when the currently logged-in user is logging-off, all WIN32 top-level windows receive WM_QUERYENDSESSION and WM_ENDSESSION messages. Some WIN32 applications choose to terminate upon receipt of such messages. In order for your WIN32 application to survive logoff, it must not do that: instead, your windows procedure should call the default windows procedure on these messages."
>
>Is there a way to trap these messages and handle them appropriately? Or, what if your application has no main window (SCREEN=OFF in config file) and doesn't create any windows. Will still have an object sitting there as a top-level window?
>

Not in VFP alone, since you can't hook or subclass the WinMain directly.

>To sum it up, I guess my question is: has anybody figured out how get around the logoff problem using a VFP application as Windows NT/2000 service?

AFAIK, no.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform