t_table

OllyDbg Plugin API

t_table

Type of descriptor of table of sorted data. Starting from the version 1.08, this structure contains two new elements: colsel and hilite. To keep it backward compatible with previous versions, I have splitted hscroll and scheme into two short 16-bit variables each.

typedef struct t_table { // Window with sorted data and bar

HWND hw; // Handle of window or NULL

t_sorted data; // Sorted data

t_bar bar; // Bar

int showbar; // Bar: 1-displayed, 0-hidden, -1-absent

short hscroll; // Horiz. scroll: 1-displayed, 0-hidden

short colsel; // Active column in TABLE_COLSEL window

int mode; // Combination of bits TABLE_xxx

int font; // Font used by window

short scheme; // Colour scheme used by window

short hilite; // Code highlighting scheme used by window

int offset; // First displayed row

int xshift; // Shift in X direction, pixels

DRAWFUNC *drawfunc; // Function which decodes table fields

} t_table;

Members:

hw - handle of window that displays contents of the table, or NULL if there is no associated window;

data - descriptor of sorted data;

bar - descriptor of columns and bar buttons in the window;

showbar - status of the bar in window: 1 - bar visible, 0 - hidden, -1 - bar is permanently hidden;

hscroll - flag indicating presence of the horizontal scroll in the window;

colsel - column with selection in TABLE_COLSEL window. Ordinary sorted data windows select complete row; TABLE_COLSEL windows select single cell in the table;

mode - combination of bits TABLE_xxx describing additional table properties. Plugins can use following bits:

TABLE_DIR Bottom-to-top table with reversed order of lines. Log window is an example of the bottom-to-top table
TABLE_COPYMENU Attach copy menu item
TABLE_SORTMENU Attach sort menu
TABLE_APPMENU Attach appearance menu
TABLE_WIDECOL Attach wide columns menu item
TABLE_USERDEF User-drawn table
TABLE_NOHSCR Table contains no horizontal scroll
TABLE_SAVEPOS Save position of window to the .ini file
TABLE_FASTSEL Update whel selection changes
TABLE_HILMENU Attach highlighting menu
TABLE_ONTOP Attach Always on top menu

font - index of font used to paint window;

scheme - colour scheme used to paint window;

hilite - code highlighting scheme used to display disassembled code, or 0 if highlighting is disabled or not applicable;

offset - index of first row visible in the window;

xshift - horizontal shift in pixels;

drawfunc - function that prepares data used to paint window, see DRAWFUNC.