#NEWLINE# @ Kernel32Proxy ( 'Thread32Next' , no_error_check ) #NEWLINE# def Thread32Next( hSnapshot , lpte ) : #NEWLINE# #INDENT# 'Set byref(lpte) if needed' #NEWLINE# if ( type ( lpte ) == THREADENTRY32 ) : #NEWLINE# #INDENT# lpte = ctypes . byref ( hSnapshot ) #NEWLINE# #UNINDENT# return Thread32Next . ctypes_function ( hSnapshot , lpte )