28#ifndef DBUS_SYSDEPS_WIN_H
29#define DBUS_SYSDEPS_WIN_H
31extern void *_dbus_win_get_dll_hmodule (
void);
32#define WIN32_LEAN_AND_MEAN
35#include "dbus-string.h"
36#include "dbus-threads-internal.h"
42#define DBUS_CONSOLE_DIR "/var/run/console/"
45void _dbus_win_set_errno (
int err);
47const char* _dbus_win_error_from_last_error (
void);
49dbus_bool_t _dbus_win_startup_winsock (
void);
50void _dbus_win_warn_win_error (
const char *message,
53char * _dbus_win_error_string (
int error_number);
55void _dbus_win_free_error_string (
char *
string);
57extern const char* _dbus_lm_strerror (
int error_number);
60dbus_bool_t _dbus_win_account_to_sid (
const wchar_t *waccount,
65_dbus_win32_sid_to_name_and_domain (
dbus_uid_t uid,
73wchar_t *_dbus_win_utf8_to_utf16 (
const char *str,
75char *_dbus_win_utf16_to_utf8 (
const wchar_t *str,
79void _dbus_win_set_error_from_win_error (
DBusError *error,
int code);
82_dbus_win_sid_to_name_and_domain (
dbus_uid_t uid,
88dbus_bool_t _dbus_get_install_root (
DBusString *str);
91dbus_bool_t _dbus_getsid(
char **sid,
dbus_pid_t process_id);
93HANDLE _dbus_spawn_program (
const char *name,
96 dbus_bool_t inherit_handles,
100void _dbus_win_set_error_from_last_error (
DBusError *error,
102 ...) _DBUS_GNUC_PRINTF (2, 3);
105HANDLE _dbus_win_event_create_inheritable (
DBusError *error);
107dbus_bool_t _dbus_win_event_set (HANDLE handle,
DBusError *error);
109dbus_bool_t _dbus_win_event_wait (HANDLE handle,
int timeout,
DBusError *error);
111dbus_bool_t _dbus_win_event_free (HANDLE handle,
DBusError *error);
113dbus_bool_t _dbus_daemon_is_session_bus_address_published (const
char *scope);
114dbus_bool_t _dbus_daemon_publish_session_bus_address (const
char *address,
115 const
char *shm_name);
117DBusRMutex *_dbus_win_rmutex_named_new (const
char* name);
120void _dbus_test_win_autolaunch_set_command_line_parameter (const
char *path);
122void _dbus_test_win_set_autolaunch_handle_location (HANDLE *location);
unsigned long dbus_uid_t
A user ID.
unsigned long dbus_pid_t
A process ID.
Object representing an exception.