INewShortcutHook::GetFolder method

Gets the folder name for the shortcut object.

Syntax


HRESULT GetFolder(
  [out] PTSTR pszFolder,
        int   cchFolder
);

Parameters

pszFolder [out]

Type: PTSTR

The address of a character buffer that receives the folder name.

cchFolder

Type: int

The size of the buffer at pszFolder, in characters.

Return value

Type: HRESULT

Returns S_OK if successful, S_FALSE if no folder has been assigned, or an standard error code otherwise.

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: