flat assembler
Message board for the users of flat assembler.
Index
> Windows > [solved]How to open Applet via ShellExecute? |
Author |
|
FlierMate 12 Apr 2021, 12:29
Overclick wrote: Hi This works.... Code: format PE GUI 4.0 entry start include 'win32a.inc' section '.data' readable writable _caption db 'SHELL',0 _message db 'Open Windows Settings?',0 _param db 'shell32.dll,Control_RunDLL mmsys.cpl,,0',0 _file db 'rundll32.exe',0 section '.code' code readable writable executable start: invoke MessageBox, 0, _message, _caption, MB_ICONQUESTION + MB_YESNO cmp eax,IDYES jne .exit invoke ShellExecute, 0, 0, _file, _param, 0, SW_SHOW .exit: push eax call [ExitProcess] section '.idata' import readable writable library kernel, 'KERNEL32.DLL',\ user, 'USER32.DLL', \ shell, 'SHELL32.DLL' import kernel,\ ExitProcess, 'ExitProcess' import user,\ MessageBox, 'MessageBoxA' import shell,\ ShellExecute, 'ShellExecuteA' |
|||
12 Apr 2021, 12:29 |
|
Overclick 12 Apr 2021, 13:47
Today my own example works for me too. It's quite strange
Thanks for force me to retry |
|||
12 Apr 2021, 13:47 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.