mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-23 11:55:26 +00:00
49 lines
1.7 KiB
C#
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: 516D8B44-4448-4D2C-8B8E-FFBB3FFE472B
|
|||
|
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Virus.Win32.Expiro.w-69bb73081eac86b8cf86f45e33515d0095855636967076e2b593d7a30cd80a07.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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|