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

Why Does Replacefile Fail With Error_sharing_violation?

While the documentation is vague, based on this question and comments and this answer, I expected t… Read more Why Does Replacefile Fail With Error_sharing_violation?

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

Windows Named Pipes In Practice

With Windows named pipes, what is the proper way to use the CreateNamedPipe, ConnectNamedPipe, Disc… Read more Windows Named Pipes In Practice

Win32 Python - Pythoncom Error - Importerror: No Module Named Pywintypes

I am trying to import pythoncom, but it gives me this error: Traceback (most recent call last): F… Read more Win32 Python - Pythoncom Error - Importerror: No Module Named Pywintypes

Python: Use Windows Api To Render Text Using A Ttf Font

What would be a full example, going from nothing to ending up with a bitmap in memory, of opening a… Read more Python: Use Windows Api To Render Text Using A Ttf Font

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

How To Gracefully Terminate Python Process On Windows

I have a python 2.7 process running in the background on Windows 8.1. Is there a way to gracefully … Read more How To Gracefully Terminate Python Process On Windows

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

Get Mouse Wheel Scroll Using Win32api In Python

I want to read mouse wheel scroll events and then simulate them. I know I can simulate it using bel… Read more Get Mouse Wheel Scroll Using Win32api In Python

How To Determine If Win32api.shellexecute Was Successful Using Hinstance?

I've been looking around for an answer to my original issue.. how do i determine (programmatica… Read more How To Determine If Win32api.shellexecute Was Successful Using Hinstance?

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

How To Get Windows User's Full Name In Python?

I'm trying to get the user's full name. Not the login name, but the full name that shows up… Read more How To Get Windows User's Full Name In Python?

Python Win32 Can't Read Outlook Email Body's

Im trying to use win32 module for python and get the body of my email message. However whenever I t… Read more Python Win32 Can't Read Outlook Email Body's

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)

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

Change Windows User Password With Python

I am looking for a way to change the windows password throgh a python script. somthing like a win3… Read more Change Windows User Password With Python