Remove mscoree reference
This commit is contained in:
parent
eda903abde
commit
7c52cad569
@ -243,17 +243,6 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="FodyWeavers.xml" />
|
<Content Include="FodyWeavers.xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
|
||||||
<COMReference Include="mscoree">
|
|
||||||
<Guid>{5477469E-83B1-11D2-8B49-00A0C9B7C9C4}</Guid>
|
|
||||||
<VersionMajor>2</VersionMajor>
|
|
||||||
<VersionMinor>4</VersionMinor>
|
|
||||||
<Lcid>0</Lcid>
|
|
||||||
<WrapperTool>tlbimp</WrapperTool>
|
|
||||||
<Isolated>False</Isolated>
|
|
||||||
<EmbedInteropTypes>True</EmbedInteropTypes>
|
|
||||||
</COMReference>
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
<Import Project="..\packages\Fody.6.6.3\build\Fody.targets" Condition="Exists('..\packages\Fody.6.6.3\build\Fody.targets')" />
|
<Import Project="..\packages\Fody.6.6.3\build\Fody.targets" Condition="Exists('..\packages\Fody.6.6.3\build\Fody.targets')" />
|
||||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||||
|
@ -12,7 +12,6 @@ using System.Text;
|
|||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using System.Xml.Serialization;
|
using System.Xml.Serialization;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using mscoree;
|
|
||||||
|
|
||||||
namespace RageCoop.Client
|
namespace RageCoop.Client
|
||||||
{
|
{
|
||||||
@ -222,36 +221,6 @@ namespace RageCoop.Client
|
|||||||
Function.Call(Hash.SET_RADIO_TO_STATION_INDEX, index);
|
Function.Call(Hash.SET_RADIO_TO_STATION_INDEX, index);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IList<AppDomain> GetAppDomains()
|
|
||||||
{
|
|
||||||
IList<AppDomain> _IList = new List<AppDomain>();
|
|
||||||
IntPtr enumHandle = IntPtr.Zero;
|
|
||||||
var host = new CorRuntimeHost();
|
|
||||||
try
|
|
||||||
{
|
|
||||||
host.EnumDomains(out enumHandle);
|
|
||||||
object domain = null;
|
|
||||||
while (true)
|
|
||||||
{
|
|
||||||
host.NextDomain(enumHandle, out domain);
|
|
||||||
if (domain == null) break;
|
|
||||||
AppDomain appDomain = (AppDomain)domain;
|
|
||||||
_IList.Add(appDomain);
|
|
||||||
}
|
|
||||||
return _IList;
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
Console.WriteLine(e.ToString());
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
host.CloseEnum(enumHandle);
|
|
||||||
Marshal.ReleaseComObject(host);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#region WIN32
|
#region WIN32
|
||||||
|
|
||||||
const UInt32 WM_KEYDOWN = 0x0100;
|
const UInt32 WM_KEYDOWN = 0x0100;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user