>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.