You need to pass in a reference to a hash into Win32::Daemon::CreateService(). To specify "interact with desktop" set the 'service_type' key's value to SERVICE_WIN32_OWN_PROCESS | SERVICE_INTERACTIVE_PROCESS. This is the default value if you don't specify any value for this key. Mind you desktop interaction will only work if the logon account is 'LocalSystem' (again the default account). You may need to add a call to Win32::Daemon::ShowService() to actually display the service's console on the desktop.
-----Original Message----- From: Stuart Whelan (DSL Ch) [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 8:30 PM To: '[EMAIL PROTECTED]' Subject: CreateService as Interactive? For quite some time I have been using Win32::Daemon in my code. Today I needed to set the Interact With Desktop service option on, and visited the Roth website documentation to see how this was done.. To my dismay I see that the CreateService method documentation has been removed.. I have placed an order for the book that they sell, but I /really/ need to resolve this in the next 2 days, not in 10 - 16 days when the book arrives. Can anyone tell me how to turn on the 'interact with desktop' option on when using createservice, or how to reconfigure a service to enable the option? Any assistance would be most appreciated! Cheers, Stuart Whelan Technical Consultant System Performance & Availability Services Datacom Systems LTD DDI: +64 3 3437144 MOB: +64 25 275 0309 _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
