New messagebox system

This commit is contained in:
mkrsym1
2023-06-08 21:44:42 +03:00
parent 38dbf82f7f
commit 8662c84a0a
10 changed files with 64 additions and 47 deletions

View File

@ -1,6 +1,6 @@
#include <ntdll.h>
#include <pe.h>
#include <err.h>
#include <msg.h>
#include <ace.h>
@ -41,13 +41,13 @@ void ace_fake_driver_files() {
HANDLE wdDriverFile = CreateFileA(wdDriverPath, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
if (!wdDriverFile) {
err_mb_a("Could not create driver file: %s", wdDriverPath);
msg_err_a("Could not create driver file: %s", wdDriverPath);
}
// Just in case
HANDLE s32DriverFile = CreateFileA(s32DriverPath, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
if (!s32DriverFile) {
err_mb_a("Could not create driver file: %s", s32DriverPath);
msg_err_a("Could not create driver file: %s", s32DriverPath);
}
CloseHandle(wdDriverFile);
@ -64,7 +64,7 @@ HMODULE ace_load_base_module(const char *exeName) {
HMODULE baseModule = LoadLibraryW(baseModuleName);
if (!baseModule) {
err_mb_w(L"Could not load base module: %ls", baseModuleName);
msg_err_w(L"Could not load base module: %ls", baseModuleName);
}
// LoadLibraryA is synchronous; the notification function has already finished executing
@ -81,7 +81,7 @@ HMODULE ace_load_driver_module() {
HMODULE driverModule = LoadLibraryA(driverModulePath);
if (!driverModule) {
err_mb_a("Could not load driver module: %s", driverModulePath);
msg_err_a("Could not load driver module: %s", driverModulePath);
}
// LoadLibraryA is synchronous; the notification function has already finished executing