Return the SDDL representation of the security descriptor :type: :class:`str`
(self, security_information=DEFAULT_SECURITY_INFORMATION)
| 938 | return ctypes.cast(data, cls) |
| 939 | |
| 940 | def to_string(self, security_information=DEFAULT_SECURITY_INFORMATION): |
| 941 | """Return the SDDL representation of the security descriptor |
| 942 | |
| 943 | :type: :class:`str` |
| 944 | """ |
| 945 | result_cstr = gdef.LPSTR() |
| 946 | winproxy.ConvertSecurityDescriptorToStringSecurityDescriptorA( |
| 947 | self, |
| 948 | gdef.SDDL_REVISION_1, |
| 949 | security_information, |
| 950 | result_cstr, |
| 951 | None) |
| 952 | result = result_cstr.value # Retrieve a python-str copy |
| 953 | winproxy.LocalFree(result_cstr) |
| 954 | return result.decode() |
| 955 | |
| 956 | __str__ = to_string |
| 957 |