Back to index

python3.2  3.2.2
Public Member Functions
ctypes.test.test_random_things.call_function_TestCase Class Reference

List of all members.

Public Member Functions

def test

Detailed Description

Definition at line 10 of file test_random_things.py.


Member Function Documentation

Definition at line 14 of file test_random_things.py.

00014 
00015         def test(self):
00016             from _ctypes import call_function
00017             windll.kernel32.LoadLibraryA.restype = c_void_p
00018             windll.kernel32.GetProcAddress.argtypes = c_void_p, c_char_p
00019             windll.kernel32.GetProcAddress.restype = c_void_p
00020 
00021             hdll = windll.kernel32.LoadLibraryA(b"kernel32")
00022             funcaddr = windll.kernel32.GetProcAddress(hdll, b"GetModuleHandleA")
00023 
00024             self.assertEqual(call_function(funcaddr, (None,)),
00025                                  windll.kernel32.GetModuleHandleA(None))

Here is the call graph for this function:

Here is the caller graph for this function:


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