ShellExecute()で「整合性レベル:低」のアプリを起動すると「開いているファイル - セキュリティの警告」ダイアログが出る。
これを迂回するには、ShellExecute()でなく、CreateProcess()で起動すればよい。
例えば、
cmd.exe /c LowCMD.exe
« Run Applications at a Low Integrity Level | トップページ | Vistaでは、WinINet関数で「保護モード:有効」のコンテンツが見えない。 »
« Run Applications at a Low Integrity Level | トップページ | Vistaでは、WinINet関数で「保護モード:有効」のコンテンツが見えない。 »
これを迂回するには、ShellExecute()でなく、CreateProcess()で起動すればよい。
例えば、
cmd.exe /c LowCMD.exe
« Run Applications at a Low Integrity Level | トップページ | Vistaでは、WinINet関数で「保護モード:有効」のコンテンツが見えない。 »