Using 'InitiateSystemShutdown' I get on Windows 2003...

Code:
--------------------
    
  Description:
  The process winlogon.exe has initiated the power off of computer GARAGE2 on 
behalf of user GARAGE2\Administrator for the following reason: Legacy API 
shutdown
  Reason Code: 0x80070000
  Shutdown Type: power off
  Comment: SCPowerTool SHUTDOWN
  
  The process winlogon.exe has initiated the restart of computer GARAGE2 on 
behalf of user GARAGE2\Administrator for the following reason: Legacy API 
shutdown
  Reason Code: 0x80070000
  Shutdown Type: restart
  Comment: SCPowerTool RESTART
  
--------------------


BTW above messages don't change if SC is an non-interactive service or
a running application under a user profile.

Yeah, InitiateSystemShutdown is a legacy function. MS say applications
should now use the InitiateSystemShutdownEx function, and I see your
point about needing a custom reason code added.

-&-

BTW on Windows XP Pro, I get


Code:
--------------------
    
  The process winlogon.exe has initiated the restart of DEV-1-XPSP3 for the 
following reason: No title for this reason could be found
  Minor Reason: 0xff
  Shutdown Type: shutdown
  Comment: SCPowerTool SHUTDOWN
  
--------------------


"No title for this reason could be found". Think some flags need
looking at?

I need to crash, been up 17 hours today :-\(

--
Adrian C


-- 
tenwiseman
------------------------------------------------------------------------
tenwiseman's Profile: http://forums.slimdevices.com/member.php?userid=5764
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to