Share via


INmSharableApp::SetState

Use the SetState method to set the current state of the Sharable Application object.

HRESULT SetState(
  NM_SHAPP_STATE uState);

Parameters

  • uState
    [in] A value from the NM_SHAPP_* state enumeration that indicates the state of a shared application.

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 state of the application was set successfully.
  • E_FAIL
    The application no longer exists, or internal resources are not available.
  • E_OUTOFMEMORY
    Memory could not be allocated to service the request.

Remarks

The INmChannelAppShareNotify::StateChanged notification sink is called when the application's sharing state changes.

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

INmSharableApp, Application Sharing Channel Object, Application Sharing Channel Object Details