IShellLibrary::GetDefaultSaveFolder method

Retrieves the default target folder that the library uses for save operations.

Syntax


HRESULT GetDefaultSaveFolder(
  [in]   DEFAULTSAVEFOLDERTYPE dsft,
  [in]   REFIID riid,
  [out]  void **ppv
);

Parameters

dsft [in]

Type: DEFAULTSAVEFOLDERTYPE

The DEFAULTSAVEFOLDERTYPE value that specifies the save folder to get.

riid [in]

Type: REFIID

A reference to the IID of the interface to get in ppv that will represent the save location. This value is typically IID_IShellItem, but it can also be IID_IShellItem2 or the IID of any other interface that is implemented by CShellItem.

ppv [out]

Type: void**

A pointer to the interface requested in riid.

Return value

Type: HRESULT

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

Remarks

For best results, use the IID_PPV_ARGS macro, defined in Objbase.h, for the riid and ppv parameters. This macro provides the correct IID based on the interface pointed to by the value in ppv, which eliminates the possibility of a coding 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

Windows Libraries
Library Description Schema
IShellLibrary
IShellItem
IShellItem2

 

 

Community Additions

ADD
Show:
© 2015 Microsoft