Adding banner, Response tab, fix method combobox

This commit is contained in:
Alexis Delhaie
2020-10-27 22:02:13 +01:00
parent cf9aff4242
commit c4910722e9
10 changed files with 201 additions and 47 deletions

View File

@@ -6,6 +6,7 @@
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdParam, int iCmdShow)
{
int return_code = 0;
STARTUPINFO si;
PROCESS_INFORMATION pi;
@@ -16,17 +17,15 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdParam
LPTSTR command = _tcsdup(TEXT(".\\runtime\\bin\\javaw.exe -cp .\\app\\EndPoint.jar ovh.alexisdelhaie.endpoint.Application"));
if (!CreateProcess(NULL, command, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi))
{
CloseHandle(&pi.hProcess);
CloseHandle(&pi.hThread);
int msgboxID = MessageBox(
NULL,
TEXT("Unable to start the JVM. Try reinstalling the program to fix this problem."),
TEXT("EndPoint bootstrap"),
MB_ICONHAND | MB_OK | MB_DEFBUTTON1
);
return -1;
return_code = -1;
}
CloseHandle(&pi.hProcess);
CloseHandle(&pi.hThread);
return 0;
return return_code;
}