Application Object


The Application object manages information about an application that is being shared.

INmSharableApp Interface

Up ArrowBack to COM Object Reference

INmSharableApp Interface

This interface defines the Application object. This interface enables you to obtain the sharable application's window and window title and also to manage its sharing state.

GetHwnd
GetName
GetState
SetState

Up ArrowBack to Application Object

INmSharableApp::GetHwnd

 HRESULT GetHwnd(
[out] HWND *phwnd);

Retrieves the main window handle to the application.

phwnd
Pointer to a window handle.

Up ArrowBack to INmSharableApp Interface

Up ArrowBack to Application Object

Up ArrowBack to COM Object Listing

INmSharableApp::GetName

HRESULT GetName(
[out] BSTR *pbstrName);

Retrieves the title string for the application's main window.

pbstrName
Pointer to a BSTR that contains the shared application's name.

Up ArrowBack to INmSharableApp Interface

Up ArrowBack to Application Object

Up ArrowBack to COM Object Listing

INmSharableApp::GetState

HRESULT GetState(
[out] NM_SHAPP_STATE *puState);

Retrieves the current state of the application.

puState
Pointer to an NM_SHAPP_STATE that identifies the shared application state. Possible constants include:
NM_SHAPP_NOT_SHARED The application is not currently being shared.
NM_SHAPP_SHARED The application is currently being shared.

Up ArrowBack to INmSharableApp Interface

Up ArrowBack to Application Object

Up ArrowBack to COM Object Listing

INmSharableApp::SetState

HRESULT SetState(
[in] NM_SHAPP_STATE uState);

Sets the state of the shared application.

uState
NM_SHAPP_STATE that identifies the shared application state. Possible constants include:
NM_SHAPP_NOT_SHARED The application is not being shared.
NM_SHAPP_SHARED The application is being shared.

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

Up ArrowBack to INmSharableApp Interface

Up ArrowBack to Application Object

Up ArrowBack to COM Object Listing

Last Updated: November 1, 1997
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.