You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Sets an application as the default for a given type. For more information, see <ahref="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 <ahref="https://docs.microsoft.com/windows/desktop/shell/default-programs">Default Programs</a>. Not intended for use in Windows 8.
56
56
57
57
58
58
## -parameters
59
59
60
60
61
61
62
62
63
-
### -param pszAppRegistryName[in]
63
+
### -param progId[in]
64
64
65
65
Type: <b>LPCWSTR</b>
66
66
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.
68
68
69
69
70
-
### -param pszSet[in]
70
+
### -param extOrUriScheme[in]
71
71
72
72
Type: <b>LPCWSTR</b>
73
73
@@ -78,7 +78,7 @@ A pointer to a <b>null</b>-terminated Unicode string that contains the file name
One of the <ahref="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 <ahref="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.
82
82
83
83
84
84
## -returns
@@ -87,7 +87,7 @@ One of the <a href="https://docs.microsoft.com/windows/desktop/api/shobjidl_core
87
87
88
88
Type: <b>HRESULT</b>
89
89
90
-
If this method succeeds, it returns <bxmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it returns an <bxmlns:loc="http://microsoft.com/wdcml/l10n">HRESULT</b> error code.
90
+
If this method succeeds, it returns <bxmlns:loc="http://microsoft.com/wdcml/l10n">S_OK</b>. Otherwise, it returns an <bxmlns: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 <bxmlns:loc="http://microsoft.com/wdcml/l10n">E_ACCESSDENIED</b>.
0 commit comments