From: peterham AT peterham DOT com (Peter Ham) Subject: getting the application instance 22 Jun 1997 00:00:19 -0700 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <33AB88BE.4555.cygnus.gnu-win32@peterham.com> Reply-To: peterham AT peterham DOT com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0Gold (WinNT; U) Original-To: gnu-win32 AT cygnus DOT com Original-Sender: owner-gnu-win32 AT cygnus DOT com I want to get access to the HANDLE hInstance normally passed as the first parameter to WinMain(), but I don't want to have a WinMain() function. How does the gnuwin library get access to this, I notice that the value seems to be 0x40000 (or something with more or less zeros's). Does it change? Can I call an api function to get the same value, I just want to pass it to create window? Since gnuwin calls WinMain() on startup, it must somehow have this information. I don't have immediate access to the source to investigate this myself. Peter Ham - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".