flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
crc 14 Jul 2004, 00:50
The easiest way is to use WinExec
![]() Code: invoke WinExec, 'path\to\program.exe', WINDOW_MODE ; Window Modes (not 100% sure here): ; 0 (Hidden -- not shown in taskbar) ; 1 (Display -- normal) ; 2 (Display -- minimized) ; 3 (Display -- maximized) Be sure to import WinExec from KERNEL32.DLL as well. |
|||
![]() |
|
madmatt 14 Jul 2004, 05:38
The WinExec function is for 16bit compatability, if your running newer versions of windows you should use:
Code: BOOL CreateProcess( LPCTSTR lpApplicationName, LPTSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPCTSTR lpCurrentDirectory, LPSTARTUPINFO lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation ); invoke CreateProcess,lpApplicationname,lpCommandLine,..... NOTE: If the executable module is a 16-bit application, lpApplicationName should be NULL, and the string pointed to by lpCommandLine should specify the executable module as well as its arguments. |
|||
![]() |
|
crc 14 Jul 2004, 10:33
CreateProcess is more complex to invoke though.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.