2,704 questions with Windows API - Win32 tags

Sort by: Updated
0 answers

Issue with GetAddrInfoExW: Only Receiving IPv4 Addresses, Not IPv6

Hello, I'm using the GetAddrInfoExW function in my application to resolve both IPv4 and IPv6 addresses for a given hostname (e.g., google.com). However, I'm only receiving IPv4 addresses in the results, and I don't see any IPv6 addresses, even though I…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,704 questions
asked 2025-01-09T12:51:37.7033333+00:00
Harshal Goyal 20 Reputation points
commented 2025-01-10T09:46:27.0433333+00:00
David Lowndes 2,565 Reputation points MVP
0 answers

Refresh rate control on IDXGISwapChain1

I play video on my application on xbox with 120Hz, but it seems to be played with 60Hz. Interval between time samples is ~16ms instead of 8ms. I checked few different videos with different fps and the result is the same (I thought that the problem is…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,704 questions
asked 2025-01-09T15:01:37.3+00:00
Marek 0 Reputation points
commented 2025-01-10T08:19:27.88+00:00
Castorix31 86,481 Reputation points
0 answers

What does the POINTER_INFO frameId really mean or guarantee?

I'm having trouble understanding what the frameId really means. Are all devices generating simultaneous pointers combined into one frame with the same frame id? I am having trouble understanding this description: "An identifier common to multiple…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,704 questions
asked 2024-12-04T03:41:49.7666667+00:00
Jim Bean 0 Reputation points
commented 2025-01-09T22:02:06.04+00:00
Jim Bean 0 Reputation points
1 answer

Error State Icon on Placeholder

Hi, we are developping a sync engine using Cloud Filter API. If we place a file in a synced folder, the upload to the server might fail on any reason. We would like to set the file state to an error icon instead of the Pending or In Sync state…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,704 questions
asked 2021-03-12T09:03:46.133+00:00
cgrom 31 Reputation points
commented 2025-01-08T16:37:37.97+00:00
Carlos Gonzalez Camacho 0 Reputation points
1 answer

how to read cross stich pattern file ?

how to read cross stitch parttern file ? I have cross stitch file but it can not upload it here it is .xsd (or .xsp) files?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,704 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,805 questions
asked 2025-01-04T04:18:39.8766667+00:00
mc 5,041 Reputation points
commented 2025-01-08T04:02:41.9533333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 34,226 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Use Win32 API to simulate Windows NB as BLE peripheral

Dear Team, I am trying to develop a Win32 console app and use Win32 API to simulate Windows NB as BLE peripheral. I have found examples of UWP, but I don’t understand the usage of Win32 API. Is there any example that I can refer to? Thank you!!

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,704 questions
asked 2024-12-29T13:46:54.2333333+00:00
chanjung 20 Reputation points
accepted 2025-01-07T07:42:25.5133333+00:00
chanjung 20 Reputation points
0 answers

SymFromAddr api returning 487 error code

SymFromAddr api returning 487 error codex for the following code: DWORD64 dwDisplacement = 0; char buffer[sizeof(SYMBOL_INFO) + MAX_SYM_NAME * sizeof(CHAR)]; PSYMBOL_INFO pSymbol = (PSYMBOL_INFO)buffer; pSymbol->SizeOfStruct =…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,951 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,704 questions
asked 2024-12-16T09:54:13.1066667+00:00
Ashutosh Kumar Verma 0 Reputation points
commented 2025-01-07T07:42:05.11+00:00
Ashutosh Kumar Verma 0 Reputation points
2 answers

How to avoid minimize on show desktop or peek desktop from an application.

Hi, I am trying to create a desktop widget like application which need to be visible on desktop at all times. To hide it from taskbar and alt + tab menu I am using WS_EX_TOOLWINDOW window style. The problem is the application is minimized when using Peek…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,704 questions
asked 2024-12-06T18:42:36.9766667+00:00
Bhushan Kolhe 0 Reputation points
edited the question 2025-01-07T05:44:26.3566667+00:00
Jack J Jun 24,626 Reputation points Microsoft Vendor
1 answer

Information not available, no symbols loaded for AppxPackaging.dll

Hi guys, I want to validate AppxBlockMap.xml through AppxSignature.p7x. I used IAppxFactory::CreateValidatedBlockMapReader method (appxpackaging.h) to validate the blockmap. When I debuged my code, the result seems good. But I noticed there are…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,704 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,818 questions
asked 2024-12-09T04:11:02.1666667+00:00
Tran Thi Hieu Ngan 0 Reputation points
answered 2025-01-06T08:14:56.9733333+00:00
AinhoaGiles 155 Reputation points
1 answer

C++ animate anything correctly

I want to understand how to correctly display something in win32. For example, how to make a square that will move with sin() up and down, so that it is correct and not as I did it through CreateCompatibleDC and create a Bitmap and then move all of it…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,704 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,818 questions
asked 2024-12-27T21:21:56.48+00:00
someone 20 Reputation points
commented 2025-01-06T07:45:01.5066667+00:00
Roy Li - MSFT 33,586 Reputation points Microsoft Vendor
1 answer

Issue while Writing\Updating .ini files using RegSetValueEx\WritePrivateProfileString

I’m encountering an issue while updating an INI file. Initially, I attempted to write the value to the registry and then update the INI file using the RegSetValueEx() WinAPI. Although the function executes without returning any errors, the value is not…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,704 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,818 questions
asked 2024-12-17T05:51:39.31+00:00
Sreekanth N Kartha 0 Reputation points
commented 2025-01-06T07:43:58.48+00:00
Roy Li - MSFT 33,586 Reputation points Microsoft Vendor
2 answers

why use SetupDiGetDeviceRegistryProperty get SPDRP_CLASSGUID always return the same id

I use the following demo to simultaneously obtain the instanceId and guid of the device, but on my computer, all devices obtain the same SPDRP_CLASSGUID value. Why is this? int main() { HDEVINFO hDeviceInfoSet =…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,704 questions
asked 2024-12-04T11:56:10.7966667+00:00
哲敏 陈 86 Reputation points
commented 2025-01-06T07:38:12.2966667+00:00
Roy Li - MSFT 33,586 Reputation points Microsoft Vendor
0 answers

Windows Function to get network related details.

Hello Folks, I am looking forward to implement Windows Functions to print the following windows server's network related details. all network interface name, type, ip dhcp, mtu, ip address, ip cidr, default gateway address and matrix, hardware address…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,704 questions
asked 2024-12-27T17:56:10.8533333+00:00
Prem Jha 95 Reputation points
commented 2025-01-06T05:16:20.7466667+00:00
Prem Jha 95 Reputation points
2 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 API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,704 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,399 questions
asked 2024-12-12T12:09:00.7133333+00:00
Simon Fonteneau 45 Reputation points
answered 2025-01-03T10:25:13.8466667+00:00
Simon Fonteneau 45 Reputation points
0 answers

Choosing Between GetAddrinfoEx and DNSQueryEx for Efficiently Resolving Multiple IP Addresses from Hostnames

Hi everyone, I’m working on a project where I need to resolve hostnames or Fully Qualified Domain Names (FQDNs) to a list of IP addresses. The use case involves resolving a hostname to about a dozen or two IP addresses, and I’m evaluating which function…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,704 questions
asked 2025-01-02T06:30:35.6866667+00:00
Harshal Goyal 20 Reputation points
commented 2025-01-03T07:55:18.2433333+00:00
Jeanine Zhang-MSFT 10,356 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Question about Using SetFileCompletionNotificationModes with IOCP in Non-blocking Winsock Operations

Hello everyone, I'm currently working on a project where I am using WinSock to create both UDP and TCP sockets. The sockets are set in non-blocking mode using ioctl, and I am using overlapped operations with an I/O Completion Port (IOCP) to handle…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,704 questions
asked 2024-12-16T10:09:09.4833333+00:00
Harshal Goyal 20 Reputation points
edited a comment 2025-01-02T06:05:27.3833333+00:00
Harshal Goyal 20 Reputation points
1 answer

VS2022 Resource Editor Problems

I've been following through the Microsoft Learn documentation for Getting Started with Win32 and C++ but I've run into a lot of problems with the resource editor in Visual Studio 2022. (…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,704 questions
asked 2024-12-29T15:43:34.2766667+00:00
Nikolas Fraser 60 Reputation points
edited a comment 2025-01-02T01:20:53.28+00:00
Darran Rowe 1,321 Reputation points
1 answer One of the answers was accepted by the question author.

How should we manage the Memory of the parameters passed by OS in WindowProc

Hi, Im working in Win32 desktop application in cpp. When a Window Proc is triggered with some WM_* msg, We may receive some LPARAM and WPARAM data. These parameters are different concerning the MSG passed. This can hold variable-length data like pointers…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,704 questions
asked 2024-12-30T10:51:11.39+00:00
Harshithraj1871 1,556 Reputation points
accepted 2024-12-31T04:51:52.9566667+00:00
Harshithraj1871 1,556 Reputation points
0 answers

How can I create a Gaussian blur with a printer render target using Direct2D?

I am using Direct2D to generate diagrams. I want to create a glow-effect around diagram boxes, using Gaussian blur. In order to do this, I paint a rectangle to an off-screen render target, blur it, and then get the off-screen render target's bitmap and…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,704 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,818 questions
asked 2024-12-16T17:04:06.37+00:00
simonx 126 Reputation points
edited a comment 2024-12-30T00:44:47.7933333+00:00
Castorix31 86,481 Reputation points
2 answers One of the answers was accepted by the question author.

How to create a shell extension using IExplorerCommand for Windows 11, 10, 8, and 7?

After reading Microsoft's documentation, Raymond Chen's blog, NanaZip implementation, and TortoiseSVN/TortoiseGit implementations, I created a "modern" shell extension implementing IClassFactory, IExplorerCommand, and IObjectWithSelection. …

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,699 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,704 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,399 questions
asked 2022-12-07T19:28:01.97+00:00
David Izada Rodriguez 46 Reputation points
commented 2024-12-29T19:44:07.62+00:00
Myles Jeffery 0 Reputation points