Shell Constants, Enumerations, and Flags
This section describes the Windows Shell constants, enumerations, and flags.
In this section
Topic | Description |
---|---|
Used with the IFolderView::Items, IFolderView::ItemCount, and IShellView::GetItemObject methods to restrict or control the items in their collections. |
|
Indicates flags used by IFolderView, IFolderView2, IShellView and IShellView2 to specify a type of selection to apply. |
|
Specifies application management actions supported by an application publisher. These flags are bitmasks passed to IShellApp::GetPossibleActions. |
|
Specifies application information to return from IShellApp::GetAppInfo. These flags are bitmasks used in the dwMask member of the APPINFODATA structure. |
|
Defines the set of display orientation modes for a window (app view). Used by IApplicationDesignModeSettings2::GetApplicationViewOrientation and IApplicationDesignModeSettings2::SetApplicationViewOrientation. |
|
Defines the set of possible general window (app view) size preferences. Used by ILaunchSourceViewSizePreference::GetSourceViewSizePreference and ILaunchTargetViewSizePreference::GetTargetViewSizePreference. |
|
Indicates the current view state of a Windows Store app. Used by IApplicationDesignModeSettings::SetApplicationViewState and IApplicationDesignModeSettings::IsApplicationViewStateSupported. |
|
Used by IQueryAssociations::GetData to define the type of data that is to be returned. |
|
Provides information to the IQueryAssociations interface methods. |
|
Specifies the source of the default association for a file name extension. Used by methods of the IApplicationAssociationRegistration interface. |
|
Specifies the type of association for an application. Used by methods of the IApplicationAssociationRegistration interface. |
|
Specifies the type of key to be returned by IQueryAssociations::GetKey. |
|
Used by IQueryAssociations::GetString to define the type of string that is to be returned. |
|
Provides a set of flags to be used with IAttachmentExecute::Prompt to indicate the action to be performed upon user confirmation. |
|
Provides a set of flags to be used with IAttachmentExecute::Prompt to indicate the type of prompt UI to display. |
|
Specifies which objects are enumerated for autocompletion lists. |
|
Specifies values used by IAutoComplete2::GetOptions and IAutoComplete2::SetOptions for options surrounding autocomplete. |
|
A set of string keys that are used with the IBindCtx::RegisterObjectParam method to specify a bind context. |
|
Deprecated. Used by IBrowserService::SetNavigateState and IBrowserService::GetNavigateState to specify navigation states. |
|
Used with method IBrowserFrameOptions::GetFrameOptions. |
|
Provides a set of flags for use with the CATEGORY_INFO structure. |
|
Specifies methods for sorting category data. |
|
Specifies the values that indicate whether a control is visible and enabled. Used by members of the IFileDialogCustomize interface. |
|
Used by members of the IColumnManager interface to specify which set of columns are being requested, either all or only those currently visible. |
|
Indicates which values in the CM_COLUMNINFO structure should be set during calls to IColumnManager::SetColumnInfo. |
|
Specifies width values in pixels and includes special support for default and autosize. Used by members of the IColumnManager interface through the CM_COLUMNINFO structure. |
|
Specifies column state values. Used by members of the IColumnManager interface through the CM_COLUMNINFO structure. |
|
Indicates the type of credential that a credential provider should return to associate with the "Other user" tile. Used by ICredentialProviderUserArray_GetAccountOptions. |
|
Provides customization options for a single field in a logon or credential UI. |
|
Describes the state of a field and how it a user can interact with it. Fields can be displayed by a credential provider in a variety of different interactive states. |
|
Specifies the state of a single field in the Credential UI. |
|
Specifies a type of credential field. Used by CREDENTIAL_PROVIDER_FIELD_DESCRIPTOR. |
|
Describes the response when a credential provider attempts to serialize credentials. |
|
Indicates which status icon should be displayed. |
|
Declares the scenarios in which a credential provider is supported. A credential provider usage scenario (CPUS) enables the credential provider to provide distinct enumeration behavior and UI field setup across scenarios. |
|
Note As of Windows Vista, these values have been replaced by KNOWNFOLDERID values. See that topic for a list of the new constants and their corresponding CSIDL values. For convenience, corresponding KNOWNFOLDERID values are also noted here for each CSIDL value.
The CSIDL system is supported under Windows Vista for compatibility reasons. However, new development should use KNOWNFOLDERID values rather than CSIDL values. CSIDL (constant special item ID list) values provide a unique system-independent way to identify special folders used frequently by applications, but which may not have the same name or location on any given system. For example, the system folder may be "C:\Windows" on one system and "C:\Winnt" on another. These constants are defined in Shlobj.h. |
|
Flags that control the calling function's behavior. Used by SHCreateThread and SHCreateThreadWithHandle. In those functions, these values are defined as being of type SHCT_FLAGS. |
|
Values used by the SHGetItemFromDataObject function to specify options concerning the processing of the source object. |
|
These command IDs can be sent to the band object's container with IOleCommandTarget::Exec. |
|
Values that specify the folder being acted on by methods of the ISharingConfigurationManager interface. |
|
Specifies the default save location. |
|
Specifies how the desktop wallpaper should be displayed. |
|
Indicates a spoofed device scale factor, as a percent. Used by IApplicationDesignModeSettings::SetApplicationViewState and IApplicationDesignModeSettings::IsApplicationViewStateSupported |
|
Indicates whether the device is a primary or immersive type of display. |
|
Values used with the DROPDESCRIPTION structure to specify the drop image. |
|
EXPCMDSTATE values represent the command state of a Shell item. |
|
These flags are used with IExplorerBrowser::FillFromObject. |
|
These flags are used with IExplorerBrowser::GetOptions and IExplorerBrowser::SetOptions. |
|
Indicate flags used by IExplorerPaneVisibility::GetPaneState to get the current state of the given Windows Explorer pane. |
|
Specifies list placement. |
|
Specifies the values used by the IFileDialogEvents::OnOverwrite method to indicate an application's response to an overwrite request during a save operation using the common file dialog. |
|
Specifies the values used by the IFileDialogEvents::OnShareViolation method to indicate an application's response to a sharing violation that occurs when a file is opened or saved. |
|
Describes match criteria. Used by methods of the IKnownFolderManager interface. |
|
Constants used by IFileIsInUse::GetUsage to indicate how a file in use is being used. |
|
Defines the set of options available to an Open or Save dialog. |
|
Indicates FILETYPEATTRIBUTEFLAGS constants that are used in the EditFlags value of a file association PROGID registry key. |
|
Used by IObjectWithFolderEnumMode::GetMode and IObjectWithFolderEnumMode::SetMode methods to get and set the display modes for the folders. |
|
A set of flags that specify folder view options. The flags are independent of each other and can be used in any combination. |
|
Used by IFolderViewSettings::GetViewMode and ISearchFolderItemFactory::SetFolderLogicalViewMode to describe the view mode. |
|
The FOLDERTYPEID values represent a view template applied to a folder, usually based on its intended use and contents. |
|
Specifies the folder view type. |
|
Used by methods of the IFolderViewOptions interface to activate Windows Vista options not supported by default in Windows 7 and later systems as well as deactivating new Windows 7 options. |
|
This section describes the flags used by IActiveDesktop interface methods. |
|
Specifies how a shortcut should be handled by the browser. |
|
Value that represent a category by which a folder registered with the Known Folder system can be classified. |
|
Flags that specify certain known folder behaviors. Used with the KNOWNFOLDER_DEFINITION structure. |
|
Flags used by IKnownFolderManager::Redirect to specify details of a known folder redirection such as permissions and ownership for the redirected folder. |
|
Flags that specify the current redirection capabilities of a known folder. Used by IKnownFolder::GetRedirectionCapabilities. |
|
Specify special retrieval options for known folders. These values supersede CSIDL values, which have parallel meanings. |
|
The KNOWNFOLDERID constants represent GUIDs that identify standard folders registered with the system as Known Folders. These folders are installed with Windows Vista and later operating systems, and a computer will have only folders appropriate to it installed. For descriptions of these folders, see CSIDL. |
|
Defines options for filtering folder items. |
|
Used by SHShowManageLibraryUI to define options for handling a name collision when saving a library. |
|
Specifies the library options. |
|
Specifies the options for handling a name collision when saving a library. |
|
Used with the MIMEAssociationDialog function to determine how it executes. |
|
Specifies whether a display is showing desktop windows instead of Windows Store apps. |
|
Represent options available when displaying a pop-up menu. |
|
Represent network address types. Use one or more (as a bitwise combination) of the following constants to create a network address mask to use with the macro NetAddr_SetAllowType. |
|
Specifies the state of a tree item. These values are used by methods of the INameSpaceTreeControlFolderCapabilities interface. |
|
Specifies the state of a tree item. These values are used by methods of the INameSpaceTreeControl interface. |
|
Describes the characteristics of a given namespace tree control. |
|
Used by methods of the INameSpaceTreeControl2 to specify extended display styles in a Shell namespace treeview. |
|
Flags used by INewWindowManager::EvaluateNewWindow. These values are factors in the decision of whether to display a pop-up window. |
|
Specifies a file's perceived type. This set of constants is used in the AssocGetPerceivedType function. |
|
Specifies which members in the PUBAPPINFO structure are valid. These flags are bitmasks set in the dwMask member and passed to IPublishedApp::GetPublishedAppInfo. |
|
Specifies the state of the machine for the current user in relation to the propriety of sending a notification. Used by SHQueryUserNotificationState. |
|
These data types can be used to specify the type of a registry value. |
|
A data type used for specifying the security access attributes in the registry. |
|
These flags are used with the SHRestricted function. SHRestricted is used to determine whether a specified administrator policy is in effect. In many cases, applications need to modify certain behaviors in order to comply with the policies enacted by system administrators. |
|
Flags that are used to indicate the scaling change that occured. |
|
Indicates whether to enable or disable Async Register and Deregister for SHChangeNotifyRegisterThread. |
|
Specifies how the StrFormatByteSizeEx function should handle rounding of undisplayed digits. |
|
Attributes that can be retrieved on an item (file or folder) or set of items. |
|
Indicates the interpretation of the data passed by SHAddToRecentDocs in its pv parameter to identify the item whose usage statistics are being tracked. |
|
Specifies the access permissions assigned to the Users or Public folder. Used in CreateShare and GetSharePermissions. |
|
Describes how a property should be treated. These values are defined in Shtypes.h. |
|
Determines the types of items included in an enumeration. These values are used with the IShellFolder::EnumObjects method. |
|
Specifies option settings. Used with IShellLinkDataList::GetFlags and IShellLinkDataList::SetFlags. |
|
Identifies the type of UI component that is needed in the shell. |
|
Specifies the view options returned by the ViewOptions property. |
|
Specifies unique, system-independent values that identify special folders. These folders are frequently used by applications but which may not have the same name or location on any given system. For example, the system folder can be "C:\Windows" on one system and "C:\Winnt" on another. |
|
Specifies options for finding window in the Shell windows collection. |
|
Specifies types of Shell windows. |
|
Defines the values used with the IShellFolder::GetDisplayNameOf and IShellFolder::SetNameOf methods to specify the type of file or folder names used by those methods. Note Prior to Windows 7, these values were packaged as the SHGNO enumeration. |
|
Identifiers for various global counters, or shared variables. Each global counter can be incremented or decremented using SHGlobalCounterIncrement and SHGlobalCounterDecrement. |
|
Provides a set of values that indicate from which base key an item will be deleted. |
|
Provides a set of values that indicate the base key that will be used for an enumeration. |
|
Used by SHGetStockIconInfo to identify which stock system icon to retrieve. |
|
Used to determine how to compare two Shell items. IShellItem::Compare uses this enumerated type. |
|
Requests the form of an item's display name to retrieve through IShellItem::GetDisplayName and SHGetNameFromIDList. |
|
Describes an action being performed that requires progress to be shown to the user using an IActionProgress interface. |
|
Used by IActionProgress::Begin, these constants specify certain UI operations that are to be enabled or disabled. |
|
Specifies the type of descriptive text being provided to an IActionProgress interface. |
|
Flags that restrict the data to be set or returned. |
|
Used by the SHGetSetSettings function to specify which members of its SHELLSTATE structure should be set or retrived. |
|
Used by the ITaskbarList4::SetTabProperties method to specify tab properties. |
|
Used with the IBrowserService2::_UIActivateView method to set the state of a browser view. |
|
Describes a request by the user to cancel a synchronization. |
|
Describes conflict item type. |
|
Specifies how an operation requested on certain methods of ISyncMgrControl should be performed. |
|
Specifies flags for a synchronization event. |
|
Specifies the type of event being reported to Sync Center. |
|
Specifies the capabilities of a handler regarding the actions that can be performed against it. |
|
Enumerates policies specified by a sync handler that deviate from the default policy. |
|
Specifies the type of a handler. Used by ISyncMgrHandlerInfo::GetType. |
|
Specifies the actions that can be performed against an item. |
|
Specifies an item's policies to control how they can be enabled or disabled by group policy. |
|
Describes what choice a user makes about a sync manager conflict resolution. Used by ISyncMgrConflictPresenter. |
|
Describes the next step that is to occur in sync manager conflict resolution. Used by ISyncMgrConflictPresenter. |
|
Specifies the current progress status of a synchronization process. Used by ISyncMgrSyncCallback::ReportProgress. |
|
Indicates abilities and the conflict resolution activity to follow. Used with ISyncMgrResolutionHandler::QueryAbilities. |
|
Describes Sync Manager resolution feedback. Used by ISyncMgrResolutionHandler. |
|
Indicates flags used by ISyncMgrControl::StartHandlerSync and ISyncMgrControl::StartItemSync. |
|
The SYNCMGRFLAG enumeration values are used in the ISyncMgrSynchronize::Initialize method to indicate how the synchronization event was initiated. |
|
Used in the SYNCMGRHANDLERINFO structure as flags that apply to the current handler. |
|
The SYNCMGRINVOKEFLAGS enumeration value specifies how the Sync Manager is to be invoked in the ISyncMgrSynchronizeInvoke::UpdateItems method. |
|
Specifies information for the current item in the SYNCMGRITEM structure. |
|
The SYNCMGRLOGLEVEL enumeration values specify an error level for use in the ISyncMgrSynchronizeCallback::LogError method. |
|
The SYNCMGRREGISTERFLAGS enumeration values are used in methods of the ISyncMgrRegister interface to identify events for which the handler is registered to be notified. |
|
Used in the ISyncMgrSynchronize::SetItemStatus method to specify the updated status for the item. |
|
Used by THUMBBUTTON to control specific states and behaviors of the button. |
|
Used by the THUMBBUTTON structure to specify which members of that structure contain valid data. |
|
Defines the cache options used by the IThumbnailStreamCache interface. |
|
Used by methods of the ITransferSource and ITransferDestination interfaces to control their file operations. |
|
The TRANSLATEURL_IN_FLAGS enumerated values are used with the TranslateURL function to determine how it will execute. |
|
Values that indicate the reason that a docked accessibility app window has been undocked. Used by IAccessibilityDockingServiceCallback::Undocked. |
|
Used to specify URL schemes. |
|
The URLASSOCIATIONDIALOG_IN_FLAGS enumerated values are used with URLAssociationDialog to determine how it executes. |
|
Specifies the use of a color. Used by IVisualProperties methods. |
|
Specifies watermark flags. Used by IVisualProperties::SetWatermark. |