Back to index

python3.2  3.2.2
Public Member Functions
ctypes.test.test_win32.WindowsTestCase Class Reference

List of all members.

Public Member Functions

def test_callconv_1
def test_callconv_2

Detailed Description

Definition at line 12 of file test_win32.py.


Member Function Documentation

Definition at line 13 of file test_win32.py.

00013 
00014         def test_callconv_1(self):
00015             # Testing stdcall function
00016 
00017             IsWindow = windll.user32.IsWindow
00018             # ValueError: Procedure probably called with not enough arguments (4 bytes missing)
00019             self.assertRaises(ValueError, IsWindow)
00020 
00021             # This one should succeed...
00022             self.assertEqual(0, IsWindow(0))
00023 
00024             # ValueError: Procedure probably called with too many arguments (8 bytes in excess)
00025             self.assertRaises(ValueError, IsWindow, 0, 0, 0)

Here is the call graph for this function:

Definition at line 26 of file test_win32.py.

00026 
00027         def test_callconv_2(self):
00028             # Calling stdcall function as cdecl
00029 
00030             IsWindow = cdll.user32.IsWindow
00031 
00032             # ValueError: Procedure called with not enough arguments (4 bytes missing)
00033             # or wrong calling convention
00034             self.assertRaises(ValueError, IsWindow, None)

Here is the call graph for this function:


The documentation for this class was generated from the following file: