flat assembler
Message board for the users of flat assembler.
Index
> Windows > Problem with Shellexecute |
Author |
|
Hrstka 29 Mar 2018, 12:58
Use CreateProcess instead of ShellExecute.
|
|||
29 Mar 2018, 12:58 |
|
SC0U7 29 Mar 2018, 16:13
I try also CreateProcess but i think it also don t work as Admin i try this
Code: mov [StartupInfo.cb],sizeof.STARTUPINFO mov [StartupInfo.wShowWindow],0 mov [StartupInfo.dwFlags],STARTF_USESHOWWINDOW+STARTF_USESTDHANDLES mov [StartupInfo.hStdInput],eax mov [StartupInfo.hStdOutput],eax mov [StartupInfo.hStdError],eax push ProcessInfo push StartupInfo push 0 push 0 push 0 push TRUE push 0 push 0 push pp push 0 call [CreateProcess] And this is my variable : Code: pp db ' cmd.exe /C cd %windir% & timeout 10 & pause',0 Any ideas ? How to Run it elevated from elevated exe? |
|||
29 Mar 2018, 16:13 |
|
shoorick 30 Mar 2018, 09:57
try this:
Code: cmdl: db '/C timeout 5 & pause',0 exec: db 'cmd.exe',0 ... invoke ShellExecute,NULL,NULL,exec,cmdl,NULL,SW_SHOW _________________ UNICODE forever! |
|||
30 Mar 2018, 09:57 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.