INewShortcutHook::GetName method

Gets the file name of the shortcut object, without the extension.

Syntax


HRESULT GetName(
  [out] PTSTR pszName,
        int   cchName
);

Parameters

pszName [out]

Type: PTSTR

A pointer to a string that receives the name.

cchName

Type: int

The size of the buffer at pszName, in characters.

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: