CreateProcessWithLogonW Switching User Credential

From: Ash (margya_rahul_at_hotmail.com)
Date: 10/31/03


Date: Thu, 30 Oct 2003 19:10:58 -0800

Hi All,

I currently have an application that
uses "CreateProcessWithLogonW" to create a process
with "LOGON_NETCREDENTIALS_ONLY" option set.

This creates a process that uses a different set of
credentials locally than it does remotely.

However, while the process is running I want to be able to
use "DESKTOP" user credentials on the fly to access
network resources.

Is it possible to SWITCH between user credentials (desktop
user credential and network user credential)???

Thanks in advance,
Ash



Relevant Pages

  • Re: help: ts gateway keeps rejecting user credential
    ... i am not using saved credentials. ... I checked NPS and gateway log, ... see a buch of device redirection options. ... When the user credentials are ...
    (microsoft.public.windows.terminal_services)
  • Re: krbtgt failure code 0x12
    ... logged onto two computers and not logging off and back on to one of them ... figure out which service or program on her usual computer was causing the ... > by old user credentials being used from a user still logged onto another ...
    (microsoft.public.win2000.networking)
  • Re: Copy files over a network share
    ... > different user credentials than the executing user. ... The System.IO.File.Copy overloaded methods don't accept credentials ... I think you'll have to use native API to accomplish this. ...
    (microsoft.public.dotnet.framework)
  • Re: How to get rid of AYGShell?
    ... Ouch, you mean that everybody has to login everytime now, or that some ... Searching through Help is like looking for a needle in a haystack, ... If the user selects the Save Credentials check box ... and Secur32.lib is present on the system, the user credentials will be saved ...
    (microsoft.public.windowsce.platbuilder)
  • Re: what is the difference between MCE 2004 and 2005
    ... I seem to bit at odds with a Microsoft Official Web Page. ... re-installed yesterday, ... user at this time (No - already had one with credentials stored on the ... > network resources after a reboot or logging back into the PC. ...
    (microsoft.public.windows.mediacenter)