#include <nwapp.h>nint16 N_API N_EXPORT NWAPPLaunchApplicationId (APP_CONTEXT_HANLDE dContext; pnstr8 dsObject; nint16 uniqueId; nint16 errorRslt; pnstr8 errorStr);
NWAPPLaunchApplicationId performs all maintenance necessary to start an application including mapping drives, capturing printers, pre and post setup or cleanup.
Call NWAPPMonitorApplications to track and clean up resources.
If NWAPPLaunchApplicationId fails, uniqueId is undefined.
When APP_SUCCESS is not returned, errorStr and errorRslt are set to the following values:
Return Code | errorRslt Value | errorStr Value |
---|---|---|
E_GETTING_ATTRS | Undefined | Directory Services object name |
E_INVALID_DRIVE_PATH | NetWare Return Code | Executable file path |
E_INVALID_QUEUE_PATH | NetWare Return Code | Resource for the capture |
E_AUTH_FAILED | NetWare Return Code | Name of the server |
E_INVALID_MAP_DRIVE | NetWare Return Code | Resource for the mapping |
E_CAPTURE_PORT | NetWare Return Code | Capture command |
E_CAPTURE_FLAG | NetWare Return Code | Capture command |
E_CAPTURE_SETTINGS | NetWare Return Code | Capture command |
E_SCRIPT_FAILED | NetWare Return Code | Relative path after the root |
E_EXEC_FAILED | Undefined | Executable file path |
----------------------------------------------------------------------------- | Return Code | errorRslt Value | errorStr Value | |---------------------|---------------------|--------------------------------| | E_GETTING_ATTRS | Undefined | Directory Services object name| |---------------------|---------------------|--------------------------------| | E_INVALID_DRIVE_PATH| NetWare Return Code| Executable file path | |---------------------|---------------------|--------------------------------| | E_INVALID_QUEUE_PATH| NetWare Return Code| Resource for the capture | |---------------------|---------------------|--------------------------------| | E_AUTH_FAILED | NetWare Return Code| Name of the server | |---------------------|---------------------|--------------------------------| | E_INVALID_MAP_DRIVE | NetWare Return Code| Resource for the mapping | |---------------------|---------------------|--------------------------------| | E_CAPTURE_PORT | NetWare Return Code| Capture command | |---------------------|---------------------|--------------------------------| | E_CAPTURE_FLAG | NetWare Return Code| Capture command | |---------------------|---------------------|--------------------------------| | E_CAPTURE_SETTINGS | NetWare Return Code| Capture command | |---------------------|---------------------|--------------------------------| | E_SCRIPT_FAILED | NetWare Return Code| Relative path after the root | |---------------------|---------------------|--------------------------------| | E_EXEC_FAILED | Undefined | Executable file path | |---------------------|---------------------|--------------------------------|
NetWare Application Launcher (NAL) Services