66020 members! Sign up to stay informed.

Sponsored Links


Resources

.NET Research Library
Get .NET related white papers, case studies and webcasts

Samples Samples Samples Messages: 1 Messages: 1 Messages: 1 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

Secondary Login from C#

Posted by: Keith Brown on April 08, 2004 DIGG
This is a sample showing how to call CreateProcessWithLogonW from C#. This allows you to start a new process using alternate credentials. In this example, I start a command prompt running under a local account called "Alice", loading her profile. To test this, try executing the command "set u" from within the new command prompt, and notice that the USERNAME environment variable should be set to "Alice" - it's Alice's profile you're looking at from that command prompt.

This sample requires Windows 2000, XP, or .NET Server.

http://www.theserverside.net/developmentor/downloads/samples/secondaryLogon.zip
  Message #124388 Post reply Post reply Post reply Go to top Go to top Go to top

Secondary Login from C#

Posted by: Michael Morse on June 02, 2004 in response to Message #117306
Does not work... CreateProcessWithLoginW return true however the app still shows that I am the user that launchecd it.

Recent active threads Recent active threads Recent active threads More More More
PPT to SWF (Flash) and PDF to SWF Conversion in .NET Application
Integrating 3rd Party Single Sign On into SharePoint Portal 2003
[ANN] Agile Cambridge 2010 - October 14-15
Solutions for open source data quality
Talend Appoints Vice President of Corporate Development
We had a fire at work today
How to add barcoding support to ASP.NET Mobile websites (VB.NET
More active threads »
Top posters of the weekTop posters of the weekTop posters of the week
This list contains the members who have made the most posts in all forums over the last 7 days:
  1. aspose seo
  2. Guru Talend
  3. Mark Dalgarno
  4. Jim Thorstad
  5. Sophie Everett
Hot threads Hot threads Hot threads More hot threads More hot threads More hot threads

Eclipse vs. Visual Studio at EclipseCon 2006

Speaking at EclipseCon 2006, Java developer and independent consultant Madhu Siddalingaiah compared Microsoft's Visual Studio IDE to the open source development environment of Eclipse.
(32 comments, last posted December 29, 2007)

Tech Talk: Peter Provost on CAB and Agile development

In this tech talk, Microsoft's Peter Provost talks about the design of the Composite UI Application Block and how the p&p team has led Microsoft in the adoption of Agile methodologies.
(0 comments, last posted April 17, 2006)

Book excerpt: Framework Design Guidelines

Chapter 4 of Framework Design Guidelines, titled "Type Design Guidelines," presents patterns that describe when and how to design classes, constructs and interfaces. In this chapter, Abrams and Cwalina divide types into four groups and discuss the do's and don'ts of type design.
(2 comments, last posted July 07, 2006)

Q&A: Miguel "Mono Man" De Icaza

Paul Ferrill caught up with prime open-source .NET applications driver Miguel De Icaza at Novell's BrainShare conference last week. They discussed the status of Windows Forms for Mono (it's coming along) and VB.NET for Mono (it looks like it's out).
(5 comments, last posted March 30, 2006)

Tech Talk: Jack Greenfield on software factories and DSLs

In this tech talk, Microsoft Visual Studio architect Jack Greenfield discusses the company's approach to Domain-Specific Languages, or DSLs, and the part they play in software factories.
(0 comments, last posted March 15, 2006)
More hot threads »

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
All Content Copyright ©2007 TheServerSide Privacy Policy      Powered by JIVE
Site Map