Good morning.
I'm calling an API to get the execution path of my application (see code below).
Unfortunately, the result is not desired.
Ideas?
Ecosystem: Window10 64b + PB2019r2 + run in IDE
// code
Messaegbox('', go_prg.get_executionpath())
//Api
FUNCTION int GetModuleFileNameA(ulong hinstModule, REF string lpszPath, ulong cchPath) LIBRARY "kernel32"
//[Powerscript]
string ls_Path
unsignedlong lul_handle
ls_Path = space(1024)
lul_handle = Handle(GetApplication())
GetModuleFilenameA(lul_handle, ls_Path, 1024)
return ls_Path