WSDuplicateLink (C 函数)
范例
基本范例 (1)
#include "wstp.h"
/* make a copy of a link */
WSLINK f(WSLINK lp)
{
WSLINK newlink;
int error;
newlink = WSDuplicateLink(lp, (const char *)"Duplicate 1", &error);
if(newlink == (WSLINK)0 || error != WSEOK)
{ /* unable to create a copy of the link */ }
return newlink;
}