ViewVC Help
View Directory | Revision Log | Download Tarball | View Changeset | Root Listing
root/NexusPowerControl/trunk/NexusPowerCommand
Revision 46 - Directory Listing - [select for diffs]
Modified Tue Oct 25 10:46:16 2011 UTC (10 years, 8 months ago) by william
Diff to previous 40 (colored)
add icon

Revision 40 - Directory Listing - [select for diffs]
Modified Tue Oct 25 10:33:23 2011 UTC (10 years, 8 months ago) by william
Diff to previous 38 (colored)
update svn:ignores
Revision 38 - Directory Listing - [select for diffs]
Modified Tue Oct 25 10:20:40 2011 UTC (10 years, 8 months ago) by william
Diff to previous 37 (colored)
*** remove old wmi shutdown/reboot code
    +++ using TokenAdjuster.SetPriviledge with SeShutdownPrivilege
	causes shutdown and reboot to work just like logoff (all operations disaply the default 'force/cancel' dialog under windows7/vista

Revision 37 - Directory Listing - [select for diffs]
Modified Tue Oct 25 10:16:08 2011 UTC (10 years, 8 months ago) by william
Diff to previous 36 (colored)
try TokenAduster.SetPrivilege with ExitWindowsEx (for shutdown and reboot)

Revision 36 - Directory Listing - [select for diffs]
Modified Tue Oct 25 09:59:44 2011 UTC (10 years, 8 months ago) by william
Diff to previous 35 (colored)
Obtained TokenAdjuster from: http://www.dotnet247.com/247reference/msgs/58/292150.aspx

Revision 35 - Directory Listing - [select for diffs]
Modified Tue Oct 25 09:25:32 2011 UTC (10 years, 8 months ago) by william
Diff to previous 34 (colored)
mboShutdownParams["Flags"] = flags.ToString(); -> mboShutdownParams["Flags"] = (int)flags;

Revision 34 - Directory Listing - [select for diffs]
Modified Tue Oct 25 09:24:35 2011 UTC (10 years, 8 months ago) by william
Diff to previous 33 (colored)
Add: WMI Impersonation
Update Enum:
internal enum WMIShutdownRebootFlags
{
    Shutdown = 1,
    Reboot = 2,
}

Revision 33 - Directory Listing - [select for diffs]
Modified Tue Oct 25 09:20:38 2011 UTC (10 years, 8 months ago) by william
Diff to previous 32 (colored)
display message boxes with exception thrown by wmi when executing shutdown or reboot

Revision 32 - Directory Listing - [select for diffs]
Modified Tue Oct 25 08:55:24 2011 UTC (10 years, 8 months ago) by william
Diff to previous 31 (colored)
*** use WMI for shutdown/reboot

Revision 31 - Directory Listing - [select for diffs]
Modified Tue Oct 25 08:39:03 2011 UTC (10 years, 8 months ago) by william
Diff to previous 30 (colored)
minor changes to code

Revision 30 - Directory Listing - [select for diffs]
Modified Tue Oct 25 08:27:13 2011 UTC (10 years, 8 months ago) by william
Diff to previous 29 (colored)
*** reference: system.windows.forms
Sleep Stub: public static bool Sleep() { return Application.SetSuspendState(PowerState.Hibernate, false, false); }

Revision 29 - Directory Listing - [select for diffs]
Modified Tue Oct 25 08:11:08 2011 UTC (10 years, 8 months ago) by william
Diff to previous 28 (colored)
add code stubs for:
+ Shutdown
+ Restart
+ Logoff
+ Sleep

Revision 28 - Directory Listing - [select for diffs]
Modified Tue Oct 25 07:59:36 2011 UTC (10 years, 8 months ago) by william
Diff to previous 27 (colored)
rename: Win32API.cs -> win32api.cs
Revision 27 - Directory Listing - [select for diffs]
Modified Tue Oct 25 07:58:02 2011 UTC (10 years, 8 months ago) by william
Diff to previous 26 (colored)
implement lockscreen

Revision 26 - Directory Listing - [select for diffs]
Modified Tue Oct 25 07:49:31 2011 UTC (10 years, 8 months ago) by william
Diff to previous 23 (colored)
Turn off: (testing is completed)
#define USE_TESTING_CODE
++ now time to implement the powerstate commands

Revision 23 - Directory Listing - [select for diffs]
Modified Tue Oct 25 07:39:27 2011 UTC (10 years, 8 months ago) by william
Diff to previous 22 (colored)
use #define USE_TESTING_CODE, for testing application before actually implementing the power state commands

Revision 22 - Directory Listing - [select for diffs]
Added Tue Oct 25 07:22:44 2011 UTC (10 years, 8 months ago) by william
*** inital commit of NexusPowerCommand
    ++ commandline tool for executing the various power control operations

Convenience Links