| 1 | /********************************************************************
|
|---|
| 2 |
|
|---|
| 3 | import_nt.c
|
|---|
| 4 |
|
|---|
| 5 | Win32 specific import code.
|
|---|
| 6 |
|
|---|
| 7 | */
|
|---|
| 8 |
|
|---|
| 9 | #include "Python.h"
|
|---|
| 10 | #include "osdefs.h"
|
|---|
| 11 | #include <windows.h>
|
|---|
| 12 | #include "importdl.h"
|
|---|
| 13 | #include "malloc.h" /* for alloca */
|
|---|
| 14 |
|
|---|
| 15 | /* a string loaded from the DLL at startup */
|
|---|
| 16 | extern const char *PyWin_DLLVersionString;
|
|---|
| 17 |
|
|---|
| 18 | FILE *PyWin_FindRegisteredModule(const char *moduleName,
|
|---|
| 19 | struct filedescr **ppFileDesc,
|
|---|
| 20 | char *pathBuf,
|
|---|
| 21 | Py_ssize_t pathLen)
|
|---|
| 22 | {
|
|---|
| 23 | char *moduleKey;
|
|---|
| 24 | const char keyPrefix[] = "Software\\Python\\PythonCore\\";
|
|---|
|
|---|