C# app to record currently focused window
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Program.cs 494B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.ServiceProcess;
  5. using System.Text;
  6. namespace WindowMonitor
  7. {
  8. static class Program
  9. {
  10. /// <summary>
  11. /// The main entry point for the application.
  12. /// </summary>
  13. static void Main()
  14. {
  15. ServiceBase[] ServicesToRun;
  16. ServicesToRun = new ServiceBase[]
  17. {
  18. new Service1()
  19. };
  20. ServiceBase.Run(ServicesToRun);
  21. }
  22. }
  23. }