IApplicationAssociationRegistration::ClearUserAssociations メソッド (shobjidl_core.h)

現在のユーザーのすべてのユーザーごとの関連付けを削除します。 これにより、マシンの既定値 (存在する場合) に戻ります。 Windows 8 での使用を目的としたものではありません。

構文

HRESULT ClearUserAssociations();

戻り値

種類: HRESULT

このメソッドは、成功すると S_OK を返します。 そうでない場合は、HRESULT エラー コードを返します。

要件

   
サポートされている最小のクライアント Windows Vista [デスクトップ アプリのみ]
サポートされている最小のサーバー Windows Server 2008 [デスクトップ アプリのみ]
対象プラットフォーム Windows
ヘッダー shobjidl_core.h (Shobjidl.h を含む)

関連項目

既定のプログラム

IApplicationAssociationRegistration