pub unsafe extern "C" fn LeapSetPolicyFlags(
    hConnection: LEAP_CONNECTION,
    set: u64,
    clear: u64
) -> eLeapRS
Expand description

\ingroup Functions Sets or clears one or more policy flags.

Changing policies is asynchronous. After you call this function, a subsequent call to LeapPollConnection provides a LEAP_POLICY_EVENT containing the current policies, reflecting any changes.

To get the current policies without changes, specify zero for both the set and clear parameters. When ready, LeapPollConnection() provides a LEAP_POLICY_EVENT containing the current settings.

The eLeapPolicyFlag enumeration defines the policy flags.

@param hConnection The connection handle created by LeapCreateConnection(). @param set A bitwise combination of flags to be set. Set to 0 if not setting any flags. @param clear A bitwise combination of flags to be cleared. Set to 0 to if not clearing any flags. @returns The operation result code, a member of the eLeapRS enumeration. @since 3.0.0