 |
 |
Shell Functions ..msdn Add comment |
 |
|
AssocQueryString
|
|
Searches for and retrieves a file or protocol association-related string from the registry. |
|
 |
 |
 |
|
DllGetVersion
|
|
Implemented by many of the Microsoft® Windows® Shell dynamic-link libraries (DLLs) to allow applications to obtain DLL-specific version information. |
|
 |
 |
 |
|
DragAcceptFiles
|
|
Registers whether a window accepts dropped files. |
|
 |
 |
 |
|
DragFinish
|
|
Releases memory that the system allocated for use in transferring file names to the application. |
|
 |
 |
 |
|
DragQueryFile
|
|
Retrieves the names of dropped files that result from a successful drag-and-drop operation. |
|
 |
 |
 |
|
DragQueryPoint
|
|
Retrieves the position of the mouse pointer at the time a file was dropped during a drag-and-drop operation. |
|
 |
 |
 |
|
FileIconInit
|
|
Reinitializes the system image list. |
|
 |
 |
 |
|
FindExecutable
|
|
Retrieves the name of and handle to the executable (.exe) file associated with the specified file name. |
|
 |
 |
 |
|
GetFileNameFromBrowse
|
|
This function creates an Open dialog box that lets the user specify the drive, directory, and name of a file to open. |
|
 |
 |
 |
|
GetMenuContextHelpId
|
|
Retrieves the Help context identifier associated with the specified menu. |
|
 |
 |
 |
|
GetWindowContextHelpId
|
|
The GetWindowContextHelpId function retrieves the help context identifier, if any, associated with the specified window.
Windows NT only |
|
 |
 |
 |
|
InetIsOffline
|
|
Determines whether or not the system is connected to the Internet. |
|
 |
 |
 |
|
IsUserAnAdmin
|
|
Tests whether the current user is a member of the Administrator"s group. |
|
 |
 |
 |
|
PathMakeUniqueName
|
|
Creates a unique path name from a template. |
|
 |
 |
 |
|
PathYetAnotherMakeUniqueName
|
|
Creates a unique filename based on an existing filename. |
|
 |
 |
 |
|
RealDriveType
|
|
Determines the drive type based on the drive number. |
|
 |
 |
 |
|
RestartDialog
|
|
Displays a dialog box that prompts the user to restart Microsoft® Windows®. When the user clicks the button, the function calls ExitWindowsEx to attempt to restart Windows. |
|
 |
 |
 |
|
SHAddToRecentDocs
|
|
Adds a document to the Shell"s list of recently used documents or clears all documents from the list. |
|
 |
 |
 |
|
SHBrowseForFolder
|
|
Displays a dialog box that enables the user to select a Shell folder. |
|
 |
 |
 |
|
SHCreateDirectory
|
|
Creates a folder. |
|
 |
 |
 |
|
ShellAbout
|
|
Displays a Shell About dialog box |
|
 |
 |
 |
|
ShellExecute
|
|
Performs an operation on a specified file. |
|
 |
 |
 |
|
ShellExecuteEx
|
|
Performs an action on a file. |
|
 |
 |
 |
|
Shell_GetImageLists
|
|
Retrieves system image lists for large and small icons -- undocumented. |
|
 |
 |
 |
|
Shell_NotifyIcon
|
|
Sends a message to the taskbar"s status area. |
|
 |
 |
 |
|
SHEmptyRecycleBin
|
|
Empties the Recycle Bin on the specified drive. |
|
 |
 |
 |
|
SHFileOperation
|
|
Copies, moves, renames, or deletes a file system object. |
|
 |
 |
 |
|
SHFormatDrive
|
|
The SHFormatDrive API provides access to the Shell"s format dialog box. This allows applications that want to format disks to bring up the same dialog box that the Shell uses for disk formatting.
|
|
 |
 |
 |
|
SHGetFileInfo
|
|
Retrieves information about an object in the file system, such as a file, a folder, a directory, or a drive root.
|
|
 |
 |
 |
|
SHGetFolderPath
|
|
Takes the CSIDL of a folder and returns the pathname. |
|
 |
 |
 |
|
SHGetPathFromIDList
|
|
Converts an item identifier list to a file system path.
|
|
 |
 |
 |
|
SHGetSpecialFolderLocation
|
|
Retrieves a pointer to the ITEMIDLIST structure of a special folder. |
|
 |
 |
 |
|
SHGetStockIconInfo
|
|
Retrieves information about system-defined Shell icons. |
|
 |
 |
 |
|
SHParseDisplayName
|
|
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 pointer to an item identifier list (PIDL). |
|
 |
 |
 |
|
SHQueryRecycleBin
|
|
Retrieves the size of the Recycle Bin, and the number of items in it, on the specified drive. |
|
 |
 |
 |
|
SHSimpleIDListFromPath
|
|
Returns a pointer to an ITEMIDLIST structure when passed a path. |
|
 |
 |
 |
|
WinHelp
|
|
The WinHelp function starts Windows Help (WINHELP.EXE) and passes additional data indicating the nature of the help requested by the application |
|
 |
 |
 |
 |
| Code examples: |
 |
|
|
 |
|
|