chrome/updater/test/service/win/uac.py
def IsElevationSilent():
  """Checks whether user can elevate silently (without UAC prompt).

  Returns:
    True if silent elevation is possible, False otherwise.
  """
  prompt_behavior = _QueryPolicyValue(_REG_VALUE_PROMPT_CONSENT)

  if prompt_behavior == 0:
    logging.info('Silent UAC elevation is enabled.')
    return True
  else:
    logging.info('UAC prompt must be explicitly clicked.')
    return False
Checks whether user can elevate silently (without UAC prompt).

  Returns:
    True if silent elevation is possible, False otherwise.
  
Checks whether user can elevate silently (without UAC prompt).
Checks whether user can elevate silently ( without UAC prompt ) .
def IsElevationSilent():
  prompt_behavior = _QueryPolicyValue(_REG_VALUE_PROMPT_CONSENT)
  if prompt_behavior == 0:
    logging.info('Silent UAC elevation is enabled.')
    return True
  else:
    logging.info('UAC prompt must be explicitly clicked.')
    return False
def IsElevationSilent ( ) : prompt_behavior = _QueryPolicyValue ( _REG_VALUE_PROMPT_CONSENT ) if prompt_behavior == 0 : logging . info ( 'Silent UAC elevation is enabled.' ) return True else : logging . info ( 'UAC prompt must be explicitly clicked.' ) return False
Checks whether user can elevate silently (without UAC prompt).
Checks whether user can elevate silently ( without UAC prompt ) .
"""Checks whether user can elevate silently (without UAC prompt).

  Returns:
    True if silent elevation is possible, False otherwise.
  """
True if silent elevation is possible, False otherwise.
True if silent elevation is possible False otherwise .