convert lpwstr to string code example
Example: convert string to lpwstr
std::wstring path = L"your_path";
CreateProcessW(NULL, &path[0], NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi);
std::wstring path = L"your_path";
CreateProcessW(NULL, &path[0], NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi);