MalwareSourceCode/MSIL/Virus/Win32/E/Virus.Win32.Expiro.w-f8f9f26e940480624825f6bddbea86e70fc4aa746c4dd8efa7d98dcb477000ed/Microsoft/InfoCards/AccessibilityApplicationManager.cs
2022-08-18 06:28:56 -05:00

49 lines
1.7 KiB
C#

// Decompiled with JetBrains decompiler
// Type: Microsoft.InfoCards.AccessibilityApplicationManager
// Assembly: infocard, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// MVID: 1D4D5564-A025-490C-AF1D-DF4FBB709D1F
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00001-msil\Virus.Win32.Expiro.w-f8f9f26e940480624825f6bddbea86e70fc4aa746c4dd8efa7d98dcb477000ed.exe
using System;
using System.Security.Principal;
namespace Microsoft.InfoCards
{
internal class AccessibilityApplicationManager
{
private const int WindowsVistaMajorVersion = 6;
private IAccessibilityHelper m_helper;
public AccessibilityApplicationManager()
{
bool fTabletPC = 0 != NativeMethods.GetSystemMetrics(86);
if (Environment.OSVersion.Version.Major < 6)
this.m_helper = (IAccessibilityHelper) new AccessibilityHelperForXpWin2k3(fTabletPC);
else
this.m_helper = (IAccessibilityHelper) new AccessibilityHelperForVista(fTabletPC);
}
public void Stop() => this.m_helper.Stop();
public void RestartOnInfoCardDesktop(
uint userATApplicationFlags,
SafeNativeHandle hTrustedUserToken,
ref string trustedUserSid,
string infocardDesktop,
int userSessionId,
uint userProcessId,
WindowsIdentity userIdentity)
{
this.m_helper.RestartOnInfoCardDesktop(userATApplicationFlags, hTrustedUserToken, ref trustedUserSid, infocardDesktop, userSessionId, userProcessId, userIdentity);
}
public bool RestartOnUsersDesktop(
uint userProcessId,
string userDesktop,
WindowsIdentity userIdentity)
{
return this.m_helper.RestartOnUsersDesktop(userProcessId, userDesktop, userIdentity);
}
}
}