jls@hsv3.UUCP (James Seidman) (05/30/91)
Given the handle to a window, is there any sequence of calls I can make to find out the name of the module which owns it? I'd settle for either just the short name or the full path. (The reason I want to know is that I'm trying to detect if the foreground session is a DOS box. I was going to do this by testing if the module was WINOLDAP. If anyone has an alternate way to do this, I'd love to hear it.) -- Jim Seidman (Drax), the accidental engineer. "It doesn't have to work... they'll be paralyzed just from laughing at me." - Dr. Who, _Shada_ UUCP: ames!vsi1!hsv3!jls INTERNET: hsv3.UUCP!jls@apple.com
risto@tuura.UUCP (Risto Lankinen) (06/03/91)
jls@hsv3.UUCP (James Seidman) writes: >Given the handle to a window, is there any sequence of calls I can make >to find out the name of the module which owns it? I'd settle for either >just the short name or the full path. Hi! I'd try with 'GetModuleFileName( GetWindowWord(hWnd,GWW_HINSTANCE),... )'. Terveisin: Risto Lankinen -- Risto Lankinen / product specialist *************************************** Nokia Data Systems, Technology Dept * 2 3 * THIS SPACE INTENTIONALLY LEFT BLANK * 2 +1 is PRIME! Now working on 2 -1 * replies: risto@yj.data.nokia.fi ***************************************