Επεξεργασία

Κοινή χρήση μέσω


IShellLibrary::GetDefaultSaveFolder method (shobjidl_core.h)

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

[in] dsft

Type: DEFAULTSAVEFOLDERTYPE

The DEFAULTSAVEFOLDERTYPE value that specifies the save folder to get.

[in] riid

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.

[out] ppv

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

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)

See also

IShellItem

IShellItem2

IShellLibrary

Library Description Schema

Windows Libraries