summaryrefslogtreecommitdiffstats
path: root/Python/dynload_win.c
Commit message (Collapse)AuthorAgeFilesLines
* Applied #1069410Christian Heimes2008-01-231-0/+9
| | | | The "can't load dll" message box on Windows is suppressed while an extension is loaded by calling SetErrorMode in dynload_win.c. The error is still reported properly.
* Moved include "Python.h" in front of other imports to silence a warning.Christian Heimes2008-01-041-1/+2
|
* Partial port of r59682 from py3k.Amaury Forgeot d'Arc2008-01-041-1/+2
| | | | | | | | | | | On Windows, when import fails to load a dll module, the message says "error code 193" instead of a more informative text. It turns out that FormatMessage needs additional parameters for some error codes. For example: 193 means "%1 is not a valid Win32 application". Since it is impossible to know which parameter to pass, we use FORMAT_MESSAGE_IGNORE_INSERTS to get the raw message, which is still better than the number.
* Include <windows.h> after python.h, so that WINNT is properly set before ↵Kristján Valur Jónsson2007-05-261-1/+1
| | | | windows.h is included. Fixes warnings in PC builds.
* Remove obsolete comment. Importing of .dll files has been discontinued, only ↵Kristján Valur Jónsson2007-04-251-8/+0
| | | | .pyd files supported on windows now.
* Patch #1495999: Part two of Windows CE changes.Martin v. Löwis2006-06-101-0/+2
| | | | | | - update header checks, using autoconf - provide dummies for getenv, environ, and GetVersion - adjust MSC_VER check in socketmodule.c
* Disable .DLL as an extension for extension modules.Martin v. Löwis2006-04-041-0/+6
|
* When importing an extension on Windows, the code reads the PE 'importThomas Heller2004-07-021-0/+12
| | | | | | | | | | | | | | | | | | table' of the dll, to make sure that the dll really was build for the correct Python version. It does this by looking for an entry 'pythonXY.dll' (X.Y is the Python version number). The code now checks the size of the dll's import table before reading entries from it. Before this patch, the code crashed trying to read the import table when the size was zero (as in Win2k's wmi.dll, for example). Look for imports of 'pythonXY_d.dll' in a debug build instead of 'pythonXY.dll'. Fixes SF 951851: Crash when reading "import table" of certain windows dlls. Already backported to the 2.3 branch.
* Fix a couple of whitespace consistency nits.Fred Drake2002-08-261-2/+2
|
* Patch #569753: Remove support for WIN16.Martin v. Löwis2002-06-301-29/+0
| | | | Rename all occurrences of MS_WIN32 to MS_WINDOWS.
* Use PyOS_snprintf instead of sprintf.Jeremy Hylton2001-11-281-12/+14
|
* Fixes for possible buffer overflows in sprintf() usages.Marc-André Lemburg2001-11-281-1/+1
|
* Always pass a full path name to LoadLibraryEx(). Fixes some Windows 9x ↵Mark Hammond2001-05-091-17/+14
| | | | problems. As discussed on python-dev
* Detect conflicting Python DLL on module import under Windows - as per [ ↵Mark Hammond2000-10-051-1/+152
| | | | Patch #101676 ]
* REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum2000-09-011-9/+0
| | | | This should match the situation in the 1.6b1 tree.
* Change copyright notice - 2nd try.Guido van Rossum2000-06-301-6/+0
|
* Change copyright notice.Guido van Rossum2000-06-301-22/+7
|
* Trent Mick's Win64 changes: size_t vs. int or long; also some overflowGuido van Rossum2000-06-281-1/+1
| | | | tests.
* Cleanup patches from Greg Stein:Guido van Rossum1999-12-221-1/+4
| | | | | | | | | | | | | | | | | | | * in import.c, #ifdef out references to dynamic loading based on HAVE_DYNAMIC_LOADING * clean out the platform-specific crud from importdl.c. [ maybe fold this function into import.c and drop the importdl.c file? Greg.] * change GetDynLoadFunc's "funcname" parameter to "shortname". change "name" to "fqname" for clarification. * each GetDynLoadFunc now creates its own funcname value. WARNING: as I mentioned previously, we may run into an issue with a missing "_" on some platforms. Testing will show this pretty quickly, however. * move pathname munging into dynload_shlib.c
* The old platform-specific contents of importdl.c, broken down into oneGuido van Rossum1999-12-201-0/+149
file per platform (really: per style of Dl API; e.g. all platforms using dlopen() are grouped together in dynload_shlib.c.). This is part of a set of patches by Greg Stein.