We've pushed an existing app to Windows 2012 from Windows 2003 with no code changes.
When we attempt to access a page which I believe has a task scheduler, there is a function that is called that appears to do some impersonation with a return type of WindowsImpersonationContext:
External static Function (advapi.32dll)
[DllImport("advapi32.dll", SetLastError = true)]
protected static extern bool LogonUser(String lpszUsername, String lpszDomain, String lpszPassword,
int dwLogonType, int dwLogonProvider, ref IntPtr phToken);
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
protected static WindowsImpersonationContext ImpersonateUser()
{
string userName = ConfigurationSettings.AppSettings["IMPERSENATE_ACCOUNT_NAME"].ToString();
string password = ConfigurationSettings.AppS ...
Go to the complete details ...