Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Retrieving name of executable Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/