Skip to content Skip to sidebar Skip to footer
Showing posts with the label Ctypes

In Python How Do I Set The Value Of A Lp_c_ubyte

I am creating a Python wrapper for a C DLL using python ctypes. I am having trouble updating a poin… Read more In Python How Do I Set The Value Of A Lp_c_ubyte

What Are The Parameters For In: Python, Ctypes.windll.user32.systemparametersinfoa?

What do the 20, 0 and 3 mean in the Python function: SPI_SETDESKWALLPAPER=20 ctypes.windll.user32.… Read more What Are The Parameters For In: Python, Ctypes.windll.user32.systemparametersinfoa?

Access Violation In Logonuserw In Python 3

I am writing a Python3 script for someone, that utilizes the advapi dll and its LogonUserW function… Read more Access Violation In Logonuserw In Python 3

Grayscale Hbitmap With Python Ctypes

I have PIL images that I am trying to convert to grayscale HBitmap in ctypes. I have minimal knowle… Read more Grayscale Hbitmap With Python Ctypes

Numpy Structured / Regular Array From Ctypes Pointer To Array Of Structs

Say I have the following C function: void getArrOfStructs(SomeStruct** ptr, int* numElements) And … Read more Numpy Structured / Regular Array From Ctypes Pointer To Array Of Structs

What's The Difference Between Lp_* Pointers And *_p Pointers In Ctypes? (and Weird Interaction With Structs)

I'm having trouble understanding the difference between LP_* (e.g. LP_c_char) and *_p (e.g. c_c… Read more What's The Difference Between Lp_* Pointers And *_p Pointers In Ctypes? (and Weird Interaction With Structs)

Python Conversion From C_double To Float

I am new to Python. I would like to know what would be the best way to convert a c_double (from cty… Read more Python Conversion From C_double To Float

Python Ctype Initialising A Structure

My structure contains all unsigned char elements typedef struct { unsigned char bE; unsigne… Read more Python Ctype Initialising A Structure

Ctypes: Cannot Import Windll

I am running Python 2.7 32bits (Anaconda) on Windows 7 64bits. I would like to use ctypes to do win… Read more Ctypes: Cannot Import Windll

Python Crashes After Call To Createprocesswithlogonw

Using the code found here one can successfully launch an application as an alternate user. However,… Read more Python Crashes After Call To Createprocesswithlogonw

Does Python's Ctypes C_char Work For Windows 64?

I'm trying to load a process list, and it functions correctly on 32bit python. However, on 64b… Read more Does Python's Ctypes C_char Work For Windows 64?

How To Convert A Callback Result?

I am new to ctypes but I want to create a callback function with the following callback signature: … Read more How To Convert A Callback Result?

Options For Callback From Python To C++

Hello i've been trying to call a python user-defined callback from c++ using cython for a while… Read more Options For Callback From Python To C++

How To Save Ctypes Objects Containing Pointers

I use a 3rd party library which returns after a lot of computation a ctypes object containing point… Read more How To Save Ctypes Objects Containing Pointers

Python Ctypes Passing In Pointer And Getting Struct Back

This is a simple example of something I'm trying to get working before tackling an actual usefu… Read more Python Ctypes Passing In Pointer And Getting Struct Back

Ctypes.argumenterror When Using Kivy With Pywinauto

I have a kivy application that can interact with other windows using the pywinauto module. The appl… Read more Ctypes.argumenterror When Using Kivy With Pywinauto

How Do I Package For Distribution A Python Module That Uses A Shared Library?

I'm writing some bindings for a C library and am not sure how to configure all this for distrib… Read more How Do I Package For Distribution A Python Module That Uses A Shared Library?

Is There A Way To Capture An Image Of The Screen In Python With Ctypes?

I want to have python save an image file of the whole screen as a variable with ctypes so that I co… Read more Is There A Way To Capture An Image Of The Screen In Python With Ctypes?

Subclassing Ctypes - Python

This is some code I found on the internet. I'm not sure how it is meant to be used. I simply fi… Read more Subclassing Ctypes - Python

Dereferencing The Whole Data Of C_void_p Not Only The First Byte

i have a Question about Pythons ctypes and calling C functions bothering me for a couple days now. … Read more Dereferencing The Whole Data Of C_void_p Not Only The First Byte