src/p/y/python-cookbook-HEAD/cb2_examples/cb2_17_4_sol_1.py python-cookbook(Download)
from ctypes import windll, c_int, c_string, byref
# load 'Ehllapi.dll' (from current dir), and function 'hllapi' from the DLL
Ehllap32 = windll.ehllapi
hllapi = Ehllap32.hllapi
# prepare the arguments with types and initial values
h_func = c_int(1)
h_text = c_string('A')
h_len = c_int(1)
h_ret = c_int(999)
src/p/y/py_examples-HEAD/opencv/CVtypes.py py_examples(Download)
import ctypes, os from ctypes import Structure, Union, POINTER, SetPointerType, CFUNCTYPE, cdll, byref from ctypes import c_char_p, c_double, c_float, c_byte, c_ubyte, c_int, c_void_p, c_ulong from ctypes import c_uint32, c_short, c_char, c_longlong # ----Load the DLLs ----------------------------------------------------------
src/c/l/clyther-0.1-beta-3/examples/future/test2.py clyther(Download)
import copencl as cl import clyther from ctypes import c_float,c_int from clyther import runtime as clrt from clyther.memory import global_array_type, shared_array_type import numpy as np
src/c/l/clyther-0.1-beta-3/examples/example2.py clyther(Download)
import copencl as cl import clyther from ctypes import c_float,c_int from clyther import runtime as clrt, math from clyther.memory import global_array_type, shared_array_type import numpy as np
src/c/l/clyther-HEAD/TRUNK/examples/future/new_object.py clyther(Download)
''' import clyther from ctypes import c_int class CLSpam( clyther.device_object ):
src/c/l/clyther-0.1-beta-3/examples/future/new_object.py clyther(Download)
''' import clyther from ctypes import c_int class CLSpam( clyther.device_object ):
src/e/v/eventghost-HEAD/trunk/plugins/PS3/__init__.py eventghost(Download)
import wx import wx.lib.mixins.listctrl as listmix from ctypes import Structure, Union, c_byte, c_ubyte, c_char, c_int, c_long, c_ulong, c_ushort, c_wchar from ctypes import pointer, byref, sizeof, POINTER from ctypes.wintypes import ULONG, BOOLEAN, BOOL
result = hidDLL.HidP_GetCaps(preparsedData, ctypes.byref(hidpCaps))
n = hidpCaps.InputReportByteLength
rt = c_int(0) #report type input
rl = c_ulong(n) #report length
maxDataL = hidDLL.HidP_MaxDataListLength(rt, preparsedData)
src/e/v/eventghost-HEAD/trunk/plugins/HID/__init__.py eventghost(Download)
import win32file import wx.lib.mixins.listctrl as listmix from ctypes import Structure, Union, c_byte, c_char, c_int, c_long, c_ulong, c_ushort, c_wchar from ctypes import pointer, byref, sizeof, POINTER from ctypes.wintypes import ULONG, BOOLEAN
self.abort = True
self.plugin.PrintError(self.text.errorReportLength + self.deviceName)
rt = c_int(0) #report type input
rl = c_ulong(n) #report length
maxDataL = hidDLL.HidP_MaxDataListLength(rt, preparsedData)
src/e/v/eventghost-HEAD/plugins/PS3/__init__.py eventghost(Download)
import wx import wx.lib.mixins.listctrl as listmix from ctypes import Structure, Union, c_byte, c_ubyte, c_char, c_int, c_long, c_ulong, c_ushort, c_wchar from ctypes import pointer, byref, sizeof, POINTER from ctypes.wintypes import ULONG, BOOLEAN, BOOL
result = hidDLL.HidP_GetCaps(preparsedData, ctypes.byref(hidpCaps))
n = hidpCaps.InputReportByteLength
rt = c_int(0) #report type input
rl = c_ulong(n) #report length
maxDataL = hidDLL.HidP_MaxDataListLength(rt, preparsedData)
src/e/v/eventghost-HEAD/trunk/plugins/XBCDRC/__init__.py eventghost(Download)
import win32file import wx.lib.mixins.listctrl as listmix from ctypes import Structure, Union, c_byte, c_char, c_int, c_long, c_ulong, c_ushort, c_wchar from ctypes import pointer, byref, sizeof, POINTER from ctypes.wintypes import ULONG, BOOLEAN
self.abort = True
self.plugin.PrintError(self.text.errorReportLength + self.deviceName)
rt = c_int(0) #report type input
rl = c_ulong(n) #report length
maxDataL = hidDLL.HidP_MaxDataListLength(rt, preparsedData)
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next