Function 70, subfunction 7 - start application.
Parameters:
- eax = 70 - function number
- ebx = pointer to the information structure
Format of the information structure:
- +0: dword: 7 = subfunction number
- +4: dword: flags field:
- бит 0: start process as debugged
- other bits are reserved and must be set to 0
- +8: dword: 0 or pointer to ASCIIZ-string with parameters
- +12 = +0xC: dword: 0 (reserved)
- +16 = +0x10: dword: 0 (reserved)
- +20 = +0x14: ASCIIZ-name of file, the rules of names forming are
given in the general description
or
- +20 = +0x14: db 0
- +21 = +0x15: dd pointer to ASCIIZ-string with file name
Returned value:
- eax > 0 - program is loaded, eax contains PID
- eax < 0 - an error has occured, -eax contains
file system error code
- ebx destroyed
Remarks:
- Command line must be terminated by the character with the code 0
(ASCIIZ-string); function takes into account either all characters
up to terminating zero inclusively or first 256 character
regarding what is less.
- If the process is started as debugged, it is created in
the suspended state; to run use subfunction 5 of function 69.