2,783 questions with Windows development | Windows API - Win32 tags
Solved Thread - Delete post please
Solved Thread - Delete post please Solved Thread - Delete post please
Windows development Windows API - Win32
ManagementObject fastest route
Hi experts, Is my usage efficient? I only need some properties like Manufacturer, Name, Description etc... If I limit the properties to return by the ManagementObject it will run faster? If so, what's the fastest way? Dim Search As New…
Windows development Windows API - Win32
SystemInformation Class
Hi, Anyone knows the difference between Application.RenderWithVisualStyles vs SystemInformation.UIEffectsEnabled? I wanna know if visual styles are enabled system-wide and my app does not have admin rights when running, so which one fits best? Also,…
Windows development Windows API - Win32
Process EN_REQUESTRESIZE Sent To ListBox?
Hi Folks: Developing on Win 10 Pro. I have a dialog with a ListBox. Each item of the ListBox has a Rich Text control. I'd like the Rich Text control's owner to be the ListBox. This will keep the coordinates for positoning the Rich Text control…
Windows development Windows API - Win32
Cloud File API FAQ
Based on the introduction from Windows official documentation at https://learn.microsoft.com/en-us/windows/win32/cfapi/build-a-cloud-file-sync-engine and the Cloud Mirror Sample, we attempted to develop a SyncEngine independently. However, we…
Windows development Windows API - Win32
DataGridView DateTime Column type?
Hi experts In VB.net WinForms (.Net Framework 4.8) DataGridView Add/Edit Column > Column Type has these…
Windows development Windows API - Win32
Where can I find the Windows Sockets 2 (or other Win32) documentation that was designed for C?
I am reading Network Programming with Windows Sockets by Pat Bonner. fpt://fpt.microsoft.com/bussys/winsock/winsock2 was the link the book provided for finding winsock2 documentation. I have already tried Internet Archive with no luck. I am specifically…
Windows development Windows API - Win32
Win32 API likes Credential Provider APIs Support on ARM64 Architecture
Are all the following Credential Provider APIs fully supported on the ARM64 architecture? IConnectableCredentialProviderCredential ICredentialProvider ICredentialProviderCredential ICredentialProviderCredential2 …
Windows development Windows API - Win32
Is it possible to programmatically query the contents of an indexed file with custom file format?
Hi, I am trying to index the contents of a file with custom file format using the Windows Search Indexer. As per the Windows SDK documentation, I need to implement a filter handler and add it to the Windows Registry in order for Windows Search to be able…
Windows development Windows API - Win32
can not copyResource
I want to copy texture (format DXGI_B8G8R8A8) to swapChain there is error: CopyResource: First parameter does not match device. [ MISCELLANEOUS CORRUPTION #13: CORRUPTED_PARAMETER1] ctx->CopyResource(x_buffer, texture1); x_buffer is the buffer that…
Windows development Windows API - Win32
How to Uninstall Msix installed application from all users with winAPIs
What Windows API can be used to completely remove all residual data of an MSIX-installed application, including cleaning up the associated folder under "C:\Program Files\WindowsApps"?
Windows development Windows API - Win32
CPU and disk usage values which we get from windows API (Using PDH) is not same as the value we see in task manager
I am currently using the PDH (Performance Data Helper) API to log CPU and Disk utilization data in a CSV file. Below is a snippet of the code I am using: #include <windows.h> #include <pdh.h> #include <stdio.h> #include…
Windows development Windows API - Win32
Windows for business Windows Client for IT Pros Devices and deployment Other
Windows for business Windows Client for IT Pros User experience Other
Developer technologies C++
IMFCaptureSource::GetAvailableDeviceMediaType returns 0xC00D36B2 (The request is invalid in the current state. )
Why and/or what is the origin of this resultcode? I can't find anything that explains on docs what this result actually means and how to resolve this. Thank you.
Windows development Windows App SDK
Windows development Windows API - Win32
Why does IPsecSaContextSetSpi0 from the WFP API seem to only accept even SPI values?
When creating an IPsec SA using the WFP API, IpsecSaContextSetSpi0() doesn't seem to accept an odd SPI value. Why is this the case? RFC 4303 Section 2.1 and RFC 4302 Section 2.4 talk about valid SPI values for an IPsec SA. It makes no mention of odd…
Windows development Windows API - Win32
IUpdate2::CopyToCache method Windows 11
It seems that this method no longer works on Windows 11: https://learn.microsoft.com/en-us/windows/win32/api/wuapi/nf-wuapi-iupdate2-copytocache Interface not registered Do you have an idea?
Windows development Windows API - Win32
Windows for business Windows Client for IT Pros User experience Other
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…
Windows development Windows API - Win32
Windows for business Windows Client for IT Pros User experience Other
Developer technologies C++
How to obtain information about CPU, RAM, GPU
I have been making a small tool recently One of the functions requires obtaining the current CPU, RAM, GPU usage rate of the system How can I currently obtain the usage rate of CPU, RAM, and GPU? Are there any APIs available? My tool is compatible with…
Windows development Windows API - Win32

Recommended Way to log to stderr in a wWinMain GUI app launched from a terminal, for diagnostics when GUI fails or app runs in background?
For int main() apps, writing to stderr works fine with shell redirection, but with wWinMain, the file is created but stays empty (tried to use 2> stderr_log.txt). I’d like to know if there’s any supported way to make stderr functional (e.g.,…
Windows development Windows API - Win32
Idioma de los videos
Los videos estan en idioma ingles con subtitulos en ese mismo idioma, ¿puedo cambiar a español o tener subtitulos en español?
Windows development Windows API - Win32
How to update ACL permission on placeholders created by CFAPI (Cloud Filtre API)
Trying to experiment on creating a VFS (Virtual File System ex OneDrive sort of) on windows using CFAPI (Cloud Filter Win32 API), this VFS basically replicates the cloud file system on the local desktop. I need to update the ACL permissions on…