[python-win32] Setting UserInitials in Office
Tim Roberts
timr at probo.com
Tue Apr 27 23:43:26 CEST 2010
Tim Golden wrote:
> On 26/04/2010 23:56, Tim Roberts wrote:
>> Mike Driscoll wrote:
>>> ...
>>> HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\UserInfo
>>>
>>> I tried to use the base64 module to decode it, but I must be doing
>>> something wrong. Does anyone know of a good way to get and set this
>>> information? I am dealing with users on Windows XP and Python 2.4
>>
>> ??? The strings in there are not encoded in any way. They are
>> plaintext Unicode strings. They happen to be identified as REG_BINARY,
>> but that's just a silly accident.
>
> On my (WinXP SP3, Office 2003) machine, they look to be utf16-encoded
> strings (null-terminated):
Exactly. They are really just REG_SZ, although they set the type as
REG_BINARY for their own inscrutable reasons.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list