mirror of
https://github.com/vxunderground/MalwareSourceCode.git
synced 2024-12-19 09:56:10 +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-00001-msil\Virus.Win32.Expiro.w-1f15ee7e9f7da02b6bfb4c5a5e6484eb9fa71b82d3699c54bcc7a31794b4a66d.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);
|
|
}
|
|
}
|
|
}
|