I posted a question recently that was answered pretty quickly...
--- from previous question ---
I had written a small monitoring program for Windows 98 and have started to convert it into a service
So far it looks good, i've used a template from http://www.jgsoftware.com/nt.htm
-> the vpcsrvce.zip and the service installs, accesses
all my modules and functions from the form and everything is great...until... i use the FindWindow command.
--- end from previous question ---
I am still working on this application, i've come accross two problems.
(1) The GetUserName function returns 'SYSTEM' always, because my service is started from the system account. Is there a way to retrieve the logged on user name?
(2) Everynow and then when logged in with a standard user account (not the account i installed the service from) i get a message box popping up saying 'The operation completed successfully' with the title 'GetLastError'. I know this is coming from the standard uService.pas routines but i'm not sure where from.... so how can i get rid of these popups?