C# 클래스 LitDev.LDShell

파일 보기 프로젝트 열기: litdev1/LitDev

공개 메소드들

메소드 설명
ApplyVerbOn ( Primitive path, Primitive verb ) : Primitive

Apply the given Verb (contextmenu item) for the given file or folder. List of available Verbs (for a filetype or folder) under 'GetAllVerbsFor'.

CascadeWindows ( ) : void

Orders all opended windows in cascades on the desktop (Revert with RestoreWindows).

DTIconsHide ( ) : void

Hides all desktop icons.

DTIconsShow ( ) : void

Shows all hidden desktop icons again.

DTIconsToggle ( ) : void

Toggles the view of all desktop icons automatically (On/Off).

DateTimeSettings ( ) : void

Shows the dialog for date- and time settings.

ExploreFolder ( Primitive path ) : void

Opens a specified folder in a Windows Explorer window. (parent folder for existing file path). In new tab in QTTabBar.

GetAllDetailNamesFor ( Primitive path, Primitive step1 ) : Primitive

Gets the names of all available extended properties for a given file or folder as Array (up to max. 316, w/o -1=Infotip).

GetAllDetailsFor ( Primitive path ) : Primitive

Gets all available extended properties for the given file or folder as Array (up to max. 316, without -1=Infotip).

GetAllVerbsFor ( Primitive path ) : Primitive

Gets all available Verbs (contextmenu items) for a given filetype or folder as Array. Applying of a Verb on file/folder under see 'ApplyVerbOn'.

GetDetail ( Primitive path, Primitive infoType ) : Primitive

Gets the value of an extended property for a given file or folder.

GetSetting ( Primitive value ) : Primitive

Gets values for global Shell settings (s. folder opions-view, CheckedStatus).

GetSystemInfo ( Primitive info ) : Primitive

Gets a given Systeminformation.

LinkCreate ( Primitive shortcut, Primitive target ) : Primitive

Creates a new lnk/url shortcut (Shell32). Further editing with 'LinkSetProperty'.

LinkGetProperty ( Primitive shortcut, Primitive property ) : Primitive

Gets properties of a lnk/url shortcut link, like target pfad, arguments etc.

LinkSetProperty ( Primitive shortcut, Primitive target, Primitive args, Primitive folder, Primitive desc, Primitive icoPath, Primitive icoIdx, Primitive hotkey, Primitive style ) : Primitive

Modifies properties of an existing lnk/url shortcut link, like target path, arguments etc. (* for Urls).

OpenFolder ( Primitive path ) : void

Opens explorer with the given file-/folder path (parent folder for existing file path). In new tab in QTTabBar.

RestoreWindows ( ) : void

Restores all minimized windows in the taskbar (after ShowDesktop, TileAll.., CascadeWindows) again.

RunBox ( ) : void

Shows the Run(box) Dialog.

SelectFolder ( Primitive title, Primitive initDir ) : Primitive

Shows a folder selection dialog.

ShellLink ( Primitive shortcut, Primitive target ) : Primitive

Creates a new lnk/url shortcut (IWshRuntimeLibrary). Further editing with 'ShellLinkSet'.

ShellLinkGet ( Primitive shortcut, Primitive property ) : Primitive

Gets properties of a lnk/url shortcut link, like target pfad, arguments etc. (IWshRuntimeLibrary).

ShellLinkSet ( Primitive shortcut, Primitive target, Primitive args, Primitive folder, Primitive desc, Primitive icon, Primitive hotkey, Primitive style ) : Primitive

Modifies properties of an existing lnk/url shortcut link, like target path, arguments etc. (* for Urls) (IWshRuntimeLibrary).

ShowDesktop ( ) : void

Minimizes all opened windows into the taskbar and showes the desktop (Revert with RestoreWindows).

ShowFileProperties ( Primitive filePath ) : void

Opens the shell properties dialog for a given file or folder path (GW is needed for that, not available from TW or Console).

