[][src]Function leap_sys::LeapSetPause

pub unsafe extern "C" fn LeapSetPause(
    hConnection: LEAP_CONNECTION,
    pause: bool
) -> eLeapRS

\ingroup Functions Pauses the service

Attempts to pause or unpause the service depending on the argument. This is treated as a 'user pause', as though a user had requested a pause through the Leap Control Panel. The connection must have the AllowPauseResume policy set or it will fail with eLeapRS_InvalidArgument.

@param hConnection The connection handle created by LeapCreateConnection(). @param pause Set to 'true' to pause, or 'false' to unpause @returns The operation result code, a member of the eLeapRS enumeration. @since 4.0.0