2,745 questions with Windows API - Win32 tags

Sort by: Updated
1 answer

Formatting rules for an HTTP cookie to bypass PPP authentication

Dear, I would like to know more about the possibility to bypass PPP authentication with an HTTP cookie, as described in [MS-SSTP]. ClientHTTPCookie: In this string variable, the SSTP layer stores the HTTP cookie that will be passed to the HTTPS layer…

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,745 questions
asked 2025-03-11T17:24:28.0533333+00:00
TVB 0 Reputation points
edited an answer 2025-03-12T15:06:58.9733333+00:00
TVB 0 Reputation points
1 answer

How to improve image quality when painting images with Gdiplus::TextureBrush

I am currently having a problem with broken image drawing when I use Gdiplus::TextureBrush. I know that when drawing images with Graphics::DrawImage, the image still maintains the image quality. But I need to draw images with Gdiplus::TextureBrush…

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,745 questions
asked 2025-03-03T08:06:39.73+00:00
Chau Dang Ba 20 Reputation points
answered 2025-03-12T07:50:35.88+00:00
Junjie Zhu - MSFT 20,771 Reputation points Microsoft External Staff
1 answer

Does UI Automation handle the Narrator "dismiss" gesture?

I'm creating a UIA provider in C++ for Narrator and would like to support any dismiss actions (if they exist). In the Narrator guide it says "Triple-tap with two fingers - Dismiss context menus (imitating the Escape key)". Does this mean the…

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,745 questions
asked 2025-03-11T02:20:34.5366667+00:00
rebeccab 0 Reputation points
commented 2025-03-12T06:34:24.5433333+00:00
Jeanine Zhang-MSFT 11,106 Reputation points Microsoft External Staff
2 answers

Where is windows.h in windows SDK

"Include" folder of Windows SDK(https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk/) does not contain "windows.h" header. Where it 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,745 questions
asked 2020-11-12T09:49:46.323+00:00
Ivan Kotov 1 Reputation point
commented 2025-03-11T14:24:18.6733333+00:00
Milton Yarberry 0 Reputation points
0 answers

Where has windows::Win32::Foundation::BOOL been moved to?

https://crates.io/crates/windows version: 0.60.0 error[E0432]: unresolved import `windows::Win32::Foundation::BOOL` --> src\window\setup.rs:32:20 | 32 | Foundation::{BOOL, HWND}, | ^^^^ no `BOOL` in…

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,745 questions
asked 2025-03-11T06:59:53.19+00:00
lanten 0 Reputation points
edited a comment 2025-03-11T12:25:59.63+00:00
Viorel 120.4K Reputation points
1 answer

Using Arrays with Unions or Structures Not Working

I'm trying to use arrays, with CheckFeatureSupport, rather than check each feature with separate code. I am using different types of elements, so I have to use either union or struct. The problems I am having, is the array of the struct does not point to…

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,745 questions
asked 2025-03-08T03:02:37.23+00:00
CDev-8220 240 Reputation points
commented 2025-03-11T06:27:33.6633333+00:00
Jeanine Zhang-MSFT 11,106 Reputation points Microsoft External Staff
0 answers

content dialog with points

Hello I have a problem with my app and the content dialog So I have an app, that creates an STL based on a drawing I also wanted to open a content dialog, with the canvas on one side and the point on other side. The idea is to draw a point, when I heck a…

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,745 questions
asked 2025-03-08T19:54:20.94+00:00
Eduardo Gomez Romero 1,315 Reputation points
commented 2025-03-11T05:58:37.68+00:00
Jeanine Zhang-MSFT 11,106 Reputation points Microsoft External Staff
1 answer One of the answers was accepted by the question author.

createfilemapping size constraints

What is the maximum size that can be used with CreateFileMapping with INVALID_HANDLE_VALUE and SEC_RESERVE, for a virtual paged memory backed file, on windows 11 with 32 gb physical memory I can specify for example 64 gb but on windows 2016 it seems…

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,745 questions
asked 2025-03-04T02:09:26.1233333+00:00
GF 21 Reputation points
accepted 2025-03-08T15:59:29.42+00:00
GF 21 Reputation points
1 answer One of the answers was accepted by the question author.

How to fix "HRESULT:0x80070578 Invalid window" exception when calling store service function RequestPurchaseAsync() in a Win32 app packed as MSIX package

I'm packing a Win32 app coded by C++ into a MSIX package and trying to publish at Microsoft app store. My app has in-app products to let users purchase. The app is coded in classic Win32 API in C++ and the in-app purchase module is coded by Windows…

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,745 questions
asked 2025-03-05T03:30:52.17+00:00
Hongkun Wang 20 Reputation points
commented 2025-03-05T15:02:51.3566667+00:00
Hongkun Wang 20 Reputation points
2 answers

strsafe functions performance

