Function leap_sys::LeapSetPolicyFlagsEx
source · [−]pub unsafe extern "C" fn LeapSetPolicyFlagsEx(
hConnection: LEAP_CONNECTION,
hDevice: LEAP_DEVICE,
set: u64,
clear: u64
) -> eLeapRS
Expand description
\ingroup Functions Sets or clears one or more policy flags for a particular device.
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 hDevice A device handle returned by LeapOpenDevice(). @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 if not clearing any flags. @returns The operation result code, a member of the eLeapRS enumeration. @since 5.4.0