Hook() public méthode

public Hook ( ) : void
Résultat void
Exemple #1
0
 static void Main()
 {
     var gh = new GlobalKbHook();
     var logger = new EventLogger(gh);
     gh.Hook();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new TrayIcon());
     gh.Unhook();
 }
Exemple #2
0
        static void Main()
        {
            var gh     = new GlobalKbHook();
            var logger = new EventLogger(gh);

            gh.Hook();
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new TrayIcon());
            gh.Unhook();
        }