Kiln » TortoiseHg » TortoiseHg
Clone URL:  
terminate.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// terminates the overlay icon server #include "stdafx.h" #include "Thgstatus.h" extern "C" UINT __stdcall TerminateIconServer() { if (Thgstatus::terminate() == 0) { // pipe ok, so icon server is running // -> wait a bit for icon server to shut down ::Sleep(5000 /* ms */); } return ERROR_SUCCESS; }