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