Data input functions

OllyDbg Plugin API

Data input functions

These functions invoke dialog window allowing user to enter number or string and specify related options:

int Getlong(char *title,ulong *data,int datasize,char letter,int mode);

int Getline(char *title,ulong *data);

int Getfloat10(char *title,long double *fdata,char *tag,char letter,int mode);

int Getfloat(char *title,void *fdata,int size,char letter,int mode);

void Getasmfindmodel(t_asmmodel model[NMODELS],char letter,int searchall);

int Gettext(char *title,char *text,char letter,int type,int fontindex);

int Gethexstring(char *title,t_hexstr *hs,int mode,int fontindex,char letter);

int Getmmx(char *title,char *data,int mode);

int Get3dnow(char *title,char *data,int mode);

int Browsefilename(char *title,char *name,char *defext,int getarguments);

Most of the data input functions have ...xy counterpart allowing to specify the position of the dialog on the screen. Internally, non-xy functions just call xy-enabled functions with x=-1 and y=-1. Function Getregxy exists only in ...xy form:

int Getlongxy(char *title,ulong *data,int datasize,char letter,int mode,int x,int y);

int Getlinexy(char *title,ulong *data,int x,int y);

int Getfloat10xy(char *title,long double *fdata,char *tag,char letter,int mode,int x,int y);

int Getfloatxy(char *title,void *fdata,int size,char letter,int mode,int x,int y);

void Getasmfindmodelxy(t_asmmodel model[NMODELS],char letter,int searchall,int x,int y);

int Gettextxy(char *title,char *text,char letter,int type,int fontindex,int x,int y);

int Gethexstringxy(char *title,t_hexstr *hs,int mode,int fontindex,char letter,int x,int y);

int Getregxy(char *title,ulong *data,char letter,int x,int y);

int Getmmxxy(char *title,char *data,int mode,int x,int y);

int Get3dnowxy(char *title,char *data,int mode,int x,int y);

Function Gettableselectionxy allows to calculate screen X-Y coordinates for standard (not user-drawn) table windows:

int Gettableselectionxy(t_table *pt,int column,int *px,int *py);