[pywin32-bugs] [ pywin32-Bugs-1606685 ] ShellExecute returns wrong error message
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2006-12-18 03:20:09
|
Bugs item #1606685, was opened at 2006-12-01 02:58 Message generated for change (Comment added) made by sf-robot You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1606685&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: Anders J. Munch (andersjm) Assigned to: Nobody/Anonymous (nobody) Summary: ShellExecute returns wrong error message Initial Comment: When win32api.ShellExecute fails with an error code 31, the accompagnying message is "A device attached to the system is not functioning." (translated, the actual message I got was in Danish). This is the message for ERROR_GEN_FAILURE. However code 31 for ShellExecute means SE_ERR_NOASSOC, indicating that no association exists for the extension of the given file name. (XP Pro, Python 2.4.4, pywin32 208) ---------------------------------------------------------------------- >Comment By: SourceForge Robot (sf-robot) Date: 2006-12-17 19:20 Message: Logged In: YES user_id=1312539 Originator: NO This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2006-12-03 02:30 Message: Logged In: YES user_id=14198 Originator: NO I'm afraid I can't see a good fix here. SE_ERR_NOASSOC==ERROR_GEN_FAILURE and we just pass the error value to FormatMessage. If we can determine the name of a resource file with SE_ERR_NOASSOC (so we can pass the handle to FormatMessage), I'd be happy to work out a way for that correct message to appear. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1606685&group_id=78018 |