Click here to Skip to main content
15,885,847 members
Articles / Programming Languages / C#

SCSI Library in C# - Burn CDs and DVDs, Access Hard Disks, etc.

Rate me:
Please Sign up or sign in to vote.
4.77/5 (48 votes)
19 Jun 2017Ms-PL6 min read 145.3K   8.1K   146  
Ever wonder how programs like Nero work? They make their own SCSI libraries... like this!
using System.Runtime.InteropServices;
using Helper.Forms;

namespace System.Shell
{
	[ComImport, Guid("cde725b0-ccc9-4519-917e-325d72fab4ce"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
	public interface IFolderView
	{
		void GetCurrentViewMode([Out][In] ref FolderViewMode pViewMode);
		void SetCurrentViewMode([In] FolderViewMode ViewMode);
		void GetFolder([In] ref Guid riid, [Out, MarshalAs(UnmanagedType.Interface)] out object ppv);
		void Item([In] int iItemIndex, [Out] out ShellItemIdList ppidl);
		void ItemCount([In] int uFlags, [Out] out int pcItems);
		void Items([In] int uFlags, [In] ref Guid riid, [Out] out IntPtr ppv);
		void GetSelectionMarkedItem([Out] out int piItem);
		void GetFocusedItem([Out] out int piItem);
		void GetItemPosition([In] ShellItemIdList pidl, [Out] out POINT ppt);
		void GetSpacing([Out][In] ref POINT ppt);
		void GetDefaultSpacing([Out] out POINT ppt);
		void GetAutoArrange();
		void SelectItem([In] int iItem, [In] int dwFlags);
		unsafe void SelectAndPositionItems([In] int cidl, [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] ShellItemId*[] apidl, [In] ref POINT apt, [In] int dwFlags);
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions