Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!fauern!lan!rommel From: rommel@lan.informatik.tu-muenchen.dbp.de (Kai-Uwe Rommel) Newsgroups: comp.windows.ms.programmer Subject: Re: pathname Message-ID: <5424@tuminfo1.lan.informatik.tu-muenchen.dbp.de> Date: 8 Nov 90 09:45:17 GMT References: <0A541F131D9F40032C@njord.fek.su.se> Sender: news@lan.informatik.tu-muenchen.dbp.de Reply-To: rommel@lan.informatik.tu-muenchen.dbp.de (Kai-Uwe Rommel) Organization: Inst. fuer Informatik, TU Muenchen, W. Germany Lines: 16 In article <0A541F131D9F40032C@njord.fek.su.se> BLI@fek.su.se (Bengt Lindstr|m) writes: >We are developing a communications program for windows 3.0 and needs to >know our programs pathname at runtime. We have tried to find it in the >environment, but twe only found the kernel's pathname there. Does anyone Use GetModuleName() on your hInstance to get the full path name of your program. I hope GetModuleName() is the correct name, I don't have the refman here but I already used this function some time ago. Kai Uwe Rommel -- /* Kai Uwe Rommel * Munich * rommel@lan.informatik.tu-muenchen.dbp.de */