The Application object manages information about an application that is being shared.
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 |
HRESULT GetHwnd(
[out] HWND *phwnd);
Retrieves the main window handle to the application.
Back to INmSharableApp Interface
HRESULT GetName(
[out] BSTR *pbstrName);
Retrieves the title string for the application's main window.
S_OK | Success. |
E_POINTER | pbstrName is an invalid pointer. |
E_FAIL | The application no longer exists, or internal resources are not available. |
E_OUTOFMEMORY | Memory could not be allocated to service the request. |
Back to INmSharableApp Interface
HRESULT GetState(
[out] NM_SHAPP_STATE *puState);
Retrieves the current state of the application.
S_OK | Success. |
E_POINTER | puState is an invalid pointer. |
E_FAIL | The application no longer exists, or internal resources are not available. |
E_OUTOFMEMORY | Memory could not be allocated to service the request. |
NM_SHAPP_NOT_SHARED | The application is not currently being shared. |
NM_SHAPP_SHARED | The application is currently being shared. |
Back to INmSharableApp Interface
HRESULT SetState(
[in] NM_SHAPP_STATE uState);
Sets the state of the shared application.
S_OK | Success. |
E_FAIL | The application no longer exists, or internal resources are not available. |
E_OUTOFMEMORY | Memory could not be allocated to service the request. |
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.
Back to INmSharableApp Interface
Last Updated: November 1, 1997
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.