How to #define the path L”C:\Windows\System32\taskmgr.exe” for handling wide char
#define TASK_MGR "C:\\Windows\\System32\\taskmgr.exe"
KillProcess(TASK_MGR); //this works
HINSTANCE resurrect = ShellExecute(NULL, L"open", L"C:\\Windows\\System32\\taskmgr.exe", NULL, NULL, SW_MINIMIZE);
Which version of Visual C++ are you using? This works on Visual Studio 2008:
If, as Xeo commented, you want to widen the char array, use MultiByteToWideChar.