April 19, 2024

Dynamic Windows Function [dw_feature_set]

Syntax

int dw_feature_set(DWFEATURE feature, int state)

Parameters

DWFEATURE feature: The requested feature for example DW_FEATURE_DARK_MODE
int state: DW_FEATURE_DISABLED, DW_FEATURE_ENABLED or any value greater than 1.

Returns

int DW_FEATURE_UNSUPPORTED if the library or OS does not support the feature. DW_ERROR_NONE if the feature is supported and successfully configured. DW_ERROR_GENERAL if the feature is supported but could not be configured.

Description

Sets the state of the requested library feature.

Remarks

These settings are typically used during dw_init() so issue before setting up the library with dw_init().

This API was introduced in version 3.1.