Getregxy

OllyDbg Plugin API

Getregxy

Similar to Getlongxy, display dialog allowing user to enter 32-bit integer number in any of 4 formats: hexadecimal, decimal unsigned, decimal signed or as a set of 4 characters. Intended primarily to edit contents of general-purpose registers EAX, EBX, CX and EDX. Returns 0 on success and -1 if error occured or user cancelled action.

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

Parameters:

title - title of dialog box;

data - pointer to 32-bit buffer containing initial value of integer number. On return, buffer contains entered value. If user cancels action, value remains unchanged;

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

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: Getlongxy, Getline, Getfloat, Getfloat10, Getmmx, Get3dnow, Gettableselectionxy