Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Runtime.InteropServices;
- [ComImport, Guid("4e530b0a-e611-4c77-a3ac-9031d022281b"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- internal interface IApplicationAssociationRegistration
- {
- [return: MarshalAs(UnmanagedType.LPWStr)]
- string QueryCurrentDefault([MarshalAs(UnmanagedType.LPWStr)] string pszQuery, Global.AssociationType atQueryType, Global.AssociationLevel alQueryLevel);
- [return: MarshalAs(UnmanagedType.Bool)]
- bool QueryAppIsDefault([MarshalAs(UnmanagedType.LPWStr)] string pszQuery, Global.AssociationType atQueryType, Global.AssociationLevel alQueryLevel, [MarshalAs(UnmanagedType.LPWStr)] string pszAppRegistryName);
- [return: MarshalAs(UnmanagedType.Bool)]
- bool QueryAppIsDefaultAll(Global.AssociationLevel alQueryLevel, [MarshalAs(UnmanagedType.LPWStr)] string pszAppRegistryName);
- void SetAppAsDefault([MarshalAs(UnmanagedType.LPWStr)] string pszAppRegistryName, [MarshalAs(UnmanagedType.LPWStr)] string pszSet, Global.AssociationType atSetType);
- void SetAppAsDefaultAll([MarshalAs(UnmanagedType.LPWStr)] string pszAppRegistryName);
- void ClearUserAssociations();
- }
- [ComImport, Guid("591209c7-767b-42b2-9fba-44ee4615f2c7")]
- internal class ApplicationAssociationRegistration
- {
- // Coclass is implemented by the runtime callable wrapper
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement