#include "ltaut.h"
L_LTAUT_API L_INT L_AutCopy(pAutomation, dwFlags )
Copies the selected objects in the active automation container to the Windows clipboard.
Pointer to an automation handle.
Reserved for future use. Must be 0.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
To paste valid automation data from the clipboard to the active automation container, use L_AutPaste.
Automation data can be cut from the active automation container and placed on the clipboard using L_AutCut.
Required DLLs and Libraries
This example shows how to do a copy operation to the current automation selection.
L_INT AutCopyExample(pAUTOMATIONHANDLE pAutomation)
{
L_INT nRet;
nRet = L_AutIsValid ( pAutomation );
if ( SUCCESS == nRet ) /* check the validity of the automation handle */
{
/* copy the current selection to the clipboard */
nRet = L_AutCopy ( pAutomation, 0 ) ;
if(nRet != SUCCESS)
return nRet;
return SUCCESS ;
}
else
{
return nRet ;
}
}