The lstrcpy function copies a string to a buffer.
LPTSTR lstrcpy(
| 
 LPTSTR lpString1,  | 
 // address of buffer  | 
| 
 LPCTSTR lpString2  | 
 // address of string to copy  | 
| 
 );  | 
If the function succeeds, the return value is a pointer to the buffer.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
With a double-byte character set (DBCS) version of Windows, this function can be used to copy a DBCS string.