这里有个例子:
REGEDIT
; This .REG file may be used by your SETUP program.
;   If a SETUP program is not available, the entries below will be
;   registered in your InitInstance automatically with a call to
;   CWinApp::RegisterShellFileTypes and COleObjectFactory::UpdateRegistryAll.HKEY_CLASSES_ROOT\.map = MapEdit.Document
HKEY_CLASSES_ROOT\MapEdit.Document\shell\open\command = MAPEDIT.EXE %1
HKEY_CLASSES_ROOT\MapEdit.Document\shell\open\ddeexec = [open("%1")]
HKEY_CLASSES_ROOT\MapEdit.Document\shell\open\ddeexec\application = MAPEDIT
    ; note: the application is optional
    ;  (it defaults to the app name in "command")HKEY_CLASSES_ROOT\MapEdit.Document = MapEdit Document