SHShowManageLibraryUI Function
SHShowManageLibraryUI Function

Shows the library management dialog box, which enables users to manage the library folders and default save location.

Syntax

HRESULT SHShowManageLibraryUI(      
    IShellItem *psiLibrary,     HWND hwndOwner,     LPCWSTR pszTitle,     LPCWSTR pszInstruction,     LIBRARYMANAGEDIALOGOPTIONS lmdOptions );

Parameters

psiLibrary
[in] A pointer to an IShellItem object that represents the library that is to be managed.
hwndOwner
[in] The handle for the window that owns the library management dialog box. The value of this parameter can be NULL.
pszTitle
[in] A pointer to the title for the library management dialog. To display the generic title string, set the value of this parameter to NULL.
pszInstruction
[in] A pointer to a help string to display below the title string in the library management dialog box. To display the generic help string, set the value of this parameter to NULL.
lmdOptions
[in] A value from the LIBRARYMANAGEDIALOGOPTIONS enumeration that specifies the behavior of the management dialog box.

Return Value

Returns S_OK if successful, or an error value otherwise.

Function Information

Headershobjidl.h
Import libraryshell32.dll
Minimum operating systems Windows 7

See Also

Community Content

vb.net syntax
Added by:dmex
<DllImport("Shell32", CharSet := CharSet.Unicode, CallingConvention := CallingConvention.Winapi, SetLastError := True)> _
Public Shared Function SHShowManageLibraryUI(<[In](), MarshalAs(UnmanagedType.[Interface])> ByVal library As IShellItem, <[In]()> ByVal hwndOwner As IntPtr, <[In]()> ByVal title As String, <[In]()> ByVal instruction As String, <[In]()> ByVal lmdOptions As LIBRARYMANAGEDIALOGOPTIONS) As Integer
End Function
c# syntax
Added by:dmex
[DllImport("Shell32", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Winapi, SetLastError = true)]
internal static extern int SHShowManageLibraryUI(
[In, MarshalAs(UnmanagedType.Interface)] IShellItem library,
[In] IntPtr hwndOwner,
[In] string title,
[In] string instruction,
[In] LIBRARYMANAGEDIALOGOPTIONS lmdOptions);
© 2010 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View