INmChannelAppShare

Use the INmChannelAppShare interface to find running applications on the local computer that are being shared or are capable of being shared and to retrieve information about the sharing state of the local computer.

When to Implement

You do not need to implement this interface because the NetMeeting 3 run time provides the INmChannelAppShare implementation on the Application Sharing Channel object. However, you need to implement the corresponding event-handler methods for INmChannelAppShareNotify.

When to Use

Call the INmChannelAppShare methods from your NetMeeting client application to check the state of an application-sharing channel or to set and retrieve the channel's properties. Before calling any of the following INmChannelAppShare methods, users should confirm that the NMCH_SHARE bit is set for this channel by using INmSysInfo::GetNmchCaps to retrieve the local system channel capabilities.

Methods in Vtable Order

IUnknown methods Description
QueryInterface Returns pointers to supported interfaces.
AddRef Increments reference count.
Release Decrements reference count.
INmChannel methods Description
IsSameAs Checks whether this channel object and another channel object represent the same channel.
IsActive Checks whether this channel is currently engaged in some activity.
SetActive Activates a channel.
GetConference Finds the conference using this channel.
GetInterface Retrieves the interface identifier (IID) that identifies this channel.
GetNmch Retrieves the NMCH type for this channel.
EnumMember Retrieves an enumerator to list all the members using this channel.
GetMemberCount Retrieves the number of members using this channel.
INmChannelAppShare methods Description
GetState Retrieves the state of the application being shared.
SetState Sets the application sharing state of the local user.
EnumSharableApp Retrieves an IEnumNmSharableApp enumeration interface pointer to list applications that can be shared.

Remarks

To retrieve an INmChannelAppShare interface pointer, use INmChannel::QueryInterface with the IID_INmChannelAppShare IID.

Requirements

**  Windows NT/2000:** Requires Windows NT 4.0 SP3 or later.
**  Windows 95/98:** Requires Windows 95 or later. Available as a redistributable for Windows 95.
**  Header:** Imsconf2.idl.

See Also

INmChannelAppShareNotify