INewShortcutHook::SetFolder method

Sets the folder name for the shortcut object.

Syntax


HRESULT SetFolder(
  [in] PCTSTR pszFolder
);

Parameters

pszFolder [in]

Type: PCTSTR

A pointer to a string that contains the folder name.

Return value

Type: HRESULT

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

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Shlobj.h

DLL

Shell32.dll (version 4.0 or later)

 

 

Show: