| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Message-ID: | <20010829222458.40611.qmail@web14504.mail.yahoo.com> |
| Date: | Thu, 30 Aug 2001 08:24:58 +1000 (EST) |
| From: | =?iso-8859-1?q?Danny=20Smith?= <danny_r_smith_2001 AT yahoo DOT co DOT nz> |
| Subject: | Calling opendir, readdir for empty removeable drive pops up SEM dialog |
| To: | Cygwin <cygwin AT sources DOT redhat DOT com> |
| MIME-Version: | 1.0 |
Calling opendir or readdir on empty floppy or CD drive causes the SEM dialog box (No disk in drive..Abort/Retry/Ignore) to pop up. Trying to get the Ignore button to work eventually cause seg fault. A workaround is to bracket calls to these functions with SetErrorMode((SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX)); /* disable SEM */ and SetErrorMode(0) /* enable */ This effectively presses Ignore for you without the SEM dialog: GetLastError returns 21 (ERROR_NOT_READY) which is what the Ignore reponse should do. Danny http://travel.yahoo.com.au - Yahoo! Travel - Got Itchy feet? Get inspired! -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |