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

How To Set Keep-alive Timer In Python 2.5 Running In Windows 7

I need some help. I'm working on a legacy software that uses python 2.5.4 running on Windows7 a… Read more How To Set Keep-alive Timer In Python 2.5 Running In Windows 7

Python - Py2exe Can't Build .exe Using The 'email' Module

py2exe does not work with the standard email module Hello. I am trying to use py2exe for converting… Read more Python - Py2exe Can't Build .exe Using The 'email' Module

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

Using Ctypes To Load A Specific Runtime Library (msvcrt80)

We're using ctypes.windll to load a third-party library. This library uses 'MSVCRT80' a… Read more Using Ctypes To Load A Specific Runtime Library (msvcrt80)

Elevated Diskpart Output

I need to run diskpart in my python3 script under Windows 7 and capture its output. I run the scrip… Read more Elevated Diskpart Output

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

Reading Windows Event Log In Python Using Pywin32 (win32evtlog Module)

I would like to read Windows' event log. I am not sure if it's the best way but I would lik… Read more Reading Windows Event Log In Python Using Pywin32 (win32evtlog Module)

Python Ctypes: Setwindowshookex Callback Function Never Called

I'm trying to write a program in Python that is aware of when alert boxes/dialogues are shown. … Read more Python Ctypes: Setwindowshookex Callback Function Never Called