C# Класс InterceptKeys

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Main ( ) : void
checkInternet ( ) : bool
createShortcut ( string shortcutName, string shortcutPath, string targetFileLocation ) : void

This method creates a shortcut

Приватные методы

Метод Описание
CallNextHookEx ( IntPtr hhk, int nCode, IntPtr wParam, IntPtr lParam ) : IntPtr
GetConsoleWindow ( ) : IntPtr
GetModuleHandle ( string lpModuleName ) : IntPtr
HookCallback ( int nCode, IntPtr wParam, IntPtr lParam ) : IntPtr
SetHook ( LowLevelKeyboardProc proc ) : IntPtr
SetWindowsHookEx ( int idHook, LowLevelKeyboardProc lpfn, IntPtr hMod, uint dwThreadId ) : IntPtr
ShowWindow ( IntPtr hWnd, int nCmdShow ) : bool
UnhookWindowsHookEx ( IntPtr hhk ) : bool
init ( ) : void

Method used to copy the executable to user's appdata and make it launch at startup

sendMail ( string logs, string sender, string receiver, string password, string filename ) : void

Method used to send logs via mail

writeLetter ( Keys, key ) : void

Method used to write the key received to the log file

Описание методов

Main() публичный статический Метод

public static Main ( ) : void
Результат void

checkInternet() публичный статический Метод

public static checkInternet ( ) : bool
Результат bool

createShortcut() публичный статический Метод

This method creates a shortcut
public static createShortcut ( string shortcutName, string shortcutPath, string targetFileLocation ) : void
shortcutName string The name of the shortcut
shortcutPath string The location of the shortcut
targetFileLocation string What should be linked
Результат void