Shell Functions
[This function is no longer implemented.]
This section describes the Windows Shell functions.
In this section
Topic | Description |
---|---|
Retrieves an object that implements an IQueryAssociations interface. |
|
Retrieves the value for a given property key using the file association information provided by the Namespace Extensions. |
|
Creates a context menu for a selected group of file folder objects. |
|
Shuts down the content indexer and closes all open catalogs. Note This function is not supported as of Windows 8. |
|
Parses a Unicode command line string and returns an array of pointers to the command line arguments, along with a count of such arguments, in a way that is similar to the standard C run-time argv and argc values. |
|
Serves as the entry point for a Control Panel application. This is a library-defined callback function. |
|
Creates a per-user, per-app profile for Windows Store apps. |
|
Retrieves the environment variables for the specified user. This block can then be passed to the CreateProcessAsUser function. |
|
Creates a new most recently used (MRU) list. |
|
Creates a new user profile. |
|
Provides default processing for any messages that a screen saver application does not process. |
|
Calls the next handler in a window's subclass chain. The last handler in the subclass chain calls the original window procedure for the window. |
|
Deletes the specified per-user, per-app profile. |
|
Deletes the user profile and all user-related settings from the specified computer. The caller must have administrative privileges to delete a user's profile. |
|
Frees environment variables created by the CreateEnvironmentBlock function. |
|
Gets the SID of the specified profile. |
|
DeriveRestrictedAppContainerSidFromAppContainerSidAndRestrictedName |
DeriveRestrictedAppContainerSidFromAppContainerSidAndRestrictedName is reserved for future use. |
Implemented by many of the Windows Shell DLLs to allow applications to obtain DLL-specific version information. |
|
Registers whether a window accepts dropped files. |
|
Releases memory that the system allocated for use in transferring file names to the application. |
|
Retrieves the names of dropped files that result from a successful drag-and-drop operation. |
|
Retrieves the position of the mouse pointer at the time a file was dropped during a drag-and-drop operation. |
|
Creates a duplicate of a specified icon. |
|
Expands the source string by using the environment block established for the specified user. |
|
Gets a handle to an icon stored as a resource in a file or an icon stored in a file's associated executable file. |
|
Gets a handle to an icon from the specified executable file, DLL, or icon file. To retrieve an array of handles to large or small icons, use the ExtractIconEx function. |
|
The ExtractIconEx function creates an array of handles to large or small icons extracted from the specified executable file, DLL, or icon file. |
|
Initializes or reinitializes the system image list. |
|
Retrieves the name of and handle to the executable (.exe) file associated with a specific document file. |
|
Frees the resources that have been allocated for a CONFIRM_CONFLICT_ITEM structure. |
|
Frees the memory used by an pointer to an item identifier list (PIDL) list array. |
|
Releases the memory space for the array of pointers to child item IDs. This releases both the PITEMID_CHILDs within the array and the array itself. |
|
Releases the memory space for the PIDL array. This releases both the PIDLIST_ABSOLUTEs within the array and the array itself. |
|
Frees the allocated fields in the result from IKnownFolder::GetFolderDefinition. |
|
Frees the handle associated with the MRU list and writes cached data to the registry. |
|
Retrieves the path to the root of the directory that contains program data shared by all users. |
|
Gets the path of the local app data folder for the specified app container. |
|
Gets the location of the registry storage associated with an app container. |
|
Retrieves a window that has been set as a delegate for an app's primary foreground window for the purpose of associating the delegate window with the app's contracts. Use this function if you are a developer writing a Windows Store app in native C++. |
|
Retrieves the application-defined, explicit Application User Model ID (AppUserModelID) for the current process. |
|
Retrieves the path to the root of the default user's profile. |
|
Retrieves the dots per inch (dpi) occupied by a SHELL_UI_COMPONENT based on the current scale factor and PROCESS_DPI_AWARENESS. |
|
Retrieves the Help context identifier associated with the specified menu. |
|
Retrieves the path to the root directory where user profiles are stored. |
|
Retrieves the type of profile loaded for the current user. |
|
Gets the preferred scale factor for a display device. |
|
Gets the scale factor of a specific monitor. This function replaces GetScaleFactorForDevice. |
|
Retrieves the path to the root directory of the specified user's profile. |
|
Retrieves the Help context identifier, if any, associated with the specified window. |
|
Retrieves the reference data for the specified window subclass callback. |
|
Verifies that the container structure of an IDList is valid. |
|
Appends or prepends an SHITEMID structure to an ITEMIDLIST structure. |
|
Clones an ITEMIDLIST structure. |
|
Clones a child ITEMIDLIST structure. |
|
Clones the first SHITEMID structure in an ITEMIDLIST structure. |
|
Clones a full, or absolute, ITEMIDLIST structure. |
|
Combines two ITEMIDLIST structures. |
|
Returns the ITEMIDLIST structure associated with a specified file path. |
|
Determines whether a specified ITEMIDLIST structure is the child of another ITEMIDLIST structure. |
|
Returns a pointer to the last SHITEMID structure in an ITEMIDLIST structure. |
|
Frees an ITEMIDLIST structure allocated by the Shell. |
|
Retrieves the next SHITEMID structure in an ITEMIDLIST structure. |
|
Returns the size, in bytes, of an ITEMIDLIST structure. |
|
Verifies whether a constant ITEMIDLIST is aligned on a pointer boundary, which is a DWORD on 32-bit architectures and a QWORD on 64-bit architectures. |
|
Verifies whether a PIDL is a child PIDL, which is a PIDL with exactly one SHITEMID. |
|
Verifies whether an ITEMIDLIST structure is empty. |
|
Tests whether two ITEMIDLIST structures are equal in a binary comparison. |
|
Tests whether an ITEMIDLIST structure is the parent of another ITEMIDLIST structure. |
|
Retrieves the next SHITEMID structure in an ITEMIDLIST structure. |
|
Retrieves the next SHITEMID structure in an ITEMIDLIST structure. |
|
Removes the last SHITEMID structure from an ITEMIDLIST structure. |
|
Saves an ITEMIDLIST structure to a stream. |
|
Skips a given number of bytes in a constant, unaligned, relative ITEMIDLIST structure. |
|
Skips a given number of bytes in an unaligned, relative ITEMIDLIST structure. |
|
Determines whether the system is connected to the Internet. |
|
Initializes the network address control window class. |
|
Loads the specified user's profile. The profile can be a local user profile or a roaming user profile. |
|
Runs the unregistered MIME content type dialog box. Note Windows XP Service Pack 2 (SP2) or later: This function is no longer supported. |
|
Creates a unique path name from a template. |
|
Creates a unique filename based on an existing filename. |
|
Enables an app to register a callback function through which it can be notified that its library is going into or coming out of a suspended state. The app can use this information to perform any necessary operations, such as preserving state, that should be performed at that point. |
|
Registers any nonstandard window classes required by a screen saver's configuration dialog box. |
|
Registers for an event that is triggered when the scale has possibly changed. This function replaces RegisterScaleChangeNotifications. |
|
Registers a window to receive callbacks when scaling information changes. Note This function is not supported as of Windows 8.1. Use RegisterScaleChangeEvent instead. |
|
Removes a subclass callback from a window. |
|
Revokes the registration of a window, preventing it from receiving callbacks when scaling information changes. Note This function is not supported as of Windows 8.1. Use UnregisterScaleChangeEvent instead. |
|
Receives messages sent to a screen saver's configuration dialog box. A screen saver that allows user configuration must define this function. |
|
Receives messages sent to the specified screen saver window. |
|
Associates an app window other than the primary foreground window with an app's contracts. Use this function if you are a developer writing a Windows Store app in native C++. |
|
Specifies a unique application-defined AppUserModelID that identifies the current process to the taskbar. This identifier allows an application to group its associated processes and windows under a single taskbar button. |
|
Associates a Help context identifier with a menu. |
|
Associates a Help context identifier with the specified window. |
|
Installs or updates a window subclass callback. |
|
Notifies the system that an item has been accessed, for the purposes of tracking those items used most recently and most frequently. This function can also be used to clear all usage data. |
|
Sends an appbar message to the system. |
|
Returns an enumeration object for a specified set of file name extension handlers. |
|
Gets an enumeration interface that provides access to handlers associated with a given protocol. |
|
Given a Shell namespace item specified in the form of a folder, and an item identifier list relative to that folder, this function binds to the parent of the namespace item and optionally returns a pointer to the final component of the item identifier list. |
|
Extends the SHBindToFolderIDListParent function by allowing the caller to specify a bind context. |
|
Retrieves and binds to a specified object by using the Shell namespace IShellFolder::BindToObject method. |
|
Takes a pointer to a fully qualified item identifier list (PIDL), and returns a specified interface pointer on the parent object. |
|
Displays a dialog box that enables the user to select a Shell folder. |
|
Locks the shared memory associated with a Shell change notification event. |
|
Unlocks shared memory for a change notification. |
|
Notifies the system of an event that an application has performed. An application should use this function if it performs an action that may affect the Shell. |
|
Unregisters the client's window process from receiving SHChangeNotify messages. |
|
Registers a window to receive notifications from the file system or Shell, if the file system supports notifications. |
|
Enables asynchronous register and deregister of a thread. |
|
Creates an IApplicationAssociationRegistration object based on the stock implementation of the interface provided by Windows. |
|
Creates a data object in a parent folder. |
|
Creates an object that represents the Shell's default context menu implementation. |
|
Creates a standard icon extractor, whose defaults can be further configured via the IDefaultExtractIconInit interface. |
|
Creates a file operation that sets the default properties on the Shell item that have not already been set. |
|
Creates and initializes a Shell item object from a PIDL. The resulting shell item object supports the IShellItem interface. |
|
Creates and initializes a Shell item object from a parsing name. |
|
Creates and initializes a Shell item object from a relative parsing name. |
|
Creates a Shell item object for a single file that exists inside a known folder. |
|
Create a Shell item, given a parent folder and a child item ID. |
|
Creates a new instance of the default Shell folder view object (DefView). |
|
Creates a new instance of the default Shell folder view object. It is recommended that you use SHCreateShellFolderView rather than this function. |
|
Creates an IShellItem object. Note It is recommended that you use SHCreateItemWithParent or SHCreateItemFromIDList instead of this function. |
|
Creates a Shell item array object. |
|
Creates a Shell item array object from a data object. |
|
Creates a Shell item array object from a list of ITEMIDLIST structures. |
|
Creates an array of one element from a single Shell item. |
|
Provides a default handler to extract an icon from a file. |
|
Executes a drag-and-drop operation. Supports drag source creation on demand, as well as drag images. |
|
Sends a message to the taskbar's status area. |
|
Gets the screen coordinates of the bounding rectangle of a notification icon. |
|
Displays a ShellAbout dialog box. |
|
Registers the Shell Dynamic Data Exchange (DDE) services in the current process, notifying the system that the current process wishes to host DDE objects. |
|
Performs an operation on a specified file. |
|
Performs an operation on a specified file. |
|
Empties the Recycle Bin on the specified drive. |
|
Enumerates the user accounts that have unread email. |
|
Enforces strict validation of parameters used in a call to CreateProcess or ShellExecute. |
|
Copies, moves, renames, or deletes a file system object. This function has been replaced in Windows Vista by IFileOperation. |
|
Frees a file name mapping object that was retrieved by the SHFileOperation function. |
|
Retrieves extended property data from a relative identifier list. |
|
Retrieves the IShellFolder interface for the desktop folder, which is the root of the Shell's namespace. |
|
Retrieves disk space information for a disk volume. |
|
Returns the type of media that is in the given drive. |
|
Retrieves information about an object in the file system, such as a file, folder, directory, or drive root. |
|
Retrieves the full path of a known folder identified by the folder's KNOWNFOLDERID. This extends SHGetKnownFolderPath by allowing you to set the initial size of the string buffer. |
|
Returns the index of the overlay icon in the system image list. |
|
Retrieves the PIDL of an object. |
|
Retrieves an image list. |
|
Retrieves an interface that allows hosted Shell extensions and other components to prevent their host process from closing prematurely. The host process is typically Windows Explorer or Windows Internet Explorer, but this function can also be used by other applications. |
|
Creates an IShellItem or related object based on an item specified by an IDataObject. |
|
Retrieves an IShellItem for an object. |
|
Retrieves the path of a known folder as an ITEMIDLIST structure. |
|
Retrieves an IShellItem object that represents a known folder. |
|
Retrieves the full path of a known folder identified by the folder's KNOWNFOLDERID. |
|
Retrieves the localized name of a file in a Shell folder. |
|
Retrieves the display name of an item identified by its IDList. |
|
Retrieves the property's canonical name given its PROPERTYKEY. |
|
Creates a name for a new shortcut based on the shortcut's proposed target. This function does not create the shortcut, just the name. |
|
Converts an item identifier list to a file system path. |
|
Converts an item identifier list to a file system path. This function extends SHGetPathFromIDList by allowing you to set the initial size of the string buffer and declare the options below. |
|
Retrieves the current Shell option settings. |
|
Retrieves information about system-defined Shell icons. |
|
Retrieves the temporary property for the given item. A temporary property is a read/write store that holds properties only for the lifetime of the IShellItem object, rather than being persisted back into the item. |
|
Retrieves a specified user's unread message count for any or all email accounts. |
|
Determines whether a file or folder is available for offline use. This function also determines whether the file would be opened from the network, from the local Offline Files cache, or from both locations. |
|
Creates an instance of the specified object class from within the context of the Shell's process. Windows Vista and later: This function has been disabled and returns E_NOTIMPL. |
|
Signals the Shell that during the next operation requiring overlay information, it should load icon overlay identifiers that either failed creation or were not present for creation at startup. Identifiers that have already been loaded are not affected. |
|
Makes a copy of a string in newly allocated memory. |
|
Displays a merged property sheet for a set of files. Property values common to all the files are shown while those that differ display the string (multiple values). |
|
Opens a Windows Explorer window with specified items in a particular folder selected. |
|
Displays the Open With dialog box. |
|
Displays the Folder Sharing tab on the properties sheet for the specified folder. |
|
Translates a Shell namespace object's display name into an item identifier list and returns the attributes of the object. This function is the preferred method to convert a string to a PIDL. |
|
Checks to see if the path exists. This includes remounting mapped network drives, prompting for ejectable media to be reinserted, creating the paths, prompting for the media to be formatted, and providing the appropriate user interfaces, if necessary. Read/write permissions for the medium are not checked. |
|
Retrieves the size of the Recycle Bin and the number of items in it, for a specified drive. |
|
Checks the state of the computer for the current user to determine whether sending a notification is appropriate. |
|
Removes the localized name of a file in a Shell folder. |
|
Opens a Control Panel item. Note This function is not supported as of Windows Vista |
|
Applies the default set of properties on a Shell item. |
|
Provides an interface that allows hosted Shell extensions and other components to prevent their host process from closing prematurely. The host process is typically Windows Explorer or Internet Explorer, but this function can also be used by other applications. |
|
Redirects a known folder to a new location. |
|
Sets the localized name of a file in a Shell folder. |
|
Sets a temporary property for the specified item. A temporary property is kept in a read/write store that holds properties only for the lifetime of the IShellItem object, instead of writing them back into the item. |
|
Stores the current user's unread message count for a specified email account in the registry. |
|
Uses CheckTokenMembership to test whether the given token is a member of the local group with the specified RID. |
|
Notifies the Shell that an image in the system image list has changed. |
|
Displays a standard message box that can be used to notify a user that an application has been updated. |
|
Creates a unique name for a stream or storage object from a template. |
|
Finds the first occurrence of a substring within a string. The comparison is case-insensitive. |
|
Finds the first occurrence of a substring within a string. The comparison is case-sensitive. |
|
Applies common translations to a given URL string, creating a new URL string. |
|
Unloads a user's profile that was loaded by the LoadUserProfile function. The caller must have administrative privileges on the computer. For more information, see the Remarks section of the LoadUserProfile function. |
|
Cancels a change notification registered through RegisterAppStateChangeNotification. |
|
Unregisters for the scale change event registered through RegisterScaleChangeEvent. This function replaces RevokeScaleChangeNotifications. |
|
Invokes the unregistered URL protocol dialog box. This dialog box allows the user to select an application to associate with a previously unknown protocol. Note Windows XP SP2 or later: This function is no longer supported. |
|
Retrieves the error value generated if the WinExec function cannot run a specified application. |
|
Launches Windows Help (Winhelp.exe) and passes additional data that indicates the nature of the help requested by the application. |