Added some definitions for SID/Privilege/others

This commit is contained in:
Clement Rouault
2017-05-19 15:34:46 +02:00
parent dbd98c93ed
commit bc3c033e84
10 changed files with 529 additions and 15 deletions
+5 -1
View File
@@ -51,5 +51,9 @@ def print_ctypes_struct(struct, name="", ident=0, hexa=False):
return
for fname, ftype in struct._fields_:
value = getattr(struct, fname)
try:
value = getattr(struct, fname)
except Exception as e:
print("Error while printing <{0}> : {1}".format(fname, e))
continue
print_ctypes_struct(value, "{0}.{1}".format(name, fname), hexa=hexa)