hi strsafe.h functions do more checks to do string operations so I think standard string functions is faster is this correct? or should I use strsafe functions? thanks

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,745 questions
asked 2021-08-28T08:39:55.65+00:00
drjackool 956 Reputation points
edited an answer 2025-03-05T11:24:05.5033333+00:00
silverz 0 Reputation points
4 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,745 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,037 questions
asked 2024-12-12T12:09:00.7133333+00:00
Simon Fonteneau 75 Reputation points
commented 2025-03-04T21:40:55.7066667+00:00
Simon Fonteneau 75 Reputation points
0 answers

Load DLL Error: "SXS: BasepCreateActCtx() Calling csrss server failed. Status = 0xc000004b"

My program (NSIS Installer) crashed due to shell32.dll delay loading dui70.dll failed. After confirming, the dui70.dll file was not missing and I found the error message: SXS: BasepCreateActCtx() Calling csrss server failed. Status = 0xc000004b. More…

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,745 questions
asked 2025-03-03T11:03:27.75+00:00
LZL 0 Reputation points
commented 2025-03-04T01:29:10.6633333+00:00
Jeanine Zhang-MSFT 11,106 Reputation points Microsoft External Staff
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 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,745 questions
asked 2025-02-13T19:39:45.3633333+00:00
Nathan 20 Reputation points
commented 2025-03-03T16:53:50.26+00:00
volga629 0 Reputation points
0 answers

How to get the path of the selected file in the current tab of Windows Explorer?

The end goal: • Open Explorer (multiple tabs) in win11. • Select a file • Press the space bar to get the selected file path in your own program

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,745 questions
asked 2025-02-28T11:29:23.1966667+00:00
john snow 0 Reputation points
commented 2025-03-03T01:38:38.5366667+00:00
Jeanine Zhang-MSFT 11,106 Reputation points Microsoft External Staff
0 answers

why uiautomation findFirst is slow and can i correct it?

Hello, I want to find some ui elements in windows apps but when i find it using uiautomation findAll or findFirst it slows down programs. I undertand that there are many elements in ui and it requires going throug many elements but for example in…

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,818 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,745 questions
asked 2025-01-25T14:19:43.4133333+00:00
Артур Абубакиров 0 Reputation points
commented 2025-02-28T05:40:15.29+00:00
Артур Абубакиров 0 Reputation points
5 answers

WSUSSCN2.cab file for Windows 11

I have been using a the wsusscn2.cab file and WUA in a script for years to determine the latest non-superseded applicable UpdatesIDs so that I can download them and bring them to my offline networks. Now that we are moving to Windows 11 it seems to me…

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,745 questions
Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
3,015 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,037 questions
asked 2024-06-13T15:51:07.07+00:00
ArmoredEmu01 5 Reputation points
commented 2025-02-26T18:40:07.71+00:00
ArmoredEmu01 5 Reputation points
0 answers

Speech Recognition customize engine question on Windows about sapi

Hi MSFT member, On windows, when developing a Speech recognition app, there are about three solution APIs: Windows.Media.SpeechRecognition System.Speech Programming Guide for .NET Framework Microsoft Speech API (SAPI) Since We want to use local…

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,745 questions
asked 2025-02-25T12:29:16.58+00:00
clark-zh 40 Reputation points
commented 2025-02-26T03:38:00.27+00:00
Jeanine Zhang-MSFT 11,106 Reputation points Microsoft External Staff
0 answers

Why does EnumDisplayMonitors Still Return just Disconnected Monitor

I'm working om win32 Desktop application in CPP and I'm checking what happens if I try to fetch Display info with EnumDisplayMonitors when All displays are disconnected! Surprisingly it is giving display info of previously connected Display. Why is this…

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,745 questions
asked 2025-02-11T06:48:09.9366667+00:00
Harshithraj1871 1,661 Reputation points
commented 2025-02-25T05:47:53.6766667+00:00
Harshithraj1871 1,661 Reputation points
1 answer

Why SetWindowCompositionAttribute makes text also transparent

When I called SetWindowCompositionAttribute to make the main window blurred, text of controls on it also became transparent and thus hard to read. I want to keep the text pure black without transparency while the main window is blurred and transparent.…

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,745 questions
asked 2025-02-03T03:24:51.68+00:00
szx0427 101 Reputation points
edited the question 2025-02-24T08:06:12.22+00:00
Jack J Jun 24,881 Reputation points Microsoft External Staff
1 answer

How to make a RichEdit control resizable in the up and down directions?

// RichEditReSizeable_cpp_win32.cpp : Defines the entry point for the application. // #include "framework.h" #include "RichEditReSizeable_cpp_win32.h" #define MAX_LOADSTRING 100 #ifndef MSFTEDIT_CLASS #define MSFTEDIT_CLASS…

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,745 questions
asked 2025-02-02T01:29:39.93+00:00
Cristoforo Montanari 0 Reputation points
edited a comment 2025-02-21T06:18:05.01+00:00
Roy Li - MSFT 34,101 Reputation points Microsoft External Staff