43,728 questions
Advice
3
votes
2
replies
97
views
What Windows API should I use to create a blurred window?
I want to create a panel (a top-level window) looking the same as backdrop-filter: blur(Npx); in CSS).
The window should at least have rounded corners or be custom-shaped (ultimately).
On top of the ...
2
votes
1
answer
110
views
Win32 API Window has blank space where title should be
I am currently developing a library using C to create a win32 window for OpenGL but I have come across an issue that should not be occurring (according to my research) which is that there is blank ...
-1
votes
1
answer
126
views
Calling FindWindowW("Progman", "Program Manager") always returns a null handle
I'm using the koffi library to call Win32 APIs from TypeScript. However, I'm stuck at the very first step: FindWindowW consistently returns 0 (NULL), indicating that the Progman window cannot be found....
1
vote
0
answers
272
views
How to copy files in Windows while preserving their dates?
I'd like to copy files and directories while preserving all their attributes, so I use CopyFileEx and CreateDirectoryEx, but they don't preserve file times, so I need to get the file handle and call ...
-1
votes
0
answers
60
views
Custom Explorer property columns for CFAPI placeholder files in a non-packaged sync provider — works for dehydrated, lost on hydration
Goal
We're building a Windows Cloud Files API (CFAPI) sync provider (non-packaged — no MSIX). We want to display a custom property column in explorer (CompanyName.CloudDescription, registered via a ....
Advice
2
votes
7
replies
155
views
Cannot understand scrollbar program from Charles Petzold's "Programming Windows, 5th Edition"
I am reading Charles Petzold's "Programming Windows, 5th Edition". I am studying a program that displays a window's text metrics and also uses scrollbars. The program consists of 2 files : ...
0
votes
2
answers
141
views
WM_NCCREATE not called as first message in custom Framework's WndProc function
I'm implementing a custom Win32 C++ framework which encapsulates all the Win32 plumbing in a class called Framework. To satisfy the Win32 C endpoints, some core methods are static. The following 3 ...
3
votes
0
answers
123
views
GetVirtualDiskMetadata error 1168: Element not found when trying to read virtual disk identifier
I am trying to write a simple C program using the Windows API that reads the disk identifier field of a Hyper-V virtual hard disk and outputs it on the console. I am specifically trying to use ...
0
votes
1
answer
109
views
ControlService function returns error 1061 despite dwControlsAccepted field showing SERVICE_ACCEPT_STOP
I'm trying to write a Windows service in C++.
The service installs, uninstalls and runs correctly, but crashes without stopping its executable when I try to stop it. ControlService() reports error ...
1
vote
0
answers
90
views
Trouble fetching thumbnails for hydrated files in a Cloud File API folder
I am working on an application that operates like OneDrive and uses the Cloud File API to show cloud hosted files in a folder on the user’s machine. I am trying to enhance my application by fetching ...
3
votes
0
answers
120
views
Windows IME repositioning via WinAPI
I have an application with a custom editing canvas, so I need to provide at least certain customization of IME behaviour (specifically positioning).
For basic handling, I am hiding and showing my ...
-3
votes
2
answers
417
views
Why do I need extra commands for printing documents?
I'm supposed to be taking over a server application which is sending documents to a printer. It does the following:
if (OpenPrinter((LPTSTR)printer, &hPrinter, nullptr))
{
wchar_t ...
0
votes
1
answer
97
views
Draw bitmap as 1D array of bytes, not RGBQUAD objects. GDI StretchDIBits
I have an int array where every 4 elements describes blue, green, red and alpha values of each pixel of the image, for example:
int data[] = {255,0,0,255, 0,255,0,255, 0,0,255,255}
represents a 3x1 ...
0
votes
0
answers
59
views
Setting status icon to excluded with the CFAPI
I am writing a one drive-like application using the CFAPI. I am trying to figure out how to set the Status icon to the Error state and to the Excluded state. Both have proven to be very difficult. The ...
Advice
0
votes
4
replies
65
views
What/How is `D3DKMT_BRIGHTNESS_INFO` used for?
https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/d3dkmthk/ns-d3dkmthk-_d3dkmt_brightness_info
I want to query the brightness level of a monitor without using WMI. This structure ...