Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
2.6 KiB

  1. #ifndef _INC_FILETYPE_
  2. #define _INC_FILETYPE_
  3. // File Type Attributes key's bitmap values (HKEY_CLASSES_ROOT\filetype,Attributes)
  4. #define FTA_Exclude 0x00000001 // 1. used to exclude types like drvfile
  5. #define FTA_Show 0x00000002 // 2. used to show types like folder that don't have associations
  6. #define FTA_HasExtension 0x00000004 // 3. type has assoc extension
  7. #define FTA_NoEdit 0x00000008 // 4. no editing of file type
  8. #define FTA_NoRemove 0x00000010 // 5. no deling of the file type
  9. #define FTA_NoNewVerb 0x00000020 // 6. no adding of verbs
  10. #define FTA_NoEditVerb 0x00000040 // 7. no editing of predefined verbs
  11. #define FTA_NoRemoveVerb 0x00000080 // 8. no deling of predefined verbs
  12. #define FTA_NoEditDesc 0x00000100 // 9. no editing of file type description
  13. #define FTA_NoEditIcon 0x00000200 // 10. no editing of doc icon
  14. #define FTA_NoEditDflt 0x00000400 // 11. no changing of default verb
  15. #define FTA_NoEditVerbCmd 0x00000800 // 12. no editing of the verbs command
  16. #define FTA_NoEditVerbExe 0x00001000 // 13. no editing of the verbs exe
  17. #define FTA_NoDDE 0x00002000 // 14. no editing of the DDE fields
  18. #define FTA_ExtShellOpen 0x00004000 // 15. old style type: HKCR/.ext/shell/open/command
  19. #define FTA_NoEditMIME 0x00008000 // 16. no editing of the Content Type or Default Extension fields
  20. #define FTA_OpenIsSafe 0x00010000 // 17. the file class's open verb may be safely invoked for downloaded files
  21. #define FTA_AlwaysUnsafe 0x00020000 // 18. don't allow the "Never ask me" checkbox to be enabled; File Type dialog still allows user to turn this off
  22. #define FTA_AlwaysShowExt 0x00040000 // 19. always show the extension (even if the user has "hide extensions" displayed)
  23. #define FTA_MigratedShowExt 0x00080000 // 20. has the old AlwaysShowExt reg key been migrated into the class flags yet?
  24. #define FTA_NoRecentDocs 0x00100000 // 21. dont add this file type to the Recent Documents folder
  25. #define FTAV_UserDefVerb 0x00000001 // 1. identifies verb as being user defined (!predefined)
  26. //================================================================
  27. // typedef's
  28. //================================================================
  29. typedef enum mimeflags
  30. {
  31. MIME_FL_CONTENT_TYPES_ADDED = 0x0001, // The Content Type combo box drop down has been filled with MIME types.
  32. /* flag combinations */
  33. ALL_MIME_FLAGS = MIME_FL_CONTENT_TYPES_ADDED
  34. } MIMEFLAGS;
  35. #endif // _INC_FILETYPE_