C$DESKTOP
The C$DESKTOP library routine allows you to perform desktop operations like open/edit, print and mailto. It is useful to open or print a file with the associated application as well as to open the default email client with a pre-compiled email ready to be sent.
Syntax:
 CALL "C$DESKTOP" USING opCode 
                        parameters
                 GIVING returnCode
Parameters:
opCode
It is the function to be executed. Valid values, defined in isgui.def, are:
 
Browse for a resource
Edit a file with the associated application
Open the email client
Open a file with the associated application
Print a file with the associated application
parameters
Parameters depend on the opcode.
Return code:
returnCode definition and meaning depend on the opcode.
Example - Print a PDF file using the associated application:
call "c$desktop" using cdesktop-print "C:\Temp\print_001.pdf".