| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <41E811DB.1030800@agilent.com> |
| Date: | Fri, 14 Jan 2005 10:39:23 -0800 |
| From: | Earl Chew <earl_chew AT agilent DOT com> |
| User-Agent: | Mozilla Thunderbird 0.9 (Windows/20041103) |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Retrieving name of executable |
| X-OriginalArrivalTime: | 14 Jan 2005 18:39:25.0043 (UTC) FILETIME=[5EFD7C30:01C4FA68] |
I think the name of the current executable is stored in myself->progname within cygwin1.dll. The more easily accessible __progname returns the basename of the executable. Is there a way for an application to obtain myself->program, other than resorting to raw win32 call to GetModuleFileName()? Earl -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |