mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-30 06:55:27 +00:00
f2ac1ece55
add
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: ADE0A079-11DB-4A46-8BDE-D2A592CA8DEA
|
|
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Virus.Win32.Expiro.w-67b630ead60119692b9abbdfd8717c96904ef041127c2cae033c86b718eaa61e.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);
|
|
}
|
|
}
|
|
}
|