Home > Software engineering >  About ShellExecuteEx
About ShellExecuteEx

Time:09-19

Hello I use
 
Void ShowProperties (LPCTSTR szPathName)
{
SHELLEXECUTEINFO sei.
ZeroMemory (& amp; Sei, sizeof (SHELLEXECUTEINFO));
Sei. CbSize=sizeof (SHELLEXECUTEINFO);
Sei. LpFile=szPathName;
Sei. NShow=SW_SHOW;
Sei. FMask=SEE_MASK_INVOKEIDLIST;
Sei. LpVerb=__TEXT (" properties ");
ShellExecuteEx (& amp; Sei);
}

Compilation as x86 application on a 64 - bit system running in the prompt discovery system process path error, but the path is right, but if use relocation can be displayed but show specific code with wrong will go wrong figure as follows, pictures only part of the system process will appear as other system processes can pop-up properties box. Is this what method can solve?
 
PVOID oldValue=https://bbs.csdn.net/topics/NULL;
Wow64DisableWow64FsRedirection (& amp; OldValue);
ShowProperties (L "C: \ \ Windows \ \ System32 \ \ SMSS exe");
Wow64RevertWow64FsRedirection (oldValue);



CodePudding user response:

Mention right had tried the return value is TRUE
  • Related