Skip to content

Commit

Permalink
Updated a few gui functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfearless committed Jun 11, 2018
1 parent 9a88d7c commit 8af7925
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 26 deletions.
2 changes: 1 addition & 1 deletion developers/functions/gui/GuiAddLogMessage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# GuiAddLogMessage

Function description.
Adds a message to the log. The message will be shown in the log window and on the status bar at the bottom of x64dbg.

```c++
void GuiAddLogMessage(
Expand Down
12 changes: 6 additions & 6 deletions developers/functions/gui/GuiLogClear.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# GuiLogClear

Function description.
Clears the log window of all text.

```c++
Function definition.
void GuiLogClear();
```

## Parameters

`param1` Parameter description.
This function has no parameters.

## Return Value

Return value description.
This function does not return a value.

## Example

```c++
Example code.
GuiLogClear();
```

## Related functions

- List of related functions
- [GuiAddLogMessage](./GuiAddLogMessage)
16 changes: 10 additions & 6 deletions developers/functions/gui/GuiSelectionGet.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
# GuiSelectionGet

Function description.
Gets the currently selected line (or lines) of the specified GUI view and returns the information as start and end addresses into a SELECTIONDATA variable.

```c++
Function definition.
bool GuiSelectionGet(int hWindow, SELECTIONDATA* selection)
```
## Parameters
`param1` Parameter description.
`hWindow` an integer representing one of the following supported GUI views: GUI_DISASSEMBLY, GUI_DUMP, GUI_STACK.
`selection` a SELECTIONDATA structure variable that stores the start and end address of the current selection.
## Return Value
Return value description.
Return TRUE if successful or FALSE otherwise.
## Example
```c++
Example code.
SELECTIONDATA sel;
GuiSelectionGet(GUI_DISASSEMBLY, &sel)
sprintf(msg, "%p - %p", sel.start, sel.end);
```

## Related functions

- List of related functions
- [GuiSelectionSet](./GuiSelectionSet.md)
17 changes: 11 additions & 6 deletions developers/functions/gui/GuiSelectionSet.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
# GuiSelectionSet

Function description.
Sets the currently selected line (or lines) of the specified GUI view based on the start and end addresses stored in a SELECTIONDATA variable.

```c++
Function definition.
bool GuiSelectionSet(int hWindow, const SELECTIONDATA* selection)
```
## Parameters
`param1` Parameter description.
`hWindow` an integer representing one of the following supported GUI views: GUI_DISASSEMBLY, GUI_DUMP, GUI_STACK.
`selection` a SELECTIONDATA structure variable that stores the start and end address of the current selection.
## Return Value
Return value description.
Return TRUE if successful or FALSE otherwise.
## Example
```c++
Example code.
SELECTIONDATA sel;
GuiSelectionGet(GUI_DISASSEMBLY, &sel)
sel.end += 4; //expand selection
GuiSelectionSet(GUI_DISASSEMBLY, &sel)
```

## Related functions

- List of related functions
- [GuiSelectionGet](./GuiSelectionGet.md)
12 changes: 5 additions & 7 deletions developers/functions/gui/GuiShowCpu.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
# GuiShowCpu

Function description.
Switches the focus and view of the GUI to the main disassembly window (CPU tab)

```c++
Function definition.
void GuiShowCpu();
```

## Parameters

`param1` Parameter description.
This function has no parameters.

## Return Value

Return value description.
This function does not return a value.

## Example

```c++
Example code.
GuiShowCpu();
```

## Related functions

- List of related functions

0 comments on commit 8af7925

Please sign in to comment.