C# Class KeePass.Util.WinUtil

Afficher le fichier Open project: amiryal/keepass2 Class Usage Examples

Méthodes publiques

Méthode Description
CompactPath ( string strPath, int nMaxChars ) : string

Shorten a path.

FlushStorageBuffers ( char chDriveLetter, bool bOnlyIfRemovable ) : bool
FlushStorageBuffers ( string strFileOnStorage, bool bOnlyIfRemovable ) : bool
GetCommandLineFromUrl ( string strUrl ) : string
GetExecutable ( ) : string
GetMaxNetFrameworkVersion ( ) : ulong
GetOSStr ( ) : string
HashFile ( IOConnectionInfo iocFile ) : byte[]
IsCommandLineUrl ( string strUrl ) : bool
IsInternetExplorer7Window ( string strWindowTitle ) : bool
OpenEntryUrl ( PwEntry pe ) : void
OpenUrl ( string strUrlToOpen, PwEntry peDataSource ) : void
OpenUrl ( string strUrlToOpen, PwEntry peDataSource, bool bAllowOverride ) : void
OpenUrlWithApp ( string strUrlToOpen, PwEntry peDataSource, string strAppPath ) : void
RemoveZoneIdentifier ( string strFilePath ) : void
Restart ( ) : void
RunConsoleApp ( string strAppPath, string strParams ) : string
RunElevated ( string strExe, string strArgs, bool bShowMessageIfFailed ) : bool

Private Methods

Méthode Description
FreeDriveIfCurrent ( char chDriveLetter ) : string
GetNetVersion ( ) : ulong
StartWithoutShellExecute ( string strApp, string strArgs ) : void
WinUtil ( ) : System

Method Details

CompactPath() public static méthode

Shorten a path.
public static CompactPath ( string strPath, int nMaxChars ) : string
strPath string Path to make shorter.
nMaxChars int Maximum number of characters in the returned string.
Résultat string

FlushStorageBuffers() public static méthode

public static FlushStorageBuffers ( char chDriveLetter, bool bOnlyIfRemovable ) : bool
chDriveLetter char
bOnlyIfRemovable bool
Résultat bool

FlushStorageBuffers() public static méthode

public static FlushStorageBuffers ( string strFileOnStorage, bool bOnlyIfRemovable ) : bool
strFileOnStorage string
bOnlyIfRemovable bool
Résultat bool

GetCommandLineFromUrl() public static méthode

public static GetCommandLineFromUrl ( string strUrl ) : string
strUrl string
Résultat string

GetExecutable() public static méthode

public static GetExecutable ( ) : string
Résultat string

GetMaxNetFrameworkVersion() public static méthode

public static GetMaxNetFrameworkVersion ( ) : ulong
Résultat ulong

GetOSStr() public static méthode

public static GetOSStr ( ) : string
Résultat string

HashFile() public static méthode

public static HashFile ( IOConnectionInfo iocFile ) : byte[]
iocFile IOConnectionInfo
Résultat byte[]

IsCommandLineUrl() public static méthode

public static IsCommandLineUrl ( string strUrl ) : bool
strUrl string
Résultat bool

IsInternetExplorer7Window() public static méthode

public static IsInternetExplorer7Window ( string strWindowTitle ) : bool
strWindowTitle string
Résultat bool

OpenEntryUrl() public static méthode

public static OpenEntryUrl ( PwEntry pe ) : void
pe PwEntry
Résultat void

OpenUrl() public static méthode

public static OpenUrl ( string strUrlToOpen, PwEntry peDataSource ) : void
strUrlToOpen string
peDataSource PwEntry
Résultat void

OpenUrl() public static méthode

public static OpenUrl ( string strUrlToOpen, PwEntry peDataSource, bool bAllowOverride ) : void
strUrlToOpen string
peDataSource PwEntry
bAllowOverride bool
Résultat void

OpenUrlWithApp() public static méthode

public static OpenUrlWithApp ( string strUrlToOpen, PwEntry peDataSource, string strAppPath ) : void
strUrlToOpen string
peDataSource PwEntry
strAppPath string
Résultat void

RemoveZoneIdentifier() public static méthode

public static RemoveZoneIdentifier ( string strFilePath ) : void
strFilePath string
Résultat void

Restart() public static méthode

public static Restart ( ) : void
Résultat void

RunConsoleApp() public static méthode

public static RunConsoleApp ( string strAppPath, string strParams ) : string
strAppPath string
strParams string
Résultat string

RunElevated() public static méthode

public static RunElevated ( string strExe, string strArgs, bool bShowMessageIfFailed ) : bool
strExe string
strArgs string
bShowMessageIfFailed bool
Résultat bool