2,783 questions with Windows development | Windows API - Win32 tags

Sort by: Updated
0 answers

Run PowerShell from VB WinForms

Hi I only need to run this: Using psDisks = Automation.PowerShell.Create() psDisks.AddScript("Get-PhysicalDisk | Get-StorageReliabilityCounter | ConvertTo-Json") Dim diskResults = psDisks.Invoke() If psDisks.HadErrors OrElse…

Windows development Windows API - Win32
asked 2025-06-29T01:32:08.22+00:00
StewartBW 1,805 Reputation points
edited the question 2025-06-29T04:19:50.9233333+00:00
StewartBW 1,805 Reputation points
1 answer One of the answers was accepted by the question author.

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
asked 2025-06-28T07:59:24.9566667+00:00
StewartBW 1,805 Reputation points
accepted 2025-06-29T01:02:13.9966667+00:00
StewartBW 1,805 Reputation points
1 answer One of the answers was accepted by the question author.

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
asked 2025-06-28T03:52:57.74+00:00
StewartBW 1,805 Reputation points
accepted 2025-06-28T14:45:42.49+00:00
StewartBW 1,805 Reputation points
1 answer

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
asked 2025-06-28T06:13:22.0733333+00:00
Larry 0 Reputation points
answered 2025-06-28T11:13:27.9466667+00:00
Larry 0 Reputation points
0 answers

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
asked 2025-06-28T02:40:29.4833333+00:00
alan henry 0 Reputation points
0 answers

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
asked 2025-06-28T02:06:23.96+00:00
StewartBW 1,805 Reputation points
1 answer One of the answers was accepted by the question author.

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
asked 2025-06-27T05:25:43.28+00:00
George Carter 20 Reputation points
accepted 2025-06-27T07:27:49.9066667+00:00
George Carter 20 Reputation points
0 answers

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
asked 2025-06-24T03:43:42.8966667+00:00
Higan 0 Reputation points
edited the question 2025-06-25T13:48:20.1+00:00
Rob Caplan - MSFT 6,032 Reputation points Microsoft Employee Moderator
0 answers

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
asked 2025-06-24T05:44:26.25+00:00
Udit Pant 0 Reputation points
commented 2025-06-25T13:07:18.7866667+00:00
RLWA32 49,536 Reputation points
1 answer One of the answers was accepted by the question author.

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
asked 2025-06-21T03:55:49.5066667+00:00
mc 5,426 Reputation points
accepted 2025-06-24T03:25:50.47+00:00
mc 5,426 Reputation points
1 answer

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
asked 2025-06-20T12:06:32.45+00:00
Sreekanth N Kartha 60 Reputation points
answered 2025-06-21T14:39:14.7933333+00:00
Darran Rowe 1,986 Reputation points
1 answer One of the answers was accepted by the question author.

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++
asked 2024-12-05T15:51:07.8166667+00:00
Chandan M S 20 Reputation points
accepted 2025-06-20T17:58:37.22+00:00
Chandan M S 20 Reputation points
1 answer

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
asked 2022-04-24T23:45:13.197+00:00
Tony 96 Reputation points
edited a comment 2025-06-19T01:21:32.9233333+00:00
Player Plays 0 Reputation points
2 answers One of the answers was accepted by the question author.

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
asked 2025-02-13T19:39:45.3633333+00:00
Nathan 25 Reputation points
edited a comment 2025-06-11T23:26:57.6533333+00:00
Nathan 25 Reputation points
5 answers

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
asked 2024-12-12T12:09:00.7133333+00:00
Simon Fonteneau 80 Reputation points
commented 2025-06-10T18:49:35.63+00:00
Olexiy Shestakov 0 Reputation points
0 answers

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++
asked 2024-11-13T12:07:58.58+00:00
Ljungberg, Ted 10 Reputation points
commented 2025-06-10T09:03:44.9166667+00:00
Ljungberg, Ted 10 Reputation points
2 answers

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
asked 2025-06-09T09:32:24.4133333+00:00
梓珺 张 120 Reputation points Volunteer Moderator
edited a comment 2025-06-10T05:06:31.36+00:00
Castorix31 90,521 Reputation points
3 answers One of the answers was accepted by the question author.

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
asked 2025-06-04T10:29:49.41+00:00
Varun Dixit 20 Reputation points
accepted 2025-06-06T09:51:04.8133333+00:00
Varun Dixit 20 Reputation points
0 answers

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
asked 2021-02-07T00:51:17.377+00:00
commented 2025-06-04T23:51:48.64+00:00
Delcy Garcia Rojas 0 Reputation points
0 answers

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…

Windows development Windows API - Win32
asked 2025-06-04T07:14:45.8+00:00
Shakti Swarup Panda 0 Reputation points