MessageBoxA

This commit is contained in:
Simon Lindholm
2022-07-27 12:28:29 +02:00
committed by Mark Street
parent ff947fb707
commit 42f2e6935e
3 changed files with 19 additions and 6 deletions

View File

@@ -97,9 +97,16 @@ namespace user32 {
DEBUG_LOG("returning: %s\n", lpBuffer);
return len;
}
int WIN_FUNC MessageBoxA(void *hwnd, const char *lpText, const char *lpCaption, unsigned int uType) {
printf("MESSAGE BOX: [%s] %s\n", lpCaption, lpText);
fflush(stdout);
return 1;
}
}
void *wibo::resolveUser32(const char *name) {
if (strcmp(name, "LoadStringA") == 0) return (void *) user32::LoadStringA;
if (strcmp(name, "MessageBoxA") == 0) return (void *) user32::MessageBoxA;
return 0;
}