hwnd (HWND) - input
If hwnd is a frame-window handle, the title-bar window text is copied.
lLength (LONG) - input
It must be greater than 0.
pun (PUN) - output
lRetLen (LONG) - returns