1 | #include <ndpl_rc.h>
|
---|
2 |
|
---|
3 | #include "rc.h"
|
---|
4 |
|
---|
5 | RCINCLUDE "rc.dlg"
|
---|
6 |
|
---|
7 | RCINCLUDE "description.rc"
|
---|
8 |
|
---|
9 | RCDATA NDRC_PLUGIN_NAME
|
---|
10 | {
|
---|
11 | "SMBFS"
|
---|
12 | }
|
---|
13 |
|
---|
14 | RCDATA NDRC_PLUGIN_DESC
|
---|
15 | {
|
---|
16 | "Access to SAMBA resources."
|
---|
17 | }
|
---|
18 |
|
---|
19 | RCDATA 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 :) */
|
---|
26 | RCDATA NDRC_TYPE_FIRST
|
---|
27 | {
|
---|
28 | DLG_ID, "SMBFS."
|
---|
29 | }
|
---|
30 |
|
---|
31 |
|
---|
32 | RCDATA 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=...;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 | " easupport - 0 to not support EA, 1 to support\r\n"
|
---|
46 | "\r\n"
|
---|
47 | }
|
---|
48 |
|
---|
49 | HELPTABLE DLG_ID
|
---|
50 | {
|
---|
51 | HELPITEM DLG_ID, DLG_ID, DLG_ID
|
---|
52 | }
|
---|
53 |
|
---|
54 | HELPSUBTABLE DLG_ID
|
---|
55 | SUBITEMSIZE 2
|
---|
56 | {
|
---|
57 | }
|
---|
58 |
|
---|
59 | /*
|
---|
60 | * ID, TYPE, REQUIRED, RANGE_LOW, RANGE_HIGH, "NAME", "FORMATSTRING", "DEFAULT" or DEFAULT
|
---|
61 | */
|
---|
62 |
|
---|
63 | RCDATA DLG_ID
|
---|
64 | {
|
---|
65 | ENT_WORKGRP, PARMTYPE_STRING, 1L, 256L, "workgroup", "%s", ""
|
---|
66 | }
|
---|
67 |
|
---|
68 | RCDATA (DLG_ID + 1)
|
---|
69 | {
|
---|
70 | ENT_SERVER, PARMTYPE_STRING, 1L, 256L, "server", "%s", ""
|
---|
71 | }
|
---|
72 |
|
---|
73 | RCDATA (DLG_ID + 2)
|
---|
74 | {
|
---|
75 | ENT_SHARE, PARMTYPE_STRING, 1L, 256L, "share", "%s", ""
|
---|
76 | }
|
---|
77 |
|
---|
78 | RCDATA (DLG_ID + 3)
|
---|
79 | {
|
---|
80 | ENT_USER, PARMTYPE_STRING, 1L, 256L, "user", "%s", "guest"
|
---|
81 | }
|
---|
82 |
|
---|
83 | RCDATA (DLG_ID + 4)
|
---|
84 | {
|
---|
85 | ENT_PASS, PARMTYPE_STRING, 1L, 256L, "password", "%s", ""
|
---|
86 | }
|
---|
87 |
|
---|
88 | RCDATA (DLG_ID + 5)
|
---|
89 | {
|
---|
90 | ENT_MASTER, PARMTYPE_STRING, 1L, 256L, "master", "%s", "WORKGROUP"
|
---|
91 | }
|
---|
92 |
|
---|
93 | RCDATA (DLG_ID + 6)
|
---|
94 | {
|
---|
95 | CMB_MASTER, PARMTYPE_INT, 0L, 1L, "mastertype", "%d", 1L,
|
---|
96 | "server",
|
---|
97 | "workgroup"
|
---|
98 | }
|
---|
99 |
|
---|
100 | RCDATA (DLG_ID + 7)
|
---|
101 | {
|
---|
102 | CHK_EASUPPORT, PARMTYPE_INT, 0L, 1L, "easupport", "%d", 1L,
|
---|
103 | "0",
|
---|
104 | "1"
|
---|
105 | }
|
---|
106 |
|
---|
107 | RCDATA (DLG_ID + 8)
|
---|
108 | {
|
---|
109 | ENT_SPASS, PARMTYPE_STRING, 1L, 255L, "spassword", "%s", ""
|
---|
110 | }
|
---|
111 |
|
---|
112 | RCDATA (DLG_ID + 9)
|
---|
113 | {
|
---|
114 | 1
|
---|
115 | }
|
---|
116 |
|
---|