Revision: | 27 |
Committed: | Tue Oct 25 07:58:02 2011 UTC (10 years, 8 months ago) by william |
File size: | 491 byte(s) |
Log Message: | implement lockscreen |
# | Content |
---|---|
1 | using System; |
2 | using System.Collections.Generic; |
3 | using System.Linq; |
4 | using System.Text; |
5 | using System.Runtime.InteropServices; |
6 | |
7 | namespace NexusPowerCommand |
8 | { |
9 | public class win32api |
10 | { |
11 | #region win32api defined |
12 | [DllImport("user32.dll")] |
13 | private static extern bool LockWorkStation(); |
14 | #endregion |
15 | |
16 | #region win32api wrappers |
17 | public static bool LockScreen() { return win32api.LockWorkStation(); } |
18 | #endregion |
19 | } |
20 | } |