/win32/shellext/terminate.cpp
C++ | 16 lines | 10 code | 3 blank | 3 comment | 2 complexity | 538ad67da9489e45d25e592090b1c795 MD5 | raw file
Possible License(s): GPL-2.0
- // 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;
- }