Skip to content

Latest commit

 

History

History
74 lines (59 loc) · 2.47 KB

nf-shobjidl_core-idefaultextracticoninit-setshortcuticon.md

File metadata and controls

74 lines (59 loc) · 2.47 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:shobjidl_core.IDefaultExtractIconInit.SetShortcutIcon
IDefaultExtractIconInit::SetShortcutIcon (shobjidl_core.h)
Sets the icon for a shortcut to the object.
IDefaultExtractIconInit interface [Windows Shell]
SetShortcutIcon method
IDefaultExtractIconInit.SetShortcutIcon
IDefaultExtractIconInit::SetShortcutIcon
SetShortcutIcon
SetShortcutIcon method [Windows Shell]
SetShortcutIcon method [Windows Shell]
IDefaultExtractIconInit interface
_shell_IDefaultExtractIconInit_SetShortcutIcon
shell.IDefaultExtractIconInit_SetShortcutIcon
shobjidl_core/IDefaultExtractIconInit::SetShortcutIcon
shell\IDefaultExtractIconInit_SetShortcutIcon.htm
shell
1defab08-3dce-4668-aca3-d11821a4c339
12/05/2018
IDefaultExtractIconInit interface [Windows Shell],SetShortcutIcon method, IDefaultExtractIconInit.SetShortcutIcon, IDefaultExtractIconInit::SetShortcutIcon, SetShortcutIcon, SetShortcutIcon method [Windows Shell], SetShortcutIcon method [Windows Shell],IDefaultExtractIconInit interface, _shell_IDefaultExtractIconInit_SetShortcutIcon, shell.IDefaultExtractIconInit_SetShortcutIcon, shobjidl_core/IDefaultExtractIconInit::SetShortcutIcon
shobjidl_core.h
Shobjidl.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Shobjidl.idl
Windows
19H1
IDefaultExtractIconInit::SetShortcutIcon
shobjidl_core/IDefaultExtractIconInit::SetShortcutIcon
c++
APIRef
kbSyntax
COM
shobjidl_core.h
IDefaultExtractIconInit.SetShortcutIcon

IDefaultExtractIconInit::SetShortcutIcon

-description

Sets the icon for a shortcut to the object.

-parameters

-param pszFile [in, optional]

Type: LPCWSTR

A pointer to a buffer that contains the full icon path, including the file name and extension, as a Unicode string. This pointer can be NULL.

-param iIcon

Type: int

Shell icon ID.

-returns

Type: HRESULT

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