Microsoft Q&A

Windows API - Win32

2,281 questions

A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.

Browse all Windows tags

2,281 questions with Windows API - Win32 tags

Sort by: Updated
1 answer

EnumAdapters often enumerates default adapter twice on multi-GPU PC

My PC has two graphic cards, RTX A4000 and RX6400. But EnumAdapters enumrates 3 graphic cards. A4000, RX6400 and A4000 example code: Microsoft::WRL::ComPtr<IDXGIAdapter1> adapter; for (UINT adapterIndex = 0; S_OK ==…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
9,481 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,281 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,315 questions
asked 2022-08-06T16:43:41.893+00:00
Suguru Kitsuki 6 Reputation points
answered 2023-12-01T23:16:19.8733333+00:00
Husnain Ali 0 Reputation points
2 answers

extents reported in USN_RECORD_V4 struct are a lot bigger than actual changes

We use USN change journal to track changes on SQL data files for performing incremental backups. For big files (of size 5 TB), we have seen USN_RECORD_V4 have extents reporting that a big portion of file is modified but actual change on the file is very…

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,281 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,315 questions
asked 2023-11-29T19:53:26.6466667+00:00
Kanak Agrawal 6 Reputation points
answered 2023-12-01T23:13:58.82+00:00
Husnain Ali 0 Reputation points
1 answer

usage of trusted execution functions (enclave)

Hi, I'm looking for explanation / tutorial / code samples about "enclaves" (aka "trusted execution functions"). I've read this page (https://learn.microsoft.com/en-us/windows/win32/api/enclaveapi/) from the doc, but it's too high…

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,281 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,315 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.
2,600 questions
asked 2023-11-29T19:23:48.6333333+00:00
Hadrien Flammang 1 Reputation point
commented 2023-12-01T19:31:38.7733333+00:00
Hadrien Flammang 1 Reputation point
0 answers

HLSL: Image is torn

Hi, I made an HLSL shader that makes a ripple effect. It works with bitmaps or bounded effects, but the result image is torn if an infinite-output effect(in my case, CLSID_D2D1Flood) enters. So I simplified the shader to perform a 50x50 pixel transform…

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,281 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,315 questions
asked 2023-12-01T06:46:18.37+00:00
나느 41 Reputation points
commented 2023-12-01T18:27:28.2166667+00:00
나느 41 Reputation points
0 answers

Where is the documentation for the Kerberos Authentication Package

I am trying to get a Kerberos Ticket with the win32 api by calling LsaCallAuthenticationPackage in c++. The Problem is, that in the documentation about the method it tells me, that there is a void pointer called ProtocolSubmitBuffer. The description…

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,281 questions
asked 2023-12-01T12:33:25.02+00:00
Connor 20 Reputation points
commented 2023-12-01T15:40:44.8433333+00:00
David Lowndes 1,485 Reputation points MVP
3 answers One of the answers was accepted by the question author.

How to make windows layer divided into workerW1 and workerW2 layers in win8.1

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Runtime.InteropServices; namespace ConsoleApplication9 { class Program { …

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,085 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,281 questions
Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
740 questions
Microsoft Managed Desktop
Microsoft Managed Desktop
A cloud-based service that brings together Microsoft 365 Enterprise and adds these features: User device deployment; IT service management and operations; and Security monitoring and response.
32 questions
asked 2023-11-29T16:48:30.49+00:00
Lucking Qing 30 Reputation points
accepted 2023-12-01T10:13:24.8566667+00:00
Lucking Qing 30 Reputation points
1 answer

E_INVALIDARG One or more arguments are invalid while renderStream

I want get camera preview and I can enumerate the device list but in pBuild->RenderStream(&PIN_CATEGORY_PREVIEW, &MEDIATYPE_Video, pCap, NULL, NULL); there is error one or moe arguments are invalid I have init the pBuild and pCap how to get…

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,281 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,315 questions
asked 2023-11-07T09:56:10.51+00:00
mc 3,201 Reputation points
commented 2023-12-01T09:28:08.4166667+00:00
Jeanine Zhang-MSFT 7,696 Reputation points Microsoft Vendor
1 answer

电池容量达到指定水平时,运行指定程序,通过taskschd.msc

Help,i dont know how to set ,what i set in taskschd.msc,XD

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.
4,060 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,281 questions
asked 2023-11-23T14:01:54.96+00:00
lee lee 0 Reputation points
edited a comment 2023-12-01T09:21:49.5133333+00:00
Tong Xu - MSFT 116 Reputation points Microsoft Vendor
3 answers

I want to make a transparent window by settting hbrBackground=(HBRUSH)GetStockObject(NULL_BRUSH),but not work.

I want to make a transparent window by settting hbrBackground=(HBRUSH)GetStockObject(NULL_BRUSH),When first started up, it worked well. However, after clicking the taskbar icon several times, the background of the form is no longer transparent and turns…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
9,481 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,281 questions
asked 2023-11-18T03:35:50.0566667+00:00
bird fly 0 Reputation points
commented 2023-12-01T09:21:04.15+00:00
Tong Xu - MSFT 116 Reputation points Microsoft Vendor
0 answers

Duck the audio of the rest of the applications using C++ and the WASAPI

am attempting to activate the Windows default automatic audio ducking: mmsys.cpl -> “Communications tab”, inside my C++ desktop app so that I can duck only the audio of the rest of the applications but not that of mine so that any important audio 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,281 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,315 questions
asked 2023-11-03T09:06:41.96+00:00
Ivan Rovelov 0 Reputation points
commented 2023-12-01T08:48:44.56+00:00
Xiaopo Yang - MSFT 9,931 Reputation points Microsoft Vendor
1 answer

ReadDirectoryChangesW stops working on large amount of Files

I'm using the ReadDirectoryChangesW together with the IOCompletionQueue to receive notifications if new files are added to a specific folder. The Problem i'm currently facing is that if a huge batch copy operation happens (around 800 Files) my 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,281 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,315 questions
asked 2023-11-17T13:51:14.6566667+00:00
Jan Kevin Dick 0 Reputation points
commented 2023-12-01T08:34:40.4333333+00:00
RLWA32 36,881 Reputation points
1 answer One of the answers was accepted by the question author.

How download youtube videos by WinINet?

Hi I have code in Win32/ATL that can download files very well by Wininet api, but youtube url is not just simple file link! How can I download them like youtube downloaders? 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,281 questions
asked 2023-11-13T09:59:24.7966667+00:00
drjackool 936 Reputation points
edited an answer 2023-12-01T08:16:35.9266667+00:00
Roy Li - MSFT 30,541 Reputation points Microsoft Vendor
0 answers

XAML Island : Unable to get CTRL + Q in ProcessKeyboardAccelerators event for TextBox when ProcessKeyboardAccelerators event is attached to is parent container

Hi, I'm working on Xaml Island in cpp. I wanted to catch CTRL + Q pressed for my whole application(As a global HotKey). I attached ProcessKeyboardAccelerators event to the top most container and tried catching the Accelerator pressed. I was able to…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
651 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,281 questions
asked 2023-11-22T08:58:33.49+00:00
Harshithraj1871 1,336 Reputation points
commented 2023-12-01T06:17:50.7466667+00:00
Jeanine Zhang-MSFT 7,696 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to find window associated with CFileDialog Open File from AfxGetMainWindow() in MFC Application

Hello everyone, I am trying to close an MFC application from code. I have added code to save any open documents before the close function is called. I would like to close all open dialog boxes from the application before the main frame exits by sending…

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,281 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,315 questions
asked 2023-11-20T18:14:16.44+00:00
Aakash 60 Reputation points
accepted 2023-11-29T14:49:35.6+00:00
Aakash 60 Reputation points
0 answers

InitializeSecurityContext returns SEC_E_INVALID_HANDLE (0x80090301) after providing CertContext

Greetings Windows Community, I'm using the Windows API (Schannel functions to be precise) to establish a secure connection with a server and send REST API requests, but run into an SEC_E_INVALID_HANDLE error. The connection is being established 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,281 questions
asked 2023-11-27T12:51:35.7433333+00:00
Johann 0 Reputation points
commented 2023-11-29T05:14:39.0166667+00:00
Xiaopo Yang - MSFT 9,931 Reputation points Microsoft Vendor
0 answers

WindowsApplicationForDrivers Vs WindowsUserModeDriver

I have a very basic question. What's is the difference between platforms toolsets WindowsUserModeDriver10.0 and WindowsApplicationForDrivers10.0 ? I have come across WindowsApplicationForDrivers10.0 with Configuration Type as DLL. Where exactly is 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,281 questions
asked 2021-05-10T06:38:59.463+00:00
winprofessional 41 Reputation points
commented 2023-11-28T12:16:04.5433333+00:00
Giuseppe Guerini 0 Reputation points
0 answers

IMFTransform::ProcessOutput successfully returns a few uncompressed frames, but then hangs.

I have a Hardware Accelerated MFT video decoder with the following Input/Output Subtypes: Input: MFVideoFormat_H264_ES Output: MFVideoFormat_NV12 This is a very custom application that is taking an h264 video stream from a proprietary device, and then…

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,281 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,315 questions
asked 2023-11-27T04:37:59.8333333+00:00
Kade Green 0 Reputation points
commented 2023-11-28T03:40:32.1466667+00:00
Xiaopo Yang - MSFT 9,931 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

MFC: how to get touch screen press down event?

Hi : The app is good with mouse. I can get the L-Button-down event when pressing L-Button, and get L-Button-up event when raising finger. But with a touch screen, I only get the press down/up events after I raising my finger. How can i get 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,281 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,315 questions
asked 2023-11-27T07:29:14.4266667+00:00
志斌 罗 20 Reputation points
commented 2023-11-28T01:42:14.1733333+00:00
志斌 罗 20 Reputation points
2 answers One of the answers was accepted by the question author.

MFC, CEdit En_Change get Current Ctrl ID

Hello, Before I begin, let me tell you that Microsoft Q & A forms was totally Sh**, if you compare to MSDN forms. It's the third time a re-begin this message because Code Block window give some trouble when it's time to edit. Back space not at 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,281 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,315 questions
asked 2023-11-27T15:51:54.4533333+00:00
Fleµve Relentless.resærch.lab 61 Reputation points
accepted 2023-11-27T16:44:21.8066667+00:00
Fleµve Relentless.resærch.lab 61 Reputation points
1 answer

How to switch to DRR using windows api?

Windows 11 has added DRR(Dynamic refresh rate) features, what if I want to switch to DRR through the windows api?

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,281 questions
asked 2023-04-03T08:44:46.8866667+00:00
zzz-R 0 Reputation points
commented 2023-11-27T02:51:46.05+00:00
Xiaopo Yang - MSFT 9,931 Reputation points Microsoft Vendor