/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. #include "stdafx.h"
  3. #include "Thgstatus.h"
  4. extern "C" UINT __stdcall TerminateIconServer()
  5. {
  6. if (Thgstatus::terminate() == 0)
  7. {
  8. // pipe ok, so icon server is running
  9. // -> wait a bit for icon server to shut down
  10. ::Sleep(5000 /* ms */);
  11. }
  12. return ERROR_SUCCESS;
  13. }