Looking for some examples for windows, I've created a csv file and want to open it using the default program for that particular workstation. I'm not a windows guy so my development experience is very limited in the MS world.
The online docs provide an example of calling ADVAPI32.DLL to get user-name but i'm struggling on how ultimately call the LaunchFileAsync method.
Here is a snipit of code that I'm using.
CALL "advapi32.dll"
ON EXCEPTION
PERFORM CSV-DLL-ERR-RTN
EXIT PARAGRAPH
END-CALL
CALL "Windows.System.Launcher.dll"
ON EXCEPTION
PERFORM CSV-DLL-ERR-RTN
EXIT PARAGRAPH
END-CALL
MOVE CSV-FIL-NAM TO CSV-VAR-NAME
SET CSV-VAR-SIZE TO SIZE OF CSV-VAR-NAME
CALL "LaunchFileAsync"
USING
BY REFERENCE CSV-VAR-NAME
BY REFERENCE CSV-VAR-SIZE
ON EXCEPTION
PERFORM CSV-CALL-ERR-RTN
END-CALL
Thanks
Chris
#windowsapi
#AcuGT