4
##class HMODULE(Structure):
5
## _fields_ = [("value", c_void_p)]
8
## return "<HMODULE %s>" % self.value
10
##windll.kernel32.GetModuleHandleA.restype = HMODULE
12
##print windll.kernel32.GetModuleHandleA("python23.dll")
13
##print hex(sys.dllhandle)
15
##def nonzero(handle):
16
## return (GetLastError(), handle)
18
##windll.kernel32.GetModuleHandleA.errcheck = nonzero
19
##print windll.kernel32.GetModuleHandleA("spam")