50 Microsoft Windows NT Server White Paper
option is selected within the lower pane of the System Policy Editor
(see the discussion of PART and the code example below).
If not specified otherwise, the value will be written in the following
format when any administratory checks or unchecks the option:
Checked: REG_DWORD with a value of 1
Unchecked: Removes the value completely
Other options can specify what the user selects from and what gets
written to the registry.
• Use the keyword PART to specify options, drop-down list boxes, text
boxes, and text in the lower pane of the System Policy Editor. PART is
similar to CATEGORY, and uses the syntax:
PART !!MyVariable FLAG
...
END PART
where FLAG is one or more of the following:
• TEXT—Displays text only, for example:
PART !!MyPolicy TEXT
END PART
• NUMERIC—Writes the value to the registry with data type
REG_DWORD, for example:
PART !!MyPolicy NUMERIC
VALUENAME ValueToBeChanged
END PART
• DROPDOWNLIST—Displays a list box of options to choose from,
for example:
PART !!MyPolicy DROPDOWNLIST
VALUENAME ValueToBeChanged
ITEMLIST
NAME “First” VALUE NUMERIC 1
NAME “Second” VALUE NUMERIC 2
NAME “Third” VALUE NUMERIC 3
NAME “Fourth” VALUE NUMERIC 4
END ITEMLIST
END PART
• EDITTEXT—Writes the value to the registry with data type
REG_SZ, for example:
PART !!MyPolicy EDITTEXT
VALUENAME ValueToBeChanged
END PART
• REQUIRED—Generates an error if the user does not enter a
value, for example:
PART !!MyPolicy EDITTEXT REQUIRED
VALUENAME ValueToBeChanged
END PART
• EXPANDABLETEXT—Writes the value to the registry with data