Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IShellLibrary::SetDefaultSaveFolder method

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 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

See also

IShellLibrary
Windows Libraries
Library Description Schema

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.