When I implement the .idl file of a WinRT component, I get a problem of exposing needed interfaces to users who need them.
In the original COM component, even though my component have several interfaces, I still can expose the needed interfaces to the users. For example.
Class A : public IA, public IB, public IC....
I can expose some of them without exposing all of it.
In the .idl file, how can I write it to achieve this purpose??
I know one class can have several interfaces like the form below
runtimeclass A
{
[default] interface IA;
interface IB;
}
if IA and IB all inherit from interface IInspectable, do I see all interfaces when the class is activatable. Or I will see only the default interface and I can use some method to change interface like queryinterface??