C# Class KeePass.Util.ClipboardUtil

Show file Open project: amiryal/keepass2

Public Methods

Method Description
Clear ( ) : void

Safely clear the clipboard. The clipboard clearing method of the .NET framework sets the clipboard to an empty DataObject when invoking the clearing method -- this might cause incompatibilities with other applications. Therefore, the Clear method of ClipboardUtil first tries to clear the clipboard using native Windows functions (which *really* clear the clipboard).

ClearIfOwner ( ) : void
ComputeHash ( ) : byte[]
Copy ( byte pbToCopy, string strFormat, bool bEncode, bool bIsEntryInfo, IntPtr hOwner ) : bool
Copy ( string strToCopy, bool bSprCompile, bool bIsEntryInfo, PwEntry peEntryInfo, PwDatabase pwReferenceSource, IntPtr hOwner ) : bool
CopyAndMinimize ( ProtectedString psToCopy, bool bIsEntryInfo, Form formContext, PwEntry peEntryInfo, PwDatabase pwReferenceSource ) : bool
CopyAndMinimize ( string strToCopy, bool bIsEntryInfo, Form formContext, PwEntry peEntryInfo, PwDatabase pwReferenceSource ) : bool
GetEncodedData ( string strFormat, IntPtr hOwner ) : byte[]

Private Methods

Method Description
AttachIgnoreFormat ( DataObject doData ) : void
AttachIgnoreFormatW ( ) : bool
CloseW ( ) : void
Copy ( ProtectedString psToCopy, bool bIsEntryInfo, PwEntry peEntryInfo, PwDatabase pwReferenceSource ) : bool
Copy ( byte pbToCopy, string strFormat, bool bIsEntryInfo ) : bool
Copy ( string strToCopy, bool bIsEntryInfo, PwEntry peEntryInfo, PwDatabase pwReferenceSource ) : bool
CreateProtectedDataObject ( string strText ) : DataObject
CreateProtectedDataObject ( string strFormat, byte pbData ) : DataObject
GetDataW ( uint uFormat ) : byte[]
GetStringW ( string strFormat, bool bForceUni ) : string
HashClipboard ( ) : byte[]
OpenW ( IntPtr hOwner, bool bEmpty ) : bool
RaiseCopyEvent ( bool bIsEntryInfo, string strDesc ) : void
SetDataW ( uint uFormat, byte pbData ) : bool
SetDataW ( uint uFormat, string strData, bool bForceUni ) : bool

Method Details

Clear() public static method

Safely clear the clipboard. The clipboard clearing method of the .NET framework sets the clipboard to an empty DataObject when invoking the clearing method -- this might cause incompatibilities with other applications. Therefore, the Clear method of ClipboardUtil first tries to clear the clipboard using native Windows functions (which *really* clear the clipboard).
public static Clear ( ) : void
return void

ClearIfOwner() public static method

public static ClearIfOwner ( ) : void
return void

ComputeHash() public static method

public static ComputeHash ( ) : byte[]
return byte[]

Copy() public static method

public static Copy ( byte pbToCopy, string strFormat, bool bEncode, bool bIsEntryInfo, IntPtr hOwner ) : bool
pbToCopy byte
strFormat string
bEncode bool
bIsEntryInfo bool
hOwner System.IntPtr
return bool

Copy() public static method

public static Copy ( string strToCopy, bool bSprCompile, bool bIsEntryInfo, PwEntry peEntryInfo, PwDatabase pwReferenceSource, IntPtr hOwner ) : bool
strToCopy string
bSprCompile bool
bIsEntryInfo bool
peEntryInfo PwEntry
pwReferenceSource PwDatabase
hOwner System.IntPtr
return bool

CopyAndMinimize() public static method

public static CopyAndMinimize ( ProtectedString psToCopy, bool bIsEntryInfo, Form formContext, PwEntry peEntryInfo, PwDatabase pwReferenceSource ) : bool
psToCopy ProtectedString
bIsEntryInfo bool
formContext System.Windows.Forms.Form
peEntryInfo PwEntry
pwReferenceSource PwDatabase
return bool

CopyAndMinimize() public static method

public static CopyAndMinimize ( string strToCopy, bool bIsEntryInfo, Form formContext, PwEntry peEntryInfo, PwDatabase pwReferenceSource ) : bool
strToCopy string
bIsEntryInfo bool
formContext System.Windows.Forms.Form
peEntryInfo PwEntry
pwReferenceSource PwDatabase
return bool

GetEncodedData() public static method

public static GetEncodedData ( string strFormat, IntPtr hOwner ) : byte[]
strFormat string
hOwner System.IntPtr
return byte[]