win32security.TranslateName

PyUnicode = TranslateName(accountName, accountNameFormat , accountNameFormat , numChars )

Converts a directory service object name from one format to another.

Parameters

accountName : PyUnicode

object name

accountNameFormat : int

A value from the EXTENDED_NAME_FORMAT enumeration type indicating the format of the accountName name.

accountNameFormat : int

A value from the EXTENDED_NAME_FORMAT enumeration type indicating the format of the desired name.

numChars=1024 : int

Number of Unicode characters to allocate for the return buffer.