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

def ErrCheckHandle ( result , func , args ) : if ( not result ) : raise WinError ( ) return AutoHANDLE ( result )
errcheck function for windows functions that return a handle .