flat assembler
Message board for the users of flat assembler.
Index
> Windows > How to tell if file exists |
Author |
|
IronFelix 03 May 2009, 21:10
Hi, pwseo!
As for API call return value - it is returned in EAX register. Also some API's return data via reference-type passed parameters (pointers to buffers, etc.). Maybe you should use GetEnvironmentVariable function to get data from %PATH% environment variable, then check if there is "java.exe" in returned buffer, then use wsprintf (should be called via "cinvoke", not via "invoke" macro) or lstrcpy/lstrcat functions to prepare necessary strings, and use CreateProcess or WinExec function to launch java with your parameters, if java is installed. Please, read SDK about this functions, maybe it will help you. |
|||
03 May 2009, 21:10 |
|
pwseo 03 May 2009, 21:46
IronFelix, thanks for the EAX bit!
I did the following: I shellexec java.exe and then check eax's value. If eax <= 32, then I goto some code which launches the default browser and opens up sun's page... If eax > 32, it just terminates the launcher. Again, many thanks! |
|||
03 May 2009, 21:46 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.