/[NexusPowerControl]/trunk/NexusPowerCommand/Win32API.cs
ViewVC logotype

Annotation of /trunk/NexusPowerCommand/Win32API.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 27 - (hide annotations) (download)
Tue Oct 25 07:58:02 2011 UTC (8 years, 3 months ago) by william
File size: 491 byte(s)
implement lockscreen

1 william 27 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     }

  ViewVC Help
Powered by ViewVC 1.1.22