|
||||
Plugin functions. 1. extern "C" __declspec(dllexport) bool WINAPI shorty_plugin_init(char **plugin_name, HICON *icon, PLUGIN_FUNCTIONS **pf, int *pf_count, TASK_FUNCTIONS **tf, int *tf_count, WINDOW_FUNCTIONS **wf, int *wf_count, PLUGIN_REALLOC p_realloc, bool *hide_task_standart, bool *hide_window_standart); Initializes the plugin. plugin_name - Plugin name. icon - Plugin icon. pf - Plugin functions. pf_count - Plugin functions count. tf - Functions to add in Tasks page. ff_count - Functions count. wf - Functions to add in Windows page. wf_count - Functions count. p_realloc - Callback functions to reallocate memory. hide_task_standart - Hide standart popup menu in Tasks page. hide_window_standart - Hide standart popup menu in Windows page. 2. extern "C" __declspec(dllexport) void WINAPI shorty_plugin_uninit(void); Uninitializes the plugin. 3. extern "C" __declspec(dllexport) void WINAPI shorty_plugin_changeicon(HICON *hicon, PLUGIN_FUNCTION *dblclk); Change tray icon. hicon - Icon to change. dblclk - Double click function. 4. extern "C" __declspec(dllexport) void WINAPI shorty_plugin_gettasks(PLUGIN_TASK_INFO **ti, int *ti_count); Fills Tasks grid. ti - Grid rows. ti_count - Rows count. 5. extern "C" __declspec(dllexport) void WINAPI shorty_plugin_windows(PLUGIN_WINDOW_INFO **wi, int *wi_count); Fills Windows grid wi - Grid rows. wi_count - Rows count. 6. extern "C" __declspec(dllexport) void WINAPI shorty_plugin_wincaptions(char **captions, char **page); Change windows page. captions - Colunms captions. An array of null-terminated strings. page - Page caption. 7. extern "C" __declspec(dllexport) void WINAPI shorty_plugin_taskcaptions(char **captions, char **page); Change windows page. captions - Colunms captions. An array of null-terminated strings. page - Page caption. 8. extern "C" __declspec(dllexport) void WINAPI shorty_plugin_addpage(OWN_PAGE *op, OWN_FUNCTIONS **of, int *of_count, OWN_DATA_UPDATE *update_function, unsigned int interval, OWN_DATA_UPDATE_EVENT own_update_event); Add own page. op - Page style. of - Popup menu functions. of_count - Items count. update_function - Grid refresh function. interval - Frequency of refreshing (ms). own_update_event - Refresh grid event. (interval must be 0). Back |
||||