PageRenderTime 19ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/win32/shellext/terminate.cpp

https://bitbucket.org/tortoisehg/hgtk/
C++ | 16 lines | 10 code | 3 blank | 3 comment | 2 complexity | 538ad67da9489e45d25e592090b1c795 MD5 | raw file
 1// terminates the overlay icon server
 2
 3#include "stdafx.h"
 4
 5#include "Thgstatus.h"
 6
 7extern "C" UINT __stdcall TerminateIconServer()
 8{
 9    if (Thgstatus::terminate() == 0)
10    {
11        // pipe ok, so icon server is running
12        // -> wait a bit for icon server to shut down
13        ::Sleep(5000 /* ms */);
14    }
15    return ERROR_SUCCESS;
16}