Get the caption of the specified window.
First available in version 3.8 build 333.
hwnd - [Optional] - Handle of the window you want the caption for. If the handle is not supplied or set to zero (0) then the caption of the current application will be returned.
result - Caption of the desired window.
When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.