#NEWLINE# def duplicate( self , process = None , inheritable = True ) : #NEWLINE# #INDENT# target_process = processes . process ( process ) . hProcess #NEWLINE# this_process = wrapped ( win32api . GetCurrentProcess ) #NEWLINE# return self . __class__ ( wrapped ( win32api . DuplicateHandle , this_process , self . _handle , target_process , 0 , target_process , win32con . DUPLICATE_SAME_ACCESS ) )