shobjidl.idl: Added IApplicationAssociationRegistration declaration.

This commit is contained in:
Jacek Caban 2011-06-13 14:39:54 +02:00 committed by Alexandre Julliard
parent 69ab564f5d
commit d8cac6ff57
1 changed files with 49 additions and 0 deletions

View File

@ -3071,6 +3071,55 @@ cpp_quote(" CoTaskMemFree(pKFD->pszIcon);")
cpp_quote(" CoTaskMemFree(pKFD->pszSecurity);")
cpp_quote("}")
typedef [v1_enum] enum ASSOCIATIONLEVEL {
AL_MACHINE,
AL_EFFECTIVE,
AL_USER
} ASSOCIATIONLEVEL;
typedef [v1_enum] enum ASSOCIATIONTYPE {
AT_FILEEXTENSION,
AT_URLPROTOCOL,
AT_STARTMENUCLIENT,
AT_MIMETYPE
} ASSOCIATIONTYPE;
[
object,
uuid(4e530b0a-e611-4c77-a3ac-9031d022281b),
pointer_default(unique)
]
interface IApplicationAssociationRegistration : IUnknown
{
HRESULT QueryCurrentDefault(
[in, string] LPCWSTR pszQuery,
[in] ASSOCIATIONTYPE atQueryType,
[in] ASSOCIATIONLEVEL alQueryLevel,
[out, string] LPWSTR *ppszAssociation);
HRESULT QueryAppIsDefault(
[in, string] LPCWSTR pszQuery,
[in] ASSOCIATIONTYPE atQueryType,
[in] ASSOCIATIONLEVEL alQueryLevel,
[in, string] LPCWSTR pszAppRegistryName,
[out] BOOL *pfDefault);
HRESULT QueryAppIsDefaultAll(
[in] ASSOCIATIONLEVEL alQueryLevel,
[in, string] LPCWSTR pszAppRegistryName,
[out] BOOL* pfDefault);
HRESULT SetAppAsDefault(
[in, string] LPCWSTR pszAppRegistryName,
[in, string] LPCWSTR pszSet,
[in] ASSOCIATIONTYPE atSetType);
HRESULT SetAppAsDefaultAll(
[in, string] LPCWSTR pszAppRegistryName);
HRESULT ClearUserAssociations();
}
/*****************************************************************************
* ShellObjects typelibrary
*/