Updated on 2024-07-30 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.

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.