Greetings, Specifying the stream name externalizes the connection (other instances of BWS could connect into that name if they so desired) so thats why youre seeing the 0 for r.hwnd.
You can use: GetForegroundHwnd which returns the handle of the window in the foreground. (there is also a GetForegroundCaption which returns the caption of the window) Id suggest calling this during interacting with the Print Destination window because then youd know Meditech it is indeed the foreground window. Regards, Thom Thom C. Blackwell Product Manager Boston Software Systems (866) 653-5105 ex 807 www.bossoft.com <http://www.bossoft.com/> Sign <http://www.bostonworkstation.com/customer_center/special_events.aspx> up for my weekly webinar! LEGAL NOTICE Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately, then delete this message and empty from your trash. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lawrence, Mitchell Sent: Wednesday, August 06, 2008 5:29 PM To: [email protected] Subject: [Talk] Thom Blackwell: R.hWnd for streams??? I think that is what they are called. Basically, if I do the following, Connect , MeditechCS I get a valid R.hWnd value However, if I do Connect , MeditechCS, NAME R.hWnd always returns 0 Is there a different way to get the window handle for a named stream (if thats what you call it)? Thank you, Mitch Lawrence Lead Applications Analyst Technical Support - NPR/Automation CHRISTUS Information Management : <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] Send a " <http://intranet.christushealth.org/spiritBuck/Default.asp> thank you" to someone!
<<image001.png>>
