def ErrCheckBool(result, func, args):
 if (not result):
  raise WinError()
 return args

def ErrCheckBool ( result , func , args ) : if ( not result ) : raise WinError ( ) return args
errcheck function for windows functions that return a bool true on success .