SpecialFolderList ( Primitive csidl ) : Primitive

Gets all items in a special system/shell folder (upper level only).

StartSettings ( ) : void

Shows the dialog for startmenü/taskbar settings.

Switch3D ( ) : void

Orders all opended windows in a 3D stack on the desktop to select through (with arrow keys).

TileAllHoriz ( ) : void

Orders all opened windows horizontally tiled on the desktop (Revert with RestoreWindows).

TileAllVert ( ) : void

Orders all opened windows vertically tiled on the desktop (Revert with RestoreWindows).

ToggleDesktop ( ) : void

Toggles the view of the (windowless) desktop on and off (s. ShowDesktop/RestoreWindows).

비공개 메소드들

메소드 설명
FindWindowEx ( IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow ) : IntPtr
GetShell32NameSpace ( Object folder ) : Interop.Shell32.Folder
IsNumber ( string input ) : bool
IsNumeric ( string input ) : bool
IsWindowVisible ( IntPtr hWnd ) : bool
SHQueryRecycleBin ( string pszRootPath, SHQUERYRBINFO &pSHQueryRBInfo ) : int
ShellExecuteEx ( SHELLEXECUTEINFO &lpExecInfo ) : bool
ShowWindow ( IntPtr hWnd, int nCmdShow ) : bool

메소드 상세

ApplyVerbOn() 공개 정적인 메소드

Apply the given Verb (contextmenu item) for the given file or folder. List of available Verbs (for a filetype or folder) under 'GetAllVerbsFor'.
public static ApplyVerbOn ( Primitive path, Primitive verb ) : Primitive
path Primitive The full file- or folder path.
verb Primitive The Verb to apply (case- and '&' insensitive).
리턴 Primitive

CascadeWindows() 공개 정적인 메소드

Orders all opended windows in cascades on the desktop (Revert with RestoreWindows).
public static CascadeWindows ( ) : void
리턴 void

DTIconsHide() 공개 정적인 메소드

Hides all desktop icons.
public static DTIconsHide ( ) : void
리턴 void

DTIconsShow() 공개 정적인 메소드

Shows all hidden desktop icons again.
public static DTIconsShow ( ) : void
리턴 void

DTIconsToggle() 공개 정적인 메소드

Toggles the view of all desktop icons automatically (On/Off).
public static DTIconsToggle ( ) : void
리턴 void

DateTimeSettings() 공개 정적인 메소드

Shows the dialog for date- and time settings.
public static DateTimeSettings ( ) : void
리턴 void

ExploreFolder() 공개 정적인 메소드

Opens a specified folder in a Windows Explorer window. (parent folder for existing file path). In new tab in QTTabBar.
public static ExploreFolder ( Primitive path ) : void
path Primitive The folder path to open in explorer (file path opens parent folder). The folder must exist.
리턴 void

GetAllDetailNamesFor() 공개 정적인 메소드

Gets the names of all available extended properties for a given file or folder as Array (up to max. 316, w/o -1=Infotip).
public static GetAllDetailNamesFor ( Primitive path, Primitive step1 ) : Primitive
path Primitive The full file- or folder path.
step1 Primitive Indizes in speps by 1? "True" or "False" (default, real property ID).
리턴 Primitive

GetAllDetailsFor() 공개 정적인 메소드

Gets all available extended properties for the given file or folder as Array (up to max. 316, without -1=Infotip).
public static GetAllDetailsFor ( Primitive path ) : Primitive
path Primitive The full file- or folder path.
리턴 Primitive

GetAllVerbsFor() 공개 정적인 메소드

Gets all available Verbs (contextmenu items) for a given filetype or folder as Array. Applying of a Verb on file/folder under see 'ApplyVerbOn'.
public static GetAllVerbsFor ( Primitive path ) : Primitive
path Primitive The full file- or folder path.
리턴 Primitive

GetDetail() 공개 정적인 메소드

