Next, I have a simple ShellExecute code that was made in Visual C ++ 2012, but because it is a closed and paid platform and because I need my clients to be downloading more programs I would like this project to be ported to another language . I'll post the main code and project link in GitHub.
I need this code, without needing Visual Studio, without needing additional DLLs on the client computer, I just need it to get the executable and run inside the game.
#define _WIN32_WINNT _WIN32_WINNT_WINXP
#define NOMINMAX
#include <windows.h>
#include <cstdlib>
// Start L2 as .bin with IP as parameter.
// You can use IP or DNS as IP parameter.
// You could include other parameters.
// You can change the path to the .bin file to avoid including the L2.exe inside the System folder.
// Author: Zoey76
int _stdcall wWinMain(HINSTANCE hInst, HINSTANCE prevInst, LPWSTR szCmdLine, int nCmdShow)
{
ShellExecute(0, L"open", L"cmd.exe", L"/C start l2ellite/l2.bin IP=127.0.0.1", 0, SW_HIDE);
}