Changeset 255 for trunk/python/pyregfi/winsec.py
- Timestamp:
- 06/13/11 15:15:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/pyregfi/winsec.py
r254 r255 11 11 import ctypes.util 12 12 from ctypes import * 13 import structures 13 from .structures import regfi 14 14 15 15 is_win32 = hasattr(ctypes, 'windll') … … 77 77 ('dacl', POINTER(WINSEC_ACL)), 78 78 ] 79 80 structures.regfi.winsec_sid2str.argtypes = [POINTER(WINSEC_DOM_SID)] 81 structures.regfi.winsec_sid2str.restype = POINTER(c_char) 79 regfi.winsec_sid2str.argtypes = [POINTER(WINSEC_DOM_SID)] 80 regfi.winsec_sid2str.restype = POINTER(c_char) 82 81 83 82 … … 128 127 self.inherited_object = _guid2uuid(ace.inh_guid) 129 128 130 c_str = structures.regfi.winsec_sid2str(ace.trustee)129 c_str = regfi.winsec_sid2str(ace.trustee) 131 130 self.trustee = ctypes.cast(c_str, c_char_p).value.decode('utf-8', 'replace') 132 131 libc.free(c_str) … … 153 152 154 153 def __init__(self, sec_desc): 155 c_str = structures.regfi.winsec_sid2str(sec_desc.owner_sid)154 c_str = regfi.winsec_sid2str(sec_desc.owner_sid) 156 155 self.owner = ctypes.cast(c_str, c_char_p).value.decode('utf-8', 'replace') 157 156 libc.free(c_str) 158 157 159 c_str = structures.regfi.winsec_sid2str(sec_desc.grp_sid)158 c_str = regfi.winsec_sid2str(sec_desc.grp_sid) 160 159 self.group = ctypes.cast(c_str, c_char_p).value.decode('utf-8', 'replace') 161 160 libc.free(c_str)
Note: See TracChangeset
for help on using the changeset viewer.