mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00:00
tray icon added
This commit is contained in:
parent
607336d3ce
commit
9096cacba8
@ -129,7 +129,13 @@ static LRESULT CALLBACK WndProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPa
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// init
|
||||||
|
int argc;
|
||||||
|
auto argv = CommandLineToArgvW (cmdline, &argc)
|
||||||
|
Daemon.init(argc, argv);
|
||||||
|
LocalFree (argv);
|
||||||
// start
|
// start
|
||||||
|
Daemon.start ();
|
||||||
// main loop
|
// main loop
|
||||||
MSG msg;
|
MSG msg;
|
||||||
while (GetMessage (&msg, NULL, 0, 0 ))
|
while (GetMessage (&msg, NULL, 0, 0 ))
|
||||||
@ -138,6 +144,7 @@ static LRESULT CALLBACK WndProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPa
|
|||||||
DispatchMessage (&msg);
|
DispatchMessage (&msg);
|
||||||
}
|
}
|
||||||
// atop
|
// atop
|
||||||
|
Daemon.stop ();
|
||||||
// terminate
|
// terminate
|
||||||
UnregisterClass (I2PD_WIN32_CLASSNAME, hInst);
|
UnregisterClass (I2PD_WIN32_CLASSNAME, hInst);
|
||||||
return msg.wParam;
|
return msg.wParam;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user