Exemplo n.º 1
0
 def dlsym_byordinal(handle, index):
     # equivalent to MAKEINTRESOURCEA
     intresource = rffi.cast(rffi.CCHARP, r_uint(index) & 0xFFFF)
     res = rwin32.GetProcAddress(handle, intresource)
     if not res:
         raise KeyError(index)
     # XXX rffi.cast here...
     return res
Exemplo n.º 2
0
 def dlsym(handle, name):
     res = rwin32.GetProcAddress(handle, name)
     if not res:
         raise KeyError(name)
     # XXX rffi.cast here...
     return res