2 /* Support for dynamic loading of extension modules */
5 #define INCL_DOSMODULEMGR
12 const struct filedescr _PyImport_DynLoadFiletab
[] = {
13 {".pyd", "rb", C_EXTENSION
},
14 {".dll", "rb", C_EXTENSION
},
18 dl_funcptr
_PyImport_GetDynLoadFunc(const char *fqname
, const char *shortname
,
19 const char *pathname
, FILE *fp
)
27 rc
= DosLoadModule(failreason
,
34 PyOS_snprintf(errBuf
, sizeof(errBuf
),
35 "DLL load failed, rc = %d: %.200s",
37 PyErr_SetString(PyExc_ImportError
, errBuf
);
41 PyOS_snprintf(funcname
, sizeof(funcname
), "init%.200s", shortname
);
42 rc
= DosQueryProcAddr(hDLL
, 0L, funcname
, &p
);
44 p
= NULL
; /* Signify Failure to Acquire Entrypoint */