C# Class KeePass.Util.WinUtil

Datei anzeigen Open project: amiryal/keepass2 Class Usage Examples

Public Methods

Method 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

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

Method Details

CompactPath() public static method

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.
return string

FlushStorageBuffers() public static method

public static FlushStorageBuffers ( char chDriveLetter, bool bOnlyIfRemovable ) : bool
chDriveLetter char
bOnlyIfRemovable bool
return bool

FlushStorageBuffers() public static method

public static FlushStorageBuffers ( string strFileOnStorage, bool bOnlyIfRemovable ) : bool
strFileOnStorage string
bOnlyIfRemovable bool
return bool

GetCommandLineFromUrl() public static method

public static GetCommandLineFromUrl ( string strUrl ) : string
strUrl string
return string

GetExecutable() public static method

public static GetExecutable ( ) : string
return string

GetMaxNetFrameworkVersion() public static method

public static GetMaxNetFrameworkVersion ( ) : ulong
return ulong

GetOSStr() public static method

public static GetOSStr ( ) : string
return string

HashFile() public static method

public static HashFile ( IOConnectionInfo iocFile ) : byte[]
iocFile IOConnectionInfo
return byte[]

IsCommandLineUrl() public static method

public static IsCommandLineUrl ( string strUrl ) : bool
strUrl string
return bool

IsInternetExplorer7Window() public static method

public static IsInternetExplorer7Window ( string strWindowTitle ) : bool
strWindowTitle string
return bool

OpenEntryUrl() public static method

public static OpenEntryUrl ( PwEntry pe ) : void
pe PwEntry
return void

OpenUrl() public static method

public static OpenUrl ( string strUrlToOpen, PwEntry peDataSource ) : void
strUrlToOpen string
peDataSource PwEntry
return void

OpenUrl() public static method

public static OpenUrl ( string strUrlToOpen, PwEntry peDataSource, bool bAllowOverride ) : void
strUrlToOpen string
peDataSource PwEntry
bAllowOverride bool
return void

OpenUrlWithApp() public static method

public static OpenUrlWithApp ( string strUrlToOpen, PwEntry peDataSource, string strAppPath ) : void
strUrlToOpen string
peDataSource PwEntry
strAppPath string
return void

RemoveZoneIdentifier() public static method

public static RemoveZoneIdentifier ( string strFilePath ) : void
strFilePath string
return void

Restart() public static method

public static Restart ( ) : void
return void

RunConsoleApp() public static method

public static RunConsoleApp ( string strAppPath, string strParams ) : string
strAppPath string
strParams string
return string

RunElevated() public static method

public static RunElevated ( string strExe, string strArgs, bool bShowMessageIfFailed ) : bool
strExe string
strArgs string
bShowMessageIfFailed bool
return bool