def LoadCamDLL(self): self.libHandle = LoadLibrary('%s\\%s\\%s' % (self.cwd_path, self.name, self.dll_name)) # self.libHandle = C.windll.kernel32.LoadLibraryA('%s\\%s\\%s'%(self.cwd_path,self.name,self.dll_name)) self.dll = C.CDLL(None, handle=self.libHandle) # cdecl # self.dll = C.WinDLL(None, handle=self.libHandle) #stdcall # self.dll = C.CDLL('%s\\%s\\%s'%(self.cwd_path,self.name,self.dll_name)) self.InitFunctions()
def test_1703286_A(self): from _ctypes import LoadLibrary, FreeLibrary # On winXP 64-bit, advapi32 loads at an address that does # NOT fit into a 32-bit integer. FreeLibrary must be able # to accept this address. # These are tests for http://www.python.org/sf/1703286 handle = LoadLibrary("advapi32") FreeLibrary(handle)
def test_1703286_A(self): from _ctypes import LoadLibrary, FreeLibrary handle = LoadLibrary('advapi32') FreeLibrary(handle)