(sz, indata)
| 457 | return rtype.from_address(addressof(indata)) |
| 458 | |
| 459 | def create_unsigned_buffer(sz, indata): |
| 460 | res = as_unsigned_buffer(sz)() |
| 461 | for i, c in enumerate(indata): |
| 462 | if type(c) in [ str, str, str ]: |
| 463 | c = ord(c) |
| 464 | res[i] = c |
| 465 | return res |
| 466 | |
| 467 | def getprocaddr(handle,func): |
| 468 | kernel32.GetProcAddress.argtypes = [c_void_p, c_char_p] |
no test coverage detected