Win32 port

Tor Lillqvist tml at iki.fi
Thu Jun 22 08:04:50 PDT 2006


Peter Kümmel writes:
 > #ifndef _WIN32
 > typedef unsigned long dbus_pid_t;
 > typedef unsigned long dbus_uid_t;
 > #else
 > typedef const char *dbus_uid_t;
 > typedef const char *dbus_gid_t;
 > #endif

Has anybody come up with any better idea? The idea behind the above,
if I recall correctly, is to use the unique string representation of
SIDs as the gbus_uid and gid type on Win32, and then compare dbus_uids
and gids with strcmp(). Another possibility would obviouosly be to
come up with a way to allocate fresh integers for each different SID
that comes along (and store the mapping somewhere so that different
processes share the mapping, and so that it is persistent). That would
presumably be more complex, though.

--tml



More information about the dbus mailing list