

Type: LPTSTR )The buffer that will receive the text. Type: HWND )A handle to the window or control containing the text. However, GetWindowText cannot retrieve the text of a control in another / control, the text of the control is copied. / Copies the text of the specified window's title bar (if it has one) into a buffer. To retrieve the text of a possibly unresponsive control in the same process, use SendMessageTimeout with a WM_GETTEXT message instead. To retrieve the text of a control in another process, send a WM_GETTEXT message directly instead of calling GetWindowText. However, if the target window is not responding and it belongs to the calling application, GetWindowText will cause the calling application to become unresponsive. It allows applications to call GetWindowText without becoming unresponsive if the process that owns the target window is not responding. If the window does not have a caption, the return value is a null string. so I tried to find already made examples in LabVIEW and copy/pasted the call library parts.If the target window is owned by another process and has a caption, GetWindowText retrieves the window caption text. It s the first time I am using call external library with DLLs, and it's actually quite hard to figure out the right arguments to place in the prototype of the function. I believe what I am trying to do is not that hard, I am just missing the right function is the user32.dll or other dll to complete this rather simple task (I guess). I could not find any function relative to "status bar" in the user32.dll or LVWUtil32.dll labview examples or in the user32.dll documentation. Then I tried to use the user32.dll:GetWindowTextLengthA and user32.dll:GetWindowTextA to read the text of this status bar which is (apparently) considered as a window. Then, using the user32.dll:GetWindow with argument 5 and 2, I manage to get the handle of the children windows including the status bar of the equipment interface window. I managed to find the main window of my equipment interface with the FindWindow function of the user32.dll. I though that the best solution was to use user32.dll and LVWUtil32.dll functions as suggested in I m trying to get the text of the status bar of the window of a program (not a VI) which controls an equipment.
