Hello, i tried to use the code of Zoey76 on c++ which application for purpose is to open l2.bin.using that IP parameter in the shellexecute won't work at all, at least not when I'm using L2.exe in the command. using L2.bin I'm always prompted to choose an application to open it with
#define _WIN32_WINNT _WIN32_WINNT_WINXP
#define NOMINMAX
#include <iostream>
#include <windows.h>
#include <cstdlib>
using namespace std;
// 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 C:\Program Files (x86)\Lineage II\system start l2.bin IP=127.0.0.1", 0, SW_HIDE);
system("PAUSE");
}