packages/Windows API Code Pack 1.1/source/WindowsAPICodePack/Shell/Common/ShellLibrary.cs
/// <summary>
/// Shows the library management dialog which enables users to mange the library folders and default save location.
/// </summary>
/// <param name="libraryName">The name of the library</param>
/// <param name="folderPath">The path to the library.</param>
/// <param name="windowHandle">The parent window,or IntPtr.Zero for no parent</param>
/// <param name="title">A title for the library management dialog, or null to use the library name as the title</param>
/// <param name="instruction">An optional help string to display for the library management dialog</param>
/// <param name="allowAllLocations">If true, do not show warning dialogs about locations that cannot be indexed</param>
/// <remarks>If the library is already open in read-write mode, the dialog will not save the changes.</remarks>
Shows the library management dialog which enables users to mange the library folders and default save location.
Shows the library management dialog which enables users to mange the library folders and default save location .
public static void ShowManageLibraryUI(string libraryName, string folderPath, IntPtr windowHandle, string title, string instruction, bool allowAllLocations)
        {
            using (ShellLibrary shellLibrary = ShellLibrary.Load(libraryName, folderPath, true))
            {
                ShowManageLibraryUI(shellLibrary, windowHandle, title, instruction, allowAllLocations);
            }
        }
public static void ShowManageLibraryUI ( string libraryName , string folderPath , IntPtr windowHandle , string title , string instruction , bool allowAllLocations ) { using ( ShellLibrary shellLibrary = ShellLibrary . Load ( libraryName , folderPath , true ) ) { ShowManageLibraryUI ( shellLibrary , windowHandle , title , instruction , allowAllLocations ) ; } }
Shows the library management dialog which enables users to mange the library folders and default save location.
Shows the library management dialog which enables users to mange the library folders and default save location .
// this method is not safe for MTA consumption and will blow // Access Violations if called from an MTA thread so we wrap this // call up into a Worker thread that performs all operations in a // single threaded apartment
libraryName
string
The name of the library
The name of the library
folderPath
string
The path to the library.
The path to the library .
windowHandle
IntPtr
The parent window,or IntPtr.Zero for no parent
The parent window or IntPtr . Zero for no parent
title
string
A title for the library management dialog, or null to use the library name as the title
A title for the library management dialog or null to use the library name as the title
instruction
string
An optional help string to display for the library management dialog
An optional help string to display for the library management dialog
allowAllLocations
bool
If true, do not show warning dialogs about locations that cannot be indexed
If true do not show warning dialogs about locations that cannot be indexed
remarks
If the library is already open in read-write mode, the dialog will not save the changes.
If the library is already open in read - write mode the dialog will not save the changes .