Return Parameters

Return Code Explanation
0 The Paste Clipboard to Presentation Space function was successful.
1 Your program is not connected to a host session.
2 Parameter error or zero length for copy
5 The target presentation space is protected or inhibited, or incorrect data was sent to the target presentation space (such as a field attribute byte).
6 The copy was completed, but the data was truncated.
7 The copy was completed, but the data was truncated.
9 A system error was encountered.