This topic has not yet been rated - Rate this topic

IShellLibrary::SetDefaultSaveFolder method

Applies to: desktop apps only

Sets the default target folder that the library will use for save operations.

Syntax

HRESULT SetDefaultSaveFolder(
  [in]  DEFAULTSAVEFOLDERTYPE dsft,
  [in]  IShellItem *psi
);

Parameters

dsft [in]

Type: DEFAULTSAVEFOLDERTYPE

The DEFAULTSAVEFOLDERTYPE value that specifies the default save location to set.

psi [in]

Type: IShellItem*

An IShellItem object that represents the folder that to use as the default save location. The folder that this object represents must be a folder that is already in the library.

Return value

Type: HRESULT

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

Remarks

The default save location must be valid, have read/write access, and with either the SFGAO_STREAM or SFGAO_FILESYSTEM attribute set.

If psi is not in the library, this method returns an error.

Requirements

Minimum supported client

Windows 7

Minimum supported server

Windows Server 2008 R2

Header

Shobjidl.h

IDL

Shobjidl.idl

See also

IShellLibrary
Windows Libraries
Library Description Schema

 

 

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