20 #ifndef _VMWARE_TOOLS_UTILS_H_ 21 #define _VMWARE_TOOLS_UTILS_H_ 38 #define VMTOOLS_GUEST_SERVICE "vmsvc" 39 #define VMTOOLS_USER_SERVICE "vmusr" 41 #if defined(__cplusplus) 42 # define VMTOOLS_EXTERN_C extern "C" 44 # define VMTOOLS_EXTERN_C 48 #if defined(G_PLATFORM_WIN32) 52 # include <sys/time.h> 56 # define ABS(x) (((x) >= 0) ? (x) : -(x)) 72 #if defined(G_PLATFORM_WIN32) 73 # define VMTOOLS_GET_FILENAME_LOCAL(path, err) (gchar *) (path) 75 # define VMTOOLS_GET_FILENAME_LOCAL(path, err) g_filename_from_utf8((path), \ 88 #if defined(G_PLATFORM_WIN32) 89 # define VMTOOLS_RELEASE_FILENAME_LOCAL(path) (void) (path) 91 # define VMTOOLS_RELEASE_FILENAME_LOCAL(path) g_free(path) 95 #define VMTOOLS_WRAP_ARRAY(a) VMTools_WrapArray((a), sizeof *(a), G_N_ELEMENTS(a)) 111 GKeyFile *dstConfig);
124 const gchar *appendString,
130 const gchar *section,
132 const gboolean defValue);
136 const gchar *section,
138 const gint defValue);
142 const gchar *section,
144 const gchar *defValue);
146 #if defined(G_PLATFORM_WIN32) 148 #define VMTOOLS_WIN_EVENT_SOURCE_NAME L"VMware Tools" 150 #define VMTOOLS_CERT_MSG "Verify that a valid VMware Tools signing "\ 151 "certificate is present in the Trusted "\ 152 "Publishers certificate store on the system. "\ 153 "Refer to the VMware Tools Administration Guide "\ 154 "for how to set up a VMware Tools signing "\ 157 VMTools_AttachConsole(
void);
160 VMTools_NewHandleSource(HANDLE h);
163 VMTools_IsPSScriptSigningEnforced(
void);
166 VMTools_IsScriptSignerCertPresent(
void);
169 VMTools_LogWinEvent(
const gchar *certMsg);
186 gboolean globalVars);