Windows CE
Programs
M000174-19
61
P Access Permissions
The registry entry
P
describes the type of access permission granted for every virtual directory. If the
registry entry is missing, the default access permissions are Read, Execute and Script (hex value
0205).
P (values in hex)
Description
0001
Read access permitted (Read – Access)
0002
Write access permitted (Write – Access)
0004
Execution of a function permitted (Execute – Access)
0200
Scripts are permitted (Script – Access)
The above values for
P
are bit values. For example, for read and script access,
P
must be set to the
value dword:0201. Other settings of the virtual directories are described in the chapter
Virtual
Directory Settings
. See also the following chapter
Sample Settings
.
7.7.4
S
AMPLE
S
ETTINGS
The settings for the web server can be set as follows in a
REG file
(see also chapter
Autoexec.reg
):
[HKEY_LOCAL_MACHINE\COMM\HTTPD]
"Port"=dword:50
; 80 decimal
"Basic"=dword:0
"NTLM"=dword:1
"DirBrowse"=dword:1
"DefaultPage"="default.htm;default.asp"
"AdminUsers"="AnnD;GladysL"
"LogFileDirectory"="\\windows\\www"
"MaxLogSize"=dword:1000
[HKEY_LOCAL_MACHINE\COMM\HTTPD\VROOTS\/]
"Default"="\\storagecard\\www"
"A"=dword:0
[HKEY_LOCAL_MACHINE\COMM\HTTPD\VROOTS\/Dir1]
"Default"="\\storagecard\\www\\dir1"
"A"=dword:1
[HKEY_LOCAL_MACHINE\COMM\HTTPD\VROOTS\/Dir2]
"Default"="\\storagecard\\www\\dir2"
"A"=dword:0
"P"=dword:201
Notes on the above example:
•
The directory «Dir1» is password protected.
•
Only script and read accesses to directory «Dir2» are permitted.
•
The entries with «
dword
» are in
hexadecimal
format.