-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,231 additions
and
1,113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// IdaHwndHelper.cpp | ||
|
||
//for 64bit - p64 | ||
#pragma comment(lib, "x64_win_qt/Qt5Core.lib") | ||
#pragma comment(lib, "x64_win_qt/Qt5Gui.lib") | ||
#pragma comment(lib, "x64_win_qt/Qt5Widgets.lib") | ||
|
||
#include <ScyllaHideIDAProPlugin/IdaHwndHelper.h> | ||
#include <QtWidgets/QApplication> | ||
#include <QtWidgets/QWidget> | ||
|
||
HWND WINAPI getIdaHwnd() { | ||
QWidget* topWidget = QApplication::topLevelAt(QCursor::pos()); // Assuming get_current_widget() is defined elsewhere | ||
return (HWND)topWidget->winId(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#pragma once | ||
|
||
// IdaHwndHelper.h | ||
|
||
#ifndef IDA_HWND_HELPER_H | ||
#define IDA_HWND_HELPER_H | ||
|
||
#include <windows.h> // Make sure to include Windows.h for HWND | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
HWND WINAPI getIdaHwnd(); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // IDA_HWND_HELPER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters