Win32 port

Peter Kümmel syntheticpp at
Mon Jun 26 01:03:13 PDT 2006

Thiago Macieira wrote:
> Tor Lillqvist wrote:
>> One possible reason why this might not be a good idea is if such
>> integer representations of SIDs need to be consistent across running
>> processes, or between invocations of a program? But, at least if it's
>> enough that the mapping is consistent and persistent until the next
>> reboot, one could use Windows own "quarks", GlobalAddAtom().
> One thing that we should do now is change the org.freedesktop.DBus 
> interface to have a method that returns a string representation of the 
> User ID (a number on Unix, a SID on Windows).

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.

We have to implement getuid() anyway, because currently it looks like this:

/* Get the real user ID of the calling process.  */
KDEWIN32_EXPORT uid_t getuid()
  return 1; /* NOT A ROOT! */

More information about the dbus mailing list