Sob thanks a lot. We modified the source code a little because of problems with Unicode in MinGW and it works perfectly. Thanks, karma up for you 
#define _WIN32_WINNT 0x0500
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <shellapi.h>
#pragma comment(lib, "shell32.lib")
#pragma comment(lib, "user32.lib")
#define MAX_PARAMS 1024
#define MAX_BUFFER 256
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR _pCmdLine, int nCmdShow)
{
LPWSTR *szArglist;
int nArgs;
STARTUPINFOW si;
PROCESS_INFORMATION pi;
WCHAR config[MAX_PATH];
WCHAR params[MAX_PARAMS];
WCHAR buffer[MAX_BUFFER];
WCHAR msg_title[] = L"WinBox Launcher";
szArglist = CommandLineToArgvW(GetCommandLineW(), &nArgs);
if(szArglist == NULL) {
MessageBoxW(HWND_DESKTOP, L"CommandLineToArgvW failed.", msg_title, MB_ICONERROR);
return 0;
} else if(nArgs != 2) {
MessageBoxW(HWND_DESKTOP, L"Usage: winbox_run.exe <config file>", msg_title, MB_ICONINFORMATION);
return 0;
}
GetFullPathNameW(szArglist[1], MAX_PATH, config, NULL);
LocalFree(szArglist);
wcscpy(params, L"winbox.exe ");
GetPrivateProfileStringW(L"WinBox", L"Host", L"", buffer, MAX_BUFFER, config);
wcscat(params, buffer);
wcscat(params, L" ");
GetPrivateProfileStringW(L"WinBox", L"User", L"", buffer, MAX_BUFFER, config);
wcscat(params, buffer);
wcscat(params, L" ");
//wcscat(params, L"\"");
GetPrivateProfileStringW(L"WinBox", L"Password", L"", buffer, MAX_BUFFER, config);
wcscat(params, buffer);
//wcscat(params, L"\"");
if(wcscmp(params, L"\"\" ") == 0) {
MessageBoxW(HWND_DESKTOP, L"Error reading config file.", msg_title, MB_ICONERROR);
return 0;
}
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);
ZeroMemory(&pi, sizeof(pi));
if(CreateProcessW(NULL, params, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi) == 0) {
MessageBoxW(HWND_DESKTOP, L"Unable to launch winbox.exe.", msg_title, MB_ICONERROR);
}
return 0;
}
To associate *.wbx file from web it was necessary to add
application/WinBox wbx
to /etc/mime.types on the web server.
To run on Linux, I created a simple bash script:
#!/bin/bash
wine /path/to/winbox_run.exe $1
Fewi I will look at RADIUS later, I’m quite busy right now. Then i will tell.