|
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#
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#
Does not work... CreateProcessWithLoginW return true however the app still shows that I am the user that launchecd it.
|
|
 |
Hot threads
Hot threads
Hot threads
|
More hot threads
More hot threads
More hot threads
|
 |
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)
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)
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)
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)
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 »
|
|