Wrox Programmer Forums
|
C# 4.0 aka C# 2010 General Discussion Discussions about the C# 4.0, C# 4, Visual C# 2010 language and tool not related to any specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 4.0 aka C# 2010 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 19th, 2010, 07:18 PM
Registered User
 
Join Date: Aug 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Log out of windows from .Net

I have an application with a long running process. When it completes I would like the application to log off the computer. This will automatically close all running apps.

I''m not sure what Namespace to use. If someone has a simple code sample that would be great.

Thanks,
MFZ
 
Old April 13th, 2011, 08:41 AM
Authorized User
 
Join Date: Dec 2004
Posts: 69
Thanks: 0
Thanked 5 Times in 5 Posts
Send a message via Yahoo to whiterainbow
Default

Just start a process and execute the shutdown -l and the rest will be done.
__________________
Thanks in advance.

Regards,

Senthil Kumar M.





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to generate log files in VB.Net UmeshA Visual Studio 2005 0 April 15th, 2010 01:49 PM
How to implement 'Log in as another user' feature in asp.net windows authentication? naush83 BOOK: Professional ASP.NET 3.5 Security, Membership, and Role Management ISBN: 978-0-470-37930-1 0 October 19th, 2009 05:16 AM
AppException Class -Log Error to Event Log bekim BOOK: ASP.NET Website Programming Problem-Design-Solution 7 December 7th, 2004 01:01 PM
log out problem in ASP.net aravwind General .NET 3 July 19th, 2004 09:23 AM
How do I collect windows log on tray Javascript How-To 2 September 3rd, 2003 02:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.