This topic has not yet been rated - Rate this topic

SHShowManageLibraryUI function

Applies to: desktop apps only

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

Syntax

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

Parameters

psiLibrary [in]

Type: IShellItem*

A pointer to an IShellItem object that represents the library that is to be managed.

hwndOwner [in, optional]

Type: HWND

The handle for the window that owns the library management dialog box. The value of this parameter can be NULL.

pszTitle [in, optional]

Type: LPCWSTR

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, optional]

Type: LPCWSTR

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]

Type: LIBRARYMANAGEDIALOGOPTIONS

A value from the LIBRARYMANAGEDIALOGOPTIONS enumeration that specifies the behavior of the management dialog box.

Return value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 7

Minimum supported server

Windows Server 2008 R2

Header

Shobjidl.h

DLL

Shell32.dll

See also

IShellLibrary
LIBRARYMANAGEDIALOGOPTIONS

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
c# syntax
[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);
vb.net syntax
<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