Plugingetvalue

OllyDbg Plugin API

Plugingetvalue

Retrieves various OllyDbg settings and variables.

int Plugingetvalue(int type);

Parameters:

type - setting or variable to retrieve:

type Cast to Explanation
VAL_HINST (HINST) Current OllyDbg instance
VAL_HWMAIN (HWND) Handle of the main OllyDbg window
VAL_HWCLIENT (HWND) Handle of the MDI client window
VAL_NCOLORS   Number of common colors
VAL_COLORS (COLORREF *) RGB values of common colors
VAL_BRUSHES (HBRUSH *) Handles of common color brushes
VAL_PENS (PEN *) Handles of common color pens
VAL_NFONTS   Number of common fonts
VAL_FONTS (HFONT *) Handles of common fonts
VAL_FONTNAMES (char **) Internal font names
VAL_FONTWIDTHS (int *) Average widths of common fonts
VAL_FONTHEIGHTS (int *) Average heigths of common fonts
VAL_NFIXFONTS   Actual number of fixed-pitch fonts
VAL_DEFFONT   Index of default font
VAL_NSCHEMES   Number of color schemes
VAL_SCHEMES (t_scheme *) Colour schemes
VAL_DEFSCHEME   Index of default colour scheme
VAL_DEFHSCROLL   Default horizontal scroll
VAL_RESTOREWINDOWPOS Restore window positions from .ini
VAL_HPROCESS (HANDLE) Handle of debugged process
VAL_PROCESSID   Process ID of debugged process
VAL_HMAINTHREAD (HANDLE) Handle of main thread of debugged process
VAL_MAINTHREADID   Thread ID of main thread of debugged process
VAL_MAINBASE   Base of main module in the debugged process
VAL_PROCESSNAME (char *) Name of the debugged process
VAL_EXEFILENAME (char *) Name of the main debugged file
VAL_CURRENTDIR (char *) Current directory for debugged process
VAL_SYSTEMDIR (char *) Windows system directory
VAL_DECODEANYIP   Decode registers dependless on EIP
VAL_PASCALSTRINGS   Decode Pascal-style string constants
VAL_ONLYASCII   Only printable ASCII chars in dump
VAL_DIACRITICALS   Allow diacritical symbols in strings
VAL_GLOBALSEARCH   Search from the beginning of block
VAL_ALIGNEDSEARCH   Search aligned to item's size
VAL_SEARCHMARGIN   Floating search allows error margin
VAL_KEEPSELSIZE   Keep size of hex edit selection
VAL_MMXDISPLAY   MMX display mode in dialog (0:hex, 1:signed, 2:unsigned MMX)
VAL_WINDOWFONT   Use calling window's font in dialog
VAL_TABSTOPS   Distance between tab stops
VAL_MODULES (t_table *) Table of modules (.EXE and .DLL)
VAL_MEMORY (t_table *) Table of allocated memory blocks
VAL_THREADS (t_table *) Table of active threads
VAL_BREAKPOINTS (t_table *) Table of active breakpoints
VAL_REFERENCES (t_table *) Table with found references
VAL_SOURCELIST (t_table *) Table of source files
VAL_WATCHES (t_table *) Table of watches
VAL_CPUFEATURES   CPU feature bits as returned by CPUID
VAL_TRACEFILE (FILE *) Handle of run trace log file
VAL_ALIGNDIALOGS   Align dialogs
VAL_CPUDASM (t_dump *) Dump descriptor of CPU Disassembler pane
VAL_CPUDDUMP (t_dump *) Dump descriptor of CPU Dump pane
VAL_CPUDSTACK (t_dump *) Dump descriptor of CPU Stack pane
VAL_APIHELP (char *) Name of selected API help file
VAL_HARDBP   Whether hardware breakpoints are enabled
VAL_PATCHES (t_table *) Table of patches
VAL_HINTS (t_sorted *) Sorted data with analysis hints