我曾经ShellExecuteEx()
调用一个可执行文件。以下是我为SHELLEXECUTEINFO
结构设置的参数。
SHELLEXECUTEINFO ShExecInfo = {0};
ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS|SEE_MASK_UNICODE;// Set Unicode Flag
ShExecInfo.hwnd = NULL;
ShExecInfo.lpVerb = NULL;
ShExecInfo.lpParameters = TEXT ("/s");
ShExecInfo.lpDirectory = NULL;
ShExecInfo.nShow = SW_SHOWNORMAL;
ShExecInfo.hInstApp = NULL;
ShExecInfo.lpFile = TEXT ( ".\\bin\\x86\\installerx86.exe" );
ShExecInfo.fMask
是为 Unicode 设置的,但没有ShExecInfo.lpFile
以"\\?\"
. 在这种情况下,我的代码是否与 Unicode 兼容?