#define reveal_window \
ShowWindow ( consoleHwnd, SW_NORMAL ); \
SetForegroundWindow ( consoleHwnd ); \
SetFocus ( consoleHwnd )
LRESULT CALLBACK WndProc( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam )
{
if(message == MYWM_NOTIFYICON)
{
switch (lParam)
{
case WM_LBUTTONDBLCLK:
switch (wParam)
{
case 100:
if (program_hidden)
{
program_hidden = 0;
reveal_window;
}
else
{
program_hidden = 1;
ShowWindow (consoleHwnd, SW_HIDE);
}
return TRUE;
break;
}
break;
}
}
return DefWindowProc( hwnd, message, wParam, lParam );
}
HWND hwndWindow;
MSG msg;
wc.hbrBackground =(HBRUSH)GetStockObject(WHITE_BRUSH);
wc.hIcon = LoadIcon( hinst, IDI_APPLICATION );
wc.hCursor = LoadCursor( hinst, IDC_ARROW );
wc.hInstance = hinst;
wc.lpfnWndProc = WndProc;
wc.lpszClassName = "sodaboy";
wc.style = CS_HREDRAW | CS_VREDRAW;
if (! RegisterClass( &wc ) )
{
printf ("RegisterClass failure.\n");
exit (1);
}
hwndWindow = CreateWindow ("sodaboy","hidden window", WS_MINIMIZE, 1, 1, 1, 1,
NULL,
NULL,
hinst,
NULL );
if (!hwndWindow)
{
printf ("Failed to create window.");
exit (1);
}
ShowWindow ( hwndWindow, SW_HIDE );
UpdateWindow ( hwndWindow );
ShowWindow ( consoleHwnd, SW_HIDE );
UpdateWindow ( consoleHwnd );
nid.cbSize = sizeof(nid);
nid.hWnd = hwndWindow;
nid.uID = 100;
nid.uCallbackMessage = MYWM_NOTIFYICON;
nid.uFlags = NIF_MESSAGE|NIF_ICON|NIF_TIP;
nid.hIcon = LoadIcon(hinst, MAKEINTRESOURCE(IDI_ICON1));
nid.szTip[0] = 0;
strcat (&nid.szTip[0], "Tethealla Ship ");
strcat (&nid.szTip[0], SERVER_VERSION);
strcat (&nid.szTip[0], " - Double click to show/hide");
Shell_NotifyIcon(NIM_ADD, &nid);
err:wincodecs:PngEncoder_CreateInstance Trying to save PNG picture, but PNG support is not compiled in.
fixme:ole:CoCreateInstance no instance created for interface {00000103-a8f2-4877-ba0a-fd2b6645fb94} of class {27949969-876a-41d7-9447-568f6a35a4dc}, hres is 0x80004005
LRESULT CALLBACK WndProc( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam )
{
if(message == MYWM_NOTIFYICON)
{
switch (lParam)
{
case WM_LBUTTONDBLCLK:
switch (wParam)
{
case 100:
if (program_hidden)
{
program_hidden = 0;
ShowWindow (consoleHwnd, SW_NORMAL);
SetForegroundWindow (consoleHwnd);
SetFocus(consoleHwnd);
}
else
{
program_hidden = 1;
ShowWindow (consoleHwnd, SW_HIDE);
}
return TRUE;
break;
}
break;
}
}
return DefWindowProc( hwnd, message, wParam, lParam );
}
ps -ef |grep wine
configure: error: libpng development files not found, PNG won't be supported.
This is an error since --with-png was requested.
Package 2:libpng-1.2.49-1.el6_2.i686 already installed and latest version
Reconnecting to login server...
Connection successful!
Could not read data from logon server...
Socket Error 0.
Lost connection with the logon server...
Reconnect in 15 seconds...
Accepted SHIP connection from xxx.xx.xxx.xxx:xxxxx
Terminated connection with ship
http://www.pioneer2.net/phpBB3/viewtopic.php?f=2&t=2
iptables -I INPUT 1 -p tcp --dport 5280 -j ACCEPT