Skip to content

Commit c7d931b

Browse files
BachDinh1994GrantMeStrength
authored andcommitted
Merged PR 15736: 21390880: Update online documentation for IApplicationAssociationRegistration::SetAppAsDefault
**Parameter changes:** pszAppRegistryName -> progId: The method now takes in a progId instead of the registered name of the application pszSet -> extOrUriScheme: Simply a name change **Behaviorial changes:** The application's publisher must match the current default's. The progId's publisher must also match the application's.
1 parent 8231422 commit c7d931b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sdk-api-src/content/shobjidl_core/nf-shobjidl_core-iapplicationassociationregistration-setappasdefault.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
UID: NF:shobjidl_core.IApplicationAssociationRegistration.SetAppAsDefault
33
title: IApplicationAssociationRegistration::SetAppAsDefault (shobjidl_core.h)
44
author: windows-sdk-content
5-
description: Sets an application as the default for a given type. For more information, see Default Programs. Not intended for use in Windows 8.
5+
description: Sets an application as the default for a given extension or protocol, provided that the application's publisher matches the current default's. For more information, see Default Programs. Not intended for use in Windows 8.
66
old-location: shell\IApplicationAssociationRegistration_SetAppAsDefault.htm
77
tech.root: shell
88
ms.assetid: 30870adb-793f-404f-809c-1ec34a1f6b82
99
ms.author: windowssdkdev
10-
ms.date: 12/05/2018
10+
ms.date: 09/17/2019
1111
ms.keywords: IApplicationAssociationRegistration interface [Windows Shell],SetAppAsDefault method, IApplicationAssociationRegistration.SetAppAsDefault, IApplicationAssociationRegistration::SetAppAsDefault, SetAppAsDefault, SetAppAsDefault method [Windows Shell], SetAppAsDefault method [Windows Shell],IApplicationAssociationRegistration interface, _shell_IApplicationAssociationRegistration_SetAppAsDefault, shell.IApplicationAssociationRegistration_SetAppAsDefault, shobjidl_core/IApplicationAssociationRegistration::SetAppAsDefault
1212
ms.topic: method
1313
f1_keywords:
@@ -52,22 +52,22 @@ ms.custom: 19H1
5252
## -description
5353

5454

55-
Sets an application as the default for a given type. For more information, see <a href="https://docs.microsoft.com/windows/desktop/shell/default-programs">Default Programs</a>. Not intended for use in Windows 8.
55+
Sets an application as the default for a given extension or protocol, provided that the application's publisher matches the current default's. For more information, see <a href="https://docs.microsoft.com/windows/desktop/shell/default-programs">Default Programs</a>. Not intended for use in Windows 8.
5656

5757

5858
## -parameters
5959

6060

6161

6262

63-
### -param pszAppRegistryName [in]
63+
### -param progId [in]
6464

6565
Type: <b>LPCWSTR</b>
6666

67-
A pointer to a <b>null</b>-terminated Unicode string that specifies the registered name of the application.
67+
A pointer to a <b>null</b>-terminated Unicode string that specifies the application's ProgID.
6868

6969

70-
### -param pszSet [in]
70+
### -param extOrUriScheme [in]
7171

7272
Type: <b>LPCWSTR</b>
7373

@@ -78,7 +78,7 @@ A pointer to a <b>null</b>-terminated Unicode string that contains the file name
7878

7979
Type: <b><a href="https://docs.microsoft.com/windows/desktop/api/shobjidl_core/ne-shobjidl_core-associationtype">ASSOCIATIONTYPE</a></b>
8080

81-
One of the <a href="https://docs.microsoft.com/windows/desktop/api/shobjidl_core/ne-shobjidl_core-associationtype">ASSOCIATIONTYPE</a> enumeration values that specifies the type of the application named in <i>pszSet</i>, such as file name extension or MIME type.
81+
One of the <a href="https://docs.microsoft.com/windows/desktop/api/shobjidl_core/ne-shobjidl_core-associationtype">ASSOCIATIONTYPE</a> enumeration values that specifies the type of the application named in <i>extOrUriScheme</i>, such as file name extension or MIME type.
8282

8383

8484
## -returns
@@ -87,7 +87,7 @@ One of the <a href="https://docs.microsoft.com/windows/desktop/api/shobjidl_core
8787

8888
Type: <b>HRESULT</b>
8989

90-
If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
90+
If this method succeeds, it returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it returns an <b xmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code. In particular, if the application's publisher doesn't match the default's, this method returns <b xmlns:loc="http://microsoft.com/wdcml/l10n">E_ACCESSDENIED</b>.
9191

9292

9393

0 commit comments

Comments
 (0)