Gets the value of an extended property for a given file or folder.
public static GetDetail ( Primitive path, Primitive infoType ) : Primitive
path Primitive The full file- or folder path.
infoType Primitive The ID number or name of the property (eg. -1="Infotip"/"", 0="Name", 1="Size", etc.) /// ID numbers and names of available properties under s. 'AllDetails'.
리턴 Primitive

GetSetting() 공개 정적인 메소드

Gets values for global Shell settings (s. folder opions-view, CheckedStatus).
public static GetSetting ( Primitive value ) : Primitive
value Primitive An integer constant for the value to get (eg. 1, 2, 4, "8", "32" etc.).
리턴 Primitive

GetSystemInfo() 공개 정적인 메소드

Gets a given Systeminformation.
public static GetSystemInfo ( Primitive info ) : Primitive
info Primitive The name of the value to get. Options: /// "DirectoryServiceAvailable", "DoubleClickTime", "ProcessorLevel", "ProcessorSpeed", "ProcessorArchitecture", "PhysicalMemoryInstalled", "IsOS_DomainMember" /// (Only XP: "IsOS_Professional", "IsOS_Personal").
리턴 Primitive

LinkCreate() 공개 정적인 메소드

Creates a new lnk/url shortcut (Shell32). Further editing with 'LinkSetProperty'.
public static LinkCreate ( Primitive shortcut, Primitive target ) : Primitive
shortcut Primitive The full path for the new lnk/url shortcut file.
target Primitive The full path of the target file/-folder resp. URL address.
리턴 Primitive

LinkGetProperty() 공개 정적인 메소드

Gets properties of a lnk/url shortcut link, like target pfad, arguments etc.
public static LinkGetProperty ( Primitive shortcut, Primitive property ) : Primitive
shortcut Primitive The full path of the lnk/url shortcut link file.
property Primitive The property to get (case independent, * for Urls) like: /// "Target" target path * /// "Args" arguments /// "Folder" working directory /// "Desc" comment * /// "HotKey" shortcut key comb * (default: 0) /// "Style" window style * (1 normal, 3 max, 7 min) /// "Icon" icon path
리턴 Primitive

LinkSetProperty() 공개 정적인 메소드

Modifies properties of an existing lnk/url shortcut link, like target path, arguments etc. (* for Urls).
public static LinkSetProperty ( Primitive shortcut, Primitive target, Primitive args, Primitive folder, Primitive desc, Primitive icoPath, Primitive icoIdx, Primitive hotkey, Primitive style ) : Primitive
shortcut Primitive The full path of an existing lnk/url shortcut link file.
target Primitive * The full path of the target file/-folder resp. URL address.
args Primitive Startparameter when launching the shortcut or "" (for url).
folder Primitive The full path of the start folder or "" (for url).
desc Primitive * Comment or description for the shortcut or "".
icoPath Primitive * Full path of the icon file for the shortcut or "".
icoIdx Primitive * Index of the icon in the icon file (default: 0, for .ico).
hotkey Primitive * keys combination to launch the shortcut link (default: 0).
style Primitive * Window style when launching the shortcut (default: 1 normal, 3 max, 7 min).
리턴 Primitive

OpenFolder() 공개 정적인 메소드

Opens explorer with the given file-/folder path (parent folder for existing file path). In new tab in QTTabBar.
public static OpenFolder ( Primitive path ) : void
path Primitive Opens the specified folder (file path opens parent folder). The folder must exist.
리턴 void

RestoreWindows() 공개 정적인 메소드

Restores all minimized windows in the taskbar (after ShowDesktop, TileAll.., CascadeWindows) again.
public static RestoreWindows ( ) : void
리턴 void

RunBox() 공개 정적인 메소드

Shows the Run(box) Dialog.
public static RunBox ( ) : void
리턴 void

SelectFolder() 공개 정적인 메소드

