C# Class BExplorer.Shell.DataObject

Inheritance: System.Runtime.InteropServices.ComTypes.IDataObject, IDisposable
Show file Open project: Gainedge/BetterExplorer

Public Methods

Method Description
DAdvise ( System.Runtime.InteropServices.ComTypes.FORMATETC &pFormatetc, ADVF advf, IAdviseSink adviseSink, int &connection ) : int
DUnadvise ( int connection ) : void
DataObject ( ) : System

Creates an empty instance of DataObject.

Dispose ( ) : void

Releases resources.

EnumDAdvise ( IEnumSTATDATA &enumAdvise ) : int
EnumFormatEtc ( DATADIR direction ) : IEnumFORMATETC

Gets an enumerator for the formats contained in this DataObject.

GetCanonicalFormatEtc ( System.Runtime.InteropServices.ComTypes.FORMATETC &formatIn, System.Runtime.InteropServices.ComTypes.FORMATETC &formatOut ) : int
GetData ( System.Runtime.InteropServices.ComTypes.FORMATETC &format, System.Runtime.InteropServices.ComTypes.STGMEDIUM &medium ) : void

Gets the specified data.

GetDataHere ( System.Runtime.InteropServices.ComTypes.FORMATETC &format, System.Runtime.InteropServices.ComTypes.STGMEDIUM &medium ) : void
QueryGetData ( System.Runtime.InteropServices.ComTypes.FORMATETC &format ) : int

Determines if data of the requested format is present.

SetData ( System.Runtime.InteropServices.ComTypes.FORMATETC &formatIn, System.Runtime.InteropServices.ComTypes.STGMEDIUM &medium, bool release ) : void

Sets data in the specified format into storage.

Private Methods

Method Description
ClearStorage ( ) : void

Clears the internal storage array.

ClearStorage is called by the IDisposable.Dispose method implementation to make sure all unmanaged references are released properly.

CopyMedium ( System.Runtime.InteropServices.ComTypes.STGMEDIUM &medium ) : System.Runtime.InteropServices.ComTypes.STGMEDIUM

Creates a copy of the STGMEDIUM structure.

CopyStgMedium ( System.Runtime.InteropServices.ComTypes.STGMEDIUM &pcstgmedSrc, System.Runtime.InteropServices.ComTypes.STGMEDIUM &pstgmedDest ) : int
Dispose ( bool disposing ) : void

Releases resources.

ReleaseStgMedium ( System.Runtime.InteropServices.ComTypes.STGMEDIUM &pmedium ) : void

Method Details

DAdvise() public method

public DAdvise ( System.Runtime.InteropServices.ComTypes.FORMATETC &pFormatetc, ADVF advf, IAdviseSink adviseSink, int &connection ) : int
pFormatetc System.Runtime.InteropServices.ComTypes.FORMATETC
advf ADVF
adviseSink IAdviseSink
connection int
return int

DUnadvise() public method

public DUnadvise ( int connection ) : void
connection int
return void

DataObject() public method

Creates an empty instance of DataObject.
public DataObject ( ) : System
return System

Dispose() public method

Releases resources.
public Dispose ( ) : void
return void

EnumDAdvise() public method

public EnumDAdvise ( IEnumSTATDATA &enumAdvise ) : int
enumAdvise IEnumSTATDATA
return int

EnumFormatEtc() public method

Gets an enumerator for the formats contained in this DataObject.
public EnumFormatEtc ( DATADIR direction ) : IEnumFORMATETC
direction DATADIR The direction of the data.
return IEnumFORMATETC

GetCanonicalFormatEtc() public method

public GetCanonicalFormatEtc ( System.Runtime.InteropServices.ComTypes.FORMATETC &formatIn, System.Runtime.InteropServices.ComTypes.FORMATETC &formatOut ) : int
formatIn System.Runtime.InteropServices.ComTypes.FORMATETC
formatOut System.Runtime.InteropServices.ComTypes.FORMATETC
return int

GetData() public method

Gets the specified data.
public GetData ( System.Runtime.InteropServices.ComTypes.FORMATETC &format, System.Runtime.InteropServices.ComTypes.STGMEDIUM &medium ) : void
format System.Runtime.InteropServices.ComTypes.FORMATETC The requested data format.
medium System.Runtime.InteropServices.ComTypes.STGMEDIUM When the function returns, contains the requested data.
return void

GetDataHere() public method

public GetDataHere ( System.Runtime.InteropServices.ComTypes.FORMATETC &format, System.Runtime.InteropServices.ComTypes.STGMEDIUM &medium ) : void
format System.Runtime.InteropServices.ComTypes.FORMATETC
medium System.Runtime.InteropServices.ComTypes.STGMEDIUM
return void

QueryGetData() public method

Determines if data of the requested format is present.
public QueryGetData ( System.Runtime.InteropServices.ComTypes.FORMATETC &format ) : int
format System.Runtime.InteropServices.ComTypes.FORMATETC The request data format.
return int

SetData() public method

Sets data in the specified format into storage.
public SetData ( System.Runtime.InteropServices.ComTypes.FORMATETC &formatIn, System.Runtime.InteropServices.ComTypes.STGMEDIUM &medium, bool release ) : void
formatIn System.Runtime.InteropServices.ComTypes.FORMATETC The format of the data.
medium System.Runtime.InteropServices.ComTypes.STGMEDIUM The data.
release bool If true, ownership of the medium's memory will be transferred /// to this object. If false, a copy of the medium will be created and maintained, and /// the caller is responsible for the memory of the medium it provided.
return void