mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
Added some definitions for SID/Privilege/others
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user