C# Класс KeePass.Util.WinUtil

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
FreeDriveIfCurrent ( char chDriveLetter ) : string
GetNetVersion ( ) : ulong
StartWithoutShellExecute ( string strApp, string strArgs ) : void
WinUtil ( ) : System

Описание методов

CompactPath() публичный статический Метод

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.
Результат string

FlushStorageBuffers() публичный статический Метод

public static FlushStorageBuffers ( char chDriveLetter, bool bOnlyIfRemovable ) : bool
chDriveLetter char
bOnlyIfRemovable bool
Результат bool

FlushStorageBuffers() публичный статический Метод

public static FlushStorageBuffers ( string strFileOnStorage, bool bOnlyIfRemovable ) : bool
strFileOnStorage string
bOnlyIfRemovable bool
Результат bool

GetCommandLineFromUrl() публичный статический Метод

public static GetCommandLineFromUrl ( string strUrl ) : string
strUrl string
Результат string

GetExecutable() публичный статический Метод

public static GetExecutable ( ) : string
Результат string

GetMaxNetFrameworkVersion() публичный статический Метод

public static GetMaxNetFrameworkVersion ( ) : ulong
Результат ulong

GetOSStr() публичный статический Метод

public static GetOSStr ( ) : string
Результат string

HashFile() публичный статический Метод

public static HashFile ( IOConnectionInfo iocFile ) : byte[]
iocFile IOConnectionInfo
Результат byte[]

IsCommandLineUrl() публичный статический Метод

public static IsCommandLineUrl ( string strUrl ) : bool
strUrl string
Результат bool

IsInternetExplorer7Window() публичный статический Метод

public static IsInternetExplorer7Window ( string strWindowTitle ) : bool
strWindowTitle string
Результат bool

OpenEntryUrl() публичный статический Метод

public static OpenEntryUrl ( PwEntry pe ) : void
pe PwEntry
Результат void

OpenUrl() публичный статический Метод

public static OpenUrl ( string strUrlToOpen, PwEntry peDataSource ) : void
strUrlToOpen string
peDataSource PwEntry
Результат void

OpenUrl() публичный статический Метод

public static OpenUrl ( string strUrlToOpen, PwEntry peDataSource, bool bAllowOverride ) : void
strUrlToOpen string
peDataSource PwEntry
bAllowOverride bool
Результат void

OpenUrlWithApp() публичный статический Метод

public static OpenUrlWithApp ( string strUrlToOpen, PwEntry peDataSource, string strAppPath ) : void
strUrlToOpen string
peDataSource PwEntry
strAppPath string
Результат void

RemoveZoneIdentifier() публичный статический Метод

public static RemoveZoneIdentifier ( string strFilePath ) : void
strFilePath string
Результат void

Restart() публичный статический Метод

public static Restart ( ) : void
Результат void

RunConsoleApp() публичный статический Метод

public static RunConsoleApp ( string strAppPath, string strParams ) : string
strAppPath string
strParams string
Результат string

RunElevated() публичный статический Метод

public static RunElevated ( string strExe, string strArgs, bool bShowMessageIfFailed ) : bool
strExe string
strArgs string
bShowMessageIfFailed bool
Результат bool