Message246754
> windll.python27._Py_ActivateActCtx would suffice
It would instead be ctypes.pythonapi._Py_ActivateActCtx -- if the DLL exported a function with this name. ctypes.pythonapi is a PyDLL instance that wraps sys.dllhandle.
I think it would be more useful in general to add an "actctx" parameter to CDLL. Then make PyWin_DLLhActivationContext public in PC/dl_nt.c, and add it as sys.dllactctx. Example usage:
libc = CDLL('msvcr90', actctx=sys.dllactctx)
Along the lines of changing CDLL, it would also be nice to add a "flags" parameter and switch to using LoadLibraryEx. In comparison, POSIX users have easy access to the "mode" parameter (i.e. RTLD_LOCAL, RTLD_GLOBAL). |
|
Date |
User |
Action |
Args |
2015-07-15 05:06:25 | eryksun | set | recipients:
+ eryksun, paul.moore, tim.golden, zach.ware, steve.dower, carlkl, erik flister |
2015-07-15 05:06:25 | eryksun | set | messageid: <1436936785.65.0.872809725738.issue24429@psf.upfronthosting.co.za> |
2015-07-15 05:06:25 | eryksun | link | issue24429 messages |
2015-07-15 05:06:25 | eryksun | create | |
|