Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

206 lines
8.5 KiB

  1. /********************************************************************/
  2. /** Microsoft LAN Manager **/
  3. /** Copyright(c) Microsoft Corp., 1987-1991 **/
  4. /********************************************************************/
  5. /***
  6. *
  7. * READ THIS READ THIS READ THIS READ THIS READ THIS READ THIS READ THIS
  8. *
  9. * If you change this file you must regenerate nettext.h via:
  10. *
  11. * sed -n -f text.sed nettext.c > nettext.h
  12. *
  13. * This is just until there is a sed on NT
  14. *
  15. ***/
  16. #define INCL_NOCOMMON
  17. #include <os2.h>
  18. #include <lmcons.h>
  19. #include <lmsvc.h>
  20. #include <icanon.h>
  21. #include <swtchtxt.h>
  22. TCHAR * NULL_STRING = TEXT("");
  23. TCHAR * DOT_STRING = TEXT(".");
  24. /* Service name texts */
  25. TCHAR * txt_SERVICE_MSG_SRV = SERVICE_MESSENGER;
  26. TCHAR * txt_SERVICE_REDIR = SERVICE_WORKSTATION;
  27. TCHAR * txt_SERVICE_FILE_SRV = SERVICE_SERVER;
  28. TCHAR * txt_SERVICE_ALERTER = SERVICE_ALERTER;
  29. TCHAR * txt_SERVICE_NETLOGON = SERVICE_NETLOGON;
  30. TCHAR * txt_SERVICE_REPL = SERVICE_REPL;
  31. TCHAR * txt_LIST_DELIMITER_STR_UI = LIST_DELIMITER_STR_UI;
  32. TCHAR * ADMIN_DOLLAR = TEXT("ADMIN$");
  33. TCHAR * IPC_DOLLAR = TEXT("IPC$");
  34. TCHAR USER_MAXSTOR_UNLIMITED[] = TEXT("UNLIMITED");
  35. TCHAR * fmtPSZ = TEXT("%-*.*ws%Fws\r\n");
  36. TCHAR * fmtNPSZ = TEXT("%-*.*ws%ws\r\n");
  37. TCHAR * fmtUSHORT = TEXT("%-*.*ws%hu\r\n");
  38. TCHAR * fmtULONG = TEXT("%-*.*ws%lu\r\n");
  39. TCHAR USER_NEVER[] = TEXT("NEVER");
  40. TCHAR USER_ALL[] = TEXT("ALL");
  41. TCHAR WKSTA_ALL[] = TEXT("*");
  42. TCHAR SERVER_ANY[] = TEXT("\\\\*");
  43. TCHAR USER_HOURS_NONE[] = TEXT("\"\"");
  44. TCHAR USE_USER[] = TEXT("USER");
  45. TCHAR * MSG_HYPHENS = TEXT("----------------------------------------")
  46. TEXT("---------------------------------------\r\n");
  47. /*
  48. * all the switches go here
  49. */
  50. TCHAR swtxt_SW_YES[] = SW_YES;
  51. TCHAR swtxt_SW_NO[] = SW_NO;
  52. TCHAR swtxt_SW_HELP[] = SW_HELP;
  53. TCHAR swtxt_SW_SYNTAX[] = SW_SYNTAX;
  54. TCHAR swtxt_SW_ADD[] = SW_ADD;
  55. TCHAR swtxt_SW_DELETE[] = SW_DELETE;
  56. TCHAR swtxt_SW_REMARK[] = SW_REMARK;
  57. TCHAR swtxt_SW_COMMENT[] = SW_COMMENT;
  58. TCHAR swtxt_SW_OPTIONS[] = SW_OPTIONS;
  59. TCHAR swtxt_SW_PRIORITY[] = SW_PRIORITY;
  60. TCHAR swtxt_SW_ROUTE[] = SW_ROUTE;
  61. TCHAR swtxt_SW_DOMAIN[] = SW_DOMAIN;
  62. TCHAR swtxt_SW_NETWARE[] = SW_NETWARE;
  63. TCHAR swtxt_SW_RANDOM[] = SW_RANDOM;
  64. TCHAR swtxt_SW_RTSDOMAIN[] = SW_RTSDOMAIN;
  65. TCHAR swtxt_SW_SETSNTP[] = SW_SETSNTP;
  66. TCHAR swtxt_SW_QUERYSNTP[] = SW_QUERYSNTP;
  67. TCHAR swtxt_SW_ALERTER_SIZALERTBUF[] = SW_ALERTER_SIZALERTBUF;
  68. TCHAR swtxt_SW_NETLOGON_CENTRALIZED[] = SW_NETLOGON_CENTRALIZED;
  69. TCHAR swtxt_SW_NETLOGON_PULSE[] = SW_NETLOGON_PULSE;
  70. TCHAR swtxt_SW_NETLOGON_RANDOMIZE[] = SW_NETLOGON_RANDOMIZE;
  71. TCHAR swtxt_SW_NETLOGON_SYNCHRONIZE[] = SW_NETLOGON_SYNCHRONIZE;
  72. TCHAR swtxt_SW_NETLOGON_SCRIPTS[] = SW_NETLOGON_SCRIPTS;
  73. TCHAR swtxt_SW_UPS_BATTERYTIME[] = SW_UPS_BATTERYTIME;
  74. TCHAR swtxt_SW_UPS_CMDFILE[] = SW_UPS_CMDFILE;
  75. TCHAR swtxt_SW_UPS_DEVICENAME[] = SW_UPS_DEVICENAME;
  76. TCHAR swtxt_SW_UPS_MESSDELAY[] = SW_UPS_MESSDELAY;
  77. TCHAR swtxt_SW_UPS_MESSTIME[] = SW_UPS_MESSTIME;
  78. TCHAR swtxt_SW_UPS_RECHARGE[] = SW_UPS_RECHARGE;
  79. TCHAR swtxt_SW_UPS_SIGNALS[] = SW_UPS_SIGNALS;
  80. TCHAR swtxt_SW_UPS_VOLTLEVELS[] = SW_UPS_VOLTLEVELS;
  81. TCHAR swtxt_SW_WKSTA_CHARCOUNT[] = SW_WKSTA_CHARCOUNT;
  82. TCHAR swtxt_SW_WKSTA_CHARTIME[] = SW_WKSTA_CHARTIME;
  83. TCHAR swtxt_SW_WKSTA_CHARWAIT[] = SW_WKSTA_CHARWAIT;
  84. TCHAR swtxt_SW_WKSTA_COMPUTERNAME[] = SW_WKSTA_COMPUTERNAME;
  85. TCHAR swtxt_SW_WKSTA_KEEPCONN[] = SW_WKSTA_KEEPCONN;
  86. TCHAR swtxt_SW_WKSTA_KEEPSEARCH[] = SW_WKSTA_KEEPSEARCH;
  87. TCHAR swtxt_SW_WKSTA_LOGONSERVER[] = SW_WKSTA_LOGONSERVER;
  88. TCHAR swtxt_SW_WKSTA_MAILSLOTS[] = SW_WKSTA_MAILSLOTS;
  89. TCHAR swtxt_SW_WKSTA_NUMCHARBUF[] = SW_WKSTA_NUMCHARBUF;
  90. TCHAR swtxt_SW_WKSTA_NUMDGRAMBUF[] = SW_WKSTA_NUMDGRAMBUF;
  91. TCHAR swtxt_SW_WKSTA_NUMSERVICES[] = SW_WKSTA_NUMSERVICES;
  92. TCHAR swtxt_SW_WKSTA_NUMWORKBUF[] = SW_WKSTA_NUMWORKBUF;
  93. TCHAR swtxt_SW_WKSTA_SIZCHARBUF[] = SW_WKSTA_SIZCHARBUF;
  94. TCHAR swtxt_SW_WKSTA_SIZERROR[] = SW_WKSTA_SIZERROR;
  95. TCHAR swtxt_SW_WKSTA_SIZWORKBUF[] = SW_WKSTA_SIZWORKBUF;
  96. TCHAR swtxt_SW_WKSTA_WRKHEURISTICS[] = SW_WKSTA_WRKHEURISTICS;
  97. TCHAR swtxt_SW_WKSTA_WRKNETS[] = SW_WKSTA_WRKNETS;
  98. TCHAR swtxt_SW_WKSTA_WRKSERVICES[] = SW_WKSTA_WRKSERVICES;
  99. TCHAR swtxt_SW_WKSTA_PRIMARYDOMAIN[] = SW_WKSTA_PRIMARYDOMAIN;
  100. TCHAR swtxt_SW_WKSTA_OTHDOMAINS[] = SW_WKSTA_OTHDOMAINS;
  101. TCHAR swtxt_SW_WKSTA_MAXERRORLOG[] = SW_WKSTA_MAXERRORLOG;
  102. TCHAR swtxt_SW_WKSTA_MAXWRKCACHE[] = SW_WKSTA_MAXWRKCACHE;
  103. TCHAR swtxt_SW_WKSTA_NUMALERTS[] = SW_WKSTA_NUMALERTS;
  104. TCHAR swtxt_SW_WKSTA_PRINTBUFTIME[] = SW_WKSTA_PRINTBUFTIME;
  105. TCHAR swtxt_SW_WKSTA_SESSTIMEOUT[] = SW_WKSTA_SESSTIMEOUT;
  106. TCHAR swtxt_SW_PRINT_HOLD[] = SW_PRINT_HOLD;
  107. TCHAR swtxt_SW_PRINT_RELEASE[] = SW_PRINT_RELEASE;
  108. TCHAR swtxt_SW_PRINT_AFTER[] = SW_PRINT_AFTER;
  109. TCHAR swtxt_SW_PRINT_FIRST[] = SW_PRINT_FIRST;
  110. TCHAR swtxt_SW_PRINT_LAST[] = SW_PRINT_LAST;
  111. TCHAR swtxt_SW_PRINT_PARMS[] = SW_PRINT_PARMS;
  112. TCHAR swtxt_SW_PRINT_PROCESSOR[] = SW_PRINT_PROCESSOR;
  113. TCHAR swtxt_SW_PRINT_PURGE[] = SW_PRINT_PURGE;
  114. TCHAR swtxt_SW_PRINT_SEPARATOR[] = SW_PRINT_SEPARATOR;
  115. TCHAR swtxt_SW_PRINT_UNTIL[] = SW_PRINT_UNTIL;
  116. TCHAR swtxt_SW_PRINT_DRIVER[] = SW_PRINT_DRIVER;
  117. TCHAR swtxt_SW_SHARE_COMM[] = SW_SHARE_COMM;
  118. TCHAR swtxt_SW_SHARE_PRINT[] = SW_SHARE_PRINT;
  119. TCHAR swtxt_SW_SHARE_UNLIMITED[] = SW_SHARE_UNLIMITED;
  120. TCHAR swtxt_SW_SHARE_USERS[] = SW_SHARE_USERS;
  121. TCHAR swtxt_SW_CACHE[] = SW_CACHE;
  122. TCHAR swtxt_SW_USE_COMM[] = SW_USE_COMM;
  123. TCHAR swtxt_SW_USE_HOME[] = SW_USE_HOME;
  124. TCHAR swtxt_SW_USE_USER[] = SW_USE_USER;
  125. TCHAR swtxt_SW_USE_SMARTCARD[] = SW_USE_SMARTCARD;
  126. TCHAR swtxt_SW_USE_SAVECRED[] = SW_USE_SAVECRED;
  127. TCHAR swtxt_SW_USE_PERSISTENT[] = SW_USE_PERSISTENT;
  128. TCHAR swtxt_SW_USER_ACTIVE[] = SW_USER_ACTIVE;
  129. TCHAR swtxt_SW_USER_COUNTRYCODE[] = SW_USER_COUNTRYCODE;
  130. TCHAR swtxt_SW_USER_EXPIRES[] = SW_USER_EXPIRES;
  131. TCHAR swtxt_SW_USER_ENABLESCRIPT[] = SW_USER_ENABLESCRIPT;
  132. TCHAR swtxt_SW_USER_FULLNAME[] = SW_USER_FULLNAME;
  133. TCHAR swtxt_SW_USER_HOMEDIR[] = SW_USER_HOMEDIR;
  134. TCHAR swtxt_SW_USER_PARMS[] = SW_USER_PARMS;
  135. TCHAR swtxt_SW_USER_PASSWORDREQ[] = SW_USER_PASSWORDREQ;
  136. TCHAR swtxt_SW_USER_PASSWORDCHG[] = SW_USER_PASSWORDCHG;
  137. TCHAR swtxt_SW_USER_SCRIPTPATH[] = SW_USER_SCRIPTPATH;
  138. TCHAR swtxt_SW_USER_TIMES[] = SW_USER_TIMES;
  139. TCHAR swtxt_SW_USER_USERCOMMENT[] = SW_USER_USERCOMMENT;
  140. TCHAR swtxt_SW_USER_WORKSTATIONS[] = SW_USER_WORKSTATIONS;
  141. TCHAR swtxt_SW_USER_PROFILEPATH[] = SW_USER_PROFILEPATH;
  142. TCHAR swtxt_SW_SRV_SRVCOMMENT[] = SW_SRV_SRVCOMMENT;
  143. TCHAR swtxt_SW_SRV_AUTODISCONNECT[] = SW_SRV_AUTODISCONNECT;
  144. TCHAR swtxt_SW_SRV_MAXUSERS[] = SW_SRV_MAXUSERS;
  145. TCHAR swtxt_SW_SRV_SRVANNOUNCE[] = SW_SRV_SRVANNOUNCE;
  146. TCHAR swtxt_SW_SRV_SRVANNDELTA[] = SW_SRV_SRVANNDELTA;
  147. TCHAR swtxt_SW_SRV_MAXSESSOPENS[] = SW_SRV_MAXSESSOPENS;
  148. TCHAR swtxt_SW_SRV_NUMREQBUF[] = SW_SRV_NUMREQBUF;
  149. TCHAR swtxt_SW_SRV_SIZREQBUF[] = SW_SRV_SIZREQBUF;
  150. TCHAR swtxt_SW_SRV_NUMBIGBUF[] = SW_SRV_NUMBIGBUF;
  151. TCHAR swtxt_SW_SRV_SRVHIDDEN[] = SW_SRV_SRVHIDDEN;
  152. TCHAR swtxt_SW_SRV_DEBUG[] = SW_SRV_DEBUG;
  153. TCHAR swtxt_SW_STATS_CLEAR[] = SW_STATS_CLEAR;
  154. TCHAR swtxt_SW_ADMIN_COMMAND[] = SW_ADMIN_COMMAND;
  155. TCHAR swtxt_SW_MESSAGE_BROADCAST[] = SW_MESSAGE_BROADCAST;
  156. TCHAR swtxt_SW_ACCOUNTS_FORCELOGOFF[] = SW_ACCOUNTS_FORCELOGOFF;
  157. TCHAR swtxt_SW_ACCOUNTS_UNIQUEPW[] = SW_ACCOUNTS_UNIQUEPW;
  158. TCHAR swtxt_SW_ACCOUNTS_MINPWLEN[] = SW_ACCOUNTS_MINPWLEN;
  159. TCHAR swtxt_SW_ACCOUNTS_MINPWAGE[] = SW_ACCOUNTS_MINPWAGE;
  160. TCHAR swtxt_SW_ACCOUNTS_MAXPWAGE[] = SW_ACCOUNTS_MAXPWAGE;
  161. TCHAR swtxt_SW_ACCOUNTS_ROLE[] = SW_ACCOUNTS_ROLE;
  162. TCHAR swtxt_SW_ACCOUNTS_PRIMARY[] = SW_ACCOUNTS_PRIMARY;
  163. TCHAR swtxt_SW_ACCOUNTS_LOCKOUT[] = SW_ACCOUNTS_LOCKOUT;
  164. TCHAR swtxt_SW_ACCOUNTS_SYNCH[] = SW_ACCOUNTS_SYNCH;
  165. TCHAR swtxt_SW_ACCOUNTS_LOCKOUT_THRESHOLD[] = SW_ACCOUNTS_LOCKOUT_THRESHOLD;
  166. TCHAR swtxt_SW_ACCOUNTS_LOCKOUT_DURATION[] = SW_ACCOUNTS_LOCKOUT_DURATION;
  167. TCHAR swtxt_SW_ACCOUNTS_LOCKOUT_WINDOW[] = SW_ACCOUNTS_LOCKOUT_WINDOW;
  168. TCHAR swtxt_SW_REPL_REPL[] = SW_REPL_REPL;
  169. TCHAR swtxt_SW_REPL_EXPPATH[] = SW_REPL_EXPPATH;
  170. TCHAR swtxt_SW_REPL_IMPPATH[] = SW_REPL_IMPPATH;
  171. TCHAR swtxt_SW_REPL_EXPLIST[] = SW_REPL_EXPLIST;
  172. TCHAR swtxt_SW_REPL_IMPLIST[] = SW_REPL_IMPLIST;
  173. TCHAR swtxt_SW_REPL_TRYUSER[] = SW_REPL_TRYUSER;
  174. TCHAR swtxt_SW_REPL_LOGON[] = SW_REPL_LOGON;
  175. TCHAR swtxt_SW_REPL_PASSWD[] = SW_REPL_PASSWD;
  176. TCHAR swtxt_SW_REPL_SYNCH[] = SW_REPL_SYNCH;
  177. TCHAR swtxt_SW_REPL_PULSE[] = SW_REPL_PULSE;
  178. TCHAR swtxt_SW_REPL_GUARD[] = SW_REPL_GUARD;
  179. TCHAR swtxt_SW_REPL_RANDOM[] = SW_REPL_RANDOM;
  180. TCHAR swtxt_SW_TIME_SET[] = SW_TIME_SET;
  181. TCHAR swtxt_SW_COMPUTER_JOIN[] = SW_COMPUTER_JOIN;
  182. TCHAR swtxt_SW_COMPUTER_LEAVE[] = SW_COMPUTER_LEAVE;
  183. TCHAR swtxt_SW_NETWORK[] = SW_NETWORK;