Skip to content

Latest commit

 

History

History
69 lines (56 loc) · 3.34 KB

nf-shobjidl_core-iassochandler-isrecommended.md

File metadata and controls

69 lines (56 loc) · 3.34 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.IAssocHandler.IsRecommended
IAssocHandler::IsRecommended (shobjidl_core.h)
Indicates whether the application is registered as a recommended handler for the queried file type.
IAssocHandler interface [Windows Shell]
IsRecommended method
IAssocHandler.IsRecommended
IAssocHandler::IsRecommended
IsRecommended
IsRecommended method [Windows Shell]
IsRecommended method [Windows Shell]
IAssocHandler interface
_shell_IAssocHandler_IsRecommended
shell.IAssocHandler_IsRecommended
shobjidl_core/IAssocHandler::IsRecommended
shell\IAssocHandler_IsRecommended.htm
shell
3c312db3-a656-436c-a012-669553355fa5
12/05/2018
IAssocHandler interface [Windows Shell],IsRecommended method, IAssocHandler.IsRecommended, IAssocHandler::IsRecommended, IsRecommended, IsRecommended method [Windows Shell], IsRecommended method [Windows Shell],IAssocHandler interface, _shell_IAssocHandler_IsRecommended, shell.IAssocHandler_IsRecommended, shobjidl_core/IAssocHandler::IsRecommended
shobjidl_core.h
Shobjidl.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Shobjidl.idl
Windows
19H1
IAssocHandler::IsRecommended
shobjidl_core/IAssocHandler::IsRecommended
c++
APIRef
kbSyntax
COM
shobjidl_core.h
IAssocHandler.IsRecommended

IAssocHandler::IsRecommended

-description

Indicates whether the application is registered as a recommended handler for the queried file type.

-returns

Type: HRESULT

Returns S_OK if the program is recommended; otherwise, S_FALSE.

-remarks

Applications that register themselves as handlers for particular file types can specify whether they are recommended handlers. This has no effect on the actual behavior of the applications when launched. It is simply provided as a hint to the user and a value that the UI can utilize programmatically, if desired. For example, the Shell's Open With dialog separates entries into Recommended Programs and Other Programs.

Note that program recommendations may change over time. One example is provided when the user chooses an application from the Other Programs of the Open With dialog to open a particular file type. That may cause the Shell to "promote" that application to recommended status for that file type. Because the recommended status may change over time, applications should not cache this value, but query it each time it is needed.

If SHAssocEnumHandlers was called with the ASSOC_FILTER_RECOMMENDED flag, then only recommended handlers are returned. If the ASSOC_FILTER_NONE flag was used, then you must call IAssocHandler::IsRecommended on each IAssocHandler object to determine whether it is recommended or not.