Share via


INmChannelAppShare::SetState

Use the SetState method to set the state of the local application being shared.

HRESULT SetState(
NM_SHARE_STATE uState);

Parameters

  • uState
    [in] A value from the NM_SHARE_* state enumeration that identifies the state of the local user.

Return Values

NetMeeting client applications can use the SUCCEEDED and FAILED macros in winerror.h to check return values.

Return values can include RPC layer errors or any of the following values.

  • S_OK
    The application sharing state was set successfully.
  • E_FAIL
    The uState is not NM_SHARE_IN_CONTROL or NM_SHARE_WORKING_ALONE.

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

INmChannelAppShare, Application Sharing Channel Object, Application Sharing Channel Object Details