Getfloat, Getfloatxy

OllyDbg Plugin API

Getfloat, Getfloatxy

Display dialog asking user to enter floating point number of specified precision (4, 8 or 10 bytes), either as float or as hexadecimal code. If bit DIA_ASKGLOBAL is set, ask whether to use global search. Bit DIA_ALIGNED enables boxes "Aligned search" and "Allow 0.1% error margin". Function Getfloatxy additionally contains the preferred screen coordinates of the bottom left point of the dialog window.

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

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

Parameters:

title - title of dialog box;

fdata - pointer to floating point number. On return, buffer contains entered value. If user cancels action, value remains unchanged;

size - size of floating point number in bytes (4,8 or 10);

letter - first character to be entered in edit control, or 0 if there is no character. Useful if function is called as a reaction on a key pressed by user;

mode - combination of DIA_xxx bits specifying additional Getfloat features:

DIA_ASKGLOBAL display checkbox "Entire block" that controls global search flag. Actual state of this flag is returned by call to Plugingetvalue(VAL_GLOBALSEARCH)
DIA_ALIGNED display checkboxes "Aligned search" and "Allow 0.1% error margin" that control aligned search and inexact search flags. Actual state of these flags is returned by calls to Plugingetvalue(VAL_ALIGNEDSEARCH) and Plugingetvalue(VAL_SEARCHMARGIN)

x - absolute X screen coordinate, in pixels, of the bottom left corner of the dialog window. If necessary, dialog will automatically adjust its position so that it remains visible;

y - absolute Y screen coordinate, in pixels, of the bottom left corner of the dialog window.

See also: Getfloat10, Getlong, Getregxy, Getline, Getmmx, Get3dnow, Gettableselectionxy