Shows a folder selection dialog.
public static SelectFolder ( Primitive title, Primitive initDir ) : Primitive
title Primitive The title to show on the dialog.
initDir Primitive The start folder when the dialog opens or "" for last selected folder (default: Computer).
리턴 Primitive

ShellLink() 공개 정적인 메소드

Creates a new lnk/url shortcut (IWshRuntimeLibrary). Further editing with 'ShellLinkSet'.
public static ShellLink ( Primitive shortcut, Primitive target ) : Primitive
shortcut Primitive The full path for the new lnk/url shortcut file.
target Primitive The full path of the target file/-folder resp. URL address.
리턴 Primitive

ShellLinkGet() 공개 정적인 메소드

Gets properties of a lnk/url shortcut link, like target pfad, arguments etc. (IWshRuntimeLibrary).
public static ShellLinkGet ( Primitive shortcut, Primitive property ) : Primitive
shortcut Primitive The full path of the lnk/url shortcut link file.
property Primitive The property to get (case independent, * for Urls) like: /// "Target" target path * /// "Args" arguments /// "Folder" working directory /// "Desc" comment * /// "HotKey" shortcut key comb * (default: 0) /// "Style" window style * (1 normal, 3 max, 7 min) /// "Icon" icon path,Idx (default: ,0)
리턴 Primitive

ShellLinkSet() 공개 정적인 메소드

Modifies properties of an existing lnk/url shortcut link, like target path, arguments etc. (* for Urls) (IWshRuntimeLibrary).
public static ShellLinkSet ( Primitive shortcut, Primitive target, Primitive args, Primitive folder, Primitive desc, Primitive icon, Primitive hotkey, Primitive style ) : Primitive
shortcut Primitive The full path of an existing lnk/url shortcut link file.
target Primitive * The full path of the target file/-folder resp. URL address.
args Primitive Startparameter when launching the shortcut or "" (for url).
folder Primitive The full path of the start folder or "" (for url).
desc Primitive * Comment or description for the shortcut or "".
icon Primitive * The full path (resp. path,Idx) of the icon for the shortcut link or "". 'Idx' is Index of the icon in in the file (default: 0, for .ico).
hotkey Primitive * keys combination to launch the shortcut link (default: 0).
style Primitive * Window style when launching the shortcut (default: 1 normal, 3 max, 7 min).
리턴 Primitive

ShowDesktop() 공개 정적인 메소드

Minimizes all opened windows into the taskbar and showes the desktop (Revert with RestoreWindows).
public static ShowDesktop ( ) : void
리턴 void

ShowFileProperties() 공개 정적인 메소드

Opens the shell properties dialog for a given file or folder path (GW is needed for that, not available from TW or Console).
public static ShowFileProperties ( Primitive filePath ) : void
filePath Primitive The full file- or folder path.
리턴 void

SpecialFolderList() 공개 정적인 메소드

Gets all items in a special system/shell folder (upper level only).
public static SpecialFolderList ( Primitive csidl ) : Primitive
csidl Primitive The CSIDL number of the system folder (0 to 47, constants and names of available folders under s. SpecialFolderConstants).
리턴 Primitive

StartSettings() 공개 정적인 메소드

Shows the dialog for startmenü/taskbar settings.
public static StartSettings ( ) : void
리턴 void

Switch3D() 공개 정적인 메소드

Orders all opended windows in a 3D stack on the desktop to select through (with arrow keys).
public static Switch3D ( ) : void
리턴 void

TileAllHoriz() 공개 정적인 메소드

Orders all opened windows horizontally tiled on the desktop (Revert with RestoreWindows).
public static TileAllHoriz ( ) : void
리턴 void

TileAllVert() 공개 정적인 메소드

Orders all opened windows vertically tiled on the desktop (Revert with RestoreWindows).
public static TileAllVert ( ) : void
리턴 void

ToggleDesktop() 공개 정적인 메소드

Toggles the view of the (windowless) desktop on and off (s. ShowDesktop/RestoreWindows).
public static ToggleDesktop ( ) : void
리턴 void