26 lines
573 B
C#
26 lines
573 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace AppleMusicRPC
|
|
{
|
|
internal class Program
|
|
{
|
|
|
|
|
|
[STAThread]
|
|
private static void Main()
|
|
{
|
|
|
|
if (System.Diagnostics.Process.GetProcessesByName(System.IO.Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetEntryAssembly()?.Location)).Length > 1) return;
|
|
|
|
_ = new Provider();
|
|
|
|
Application.Run(new ServiceApplicationContext());
|
|
}
|
|
|
|
}
|
|
}
|