2,749 questions with Windows API - Win32 tags

Sort by: Updated
0 answers

NT Heap free list split mechanics

I am trying to develop my own Heap for an IoT platform, which is supposed to be an equivalent to the NT heap of Windows for my Masters degree. Does the allocator do anything special when it comes to chunk split from free-lists? In which cases 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,749 questions
asked 2025-03-19T11:51:33.7433333+00:00
ElonButNotMusk 0 Reputation points
edited a comment 2025-03-19T12:22:28.3266667+00:00
Viorel 120.5K Reputation points
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,749 questions
asked 2025-03-11T02:20:34.5366667+00:00
rebeccab 0 Reputation points
commented 2025-03-19T08:19:25.8733333+00:00
Roy Li - MSFT 34,101 Reputation points Microsoft External Staff
0 answers

content dialog with points

This is what is happening I have an application, where you can draw on a line on a Canvas, and convert those lines in STL, and then save it on your computer private const string NanoFlowFolder = "NanoFlow"; private const int…

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,749 questions
asked 2025-03-08T19:54:20.94+00:00
Eduardo Gomez Romero 1,335 Reputation points
commented 2025-03-19T03:32:43.6766667+00:00
Junjie Zhu - MSFT 20,921 Reputation points Microsoft External Staff
0 answers

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,749 questions
asked 2025-03-11T17:24:28.0533333+00:00
TVB 0 Reputation points
commented 2025-03-19T02:54:43.23+00:00
Jeanine Zhang-MSFT 11,181 Reputation points Microsoft External Staff
1 answer

RegisterPointerInputTarget(hwnd,PT_TOUCH) returns ERROR_ACCESS_DENIED

RegisterPointerInputTarget(hwnd,PT_TOUCH) returns ERROR_ACCESS_DENIED,Here is my C++ code: int APIENTRY wWinMain(In HINSTANCE hInstance,                      In_opt HINSTANCE hPrevInstance,                      In LPWSTR    lpCmdLine,                    …

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,749 questions
asked 2025-03-17T08:33:11.0766667+00:00
1 1 0 Reputation points
commented 2025-03-18T07:28:41.3433333+00:00
RLWA32 47,696 Reputation points
1 answer

Restrict ciphers in WinINet during HTTP call

I have an application and I am using WinINet to make HTTP requests with TLS 1.2. However, I have noticed that WinINet is selecting weak cipher suites, specifically ECDHE-RSA-AES128-SHA256 and ECDHE-RSA-AES128-SHA, for secure connections. Since WinINet…

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,749 questions
asked 2025-03-17T16:44:32.43+00:00
Preethi Ravi 60 Reputation points
answered 2025-03-18T01:58:55.3866667+00:00
Jeanine Zhang-MSFT 11,181 Reputation points Microsoft External Staff
3 answers One of the answers was accepted by the question author.

If a child control covers the parent window's client area completely, why they both receive the WM_PAINT message?

Today I found that If a child window covers its parent window completely, then swipe (slide) the main window to the one side of the screen (cut by the edge of the screen), then swipe back, they both receive a WM_PAINT message. Since the child window…

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,749 questions
asked 2022-04-22T09:28:21.233+00:00
燕鹏 李 301 Reputation points
answered 2025-03-17T05:57:02.4066667+00:00
Cooks Simple Painting Inc 0 Reputation points
1 answer One of the answers was accepted by the question author.

Documentation for Earliest Versions of Direct3D

I am wondering if the original documentation for the earliest versions of Direct3D are available anywhere on the Internet? I already have the https://learn.microsoft.com/en-us/windows/win32/classic-directx-graphics link which provides documentation as…

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,749 questions
asked 2025-03-13T20:42:16.23+00:00
Matthew Armshaw 61 Reputation points
accepted 2025-03-14T23:15:14.8366667+00:00
Matthew Armshaw 61 Reputation points
1 answer One of the answers was accepted by the question author.

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,749 questions
asked 2025-03-03T08:06:39.73+00:00
Chau Dang Ba 40 Reputation points
accepted 2025-03-13T07:45:44.6166667+00:00
Chau Dang Ba 40 Reputation points
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,749 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,749 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.5K 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,749 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,181 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,749 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,749 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,749 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,749 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,128 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,749 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,181 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,749 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,749 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,181 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,821 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,749 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