The easiest way to restart Windows Explorer shell is… sending a TerminateProcess with “2” as exit code.
HANDLE h_explorer;
h_explorer = OpenProcess(PROCESS_TERMINATE, false, pid);
TerminateProcess(h_explorer, 2);
CloseHandle(h_explorer);
The easiest way to restart Windows Explorer shell is… sending a TerminateProcess with “2” as exit code.
HANDLE h_explorer;
h_explorer = OpenProcess(PROCESS_TERMINATE, false, pid);
TerminateProcess(h_explorer, 2);
CloseHandle(h_explorer);