00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include <config.h>
00027
00028 #define STRSAFE_NO_DEPRECATE
00029
00030 #include "dbus-sysdeps.h"
00031 #include "dbus-internals.h"
00032 #include "dbus-protocol.h"
00033 #include "dbus-string.h"
00034 #include "dbus-sysdeps.h"
00035 #include "dbus-sysdeps-win.h"
00036 #include "dbus-sockets-win.h"
00037 #include "dbus-memory.h"
00038 #include "dbus-pipe.h"
00039
00040 #include <stdio.h>
00041 #include <stdlib.h>
00042 #if HAVE_ERRNO_H
00043 #include <errno.h>
00044 #endif
00045 #include <winsock2.h>
00046
00047 #ifndef DBUS_WINCE
00048 #include <io.h>
00049 #include <lm.h>
00050 #include <sys/stat.h>
00051 #endif
00052
00053
00063 dbus_bool_t
00064 _dbus_become_daemon (const DBusString *pidfile,
00065 DBusPipe *print_pid_pipe,
00066 DBusError *error,
00067 dbus_bool_t keep_umask)
00068 {
00069 return TRUE;
00070 }
00071
00080 static dbus_bool_t
00081 _dbus_write_pid_file (const DBusString *filename,
00082 unsigned long pid,
00083 DBusError *error)
00084 {
00085 const char *cfilename;
00086 HANDLE hnd;
00087 char pidstr[20];
00088 int total;
00089 int bytes_to_write;
00090
00091 _DBUS_ASSERT_ERROR_IS_CLEAR (error);
00092
00093 cfilename = _dbus_string_get_const_data (filename);
00094
00095 hnd = CreateFileA (cfilename, GENERIC_WRITE,
00096 FILE_SHARE_READ | FILE_SHARE_WRITE,
00097 NULL, CREATE_NEW, FILE_ATTRIBUTE_NORMAL,
00098 INVALID_HANDLE_VALUE);
00099 if (hnd == INVALID_HANDLE_VALUE)
00100 {
00101 char *emsg = _dbus_win_error_string (GetLastError ());
00102 dbus_set_error (error, _dbus_win_error_from_last_error (),
00103 "Could not create PID file %s: %s",
00104 cfilename, emsg);
00105 _dbus_win_free_error_string (emsg);
00106 return FALSE;
00107 }
00108
00109 if (snprintf (pidstr, sizeof (pidstr), "%lu\n", pid) < 0)
00110 {
00111 dbus_set_error (error, _dbus_error_from_system_errno (),
00112 "Failed to format PID for \"%s\": %s", cfilename,
00113 _dbus_strerror_from_errno ());
00114 CloseHandle (hnd);
00115 return FALSE;
00116 }
00117
00118 total = 0;
00119 bytes_to_write = strlen (pidstr);;
00120
00121 while (total < bytes_to_write)
00122 {
00123 DWORD bytes_written;
00124 BOOL res;
00125
00126 res = WriteFile (hnd, pidstr + total, bytes_to_write - total,
00127 &bytes_written, NULL);
00128
00129 if (res == 0 || bytes_written <= 0)
00130 {
00131 char *emsg = _dbus_win_error_string (GetLastError ());
00132 dbus_set_error (error, _dbus_win_error_from_last_error (),
00133 "Could not write to %s: %s", cfilename, emsg);
00134 _dbus_win_free_error_string (emsg);
00135 CloseHandle (hnd);
00136 return FALSE;
00137 }
00138
00139 total += bytes_written;
00140 }
00141
00142 if (CloseHandle (hnd) == 0)
00143 {
00144 char *emsg = _dbus_win_error_string (GetLastError ());
00145 dbus_set_error (error, _dbus_win_error_from_last_error (),
00146 "Could not close file %s: %s",
00147 cfilename, emsg);
00148 _dbus_win_free_error_string (emsg);
00149
00150 return FALSE;
00151 }
00152
00153 return TRUE;
00154 }
00155
00167 dbus_bool_t
00168 _dbus_write_pid_to_file_and_pipe (const DBusString *pidfile,
00169 DBusPipe *print_pid_pipe,
00170 dbus_pid_t pid_to_write,
00171 DBusError *error)
00172 {
00173 if (pidfile)
00174 {
00175 _dbus_verbose ("writing pid file %s\n", _dbus_string_get_const_data (pidfile));
00176 if (!_dbus_write_pid_file (pidfile,
00177 pid_to_write,
00178 error))
00179 {
00180 _dbus_verbose ("pid file write failed\n");
00181 _DBUS_ASSERT_ERROR_IS_SET(error);
00182 return FALSE;
00183 }
00184 }
00185 else
00186 {
00187 _dbus_verbose ("No pid file requested\n");
00188 }
00189
00190 if (print_pid_pipe != NULL && _dbus_pipe_is_valid (print_pid_pipe))
00191 {
00192 DBusString pid;
00193 int bytes;
00194
00195 _dbus_verbose ("writing our pid to pipe %d\n", print_pid_pipe->fd_or_handle);
00196
00197 if (!_dbus_string_init (&pid))
00198 {
00199 _DBUS_SET_OOM (error);
00200 return FALSE;
00201 }
00202
00203 if (!_dbus_string_append_int (&pid, pid_to_write) ||
00204 !_dbus_string_append (&pid, "\n"))
00205 {
00206 _dbus_string_free (&pid);
00207 _DBUS_SET_OOM (error);
00208 return FALSE;
00209 }
00210
00211 bytes = _dbus_string_get_length (&pid);
00212 if (_dbus_pipe_write (print_pid_pipe, &pid, 0, bytes, error) != bytes)
00213 {
00214
00215 if (error != NULL && !dbus_error_is_set(error))
00216 {
00217 dbus_set_error (error, DBUS_ERROR_FAILED,
00218 "Printing message bus PID: did not write enough bytes\n");
00219 }
00220 _dbus_string_free (&pid);
00221 return FALSE;
00222 }
00223
00224 _dbus_string_free (&pid);
00225 }
00226 else
00227 {
00228 _dbus_verbose ("No pid pipe to write to\n");
00229 }
00230
00231 return TRUE;
00232 }
00233
00240 dbus_bool_t
00241 _dbus_verify_daemon_user (const char *user)
00242 {
00243 return TRUE;
00244 }
00245
00253 dbus_bool_t
00254 _dbus_change_to_daemon_user (const char *user,
00255 DBusError *error)
00256 {
00257 return TRUE;
00258 }
00259
00260 void
00261 _dbus_request_file_descriptor_limit (unsigned int limit)
00262 {
00263 }
00264
00265 void
00266 _dbus_init_system_log (void)
00267 {
00268
00269 }
00270
00279 void
00280 _dbus_system_log (DBusSystemLogSeverity severity, const char *msg, ...)
00281 {
00282 va_list args;
00283
00284 va_start (args, msg);
00285
00286 _dbus_system_logv (severity, msg, args);
00287
00288 va_end (args);
00289 }
00290
00301 void
00302 _dbus_system_logv (DBusSystemLogSeverity severity, const char *msg, va_list args)
00303 {
00304 char *s = "";
00305 char buf[1024];
00306
00307 switch(severity)
00308 {
00309 case DBUS_SYSTEM_LOG_INFO: s = "info"; break;
00310 case DBUS_SYSTEM_LOG_SECURITY: s = "security"; break;
00311 case DBUS_SYSTEM_LOG_FATAL: s = "fatal"; break;
00312 }
00313
00314 sprintf(buf,"%s%s",s,msg);
00315 vsprintf(buf,buf,args);
00316 OutputDebugStringA(buf);
00317
00318 if (severity == DBUS_SYSTEM_LOG_FATAL)
00319 exit (1);
00320 }
00321
00327 void
00328 _dbus_set_signal_handler (int sig,
00329 DBusSignalHandler handler)
00330 {
00331 _dbus_verbose ("_dbus_set_signal_handler() has to be implemented\n");
00332 }
00333
00342 dbus_bool_t
00343 _dbus_stat(const DBusString *filename,
00344 DBusStat *statbuf,
00345 DBusError *error)
00346 {
00347 const char *filename_c;
00348 WIN32_FILE_ATTRIBUTE_DATA wfad;
00349 char *lastdot;
00350 DWORD rc;
00351
00352 _DBUS_ASSERT_ERROR_IS_CLEAR (error);
00353
00354 filename_c = _dbus_string_get_const_data (filename);
00355
00356 if (!GetFileAttributesExA (filename_c, GetFileExInfoStandard, &wfad))
00357 {
00358 _dbus_win_set_error_from_win_error (error, GetLastError ());
00359 return FALSE;
00360 }
00361
00362 if (wfad.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
00363 statbuf->mode = _S_IFDIR;
00364 else
00365 statbuf->mode = _S_IFREG;
00366
00367 statbuf->mode |= _S_IREAD;
00368 if (wfad.dwFileAttributes & FILE_ATTRIBUTE_READONLY)
00369 statbuf->mode |= _S_IWRITE;
00370
00371 lastdot = strrchr (filename_c, '.');
00372 if (lastdot && stricmp (lastdot, ".exe") == 0)
00373 statbuf->mode |= _S_IEXEC;
00374
00375 statbuf->mode |= (statbuf->mode & 0700) >> 3;
00376 statbuf->mode |= (statbuf->mode & 0700) >> 6;
00377
00378 statbuf->nlink = 1;
00379
00380 #ifdef ENABLE_UID_TO_SID
00381 {
00382 PSID owner_sid, group_sid;
00383 PSECURITY_DESCRIPTOR sd;
00384
00385 sd = NULL;
00386 rc = GetNamedSecurityInfo ((char *) filename_c, SE_FILE_OBJECT,
00387 OWNER_SECURITY_INFORMATION |
00388 GROUP_SECURITY_INFORMATION,
00389 &owner_sid, &group_sid,
00390 NULL, NULL,
00391 &sd);
00392 if (rc != ERROR_SUCCESS)
00393 {
00394 _dbus_win_set_error_from_win_error (error, rc);
00395 if (sd != NULL)
00396 LocalFree (sd);
00397 return FALSE;
00398 }
00399
00400
00401 statbuf->uid = _dbus_win_sid_to_uid_t (owner_sid);
00402 statbuf->gid = _dbus_win_sid_to_uid_t (group_sid);
00403
00404 LocalFree (sd);
00405 }
00406 #else
00407 statbuf->uid = DBUS_UID_UNSET;
00408 statbuf->gid = DBUS_GID_UNSET;
00409 #endif
00410
00411 statbuf->size = ((dbus_int64_t) wfad.nFileSizeHigh << 32) + wfad.nFileSizeLow;
00412
00413 statbuf->atime =
00414 (((dbus_int64_t) wfad.ftLastAccessTime.dwHighDateTime << 32) +
00415 wfad.ftLastAccessTime.dwLowDateTime) / 10000000 - DBUS_INT64_CONSTANT (116444736000000000);
00416
00417 statbuf->mtime =
00418 (((dbus_int64_t) wfad.ftLastWriteTime.dwHighDateTime << 32) +
00419 wfad.ftLastWriteTime.dwLowDateTime) / 10000000 - DBUS_INT64_CONSTANT (116444736000000000);
00420
00421 statbuf->ctime =
00422 (((dbus_int64_t) wfad.ftCreationTime.dwHighDateTime << 32) +
00423 wfad.ftCreationTime.dwLowDateTime) / 10000000 - DBUS_INT64_CONSTANT (116444736000000000);
00424
00425 return TRUE;
00426 }
00427
00428
00429
00430
00431
00432
00433
00434
00435
00436
00437
00438
00439
00440
00441
00442
00443
00444
00445
00446
00447
00448
00449 #define HAVE_NO_D_NAMLEN
00450 #define HAVE_DD_LOCK
00451
00452 #define MAXNAMLEN 255
00453
00454 #define __dirfd(dir) (dir)->dd_fd
00455
00456
00457 struct dirent
00458 {
00459 long d_ino;
00460 off_t d_off;
00461 unsigned short d_reclen;
00462 char d_name[_MAX_FNAME+1];
00463 };
00464
00465
00466 typedef struct
00467 {
00468 HANDLE handle;
00469 short offset;
00470 short finished;
00471 WIN32_FIND_DATAA fileinfo;
00472 char *dir;
00473 struct dirent dent;
00474 }
00475 DIR;
00476
00477
00478
00479
00480
00481
00482
00483
00484
00485
00486
00487
00488
00489
00490
00491
00492 static DIR * _dbus_opendir(const char *dir)
00493 {
00494 DIR *dp;
00495 char *filespec;
00496 HANDLE handle;
00497 int index;
00498
00499 filespec = malloc(strlen(dir) + 2 + 1);
00500 strcpy(filespec, dir);
00501 index = strlen(filespec) - 1;
00502 if (index >= 0 && (filespec[index] == '/' || filespec[index] == '\\'))
00503 filespec[index] = '\0';
00504 strcat(filespec, "\\*");
00505
00506 dp = (DIR *)malloc(sizeof(DIR));
00507 dp->offset = 0;
00508 dp->finished = 0;
00509 dp->dir = strdup(dir);
00510
00511 handle = FindFirstFileA(filespec, &(dp->fileinfo));
00512 if (handle == INVALID_HANDLE_VALUE)
00513 {
00514 if (GetLastError() == ERROR_NO_MORE_FILES)
00515 dp->finished = 1;
00516 else
00517 return NULL;
00518 }
00519
00520 dp->handle = handle;
00521 free(filespec);
00522
00523 return dp;
00524 }
00525
00526 static struct dirent * _dbus_readdir(DIR *dp)
00527 {
00528 int saved_err = GetLastError();
00529
00530 if (!dp || dp->finished)
00531 return NULL;
00532
00533 if (dp->offset != 0)
00534 {
00535 if (FindNextFileA(dp->handle, &(dp->fileinfo)) == 0)
00536 {
00537 if (GetLastError() == ERROR_NO_MORE_FILES)
00538 {
00539 SetLastError(saved_err);
00540 dp->finished = 1;
00541 }
00542 return NULL;
00543 }
00544 }
00545 dp->offset++;
00546
00547 strncpy(dp->dent.d_name, dp->fileinfo.cFileName, _MAX_FNAME);
00548 dp->dent.d_ino = 1;
00549 dp->dent.d_reclen = strlen(dp->dent.d_name);
00550 dp->dent.d_off = dp->offset;
00551
00552 return &(dp->dent);
00553 }
00554
00555
00556 static int _dbus_closedir(DIR *dp)
00557 {
00558 if (!dp)
00559 return 0;
00560 FindClose(dp->handle);
00561 if (dp->dir)
00562 free(dp->dir);
00563 if (dp)
00564 free(dp);
00565
00566 return 0;
00567 }
00568
00569
00573 struct DBusDirIter
00574 {
00575 DIR *d;
00577 };
00578
00586 DBusDirIter*
00587 _dbus_directory_open (const DBusString *filename,
00588 DBusError *error)
00589 {
00590 DIR *d;
00591 DBusDirIter *iter;
00592 const char *filename_c;
00593
00594 _DBUS_ASSERT_ERROR_IS_CLEAR (error);
00595
00596 filename_c = _dbus_string_get_const_data (filename);
00597
00598 d = _dbus_opendir (filename_c);
00599 if (d == NULL)
00600 {
00601 char *emsg = _dbus_win_error_string (GetLastError ());
00602 dbus_set_error (error, _dbus_win_error_from_last_error (),
00603 "Failed to read directory \"%s\": %s",
00604 filename_c, emsg);
00605 _dbus_win_free_error_string (emsg);
00606 return NULL;
00607 }
00608 iter = dbus_new0 (DBusDirIter, 1);
00609 if (iter == NULL)
00610 {
00611 _dbus_closedir (d);
00612 dbus_set_error (error, DBUS_ERROR_NO_MEMORY,
00613 "Could not allocate memory for directory iterator");
00614 return NULL;
00615 }
00616
00617 iter->d = d;
00618
00619 return iter;
00620 }
00621
00635 dbus_bool_t
00636 _dbus_directory_get_next_file (DBusDirIter *iter,
00637 DBusString *filename,
00638 DBusError *error)
00639 {
00640 struct dirent *ent;
00641
00642 _DBUS_ASSERT_ERROR_IS_CLEAR (error);
00643
00644 again:
00645 SetLastError (0);
00646 ent = _dbus_readdir (iter->d);
00647 if (ent == NULL)
00648 {
00649 if (GetLastError() != 0)
00650 {
00651 char *emsg = _dbus_win_error_string (GetLastError ());
00652 dbus_set_error (error, _dbus_win_error_from_last_error (),
00653 "Failed to get next in directory: %s", emsg);
00654 _dbus_win_free_error_string (emsg);
00655 }
00656 return FALSE;
00657 }
00658 else if (ent->d_name[0] == '.' &&
00659 (ent->d_name[1] == '\0' ||
00660 (ent->d_name[1] == '.' && ent->d_name[2] == '\0')))
00661 goto again;
00662 else
00663 {
00664 _dbus_string_set_length (filename, 0);
00665 if (!_dbus_string_append (filename, ent->d_name))
00666 {
00667 dbus_set_error (error, DBUS_ERROR_NO_MEMORY,
00668 "No memory to read directory entry");
00669 return FALSE;
00670 }
00671 else
00672 return TRUE;
00673 }
00674 }
00675
00679 void
00680 _dbus_directory_close (DBusDirIter *iter)
00681 {
00682 _dbus_closedir (iter->d);
00683 dbus_free (iter);
00684 }
00685
00692 dbus_bool_t
00693 _dbus_path_is_absolute (const DBusString *filename)
00694 {
00695 if (_dbus_string_get_length (filename) > 0)
00696 return _dbus_string_get_byte (filename, 1) == ':'
00697 || _dbus_string_get_byte (filename, 0) == '\\'
00698 || _dbus_string_get_byte (filename, 0) == '/';
00699 else
00700 return FALSE;
00701 }
00702
00704
00716 dbus_bool_t
00717 _dbus_string_get_dirname(const DBusString *filename,
00718 DBusString *dirname)
00719 {
00720 int sep;
00721
00722 _dbus_assert (filename != dirname);
00723 _dbus_assert (filename != NULL);
00724 _dbus_assert (dirname != NULL);
00725
00726
00727 sep = _dbus_string_get_length (filename);
00728 if (sep == 0)
00729 return _dbus_string_append (dirname, ".");
00730
00731 while (sep > 0 &&
00732 (_dbus_string_get_byte (filename, sep - 1) == '/' ||
00733 _dbus_string_get_byte (filename, sep - 1) == '\\'))
00734 --sep;
00735
00736 _dbus_assert (sep >= 0);
00737
00738 if (sep == 0 ||
00739 (sep == 2 &&
00740 _dbus_string_get_byte (filename, 1) == ':' &&
00741 isalpha (_dbus_string_get_byte (filename, 0))))
00742 return _dbus_string_copy_len (filename, 0, sep + 1,
00743 dirname, _dbus_string_get_length (dirname));
00744
00745 {
00746 int sep1, sep2;
00747 _dbus_string_find_byte_backward (filename, sep, '/', &sep1);
00748 _dbus_string_find_byte_backward (filename, sep, '\\', &sep2);
00749
00750 sep = MAX (sep1, sep2);
00751 }
00752 if (sep < 0)
00753 return _dbus_string_append (dirname, ".");
00754
00755 while (sep > 0 &&
00756 (_dbus_string_get_byte (filename, sep - 1) == '/' ||
00757 _dbus_string_get_byte (filename, sep - 1) == '\\'))
00758 --sep;
00759
00760 _dbus_assert (sep >= 0);
00761
00762 if ((sep == 0 ||
00763 (sep == 2 &&
00764 _dbus_string_get_byte (filename, 1) == ':' &&
00765 isalpha (_dbus_string_get_byte (filename, 0))))
00766 &&
00767 (_dbus_string_get_byte (filename, sep) == '/' ||
00768 _dbus_string_get_byte (filename, sep) == '\\'))
00769 return _dbus_string_copy_len (filename, 0, sep + 1,
00770 dirname, _dbus_string_get_length (dirname));
00771 else
00772 return _dbus_string_copy_len (filename, 0, sep - 0,
00773 dirname, _dbus_string_get_length (dirname));
00774 }
00775
00776
00784 dbus_bool_t
00785 _dbus_unix_user_is_process_owner (dbus_uid_t uid)
00786 {
00787 return FALSE;
00788 }
00789
00790 dbus_bool_t _dbus_windows_user_is_process_owner (const char *windows_sid)
00791 {
00792 return TRUE;
00793 }
00794
00795
00796
00797
00798
00808 dbus_bool_t
00809 _dbus_unix_user_is_at_console (dbus_uid_t uid,
00810 DBusError *error)
00811 {
00812 dbus_set_error (error, DBUS_ERROR_NOT_SUPPORTED,
00813 "UNIX user IDs not supported on Windows\n");
00814 return FALSE;
00815 }
00816
00817
00826 dbus_bool_t
00827 _dbus_parse_unix_group_from_config (const DBusString *groupname,
00828 dbus_gid_t *gid_p)
00829 {
00830 return FALSE;
00831 }
00832
00841 dbus_bool_t
00842 _dbus_parse_unix_user_from_config (const DBusString *username,
00843 dbus_uid_t *uid_p)
00844 {
00845 return FALSE;
00846 }
00847
00848
00859 dbus_bool_t
00860 _dbus_unix_groups_from_uid (dbus_uid_t uid,
00861 dbus_gid_t **group_ids,
00862 int *n_group_ids)
00863 {
00864 return FALSE;
00865 }
00866
00867
00868
00870
00871
00872
00873
00874
00875
00876
00877
00878
00879
00880
00881
00882 const char*
00883 _dbus_lm_strerror(int error_number)
00884 {
00885 #ifdef DBUS_WINCE
00886
00887 return "unknown";
00888 #else
00889 const char *msg;
00890 switch (error_number)
00891 {
00892 case NERR_NetNotStarted:
00893 return "The workstation driver is not installed.";
00894 case NERR_UnknownServer:
00895 return "The server could not be located.";
00896 case NERR_ShareMem:
00897 return "An internal error occurred. The network cannot access a shared memory segment.";
00898 case NERR_NoNetworkResource:
00899 return "A network resource shortage occurred.";
00900 case NERR_RemoteOnly:
00901 return "This operation is not supported on workstations.";
00902 case NERR_DevNotRedirected:
00903 return "The device is not connected.";
00904 case NERR_ServerNotStarted:
00905 return "The Server service is not started.";
00906 case NERR_ItemNotFound:
00907 return "The queue is empty.";
00908 case NERR_UnknownDevDir:
00909 return "The device or directory does not exist.";
00910 case NERR_RedirectedPath:
00911 return "The operation is invalid on a redirected resource.";
00912 case NERR_DuplicateShare:
00913 return "The name has already been shared.";
00914 case NERR_NoRoom:
00915 return "The server is currently out of the requested resource.";
00916 case NERR_TooManyItems:
00917 return "Requested addition of items exceeds the maximum allowed.";
00918 case NERR_InvalidMaxUsers:
00919 return "The Peer service supports only two simultaneous users.";
00920 case NERR_BufTooSmall:
00921 return "The API return buffer is too small.";
00922 case NERR_RemoteErr:
00923 return "A remote API error occurred.";
00924 case NERR_LanmanIniError:
00925 return "An error occurred when opening or reading the configuration file.";
00926 case NERR_NetworkError:
00927 return "A general network error occurred.";
00928 case NERR_WkstaInconsistentState:
00929 return "The Workstation service is in an inconsistent state. Restart the computer before restarting the Workstation service.";
00930 case NERR_WkstaNotStarted:
00931 return "The Workstation service has not been started.";
00932 case NERR_BrowserNotStarted:
00933 return "The requested information is not available.";
00934 case NERR_InternalError:
00935 return "An internal error occurred.";
00936 case NERR_BadTransactConfig:
00937 return "The server is not configured for transactions.";
00938 case NERR_InvalidAPI:
00939 return "The requested API is not supported on the remote server.";
00940 case NERR_BadEventName:
00941 return "The event name is invalid.";
00942 case NERR_DupNameReboot:
00943 return "The computer name already exists on the network. Change it and restart the computer.";
00944 case NERR_CfgCompNotFound:
00945 return "The specified component could not be found in the configuration information.";
00946 case NERR_CfgParamNotFound:
00947 return "The specified parameter could not be found in the configuration information.";
00948 case NERR_LineTooLong:
00949 return "A line in the configuration file is too long.";
00950 case NERR_QNotFound:
00951 return "The printer does not exist.";
00952 case NERR_JobNotFound:
00953 return "The print job does not exist.";
00954 case NERR_DestNotFound:
00955 return "The printer destination cannot be found.";
00956 case NERR_DestExists:
00957 return "The printer destination already exists.";
00958 case NERR_QExists:
00959 return "The printer queue already exists.";
00960 case NERR_QNoRoom:
00961 return "No more printers can be added.";
00962 case NERR_JobNoRoom:
00963 return "No more print jobs can be added.";
00964 case NERR_DestNoRoom:
00965 return "No more printer destinations can be added.";
00966 case NERR_DestIdle:
00967 return "This printer destination is idle and cannot accept control operations.";
00968 case NERR_DestInvalidOp:
00969 return "This printer destination request contains an invalid control function.";
00970 case NERR_ProcNoRespond:
00971 return "The print processor is not responding.";
00972 case NERR_SpoolerNotLoaded:
00973 return "The spooler is not running.";
00974 case NERR_DestInvalidState:
00975 return "This operation cannot be performed on the print destination in its current state.";
00976 case NERR_QInvalidState:
00977 return "This operation cannot be performed on the printer queue in its current state.";
00978 case NERR_JobInvalidState:
00979 return "This operation cannot be performed on the print job in its current state.";
00980 case NERR_SpoolNoMemory:
00981 return "A spooler memory allocation failure occurred.";
00982 case NERR_DriverNotFound:
00983 return "The device driver does not exist.";
00984 case NERR_DataTypeInvalid:
00985 return "The data type is not supported by the print processor.";
00986 case NERR_ProcNotFound:
00987 return "The print processor is not installed.";
00988 case NERR_ServiceTableLocked:
00989 return "The service database is locked.";
00990 case NERR_ServiceTableFull:
00991 return "The service table is full.";
00992 case NERR_ServiceInstalled:
00993 return "The requested service has already been started.";
00994 case NERR_ServiceEntryLocked:
00995 return "The service does not respond to control actions.";
00996 case NERR_ServiceNotInstalled:
00997 return "The service has not been started.";
00998 case NERR_BadServiceName:
00999 return "The service name is invalid.";
01000 case NERR_ServiceCtlTimeout:
01001 return "The service is not responding to the control function.";
01002 case NERR_ServiceCtlBusy:
01003 return "The service control is busy.";
01004 case NERR_BadServiceProgName:
01005 return "The configuration file contains an invalid service program name.";
01006 case NERR_ServiceNotCtrl:
01007 return "The service could not be controlled in its present state.";
01008 case NERR_ServiceKillProc:
01009 return "The service ended abnormally.";
01010 case NERR_ServiceCtlNotValid:
01011 return "The requested pause or stop is not valid for this service.";
01012 case NERR_NotInDispatchTbl:
01013 return "The service control dispatcher could not find the service name in the dispatch table.";
01014 case NERR_BadControlRecv:
01015 return "The service control dispatcher pipe read failed.";
01016 case NERR_ServiceNotStarting:
01017 return "A thread for the new service could not be created.";
01018 case NERR_AlreadyLoggedOn:
01019 return "This workstation is already logged on to the local-area network.";
01020 case NERR_NotLoggedOn:
01021 return "The workstation is not logged on to the local-area network.";
01022 case NERR_BadUsername:
01023 return "The user name or group name parameter is invalid.";
01024 case NERR_BadPassword:
01025 return "The password parameter is invalid.";
01026 case NERR_UnableToAddName_W:
01027 return "@W The logon processor did not add the message alias.";
01028 case NERR_UnableToAddName_F:
01029 return "The logon processor did not add the message alias.";
01030 case NERR_UnableToDelName_W:
01031 return "@W The logoff processor did not delete the message alias.";
01032 case NERR_UnableToDelName_F:
01033 return "The logoff processor did not delete the message alias.";
01034 case NERR_LogonsPaused:
01035 return "Network logons are paused.";
01036 case NERR_LogonServerConflict:
01037 return "A centralized logon-server conflict occurred.";
01038 case NERR_LogonNoUserPath:
01039 return "The server is configured without a valid user path.";
01040 case NERR_LogonScriptError:
01041 return "An error occurred while loading or running the logon script.";
01042 case NERR_StandaloneLogon:
01043 return "The logon server was not specified. Your computer will be logged on as STANDALONE.";
01044 case NERR_LogonServerNotFound:
01045 return "The logon server could not be found.";
01046 case NERR_LogonDomainExists:
01047 return "There is already a logon domain for this computer.";
01048 case NERR_NonValidatedLogon:
01049 return "The logon server could not validate the logon.";
01050 case NERR_ACFNotFound:
01051 return "The security database could not be found.";
01052 case NERR_GroupNotFound:
01053 return "The group name could not be found.";
01054 case NERR_UserNotFound:
01055 return "The user name could not be found.";
01056 case NERR_ResourceNotFound:
01057 return "The resource name could not be found.";
01058 case NERR_GroupExists:
01059 return "The group already exists.";
01060 case NERR_UserExists:
01061 return "The user account already exists.";
01062 case NERR_ResourceExists:
01063 return "The resource permission list already exists.";
01064 case NERR_NotPrimary:
01065 return "This operation is only allowed on the primary domain controller of the domain.";
01066 case NERR_ACFNotLoaded:
01067 return "The security database has not been started.";
01068 case NERR_ACFNoRoom:
01069 return "There are too many names in the user accounts database.";
01070 case NERR_ACFFileIOFail:
01071 return "A disk I/O failure occurred.";
01072 case NERR_ACFTooManyLists:
01073 return "The limit of 64 entries per resource was exceeded.";
01074 case NERR_UserLogon:
01075 return "Deleting a user with a session is not allowed.";
01076 case NERR_ACFNoParent:
01077 return "The parent directory could not be located.";
01078 case NERR_CanNotGrowSegment:
01079 return "Unable to add to the security database session cache segment.";
01080 case NERR_SpeGroupOp:
01081 return "This operation is not allowed on this special group.";
01082 case NERR_NotInCache:
01083 return "This user is not cached in user accounts database session cache.";
01084 case NERR_UserInGroup:
01085 return "The user already belongs to this group.";
01086 case NERR_UserNotInGroup:
01087 return "The user does not belong to this group.";
01088 case NERR_AccountUndefined:
01089 return "This user account is undefined.";
01090 case NERR_AccountExpired:
01091 return "This user account has expired.";
01092 case NERR_InvalidWorkstation:
01093 return "The user is not allowed to log on from this workstation.";
01094 case NERR_InvalidLogonHours:
01095 return "The user is not allowed to log on at this time.";
01096 case NERR_PasswordExpired:
01097 return "The password of this user has expired.";
01098 case NERR_PasswordCantChange:
01099 return "The password of this user cannot change.";
01100 case NERR_PasswordHistConflict:
01101 return "This password cannot be used now.";
01102 case NERR_PasswordTooShort:
01103 return "The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements.";
01104 case NERR_PasswordTooRecent:
01105 return "The password of this user is too recent to change.";
01106 case NERR_InvalidDatabase:
01107 return "The security database is corrupted.";
01108 case NERR_DatabaseUpToDate:
01109 return "No updates are necessary to this replicant network/local security database.";
01110 case NERR_SyncRequired:
01111 return "This replicant database is outdated; synchronization is required.";
01112 case NERR_UseNotFound:
01113 return "The network connection could not be found.";
01114 case NERR_BadAsgType:
01115 return "This asg_type is invalid.";
01116 case NERR_DeviceIsShared:
01117 return "This device is currently being shared.";
01118 case NERR_NoComputerName:
01119 return "The computer name could not be added as a message alias. The name may already exist on the network.";
01120 case NERR_MsgAlreadyStarted:
01121 return "The Messenger service is already started.";
01122 case NERR_MsgInitFailed:
01123 return "The Messenger service failed to start.";
01124 case NERR_NameNotFound:
01125 return "The message alias could not be found on the network.";
01126 case NERR_AlreadyForwarded:
01127 return "This message alias has already been forwarded.";
01128 case NERR_AddForwarded:
01129 return "This message alias has been added but is still forwarded.";
01130 case NERR_AlreadyExists:
01131 return "This message alias already exists locally.";
01132 case NERR_TooManyNames:
01133 return "The maximum number of added message aliases has been exceeded.";
01134 case NERR_DelComputerName:
01135 return "The computer name could not be deleted.";
01136 case NERR_LocalForward:
01137 return "Messages cannot be forwarded back to the same workstation.";
01138 case NERR_GrpMsgProcessor:
01139 return "An error occurred in the domain message processor.";
01140 case NERR_PausedRemote:
01141 return "The message was sent, but the recipient has paused the Messenger service.";
01142 case NERR_BadReceive:
01143 return "The message was sent but not received.";
01144 case NERR_NameInUse:
01145 return "The message alias is currently in use. Try again later.";
01146 case NERR_MsgNotStarted:
01147 return "The Messenger service has not been started.";
01148 case NERR_NotLocalName:
01149 return "The name is not on the local computer.";
01150 case NERR_NoForwardName:
01151 return "The forwarded message alias could not be found on the network.";
01152 case NERR_RemoteFull:
01153 return "The message alias table on the remote station is full.";
01154 case NERR_NameNotForwarded:
01155 return "Messages for this alias are not currently being forwarded.";
01156 case NERR_TruncatedBroadcast:
01157 return "The broadcast message was truncated.";
01158 case NERR_InvalidDevice:
01159 return "This is an invalid device name.";
01160 case NERR_WriteFault:
01161 return "A write fault occurred.";
01162 case NERR_DuplicateName:
01163 return "A duplicate message alias exists on the network.";
01164 case NERR_DeleteLater:
01165 return "@W This message alias will be deleted later.";
01166 case NERR_IncompleteDel:
01167 return "The message alias was not successfully deleted from all networks.";
01168 case NERR_MultipleNets:
01169 return "This operation is not supported on computers with multiple networks.";
01170 case NERR_NetNameNotFound:
01171 return "This shared resource does not exist.";
01172 case NERR_DeviceNotShared:
01173 return "This device is not shared.";
01174 case NERR_ClientNameNotFound:
01175 return "A session does not exist with that computer name.";
01176 case NERR_FileIdNotFound:
01177 return "There is not an open file with that identification number.";
01178 case NERR_ExecFailure:
01179 return "A failure occurred when executing a remote administration command.";
01180 case NERR_TmpFile:
01181 return "A failure occurred when opening a remote temporary file.";
01182 case NERR_TooMuchData:
01183 return "The data returned from a remote administration command has been truncated to 64K.";
01184 case NERR_DeviceShareConflict:
01185 return "This device cannot be shared as both a spooled and a non-spooled resource.";
01186 case NERR_BrowserTableIncomplete:
01187 return "The information in the list of servers may be incorrect.";
01188 case NERR_NotLocalDomain:
01189 return "The computer is not active in this domain.";
01190 #ifdef NERR_IsDfsShare
01191
01192 case NERR_IsDfsShare:
01193 return "The share must be removed from the Distributed File System before it can be deleted.";
01194 #endif
01195
01196 case NERR_DevInvalidOpCode:
01197 return "The operation is invalid for this device.";
01198 case NERR_DevNotFound:
01199 return "This device cannot be shared.";
01200 case NERR_DevNotOpen:
01201 return "This device was not open.";
01202 case NERR_BadQueueDevString:
01203 return "This device name list is invalid.";
01204 case NERR_BadQueuePriority:
01205 return "The queue priority is invalid.";
01206 case NERR_NoCommDevs:
01207 return "There are no shared communication devices.";
01208 case NERR_QueueNotFound:
01209 return "The queue you specified does not exist.";
01210 case NERR_BadDevString:
01211 return "This list of devices is invalid.";
01212 case NERR_BadDev:
01213 return "The requested device is invalid.";
01214 case NERR_InUseBySpooler:
01215 return "This device is already in use by the spooler.";
01216 case NERR_CommDevInUse:
01217 return "This device is already in use as a communication device.";
01218 case NERR_InvalidComputer:
01219 return "This computer name is invalid.";
01220 case NERR_MaxLenExceeded:
01221 return "The string and prefix specified are too long.";
01222 case NERR_BadComponent:
01223 return "This path component is invalid.";
01224 case NERR_CantType:
01225 return "Could not determine the type of input.";
01226 case NERR_TooManyEntries:
01227 return "The buffer for types is not big enough.";
01228 case NERR_ProfileFileTooBig:
01229 return "Profile files cannot exceed 64K.";
01230 case NERR_ProfileOffset:
01231 return "The start offset is out of range.";
01232 case NERR_ProfileCleanup:
01233 return "The system cannot delete current connections to network resources.";
01234 case NERR_ProfileUnknownCmd:
01235 return "The system was unable to parse the command line in this file.";
01236 case NERR_ProfileLoadErr:
01237 return "An error occurred while loading the profile file.";
01238 case NERR_ProfileSaveErr:
01239 return "@W Errors occurred while saving the profile file. The profile was partially saved.";
01240 case NERR_LogOverflow:
01241 return "Log file %1 is full.";
01242 case NERR_LogFileChanged:
01243 return "This log file has changed between reads.";
01244 case NERR_LogFileCorrupt:
01245 return "Log file %1 is corrupt.";
01246 case NERR_SourceIsDir:
01247 return "The source path cannot be a directory.";
01248 case NERR_BadSource:
01249 return "The source path is illegal.";
01250 case NERR_BadDest:
01251 return "The destination path is illegal.";
01252 case NERR_DifferentServers:
01253 return "The source and destination paths are on different servers.";
01254 case NERR_RunSrvPaused:
01255 return "The Run server you requested is paused.";
01256 case NERR_ErrCommRunSrv:
01257 return "An error occurred when communicating with a Run server.";
01258 case NERR_ErrorExecingGhost:
01259 return "An error occurred when starting a background process.";
01260 case NERR_ShareNotFound:
01261 return "The shared resource you are connected to could not be found.";
01262 case NERR_InvalidLana:
01263 return "The LAN adapter number is invalid.";
01264 case NERR_OpenFiles:
01265 return "There are open files on the connection.";
01266 case NERR_ActiveConns:
01267 return "Active connections still exist.";
01268 case NERR_BadPasswordCore:
01269 return "This share name or password is invalid.";
01270 case NERR_DevInUse:
01271 return "The device is being accessed by an active process.";
01272 case NERR_LocalDrive:
01273 return "The drive letter is in use locally.";
01274 case NERR_AlertExists:
01275 return "The specified client is already registered for the specified event.";
01276 case NERR_TooManyAlerts:
01277 return "The alert table is full.";
01278 case NERR_NoSuchAlert:
01279 return "An invalid or nonexistent alert name was raised.";
01280 case NERR_BadRecipient:
01281 return "The alert recipient is invalid.";
01282 case NERR_AcctLimitExceeded:
01283 return "A user's session with this server has been deleted.";
01284 case NERR_InvalidLogSeek:
01285 return "The log file does not contain the requested record number.";
01286 case NERR_BadUasConfig:
01287 return "The user accounts database is not configured correctly.";
01288 case NERR_InvalidUASOp:
01289 return "This operation is not permitted when the Netlogon service is running.";
01290 case NERR_LastAdmin:
01291 return "This operation is not allowed on the last administrative account.";
01292 case NERR_DCNotFound:
01293 return "Could not find domain controller for this domain.";
01294 case NERR_LogonTrackingError:
01295 return "Could not set logon information for this user.";
01296 case NERR_NetlogonNotStarted:
01297 return "The Netlogon service has not been started.";
01298 case NERR_CanNotGrowUASFile:
01299 return "Unable to add to the user accounts database.";
01300 case NERR_TimeDiffAtDC:
01301 return "This server's clock is not synchronized with the primary domain controller's clock.";
01302 case NERR_PasswordMismatch:
01303 return "A password mismatch has been detected.";
01304 case NERR_NoSuchServer:
01305 return "The server identification does not specify a valid server.";
01306 case NERR_NoSuchSession:
01307 return "The session identification does not specify a valid session.";
01308 case NERR_NoSuchConnection:
01309 return "The connection identification does not specify a valid connection.";
01310 case NERR_TooManyServers:
01311 return "There is no space for another entry in the table of available servers.";
01312 case NERR_TooManySessions:
01313 return "The server has reached the maximum number of sessions it supports.";
01314 case NERR_TooManyConnections:
01315 return "The server has reached the maximum number of connections it supports.";
01316 case NERR_TooManyFiles:
01317 return "The server cannot open more files because it has reached its maximum number.";
01318 case NERR_NoAlternateServers:
01319 return "There are no alternate servers registered on this server.";
01320 case NERR_TryDownLevel:
01321 return "Try down-level (remote admin protocol) version of API instead.";
01322 case NERR_UPSDriverNotStarted:
01323 return "The UPS driver could not be accessed by the UPS service.";
01324 case NERR_UPSInvalidConfig:
01325 return "The UPS service is not configured correctly.";
01326 case NERR_UPSInvalidCommPort:
01327 return "The UPS service could not access the specified Comm Port.";
01328 case NERR_UPSSignalAsserted:
01329 return "The UPS indicated a line fail or low battery situation. Service not started.";
01330 case NERR_UPSShutdownFailed:
01331 return "The UPS service failed to perform a system shut down.";
01332 case NERR_BadDosRetCode:
01333 return "The program below returned an MS-DOS error code:";
01334 case NERR_ProgNeedsExtraMem:
01335 return "The program below needs more memory:";
01336 case NERR_BadDosFunction:
01337 return "The program below called an unsupported MS-DOS function:";
01338 case NERR_RemoteBootFailed:
01339 return "The workstation failed to boot.";
01340 case NERR_BadFileCheckSum:
01341 return "The file below is corrupt.";
01342 case NERR_NoRplBootSystem:
01343 return "No loader is specified in the boot-block definition file.";
01344 case NERR_RplLoadrNetBiosErr:
01345 return "NetBIOS returned an error: The NCB and SMB are dumped above.";
01346 case NERR_RplLoadrDiskErr:
01347 return "A disk I/O error occurred.";
01348 case NERR_ImageParamErr:
01349 return "Image parameter substitution failed.";
01350 case NERR_TooManyImageParams:
01351 return "Too many image parameters cross disk sector boundaries.";
01352 case NERR_NonDosFloppyUsed:
01353 return "The image was not generated from an MS-DOS diskette formatted with /S.";
01354 case NERR_RplBootRestart:
01355 return "Remote boot will be restarted later.";
01356 case NERR_RplSrvrCallFailed:
01357 return "The call to the Remoteboot server failed.";
01358 case NERR_CantConnectRplSrvr:
01359 return "Cannot connect to the Remoteboot server.";
01360 case NERR_CantOpenImageFile:
01361 return "Cannot open image file on the Remoteboot server.";
01362 case NERR_CallingRplSrvr:
01363 return "Connecting to the Remoteboot server...";
01364 case NERR_StartingRplBoot:
01365 return "Connecting to the Remoteboot server...";
01366 case NERR_RplBootServiceTerm:
01367 return "Remote boot service was stopped; check the error log for the cause of the problem.";
01368 case NERR_RplBootStartFailed:
01369 return "Remote boot startup failed; check the error log for the cause of the problem.";
01370 case NERR_RPL_CONNECTED:
01371 return "A second connection to a Remoteboot resource is not allowed.";
01372 case NERR_BrowserConfiguredToNotRun:
01373 return "The browser service was configured with MaintainServerList=No.";
01374 case NERR_RplNoAdaptersStarted:
01375 return "Service failed to start since none of the network adapters started with this service.";
01376 case NERR_RplBadRegistry:
01377 return "Service failed to start due to bad startup information in the registry.";
01378 case NERR_RplBadDatabase:
01379 return "Service failed to start because its database is absent or corrupt.";
01380 case NERR_RplRplfilesShare:
01381 return "Service failed to start because RPLFILES share is absent.";
01382 case NERR_RplNotRplServer:
01383 return "Service failed to start because RPLUSER group is absent.";
01384 case NERR_RplCannotEnum:
01385 return "Cannot enumerate service records.";
01386 case NERR_RplWkstaInfoCorrupted:
01387 return "Workstation record information has been corrupted.";
01388 case NERR_RplWkstaNotFound:
01389 return "Workstation record was not found.";
01390 case NERR_RplWkstaNameUnavailable:
01391 return "Workstation name is in use by some other workstation.";
01392 case NERR_RplProfileInfoCorrupted:
01393 return "Profile record information has been corrupted.";
01394 case NERR_RplProfileNotFound:
01395 return "Profile record was not found.";
01396 case NERR_RplProfileNameUnavailable:
01397 return "Profile name is in use by some other profile.";
01398 case NERR_RplProfileNotEmpty:
01399 return "There are workstations using this profile.";
01400 case NERR_RplConfigInfoCorrupted:
01401 return "Configuration record information has been corrupted.";
01402 case NERR_RplConfigNotFound:
01403 return "Configuration record was not found.";
01404 case NERR_RplAdapterInfoCorrupted:
01405 return "Adapter ID record information has been corrupted.";
01406 case NERR_RplInternal:
01407 return "An internal service error has occurred.";
01408 case NERR_RplVendorInfoCorrupted:
01409 return "Vendor ID record information has been corrupted.";
01410 case NERR_RplBootInfoCorrupted:
01411 return "Boot block record information has been corrupted.";
01412 case NERR_RplWkstaNeedsUserAcct:
01413 return "The user account for this workstation record is missing.";
01414 case NERR_RplNeedsRPLUSERAcct:
01415 return "The RPLUSER local group could not be found.";
01416 case NERR_RplBootNotFound:
01417 return "Boot block record was not found.";
01418 case NERR_RplIncompatibleProfile:
01419 return "Chosen profile is incompatible with this workstation.";
01420 case NERR_RplAdapterNameUnavailable:
01421 return "Chosen network adapter ID is in use by some other workstation.";
01422 case NERR_RplConfigNotEmpty:
01423 return "There are profiles using this configuration.";
01424 case NERR_RplBootInUse:
01425 return "There are workstations, profiles, or configurations using this boot block.";
01426 case NERR_RplBackupDatabase:
01427 return "Service failed to backup Remoteboot database.";
01428 case NERR_RplAdapterNotFound:
01429 return "Adapter record was not found.";
01430 case NERR_RplVendorNotFound:
01431 return "Vendor record was not found.";
01432 case NERR_RplVendorNameUnavailable:
01433 return "Vendor name is in use by some other vendor record.";
01434 case NERR_RplBootNameUnavailable:
01435 return "(boot name, vendor ID) is in use by some other boot block record.";
01436 case NERR_RplConfigNameUnavailable:
01437 return "Configuration name is in use by some other configuration.";
01438 case NERR_DfsInternalCorruption:
01439 return "The internal database maintained by the Dfs service is corrupt.";
01440 case NERR_DfsVolumeDataCorrupt:
01441 return "One of the records in the internal Dfs database is corrupt.";
01442 case NERR_DfsNoSuchVolume:
01443 return "There is no DFS name whose entry path matches the input Entry Path.";
01444 case NERR_DfsVolumeAlreadyExists:
01445 return "A root or link with the given name already exists.";
01446 case NERR_DfsAlreadyShared:
01447 return "The server share specified is already shared in the Dfs.";
01448 case NERR_DfsNoSuchShare:
01449 return "The indicated server share does not support the indicated DFS namespace.";
01450 case NERR_DfsNotALeafVolume:
01451 return "The operation is not valid on this portion of the namespace.";
01452 case NERR_DfsLeafVolume:
01453 return "The operation is not valid on this portion of the namespace.";
01454 case NERR_DfsVolumeHasMultipleServers:
01455 return "The operation is ambiguous because the link has multiple servers.";
01456 case NERR_DfsCantCreateJunctionPoint:
01457 return "Unable to create a link.";
01458 case NERR_DfsServerNotDfsAware:
01459 return "The server is not Dfs Aware.";
01460 case NERR_DfsBadRenamePath:
01461 return "The specified rename target path is invalid.";
01462 case NERR_DfsVolumeIsOffline:
01463 return "The specified DFS link is offline.";
01464 case NERR_DfsNoSuchServer:
01465 return "The specified server is not a server for this link.";
01466 case NERR_DfsCyclicalName:
01467 return "A cycle in the Dfs name was detected.";
01468 case NERR_DfsNotSupportedInServerDfs:
01469 return "The operation is not supported on a server-based Dfs.";
01470 case NERR_DfsDuplicateService:
01471 return "This link is already supported by the specified server-share.";
01472 case NERR_DfsCantRemoveLastServerShare:
01473 return "Can't remove the last server-share supporting this root or link.";
01474 case NERR_DfsVolumeIsInterDfs:
01475 return "The operation is not supported for an Inter-DFS link.";
01476 case NERR_DfsInconsistent:
01477 return "The internal state of the Dfs Service has become inconsistent.";
01478 case NERR_DfsServerUpgraded:
01479 return "The Dfs Service has been installed on the specified server.";
01480 case NERR_DfsDataIsIdentical:
01481 return "The Dfs data being reconciled is identical.";
01482 case NERR_DfsCantRemoveDfsRoot:
01483 return "The DFS root cannot be deleted. Uninstall DFS if required.";
01484 case NERR_DfsChildOrParentInDfs:
01485 return "A child or parent directory of the share is already in a Dfs.";
01486 case NERR_DfsInternalError:
01487 return "Dfs internal error.";
01488
01489 #if 0
01490
01491 case NERR_SetupAlreadyJoined:
01492 return "This machine is already joined to a domain.";
01493 case NERR_SetupNotJoined:
01494 return "This machine is not currently joined to a domain.";
01495 case NERR_SetupDomainController:
01496 return "This machine is a domain controller and cannot be unjoined from a domain.";
01497 case NERR_DefaultJoinRequired:
01498 return "The destination domain controller does not support creating machine accounts in OUs.";
01499 case NERR_InvalidWorkgroupName:
01500 return "The specified workgroup name is invalid.";
01501 case NERR_NameUsesIncompatibleCodePage:
01502 return "The specified computer name is incompatible with the default language used on the domain controller.";
01503 case NERR_ComputerAccountNotFound:
01504 return "The specified computer account could not be found.";
01505 case NERR_PersonalSku:
01506 return "This version of Windows cannot be joined to a domain.";
01507 case NERR_PasswordMustChange:
01508 return "The password must change at the next logon.";
01509 case NERR_AccountLockedOut:
01510 return "The account is locked out.";
01511 case NERR_PasswordTooLong:
01512 return "The password is too long.";
01513 case NERR_PasswordNotComplexEnough:
01514 return "The password does not meet the complexity policy.";
01515 case NERR_PasswordFilterError:
01516 return "The password does not meet the requirements of the password filter DLLs.";
01517 #endif
01518
01519 }
01520 msg = strerror (error_number);
01521 if (msg == NULL)
01522 msg = "unknown";
01523
01524 return msg;
01525 #endif //DBUS_WINCE
01526 }
01527
01542 dbus_bool_t
01543 _dbus_command_for_pid (unsigned long pid,
01544 DBusString *str,
01545 int max_len,
01546 DBusError *error)
01547 {
01548
01549 return FALSE;
01550 }
01551
01557 void
01558 _dbus_reset_process_attributes (void)
01559 {
01560
01561 }
01562