2,793 questions with Windows development | Windows API - Win32 tags
algorithm provider in B- and N-Crypt
In BCrypt-functions and NCrypt-functions you often need an algorithm or storage provider (BCryptOpenAlgorithmProvider or NCryptOpenStorageProvider) to create/load a key. The question that I have is... can I use those keys after closing those providers?…
Windows development | Windows API - Win32
Windows shutdown functions
Hello, I am not clear on the windows shut down function. I want the system to shutdown by closing all the apps (controlled shutdown). The function which is used in the code is ExitWindowsEx(EWX_FORCE | EWX_SHUTDOWN, 0); This does the shut down…
Windows development | Windows API - Win32
Windows for business | Windows Server | User experience | Other
Developer technologies | C++

MS-DOS How to write simple task in batch program
Hello, I have to say that I am not interested in MS-DOS batch programming at all. I just want to execute a simple task like this: Show no messages or commands at all. FileName="abc.def" /* no path */ If FileName exists in…
Windows development | Windows API - Win32
Copying ZIP files
I issue the DOS cmd "Copy C:\BackUp\ *1.zip C:\Temp" in a batch file. It is supposed to copy all of the .zip files that end with a "1". But it also copies a file named Music5.zip and does NOT copy Music4.zip So is it looking…
Windows development | Windows API - Win32

App Verifier Stop 00000900 using File Open Dialog
My C++/MFC program uses the CFileDialog class to retrieve a filename to open. If I comment out the DoModal() call, no Verifier Stops occur. If the dialog is opened (even if it is then simply Canceled), the stops are generated -- three in a row. So I…
Windows development | Windows API - Win32
Developer technologies | C++
Windows 10 File Cloud / Sync Provider API - TransferData problem
0 I am building upon the Cloud Mirror Sample and having a similar issue to this one Here is the test code involved: // When the client needs to fetch data from the cloud, this method will be called. // The FakeMirrorDataMover class does the…
Windows development | Windows API - Win32
KB4601319 and GdipDeleteFontFamily
We have detected that since February Windows cumulative update (KB4601319), in gdiplus API, the GdipDeleteFontFamily function is more than 10 times slower than before. As a consequence, the GUIs using massively gdiplus with fontfamily are slowed down…
Windows development | Windows API - Win32
find computer name/sid
I try to find the SID of a computer account in Active Directory. Why? Well, a service from one computer is calling a service on the other one and the files that are returned should be accessible only by the correct computer. That's why I want to set…
Windows development | Windows API - Win32
Kill Timer doesnot end the timer - WINAPI c++
Hallo, I have been working a application which communicates with the micro controller with com interface and send status request and receive the answer every few seconds. I used set timer for the same. When there is a change in status warning…
Windows development | Windows API - Win32
Developer technologies | C++
DirectX 12 color banding ( FLOAT16 swapchain + fullscreen mode)
There is huge color banding in fullscreen mode when using swapchain buffer of _FLOAT format. Windowed mode is ok. could you please fix, HelloTriangle.zip demo attached. Thank you, E. in reference D3D12HelloTriangle demo change to: void…
Windows development | Windows API - Win32
shell32.dll access
Hi... Little question about how this works... and why Visual Studio does this. When you open the shell32.dll from an application (e.g. your own), you get pretty much what you see in the explorer... same size, same everything... and when you copy this…
Windows development | Windows API - Win32
detect Windows 10 edition
Hi... I'm developing a software, that can only run on Windows 10 or Server 2016/2019 and not on the Home edition of Windows 10... now. What's the official way that Microsoft suggests to use to detect if I'm running on the correct system? If possible,…
Windows development | Windows API - Win32

Can DPI awareness be set via manifest in a DLL COM class?
Hi, I'm creating a COM class within a DLL that's loaded out of process by DllSurrogate. I've been trying to set the DPI awareness using an application manifest, but none of the manifest DPI awareness examples I've found have worked. Is it impossible to…
Windows development | Windows API - Win32
Developer technologies | C++

Remote Access to Windows Error Reporting Crash Logs?
I'm a Windows developer, and I've published a popular Win32 application. I understand that Windows Error Reporting may give me the ability to download crash logs that are automatically sent to Microsoft. However, after reading documentation on this, I…
Windows development | Windows API - Win32
_stat and _utime synchronization
Hi, I'm working on a project regarding time, and I 'm trying to read/write time data from different processes. I'm thinking of using _stat/_utime to read/write time data, and I was wondering if anyone knew how _Stat and _utime manages synchronization. …
Windows development | Windows API - Win32
Developer technologies | C++
COM Singleton in terminal server
I have a COM singleton exe which is started as administrator. The exe is responsible to launch another exe (COM exe) with UserName (in task manager) same as the user requesting to launch the exe. This works fine in remote desktop services but in terminal…
Windows development | Windows API - Win32
Developer technologies | C++
Cannot decrypt Unicode password, passed from RDP (need plain password for credential provider)
Just repeating question here - as suggested. Issue with CredIsProtected API When RDP passes the password to destination PC it is in protected form, something like "@@D...." We are using following code in order to get plain text password…
Windows development | Windows API - Win32

Have Media Foundation's AAC decoder sample rate limits changed?
[The Media Foundation docs specify][1] that the maximum sample rate supported by the Media Foundation AAC decoder is 48k. However, I've been testing passing files with higher sample rates such as 96k and these files are decoded on my up to date Windows…
Windows development | Windows API - Win32
GDI bitmap printing got broken sometime after Feb 2021?
Hello, Sometime after Feb 2021, Win GDI using PlgBlt (or BitBlt) no longer prints bitmap images. This is for different PC's and using Print to PDF as well as with a real printer. I know the code has worked for many years and has not changed, here the…
Windows development | Windows API - Win32
WIN feature updates fail on VDI
Hi, Can you please help me with a reason as why the feature updates are failing? This is a VDI machine, but on a laptop and other machines this worked OK. this is going WUfB and I have multiple machines like this win version is 1803 2021/03/30…