I expected this to be a simpler task. For now I just
disabled the "Show Shutdown" option in User Interface
Core. This is not a perfect solution, but accomplished
the basic goal. Proper power cycles in the field can be
accomplished thru command line commands.
Thanks for all of your help.
-----Original Message-----
Slobodan,
privilege?
Yes, I am :-( I saw the calls to OpenThreadToken/LookupPrivilegeValue
(SE_SHUTDOWN_NAME)/AdjustTokenPrivileges
(SE_PRIVILEGE_ENABLED)
on the trace.
This is really not an embedded design but on XP Pro it
is likely for good becuase regardless of the current user
rights&priviledges
you want them to have all the buttons enabled on the Gina dialogs.
Regards,
Konstantin
enough rights then you can take SE_SHUTDOWN_NAME as we do
when we want toto associate SE_SHUTDOWN_NAME right with your process
token.I'm talking here from head and it is 8:00 AM I'm too much
dizzy to thinkscode that is responsible for the "Turn Off" dialog
requests for (enables) thetemporarily prior and while making the call to
NtPowerInformation :-(this out (test this), but please try following and let us
know:SE_SHUTDOWN_NAME privilege for all user accounts
including admin accounts except thethinking to accomplish that. Unless they talk about a
custom shell there wherean easy way to remove the Hibernate/Standby options
(buttons) off theis a part of MS Gina. Without replacing the Winlogon's
GINA I don't know anybutton querying to NtPowerInformation to check whether
the Hibernate and StandBytime (power applet, IIRC) or in TD Configuration on HAL
(PC) componentnot related to the post itself. Let us know if you meant
something else.