SHResolveFolderPathInLibrary function (shobjidl.h)

Attempts to resolve the target location of a library folder that has been moved or renamed.

Syntax

HRESULT SHResolveFolderPathInLibrary(
  IShellLibrary *plib,
  PCWSTR        pszFolderPath,
  DWORD         dwTimeout,
  PWSTR         *ppszResolvedPath
);

Parameters

plib

Type: IShellLibrary*

The IShellLibrary object for which to resolve the target location.

pszFolderPath

Type: PCWSTR

The path of the library folder to locate.

dwTimeout

Type: DWORD

The maximum time, in milliseconds, that the method attempts to locate the folder before returning. If the folder could not be located before the specified time elapses, an error is returned.

ppszResolvedPath

Type: PWSTR*

A pointer to a string that, when this function successfully returns, contains the current path of the library folder specified in plib.

Return value

Type: HRESULT

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

Remarks

This is an inline helper function that wraps the IShellLibrary::ResolveFolder method.

Requirements

   
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header shobjidl.h

See also

IShellLibrary

IShellLibrary::ResolveFolder