Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The GUI was not initialised and close after a few seconds #27

Open
DsSoft-Byte opened this issue Nov 26, 2023 · 2 comments
Open

The GUI was not initialised and close after a few seconds #27

DsSoft-Byte opened this issue Nov 26, 2023 · 2 comments

Comments

@DsSoft-Byte
Copy link

When the driver is in memory kdmapper says success the um.exe still says GUI not initialised after pressing insert and closes.

@xetzzy
Copy link
Owner

xetzzy commented Nov 27, 2023

Try changing to normal CreateWindow

@DsSoft-Byte
Copy link
Author

With these edits made to the code in gui.hpp it still dosent work;

typedef HWND(WINAPI* CreateWindowExPtr)(
DWORD dwExStyle,
LPCWSTR lpClassName,
LPCWSTR lpWindowName,
DWORD dwStyle,
int x,
int y,
int nWidth,
int nHeight,
HWND hWndParent,
HMENU hMenu,
HINSTANCE hInstance,
LPVOID lpParam
);

CreateWindowExPtr create_window_in_band;

// Then in your code, after checking for the function pointers from different libraries:
create_window_in_band = reinterpret_cast(GetProcAddress(librarys::user32, "CreateWindowEx"));
if (!create_window_in_band)
{
create_window_in_band = reinterpret_cast(GetProcAddress(librarys::win32u, "CreateWindowEx"));
if (!create_window_in_band) return false;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants