def WaitForServiceStatus(serviceName, status, waitSecs, machine=None):
    for i in range(waitSecs*4):
        now_status = QueryServiceStatus(serviceName, machine)[1]
        if now_status == status:
            break
        win32api.Sleep(250)
    else:
        raise pywintypes.error, (winerror.ERROR_SERVICE_REQUEST_TIMEOUT, "QueryServiceStatus", win32api.FormatMessage(winerror.ERROR_SERVICE_REQUEST_TIMEOUT)[:-2])
Return the number of decimal digits required to represent
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/site-packages/win32/lib/win32serviceutil.py/WaitForServiceStatus--crossover with--dataset/ETHPy150Open fredrik-johansson/mpmath/mpmath/libmp/libmpf.py/repr_dps