Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Defines shortcut menu restrictions used by IDefaultFolderMenuInitialize::GetMenuRestrictions and IDefaultFolderMenuInitialize::SetMenuRestrictions.
Syntax
typedef enum DEFAULT_FOLDER_MENU_RESTRICTIONS {
DFMR_DEFAULT = 0,
DFMR_NO_STATIC_VERBS = 0x8,
DFMR_STATIC_VERBS_ONLY = 0x10,
DFMR_NO_RESOURCE_VERBS = 0x20,
DFMR_OPTIN_HANDLERS_ONLY = 0x40,
DFMR_RESOURCE_AND_FOLDER_VERBS_ONLY = 0x80,
DFMR_USE_SPECIFIED_HANDLERS = 0x100,
DFMR_USE_SPECIFIED_VERBS = 0x200,
DFMR_NO_ASYNC_VERBS = 0x400,
DFMR_NO_NATIVECPU_VERBS = 0x800,
DFMR_NO_NONWOW_VERBS
} ;
Constants
DFMR_DEFAULTValue: 0 0x0000. No restrictions. |
DFMR_NO_STATIC_VERBSValue: 0x8 0x0008. Don't use the handler for static verbs. |
DFMR_STATIC_VERBS_ONLYValue: 0x10 0x0010. Static verbs only. No dynamic IContextMenu verbs allowed. |
DFMR_NO_RESOURCE_VERBSValue: 0x20 0x0020. Don't add verbs for cut, copy, paste, link, delete, rename, or properties. |
DFMR_OPTIN_HANDLERS_ONLYValue: 0x40 0x0040. Opt-in to load handler for partial cloud files. Only used for handlers that will not cause implicit hydration. Opt-in handlers must have the registry value "ContextMenuOptIn" under HKCR\CLSID<handler clsid> |
DFMR_RESOURCE_AND_FOLDER_VERBS_ONLYValue: 0x80 0x0080. Only load resource verbs (cut, copy, paste, link, delete, rename, and properties) and folder verbs added by IContextMenuCB. |
DFMR_USE_SPECIFIED_HANDLERSValue: 0x100 0x0100. Use handlers with CLSID values that were added through IDefaultFolderMenuInitialize::SetHandlerClsid |
DFMR_USE_SPECIFIED_VERBSValue: 0x200 0x0200. Only load handlers that support the specified verbs. |
DFMR_NO_ASYNC_VERBSValue: 0x400 0x0400. Ignore async verbs. |
DFMR_NO_NATIVECPU_VERBSValue: 0x800 0x0800. Ignore verbs that are registered for the native CPU architecture. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] |
| Minimum supported server | Windows Server 2008 [desktop apps only] |
| Header | shobjidl_core.h (include Shobjidl.h) |