Jump to content

timbCFCA

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by timbCFCA

  1. How can I get the owner of a process when all I have is a handle from WinGetHandle()? Most everything I've seen has been trying to from PIDs to handles. I'm guessing that this needs to go in the opposite direction, and then take the PID and find the user... But I'm not sure how to do it.
  2. I have been working with the Services.udf in conjunction with ServiceExample.au3 as well as the Sessionchange.au3 package. I can reliably get the package to work for 5-20 minutes, after which it quits. My debugging shows it usually dies in the sleep section, occasionally when waking back up. I've seen several references to similiar behavior throughout the comments here but nothing with a definiitve answer. Is there anything I can do to straighten this out? I tried turning on some of the disabled logging in Services.au3 but it did not shed any light.
  3. I've been reading through the comments on the Services functions. That is where I got the logPrint and everything but the one block of code I put together.
  4. I have a small script that I have turned into a service using the UDFs from this forum. The service definition calls my custom function, sleeps for 1 second and then restarts my function. While $gServiceStateRunning CST() ; Wait 1 seconds logPrint("Error state after CST:" & @error ) logPrint("Starting sleep...") Sleep(1000) logPrint("Ending sleep...") WEnd Things will go well for a while and then the service will simply stop responding. I wrote in some additional logging but the process, where I am getting the following: 20120203 114722 [5056] >> Starting sleep... 20120203 114723 [5056] >> Ending sleep... 20120203 114723 [5056] >> Starting CST function... 20120203 114723 [5056] >> Enumerating registry... 20120203 114723 [5056] >> Enumerating registry... 20120203 114723 [5056] >> Enumerating registry... 20120203 114723 [5056] >> Clearing error code 20120203 114723 [5056] >> Exiting loop 20120203 114723 [5056] >> Setting default group if none exists 20120203 114723 [5056] >> Reading registry data... 20120203 114723 [5056] >> Exiting CST function 20120203 114723 [5056] >> Error state after CST:0 20120203 114723 [5056] >> Starting sleep... The hang always occurs at the starting sleep line. Should I look at another timing function?
×
×
  • Create New...