Updated on 2024-12-27 GMT+08:00

Notifications for Changes on the Status of Sharing Data

Notification Description

A notification is sent when the status of sharing data is changed.

Method Definition

1
virtual void OnShareState(HwmShareStateInfo *shareStateInfo) {};

Precautions

None

Parameter Description

Table 1 HwmShareStateInfo parameters

Parameter

Type

Description

state

HwmState

Sharing status.

name

char[]

Sharer name. This parameter is valid only when state is set to HWM_STATE_ON.

number

char[]

Number of the sharer. This parameter is valid only when state is set to HWM_STATE_ON.

shareType

HwmShareType

Sharing type.

monitor

HwmMonitor

Type of the shared monitor (primary or secondary monitor).

appHandle

HWND

Program handle.

stopShareReason

HwmStopShareReason

Reason for stopping sharing.

Table 2 Enumerated values of HwmState

Enumerated Value

Description

HWM_STATE_OFF

Sharing disabled.

HWM_STATE_ON

Sharing enabled.

Table 3 Enumerated values of HwmShareType

Enumerated Value

Description

HWM_SHARE_TYPE_MONITOR

Desktop sharing.

HWM_SHARE_TYPE_APP

Program sharing.

HWM_SHARE_TYPE_WHITE_BOARD

Whiteboard sharing.

Table 4 Enumerated values of HwmMonitor

Enumerated Value

Description

HWM_MONITOR_MAIN

Primary monitor.

HWM_MONITOR_SECONDARY

Secondary monitor.

Table 5 Enumerated values of HwmStopShareReason

Enumerated Value

Description

HWM_STOP_SHARE_BY_NORMAL

The sharing is stopped normally.

HWM_STOP_SHARE_BY_REJOIN_CONF

The sharing is stopped due to MMR migration.