|
|
@ -1,13 +1,13 @@ |
|
|
|
#include <string.h> |
|
|
|
#include <string.h> |
|
|
|
#include <windows.h> |
|
|
|
#include <windows.h> |
|
|
|
#include <shellapi.h> |
|
|
|
#include <shellapi.h> |
|
|
|
#include "../ClientContext.h" |
|
|
|
#include "ClientContext.h" |
|
|
|
#include "../Config.h" |
|
|
|
#include "Config.h" |
|
|
|
#include "../NetDb.h" |
|
|
|
#include "NetDb.h" |
|
|
|
#include "../RouterContext.h" |
|
|
|
#include "RouterContext.h" |
|
|
|
#include "../Transports.h" |
|
|
|
#include "Transports.h" |
|
|
|
#include "../Tunnel.h" |
|
|
|
#include "Tunnel.h" |
|
|
|
#include "../version.h" |
|
|
|
#include "version.h" |
|
|
|
#include "resource.h" |
|
|
|
#include "resource.h" |
|
|
|
#include "Win32App.h" |
|
|
|
#include "Win32App.h" |
|
|
|
#include <stdio.h> |
|
|
|
#include <stdio.h> |
|
|
@ -80,7 +80,7 @@ namespace win32 |
|
|
|
Shell_NotifyIcon (NIM_DELETE, &nid); |
|
|
|
Shell_NotifyIcon (NIM_DELETE, &nid); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static void ShowUptime (std::stringstream& s, int seconds) |
|
|
|
static void ShowUptime (std::stringstream& s, int seconds) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int num; |
|
|
|
int num; |
|
|
|
|
|
|
|
|
|
|
@ -125,8 +125,8 @@ namespace win32 |
|
|
|
{ |
|
|
|
{ |
|
|
|
case eRouterStatusOK: s << "OK"; break; |
|
|
|
case eRouterStatusOK: s << "OK"; break; |
|
|
|
case eRouterStatusTesting: s << "Testing"; break; |
|
|
|
case eRouterStatusTesting: s << "Testing"; break; |
|
|
|
case eRouterStatusFirewalled: s << "Firewalled"; break; |
|
|
|
case eRouterStatusFirewalled: s << "Firewalled"; break; |
|
|
|
case eRouterStatusError: |
|
|
|
case eRouterStatusError: |
|
|
|
{ |
|
|
|
{ |
|
|
|
switch (i2p::context.GetError()) |
|
|
|
switch (i2p::context.GetError()) |
|
|
|
{ |
|
|
|
{ |
|
|
|