Описание: открытие любых файлов
Пример: открывает C:\test.exe
Пример: открывает C:\test.exe
CLEO:
{$CLEO}
const
//nShowCmd
SW_HIDE = 0
SW_SHOWNORMAL = 1
SW_SHOWMINIMIZED = 2
SW_SHOWMAXIMIZED = 3
SW_MAXIMIZE = 3
SW_SHOWNOACTIVATE = 4
SW_SHOW = 5
SW_MINIMIZE = 6
SW_SHOWMINNOACTIVE = 7
SW_SHOWNA = 8
SW_RESTORE = 9
SW_SHOWDEFAULT = 10
end
0AA2: 0@ = load_library "shell32.dll"
0AA4: 1@ = get_proc_address "ShellExecuteA" library 0@
0A9F: 30@ = current_thread_pointer
0AB1: call_scm_func @__LabelToOffset 1 @FileName 2@ // 0AC6 in SF
0A8D: 30@ = read_memory 0xC97C1C size 4 virtual_protect 0 // handle SA
0AA7: call_function 1@ num_params 6 pop 0 SW_SHOWMINIMIZED 0x858B54 0x858B54 2@ 0 30@ 3@
0A93: end_custom_thread
:__LabelToOffset
if
0@ == 0
then
0AB2: ret 1 0
end
0A9F: 1@ = current_thread_pointer
1@ += 0x10
0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0 // baseIP
0062: 1@ -= 0@ // label address
0AB2: ret 1 1@
:FileName
hex
"C:\test.exe" 00
end