|
|
|
@ -790,18 +790,25 @@ static BOOL GUI_Build(HDC hDC, HWND hwnd, POINT pt) |
|
|
|
{ |
|
|
|
{ |
|
|
|
BeginExplorerRestart(); |
|
|
|
BeginExplorerRestart(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
Sleep(100); |
|
|
|
Sleep(100); |
|
|
|
//ZZRestartExplorer(0, 0, 0, 0);
|
|
|
|
|
|
|
|
GetSystemDirectoryW(wszPath, MAX_PATH); |
|
|
|
GetSystemDirectoryW(wszPath, MAX_PATH); |
|
|
|
wcscat_s(wszPath, MAX_PATH, L"\\taskkill.exe"); |
|
|
|
wcscat_s(wszPath, MAX_PATH, L"\\taskkill.exe"); |
|
|
|
ShellExecuteW( |
|
|
|
SHELLEXECUTEINFOW sei; |
|
|
|
NULL, |
|
|
|
ZeroMemory(&sei, sizeof(SHELLEXECUTEINFOW)); |
|
|
|
L"open", |
|
|
|
sei.cbSize = sizeof(sei); |
|
|
|
wszPath, |
|
|
|
sei.fMask = SEE_MASK_NOCLOSEPROCESS; |
|
|
|
L"/f /im explorer.exe", |
|
|
|
sei.hwnd = NULL; |
|
|
|
NULL, |
|
|
|
sei.hInstApp = NULL; |
|
|
|
SW_SHOWMINIMIZED |
|
|
|
sei.lpVerb = NULL; |
|
|
|
); |
|
|
|
sei.lpFile = wszPath; |
|
|
|
|
|
|
|
sei.lpParameters = L"/f /im explorer.exe"; |
|
|
|
|
|
|
|
sei.hwnd = NULL; |
|
|
|
|
|
|
|
sei.nShow = SW_SHOWMINIMIZED; |
|
|
|
|
|
|
|
if (ShellExecuteExW(&sei) && sei.hProcess) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
WaitForSingleObject(sei.hProcess, INFINITE); |
|
|
|
|
|
|
|
CloseHandle(sei.hProcess); |
|
|
|
} |
|
|
|
} |
|
|
|
GetWindowsDirectoryW(wszPath, MAX_PATH); |
|
|
|
GetWindowsDirectoryW(wszPath, MAX_PATH); |
|
|
|
wcscat_s(wszPath, MAX_PATH, L"\\explorer.exe"); |
|
|
|
wcscat_s(wszPath, MAX_PATH, L"\\explorer.exe"); |
|
|
|
|