source: branches/client-1.5/src/rc/rc.rc@ 150

Last change on this file since 150 was 116, checked in by Paul Smedley, 18 years ago

Encrypt samba password in Netdrive control files

  • Property svn:eol-style set to native
File size: 3.0 KB
Line 
1#include <ndpl_rc.h>
2
3#include "rc.h"
4
5RCINCLUDE "rc.dlg"
6
7RCINCLUDE "description.rc"
8
9RCDATA NDRC_PLUGIN_NAME
10{
11 "SMBFS"
12}
13
14RCDATA NDRC_PLUGIN_DESC
15{
16 "Access to SAMBA resources."
17}
18
19RCDATA NDRC_PLUGIN_HELP
20{
21 "ndpsmb.hlp"
22}
23
24/* if dlg is the same for two types then one dlg id may be specified
25 for both descriptions (this is untested however :) */
26RCDATA NDRC_TYPE_FIRST
27{
28 DLG_ID, "SMBFS."
29}
30
31
32RCDATA NDRC_TYPE_HELP_FIRST
33{
34 "Help for command line utility:\r\n"
35 "\r\n"
36 "nd mount smbfs s:\\mountpoint ;workgroup=...;server=...;share=...;user=...;password=...;master=...;mastertype=...;memlen=...;logfile=...;loglevel=...;easupport=...\r\n"
37 "\r\n"
38 " workgroup - name of workgroup\r\n"
39 " server - name or ip address of server\r\n"
40 " share - name of share\r\n"
41 " user - name of user\r\n"
42 " password - user password\r\n"
43 " master - name of master server or master workgroup\r\n"
44 " mastertype - 0 if 'master' is the name of master server, 1 if 'master' is the name of master workgroup\r\n"
45 " memlen - the size of shared memory buffer allocated for every NDFS connection in size of 64k blocks\r\n"
46 " logfile - file to log records from smbcd.exe. Used only if smbcd.exe is run by ndpsmb.dll plugin, not manually\r\n"
47 " loglevel - level of logging (0-9) for smbcd.exe. Used only if smbcd.exe is run by ndpsmb.dll plugin, not manually\r\n"
48 " easupport - 0 to not support EA, 1 to support\r\n"
49 "\r\n"
50}
51
52HELPTABLE DLG_ID
53{
54 HELPITEM DLG_ID, DLG_ID, DLG_ID
55}
56
57HELPSUBTABLE DLG_ID
58SUBITEMSIZE 2
59{
60}
61
62/*
63 * ID, TYPE, REQUIRED, RANGE_LOW, RANGE_HIGH, "NAME", "FORMATSTRING", "DEFAULT" or DEFAULT
64 */
65
66RCDATA DLG_ID
67{
68 ENT_WORKGRP, PARMTYPE_STRING, 1L, 256L, "workgroup", "%s", ""
69}
70
71RCDATA (DLG_ID + 1)
72{
73 ENT_SERVER, PARMTYPE_STRING, 1L, 256L, "server", "%s", ""
74}
75
76RCDATA (DLG_ID + 2)
77{
78 ENT_SHARE, PARMTYPE_STRING, 1L, 256L, "share", "%s", ""
79}
80
81RCDATA (DLG_ID + 3)
82{
83 ENT_USER, PARMTYPE_STRING, 1L, 256L, "user", "%s", "guest"
84}
85
86RCDATA (DLG_ID + 4)
87{
88 ENT_PASS, PARMTYPE_STRING, 1L, 256L, "password", "%s", ""
89}
90
91RCDATA (DLG_ID + 5)
92{
93 ENT_MASTER, PARMTYPE_STRING, 1L, 256L, "master", "%s", "WORKGROUP"
94}
95
96RCDATA (DLG_ID + 6)
97{
98 CMB_MASTER, PARMTYPE_INT, 0L, 1L, "mastertype", "%d", 1L,
99 "server",
100 "workgroup"
101}
102
103RCDATA (DLG_ID + 7)
104{
105 CMB_MEMLEN, PARMTYPE_INT, 1L, 10L, "memlen", "%d", 2L,
106 "64k",
107 "128k",
108 "192k",
109 "256k",
110 "320k",
111 "384k",
112 "448k",
113 "512k",
114 "576k",
115 "640k"
116}
117
118RCDATA (DLG_ID + 8)
119{
120 ENT_LOGFILE, PARMTYPE_STRING, 1L, 256L, "logfile", "%s", ""
121}
122
123RCDATA (DLG_ID + 9)
124{
125 CMB_LOGLEVEL, PARMTYPE_INT, 0L, 9L, "loglevel", "%d", 0L,
126 "0",
127 "1",
128 "2",
129 "3",
130 "4",
131 "5",
132 "6",
133 "7",
134 "8",
135 "9"
136}
137
138RCDATA (DLG_ID + 10)
139{
140 CHK_EASUPPORT, PARMTYPE_INT, 0L, 1L, "easupport", "%d", 1L,
141 "0",
142 "1"
143}
144
145RCDATA (DLG_ID + 11)
146{
147 ENT_SPASS, PARMTYPE_STRING, 1L, 255L, "spassword", "%s", ""
148}
149
150RCDATA (DLG_ID + 12)
151{
152 0
153}
154
Note: See TracBrowser for help on using the repository browser.