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

Casting Into A Python String From A Char[] Returned By A Dll

I am attempting to cast a C style const char[] string pointer (returned from a DLL) into a Python c… Read more Casting Into A Python String From A Char[] Returned By A Dll

Mouse Move In Python Video Game

This code causes my screen to go black I am using PIL imagegrab to process images whenever i make … Read more Mouse Move In Python Video Game

Access Violation Using Python Ctypes

I am trying to import and use a function from a DLL using Pythons ctypes module, but I keep getting… Read more Access Violation Using Python Ctypes

Python: Ctypes, Read Pointer(c_char) In Python

I have a ctypes field that is a POINTER(c_char) (it had to be, per the documentation, c_char_p didn… Read more Python: Ctypes, Read Pointer(c_char) In Python

How Do I Look Up The Value Of A Multi-level Pointer Inside A Process In Python?

I have a process, and I want to look up a value of an address inside that process but that address … Read more How Do I Look Up The Value Of A Multi-level Pointer Inside A Process In Python?

Passing A File Descriptor To A C Library Function Through Ctypes On Windows

I am trying to pass a file descriptor through ctypes, to a C function where writes are performed o… Read more Passing A File Descriptor To A C Library Function Through Ctypes On Windows

Parsing C Structs In Python

I'm sure this is terribly wrong, and I'm having a couple of problems. I've written out… Read more Parsing C Structs In Python

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

Access C_char_p_array_256 In Python Using Ctypes

I have a native python bridge to some C code, which returns a pointer to an array (array of structs… Read more Access C_char_p_array_256 In Python Using Ctypes

Ctypes: How Do I Define An Array Of A Structure As A Field Of Another Structure?

I have a C structure that looks like the following: typedef struct _DXYZ { DXYZSTATE State[]; }… Read more Ctypes: How Do I Define An Array Of A Structure As A Field Of Another Structure?

Passing A Path To Labview Dll In Python

I am starting here with my question, but realize it might need to be answered on the Labview forums… Read more Passing A Path To Labview Dll In Python

Python Ctypes Keybd_event Simulate Ctrl+alt+delete

I'm trying to simulate ctrl+alt+del with keybd_event but it doesn't do anything, stuff like… Read more Python Ctypes Keybd_event Simulate Ctrl+alt+delete

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)

Does Python Ctypes Supports Size-0 Array?

i have a struct with array[0] inside it.i wonder how can i represent it with ctypes? or if ctypes d… Read more Does Python Ctypes Supports Size-0 Array?

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

Python Readprocessmemory Not Reading Enough Bytes

Okay all you ctypes gurus out there... I've got a python script that reads a memory address a h… Read more Python Readprocessmemory Not Reading Enough Bytes

Obtaining Address Of Custom Data-type In C From Python Using Ctypes

I have a vector struct in C with the following fields, struct vector { unsigned char* data; … Read more Obtaining Address Of Custom Data-type In C From Python Using Ctypes

Cuda Shared Memory Issue (and Using Cuda With Python/ctypes)

Somehow when I modify d_updated_water_flow_map in below code, d_terrain_height_map gets modified to… Read more Cuda Shared Memory Issue (and Using Cuda With Python/ctypes)

Using Python Ctypes And Libc To Write Void Pointer To Binary File

I am using python ctypes and libc to interface with a vendor-provided DLL file. The purpose of the… Read more Using Python Ctypes And Libc To Write Void Pointer To Binary File

How To Get Python's Multiprocessing Array'pointer And Pass It To Cpp Program?

I now need to request arrays in python, and pass them into a Cpp program, yet python still needs to… Read more How To Get Python's Multiprocessing Array'pointer And Pass It To Cpp Program?