Lock work station : Native Windows Function : Windows C# Examples


C# Examples » Windows » Native Windows Function »

 

Lock work station









    
using  System;
using  System.Collections;
using  System.Data;
using  System.Runtime.InteropServices;

public  class  MainClass  {
    [  DllImport(  "user32.dll"  )  ]
    private  static  extern  bool  LockWorkStation();


    [STAThread]
    static  void  Main()  
    {
        LockWorkStation();
    }

}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Windows
» Native Windows Function