从python调用SecIdentitySearchCreate

时间:2015-11-09 18:10:49

标签: pyobjc

我有

from ctypes import CDLL
Security = CDLL(....)

Security.SecIdentity.SearchCreate(0,0x80000000, ???)

我不确定要把什么作为最后一个参数。我试过byref(POINTER ......))但是没有用

1 个答案:

答案 0 :(得分:0)

这很有用

from ctypes import CDLL,c_void_p
Security = CDLL(....)
p = c_void_p(0)
Security.SecIdentity.SearchCreate(0,0x80000000, byref(p))