#NEWLINE# @ unittest . skipUnless ( ( sys . platform == 'win32' ) , 'Windows-specific test' ) #NEWLINE# def test_struct_return_2H_stdcall( self ) : #NEWLINE# #INDENT# class S2H ( Structure ) : #NEWLINE# #INDENT# _fields_ = [ ( 'x' , c_short ) , ( 'y' , c_short ) ] #NEWLINE# #UNINDENT# windll . s_ret_2h_func . restype = S2H #NEWLINE# windll . s_ret_2h_func . argtypes = [ S2H ] #NEWLINE# s2h = windll . s_ret_2h_func ( S2H ( 99 , 88 ) ) #NEWLINE# self . assertEqual ( ( s2h . x , s2h . y ) , ( ( 99 * 2 ) , ( 88 * 3 ) ) )