BExplorer.Shell.DropExtensions.FillFormatETC C# (CSharp) Method

FillFormatETC() private static method

Fills a FORMATETC structure.
private static FillFormatETC ( string format, TYMED tymed, System.Runtime.InteropServices.ComTypes.FORMATETC &formatETC ) : void
format string The format name.
tymed TYMED The accepted TYMED.
formatETC System.Runtime.InteropServices.ComTypes.FORMATETC The structure to fill.
return void
        private static void FillFormatETC(string format, TYMED tymed, out FORMATETC formatETC)
        {
            formatETC.cfFormat = (short)RegisterClipboardFormat(format);
            formatETC.dwAspect = DVASPECT.DVASPECT_CONTENT;
            formatETC.lindex = -1;
            formatETC.ptd = IntPtr.Zero;
            formatETC.tymed = tymed;
        }