Message273711
I ran the the following, which I don't understand, and therefore don't what should happen, on Win 10, 3.6.0a3.
from ctypes import *
from ctypes.wintypes import *
class CustomPHKEY(object):
def __init__(self, value):
self._as_parameter_ = HKEY(value)
function = windll.function
function.argtypes = [POINTER(HKEY)]
function.restype = LONG
result = CustomPHKEY(0)
function(result)
Traceback (most recent call last):
File "F:\Python\mypy\tem.py", line 8, in <module>
function = windll.function
File "C:\Programs\Python36\lib\ctypes\__init__.py", line 417, in __getattr__
dll = self._dlltype(name)
File "C:\Programs\Python36\lib\ctypes\__init__.py", line 347, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found |
|
Date |
User |
Action |
Args |
2016-08-26 17:54:26 | terry.reedy | set | recipients:
+ terry.reedy, amaury.forgeotdarc, belopolsky, meador.inge, lepaperwan |
2016-08-26 17:54:26 | terry.reedy | set | messageid: <1472234066.54.0.935217361657.issue27803@psf.upfronthosting.co.za> |
2016-08-26 17:54:26 | terry.reedy | link | issue27803 messages |
2016-08-26 17:54:26 | terry.reedy | create | |
|