EditFlags for explorer filetypes
Explorer filetype storage in the registry:
Each filetype has the following keys in the registry:
1. ".FileType" (Ex. ".LNK" for shortcuts). This
contains a link to a second key (Ex. "LnkFile" for shortcuts)
2. "FileType" (Ex. "LnkFile" for shortcuts). This
key can contains several things:
a) The name of the filetype
(Ex. "Shortcut" for shortcuts) in the Default value
b) An empty string value
named "NeverShowExt". If this is present the extension for the filetype
will never be shown.
c) An empty string value
named "AlwaysShowExt". If this is present the extension for the filetype
will always be shown.
d) An empty string value
named "IsShortcut". If this is present the filetype is assumed to be a
e) A 4 byte binary value
named EditFlags. This value controls what you can do to the filetype in
the explorer. Each bit controls one aspect of what you can do:
||Disable the "Remove" button on the "Edit file type" screen
||Disable the "Edit..." button on the "Edit file type" screen
||Disable the "New..." button on the "Edit file type" screen
||Disable the "Remove" button to remove the entire filetype
||Disable the "Edit..." button to enter the "Edit file type" screen
||Disable the "Set Default" button
||Disable the "Content Type (MIME)" and the "Default extension for Content
type" popups on the "Edit file type" screen
||Hide the type entirely (It still works, but it is not show in the list
of known filetypes).
||The same as 0x0200 apparently
||Disable the "Set default" button to enter the "Edit file type" screen
||Disable editing of the "Description of type" field
This comes from the MSDN Library, it should be a description of values
for the EditFlags. However it doesn't seem to match the above table, discovered
||Exclude the file class
||Show file classes, such as folders, that aren't associated with a filename
||The file class has a filename extension.
||The registry entries associated with this file class cannot be edited.
New entries cannot be added and existing entries cannot be modified or
||The registry entries associated with this file class cannot be deleted.
||No new verbs can be added to the file
||Canonical verbs such as open
and print cannot be modified or deleted.
||Canonical verbs such as open and print cannot be deleted.
||The description of the file class cannot be modified or deleted.
||The icon assigned to the file class cannot be
modified or deleted.
||The default verb cannot be modified.
||The commands associated with verbs
cannot be modified.
||Verbs cannot be modified or deleted.
||The DDE-related entries cannot be modified or deleted.
||The content-type and default-extension entries cannot be modified or
||The file class's open verb can be safely invoked for downloaded
||Do not allow the "Never ask me" checkbox to be enabled. The user can
override this attribute through the File Type dialog box.
||Always show the file class's file name extension, even if the user
has selected the "Hide Extensions" option.
||Don't add members of this file class to the Recent