RegisterMimeType(self,
mimeType,
extension,
fileType,
description,
cmds)
mimeType - mimetype designator extension - file extension (doesn't
have to be 3 letters, does have to start with a .) fileType - file
type, doesn't matter, just unique description - free form description
of the type
list of: verb - name of command command - the actual command line
commandDesc - a description (menu format) for the command example: [
(verb,command,commandDesc), ... ]
----
This function gets the mime type registered with windows via the
registry.
The following documentation is from wxWindows,
src/msw/mimetype.cpp:
-
"HKCR\MIME\Database\Content Type" contains subkeys for
all known MIME types, each key has a string value
"Extension" which gives (dot preceded) extension for the
files of this MIME type.
-
"HKCR\.ext" contains
a) unnamed value containing the "filetype"
b) value "Content Type" containing the MIME type
-
"HKCR iletype" contains
a) unnamed value containing the description
b) subkey "DefaultIcon" with single unnamed value
giving the icon index in an icon file
c) shell\open\command and shell\open\print subkeys containing
the commands to open/print the file (the positional parameters are
introduced by %1, %2, ... in these strings, we change them to %s
ourselves)
-
- Overrides:
AccessGrid.Config.MimeConfig.RegisterMimeType
|