Search code examples
c#securitymultithreadingwindows-security

Do spawned threads automatically run as the identity of the user?


ie

static void Main(string[] args)
{
    var thread = new Thread(WhoAmI);
    thread.Start();
}

static void WhoAmI()
{ 
    //can i access network resources as the user who ran Main?
}

Solution

  • Yes, they do.

    // So yes, you can.