How to disable frame (and titlebar) but keep resizing and snap features when using SendMessage to drag the window?
I'm trying to disable the titlebar (and frame), but keep the ability to resize the window and have it so the snap layouts work when triggering SendMessage. I have the trigger work, but when I remove all the bit flags returned from GetWindowLong that gets…
UWP pipe client and C++ Fulltrustprocess pipe server - Access to the path is denied
Hello UWP experts, I get "Access to the path is denied" when connecting a UWP namedpipeclient to C++ Fulltrust process namedpipe server in packaged (WAPP) and non packaged mode. Its a simple piece of code to see how the namedpipe works betweek…
Can native Win32 exe show a WinUI3 Page?
I need to show a WinUI3 page from a native Win32 exe. I cannot make modifications to the Win32 exe. The architecture is like this: native Win32 .exe -> links to a C++/CLI dll with a known native C++ interface C++/CLI dll -> references and makes…
Issue with IUpdateHistoryEntry2 interface
Trying to get category Ids for the installed updates on the machine. From IUpdateHistoryEntry2 we get ICategoryCollection. Which provides ICategory object on iteration. Calling get_CategoryId always returns empty. Try the same through…
How do I query Korean keyboard's hardware keyboard type?
Hello, I'm writing an application in C++, and I want to know if the user is using 2-set type Korean or 3-set type Korean (Dubeolsik or Sebeolsik). That is, I'd like to know which option the user has chosen for this: I've looked through all the functions…
OpenEventLog returns RPC_S_SERVER_UNAVAILABLE on Windows 24H2
We have a tool that parse data from the eventlog. However this has stopped working to access remote servers when run Windows 24H2 machines, with either of the following errors: RPC_S_SERVER_UNAVAILABLE RPC_X_BAD_STUB_DATA The following application…
Help with Windows Named Pipes
Win32 experts, I'm writing an app that includes a master process written in C# that forks a subprocess written in Python and compiled into an exe. I am attempting to open named pipe between the two and despite working through all online tips and all…
MIDL Compiler generates wrong year
Using the MIDL compiler with IDL statements to generate a .TLB file, the compiler inserts a text line into the .TLB such as: Created by MIDL version 8.01.0628 at Mon Jan 18 19:14:07 2038. The year should be the year the .TLB was created (e.g., 2024), NOT…
Is user32.dll has any dependency?
I want to use HDC to draw text in android. So can I copy user32.dll to android and then use HDC ? to get bitmap with some text? I will specify font and font-size
Win32 HDC issue
I have a problem with drawing HDC outside WM_PAINT message, I draw in function with while(true) loop void quadcycle() { while(true) { hdc = GetDC(hwnd); RECT rc = {50,50,150,150}; FillRect(hdc, &rc,…
why some language will change when remove some code?
in some contries language like Arab the text will change its shape when remove some of them. مرحبا I just remove last one مرحب the first will change too I remove again. مرح you can see it totally changed. حبا to ح what I want to do is to create each…
how to create ID2D1Bitmap using direct2d?
how to load bitmap there is png file and how to create ID2D1Bitmap?
Exception Handling in Windows
Windows provides the following exception handling frameworks: Structured Exception Handling (SEH) Vectored Exception Handling (VEH) SEH is just the Windows's version of the C++ try-catch, and documentation suggests using the C++ try-catch blocks. I…
The behavior of the SetWindowDisplayAffinity API differs depending on the Windows 10 build version.
The behavior of the SetWindowDisplayAffinity API differs depending on the Windows 10 build version. API: SetWindowDisplayAffinity(hwnd, WDA_MONITOR); Windows 10 1909 (18363.418): Works correctly; when my dialog is captured, it turns black. Windows 10…
DXGI_ERROR_ACCESS_DENIED when trying to draw a triangle with DirectX 12
So, I'm currently working on drawing a triangle with DirectX 12 and making some helper functions for myself, but CreateCommitedResource keeps failing with DXGI_ERROR_DEVICE_REMOVED and the removal reason being DXGI_ERROR_ACCESS_DENIED. I've been…
'SysListView32' Bug with multiple items selection: still not fixed in Windows 11 23H2
When I use our own 32 bit application, the mouse cursor still jumps to a corner when I do the lasso selection in a listview (click and drag a rectangle to select multiple listview items). From what I've found in the internet, the program might use a…
Decryption failure error with crypt32.dll, CertGetSubjectCertificateFromStore API
We have an application which transfer EDI documents using AS2 protocol where when our business partner and send data to us, we can’t decrypt it. We are reading the certificate from windows certificate store using CertGetSubjectCertificateFromStore api…
Why GetPerTcpConnectionEStats always return strange value.
I have following code to read TCP congestion stats: Tried a whole day, the read out path_rod is always strange, like: What should I try next?
How to use function `CreateIconIndirect` with 32 bit bitmaps?
Most icon related documentation is still written with the assumption that the user will want to create a black and white icon, even though we are in the year 2024. A 32 bit bitmap has both the color information and the transparency mask in the same…
How can I mark my structure as `com_class` in Rust?
Hello, I am implementing a COM object in DLL in Rust. Every single tutorial I found (including ChatGPT and Github Copilot) describes that I need to use #[com_class] macro with my CLSID over my…