Win32 port

Peter Kümmel syntheticpp at
Mon Jun 26 01:44:23 PDT 2006

Thiago Macieira wrote:
> Peter Kümmel wrote:
>> But do we need the string representation when we have a 2-way
>> association between the windows sid and a unique integer?
>> When we have such a mapping we could implement getuid() in kdewin32 and
>> dbus must not care about it.
> Not all Windows code links to kdewin32. I'd rather we did NOT reimplement 
> the getuid function in every single implementation.

Currently dbus links against kdewin32, so all windows code which uses dbus
also links against kdewin32. And kdewin32 has already a (incomplete) getuid

> Besides, this completely defeats the purpose of identifying the user that 
> holds the connection open.

Doesn't we have the identifier of that user so we could get the sid from
the map?

> One thing, though, is that I've just realised the function is called 
> GetConnectionUnixUser, so it is only meaningful in Unix context. So we 
> can leave it, but I'd recommend adding a generic function too.

More information about the dbus mailing list